Skip to main content

data_protection_policies

Creates, updates, deletes, gets or lists a data_protection_policies resource.

Overview

Namedata_protection_policies
TypeResource
Idaws.sns.data_protection_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
data_protection_policystringRetrieves the DataProtectionPolicy in JSON string format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_protection_policyselectResourceArn, regionRetrieves the specified inline DataProtectionPolicy document that is stored in the specified Amazon SNS topic.
put_data_protection_policyreplaceResourceArn, DataProtectionPolicy, regionAdds or updates an inline policy document that is stored in the specified Amazon SNS topic.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
DataProtectionPolicystringThe JSON serialization of the topic's DataProtectionPolicy. The DataProtectionPolicy must be in JSON string format. Length Constraints: Maximum length of 30,720.
ResourceArnstringThe 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.
regionstringAWS region (default: us-east-1)

SELECT examples

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

SELECT
data_protection_policy
FROM aws.sns.data_protection_policies
WHERE ResourceArn = '{{ ResourceArn }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

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

REPLACE aws.sns.data_protection_policies
SET
-- No updatable properties
WHERE
ResourceArn = '{{ ResourceArn }}' --required
AND DataProtectionPolicy = '{{ DataProtectionPolicy }}' --required
AND region = '{{ region }}' --required;