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

Deletes the queue specified by the QueueUrl, regardless of the queue's * contents.

* *

Be careful with the DeleteQueue action: When you delete a queue, any * messages in the queue are no longer available.

*
*

When you delete a queue, the deletion process takes up to 60 seconds. Requests you * send involving that queue during the 60 seconds might succeed. For example, a * * SendMessage * request might succeed, but after 60 * seconds the queue and the message you sent no longer exist.

*

When you delete a queue, you must wait at least 60 seconds before creating a queue * with the same name.

* *

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.

*

The delete operation uses the HTTP GET verb.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SQSClient, DeleteQueueCommand } from "@aws-sdk/client-sqs"; // ES Modules import * // const { SQSClient, DeleteQueueCommand } = 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 = { // DeleteQueueRequest * QueueUrl: "STRING_VALUE", // required * }; * const command = new DeleteQueueCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteQueueCommandInput - {@link DeleteQueueCommandInput} * @returns {@link DeleteQueueCommandOutput} * @see {@link DeleteQueueCommandInput} for command's `input` shape. * @see {@link DeleteQueueCommandOutput} 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 DeleteQueueCommand extends DeleteQueueCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteQueueRequest; output: {}; }; sdk: { input: DeleteQueueCommandInput; output: DeleteQueueCommandOutput; }; }; }