Skip to content

GetDataProtectionPolicy

Source: src/AWS/SNS/GetDataProtectionPolicy.ts

Runtime binding for sns:GetDataProtectionPolicy.

Bind this operation to a Topic inside a function runtime to read the topic’s data protection policy document; the ResourceArn is injected automatically. The binding grants the host function sns:GetDataProtectionPolicy on the topic. Provide the GetDataProtectionPolicyHttp layer on the Function to implement the binding.

// init (provide SNS.GetDataProtectionPolicyHttp on the Function)
const getDataProtectionPolicy = yield* SNS.GetDataProtectionPolicy(topic);
// runtime
const response = yield* getDataProtectionPolicy();
// response.DataProtectionPolicy (JSON document string)