HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/customizations/__pycache__/sessendemail.cpython-310.pyc
o

.&�ak�@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 messagecCs@|�dt�|�dtdggd���|�dtdgddg��dS)Nz&building-argument-table.ses.send-emailz$operation-args-parsed.ses.send-email�destination)�to�cc�bcc�message�text�html)�register�
_promote_argsr)�
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_namer�ToAddresses)�	help_textr�CcAddressesr�BccAddresses�subject�Subjectr
�Textr�Html)�requiredr�rename_argument�AddressesArgument�TO_HELP�CC_HELP�BCC_HELP�BodyArgument�SUBJECT_HELP�	TEXT_HELP�	HTML_HELP)�argument_table�kwargsrrrr
6s.

�
�
�
�
�
��r
cCs d|vri|d<||d|<dS)N�Destinationr��params�key�valuerrr�_build_destinationIsr.cCsVd|vriid�|d<|dvrd|i|dd|<dS|dkr)d|i|dd<dSdS)N�Message)r�Body)rr�Datar0rrr*rrr�_build_messagePs�r2cs*eZdZ		d�fdd�	Zdd�Z�ZS)r�Nc

s"tt|�j|||dd�||_dS)N�+)�namerr�nargs)�superr�__init__�	_json_key)
�selfr5�json_keyr�dest�default�actionr�choices�
cli_type_name��	__class__rrr8\s�
zAddressesArgument.__init__cC�|rt||j|�dSdS�N)r.r9�r:�
parametersr-rrr�
add_to_paramsb��zAddressesArgument.add_to_params)r3NNNNNN��__name__�
__module__�__qualname__r8rG�
__classcell__rrrArrZs
�rcs&eZdZd�fdd�	Zdd�Z�ZS)r#r3Ncs tt|�j|||d�||_dS)N)r5rr)r7r#r8r9)r:r5r;rrrArrr8is�
zBodyArgument.__init__cCrCrD)r2r9rErrrrGnrHzBodyArgument.add_to_params)r3NrIrrrArr#gsr#N)�__doc__�awscli.customizationsr�awscli.argumentsr�awscli.customizations.utilsrr r!r"r$r%r&rr
r.r2rr#rrrr�<module>s