aws-sdk-sqs 1.32.0 → 1.37.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 +278 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-sqs.rb +3 -2
- data/lib/aws-sdk-sqs/client.rb +176 -38
- data/lib/aws-sdk-sqs/client_api.rb +1 -1
- data/lib/aws-sdk-sqs/errors.rb +1 -1
- data/lib/aws-sdk-sqs/message.rb +1 -1
- data/lib/aws-sdk-sqs/queue.rb +50 -4
- data/lib/aws-sdk-sqs/queue_poller.rb +1 -1
- data/lib/aws-sdk-sqs/resource.rb +58 -12
- data/lib/aws-sdk-sqs/types.rb +157 -19
- metadata +8 -5
    
        data/VERSION
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            1.37.0
         | 
    
        data/lib/aws-sdk-sqs.rb
    CHANGED
    
    | @@ -3,10 +3,11 @@ | |
| 3 3 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 4 4 | 
             
            #
         | 
| 5 5 | 
             
            # This file is generated. See the contributing guide for more information:
         | 
| 6 | 
            -
            # https://github.com/aws/aws-sdk-ruby/blob/ | 
| 6 | 
            +
            # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
         | 
| 7 7 | 
             
            #
         | 
| 8 8 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 9 9 |  | 
| 10 | 
            +
             | 
| 10 11 | 
             
            require 'aws-sdk-core'
         | 
| 11 12 | 
             
            require 'aws-sigv4'
         | 
| 12 13 |  | 
| @@ -49,6 +50,6 @@ require_relative 'aws-sdk-sqs/customizations' | |
| 49 50 | 
             
            # @!group service
         | 
| 50 51 | 
             
            module Aws::SQS
         | 
| 51 52 |  | 
| 52 | 
            -
              GEM_VERSION = '1. | 
| 53 | 
            +
              GEM_VERSION = '1.37.0'
         | 
| 53 54 |  | 
| 54 55 | 
             
            end
         | 
    
        data/lib/aws-sdk-sqs/client.rb
    CHANGED
    
    | @@ -3,7 +3,7 @@ | |
| 3 3 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 4 4 | 
             
            #
         | 
| 5 5 | 
             
            # This file is generated. See the contributing guide for more information:
         | 
| 6 | 
            -
            # https://github.com/aws/aws-sdk-ruby/blob/ | 
| 6 | 
            +
            # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
         | 
| 7 7 | 
             
            #
         | 
| 8 8 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 9 9 |  | 
| @@ -368,8 +368,8 @@ module Aws::SQS | |
| 368 368 | 
             
                # `&AttributeName.2=second`
         | 
| 369 369 | 
             
                #
         | 
| 370 370 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 371 | 
            -
                # information, see [Grant  | 
| 372 | 
            -
                #  | 
| 371 | 
            +
                # information, see [Grant cross-account permissions to a role and a user
         | 
| 372 | 
            +
                # name][4] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 373 373 | 
             
                #
         | 
| 374 374 | 
             
                #  </note>
         | 
| 375 375 | 
             
                #
         | 
| @@ -653,8 +653,8 @@ module Aws::SQS | |
| 653 653 | 
             
                # `&AttributeName.2=second`
         | 
| 654 654 | 
             
                #
         | 
| 655 655 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 656 | 
            -
                # information, see [Grant  | 
| 657 | 
            -
                #  | 
| 656 | 
            +
                # information, see [Grant cross-account permissions to a role and a user
         | 
| 657 | 
            +
                # name][3] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 658 658 | 
             
                #
         | 
| 659 659 | 
             
                #  </note>
         | 
| 660 660 | 
             
                #
         | 
| @@ -752,22 +752,22 @@ module Aws::SQS | |
| 752 752 | 
             
                #   The following attributes apply only to [FIFO (first-in-first-out)
         | 
| 753 753 | 
             
                #   queues][9]\:
         | 
| 754 754 | 
             
                #
         | 
| 755 | 
            -
                #   * `FifoQueue` – Designates a queue as FIFO. Valid values | 
| 756 | 
            -
                #     `false`. If you don't specify the `FifoQueue` attribute, Amazon | 
| 757 | 
            -
                #     creates a standard queue. You can provide this attribute only | 
| 758 | 
            -
                #     queue creation. You can't change it for an existing queue. | 
| 759 | 
            -
                #     set this attribute, you must also provide the | 
| 760 | 
            -
                #     your messages explicitly.
         | 
| 755 | 
            +
                #   * `FifoQueue` – Designates a queue as FIFO. Valid values are `true`
         | 
| 756 | 
            +
                #     and `false`. If you don't specify the `FifoQueue` attribute, Amazon
         | 
