aws-sdk-sqs 1.56.0 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sqs/client.rb +362 -141
- data/lib/aws-sdk-sqs/client_api.rb +76 -0
- data/lib/aws-sdk-sqs/endpoints.rb +42 -0
- data/lib/aws-sdk-sqs/errors.rb +11 -0
- data/lib/aws-sdk-sqs/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-sqs/queue.rb +59 -25
- data/lib/aws-sdk-sqs/resource.rb +58 -24
- data/lib/aws-sdk-sqs/types.rb +347 -75
- data/lib/aws-sdk-sqs.rb +1 -1
- metadata +2 -2
    
        data/lib/aws-sdk-sqs/client.rb
    CHANGED
    
    | @@ -397,25 +397,21 @@ module Aws::SQS | |
| 397 397 | 
             
                #   see [Using Custom Policies with the Amazon SQS Access Policy
         | 
| 398 398 | 
             
                #   Language][3] in the *Amazon SQS Developer Guide*.
         | 
| 399 399 | 
             
                #
         | 
| 400 | 
            -
                # * An Amazon SQS policy can have a maximum of  | 
| 400 | 
            +
                # * An Amazon SQS policy can have a maximum of seven actions per
         | 
| 401 | 
            +
                #   statement.
         | 
| 401 402 | 
             
                #
         | 
| 402 403 | 
             
                # * To remove the ability to change queue permissions, you must deny
         | 
| 403 404 | 
             
                #   permission to the `AddPermission`, `RemovePermission`, and
         | 
| 404 405 | 
             
                #   `SetQueueAttributes` actions in your IAM policy.
         | 
| 405 406 | 
             
                #
         | 
| 406 | 
            -
                # | 
| 407 | 
            -
                #
         | 
| 408 | 
            -
                # Some actions take lists of parameters. These lists are specified using
         | 
| 409 | 
            -
                # the `param.n` notation. Values of `n` are integers starting from 1.
         | 
| 410 | 
            -
                # For example, a parameter list with two elements looks like this:
         | 
| 407 | 
            +
                # * Amazon SQS `AddPermission` does not support adding a non-account
         | 
| 408 | 
            +
                #   principal.
         | 
| 411 409 | 
             
                #
         | 
| 412 | 
            -
                # | 
| 413 | 
            -
                #
         | 
| 414 | 
            -
                # `&AttributeName.2=second`
         | 
| 410 | 
            +
                #  </note>
         | 
| 415 411 | 
             
                #
         | 
| 416 412 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 417 | 
            -
                # information, see [Grant cross-account permissions to a role and a | 
| 418 | 
            -
                #  | 
| 413 | 
            +
                # information, see [Grant cross-account permissions to a role and a
         | 
| 414 | 
            +
                # username][4] in the *Amazon SQS Developer Guide*.
         | 
| 419 415 | 
             
                #
         | 
| 420 416 | 
             
                #  </note>
         | 
| 421 417 | 
             
                #
         | 
| @@ -486,18 +482,57 @@ module Aws::SQS | |
| 486 482 | 
             
                  req.send_request(options)
         | 
| 487 483 | 
             
                end
         | 
| 488 484 |  | 
| 485 | 
            +
                # Cancels a specified message movement task.
         | 
| 486 | 
            +
                #
         | 
| 487 | 
            +
                # <note markdown="1"> * A message movement can only be cancelled when the current status is
         | 
| 488 | 
            +
                #   RUNNING.
         | 
| 489 | 
            +
                #
         | 
| 490 | 
            +
                # * Cancelling a message movement task does not revert the messages that
         | 
| 491 | 
            +
                #   have already been moved. It can only stop the messages that have not
         | 
| 492 | 
            +
                #   been moved yet.
         | 
| 493 | 
            +
                #
         | 
| 494 | 
            +
                #  </note>
         | 
| 495 | 
            +
                #
         | 
| 496 | 
            +
                # @option params [required, String] :task_handle
         | 
| 497 | 
            +
                #   An identifier associated with a message movement task.
         | 
| 498 | 
            +
                #
         | 
| 499 | 
            +
                # @return [Types::CancelMessageMoveTaskResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| 500 | 
            +
                #
         | 
| 501 | 
            +
                #   * {Types::CancelMessageMoveTaskResult#approximate_number_of_messages_moved #approximate_number_of_messages_moved} => Integer
         | 
| 502 | 
            +
                #
         | 
| 503 | 
            +
                # @example Request syntax with placeholder values
         | 
| 504 | 
            +
                #
         | 
| 505 | 
            +
                #   resp = client.cancel_message_move_task({
         | 
| 506 | 
            +
                #     task_handle: "String", # required
         | 
| 507 | 
            +
                #   })
         | 
| 508 | 
            +
                #
         | 
| 509 | 
            +
                # @example Response structure
         | 
| 510 | 
            +
                #
         | 
| 511 | 
            +
                #   resp.approximate_number_of_messages_moved #=> Integer
         | 
| 512 | 
            +
                #
         | 
| 513 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/CancelMessageMoveTask AWS API Documentation
         | 
| 514 | 
            +
                #
         | 
| 515 | 
            +
                # @overload cancel_message_move_task(params = {})
         | 
| 516 | 
            +
                # @param [Hash] params ({})
         | 
| 517 | 
            +
                def cancel_message_move_task(params = {}, options = {})
         | 
| 518 | 
            +
                  req = build_request(:cancel_message_move_task, params)
         | 
| 519 | 
            +
                  req.send_request(options)
         | 
| 520 | 
            +
                end
         | 
| 521 | 
            +
             | 
| 489 522 | 
             
                # Changes the visibility timeout of a specified message in a queue to a
         | 
| 490 523 | 
             
                # new value. The default visibility timeout for a message is 30 seconds.
         | 
| 491 524 | 
             
                # The minimum is 0 seconds. The maximum is 12 hours. For more
         | 
| 492 525 | 
             
                # information, see [Visibility Timeout][1] in the *Amazon SQS Developer
         | 
| 493 526 | 
             
                # Guide*.
         | 
| 494 527 | 
             
                #
         | 
| 495 | 
            -
                # For example,  | 
| 496 | 
            -
                #  | 
| 497 | 
            -
                #  | 
| 498 | 
            -
                #  | 
| 499 | 
            -
                #  | 
| 500 | 
            -
                #  | 
| 528 | 
            +
                # For example, if the default timeout for a queue is 60 seconds, 15
         | 
| 529 | 
            +
                # seconds have elapsed since you received the message, and you send a
         | 
| 530 | 
            +
                # ChangeMessageVisibility call with `VisibilityTimeout` set to 10
         | 
| 531 | 
            +
                # seconds, the 10 seconds begin to count from the time that you make the
         | 
| 532 | 
            +
                # `ChangeMessageVisibility` call. Thus, any attempt to change the
         | 
| 533 | 
            +
                # visibility timeout or to delete that message 10 seconds after you
         | 
| 534 | 
            +
                # initially change the visibility timeout (a total of 25 seconds) might
         | 
| 535 | 
            +
                # result in an error.
         | 
| 501 536 | 
             
                #
         | 
| 502 537 | 
             
                # An Amazon SQS message has three basic states:
         | 
| 503 538 | 
             
                #
         | 
| @@ -513,13 +548,13 @@ module Aws::SQS | |
| 513 548 | 
             
                # messages. A message is considered to be *in flight* after it is
         | 
| 514 549 | 
             
                # received from a queue by a consumer, but not yet deleted from the
         | 
| 515 550 | 
             
                # queue (that is, between states 2 and 3). There is a limit to the
         | 
| 516 | 
            -
                # number of  | 
| 551 | 
            +
                # number of in flight messages.
         | 
| 517 552 | 
             
                #
         | 
| 518 | 
            -
                # Limits that apply to  | 
| 553 | 
            +
                # Limits that apply to in flight messages are unrelated to the
         | 
| 519 554 | 
             
                # *unlimited* number of stored messages.
         | 
| 520 555 | 
             
                #
         | 
