Skip to content

Sns  >  Operations  >  put_data_protection_policy

put_data_protection_policy

Operation

put_data_protection_policy async

put_data_protection_policy(input: PutDataProtectionPolicyInput, plugins: list[Plugin] | None = None) -> PutDataProtectionPolicyOutput

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

Parameters:

Name Type Description Default
input PutDataProtectionPolicyInput

An instance of PutDataProtectionPolicyInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
PutDataProtectionPolicyOutput

An instance of PutDataProtectionPolicyOutput.

Input

PutDataProtectionPolicyInput dataclass

Dataclass for PutDataProtectionPolicyInput structure.

Attributes

data_protection_policy class-attribute instance-attribute
data_protection_policy: str | None = None

The JSON serialization of the topic's DataProtectionPolicy.

The DataProtectionPolicy must be in JSON string format.

Length Constraints: Maximum length of 30,720.

resource_arn class-attribute instance-attribute
resource_arn: str | None = None

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.

Output

PutDataProtectionPolicyOutput dataclass

Dataclass for PutDataProtectionPolicyOutput structure.