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.
Data Protection Policies
Section titled “Data Protection Policies”// init (provide SNS.GetDataProtectionPolicyHttp on the Function)const getDataProtectionPolicy = yield* SNS.GetDataProtectionPolicy(topic);
// runtimeconst response = yield* getDataProtectionPolicy();// response.DataProtectionPolicy (JSON document string)