Skip to content

Get Queue Url

sqs_get_queue_url R Documentation

The GetQueueUrl API returns the URL of an existing Amazon SQS queue

Description

The get_queue_url API returns the URL of an existing Amazon SQS queue. This is useful when you know the queue's name but need to retrieve its URL for further operations.

To access a queue owned by another Amazon Web Services account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue's owner. Note that the queue owner must grant you the necessary permissions to access the queue. For more information about accessing shared queues, see the add_permission API or Allow developers to write messages to a shared queue in the Amazon SQS Developer Guide.

Usage

sqs_get_queue_url(QueueName, QueueOwnerAWSAccountId)

Arguments

QueueName

[required] (Required) The name of the queue for which you want to fetch the URL. The name can be up to 80 characters long and can include alphanumeric characters, hyphens (-), and underscores (_). Queue URLs and names are case-sensitive.

QueueOwnerAWSAccountId

(Optional) The Amazon Web Services account ID of the account that created the queue. This is only required when you are attempting to access a queue owned by another Amazon Web Services account.

Value

A list with the following syntax:

list(
  QueueUrl = "string"
)

Request syntax

svc$get_queue_url(
  QueueName = "string",
  QueueOwnerAWSAccountId = "string"
)