| 757 | 
            +
                #     SQS creates a standard queue. You can provide this attribute only
         | 
| 758 | 
            +
                #     during queue creation. You can't change it for an existing queue.
         | 
| 759 | 
            +
                #     When you set this attribute, you must also provide the
         | 
| 760 | 
            +
                #     `MessageGroupId` for your messages explicitly.
         | 
| 761 761 | 
             
                #
         | 
| 762 762 | 
             
                #     For more information, see [FIFO Queue Logic][10] in the *Amazon
         | 
| 763 763 | 
             
                #     Simple Queue Service Developer Guide*.
         | 
| 764 764 | 
             
                #
         | 
| 765 765 | 
             
                #   * `ContentBasedDeduplication` – Enables content-based deduplication.
         | 
| 766 | 
            -
                #     Valid values | 
| 766 | 
            +
                #     Valid values are `true` and `false`. For more information, see
         | 
| 767 767 | 
             
                #     [Exactly-Once Processing][11] in the *Amazon Simple Queue Service
         | 
| 768 | 
            -
                #     Developer Guide*.
         | 
| 768 | 
            +
                #     Developer Guide*. Note the following:
         | 
| 769 769 | 
             
                #
         | 
| 770 | 
            -
                #     * Every message must have a unique `MessageDeduplicationId | 
| 770 | 
            +
                #     * Every message must have a unique `MessageDeduplicationId`.
         | 
| 771 771 | 
             
                #
         | 
| 772 772 | 
             
                #       * You may provide a `MessageDeduplicationId` explicitly.
         | 
| 773 773 | 
             
                #
         | 
| @@ -795,6 +795,50 @@ module Aws::SQS | |
| 795 795 | 
             
                #       `MessageDeduplicationId`, the two messages are treated as
         | 
| 796 796 | 
             
                #       duplicates and only one copy of the message is delivered.
         | 
| 797 797 | 
             
                #
         | 
| 798 | 
            +
                #   **Preview: High throughput for FIFO queues**
         | 
| 799 | 
            +
                #
         | 
| 800 | 
            +
                #   **High throughput for Amazon SQS FIFO queues is in preview release and
         | 
| 801 | 
            +
                #   is subject to change.** This feature provides a high number of
         | 
| 802 | 
            +
                #   transactions per second (TPS) for messages in FIFO queues. For
         | 
| 803 | 
            +
                #   information on throughput quotas, see [Quotas related to messages][12]
         | 
| 804 | 
            +
                #   in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 805 | 
            +
                #
         | 
| 806 | 
            +
                #   This preview includes two new attributes:
         | 
| 807 | 
            +
                #
         | 
| 808 | 
            +
                #   * `DeduplicationScope` – Specifies whether message deduplication
         | 
| 809 | 
            +
                #     occurs at the message group or queue level. Valid values are
         | 
| 810 | 
            +
                #     `messageGroup` and `queue`.
         | 
| 811 | 
            +
                #
         | 
| 812 | 
            +
                #   * `FifoThroughputLimit` – Specifies whether the FIFO queue throughput
         | 
| 813 | 
            +
                #     quota applies to the entire queue or per message group. Valid values
         | 
| 814 | 
            +
                #     are `perQueue` and `perMessageGroupId`. The `perMessageGroupId`
         | 
| 815 | 
            +
                #     value is allowed only when the value for `DeduplicationScope` is
         | 
| 816 | 
            +
                #     `messageGroup`.
         | 
| 817 | 
            +
                #
         | 
| 818 | 
            +
                #   To enable high throughput for FIFO queues, do the following:
         | 
| 819 | 
            +
                #
         | 
| 820 | 
            +
                #   * Set `DeduplicationScope` to `messageGroup`.
         | 
| 821 | 
            +
                #
         | 
| 822 | 
            +
                #   * Set `FifoThroughputLimit` to `perMessageGroupId`.
         | 
| 823 | 
            +
                #
         | 
| 824 | 
            +
                #   If you set these attributes to anything other than the values shown
         | 
| 825 | 
            +
                #   for enabling high throughput, standard throughput is in effect and
         | 
| 826 | 
            +
                #   deduplication occurs as specified.
         | 
| 827 | 
            +
                #
         | 
| 828 | 
            +
                #   This preview is available in the following AWS Regions:
         | 
| 829 | 
            +
                #
         | 
| 830 | 
            +
                #   * US East (Ohio); us-east-2
         | 
| 831 | 
            +
                #
         | 
| 832 | 
            +
                #   * US East (N. Virginia); us-east-1
         | 
| 833 | 
            +
                #
         | 
