HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/customizations/__pycache__/rds.cpython-36.opt-1.pyc
3

�T_y�@s�dZddlmZddlmZddlmZddlmZddlm	Z	dd�Z
d	d
�Zdd�Zd
d�Z
dd�Zdd�ZGdd�de�ZdS)aS
This customization splits the modify-option-group into two separate commands:

* ``add-option-group``
* ``remove-option-group``

In both commands the ``--options-to-remove`` and ``--options-to-add`` args will
be renamed to just ``--options``.

All the remaining args will be available in both commands (which proxy
modify-option-group).

�)�ServiceOperation)�CLIOperationCaller)�utils)�BasicCommand)�	uni_printcCs(|jdt�|jdt�|jdt�dS)Nzbuilding-command-table.rdsz6building-argument-table.rds.add-option-to-option-groupz;building-argument-table.rds.remove-option-from-option-group)�register�_building_command_table�_rename_add_option�_rename_remove_option)�cli�r�/usr/lib/python3.6/rds.py�register_rds_modify_split"s
rcCs|jdt�dS)Nzbuilding-command-table.rds)r�_add_generate_db_auth_token)rrrr
�#register_add_generate_db_auth_token*srcKst|�}||d<dS)Nzgenerate-db-auth-token)�GenerateDBAuthTokenCommand)�
command_table�session�kwargsZcommandrrr
r.srcKstj|ddd�|d=dS)Nzoptions-to-include�options)�new_namezoptions-to-remove)r�rename_argument)�argument_tablerrrr
r	3sr	cKstj|ddd�|d=dS)Nzoptions-to-remover)rzoptions-to-include)rr)rrrrr
r
9sr
cKsR|d=|jd�}|jd�}tddt|�||d�|d<tdd||t|�d�|d<dS)Nzmodify-option-group�rdsZModifyOptionGroupzadd-option-to-option-group)�parent_name�name�operation_callerr�operation_modelzremove-option-from-option-group)rrrrr)Zget_service_modelrrr)rrrZ	rds_modelZmodify_operation_modelrrr
r?s

rc@s@eZdZdZdZdddd�dddd	d
�dddd�gZd
d�ZdS)rzgenerate-db-auth-tokenzEGenerates an auth token used to connect to a db with IAM credentials.�hostnameTz+The hostname of the database to connect to.)r�required�	help_text�portZintegerz-The port number the database is listening on.)rZ
cli_type_namerr �usernamezThe username to log in as.cCsB|jjd|j|j|j�}|j|j|j|jd�}t	|�t	d�dS)Nr)Z
DBHostnameZPortZ
DBUsername�
r)
Z_sessionZ
create_clientZregionZendpoint_urlZ
verify_sslZgenerate_db_auth_tokenrr!r"r)�selfZparsed_argsZparsed_globalsr�tokenrrr
�	_run_mainas

z$GenerateDBAuthTokenCommand._run_mainN)�__name__�
__module__�__qualname__�NAMEZDESCRIPTIONZ	ARG_TABLEr&rrrr
rSs
rN)�__doc__Zawscli.clidriverrrZawscli.customizationsrZawscli.customizations.commandsrZawscli.customizations.utilsrrrrr	r
rrrrrr
�<module>s