| 521 556 | 
             
                # For most standard queues (depending on queue traffic and message
         | 
| 522 | 
            -
                # backlog), there can be a maximum of approximately 120,000  | 
| 557 | 
            +
                # backlog), there can be a maximum of approximately 120,000 in flight
         | 
| 523 558 | 
             
                # messages (received from a queue by a consumer, but not yet deleted
         | 
| 524 559 | 
             
                # from the queue). If you reach this limit, Amazon SQS returns the
         | 
| 525 560 | 
             
                # `OverLimit` error message. To avoid reaching the limit, you should
         | 
| @@ -527,7 +562,7 @@ module Aws::SQS | |
| 527 562 | 
             
                # increase the number of queues you use to process your messages. To
         | 
| 528 563 | 
             
                # request a limit increase, [file a support request][2].
         | 
| 529 564 | 
             
                #
         | 
| 530 | 
            -
                # For FIFO queues, there can be a maximum of 20,000  | 
| 565 | 
            +
                # For FIFO queues, there can be a maximum of 20,000 in flight messages
         | 
| 531 566 | 
             
                # (received from a queue by a consumer, but not yet deleted from the
         | 
| 532 567 | 
             
                # queue). If you reach this limit, Amazon SQS returns no error messages.
         | 
| 533 568 | 
             
                #
         | 
| @@ -556,7 +591,7 @@ module Aws::SQS | |
| 556 591 | 
             
                #   Queue URLs and names are case-sensitive.
         | 
| 557 592 | 
             
                #
         | 
| 558 593 | 
             
                # @option params [required, String] :receipt_handle
         | 
| 559 | 
            -
                #   The receipt handle associated with the message whose visibility
         | 
| 594 | 
            +
                #   The receipt handle associated with the message, whose visibility
         | 
| 560 595 | 
             
                #   timeout is changed. This parameter is returned by the ` ReceiveMessage
         | 
| 561 596 | 
             
                #   ` action.
         | 
| 562 597 | 
             
                #
         | 
| @@ -593,14 +628,6 @@ module Aws::SQS | |
| 593 628 | 
             
                # and unsuccessful actions, you should check for batch errors even when
         | 
| 594 629 | 
             
                # the call returns an HTTP status code of `200`.
         | 
| 595 630 | 
             
                #
         | 
| 596 | 
            -
                # Some actions take lists of parameters. These lists are specified using
         | 
| 597 | 
            -
                # the `param.n` notation. Values of `n` are integers starting from 1.
         | 
| 598 | 
            -
                # For example, a parameter list with two elements looks like this:
         | 
| 599 | 
            -
                #
         | 
| 600 | 
            -
                # `&AttributeName.1=first`
         | 
| 601 | 
            -
                #
         | 
| 602 | 
            -
                # `&AttributeName.2=second`
         | 
| 603 | 
            -
                #
         | 
| 604 631 | 
             
                # @option params [required, String] :queue_url
         | 
| 605 632 | 
             
                #   The URL of the Amazon SQS queue whose messages' visibility is
         | 
| 606 633 | 
             
                #   changed.
         | 
| @@ -608,7 +635,7 @@ module Aws::SQS | |
| 608 635 | 
             
                #   Queue URLs and names are case-sensitive.
         | 
| 609 636 | 
             
                #
         | 
| 610 637 | 
             
                # @option params [required, Array<Types::ChangeMessageVisibilityBatchRequestEntry>] :entries
         | 
| 611 | 
            -
                #    | 
| 638 | 
            +
                #   Lists the receipt handles of the messages for which the visibility
         | 
| 612 639 | 
             
                #   timeout must be changed.
         | 
| 613 640 | 
             
                #
         | 
| 614 641 | 
             
                # @return [Types::ChangeMessageVisibilityBatchResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| @@ -689,17 +716,9 @@ module Aws::SQS | |
| 689 716 | 
             
                # * If the queue name, attribute names, or attribute values don't match
         | 
| 690 717 | 
             
                #   an existing queue, `CreateQueue` returns an error.
         | 
| 691 718 | 
             
                #
         | 
| 692 | 
            -
                # Some actions take lists of parameters. These lists are specified using
         | 
| 693 | 
            -
                # the `param.n` notation. Values of `n` are integers starting from 1.
         | 
| 694 | 
            -
                # For example, a parameter list with two elements looks like this:
         | 
| 695 | 
            -
                #
         | 
| 696 | 
            -
                # `&AttributeName.1=first`
         | 
| 697 | 
            -
                #
         | 
| 698 | 
            -
                # `&AttributeName.2=second`
         | 
| 699 | 
            -
                #
         | 
| 700 719 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 701 | 
            -
                # information, see [Grant cross-account permissions to a role and a | 
| 702 | 
            -
                #  | 
| 720 | 
            +
                # information, see [Grant cross-account permissions to a role and a
         | 
| 721 | 
            +
                # username][3] in the *Amazon SQS Developer Guide*.
         | 
| 703 722 | 
             
                #
         | 
| 704 723 | 
             
                #  </note>
         | 
| 705 724 | 
             
                #
         | 
| @@ -739,41 +758,75 @@ module Aws::SQS | |
| 739 758 | 
             
                #   * `MessageRetentionPeriod` – The length of time, in seconds, for which
         | 
| 740 759 | 
             
                #     Amazon SQS retains a message. Valid values: An integer from 60
         | 
| 741 760 | 
             
                #     seconds (1 minute) to 1,209,600 seconds (14 days). Default: 345,600
         | 
| 742 | 
            -
                #     (4 days).
         | 
| 761 | 
            +
                #     (4 days). When you change a queue's attributes, the change can take
         | 
| 762 | 
            +
                #     up to 60 seconds for most of the attributes to propagate throughout
         | 
| 763 | 
            +
                #     the Amazon SQS system. Changes made to the `MessageRetentionPeriod`
         | 
| 764 | 
            +
                #     attribute can take up to 15 minutes and will impact existing
         | 
| 765 | 
            +
                #     messages in the queue potentially causing them to be expired and
         | 
| 766 | 
            +
                #     deleted if the `MessageRetentionPeriod` is reduced below the age of
         | 
| 767 | 
            +
                #     existing messages.
         | 
| 743 768 | 
             
                #
         | 
| 744 769 | 
             
                #   * `Policy` – The queue's policy. A valid Amazon Web Services policy.
         | 
| 745 770 | 
             
                #     For more information about policy structure, see [Overview of Amazon
         | 
| 746 | 
            -
                #     Web Services IAM Policies][1] in the * | 
| 771 | 
            +
                #     Web Services IAM Policies][1] in the *IAM User Guide*.
         | 
| 747 772 | 
             
                #
         | 
| 748 773 | 
             
                #   * `ReceiveMessageWaitTimeSeconds` – The length of time, in seconds,
         | 
| 749 774 | 
             
                #     for which a ` ReceiveMessage ` action waits for a message to arrive.
         | 
| 750 775 | 
             
                #     Valid values: An integer from 0 to 20 (seconds). Default: 0.
         | 
| 751 776 | 
             
                #
         | 
| 777 | 
            +
                #   * `VisibilityTimeout` – The visibility timeout for the queue, in
         | 
| 778 | 
            +
                #     seconds. Valid values: An integer from 0 to 43,200 (12 hours).
         | 
| 779 | 
            +
                #     Default: 30. For more information about the visibility timeout, see
         | 
| 780 | 
            +
                #     [Visibility Timeout][2] in the *Amazon SQS Developer Guide*.
         | 
| 781 | 
            +
                #
         | 
| 782 | 
            +
                #   The following attributes apply only to [dead-letter queues:][3]
         | 
| 783 | 
            +
                #
         | 
| 752 784 | 
             
                #   * `RedrivePolicy` – The string that includes the parameters for the
         | 
| 753 785 | 
             
                #     dead-letter queue functionality of the source queue as a JSON
         | 
| 754 | 
            -
                #     object.  | 
| 755 | 
            -
                #     dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
         | 
| 756 | 
            -
                #     the *Amazon SQS Developer Guide*.
         | 