| 834 | 
            +
                #   * US West (Oregon); us-west-2
         | 
| 835 | 
            +
                #
         | 
| 836 | 
            +
                #   * Europe (Ireland); eu-west-1
         | 
| 837 | 
            +
                #
         | 
| 838 | 
            +
                #   For more information about high throughput for FIFO queues, see
         | 
| 839 | 
            +
                #   [Preview: High throughput for FIFO queues][13] in the *Amazon Simple
         | 
| 840 | 
            +
                #   Queue Service Developer Guide*.
         | 
| 841 | 
            +
                #
         | 
| 798 842 | 
             
                #
         | 
| 799 843 | 
             
                #
         | 
| 800 844 | 
             
                #   [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
         | 
| @@ -808,6 +852,8 @@ module Aws::SQS | |
| 808 852 | 
             
                #   [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
         | 
| 809 853 | 
             
                #   [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic
         | 
| 810 854 | 
             
                #   [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing
         | 
| 855 | 
            +
                #   [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
         | 
| 856 | 
            +
                #   [13]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
         | 
| 811 857 | 
             
                #
         | 
| 812 858 | 
             
                # @option params [Hash<String,String>] :tags
         | 
| 813 859 | 
             
                #   Add cost allocation tags to the specified Amazon SQS queue. For an
         | 
| @@ -833,8 +879,8 @@ module Aws::SQS | |
| 833 879 | 
             
                #   `sqs:CreateQueue` and `sqs:TagQueue` permissions.
         | 
| 834 880 | 
             
                #
         | 
| 835 881 | 
             
                #    Cross-account permissions don't apply to this action. For more
         | 
| 836 | 
            -
                #   information, see [Grant  | 
| 837 | 
            -
                #    | 
| 882 | 
            +
                #   information, see [Grant cross-account permissions to a role and a user
         | 
| 883 | 
            +
                #   name][3] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 838 884 | 
             
                #
         | 
| 839 885 | 
             
                #    </note>
         | 
| 840 886 | 
             
                #
         | 
| @@ -999,8 +1045,8 @@ module Aws::SQS | |
| 999 1045 | 
             
                # creating a queue with the same name.
         | 
| 1000 1046 | 
             
                #
         | 
| 1001 1047 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 1002 | 
            -
                # information, see [Grant  | 
| 1003 | 
            -
                #  | 
| 1048 | 
            +
                # information, see [Grant cross-account permissions to a role and a user
         | 
| 1049 | 
            +
                # name][1] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 1004 1050 | 
             
                #
         | 
| 1005 1051 | 
             
                #  </note>
         | 
| 1006 1052 | 
             
                #
         | 
| @@ -1136,9 +1182,9 @@ module Aws::SQS | |
| 1136 1182 | 
             
                #   The following attributes apply only to [FIFO (first-in-first-out)
         | 
| 1137 1183 | 
             
                #   queues][7]\:
         | 
| 1138 1184 | 
             
                #
         | 
| 1139 | 
            -
                #   * `FifoQueue` – Returns whether the queue is FIFO. | 
| 1140 | 
            -
                #     information, see [FIFO Queue Logic][8] in the *Amazon | 
| 1141 | 
            -
                #     Service Developer Guide*.
         | 
| 1185 | 
            +
                #   * `FifoQueue` – Returns information about whether the queue is FIFO.
         | 
| 1186 | 
            +
                #     For more information, see [FIFO Queue Logic][8] in the *Amazon
         | 
| 1187 | 
            +
                #     Simple Queue Service Developer Guide*.
         | 
| 1142 1188 | 
             
                #
         | 
| 1143 1189 | 
             
                #     <note markdown="1"> To determine whether a queue is [FIFO][7], you can check whether
         | 
| 1144 1190 | 
             
                #     `QueueName` ends with the `.fifo` suffix.
         | 
| @@ -1150,6 +1196,50 @@ module Aws::SQS | |
| 1150 1196 | 
             
                #     [Exactly-Once Processing][9] in the *Amazon Simple Queue Service
         | 
| 1151 1197 | 
             
                #     Developer Guide*.
         | 
| 1152 1198 | 
             
                #
         | 
| 1199 | 
            +
                #   **Preview: High throughput for FIFO queues**
         | 
| 1200 | 
            +
                #
         | 
| 1201 | 
            +
                #   **High throughput for Amazon SQS FIFO queues is in preview release and
         | 
| 1202 | 
            +
                #   is subject to change.** This feature provides a high number of
         | 
| 1203 | 
            +
                #   transactions per second (TPS) for messages in FIFO queues. For
         | 
| 1204 | 
            +
                #   information on throughput quotas, see [Quotas related to messages][10]
         | 
