o
    .&ßa_	  ã                   @   s$   d Z ddlmZ dd„ Zdd„ ZdS )aÑ  
This customization makes it easier to save various pieces of data
returned from iot commands that would typically need to be saved to a
file. This customization adds the following options:

- aws iot create-certificate-from-csr
  - ``--certificate-pem-outfile``: certificatePem
- aws iot create-keys-and-certificate
  - ``--certificate-pem-outfile``: certificatePem
  - ``--public-key-outfile``: keyPair.PublicKey
  - ``--private-key-outfile``: keyPair.PrivateKey
é    ©ÚQueryOutFileArgumentc                 K   sJ   d}t | dd|dd�|d< t | dd|dd�|d< t | dd	|dd�|d< d
S )z¢Add outfile save arguments to create-keys-and-certificate

    - ``--certificate-pem-outfile``
    - ``--public-key-outfile``
    - ``--private-key-outfile``
    z'after-call.iot.CreateKeysAndCertificateúcertificate-pem-outfileÚcertificatePemé€  ©ÚsessionÚnameÚqueryÚafter_call_eventÚpermzpublic-key-outfilezkeyPair.PublicKeyzprivate-key-outfilezkeyPair.PrivateKeyNr   )r   Úargument_tableÚkwargsÚafter_event© r   ú;/usr/lib/python3/dist-packages/awscli/customizations/iot.pyÚ'register_create_keys_and_cert_arguments   s   
þ
þþr   c                 K   s   t | ddddd�|d< dS )z:Add certificate-pem-outfile to create-certificate-from-csrr   r   z'after-call.iot.CreateCertificateFromCsrr   r   Nr   )r   r   r   r   r   r   Ú'register_create_keys_from_csr_arguments/   s
   ýr   N)Ú__doc__Úawscli.customizations.argumentsr   r   r   r   r   r   r   Ú<module>   s   