| 786 | 
            +
                #     object. The parameters are as follows:
         | 
| 757 787 | 
             
                #
         | 
| 758 788 | 
             
                #     * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
         | 
| 759 789 | 
             
                #       dead-letter queue to which Amazon SQS moves messages after the
         | 
| 760 790 | 
             
                #       value of `maxReceiveCount` is exceeded.
         | 
| 761 791 | 
             
                #
         | 
| 762 792 | 
             
                #     * `maxReceiveCount` – The number of times a message is delivered to
         | 
| 763 | 
            -
                #       the source queue before being moved to the dead-letter queue. | 
| 764 | 
            -
                #       the `ReceiveCount` for a message exceeds the | 
| 765 | 
            -
                #       a queue, Amazon SQS moves the message to the | 
| 793 | 
            +
                #       the source queue before being moved to the dead-letter queue.
         | 
| 794 | 
            +
                #       Default: 10. When the `ReceiveCount` for a message exceeds the
         | 
| 795 | 
            +
                #       `maxReceiveCount` for a queue, Amazon SQS moves the message to the
         | 
| 796 | 
            +
                #       dead-letter-queue.
         | 
| 797 | 
            +
                #
         | 
| 798 | 
            +
                #   * `RedriveAllowPolicy` – The string that includes the parameters for
         | 
| 799 | 
            +
                #     the permissions for the dead-letter queue redrive permission and
         | 
| 800 | 
            +
                #     which source queues can specify dead-letter queues as a JSON object.
         | 
| 801 | 
            +
                #     The parameters are as follows:
         | 
| 802 | 
            +
                #
         | 
| 803 | 
            +
                #     * `redrivePermission` – The permission type that defines which
         | 
| 804 | 
            +
                #       source queues can specify the current queue as the dead-letter
         | 
| 805 | 
            +
                #       queue. Valid values are:
         | 
| 806 | 
            +
                #
         | 
| 807 | 
            +
                #       * `allowAll` – (Default) Any source queues in this Amazon Web
         | 
| 808 | 
            +
                #         Services account in the same Region can specify this queue as
         | 
| 809 | 
            +
                #         the dead-letter queue.
         | 
| 810 | 
            +
                #
         | 
| 811 | 
            +
                #       * `denyAll` – No source queues can specify this queue as the
         | 
| 812 | 
            +
                #         dead-letter queue.
         | 
| 813 | 
            +
                #
         | 
| 814 | 
            +
                #       * `byQueue` – Only queues specified by the `sourceQueueArns`
         | 
| 815 | 
            +
                #         parameter can specify this queue as the dead-letter queue.
         | 
| 816 | 
            +
                #
         | 
| 817 | 
            +
                #     * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
         | 
| 818 | 
            +
                #       queues that can specify this queue as the dead-letter queue and
         | 
| 819 | 
            +
                #       redrive messages. You can specify this parameter only when the
         | 
| 820 | 
            +
                #       `redrivePermission` parameter is set to `byQueue`. You can specify
         | 
| 821 | 
            +
                #       up to 10 source queue ARNs. To allow more than 10 source queues to
         | 
| 822 | 
            +
                #       specify dead-letter queues, set the `redrivePermission` parameter
         | 
| 823 | 
            +
                #       to `allowAll`.
         | 
| 824 | 
            +
                #
         | 
| 825 | 
            +
                #   <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
         | 
| 826 | 
            +
                #   Similarly, the dead-letter queue of a standard queue must also be a
         | 
| 827 | 
            +
                #   standard queue.
         | 
| 766 828 | 
             
                #
         | 
| 767 | 
            -
                # | 
| 768 | 
            -
                #     Similarly, the dead-letter queue of a standard queue must also be a
         | 
| 769 | 
            -
                #     standard queue.
         | 
| 770 | 
            -
                #
         | 
| 771 | 
            -
                #      </note>
         | 
| 772 | 
            -
                #
         | 
| 773 | 
            -
                #   * `VisibilityTimeout` – The visibility timeout for the queue, in
         | 
| 774 | 
            -
                #     seconds. Valid values: An integer from 0 to 43,200 (12 hours).
         | 
| 775 | 
            -
                #     Default: 30. For more information about the visibility timeout, see
         | 
| 776 | 
            -
                #     [Visibility Timeout][3] in the *Amazon SQS Developer Guide*.
         | 
| 829 | 
            +
                #    </note>
         | 
| 777 830 | 
             
                #
         | 
| 778 831 | 
             
                #   The following attributes apply only to [server-side-encryption][4]:
         | 
| 779 832 | 
             
                #
         | 
| @@ -792,11 +845,11 @@ module Aws::SQS | |
| 792 845 | 
             
                #     Default: 300 (5 minutes). A shorter time period provides better
         | 
| 793 846 | 
             
                #     security but results in more calls to KMS which might incur charges
         | 
| 794 847 | 
             
                #     after Free Tier. For more information, see [How Does the Data Key
         | 
| 795 | 
            -
                #     Reuse Period Work?][8] | 
| 848 | 
            +
                #     Reuse Period Work?][8]
         | 
| 796 849 | 
             
                #
         | 
| 797 850 | 
             
                #   * `SqsManagedSseEnabled` – Enables server-side queue encryption using
         | 
| 798 851 | 
             
                #     SQS owned encryption keys. Only one server-side encryption option is
         | 
| 799 | 
            -
                #     supported per queue ( | 
| 852 | 
            +
                #     supported per queue (for example, [SSE-KMS][9] or [SSE-SQS][10]).
         | 
| 800 853 | 
             
                #
         | 
| 801 854 | 
             
                #   The following attributes apply only to [FIFO (first-in-first-out)
         | 
| 802 855 | 
             
                #   queues][11]:
         | 
| @@ -873,8 +926,8 @@ module Aws::SQS | |
| 873 926 | 
             
                #
         | 
| 874 927 | 
             
                #
         | 
| 875 928 | 
             
                #   [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
         | 
| 876 | 
            -
                #   [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs- | 
| 877 | 
            -
                #   [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs- | 
| 929 | 
            +
                #   [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
         | 
| 930 | 
            +
                #   [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
         | 
| 878 931 | 
             
                #   [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
         | 
| 879 932 | 
             
                #   [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
         | 
| 880 933 | 
             
                #   [6]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
         | 
| @@ -912,8 +965,8 @@ module Aws::SQS | |
| 912 965 | 
             
                #   `sqs:CreateQueue` and `sqs:TagQueue` permissions.
         | 
| 913 966 | 
             
                #
         | 
| 914 967 | 
             
                #    Cross-account permissions don't apply to this action. For more
         | 
| 915 | 
            -
                #   information, see [Grant cross-account permissions to a role and a | 
| 916 | 
            -
                #    | 
| 968 | 
            +
                #   information, see [Grant cross-account permissions to a role and a
         | 
| 969 | 
            +
                #   username][3] in the *Amazon SQS Developer Guide*.
         | 
| 917 970 | 
             
                #
         | 
| 918 971 | 
             
                #    </note>
         | 
| 919 972 | 
             
                #
         | 
| @@ -965,7 +1018,7 @@ module Aws::SQS | |
| 965 1018 | 
             
                # `ReceiptHandle` is different each time you receive a message. When you
         | 
| 966 1019 | 
             
                # use the `DeleteMessage` action, you must provide the most recently
         | 
| 967 1020 | 
             
                # received `ReceiptHandle` for the message (otherwise, the request
         | 
| 968 | 
            -
                # succeeds, but the message  | 
| 1021 | 
            +
                # succeeds, but the message will not be deleted).
         | 
| 969 1022 | 
             
                #
         | 
| 970 1023 | 
             
                #  For standard queues, it is possible to receive a message even after
         | 
| 971 1024 | 
             
                # you delete it. This might happen on rare occasions if one of the
         | 
| @@ -1011,21 +1064,13 @@ module Aws::SQS | |
| 1011 1064 | 
             
                # and unsuccessful actions, you should check for batch errors even when
         | 
| 1012 1065 | 
             
                # the call returns an HTTP status code of `200`.
         | 
