import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RemovePermissionInput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link RemovePermissionCommand}. */ export interface RemovePermissionCommandInput extends RemovePermissionInput { } /** * @public * * The output of {@link RemovePermissionCommand}. */ export interface RemovePermissionCommandOutput extends __MetadataBearer { } declare const RemovePermissionCommand_base: { new (input: RemovePermissionCommandInput): import("@smithy/core/client").CommandImpl; new (input: RemovePermissionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Removes a statement from a topic's access control policy.

* *

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, RemovePermissionCommand } from "@aws-sdk/client-sns"; // ES Modules import * // const { SNSClient, RemovePermissionCommand } = 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 = { // RemovePermissionInput * TopicArn: "STRING_VALUE", // required * Label: "STRING_VALUE", // required * }; * const command = new RemovePermissionCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param RemovePermissionCommandInput - {@link RemovePermissionCommandInput} * @returns {@link RemovePermissionCommandOutput} * @see {@link RemovePermissionCommandInput} for command's `input` shape. * @see {@link RemovePermissionCommandOutput} 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 RemovePermissionCommand extends RemovePermissionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RemovePermissionInput; output: {}; }; sdk: { input: RemovePermissionCommandInput; output: RemovePermissionCommandOutput; }; }; }