@@ -157,7 +157,7 @@ public function addPermission($input): Result
157157 * from the queue after they're processed. You can also increase the number of queues you use to process your messages.
158158 * To request a limit increase, file a support request [^2].
159159 *
160- * For FIFO queues, there can be a maximum of 20 ,000 in flight messages (received from a queue by a consumer, but not
160+ * For FIFO queues, there can be a maximum of 120 ,000 in flight messages (received from a queue by a consumer, but not
161161 * yet deleted from the queue). If you reach this limit, Amazon SQS returns no error messages.
162162 *
163163 * ! If you attempt to set the `VisibilityTimeout` to a value greater than the maximum time left, Amazon SQS returns an
@@ -268,20 +268,25 @@ public function changeMessageVisibilityBatch($input): ChangeMessageVisibilityBat
268268 *
269269 * > After you create a queue, you must wait at least one second after the queue is created to be able to use the queue.
270270 *
271- * To get the queue URL, use the `GetQueueUrl` action. `GetQueueUrl` requires only the `QueueName` parameter. be aware
272- * of existing queue names:
271+ * To retrieve the URL of a queue , use the `GetQueueUrl` [^3] action. This action only requires the `QueueName` [^4]
272+ * parameter.
273273 *
274- * - If you provide the name of an existing queue along with the exact names and values of all the queue's attributes,
275- * `CreateQueue` returns the queue URL for the existing queue.
276- * - If the queue name, attribute names, or attribute values don't match an existing queue, `CreateQueue` returns an
277- * error.
274+ * When creating queues, keep the following points in mind:
275+ *
276+ * - If you specify the name of an existing queue and provide the exact same names and values for all its attributes,
277+ * the `CreateQueue` [^5] action will return the URL of the existing queue instead of creating a new one.
278+ * - If you attempt to create a queue with a name that already exists but with different attribute names or values, the
279+ * `CreateQueue` action will return an error. This ensures that existing queues are not inadvertently altered.
278280 *
279281 * > Cross-account permissions don't apply to this action. For more information, see Grant cross-account permissions to
280- * > a role and a username [^3 ] in the *Amazon SQS Developer Guide*.
282+ * > a role and a username [^6 ] in the *Amazon SQS Developer Guide*.
281283 *
282284 * [^1]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-moving
283285 * [^2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/limits-queues.html
284- * [^3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name
286+ * [^3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_GetQueueUrl.html
287+ * [^4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html#API_CreateQueue_RequestSyntax
288+ * [^5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html
289+ * [^6]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name
285290 *
286291 * @see https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html
287292 * @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-sqs-2012-11-05.html#createqueue
@@ -325,10 +330,11 @@ public function createQueue($input): CreateQueueResult
325330 * a queue even if a visibility timeout setting causes the message to be locked by another consumer. Amazon SQS
326331 * automatically deletes messages left in a queue longer than the retention period configured for the queue.
327332 *
328- * > The `ReceiptHandle` is associated with a *specific instance* of receiving a message. If you receive a message more
329- * > than once, the `ReceiptHandle` is different each time you receive a message. When you use the `DeleteMessage`
330- * > action, you must provide the most recently received `ReceiptHandle` for the message (otherwise, the request
331- * > succeeds, but the message will not be deleted).
333+ * > Each time you receive a message, meaning when a consumer retrieves a message from the queue, it comes with a unique
334+ * > `ReceiptHandle`. If you receive the same message more than once, you will get a different `ReceiptHandle` each
335+ * > time. When you want to delete a message using the `DeleteMessage` action, you must use the `ReceiptHandle` from the
336+ * > most recent time you received the message. If you use an old `ReceiptHandle`, the request will succeed, but the
337+ * > message might not be deleted.
332338 * >
333339 * > For standard queues, it is possible to receive a message even after you delete it. This might happen on rare
334340 * > occasions if one of the servers which stores a copy of the message is unavailable when you send the request to
@@ -499,12 +505,13 @@ public function getQueueAttributes($input): GetQueueAttributesResult
499505 }
500506
501507 /**
502- * Returns the URL of an existing Amazon SQS queue.
508+ * The `GetQueueUrl` API returns the URL of an existing Amazon SQS queue. This is useful when you know the queue's name
509+ * but need to retrieve its URL for further operations.
503510 *
504- * To access a queue that belongs to another AWS account, use the `QueueOwnerAWSAccountId` parameter to specify the
505- * account ID of the queue's owner. The queue's owner must grant you permission to access the queue. For more
506- * information about shared queue access , see `AddPermission` or see Allow Developers to Write Messages to a Shared
507- * Queue [^1] in the *Amazon SQS Developer Guide*.
511+ * To access a queue owned by another Amazon Web Services account, use the `QueueOwnerAWSAccountId` parameter to specify
512+ * the account ID of the queue's owner. Note that the queue owner must grant you the necessary permissions to access the
513+ * queue. For more information about accessing shared queues , see the `AddPermission` API or Allow developers to write
514+ * messages to a shared queue [^1] in the *Amazon SQS Developer Guide*.
508515 *
509516 * [^1]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-writing-an-sqs-policy.html#write-messages-to-shared-queue
510517 *
@@ -650,8 +657,8 @@ public function queueExists($input): QueueExistsWaiter
650657 * long-poll support. For more information, see Amazon SQS Long Polling [^1] in the *Amazon SQS Developer Guide*.
651658 *
652659 * Short poll is the default behavior where a weighted random set of machines is sampled on a `ReceiveMessage` call.
653- * Thus , only the messages on the sampled machines are returned. If the number of messages in the queue is small (fewer
654- * than 1,000), you most likely get fewer messages than you requested per `ReceiveMessage` call. If the number of
660+ * Therefore , only the messages on the sampled machines are returned. If the number of messages in the queue is small
661+ * (fewer than 1,000), you most likely get fewer messages than you requested per `ReceiveMessage` call. If the number of
655662 * messages in the queue is extremely small, you might not receive any messages in a particular `ReceiveMessage`
656663 * response. If this happens, repeat the request.
657664 *
@@ -669,20 +676,14 @@ public function queueExists($input): QueueExistsWaiter
669676 *
670677 * You can provide the `VisibilityTimeout` parameter in your request. The parameter is applied to the messages that
671678 * Amazon SQS returns in the response. If you don't include the parameter, the overall visibility timeout for the queue
672- * is used for the returned messages. For more information, see Visibility Timeout [^4] in the *Amazon SQS Developer
673- * Guide*.
674- *
675- * A message that isn't deleted or a message whose visibility isn't extended before the visibility timeout expires
676- * counts as a failed receive. Depending on the configuration of the queue, the message might be sent to the dead-letter
677- * queue.
679+ * is used for the returned messages. The default visibility timeout for a queue is 30 seconds.
678680 *
679681 * > In the future, new attributes might be added. If you write code that calls this action, we recommend that you
680682 * > structure your code so that it can handle new attributes gracefully.
681683 *
682684 * [^1]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html
683685 * [^2]: https://www.ietf.org/rfc/rfc1321.txt
684686 * [^3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-message-identifiers.html
685- * [^4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
686687 *
687688 * @see https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html
688689 * @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-sqs-2012-11-05.html#receivemessage
0 commit comments