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__/sessendemail.cpython-36.opt-1.pyc
3

�T_k�@s�dZddlmZddlmZddlmZdZdZdZ	dZ
d	Zd
Zdd�Z
d
d�Zdd�Zdd�ZGdd�de�ZGdd�de�ZdS)a�
This customization provides a simpler interface for the ``ses send-email``
command.  This simplified form is based on the legacy CLI.  The simple format
will be::

aws ses send-email --subject SUBJECT --from FROM_EMAIL
    --to-addresses addr ... --cc-addresses addr ...
    --bcc-addresses addr ... --reply-to-addresses addr ...
    --return-path addr --text TEXTBODY --html HTMLBODY

�)�utils)�CustomArgument)�#validate_mutually_exclusive_handlerzmThe email addresses of the primary recipients.  You can specify multiple recipients as space-separated valueszkThe email addresses of copy recipients (Cc).  You can specify multiple recipients as space-separated valueszyThe email addresses of blind-carbon-copy recipients (Bcc).  You can specify multiple recipients as space-separated valueszThe subject of the messagez The raw text body of the messagezThe HTML body of the messagecCsB|jdt�|jdtdgdddg��|jdtdgdd	g��dS)
Nz&building-argument-table.ses.send-emailz$operation-args-parsed.ses.send-email�destination�to�cc�bcc�message�text�html)�register�
_promote_argsr)Z
event_handler�r�"/usr/lib/python3.6/sessendemail.py�register_ses_send_email)srcKs�d|d_d|d_tj|ddd�tddtd	�|d<td
dtd	�|d
<tdd
td	�|d<tddtd	�|d<tddt	d	�|d<tddt
d	�|d<dS)NFr	r�source�from)�new_namerZToAddresses)�	help_textrZCcAddressesrZBccAddressesZsubject�Subjectr
�Textr�Html)�requiredrZrename_argument�AddressesArgument�TO_HELP�CC_HELP�BCC_HELP�BodyArgument�SUBJECT_HELP�	TEXT_HELP�	HTML_HELP)Zargument_table�kwargsrrrr
6s 

r
cCs d|kri|d<||d|<dS)NZDestinationr)�params�key�valuerrr�_build_destinationIsr%cCsPd|kriid�|d<|dkr4d|i|dd|<n|dkrLd|i|dd<dS)	NZMessage)r�BodyrrZDatar&r)rrr)r"r#r$rrr�_build_messagePsr'cs&eZdZd�fdd�	Zdd�Z�ZS)r�Nc

s"tt|�j|||dd�||_dS)N�+)�namerr�nargs)�superr�__init__�	_json_key)
�selfr*�json_keyr�dest�default�actionr�choicesZ
cli_type_name)�	__class__rrr-\s
zAddressesArgument.__init__cCs|rt||j|�dS)N)r%r.)r/�
parametersr$rrr�
add_to_paramsbszAddressesArgument.add_to_params)r(NNNNNN)�__name__�
__module__�__qualname__r-r7�
__classcell__rr)r5rrZsrcs&eZdZd�fdd�	Zdd�Z�ZS)rr(Ncs tt|�j|||d�||_dS)N)r*rr)r,rr-r.)r/r*r0rr)r5rrr-iszBodyArgument.__init__cCs|rt||j|�dS)N)r'r.)r/r6r$rrrr7nszBodyArgument.add_to_params)r(N)r8r9r:r-r7r;rr)r5rrgsrN)�__doc__Zawscli.customizationsrZawscli.argumentsrZawscli.customizations.utilsrrrrrrr rr
r%r'rrrrrr�<module>s