| 1013 1066 | 
             
                #
         | 
| 1014 | 
            -
                # Some actions take lists of parameters. These lists are specified using
         | 
| 1015 | 
            -
                # the `param.n` notation. Values of `n` are integers starting from 1.
         | 
| 1016 | 
            -
                # For example, a parameter list with two elements looks like this:
         | 
| 1017 | 
            -
                #
         | 
| 1018 | 
            -
                # `&AttributeName.1=first`
         | 
| 1019 | 
            -
                #
         | 
| 1020 | 
            -
                # `&AttributeName.2=second`
         | 
| 1021 | 
            -
                #
         | 
| 1022 1067 | 
             
                # @option params [required, String] :queue_url
         | 
| 1023 1068 | 
             
                #   The URL of the Amazon SQS queue from which messages are deleted.
         | 
| 1024 1069 | 
             
                #
         | 
| 1025 1070 | 
             
                #   Queue URLs and names are case-sensitive.
         | 
| 1026 1071 | 
             
                #
         | 
| 1027 1072 | 
             
                # @option params [required, Array<Types::DeleteMessageBatchRequestEntry>] :entries
         | 
| 1028 | 
            -
                #    | 
| 1073 | 
            +
                #   Lists the receipt handles for the messages to be deleted.
         | 
| 1029 1074 | 
             
                #
         | 
| 1030 1075 | 
             
                # @return [Types::DeleteMessageBatchResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| 1031 1076 | 
             
                #
         | 
| @@ -1078,8 +1123,10 @@ module Aws::SQS | |
| 1078 1123 | 
             
                # creating a queue with the same name.
         | 
| 1079 1124 | 
             
                #
         | 
| 1080 1125 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 1081 | 
            -
                # information, see [Grant cross-account permissions to a role and a | 
| 1082 | 
            -
                #  | 
| 1126 | 
            +
                # information, see [Grant cross-account permissions to a role and a
         | 
| 1127 | 
            +
                # username][1] in the *Amazon SQS Developer Guide*.
         | 
| 1128 | 
            +
                #
         | 
| 1129 | 
            +
                #  The delete operation uses the HTTP `GET` verb.
         | 
| 1083 1130 | 
             
                #
         | 
| 1084 1131 | 
             
                #  </note>
         | 
| 1085 1132 | 
             
                #
         | 
| @@ -1129,7 +1176,7 @@ module Aws::SQS | |
| 1129 1176 | 
             
                # @option params [Array<String>] :attribute_names
         | 
| 1130 1177 | 
             
                #   A list of attributes for which to retrieve information.
         | 
| 1131 1178 | 
             
                #
         | 
| 1132 | 
            -
                #   The ` | 
| 1179 | 
            +
                #   The `AttributeNames` parameter is optional, but if you don't specify
         | 
| 1133 1180 | 
             
                #   values for this parameter, the request returns empty results.
         | 
| 1134 1181 | 
             
                #
         | 
| 1135 1182 | 
             
                #   <note markdown="1"> In the future, new attributes might be added. If you write code that
         | 
| @@ -1142,10 +1189,10 @@ module Aws::SQS | |
| 1142 1189 | 
             
                #
         | 
| 1143 1190 | 
             
                #   The `ApproximateNumberOfMessagesDelayed`,
         | 
| 1144 1191 | 
             
                #   `ApproximateNumberOfMessagesNotVisible`, and
         | 
| 1145 | 
            -
                #   ` | 
| 1146 | 
            -
                #    | 
| 1147 | 
            -
                #    | 
| 1148 | 
            -
                #    | 
| 1192 | 
            +
                #   `ApproximateNumberOfMessages` metrics may not achieve consistency
         | 
| 1193 | 
            +
                #   until at least 1 minute after the producers stop sending messages.
         | 
| 1194 | 
            +
                #   This period is required for the queue metadata to reach eventual
         | 
| 1195 | 
            +
                #   consistency.
         | 
| 1149 1196 | 
             
                #
         | 
| 1150 1197 | 
             
                #   * `All` – Returns all values.
         | 
| 1151 1198 | 
             
                #
         | 
| @@ -1175,7 +1222,14 @@ module Aws::SQS | |
| 1175 1222 | 
             
                #     can contain before Amazon SQS rejects it.
         | 
| 1176 1223 | 
             
                #
         | 
| 1177 1224 | 
             
                #   * `MessageRetentionPeriod` – Returns the length of time, in seconds,
         | 
| 1178 | 
            -
                #     for which Amazon SQS retains a message.
         | 
| 1225 | 
            +
                #     for which Amazon SQS retains a message. When you change a queue's
         | 
| 1226 | 
            +
                #     attributes, the change can take up to 60 seconds for most of the
         | 
| 1227 | 
            +
                #     attributes to propagate throughout the Amazon SQS system. Changes
         | 
| 1228 | 
            +
                #     made to the `MessageRetentionPeriod` attribute can take up to 15
         | 
| 1229 | 
            +
                #     minutes and will impact existing messages in the queue potentially
         | 
| 1230 | 
            +
                #     causing them to be expired and deleted if the
         | 
| 1231 | 
            +
                #     `MessageRetentionPeriod` is reduced below the age of existing
         | 
| 1232 | 
            +
                #     messages.
         | 
| 1179 1233 | 
             
                #
         | 
| 1180 1234 | 
             
                #   * `Policy` – Returns the policy of the queue.
         | 
| 1181 1235 | 
             
                #
         | 
| @@ -1185,24 +1239,58 @@ module Aws::SQS | |
| 1185 1239 | 
             
                #     seconds, for which the `ReceiveMessage` action waits for a message
         | 
| 1186 1240 | 
             
                #     to arrive.
         | 
| 1187 1241 | 
             
                #
         | 
| 1242 | 
            +
                #   * `VisibilityTimeout` – Returns the visibility timeout for the queue.
         | 
| 1243 | 
            +
                #     For more information about the visibility timeout, see [Visibility
         | 
| 1244 | 
            +
                #     Timeout][2] in the *Amazon SQS Developer Guide*.
         | 
| 1245 | 
            +
                #
         | 
| 1246 | 
            +
                #   The following attributes apply only to [dead-letter queues:][3]
         | 
| 1247 | 
            +
                #
         | 
| 1188 1248 | 
             
                #   * `RedrivePolicy` – The string that includes the parameters for the
         | 
| 1189 1249 | 
             
                #     dead-letter queue functionality of the source queue as a JSON
         | 
| 1190 | 
            -
                #     object.  | 
| 1191 | 
            -
                #     dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
         | 
| 1192 | 
            -
                #     the *Amazon SQS Developer Guide*.
         | 
| 1250 | 
            +
                #     object. The parameters are as follows:
         | 
| 1193 1251 | 
             
                #
         | 
| 1194 1252 | 
             
                #     * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
         | 
| 1195 1253 | 
             
                #       dead-letter queue to which Amazon SQS moves messages after the
         | 
| 1196 1254 | 
             
                #       value of `maxReceiveCount` is exceeded.
         | 
| 1197 1255 | 
             
                #
         | 
| 1198 1256 | 
             
                #     * `maxReceiveCount` – The number of times a message is delivered to
         | 
| 1199 | 
            -
                #       the source queue before being moved to the dead-letter queue. | 
| 1200 | 
            -
                #       the `ReceiveCount` for a message exceeds the | 
| 1201 | 
            -
                #       a queue, Amazon SQS moves the message to the | 
| 1257 | 
            +
                #       the source queue before being moved to the dead-letter queue.
         | 
| 1258 | 
            +
                #       Default: 10. When the `ReceiveCount` for a message exceeds the
         | 
| 1259 | 
            +
                #       `maxReceiveCount` for a queue, Amazon SQS moves the message to the
         | 
| 1260 | 
            +
                #       dead-letter-queue.
         | 
| 1261 | 
            +
                #
         | 
| 1262 | 
            +
                #   * `RedriveAllowPolicy` – The string that includes the parameters for
         | 
| 1263 | 
            +
                #     the permissions for the dead-letter queue redrive permission and
         | 
