aws-sdk-sqs 1.52.0 → 1.52.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa1381e4583039482a81d47ab283cedc45346fae2423cd1fa24f5ae0f7b54827
4
- data.tar.gz: c58445b61c80412dc7a140e57c1f29ff64aad1886150f8852d0f7b2184abb349
3
+ metadata.gz: 0bf99a4bb094a8b1c622dd9267738f157e10884005dbdc0d604588c138190368
4
+ data.tar.gz: 6945077761cbe9023076ac51d32d8545a1badd86bf8ad7183d846fb737a2ba5e
5
5
  SHA512:
6
- metadata.gz: ae12365448239d59e69007a9b659ad6d66069dde9d4d7e531e8d0cb2fbfa56d1bd090f117a9d215dc899814449a73d5bd2ea42ab29038667061224ce71bbfcb3
7
- data.tar.gz: 2502040dd1854c374bd8c87af9bbabcfaaef718e13dd094eae0c3a0deeb559ff5f751f36f473c6d843ef7bdf93581f1d8fb7f5aeb97fde09e06f01545005434e
6
+ metadata.gz: 5d0ba39889dd50415de62f09f3bc11c84cd542426bf05487d50034e6e4cf3185560c8e4a4902c8dbdcc73cbc70f3c76bed849a8f225ca4c6e8e12bfe60064add
7
+ data.tar.gz: 824994c8aff7caf9c249967eff4095afc05179852cb10ed937d5e338fce96179df23062b6e7cffd243b2af03bfc7227be1caf1f88cfd00b24788fca75a8b7411
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.52.1 (2022-12-02)
5
+ ------------------
6
+
7
+ * Issue - Raise ArgumentError when QueuePoller's :max_number_of_messages is not a positive integer.
8
+
4
9
  1.52.0 (2022-10-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.52.0
1
+ 1.52.1
@@ -2503,7 +2503,7 @@ module Aws::SQS
2503
2503
  params: params,
2504
2504
  config: config)
2505
2505
  context[:gem_name] = 'aws-sdk-sqs'
2506
- context[:gem_version] = '1.52.0'
2506
+ context[:gem_version] = '1.52.1'
2507
2507
  Seahorse::Client::Request.new(handlers, context)
2508
2508
  end
2509
2509
 
@@ -498,6 +498,12 @@ module Aws
498
498
  raise ArgumentError, "invalid option #{opt_name.inspect}"
499
499
  end
500
500
  end
501
+
502
+ max_number_of_messages = @request_params[:max_number_of_messages]
503
+ unless max_number_of_messages.is_a?(Integer) && max_number_of_messages.positive?
504
+ raise ArgumentError, ':max_number_of_messages must be a positive integer'
505
+ end
506
+
501
507
  @request_params.freeze
502
508
  freeze
503
509
  end
@@ -10,16 +10,6 @@
10
10
  module Aws::SQS
11
11
  module Types
12
12
 
13
- # @note When making an API call, you may pass AddPermissionRequest
14
- # data as a hash:
15
- #
16
- # {
17
- # queue_url: "String", # required
18
- # label: "String", # required
19
- # aws_account_ids: ["String"], # required
20
- # actions: ["String"], # required
21
- # }
22
- #
23
13
  # @!attribute [rw] queue_url
24
14
  # The URL of the Amazon SQS queue to which permissions are added.
25
15
  #
@@ -118,20 +108,6 @@ module Aws::SQS
118
108
  include Aws::Structure
119
109
  end
120
110
 
121
- # @note When making an API call, you may pass ChangeMessageVisibilityBatchRequest
122
- # data as a hash:
123
- #
124
- # {
125
- # queue_url: "String", # required
126
- # entries: [ # required
127
- # {
128
- # id: "String", # required
129
- # receipt_handle: "String", # required
130
- # visibility_timeout: 1,
131
- # },
132
- # ],
133
- # }
134
- #
135
111
  # @!attribute [rw] queue_url
136
112
  # The URL of the Amazon SQS queue whose messages' visibility is
137
113
  # changed.
@@ -167,15 +143,6 @@ module Aws::SQS
167
143
  #
168
144
  # `&ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45`
169
145
  #
