Skip to content

RemovePermission

Source: src/AWS/SNS/RemovePermission.ts

Runtime binding for sns:RemovePermission.

Bind this operation to a Topic inside a function runtime to remove a policy statement previously added with AddPermission by its label. The binding grants the host function sns:RemovePermission on the topic. Provide the RemovePermissionHttp layer on the Function to implement the binding.

// init (provide SNS.RemovePermissionHttp on the Function)
const removePermission = yield* SNS.RemovePermission(topic);
// runtime
yield* removePermission({ Label: "PartnerPublish" });