data_protection_policies
Creates, updates, deletes, gets or lists a data_protection_policies resource.
Overview
| Name | data_protection_policies |
| Type | Resource |
| Id | aws.sns.data_protection_policies |
Fields
The following fields are returned by SELECT queries:
- get_data_protection_policy
| Name | Datatype | Description |
|---|---|---|
data_protection_policy | string | Retrieves the DataProtectionPolicy in JSON string format. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_data_protection_policy | select | ResourceArn, region | Retrieves the specified inline DataProtectionPolicy document that is stored in the specified Amazon SNS topic. | |
put_data_protection_policy | replace | ResourceArn, DataProtectionPolicy, region | Adds 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.
| Name | Datatype | Description |
|---|---|---|
DataProtectionPolicy | string | The JSON serialization of the topic's DataProtectionPolicy. The DataProtectionPolicy must be in JSON string format. Length Constraints: Maximum length of 30,720. |
ResourceArn | string | 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. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_data_protection_policy
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
- put_data_protection_policy
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;