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.
Managing Topic Permissions
Section titled “Managing Topic Permissions”// init (provide SNS.RemovePermissionHttp on the Function)const removePermission = yield* SNS.RemovePermission(topic);
// runtimeyield* removePermission({ Label: "PartnerPublish" });