import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RemovePermissionRequest } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RemovePermissionCommand}. */ export interface RemovePermissionCommandInput extends RemovePermissionRequest { } /** * @public * * The output of {@link RemovePermissionCommand}. */ export interface RemovePermissionCommandOutput extends __MetadataBearer { } declare const RemovePermissionCommand_base: { new (input: RemovePermissionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: RemovePermissionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Revokes any permissions in the queue policy that matches the specified * Label parameter.

* *
    *
  • *

    Only the owner of a queue can remove permissions from it.

    *
  • *
  • *

    Cross-account permissions don't apply to this action. For more information, * see Grant * cross-account permissions to a role and a username in the Amazon SQS Developer Guide.

    *
  • *
  • *

    To remove the ability to change queue permissions, you must deny permission to the AddPermission, RemovePermission, and SetQueueAttributes actions in your IAM policy.

    *
  • *
*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SQSClient, RemovePermissionCommand } from "@aws-sdk/client-sqs"; // ES Modules import * // const { SQSClient, RemovePermissionCommand } = require("@aws-sdk/client-sqs"); // CommonJS import * // import type { SQSClientConfig } from "@aws-sdk/client-sqs"; * const config = {}; // type is SQSClientConfig * const client = new SQSClient(config); * const input = { // RemovePermissionRequest * QueueUrl: "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 SQSClientResolvedConfig | config} for SQSClient's `config` shape. * * @throws {@link InvalidAddress} (client fault) *

The specified ID is invalid.

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

The request was not made over HTTPS or did not use SigV4 for signing.

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

Ensure that the QueueUrl is correct and that the queue has not been * deleted.

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

The request was denied due to request throttling.

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

Error code 400. Unsupported operation.

* * @throws {@link SQSServiceException} *

Base exception class for all service exceptions from SQS service.

* * * @public */ export declare class RemovePermissionCommand extends RemovePermissionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RemovePermissionRequest; output: {}; }; sdk: { input: RemovePermissionCommandInput; output: RemovePermissionCommandOutput; }; }; }