170
- # @note When making an API call, you may pass ChangeMessageVisibilityBatchRequestEntry
171
- # data as a hash:
172
- #
173
- # {
174
- # id: "String", # required
175
- # receipt_handle: "String", # required
176
- # visibility_timeout: 1,
177
- # }
178
- #
179
146
  # @!attribute [rw] id
180
147
  # An identifier for this particular receipt handle used to communicate
181
148
  # the result.
@@ -243,15 +210,6 @@ module Aws::SQS
243
210
  include Aws::Structure
244
211
  end
245
212
 
246
- # @note When making an API call, you may pass ChangeMessageVisibilityRequest
247
- # data as a hash:
248
- #
249
- # {
250
- # queue_url: "String", # required
251
- # receipt_handle: "String", # required
252
- # visibility_timeout: 1, # required
253
- # }
254
- #
255
213
  # @!attribute [rw] queue_url
256
214
  # The URL of the Amazon SQS queue whose message's visibility is
257
215
  # changed.
@@ -280,19 +238,6 @@ module Aws::SQS
280
238
  include Aws::Structure
281
239
  end
282
240
 
283
- # @note When making an API call, you may pass CreateQueueRequest
284
- # data as a hash:
285
- #
286
- # {
287
- # queue_name: "String", # required
288
- # attributes: {
289
- # "All" => "String",
290
- # },
291
- # tags: {
292
- # "TagKey" => "TagValue",
293
- # },
294
- # }
295
- #
296
241
  # @!attribute [rw] queue_name
297
242
  # The name of the new queue. The following limits apply to this name:
298
243
  #
@@ -538,19 +483,6 @@ module Aws::SQS
538
483
  include Aws::Structure
539
484
  end
540
485
 
541
- # @note When making an API call, you may pass DeleteMessageBatchRequest
542
- # data as a hash:
543
- #
544
- # {
545
- # queue_url: "String", # required
546
- # entries: [ # required
547
- # {
548
- # id: "String", # required
549
- # receipt_handle: "String", # required
550
- # },
551
- # ],
552
- # }
553
- #
554
486
  # @!attribute [rw] queue_url
555
487
  # The URL of the Amazon SQS queue from which messages are deleted.
556
488
  #
@@ -572,14 +504,6 @@ module Aws::SQS
572
504
 
573
505
  # Encloses a receipt handle and an identifier for it.
574
506
  #
575
- # @note When making an API call, you may pass DeleteMessageBatchRequestEntry
576
- # data as a hash:
577
- #
578
- # {
579
- # id: "String", # required
580
- # receipt_handle: "String", # required
581
- # }
582
- #
583
507
  # @!attribute [rw] id
584
508
  # An identifier for this particular receipt handle. This is used to
585
509
  # communicate the result.
@@ -641,14 +565,6 @@ module Aws::SQS
641
565
  include Aws::Structure
642
566
  end
643
567
 
644
- # @note When making an API call, you may pass DeleteMessageRequest
645
- # data as a hash:
646
- #
647
- # {
648
- # queue_url: "String", # required
649
- # receipt_handle: "String", # required
650
- # }
651
- #
652
568
  # @!attribute [rw] queue_url
653
569
  # The URL of the Amazon SQS queue from which messages are deleted.
654
570
  #
@@ -668,13 +584,6 @@ module Aws::SQS
668
584
  include Aws::Structure
669
585
  end
670
586
 
671
- # @note When making an API call, you may pass DeleteQueueRequest
672
- # data as a hash:
673
- #
674
- # {
675
- # queue_url: "String", # required
676
- # }
677
- #
678
587
  # @!attribute [rw] queue_url
679
588
  # The URL of the Amazon SQS queue to delete.
680
589
  #
@@ -695,14 +604,6 @@ module Aws::SQS
695
604
  #
696
605
  class EmptyBatchRequest < Aws::EmptyStructure; end
697
606
 
698
- # @note When making an API call, you may pass GetQueueAttributesRequest
699
- # data as a hash:
700
- #
701
- # {
702
- # queue_url: "String", # required
703
- # attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit, RedriveAllowPolicy, SqsManagedSseEnabled
704
- # }
705
- #
706
607
  # @!attribute [rw] queue_url
707
608
  # The URL of the Amazon SQS queue whose attribute information is
708
609
  # retrieved.
@@ -890,14 +791,6 @@ module Aws::SQS
890
791
  include Aws::Structure
891
792
  end
892
793
 
893
- # @note When making an API call, you may pass GetQueueUrlRequest
894
- # data as a hash:
895
- #
896
- # {
897
- # queue_name: "String", # required
898
- # queue_owner_aws_account_id: "String",
899
- # }
900
- #
901
794
  # @!attribute [rw] queue_name
902
795
  # The name of the queue whose URL must be fetched. Maximum 80
903
796
  # characters. Valid values: alphanumeric characters, hyphens (`-`),
@@ -964,15 +857,6 @@ module Aws::SQS
964
857
  #
965
858
  class InvalidMessageContents < Aws::EmptyStructure; end
966
859
 
967
- # @note When making an API call, you may pass ListDeadLetterSourceQueuesRequest
968
- # data as a hash:
969
- #
970
- # {
971
- # queue_url: "String", # required
972
- # next_token: "Token",
973
- # max_results: 1,
974
- # }
975
- #
976
860
  # @!attribute [rw] queue_url
977
861
  # The URL of a dead-letter queue.
978
862
  #
@@ -1021,13 +905,6 @@ module Aws::SQS
1021
905
  include Aws::Structure
1022
906
  end
1023
907
 
1024
- # @note When making an API call, you may pass ListQueueTagsRequest
1025
- # data as a hash:
1026
- #
1027
- # {
1028
- # queue_url: "String", # required
1029
- # }
1030
- #
1031
908
  # @!attribute [rw] queue_url
1032
909
  # The URL of the queue.
1033
910
  # @return [String]
@@ -1052,15 +929,6 @@ module Aws::SQS
1052
929
  include Aws::Structure
1053
930
  end
1054
931
 
1055
- # @note When making an API call, you may pass ListQueuesRequest
1056
- # data as a hash:
1057
- #
1058
- # {
1059
- # queue_name_prefix: "String",
1060
- # next_token: "Token",
1061
- # max_results: 1,
1062
- # }
1063
- #
1064
932
  # @!attribute [rw] queue_name_prefix
1065
933
  # A string to use for filtering the list results. Only those queues
1066
934
  # whose name begins with the specified string are returned.
@@ -1205,17 +1073,6 @@ module Aws::SQS
1205
1073
  # and `Value`, are part of the message size restriction (256 KB or
1206
1074
  # 262,144 bytes).
1207
1075
  #
1208
- # @note When making an API call, you may pass MessageAttributeValue
1209
- # data as a hash:
1210
- #
1211
- # {
1212
- # string_value: "String",
1213
- # binary_value: "data",
1214
- # string_list_values: ["String"],
1215
- # binary_list_values: ["data"],
1216
- # data_type: "String", # required
1217
- # }
1218
- #
1219
1076
  # @!attribute [rw] string_value
1220
1077
  # Strings are Unicode with UTF-8 binary encoding. For a list of code
1221
1078
  # values, see [ASCII Printable Characters][1].
@@ -1276,17 +1133,6 @@ module Aws::SQS
1276
1133
  # `Name`, `type`, `value` and the message body must not be empty or
1277
1134
  # null.
1278
1135
  #
1279
- # @note When making an API call, you may pass MessageSystemAttributeValue
1280
- # data as a hash:
1281
- #
1282
- # {
1283
- # string_value: "String",
1284
- # binary_value: "data",
1285
- # string_list_values: ["String"],
1286
- # binary_list_values: ["data"],
1287
- # data_type: "String", # required
1288
- # }
1289
- #
1290
1136
  # @!attribute [rw] string_value
1291
1137
  # Strings are Unicode with UTF-8 binary encoding. For a list of code
1292
1138
  # values, see [ASCII Printable Characters][1].
@@ -1351,13 +1197,6 @@ module Aws::SQS
1351
1197
  #
1352
1198
  class PurgeQueueInProgress < Aws::EmptyStructure; end
1353
1199
 
1354
- # @note When making an API call, you may pass PurgeQueueRequest
1355
- # data as a hash:
1356
- #
1357
- # {
1358
- # queue_url: "String", # required
1359
- # }
1360
- #
1361
1200
  # @!attribute [rw] queue_url