| 1264 | 
            +
                #     which source queues can specify dead-letter queues as a JSON object.
         | 
| 1265 | 
            +
                #     The parameters are as follows:
         | 
| 1266 | 
            +
                #
         | 
| 1267 | 
            +
                #     * `redrivePermission` – The permission type that defines which
         | 
| 1268 | 
            +
                #       source queues can specify the current queue as the dead-letter
         | 
| 1269 | 
            +
                #       queue. Valid values are:
         | 
| 1270 | 
            +
                #
         | 
| 1271 | 
            +
                #       * `allowAll` – (Default) Any source queues in this Amazon Web
         | 
| 1272 | 
            +
                #         Services account in the same Region can specify this queue as
         | 
| 1273 | 
            +
                #         the dead-letter queue.
         | 
| 1274 | 
            +
                #
         | 
| 1275 | 
            +
                #       * `denyAll` – No source queues can specify this queue as the
         | 
| 1276 | 
            +
                #         dead-letter queue.
         | 
| 1277 | 
            +
                #
         | 
| 1278 | 
            +
                #       * `byQueue` – Only queues specified by the `sourceQueueArns`
         | 
| 1279 | 
            +
                #         parameter can specify this queue as the dead-letter queue.
         | 
| 1280 | 
            +
                #
         | 
| 1281 | 
            +
                #     * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
         | 
| 1282 | 
            +
                #       queues that can specify this queue as the dead-letter queue and
         | 
| 1283 | 
            +
                #       redrive messages. You can specify this parameter only when the
         | 
| 1284 | 
            +
                #       `redrivePermission` parameter is set to `byQueue`. You can specify
         | 
| 1285 | 
            +
                #       up to 10 source queue ARNs. To allow more than 10 source queues to
         | 
| 1286 | 
            +
                #       specify dead-letter queues, set the `redrivePermission` parameter
         | 
| 1287 | 
            +
                #       to `allowAll`.
         | 
| 1288 | 
            +
                #
         | 
| 1289 | 
            +
                #   <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
         | 
| 1290 | 
            +
                #   Similarly, the dead-letter queue of a standard queue must also be a
         | 
| 1291 | 
            +
                #   standard queue.
         | 
| 1202 1292 | 
             
                #
         | 
| 1203 | 
            -
                # | 
| 1204 | 
            -
                #     For more information about the visibility timeout, see [Visibility
         | 
| 1205 | 
            -
                #     Timeout][3] in the *Amazon SQS Developer Guide*.
         | 
| 1293 | 
            +
                #    </note>
         | 
| 1206 1294 | 
             
                #
         | 
| 1207 1295 | 
             
                #   The following attributes apply only to [server-side-encryption][4]:
         | 
| 1208 1296 | 
             
                #
         | 
| @@ -1217,8 +1305,8 @@ module Aws::SQS | |
| 1217 1305 | 
             
                #
         | 
| 1218 1306 | 
             
                #   * `SqsManagedSseEnabled` – Returns information about whether the queue
         | 
| 1219 1307 | 
             
                #     is using SSE-SQS encryption using SQS owned encryption keys. Only
         | 
| 1220 | 
            -
                #     one server-side encryption option is supported per queue ( | 
| 1221 | 
            -
                #     [SSE-KMS][7] or [SSE-SQS][8]).
         | 
| 1308 | 
            +
                #     one server-side encryption option is supported per queue (for
         | 
| 1309 | 
            +
                #     example, [SSE-KMS][7] or [SSE-SQS][8]).
         | 
| 1222 1310 | 
             
                #
         | 
| 1223 1311 | 
             
                #   The following attributes apply only to [FIFO (first-in-first-out)
         | 
| 1224 1312 | 
             
                #   queues][9]:
         | 
| @@ -1265,8 +1353,8 @@ module Aws::SQS | |
| 1265 1353 | 
             
                #
         | 
| 1266 1354 | 
             
                #
         | 
| 1267 1355 | 
             
                #   [1]: http://en.wikipedia.org/wiki/Unix_time
         | 
| 1268 | 
            -
                #   [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs- | 
| 1269 | 
            -
                #   [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs- | 
| 1356 | 
            +
                #   [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
         | 
| 1357 | 
            +
                #   [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
         | 
| 1270 1358 | 
             
                #   [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
         | 
| 1271 1359 | 
             
                #   [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
         | 
| 1272 1360 | 
             
                #   [6]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work
         | 
| @@ -1413,13 +1501,57 @@ module Aws::SQS | |
| 1413 1501 | 
             
                  req.send_request(options)
         | 
| 1414 1502 | 
             
                end
         | 
| 1415 1503 |  | 
| 1504 | 
            +
                # Gets the most recent message movement tasks (up to 10) under a
         | 
| 1505 | 
            +
                # specific source queue.
         | 
| 1506 | 
            +
                #
         | 
| 1507 | 
            +
                # @option params [required, String] :source_arn
         | 
| 1508 | 
            +
                #   The ARN of the queue whose message movement tasks are to be listed.
         | 
| 1509 | 
            +
                #
         | 
| 1510 | 
            +
                # @option params [Integer] :max_results
         | 
| 1511 | 
            +
                #   The maximum number of results to include in the response. The default
         | 
| 1512 | 
            +
                #   is 1, which provides the most recent message movement task. The upper
         | 
| 1513 | 
            +
                #   limit is 10.
         | 
| 1514 | 
            +
                #
         | 
| 1515 | 
            +
                # @return [Types::ListMessageMoveTasksResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| 1516 | 
            +
                #
         | 
| 1517 | 
            +
                #   * {Types::ListMessageMoveTasksResult#results #results} => Array<Types::ListMessageMoveTasksResultEntry>
         | 
| 1518 | 
            +
                #
         | 
| 1519 | 
            +
                # @example Request syntax with placeholder values
         | 
| 1520 | 
            +
                #
         | 
| 1521 | 
            +
                #   resp = client.list_message_move_tasks({
         | 
| 1522 | 
            +
                #     source_arn: "String", # required
         | 
| 1523 | 
            +
                #     max_results: 1,
         | 
| 1524 | 
            +
                #   })
         | 
| 1525 | 
            +
                #
         | 
| 1526 | 
            +
                # @example Response structure
         | 
| 1527 | 
            +
                #
         | 
| 1528 | 
            +
                #   resp.results #=> Array
         | 
| 1529 | 
            +
                #   resp.results[0].task_handle #=> String
         | 
| 1530 | 
            +
                #   resp.results[0].status #=> String
         | 
| 1531 | 
            +
                #   resp.results[0].source_arn #=> String
         | 
| 1532 | 
            +
                #   resp.results[0].destination_arn #=> String
         | 
| 1533 | 
            +
                #   resp.results[0].max_number_of_messages_per_second #=> Integer
         | 
| 1534 | 
            +
                #   resp.results[0].approximate_number_of_messages_moved #=> Integer
         | 
| 1535 | 
            +
                #   resp.results[0].approximate_number_of_messages_to_move #=> Integer
         | 
| 1536 | 
            +
                #   resp.results[0].failure_reason #=> String
         | 
| 1537 | 
            +
                #   resp.results[0].started_timestamp #=> Integer
         | 
| 1538 | 
            +
                #
         | 
| 1539 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListMessageMoveTasks AWS API Documentation
         | 
| 1540 | 
            +
                #
         | 
| 1541 | 
            +
                # @overload list_message_move_tasks(params = {})
         | 
| 1542 | 
            +
                # @param [Hash] params ({})
         | 
| 1543 | 
            +
                def list_message_move_tasks(params = {}, options = {})
         | 
| 1544 | 
            +
                  req = build_request(:list_message_move_tasks, params)
         | 
| 1545 | 
            +
                  req.send_request(options)
         | 
| 1546 | 
            +
                end
         | 
| 1547 | 
            +
             | 
| 1416 1548 | 
             
                # List all cost allocation tags added to the specified Amazon SQS queue.
         | 
