:doc:`SNS <../../sns>` / Client / get_data_protection_policy

**************************
get_data_protection_policy
**************************



.. py:method:: SNS.Client.get_data_protection_policy(**kwargs)

  

  Retrieves the specified inline ``DataProtectionPolicy`` document that is stored in the specified Amazon SNS topic.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetDataProtectionPolicy>`_  


  **Request Syntax**
  ::

    response = client.get_data_protection_policy(
        ResourceArn='string'
    )
    
  :type ResourceArn: string
  :param ResourceArn: **[REQUIRED]** 

    The ARN of the topic whose ``DataProtectionPolicy`` you want to get.

     

    For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the Amazon Web Services General Reference.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **DataProtectionPolicy** *(string) --* 

        Retrieves the ``DataProtectionPolicy`` in JSON string format.

        
  
  **Exceptions**
  
  *   :py:class:`SNS.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`SNS.Client.exceptions.InternalErrorException`

  
  *   :py:class:`SNS.Client.exceptions.NotFoundException`

  
  *   :py:class:`SNS.Client.exceptions.AuthorizationErrorException`

  
  *   :py:class:`SNS.Client.exceptions.InvalidSecurityException`

  