![]() ![]() Have a look at this example written in Java, which will help you understand how to use the endpoint and create a workaround with it. If you keep on getting the SQS Queue URL Endpoint, instead of the SQS actual Queue URL, you can use the endpoint to access and manipulate the queue as you require. If you are still getting the SQS Endpoint. You can also use the listQueues method to retrieve the Queue URL list, as given in this doc. String queue_url = sqs.getQueueUrl(QUEUE_NAME).getQueueUrl() The JSON string follows the format provided by -generate-cli-skeleton. cli-input-json (string) Performs service operation based on the JSON string provided. (See this doc) AmazonSQS sqs = faultClient() -queue-owner-aws-account-id (string) The Amazon Web Services account ID of the account that created the queue. ![]() This is for a single Queue URL given the Queue name. You can try out to retrieve the SQS URL using the JAVA SDK using the following code. That is the entry point for a web service. Offer a regional endpoint to make your requests. To reduce data latency in your applications, most Amazon Web Services What you have got as the response for your JAVA SDK call is an AWS Endpoint. The AWS SQS Queue url is provided in the following format (see this link): If you had given us the code you used to retrieve the urls in java, we could have seen what the real root cause is. Messages sent using aws sqs send-message with the URL returned by the CLI are not received by the Scala program using the URL returned by the AWS Java SDK. I get the same results when using get-queue-url and getQueueUrl (either overload in the SDK). After the region, the CLI's domain name is.The CLI begins with the region ( us-west-2) while the SDK begins with sqs.PLEASE NOTE: the number is the same in both URLs as are the corresponding queue names. When I call the equivalent from the Java SDK (SDK version 1.11.344Ĭalled from Scala version 2.12.6), I get a list of the format When using AWS CLI version aws-cli/1.15.50, Python/3.7.0, Darwin/16.7.0, botocore/1.10.49, the command aws sqs list-queues
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |