Skip to content

ConfirmSubscription

Source: src/AWS/SNS/ConfirmSubscription.ts

Runtime binding for sns:ConfirmSubscription.

Bind this operation to a Subscription inside a function runtime to confirm a pending subscription with the token SNS delivered to the endpoint (e.g. from an https or email confirmation message). The binding grants the host function sns:ConfirmSubscription on the topic. Provide the ConfirmSubscriptionHttp layer on the Function to implement the binding.

// init (provide SNS.ConfirmSubscriptionHttp on the Function)
const confirmSubscription = yield* SNS.ConfirmSubscription(subscription);
// runtime: token comes from the SubscriptionConfirmation message
const response = yield* confirmSubscription({ Token: token });
// response.SubscriptionArn