| 1417 1549 | 
             
                # For an overview, see [Tagging Your Amazon SQS Queues][1] in the
         | 
| 1418 1550 | 
             
                # *Amazon SQS Developer Guide*.
         | 
| 1419 1551 | 
             
                #
         | 
| 1420 1552 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 1421 | 
            -
                # information, see [Grant cross-account permissions to a role and a | 
| 1422 | 
            -
                #  | 
| 1553 | 
            +
                # information, see [Grant cross-account permissions to a role and a
         | 
| 1554 | 
            +
                # username][2] in the *Amazon SQS Developer Guide*.
         | 
| 1423 1555 | 
             
                #
         | 
| 1424 1556 | 
             
                #  </note>
         | 
| 1425 1557 | 
             
                #
         | 
| @@ -1469,8 +1601,8 @@ module Aws::SQS | |
| 1469 1601 | 
             
                # request to `listQueues` to receive the next page of results.
         | 
| 1470 1602 | 
             
                #
         | 
| 1471 1603 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 1472 | 
            -
                # information, see [Grant cross-account permissions to a role and a | 
| 1473 | 
            -
                #  | 
| 1604 | 
            +
                # information, see [Grant cross-account permissions to a role and a
         | 
| 1605 | 
            +
                # username][1] in the *Amazon SQS Developer Guide*.
         | 
| 1474 1606 | 
             
                #
         | 
| 1475 1607 | 
             
                #  </note>
         | 
| 1476 1608 | 
             
                #
         | 
| @@ -1638,7 +1770,7 @@ module Aws::SQS | |
| 1638 1770 | 
             
                #
         | 
| 1639 1771 | 
             
                #   * `SenderId`
         | 
| 1640 1772 | 
             
                #
         | 
| 1641 | 
            -
                #     * For  | 
| 1773 | 
            +
                #     * For a user, returns the user ID, for example
         | 
| 1642 1774 | 
             
                #       `ABCDEFGHI1JKLMNOPQ23R`.
         | 
| 1643 1775 | 
             
                #
         | 
| 1644 1776 | 
             
                #     * For an IAM role, returns the IAM role ID, for example
         | 
| @@ -1649,7 +1781,7 @@ module Aws::SQS | |
| 1649 1781 | 
             
                #
         | 
| 1650 1782 | 
             
                #   * `SqsManagedSseEnabled` – Enables server-side queue encryption using
         | 
| 1651 1783 | 
             
                #     SQS owned encryption keys. Only one server-side encryption option is
         | 
| 1652 | 
            -
                #     supported per queue ( | 
| 1784 | 
            +
                #     supported per queue (for example, [SSE-KMS][2] or [SSE-SQS][3]).
         | 
| 1653 1785 | 
             
                #
         | 
| 1654 1786 | 
             
                #   * `MessageDeduplicationId` – Returns the value provided by the
         | 
| 1655 1787 | 
             
                #     producer that calls the ` SendMessage ` action.
         | 
| @@ -1832,7 +1964,7 @@ module Aws::SQS | |
| 1832 1964 | 
             
                #
         | 
| 1833 1965 | 
             
                # * Cross-account permissions don't apply to this action. For more
         | 
| 1834 1966 | 
             
                #   information, see [Grant cross-account permissions to a role and a
         | 
| 1835 | 
            -
                #    | 
| 1967 | 
            +
                #   username][1] in the *Amazon SQS Developer Guide*.
         | 
| 1836 1968 | 
             
                #
         | 
| 1837 1969 | 
             
                # * To remove the ability to change queue permissions, you must deny
         | 
| 1838 1970 | 
             
                #   permission to the `AddPermission`, `RemovePermission`, and
         | 
| @@ -1893,7 +2025,7 @@ module Aws::SQS | |
| 1893 2025 | 
             
                #
         | 
| 1894 2026 | 
             
                # @option params [required, String] :message_body
         | 
| 1895 2027 | 
             
                #   The message to send. The minimum size is one character. The maximum
         | 
| 1896 | 
            -
                #   size is 256  | 
| 2028 | 
            +
                #   size is 256 KiB.
         | 
| 1897 2029 | 
             
                #
         | 
| 1898 2030 | 
             
                #   A message can include only XML, JSON, and unformatted text. The
         | 
| 1899 2031 | 
             
                #   following Unicode characters are allowed:
         | 
| @@ -2088,7 +2220,9 @@ module Aws::SQS | |
| 2088 2220 | 
             
                  req.send_request(options)
         | 
| 2089 2221 | 
             
                end
         | 
| 2090 2222 |  | 
| 2091 | 
            -
                #  | 
| 2223 | 
            +
                # You can use `SendMessageBatch` to send up to 10 messages to the
         | 
| 2224 | 
            +
                # specified queue by assigning either identical or different values to
         | 
| 2225 | 
            +
                # each message (or by not assigning values at all). This is a batch
         | 
| 2092 2226 | 
             
                # version of ` SendMessage.` For a FIFO queue, multiple messages within
         | 
| 2093 2227 | 
             
                # a single batch are enqueued in the order they are sent.
         | 
| 2094 2228 | 
             
                #
         | 
| @@ -2099,7 +2233,7 @@ module Aws::SQS | |
| 2099 2233 | 
             
                #
         | 
| 2100 2234 | 
             
                # The maximum allowed individual message size and the maximum total
         | 
| 2101 2235 | 
             
                # payload size (the sum of the individual lengths of all of the batched
         | 
| 2102 | 
            -
                # messages) are both 256  | 
| 2236 | 
            +
                # messages) are both 256 KiB (262,144 bytes).
         | 
| 2103 2237 | 
             
                #
         | 
| 2104 2238 | 
             
                # A message can include only XML, JSON, and unformatted text. The
         | 
| 2105 2239 | 
             
                # following Unicode characters are allowed:
         | 
| @@ -2113,14 +2247,6 @@ module Aws::SQS | |
| 2113 2247 | 
             
                # If you don't specify the `DelaySeconds` parameter for an entry,
         | 
| 2114 2248 | 
             
                # Amazon SQS uses the default value for the queue.
         | 
| 2115 2249 | 
             
                #
         | 
| 2116 | 
            -
                # Some actions take lists of parameters. These lists are specified using
         | 
| 2117 | 
            -
                # the `param.n` notation. Values of `n` are integers starting from 1.
         | 
| 2118 | 
            -
                # For example, a parameter list with two elements looks like this:
         | 
| 2119 | 
            -
                #
         | 
| 2120 | 
            -
                # `&AttributeName.1=first`
         | 
| 2121 | 
            -
                #
         | 
| 2122 | 
            -
                # `&AttributeName.2=second`
         | 
| 2123 | 
            -
                #
         | 
| 2124 2250 | 
             
                #
         | 
| 2125 2251 | 
             
                #
         | 
| 2126 2252 | 
             
                # [1]: http://www.w3.org/TR/REC-xml/#charsets
         | 
| @@ -2199,7 +2325,9 @@ module Aws::SQS | |
| 2199 2325 | 
             
                # queue's attributes, the change can take up to 60 seconds for most of
         | 
| 2200 2326 | 
             
                # the attributes to propagate throughout the Amazon SQS system. Changes
         | 
| 2201 2327 | 
             
                # made to the `MessageRetentionPeriod` attribute can take up to 15
         | 
| 2202 | 
            -
                # minutes | 
| 2328 | 
            +
                # minutes and will impact existing messages in the queue potentially
         | 
| 2329 | 
            +
                # causing them to be expired and deleted if the `MessageRetentionPeriod`
         | 
| 2330 | 
            +
                # is reduced below the age of existing messages.
         | 
| 2203 2331 | 
             
                #
         | 
| 2204 2332 | 
             
                # <note markdown="1"> * In the future, new attributes might be added. If you write code that
         | 
| 2205 2333 | 
             
                #   calls this action, we recommend that you structure your code so that
         | 
| @@ -2207,7 +2335,7 @@ module Aws::SQS | |
| 2207 2335 | 
             
                #
         | 
| 2208 2336 | 
             
                # * Cross-account permissions don't apply to this action. For more
         | 
