Skip to content

Unsubscribe

Source: src/AWS/SNS/Unsubscribe.ts

Runtime binding for sns:Unsubscribe.

An account-scoped operation — deletes a subscription by ARN, e.g. one created at runtime with the Subscribe binding. Provide the UnsubscribeHttp layer on the Function to implement the binding.

const unsubscribe = yield* SNS.Unsubscribe();
yield* unsubscribe({ SubscriptionArn: subscriptionArn });