import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UnsubscribeInput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UnsubscribeCommand}. */ export interface UnsubscribeCommandInput extends UnsubscribeInput { } /** * @public * * The output of {@link UnsubscribeCommand}. */ export interface UnsubscribeCommandOutput extends __MetadataBearer { } declare const UnsubscribeCommand_base: { new (input: UnsubscribeCommandInput): import("@smithy/core/client").CommandImpl; new (input: UnsubscribeCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deletes a subscription. If the subscription requires authentication for deletion, only * the owner of the subscription or the topic's owner can unsubscribe, and an Amazon Web Services * signature is required. If the Unsubscribe call does not require * authentication and the requester is not the subscription owner, a final cancellation * message is delivered to the endpoint, so that the endpoint owner can easily resubscribe * to the topic if the Unsubscribe request was unintended.

*

This action is throttled at 100 transactions per second (TPS).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SNSClient, UnsubscribeCommand } from "@aws-sdk/client-sns"; // ES Modules import * // const { SNSClient, UnsubscribeCommand } = 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 = { // UnsubscribeInput * SubscriptionArn: "STRING_VALUE", // required * }; * const command = new UnsubscribeCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UnsubscribeCommandInput - {@link UnsubscribeCommandInput} * @returns {@link UnsubscribeCommandOutput} * @see {@link UnsubscribeCommandInput} for command's `input` shape. * @see {@link UnsubscribeCommandOutput} 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 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 InvalidSecurityException} (client fault) *

The credential signature isn't valid. You must use an HTTPS endpoint and sign your * request using Signature Version 4.

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

Indicates that the requested resource does not exist.

* * @throws {@link SNSServiceException} *

Base exception class for all service exceptions from SNS service.

* * * @public */ export declare class UnsubscribeCommand extends UnsubscribeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UnsubscribeInput; output: {}; }; sdk: { input: UnsubscribeCommandInput; output: UnsubscribeCommandOutput; }; }; }