(command_table, session, **kwargs)
| 66 | |
| 67 | |
| 68 | def _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 | |
| 92 | class GenerateDBAuthTokenCommand(BasicCommand): |
nothing calls this directly
no test coverage detected