import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AddPermissionInput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link AddPermissionCommand}. */ export interface AddPermissionCommandInput extends AddPermissionInput { } /** * @public * * The output of {@link AddPermissionCommand}. */ export interface AddPermissionCommandOutput extends __MetadataBearer { } declare const AddPermissionCommand_base: { new (input: AddPermissionCommandInput): import("@smithy/core/client").CommandImpl; new (input: AddPermissionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Adds a statement to a topic's access control policy, granting access for the specified * Amazon Web Services accounts to the specified actions.

* *

To remove the ability to change topic permissions, you must deny permissions to * the AddPermission, RemovePermission, and * SetTopicAttributes actions in your IAM policy.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SNSClient, AddPermissionCommand } from "@aws-sdk/client-sns"; // ES Modules import * // const { SNSClient, AddPermissionCommand } = 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 = { // AddPermissionInput * TopicArn: "STRING_VALUE", // required * Label: "STRING_VALUE", // required * AWSAccountId: [ // DelegatesList // required * "STRING_VALUE", * ], * ActionName: [ // ActionsList // required * "STRING_VALUE", * ], * }; * const command = new AddPermissionCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param AddPermissionCommandInput - {@link AddPermissionCommandInput} * @returns {@link AddPermissionCommandOutput} * @see {@link AddPermissionCommandInput} for command's `input` shape. * @see {@link AddPermissionCommandOutput} 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 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 AddPermissionCommand extends AddPermissionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AddPermissionInput; output: {}; }; sdk: { input: AddPermissionCommandInput; output: AddPermissionCommandOutput; }; }; }