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
public void getURL(){
LrSqsClient.initClient(region, "");
lr.output_message(LrSqsClient.getQueueUrl("jsmith-sqs0”));
lr.output_message(LrSqsClient.getQueueUrl("jsmith-sqs0", "123456789"));
LrSqsClient.closeClient();
}