| 1205 | 
            +
                #   in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 1206 | 
            +
                #
         | 
| 1207 | 
            +
                #   This preview includes two new attributes:
         | 
| 1208 | 
            +
                #
         | 
| 1209 | 
            +
                #   * `DeduplicationScope` – Specifies whether message deduplication
         | 
| 1210 | 
            +
                #     occurs at the message group or queue level. Valid values are
         | 
| 1211 | 
            +
                #     `messageGroup` and `queue`.
         | 
| 1212 | 
            +
                #
         | 
| 1213 | 
            +
                #   * `FifoThroughputLimit` – Specifies whether the FIFO queue throughput
         | 
| 1214 | 
            +
                #     quota applies to the entire queue or per message group. Valid values
         | 
| 1215 | 
            +
                #     are `perQueue` and `perMessageGroupId`. The `perMessageGroupId`
         | 
| 1216 | 
            +
                #     value is allowed only when the value for `DeduplicationScope` is
         | 
| 1217 | 
            +
                #     `messageGroup`.
         | 
| 1218 | 
            +
                #
         | 
| 1219 | 
            +
                #   To enable high throughput for FIFO queues, do the following:
         | 
| 1220 | 
            +
                #
         | 
| 1221 | 
            +
                #   * Set `DeduplicationScope` to `messageGroup`.
         | 
| 1222 | 
            +
                #
         | 
| 1223 | 
            +
                #   * Set `FifoThroughputLimit` to `perMessageGroupId`.
         | 
| 1224 | 
            +
                #
         | 
| 1225 | 
            +
                #   If you set these attributes to anything other than the values shown
         | 
| 1226 | 
            +
                #   for enabling high throughput, standard throughput is in effect and
         | 
| 1227 | 
            +
                #   deduplication occurs as specified.
         | 
| 1228 | 
            +
                #
         | 
| 1229 | 
            +
                #   This preview is available in the following AWS Regions:
         | 
| 1230 | 
            +
                #
         | 
| 1231 | 
            +
                #   * US East (Ohio); us-east-2
         | 
| 1232 | 
            +
                #
         | 
| 1233 | 
            +
                #   * US East (N. Virginia); us-east-1
         | 
| 1234 | 
            +
                #
         | 
| 1235 | 
            +
                #   * US West (Oregon); us-west-2
         | 
| 1236 | 
            +
                #
         | 
| 1237 | 
            +
                #   * Europe (Ireland); eu-west-1
         | 
| 1238 | 
            +
                #
         | 
| 1239 | 
            +
                #   For more information about high throughput for FIFO queues, see
         | 
| 1240 | 
            +
                #   [Preview: High throughput for FIFO queues][11] in the *Amazon Simple
         | 
| 1241 | 
            +
                #   Queue Service Developer Guide*.
         | 
| 1242 | 
            +
                #
         | 
| 1153 1243 | 
             
                #
         | 
| 1154 1244 | 
             
                #
         | 
| 1155 1245 | 
             
                #   [1]: http://en.wikipedia.org/wiki/Unix_time
         | 
| @@ -1161,6 +1251,8 @@ module Aws::SQS | |
| 1161 1251 | 
             
                #   [7]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
         | 
| 1162 1252 | 
             
                #   [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-understanding-logic
         | 
| 1163 1253 | 
             
                #   [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing
         | 
| 1254 | 
            +
                #   [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
         | 
| 1255 | 
            +
                #   [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
         | 
| 1164 1256 | 
             
                #
         | 
| 1165 1257 | 
             
                # @return [Types::GetQueueAttributesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| 1166 1258 | 
             
                #
         | 
| @@ -1170,7 +1262,7 @@ module Aws::SQS | |
| 1170 1262 | 
             
                #
         | 
| 1171 1263 | 
             
                #   resp = client.get_queue_attributes({
         | 
| 1172 1264 | 
             
                #     queue_url: "String", # required
         | 
| 1173 | 
            -
                #     attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds
         | 
| 1265 | 
            +
                #     attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit
         | 
| 1174 1266 | 
             
                #   })
         | 
| 1175 1267 | 
             
                #
         | 
| 1176 1268 | 
             
                # @example Response structure
         | 
| @@ -1302,8 +1394,8 @@ module Aws::SQS | |
| 1302 1394 | 
             
                # *Amazon Simple Queue Service Developer Guide*.
         | 
| 1303 1395 | 
             
                #
         | 
| 1304 1396 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 1305 | 
            -
                # information, see [Grant  | 
| 1306 | 
            -
                #  | 
| 1397 | 
            +
                # information, see [Grant cross-account permissions to a role and a user
         | 
