Verifies an endpoint owner's intent to receive messages by validating the token sent
to the endpoint by an earlier Subscribe action. If the token is valid, the
action creates a new subscription and returns its Amazon Resource Name (ARN). This call
requires an AWS signature only when the AuthenticateOnUnsubscribe flag is
set to "true".
example
Use a bare-bones client and the command you need to make an API call.
Verifies an endpoint owner's intent to receive messages by validating the token sent to the endpoint by an earlier
Subscribe
action. If the token is valid, the action creates a new subscription and returns its Amazon Resource Name (ARN). This call requires an AWS signature only when theAuthenticateOnUnsubscribe
flag is set to "true".Use a bare-bones client and the command you need to make an API call.
import { SNSClient, ConfirmSubscriptionCommand } from "@aws-sdk/client-sns"; // ES Modules import // const { SNSClient, ConfirmSubscriptionCommand } = require("@aws-sdk/client-sns"); // CommonJS import const client = new SNSClient(config); const command = new ConfirmSubscriptionCommand(input); const response = await client.send(command);
ConfirmSubscriptionCommandInput for command's
input
shape.ConfirmSubscriptionCommandOutput for command's
response
shape.config for SNSClient's
config
shape.