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

Gets attributes for the specified queue.

* *

To determine whether a queue is FIFO, you can check whether QueueName ends with the .fifo suffix.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SQSClient, GetQueueAttributesCommand } from "@aws-sdk/client-sqs"; // ES Modules import * // const { SQSClient, GetQueueAttributesCommand } = 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 = { // GetQueueAttributesRequest * QueueUrl: "STRING_VALUE", // required * AttributeNames: [ // AttributeNameList * "All" || "Policy" || "VisibilityTimeout" || "MaximumMessageSize" || "MessageRetentionPeriod" || "ApproximateNumberOfMessages" || "ApproximateNumberOfMessagesNotVisible" || "CreatedTimestamp" || "LastModifiedTimestamp" || "QueueArn" || "ApproximateNumberOfMessagesDelayed" || "DelaySeconds" || "ReceiveMessageWaitTimeSeconds" || "RedrivePolicy" || "FifoQueue" || "ContentBasedDeduplication" || "KmsMasterKeyId" || "KmsDataKeyReusePeriodSeconds" || "DeduplicationScope" || "FifoThroughputLimit" || "RedriveAllowPolicy" || "SqsManagedSseEnabled", * ], * }; * const command = new GetQueueAttributesCommand(input); * const response = await client.send(command); * // { // GetQueueAttributesResult * // Attributes: { // QueueAttributeMap * // "": "STRING_VALUE", * // }, * // }; * * ``` * * @param GetQueueAttributesCommandInput - {@link GetQueueAttributesCommandInput} * @returns {@link GetQueueAttributesCommandOutput} * @see {@link GetQueueAttributesCommandInput} for command's `input` shape. * @see {@link GetQueueAttributesCommandOutput} 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 InvalidAttributeName} (client fault) *

The specified attribute doesn't exist.

* * @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.

*
    *
  • *

    Exceeds the permitted request rate for the queue or for the recipient of the * request.

    *
  • *
  • *

    Ensure that the request rate is within the Amazon SQS limits for * sending messages. For more information, see Amazon SQS quotas in the Amazon SQS * Developer Guide.

    *
  • *
* * @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 GetQueueAttributesCommand extends GetQueueAttributesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetQueueAttributesRequest; output: GetQueueAttributesResult; }; sdk: { input: GetQueueAttributesCommandInput; output: GetQueueAttributesCommandOutput; }; }; }