| 1398 | 
            +
                # name][2] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 1307 1399 | 
             
                #
         | 
| 1308 1400 | 
             
                #  </note>
         | 
| 1309 1401 | 
             
                #
         | 
| @@ -1353,8 +1445,8 @@ module Aws::SQS | |
| 1353 1445 | 
             
                # request to `listQueues` to receive the next page of results.
         | 
| 1354 1446 | 
             
                #
         | 
| 1355 1447 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 1356 | 
            -
                # information, see [Grant  | 
| 1357 | 
            -
                #  | 
| 1448 | 
            +
                # information, see [Grant cross-account permissions to a role and a user
         | 
| 1449 | 
            +
                # name][1] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 1358 1450 | 
             
                #
         | 
| 1359 1451 | 
             
                #  </note>
         | 
| 1360 1452 | 
             
                #
         | 
| @@ -1667,7 +1759,7 @@ module Aws::SQS | |
| 1667 1759 | 
             
                #
         | 
| 1668 1760 | 
             
                #   resp = client.receive_message({
         | 
| 1669 1761 | 
             
                #     queue_url: "String", # required
         | 
| 1670 | 
            -
                #     attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds
         | 
| 1762 | 
            +
                #     attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit
         | 
| 1671 1763 | 
             
                #     message_attribute_names: ["MessageAttributeName"],
         | 
| 1672 1764 | 
             
                #     max_number_of_messages: 1,
         | 
| 1673 1765 | 
             
                #     visibility_timeout: 1,
         | 
| @@ -1709,8 +1801,8 @@ module Aws::SQS | |
| 1709 1801 | 
             
                # <note markdown="1"> * Only the owner of a queue can remove permissions from it.
         | 
| 1710 1802 | 
             
                #
         | 
| 1711 1803 | 
             
                # * Cross-account permissions don't apply to this action. For more
         | 
| 1712 | 
            -
                #   information, see [Grant  | 
| 1713 | 
            -
                #    | 
| 1804 | 
            +
                #   information, see [Grant cross-account permissions to a role and a
         | 
| 1805 | 
            +
                #   user name][1] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 1714 1806 | 
             
                #
         | 
| 1715 1807 | 
             
                # * To remove the ability to change queue permissions, you must deny
         | 
| 1716 1808 | 
             
                #   permission to the `AddPermission`, `RemovePermission`, and
         | 
| @@ -2085,8 +2177,8 @@ module Aws::SQS | |
| 2085 2177 | 
             
                #   it can handle new attributes gracefully.
         | 
| 2086 2178 | 
             
                #
         | 
| 2087 2179 | 
             
                # * Cross-account permissions don't apply to this action. For more
         | 
| 2088 | 
            -
                #   information, see [Grant  | 
| 2089 | 
            -
                #    | 
| 2180 | 
            +
                #   information, see [Grant cross-account permissions to a role and a
         | 
| 2181 | 
            +
                #   user name][1] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 2090 2182 | 
             
                #
         | 
| 2091 2183 | 
             
                # * To remove the ability to change queue permissions, you must deny
         | 
| 2092 2184 | 
             
                #   permission to the `AddPermission`, `RemovePermission`, and
         | 
| @@ -2181,9 +2273,9 @@ module Aws::SQS | |
| 2181 2273 | 
             
                #
         | 
| 2182 2274 | 
             
                #   * `ContentBasedDeduplication` – Enables content-based deduplication.
         | 
| 2183 2275 | 
             
                #     For more information, see [Exactly-Once Processing][10] in the
         | 
| 2184 | 
            -
                #     *Amazon Simple Queue Service Developer Guide*.
         | 
| 2276 | 
            +
                #     *Amazon Simple Queue Service Developer Guide*. Note the following:
         | 
| 2185 2277 | 
             
                #
         | 
| 2186 | 
            -
                #     * Every message must have a unique `MessageDeduplicationId | 
| 2278 | 
            +
                #     * Every message must have a unique `MessageDeduplicationId`.
         | 
| 2187 2279 | 
             
                #
         | 
| 2188 2280 | 
             
                #       * You may provide a `MessageDeduplicationId` explicitly.
         | 
| 2189 2281 | 
             
                #
         | 
| @@ -2211,6 +2303,50 @@ module Aws::SQS | |
| 2211 2303 | 
             
                #       `MessageDeduplicationId`, the two messages are treated as
         | 
| 2212 2304 | 
             
                #       duplicates and only one copy of the message is delivered.
         | 
| 2213 2305 | 
             
                #
         | 
| 2306 | 
            +
                #   **Preview: High throughput for FIFO queues**
         | 
| 2307 | 
            +
                #
         | 
| 2308 | 
            +
                #   **High throughput for Amazon SQS FIFO queues is in preview release and
         | 
| 2309 | 
            +
                #   is subject to change.** This feature provides a high number of
         | 
| 2310 | 
            +
                #   transactions per second (TPS) for messages in FIFO queues. For
         | 
| 2311 | 
            +
                #   information on throughput quotas, see [Quotas related to messages][11]
         | 
| 2312 | 
            +
                #   in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 2313 | 
            +
                #
         | 
| 2314 | 
            +
                #   This preview includes two new attributes:
         | 
| 2315 | 
            +
                #
         | 
| 2316 | 
            +
                #   * `DeduplicationScope` – Specifies whether message deduplication
         | 
| 2317 | 
            +
                #     occurs at the message group or queue level. Valid values are
         | 
| 2318 | 
            +
                #     `messageGroup` and `queue`.
         | 
| 2319 | 
            +
                #
         | 
| 2320 | 
            +
                #   * `FifoThroughputLimit` – Specifies whether the FIFO queue throughput
         | 
| 2321 | 
            +
                #     quota applies to the entire queue or per message group. Valid values
         | 
| 2322 | 
            +
                #     are `perQueue` and `perMessageGroupId`. The `perMessageGroupId`
         | 
| 2323 | 
            +
                #     value is allowed only when the value for `DeduplicationScope` is
         | 
| 2324 | 
            +
                #     `messageGroup`.
         | 
| 2325 | 
            +
                #
         | 
| 2326 | 
            +
                #   To enable high throughput for FIFO queues, do the following:
         | 
| 2327 | 
            +
                #
         | 
| 2328 | 
            +
                #   * Set `DeduplicationScope` to `messageGroup`.
         | 
| 2329 | 
            +
                #
         | 
| 2330 | 
            +
                #   * Set `FifoThroughputLimit` to `perMessageGroupId`.
         | 
| 2331 | 
            +
                #
         | 
| 2332 | 
            +
                #   If you set these attributes to anything other than the values shown
         | 
| 2333 | 
            +
                #   for enabling high throughput, standard throughput is in effect and
         | 
| 2334 | 
            +
                #   deduplication occurs as specified.
         | 
| 2335 | 
            +
                #
         | 
| 2336 | 
            +
                #   This preview is available in the following AWS Regions:
         | 
| 2337 | 
            +
                #
         | 
| 2338 | 
            +
                #   * US East (Ohio); us-east-2
         | 
| 2339 | 
            +
                #
         | 
| 2340 | 
            +
                #   * US East (N. Virginia); us-east-1
         | 
| 2341 | 
            +
                #
         | 
| 2342 | 
            +
                #   * US West (Oregon); us-west-2
         | 
| 2343 | 
            +
                #
         | 
| 2344 | 
            +
                #   * Europe (Ireland); eu-west-1
         | 
| 2345 | 
            +
                #
         | 
| 2346 | 
            +
                #   For more information about high throughput for FIFO queues, see
         | 
| 2347 | 
            +
                #   [Preview: High throughput for FIFO queues][12] in the *Amazon Simple
         | 
| 2348 | 
            +
                #   Queue Service Developer Guide*.
         | 
| 2349 | 
            +
                #
         | 
| 2214 2350 | 
             
                #
         | 
| 2215 2351 | 
             
                #
         | 
| 2216 2352 | 
             
                #   [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
         | 
| @@ -2223,6 +2359,8 @@ module Aws::SQS | |
| 2223 2359 | 
             
                #   [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work
         | 
| 2224 2360 | 
             
                #   [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
         | 
| 2225 2361 | 
             
                #   [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing
         | 
| 2362 | 
            +
                #   [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
         | 
| 2363 | 
            +
                #   [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
         | 
| 2226 2364 | 
             
                #
         | 
| 2227 2365 | 
             
                # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
         | 
| 2228 2366 | 
             
                #
         | 
| @@ -2264,8 +2402,8 @@ module Aws::SQS | |
| 2264 2402 | 
             
                # in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 2265 2403 | 
             
                #
         | 
| 2266 2404 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 2267 | 
            -
                # information, see [Grant  | 
| 2268 | 
            -
                #  | 
| 2405 | 
            +
                # information, see [Grant cross-account permissions to a role and a user
         | 
| 2406 | 
            +
                # name][3] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 2269 2407 | 
             
                #
         | 
| 2270 2408 | 
             
                #  </note>
         | 
| 2271 2409 | 
             
                #
         | 
| @@ -2306,8 +2444,8 @@ module Aws::SQS | |
| 2306 2444 | 
             
                # Simple Queue Service Developer Guide*.
         | 