1362
1201
  # The URL of the queue from which the `PurgeQueue` action deletes
1363
1202
  # messages.
@@ -1400,19 +1239,6 @@ module Aws::SQS
1400
1239
  #
1401
1240
  class ReceiptHandleIsInvalid < Aws::EmptyStructure; end
1402
1241
 
1403
- # @note When making an API call, you may pass ReceiveMessageRequest
1404
- # data as a hash:
1405
- #
1406
- # {
1407
- # queue_url: "String", # required
1408
- # attribute_names: ["All"], # accepts All, Policy, VisibilityTimeout, MaximumMessageSize, MessageRetentionPeriod, ApproximateNumberOfMessages, ApproximateNumberOfMessagesNotVisible, CreatedTimestamp, LastModifiedTimestamp, QueueArn, ApproximateNumberOfMessagesDelayed, DelaySeconds, ReceiveMessageWaitTimeSeconds, RedrivePolicy, FifoQueue, ContentBasedDeduplication, KmsMasterKeyId, KmsDataKeyReusePeriodSeconds, DeduplicationScope, FifoThroughputLimit, RedriveAllowPolicy, SqsManagedSseEnabled
1409
- # message_attribute_names: ["MessageAttributeName"],
1410
- # max_number_of_messages: 1,
1411
- # visibility_timeout: 1,
1412
- # wait_time_seconds: 1,
1413
- # receive_request_attempt_id: "String",
1414
- # }
1415
- #
1416
1242
  # @!attribute [rw] queue_url
1417
1243
  # The URL of the Amazon SQS queue from which messages are received.
1418
1244
  #
@@ -1616,14 +1442,6 @@ module Aws::SQS
1616
1442
  include Aws::Structure
1617
1443
  end
1618
1444
 
1619
- # @note When making an API call, you may pass RemovePermissionRequest
1620
- # data as a hash:
1621
- #
1622
- # {
1623
- # queue_url: "String", # required
1624
- # label: "String", # required
1625
- # }
1626
- #
1627
1445
  # @!attribute [rw] queue_url
1628
1446
  # The URL of the Amazon SQS queue from which permissions are removed.
1629
1447
  #
@@ -1644,40 +1462,6 @@ module Aws::SQS
1644
1462
  include Aws::Structure
1645
1463
  end
1646
1464
 
1647
- # @note When making an API call, you may pass SendMessageBatchRequest
1648
- # data as a hash:
1649
- #
1650
- # {
1651
- # queue_url: "String", # required
1652
- # entries: [ # required
1653
- # {
1654
- # id: "String", # required
1655
- # message_body: "String", # required
1656
- # delay_seconds: 1,
1657
- # message_attributes: {
1658
- # "String" => {
1659
- # string_value: "String",
1660
- # binary_value: "data",
1661
- # string_list_values: ["String"],
1662
- # binary_list_values: ["data"],
1663
- # data_type: "String", # required
1664
- # },
1665
- # },
1666
- # message_system_attributes: {
1667
- # "AWSTraceHeader" => {
1668
- # string_value: "String",
1669
- # binary_value: "data",
1670
- # string_list_values: ["String"],
1671
- # binary_list_values: ["data"],
1672
- # data_type: "String", # required
1673
- # },
1674
- # },
1675
- # message_deduplication_id: "String",
1676
- # message_group_id: "String",
1677
- # },
1678
- # ],
1679
- # }
1680
- #
1681
1465
  # @!attribute [rw] queue_url
1682
1466
  # The URL of the Amazon SQS queue to which batched messages are sent.
1683
1467
  #
@@ -1700,35 +1484,6 @@ module Aws::SQS
1700
1484
  # Contains the details of a single Amazon SQS message along with an
1701
1485
  # `Id`.
1702
1486
  #
