Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConfirmSubscriptionCommand

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.

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);
see

ConfirmSubscriptionCommandInput for command's input shape.

see

ConfirmSubscriptionCommandOutput for command's response shape.

see

config for SNSClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: ConfirmSubscriptionCommandInput

Readonly middlewareStack