Share this page

# LrSqsClient.getQueueUrl

Retrieves the queue URL for the specified queue.

`public static String getQueueUrl(String queueName)`

`public static String getQueueUrl(String queueName, String queueOwnerAwsAccountId)`

## Arguments

Name | Description
--- | ---
queueName | The queue for which to retrieve the URL.
queueOwnerAwsAccountId | The AWS account ID of the queue owner.

## Return values

This API returns a string.

## General information

The queueOwnerAwsAccountId argument is used when accessing a queue that you do not own. In this case the owner must give you permission to access the queue.

## Example

Copy code

    public void getURL(){

            LrSqsClient.initClient(region, "");

            lr.output_message(LrSqsClient.getQueueUrl("jsmith-sqs0”));
            lr.output_message(LrSqsClient.getQueueUrl("jsmith-sqs0", "123456789"));

            LrSqsClient.closeClient();
      }

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: