Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GetQueueUrlCommand

Returns the URL of an existing Amazon SQS queue.

To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue's owner. The queue's owner must grant you permission to access the queue. For more information about shared queue access, see AddPermission or see Allow Developers to Write Messages to a Shared Queue in the Amazon SQS Developer Guide.

example

Use a bare-bones client and the command you need to make an API call.

import { SQSClient, GetQueueUrlCommand } from "@aws-sdk/client-sqs"; // ES Modules import
// const { SQSClient, GetQueueUrlCommand } = require("@aws-sdk/client-sqs"); // CommonJS import
const client = new SQSClient(config);
const command = new GetQueueUrlCommand(input);
const response = await client.send(command);
see

GetQueueUrlCommandInput for command's input shape.

see

GetQueueUrlCommandOutput for command's response shape.

see

config for SQSClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: GetQueueUrlCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<GetQueueUrlCommandInput, GetQueueUrlCommandOutput>