:doc:`PaymentCryptographyControlPlane <../../payment-cryptography>` / Client / get_alias

*********
get_alias
*********



.. py:method:: PaymentCryptographyControlPlane.Client.get_alias(**kwargs)

  

  Gets the Amazon Web Services Payment Cryptography key associated with the alias.

   

  **Cross-account use:** This operation can't be used across different Amazon Web Services accounts.

   

  **Related operations:**

   

  
  * `CreateAlias <https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_CreateAlias.html>`__
   
  * `DeleteAlias <https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteAlias.html>`__
   
  * `ListAliases <https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_ListAliases.html>`__
   
  * `UpdateAlias <https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_UpdateAlias.html>`__
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetAlias>`_  


  **Request Syntax**
  ::

    response = client.get_alias(
        AliasName='string'
    )
    
  :type AliasName: string
  :param AliasName: **[REQUIRED]** 

    The alias of the Amazon Web Services Payment Cryptography key.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Alias': {
              'AliasName': 'string',
              'KeyArn': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Alias** *(dict) --* 

        The alias of the Amazon Web Services Payment Cryptography key.

        
        

        - **AliasName** *(string) --* 

          A friendly name that you can use to refer to a key. The value must begin with ``alias/``.

           

          .. warning::

             

            Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

            

          
        

        - **KeyArn** *(string) --* 

          The ``KeyARN`` of the key associated with the alias.

          
    
  
  **Exceptions**
  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ValidationException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ThrottlingException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.InternalServerException`

  