Skip to content

Sns  >  Operations  >  get_data_protection_policy

get_data_protection_policy

Operation

get_data_protection_policy async

get_data_protection_policy(input: GetDataProtectionPolicyInput, plugins: list[Plugin] | None = None) -> GetDataProtectionPolicyOutput

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

Parameters:

Name Type Description Default
input GetDataProtectionPolicyInput

An instance of GetDataProtectionPolicyInput.

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
GetDataProtectionPolicyOutput

An instance of GetDataProtectionPolicyOutput.

Input

GetDataProtectionPolicyInput dataclass

Dataclass for GetDataProtectionPolicyInput structure.

Attributes

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

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.

Output

GetDataProtectionPolicyOutput dataclass

Dataclass for GetDataProtectionPolicyOutput structure.

Attributes

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

Retrieves the DataProtectionPolicy in JSON string format.