Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

get_data_protection_policy

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

Request Syntax

response = client.get_data_protection_policy(
    ResourceArn='string'
)
Parameters
ResourceArn (string) --

[REQUIRED]

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

For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

Return type
dict
Returns
Response Syntax
{
    'DataProtectionPolicy': 'string'
}

Response Structure

  • (dict) --
    • DataProtectionPolicy (string) --

      Retrieves the DataProtectionPolicy in JSON string format.

Exceptions

  • SNS.Client.exceptions.InvalidParameterException
  • SNS.Client.exceptions.InternalErrorException
  • SNS.Client.exceptions.NotFoundException
  • SNS.Client.exceptions.AuthorizationErrorException
  • SNS.Client.exceptions.InvalidSecurityException