o .&ak@sdZddlmZddlmZddlmZdZdZdZ dZ d Z d Z d d Z d dZddZddZGdddeZGdddeZdS)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|dtdgddgdS)Nz&building-argument-table.ses.send-emailz$operation-args-parsed.ses.send-email destination)toccbccmessagetexthtml)register _promote_argsr) event_handlerrD/usr/lib/python3/dist-packages/awscli/customizations/sessendemail.pyregister_ses_send_email)s  rcKsd|d_d|d_tj|dddtddtd |d<td d td |d <td d td |d <tddtd |d<tddt d |d<tddt d |d<dS)NFr rsourcefrom)new_namer ToAddresses) help_textr CcAddressesr BccAddressessubjectSubjectr Textr Html) requiredrrename_argumentAddressesArgumentTO_HELPCC_HELPBCC_HELP BodyArgument SUBJECT_HELP TEXT_HELP HTML_HELP)argument_tablekwargsrrrr 6s.       r cCs d|vri|d<||d|<dS)N Destinationrparamskeyvaluerrr_build_destinationIsr.cCsVd|vr iid|d<|dvrd|i|dd|<dS|dkr)d|i|dd<dSdS)NMessage)rBody)rrDatar0rrr*rrr_build_messagePsr2cs*eZdZ  dfdd ZddZZS)rNc s"tt|j|||dd||_dS)N+)namerrnargs)superr__init__ _json_key) selfr5json_keyrdestdefaultactionrchoices cli_type_name __class__rrr8\s zAddressesArgument.__init__cC|r t||j|dSdSN)r.r9r: parametersr-rrr add_to_paramsbzAddressesArgument.add_to_params)r3NNNNNN__name__ __module__ __qualname__r8rG __classcell__rrrArrZs rcs&eZdZdfdd ZddZZS)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.customizationsrawscli.argumentsrawscli.customizations.utilsrr r!r"r$r%r&rr r.r2rr#rrrrs