Skip to content

Amazon SNS message data protection is no longer available to new customers

Description

Amazon SNS message data protection is no longer available to new customers. For more information and guidance on alternatives, see Amazon SNS message data protection availability change.

Adds or updates an inline policy document that is stored in the specified Amazon SNS topic.

Usage

sns_put_data_protection_policy(ResourceArn, DataProtectionPolicy)

Arguments

  • ResourceArn

[required] The ARN of the topic whose DataProtectionPolicy you want to add or update.

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

  • DataProtectionPolicy

[required] The JSON serialization of the topic's DataProtectionPolicy.

The DataProtectionPolicy must be in JSON string format.

Length Constraints: Maximum length of 30,720.

Value

An empty list.

Request syntax

svc$put_data_protection_policy(
  ResourceArn = "string",
  DataProtectionPolicy = "string"
)