MCPcopy Index your code
hub / github.com/aws/aws-cli / _building_command_table

Function _building_command_table

awscli/customizations/rds.py:68–89  ·  view source on GitHub ↗
(command_table, session, **kwargs)

Source from the content-addressed store, hash-verified

66
67
68def _building_command_table(command_table, session, **kwargs):
69 # Hooked up to building-command-table.rds
70 # We don't need the modify-option-group operation.
71 del command_table['modify-option-group']
72 # We're going to replace modify-option-group with two commands:
73 # add-option-group and remove-option-group
74 rds_model = session.get_service_model('rds')
75 modify_operation_model = rds_model.operation_model('ModifyOptionGroup')
76 command_table['add-option-to-option-group'] = ServiceOperation(
77 parent_name='rds',
78 name='add-option-to-option-group',
79 operation_caller=CLIOperationCaller(session),
80 session=session,
81 operation_model=modify_operation_model,
82 )
83 command_table['remove-option-from-option-group'] = ServiceOperation(
84 parent_name='rds',
85 name='remove-option-from-option-group',
86 session=session,
87 operation_model=modify_operation_model,
88 operation_caller=CLIOperationCaller(session),
89 )
90
91
92class GenerateDBAuthTokenCommand(BasicCommand):

Callers

nothing calls this directly

Calls 4

ServiceOperationClass · 0.90
CLIOperationCallerClass · 0.90
operation_modelMethod · 0.80
get_service_modelMethod · 0.45

Tested by

no test coverage detected