import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ConfirmSubscriptionInput, ConfirmSubscriptionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ConfirmSubscriptionCommand}. */ export interface ConfirmSubscriptionCommandInput extends ConfirmSubscriptionInput { } /** * @public * * The output of {@link ConfirmSubscriptionCommand}. */ export interface ConfirmSubscriptionCommandOutput extends ConfirmSubscriptionResponse, __MetadataBearer { } declare const ConfirmSubscriptionCommand_base: { new (input: ConfirmSubscriptionCommandInput): import("@smithy/core/client").CommandImpl; new (input: ConfirmSubscriptionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

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. * ```javascript * import { SNSClient, ConfirmSubscriptionCommand } from "@aws-sdk/client-sns"; // ES Modules import * // const { SNSClient, ConfirmSubscriptionCommand } = require("@aws-sdk/client-sns"); // CommonJS import * // import type { SNSClientConfig } from "@aws-sdk/client-sns"; * const config = {}; // type is SNSClientConfig * const client = new SNSClient(config); * const input = { // ConfirmSubscriptionInput * TopicArn: "STRING_VALUE", // required * Token: "STRING_VALUE", // required * AuthenticateOnUnsubscribe: "STRING_VALUE", * }; * const command = new ConfirmSubscriptionCommand(input); * const response = await client.send(command); * // { // ConfirmSubscriptionResponse * // SubscriptionArn: "STRING_VALUE", * // }; * * ``` * * @param ConfirmSubscriptionCommandInput - {@link ConfirmSubscriptionCommandInput} * @returns {@link ConfirmSubscriptionCommandOutput} * @see {@link ConfirmSubscriptionCommandInput} for command's `input` shape. * @see {@link ConfirmSubscriptionCommandOutput} for command's `response` shape. * @see {@link SNSClientResolvedConfig | config} for SNSClient's `config` shape. * * @throws {@link AuthorizationErrorException} (client fault) *

Indicates that the user has been denied access to the requested resource.

* * @throws {@link FilterPolicyLimitExceededException} (client fault) *

Indicates that the number of filter polices in your Amazon Web Services account exceeds the limit. To * add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web Services Support * Center.

* * @throws {@link InternalErrorException} (server fault) *

Indicates an internal service error.

* * @throws {@link InvalidParameterException} (client fault) *

Indicates that a request parameter does not comply with the associated * constraints.

* * @throws {@link NotFoundException} (client fault) *

Indicates that the requested resource does not exist.

* * @throws {@link ReplayLimitExceededException} (client fault) *

Indicates that the request parameter has exceeded the maximum number of concurrent message replays.

* * @throws {@link SubscriptionLimitExceededException} (client fault) *

Indicates that the customer already owns the maximum allowed number of * subscriptions.

* * @throws {@link SNSServiceException} *

Base exception class for all service exceptions from SNS service.

* * * @public */ export declare class ConfirmSubscriptionCommand extends ConfirmSubscriptionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ConfirmSubscriptionInput; output: ConfirmSubscriptionResponse; }; sdk: { input: ConfirmSubscriptionCommandInput; output: ConfirmSubscriptionCommandOutput; }; }; }