| 2209 2337 | 
             
                #   information, see [Grant cross-account permissions to a role and a
         | 
| 2210 | 
            -
                #    | 
| 2338 | 
            +
                #   username][1] in the *Amazon SQS Developer Guide*.
         | 
| 2211 2339 | 
             
                #
         | 
| 2212 2340 | 
             
                # * To remove the ability to change queue permissions, you must deny
         | 
| 2213 2341 | 
             
                #   permission to the `AddPermission`, `RemovePermission`, and
         | 
| @@ -2242,7 +2370,13 @@ module Aws::SQS | |
| 2242 2370 | 
             
                #   * `MessageRetentionPeriod` – The length of time, in seconds, for which
         | 
| 2243 2371 | 
             
                #     Amazon SQS retains a message. Valid values: An integer representing
         | 
| 2244 2372 | 
             
                #     seconds, from 60 (1 minute) to 1,209,600 (14 days). Default: 345,600
         | 
| 2245 | 
            -
                #     (4 days).
         | 
| 2373 | 
            +
                #     (4 days). When you change a queue's attributes, the change can take
         | 
| 2374 | 
            +
                #     up to 60 seconds for most of the attributes to propagate throughout
         | 
| 2375 | 
            +
                #     the Amazon SQS system. Changes made to the `MessageRetentionPeriod`
         | 
| 2376 | 
            +
                #     attribute can take up to 15 minutes and will impact existing
         | 
| 2377 | 
            +
                #     messages in the queue potentially causing them to be expired and
         | 
| 2378 | 
            +
                #     deleted if the `MessageRetentionPeriod` is reduced below the age of
         | 
| 2379 | 
            +
                #     existing messages.
         | 
| 2246 2380 | 
             
                #
         | 
| 2247 2381 | 
             
                #   * `Policy` – The queue's policy. A valid Amazon Web Services policy.
         | 
| 2248 2382 | 
             
                #     For more information about policy structure, see [Overview of Amazon
         | 
| @@ -2253,31 +2387,59 @@ module Aws::SQS | |
| 2253 2387 | 
             
                #     for which a ` ReceiveMessage ` action waits for a message to arrive.
         | 
| 2254 2388 | 
             
                #     Valid values: An integer from 0 to 20 (seconds). Default: 0.
         | 
| 2255 2389 | 
             
                #
         | 
| 2390 | 
            +
                #   * `VisibilityTimeout` – The visibility timeout for the queue, in
         | 
| 2391 | 
            +
                #     seconds. Valid values: An integer from 0 to 43,200 (12 hours).
         | 
| 2392 | 
            +
                #     Default: 30. For more information about the visibility timeout, see
         | 
| 2393 | 
            +
                #     [Visibility Timeout][2] in the *Amazon SQS Developer Guide*.
         | 
| 2394 | 
            +
                #
         | 
| 2395 | 
            +
                #   The following attributes apply only to [dead-letter queues:][3]
         | 
| 2396 | 
            +
                #
         | 
| 2256 2397 | 
             
                #   * `RedrivePolicy` – The string that includes the parameters for the
         | 
| 2257 2398 | 
             
                #     dead-letter queue functionality of the source queue as a JSON
         | 
| 2258 | 
            -
                #     object.  | 
| 2259 | 
            -
                #     dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
         | 
| 2260 | 
            -
                #     the *Amazon SQS Developer Guide*.
         | 
| 2399 | 
            +
                #     object. The parameters are as follows:
         | 
| 2261 2400 | 
             
                #
         | 
| 2262 2401 | 
             
                #     * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
         | 
| 2263 2402 | 
             
                #       dead-letter queue to which Amazon SQS moves messages after the
         | 
| 2264 2403 | 
             
                #       value of `maxReceiveCount` is exceeded.
         | 
| 2265 2404 | 
             
                #
         | 
| 2266 2405 | 
             
                #     * `maxReceiveCount` – The number of times a message is delivered to
         | 
| 2267 | 
            -
                #       the source queue before being moved to the dead-letter queue. | 
| 2268 | 
            -
                #       the `ReceiveCount` for a message exceeds the | 
| 2269 | 
            -
                #       a queue, Amazon SQS moves the message to the | 
| 2270 | 
            -
                #
         | 
| 2271 | 
            -
                # | 
| 2272 | 
            -
                # | 
| 2273 | 
            -
                #      | 
| 2274 | 
            -
                #
         | 
| 2275 | 
            -
                # | 
| 2406 | 
            +
                #       the source queue before being moved to the dead-letter queue.
         | 
| 2407 | 
            +
                #       Default: 10. When the `ReceiveCount` for a message exceeds the
         | 
| 2408 | 
            +
                #       `maxReceiveCount` for a queue, Amazon SQS moves the message to the
         | 
| 2409 | 
            +
                #       dead-letter-queue.
         | 
| 2410 | 
            +
                #
         | 
| 2411 | 
            +
                #   * `RedriveAllowPolicy` – The string that includes the parameters for
         | 
| 2412 | 
            +
                #     the permissions for the dead-letter queue redrive permission and
         | 
| 2413 | 
            +
                #     which source queues can specify dead-letter queues as a JSON object.
         | 
| 2414 | 
            +
                #     The parameters are as follows:
         | 
| 2415 | 
            +
                #
         | 
| 2416 | 
            +
                #     * `redrivePermission` – The permission type that defines which
         | 
| 2417 | 
            +
                #       source queues can specify the current queue as the dead-letter
         | 
| 2418 | 
            +
                #       queue. Valid values are:
         | 
| 2419 | 
            +
                #
         | 
| 2420 | 
            +
                #       * `allowAll` – (Default) Any source queues in this Amazon Web
         | 
| 2421 | 
            +
                #         Services account in the same Region can specify this queue as
         | 
| 2422 | 
            +
                #         the dead-letter queue.
         | 
| 2423 | 
            +
                #
         | 
| 2424 | 
            +
                #       * `denyAll` – No source queues can specify this queue as the
         | 
| 2425 | 
            +
                #         dead-letter queue.
         | 
| 2426 | 
            +
                #
         | 
| 2427 | 
            +
                #       * `byQueue` – Only queues specified by the `sourceQueueArns`
         | 
| 2428 | 
            +
                #         parameter can specify this queue as the dead-letter queue.
         | 
| 2429 | 
            +
                #
         | 
| 2430 | 
            +
                #     * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
         | 
| 2431 | 
            +
                #       queues that can specify this queue as the dead-letter queue and
         | 
| 2432 | 
            +
                #       redrive messages. You can specify this parameter only when the
         | 
| 2433 | 
            +
                #       `redrivePermission` parameter is set to `byQueue`. You can specify
         | 
| 2434 | 
            +
                #       up to 10 source queue ARNs. To allow more than 10 source queues to
         | 
| 2435 | 
            +
                #       specify dead-letter queues, set the `redrivePermission` parameter
         | 
| 2436 | 
            +
                #       to `allowAll`.
         | 
| 2437 | 
            +
                #
         | 
| 2438 | 
            +
                #   <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
         | 
| 2439 | 
            +
                #   Similarly, the dead-letter queue of a standard queue must also be a
         | 
| 2440 | 
            +
                #   standard queue.
         | 
| 2276 2441 | 
             
                #
         | 
| 2277 | 
            -
                # | 
| 2278 | 
            -
                #     seconds. Valid values: An integer from 0 to 43,200 (12 hours).
         | 
| 2279 | 
            -
                #     Default: 30. For more information about the visibility timeout, see
         | 
| 2280 | 
            -
                #     [Visibility Timeout][3] in the *Amazon SQS Developer Guide*.
         | 
| 2442 | 
            +
                #    </note>
         | 
| 2281 2443 | 
             
                #
         | 
| 2282 2444 | 
             
                #   The following attributes apply only to [server-side-encryption][4]:
         | 
| 2283 2445 | 
             
                #
         | 
| @@ -2299,7 +2461,7 @@ module Aws::SQS | |
| 2299 2461 | 
             
                #
         | 