| 2307 2445 | 
             
                #
         | 
| 2308 2446 | 
             
                # <note markdown="1"> Cross-account permissions don't apply to this action. For more
         | 
| 2309 | 
            -
                # information, see [Grant  | 
| 2310 | 
            -
                #  | 
| 2447 | 
            +
                # information, see [Grant cross-account permissions to a role and a user
         | 
| 2448 | 
            +
                # name][2] in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 2311 2449 | 
             
                #
         | 
| 2312 2450 | 
             
                #  </note>
         | 
| 2313 2451 | 
             
                #
         | 
| @@ -2353,7 +2491,7 @@ module Aws::SQS | |
| 2353 2491 | 
             
                    params: params,
         | 
| 2354 2492 | 
             
                    config: config)
         | 
| 2355 2493 | 
             
                  context[:gem_name] = 'aws-sdk-sqs'
         | 
| 2356 | 
            -
                  context[:gem_version] = '1. | 
| 2494 | 
            +
                  context[:gem_version] = '1.37.0'
         | 
| 2357 2495 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 2358 2496 | 
             
                end
         | 
| 2359 2497 |  | 
| @@ -3,7 +3,7 @@ | |
| 3 3 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 4 4 | 
             
            #
         | 
| 5 5 | 
             
            # This file is generated. See the contributing guide for more information:
         | 
| 6 | 
            -
            # https://github.com/aws/aws-sdk-ruby/blob/ | 
| 6 | 
            +
            # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
         | 
| 7 7 | 
             
            #
         | 
| 8 8 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 9 9 |  | 
    
        data/lib/aws-sdk-sqs/errors.rb
    CHANGED
    
    | @@ -3,7 +3,7 @@ | |
| 3 3 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 4 4 | 
             
            #
         | 
| 5 5 | 
             
            # This file is generated. See the contributing guide for more information:
         | 
| 6 | 
            -
            # https://github.com/aws/aws-sdk-ruby/blob/ | 
| 6 | 
            +
            # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
         | 
| 7 7 | 
             
            #
         | 
| 8 8 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 9 9 |  | 
    
        data/lib/aws-sdk-sqs/message.rb
    CHANGED
    
    | @@ -3,7 +3,7 @@ | |
| 3 3 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 4 4 | 
             
            #
         | 
| 5 5 | 
             
            # This file is generated. See the contributing guide for more information:
         | 
| 6 | 
            -
            # https://github.com/aws/aws-sdk-ruby/blob/ | 
| 6 | 
            +
            # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
         | 
| 7 7 | 
             
            #
         | 
| 8 8 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 9 9 |  | 
    
        data/lib/aws-sdk-sqs/queue.rb
    CHANGED
    
    | @@ -3,7 +3,7 @@ | |
| 3 3 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 4 4 | 
             
            #
         | 
| 5 5 | 
             
            # This file is generated. See the contributing guide for more information:
         | 
| 6 | 
            -
            # https://github.com/aws/aws-sdk-ruby/blob/ | 
| 6 | 
            +
            # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
         | 
| 7 7 | 
             
            #
         | 
| 8 8 | 
             
            # WARNING ABOUT GENERATED CODE
         | 
| 9 9 |  | 
| @@ -195,7 +195,7 @@ module Aws::SQS | |
| 195 195 | 
             
                # @example Request syntax with placeholder values
         | 
| 196 196 | 
             
                #
         | 
| 197 197 | 
             
                #   message = queue.receive_messages({
         | 
| 198 | 
            -
                #     attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds
         | 
| 198 | 
            +
                #     attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit
         | 
| 199 199 | 
             
                #     message_attribute_names: ["MessageAttributeName"],
         | 
| 200 200 | 
             
                #     max_number_of_messages: 1,
         | 
| 201 201 | 
             
                #     visibility_timeout: 1,
         | 
| @@ -682,9 +682,9 @@ module Aws::SQS | |
| 682 682 | 
             
                #
         | 
| 683 683 | 
             
                #   * `ContentBasedDeduplication` – Enables content-based deduplication.
         | 
| 684 684 | 
             
                #     For more information, see [Exactly-Once Processing][10] in the
         | 
| 685 | 
            -
                #     *Amazon Simple Queue Service Developer Guide*.
         | 
| 685 | 
            +
                #     *Amazon Simple Queue Service Developer Guide*. Note the following:
         | 
| 686 686 | 
             
                #
         | 
| 687 | 
            -
                #     * Every message must have a unique `MessageDeduplicationId | 
| 687 | 
            +
                #     * Every message must have a unique `MessageDeduplicationId`.
         | 
