HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/customizations/__pycache__/sessendemail.cpython-38.pyc
U

<�^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|�dt�|�dtdgdddg��|�dtdgdd	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�D/usr/lib/python3/dist-packages/awscli/customizations/sessendemail.py�register_ses_send_email)s"�����rcKs�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
6sF

��
�
�
�
�
�r
cCs d|kri|d<||d|<dS)NZDestinationr�Zparams�key�valuerrr�_build_destinationIsr%cCsPd|kriid�|d<|dkr4d|i|dd|<n|dkrLd|i|dd<dS)NZMessage)r�Body)rrZDatar&rrr"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/Z
parametersr$rrr�
add_to_paramsbszAddressesArgument.add_to_params)r(NNNNNN��__name__�
__module__�__qualname__r-r9�
__classcell__rrr5rrZs�rcs&eZdZd�fdd�	Zdd�Z�ZS)rr(Ncs tt|�j|||d�||_dS)N)r*rr)r,rr-r.)r/r*r0rrr5rrr-is�zBodyArgument.__init__cCs|rt||j|�dSr7)r'r.r8rrrr9nszBodyArgument.add_to_params)r(Nr:rrr5rrgsrN)�__doc__Zawscli.customizationsrZawscli.argumentsrZawscli.customizations.utilsrrrrrrr rr
r%r'rrrrrr�<module>
s