| 2300 2462 | 
             
                #   * `SqsManagedSseEnabled` – Enables server-side queue encryption using
         | 
| 2301 2463 | 
             
                #     SQS owned encryption keys. Only one server-side encryption option is
         | 
| 2302 | 
            -
                #     supported per queue ( | 
| 2464 | 
            +
                #     supported per queue (for example, [SSE-KMS][9] or [SSE-SQS][10]).
         | 
| 2303 2465 | 
             
                #
         | 
| 2304 2466 | 
             
                #   The following attribute applies only to [FIFO (first-in-first-out)
         | 
| 2305 2467 | 
             
                #   queues][11]:
         | 
| @@ -2365,8 +2527,8 @@ module Aws::SQS | |
| 2365 2527 | 
             
                #
         | 
| 2366 2528 | 
             
                #
         | 
| 2367 2529 | 
             
                #   [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
         | 
| 2368 | 
            -
                #   [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs- | 
| 2369 | 
            -
                #   [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs- | 
| 2530 | 
            +
                #   [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
         | 
| 2531 | 
            +
                #   [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
         | 
| 2370 2532 | 
             
                #   [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
         | 
| 2371 2533 | 
             
                #   [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
         | 
| 2372 2534 | 
             
                #   [6]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
         | 
| @@ -2399,6 +2561,65 @@ module Aws::SQS | |
| 2399 2561 | 
             
                  req.send_request(options)
         | 
| 2400 2562 | 
             
                end
         | 
| 2401 2563 |  | 
| 2564 | 
            +
                # Starts an asynchronous task to move messages from a specified source
         | 
| 2565 | 
            +
                # queue to a specified destination queue.
         | 
| 2566 | 
            +
                #
         | 
| 2567 | 
            +
                # <note markdown="1"> * This action is currently limited to supporting message redrive from
         | 
| 2568 | 
            +
                #   dead-letter queues (DLQs) only. In this context, the source queue is
         | 
| 2569 | 
            +
                #   the dead-letter queue (DLQ), while the destination queue can be the
         | 
| 2570 | 
            +
                #   original source queue (from which the messages were driven to the
         | 
| 2571 | 
            +
                #   dead-letter-queue), or a custom destination queue.
         | 
| 2572 | 
            +
                #
         | 
| 2573 | 
            +
                # * Currently, only standard queues are supported.
         | 
| 2574 | 
            +
                #
         | 
| 2575 | 
            +
                # * Only one active message movement task is supported per queue at any
         | 
| 2576 | 
            +
                #   given time.
         | 
| 2577 | 
            +
                #
         | 
| 2578 | 
            +
                #  </note>
         | 
| 2579 | 
            +
                #
         | 
| 2580 | 
            +
                # @option params [required, String] :source_arn
         | 
| 2581 | 
            +
                #   The ARN of the queue that contains the messages to be moved to another
         | 
| 2582 | 
            +
                #   queue. Currently, only dead-letter queue (DLQ) ARNs are accepted.
         | 
| 2583 | 
            +
                #
         | 
| 2584 | 
            +
                # @option params [String] :destination_arn
         | 
| 2585 | 
            +
                #   The ARN of the queue that receives the moved messages. You can use
         | 
| 2586 | 
            +
                #   this field to specify the destination queue where you would like to
         | 
| 2587 | 
            +
                #   redrive messages. If this field is left blank, the messages will be
         | 
| 2588 | 
            +
                #   redriven back to their respective original source queues.
         | 
| 2589 | 
            +
                #
         | 
| 2590 | 
            +
                # @option params [Integer] :max_number_of_messages_per_second
         | 
| 2591 | 
            +
                #   The number of messages to be moved per second (the message movement
         | 
| 2592 | 
            +
                #   rate). You can use this field to define a fixed message movement rate.
         | 
| 2593 | 
            +
                #   The maximum value for messages per second is 500. If this field is
         | 
| 2594 | 
            +
                #   left blank, the system will optimize the rate based on the queue
         | 
| 2595 | 
            +
                #   message backlog size, which may vary throughout the duration of the
         | 
| 2596 | 
            +
                #   message movement task.
         | 
| 2597 | 
            +
                #
         | 
| 2598 | 
            +
                # @return [Types::StartMessageMoveTaskResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| 2599 | 
            +
                #
         | 
| 2600 | 
            +
                #   * {Types::StartMessageMoveTaskResult#task_handle #task_handle} => String
         | 
| 2601 | 
            +
                #
         | 
| 2602 | 
            +
                # @example Request syntax with placeholder values
         | 
| 2603 | 
            +
                #
         | 
| 2604 | 
            +
                #   resp = client.start_message_move_task({
         | 
| 2605 | 
            +
                #     source_arn: "String", # required
         | 
| 2606 | 
            +
                #     destination_arn: "String",
         | 
| 2607 | 
            +
                #     max_number_of_messages_per_second: 1,
         | 
| 2608 | 
            +
                #   })
         | 
| 2609 | 
            +
                #
         | 
| 2610 | 
            +
                # @example Response structure
         | 
| 2611 | 
            +
                #
         | 
| 2612 | 
            +
                #   resp.task_handle #=> String
         | 
| 2613 | 
            +
                #
         | 
| 2614 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/StartMessageMoveTask AWS API Documentation
         | 
| 2615 | 
            +
                #
         | 
| 2616 | 
            +
                # @overload start_message_move_task(params = {})
         | 
| 2617 | 
            +
                # @param [Hash] params ({})
         | 
| 2618 | 
            +
                def start_message_move_task(params = {}, options = {})
         | 
| 2619 | 
            +
                  req = build_request(:start_message_move_task, params)
         | 
| 2620 | 
            +
                  req.send_request(options)
         | 
| 2621 | 
            +
                end
         | 
| 2622 | 
            +
             | 
| 2402 2623 | 
             
                # Add cost allocation tags to the specified Amazon SQS queue. For an
         | 
| 2403 2624 | 
             
                # overview, see [Tagging Your Amazon SQS Queues][1] in the *Amazon SQS
         | 
| 2404 2625 | 
             
                # Developer Guide*.
         | 
| @@ -2419,8 +2640,8 @@ module Aws::SQS | |
| 2419 2640 | 
             
                # in the *Amazon SQS Developer Guide*.
         | 
| 2420 2641 | 
             
                #
         | 
| 2421 2642 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 2422 | 
            -
                # information, see [Grant cross-account permissions to a role and a | 
| 2423 | 
            -
                #  | 
| 2643 | 
            +
                # information, see [Grant cross-account permissions to a role and a
         | 
| 2644 | 
            +
                # username][3] in the *Amazon SQS Developer Guide*.
         | 
| 2424 2645 | 
             
                #
         | 
| 2425 2646 | 
             
                #  </note>
         | 
| 2426 2647 | 
             
                #
         | 
| @@ -2461,8 +2682,8 @@ module Aws::SQS | |
| 2461 2682 | 
             
                # SQS Developer Guide*.
         | 
| 2462 2683 | 
             
                #
         | 
| 2463 2684 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 2464 | 
            -
                # information, see [Grant cross-account permissions to a role and a | 
| 2465 | 
            -
                #  | 
| 2685 | 
            +
                # information, see [Grant cross-account permissions to a role and a
         | 
| 2686 | 
            +
                # username][2] in the *Amazon SQS Developer Guide*.
         | 
| 2466 2687 | 
             
                #
         | 
| 2467 2688 | 
             
                #  </note>
         | 
| 2468 2689 | 
             
                #
         | 
| @@ -2508,7 +2729,7 @@ module Aws::SQS | |
| 2508 2729 | 
             
                    params: params,
         | 
| 2509 2730 | 
             
                    config: config)
         | 
| 2510 2731 | 
             
                  context[:gem_name] = 'aws-sdk-sqs'
         | 
| 2511 | 
            -
                  context[:gem_version] = '1. | 
| 2732 | 
            +
                  context[:gem_version] = '1.57.0'
         | 
| 2512 2733 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 2513 2734 | 
             
                end
         | 
| 2514 2735 |  |