:doc:`SESV2 <../../sesv2>` / Client / get_email_identity_policies

***************************
get_email_identity_policies
***************************



.. py:method:: SESV2.Client.get_email_identity_policies(**kwargs)

  

  Returns the requested sending authorization policies for the given identity (an email address or a domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time.

   

  .. note::

    

    This API is for the identity owner only. If you have not verified the identity, this API will return an error.

    

   

  Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the `Amazon SES Developer Guide <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html>`__.

   

  You can execute this operation no more than once per second.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetEmailIdentityPolicies>`_  


  **Request Syntax**
  ::

    response = client.get_email_identity_policies(
        EmailIdentity='string'
    )
    
  :type EmailIdentity: string
  :param EmailIdentity: **[REQUIRED]** 

    The email identity.

    

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

    
    ::

      {
          'Policies': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Identity policies associated with email identity.

      
      

      - **Policies** *(dict) --* 

        A map of policy names to policies.

        
        

        - *(string) --* 

          The name of the policy.

           

          The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

          
          

          - *(string) --* 

            The text of the policy in JSON format. The policy cannot exceed 4 KB.

             

            For information about the syntax of sending authorization policies, see the `Amazon SES Developer Guide <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html>`__.

            
    
  
  
  **Exceptions**
  
  *   :py:class:`SESV2.Client.exceptions.NotFoundException`

  
  *   :py:class:`SESV2.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`SESV2.Client.exceptions.BadRequestException`

  