1703
- # @note When making an API call, you may pass SendMessageBatchRequestEntry
1704
- # data as a hash:
1705
- #
1706
- # {
1707
- # id: "String", # required
1708
- # message_body: "String", # required
1709
- # delay_seconds: 1,
1710
- # message_attributes: {
1711
- # "String" => {
1712
- # string_value: "String",
1713
- # binary_value: "data",
1714
- # string_list_values: ["String"],
1715
- # binary_list_values: ["data"],
1716
- # data_type: "String", # required
1717
- # },
1718
- # },
1719
- # message_system_attributes: {
1720
- # "AWSTraceHeader" => {
1721
- # string_value: "String",
1722
- # binary_value: "data",
1723
- # string_list_values: ["String"],
1724
- # binary_list_values: ["data"],
1725
- # data_type: "String", # required
1726
- # },
1727
- # },
1728
- # message_deduplication_id: "String",
1729
- # message_group_id: "String",
1730
- # }
1731
- #
1732
1487
  # @!attribute [rw] id
1733
1488
  # An identifier for a message in this batch used to communicate the
1734
1489
  # result.
@@ -1987,35 +1742,6 @@ module Aws::SQS
1987
1742
  include Aws::Structure
1988
1743
  end
1989
1744
 
1990
- # @note When making an API call, you may pass SendMessageRequest
1991
- # data as a hash:
1992
- #
1993
- # {
1994
- # queue_url: "String", # required
1995
- # message_body: "String", # required
1996
- # delay_seconds: 1,
1997
- # message_attributes: {
1998
- # "String" => {
1999
- # string_value: "String",
2000
- # binary_value: "data",
2001
- # string_list_values: ["String"],
2002
- # binary_list_values: ["data"],
2003
- # data_type: "String", # required
2004
- # },
2005
- # },
2006
- # message_system_attributes: {
2007
- # "AWSTraceHeader" => {
2008
- # string_value: "String",
2009
- # binary_value: "data",
2010
- # string_list_values: ["String"],
2011
- # binary_list_values: ["data"],
2012
- # data_type: "String", # required
2013
- # },
2014
- # },
2015
- # message_deduplication_id: "String",
2016
- # message_group_id: "String",
2017
- # }
2018
- #
2019
1745
  # @!attribute [rw] queue_url
2020
1746
  # The URL of the Amazon SQS queue to which a message is sent.
2021
1747
  #
@@ -2254,16 +1980,6 @@ module Aws::SQS
2254
1980
  include Aws::Structure
2255
1981
  end
2256
1982
 
2257
- # @note When making an API call, you may pass SetQueueAttributesRequest
2258
- # data as a hash:
2259
- #
2260
- # {
2261
- # queue_url: "String", # required
2262
- # attributes: { # required
2263
- # "All" => "String",
2264
- # },
2265
- # }
2266
- #
2267
1983
  # @!attribute [rw] queue_url
2268
1984
  # The URL of the Amazon SQS queue whose attributes are set.
2269
1985
  #
@@ -2440,16 +2156,6 @@ module Aws::SQS
2440
2156
  include Aws::Structure
2441
2157
  end
2442
2158
 
2443
- # @note When making an API call, you may pass TagQueueRequest
2444
- # data as a hash:
2445
- #
2446
- # {
2447
- # queue_url: "String", # required
2448
- # tags: { # required
2449
- # "TagKey" => "TagValue",
2450
- # },
2451
- # }
2452
- #
2453
2159
  # @!attribute [rw] queue_url
2454
2160
  # The URL of the queue.
2455
2161
  # @return [String]
@@ -2479,14 +2185,6 @@ module Aws::SQS
2479
2185
  #
2480
2186
  class UnsupportedOperation < Aws::EmptyStructure; end
2481
2187
 
2482
- # @note When making an API call, you may pass UntagQueueRequest
2483
- # data as a hash:
2484
- #
2485
- # {
2486
- # queue_url: "String", # required
2487
- # tag_keys: ["TagKey"], # required
2488
- # }
2489
- #
2490
2188
  # @!attribute [rw] queue_url
2491
2189
  # The URL of the queue.
2492
2190
  # @return [String]
data/lib/aws-sdk-sqs.rb CHANGED
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-sqs/customizations'
54
54
  # @!group service
55
55
  module Aws::SQS
56
56
 
57
- GEM_VERSION = '1.52.0'
57
+ GEM_VERSION = '1.52.1'
58
58
 
59
59
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.52.0
4
+ version: 1.52.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2022-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core