| 688 688 | 
             
                #
         | 
| 689 689 | 
             
                #       * You may provide a `MessageDeduplicationId` explicitly.
         | 
| 690 690 | 
             
                #
         | 
| @@ -712,6 +712,50 @@ module Aws::SQS | |
| 712 712 | 
             
                #       `MessageDeduplicationId`, the two messages are treated as
         | 
| 713 713 | 
             
                #       duplicates and only one copy of the message is delivered.
         | 
| 714 714 | 
             
                #
         | 
| 715 | 
            +
                #   **Preview: High throughput for FIFO queues**
         | 
| 716 | 
            +
                #
         | 
| 717 | 
            +
                #   **High throughput for Amazon SQS FIFO queues is in preview release and
         | 
| 718 | 
            +
                #   is subject to change.** This feature provides a high number of
         | 
| 719 | 
            +
                #   transactions per second (TPS) for messages in FIFO queues. For
         | 
| 720 | 
            +
                #   information on throughput quotas, see [Quotas related to messages][11]
         | 
| 721 | 
            +
                #   in the *Amazon Simple Queue Service Developer Guide*.
         | 
| 722 | 
            +
                #
         | 
| 723 | 
            +
                #   This preview includes two new attributes:
         | 
| 724 | 
            +
                #
         | 
| 725 | 
            +
                #   * `DeduplicationScope` – Specifies whether message deduplication
         | 
| 726 | 
            +
                #     occurs at the message group or queue level. Valid values are
         | 
| 727 | 
            +
                #     `messageGroup` and `queue`.
         | 
| 728 | 
            +
                #
         | 
| 729 | 
            +
                #   * `FifoThroughputLimit` – Specifies whether the FIFO queue throughput
         | 
| 730 | 
            +
                #     quota applies to the entire queue or per message group. Valid values
         | 
| 731 | 
            +
                #     are `perQueue` and `perMessageGroupId`. The `perMessageGroupId`
         | 
| 732 | 
            +
                #     value is allowed only when the value for `DeduplicationScope` is
         | 
| 733 | 
            +
                #     `messageGroup`.
         | 
| 734 | 
            +
                #
         | 
| 735 | 
            +
                #   To enable high throughput for FIFO queues, do the following:
         | 
| 736 | 
            +
                #
         | 
| 737 | 
            +
                #   * Set `DeduplicationScope` to `messageGroup`.
         | 
| 738 | 
            +
                #
         | 
| 739 | 
            +
                #   * Set `FifoThroughputLimit` to `perMessageGroupId`.
         | 
| 740 | 
            +
                #
         | 
| 741 | 
            +
                #   If you set these attributes to anything other than the values shown
         | 
| 742 | 
            +
                #   for enabling high throughput, standard throughput is in effect and
         | 
| 743 | 
            +
                #   deduplication occurs as specified.
         | 
| 744 | 
            +
                #
         | 
| 745 | 
            +
                #   This preview is available in the following AWS Regions:
         | 
| 746 | 
            +
                #
         | 
| 747 | 
            +
                #   * US East (Ohio); us-east-2
         | 
| 748 | 
            +
                #
         | 
| 749 | 
            +
                #   * US East (N. Virginia); us-east-1
         | 
| 750 | 
            +
                #
         | 
| 751 | 
            +
                #   * US West (Oregon); us-west-2
         | 
| 752 | 
            +
                #
         | 
| 753 | 
            +
                #   * Europe (Ireland); eu-west-1
         | 
| 754 | 
            +
                #
         | 
| 755 | 
            +
                #   For more information about high throughput for FIFO queues, see
         | 
| 756 | 
            +
                #   [Preview: High throughput for FIFO queues][12] in the *Amazon Simple
         | 
| 757 | 
            +
                #   Queue Service Developer Guide*.
         | 
| 758 | 
            +
                #
         | 
| 715 759 | 
             
                #
         | 
| 716 760 | 
             
                #
         | 
| 717 761 | 
             
                #   [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
         | 
| @@ -724,6 +768,8 @@ module Aws::SQS | |
| 724 768 | 
             
                #   [8]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work
         | 
| 725 769 | 
             
                #   [9]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html
         | 
| 726 770 | 
             
                #   [10]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-queues-exactly-once-processing
         | 
| 771 | 
            +
                #   [11]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html
         | 
| 772 | 
            +
                #   [12]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/high-throughput-fifo.html
         | 
| 727 773 | 
             
                # @return [EmptyStructure]
         | 
| 728 774 | 
             
                def set_attributes(options = {})
         | 
| 729 775 | 
             
                  options = options.merge(queue_url: @url)
         |