aws-sdk-sqs 1.65.0 → 1.107.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 +210 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sqs/client.rb +406 -212
- data/lib/aws-sdk-sqs/client_api.rb +255 -58
- data/lib/aws-sdk-sqs/customizations.rb +5 -2
- data/lib/aws-sdk-sqs/endpoint_parameters.rb +13 -10
- data/lib/aws-sdk-sqs/endpoint_provider.rb +16 -20
- data/lib/aws-sdk-sqs/endpoints.rb +2 -320
- data/lib/aws-sdk-sqs/errors.rb +251 -0
- data/lib/aws-sdk-sqs/message.rb +3 -3
- data/lib/aws-sdk-sqs/plugins/endpoints.rb +23 -60
- data/lib/aws-sdk-sqs/plugins/md5s.rb +84 -35
- data/lib/aws-sdk-sqs/queue.rb +147 -54
- data/lib/aws-sdk-sqs/queue_poller.rb +1 -1
- data/lib/aws-sdk-sqs/resource.rb +12 -15
- data/lib/aws-sdk-sqs/types.rb +499 -102
- data/lib/aws-sdk-sqs.rb +17 -13
- data/sig/client.rbs +370 -0
- data/sig/errors.rbs +98 -0
- data/sig/message.rbs +73 -0
- data/sig/queue.rbs +164 -0
- data/sig/resource.rbs +111 -0
- data/sig/types.rbs +472 -0
- data/sig/waiters.rbs +13 -0
- metadata +15 -11
data/lib/aws-sdk-sqs/resource.rb
CHANGED
|
@@ -70,8 +70,8 @@ module Aws::SQS
|
|
|
70
70
|
#
|
|
71
71
|
# * `MaximumMessageSize` – The limit of how many bytes a message can
|
|
72
72
|
# contain before Amazon SQS rejects it. Valid values: An integer from
|
|
73
|
-
# 1,024 bytes (1 KiB) to
|
|
74
|
-
# (
|
|
73
|
+
# 1,024 bytes (1 KiB) to 1,048,576 bytes (1 MiB). Default: 1,048,576
|
|
74
|
+
# bytes (1 MiB).
|
|
75
75
|
#
|
|
76
76
|
# * `MessageRetentionPeriod` – The length of time, in seconds, for which
|
|
77
77
|
# Amazon SQS retains a message. Valid values: An integer from 60
|
|
@@ -112,7 +112,6 @@ module Aws::SQS
|
|
|
112
112
|
# Default: 10. When the `ReceiveCount` for a message exceeds the
|
|
113
113
|
# `maxReceiveCount` for a queue, Amazon SQS moves the message to the
|
|
114
114
|
# dead-letter-queue.
|
|
115
|
-
#
|
|
116
115
|
# * `RedriveAllowPolicy` – The string that includes the parameters for
|
|
117
116
|
# the permissions for the dead-letter queue redrive permission and
|
|
118
117
|
# which source queues can specify dead-letter queues as a JSON object.
|
|
@@ -131,7 +130,6 @@ module Aws::SQS
|
|
|
131
130
|
#
|
|
132
131
|
# * `byQueue` – Only queues specified by the `sourceQueueArns`
|
|
133
132
|
# parameter can specify this queue as the dead-letter queue.
|
|
134
|
-
#
|
|
135
133
|
# * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
|
|
136
134
|
# queues that can specify this queue as the dead-letter queue and
|
|
137
135
|
# redrive messages. You can specify this parameter only when the
|
|
@@ -203,7 +201,6 @@ module Aws::SQS
|
|
|
203
201
|
#
|
|
204
202
|
# * If the queue has `ContentBasedDeduplication` set, your
|
|
205
203
|
# `MessageDeduplicationId` overrides the generated one.
|
|
206
|
-
#
|
|
207
204
|
# * When `ContentBasedDeduplication` is in effect, messages with
|
|
208
205
|
# identical content sent within the deduplication interval are
|
|
209
206
|
# treated as duplicates and only one copy of the message is
|
|
@@ -294,7 +291,7 @@ module Aws::SQS
|
|
|
294
291
|
# [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name
|
|
295
292
|
# @return [Queue]
|
|
296
293
|
def create_queue(options = {})
|
|
297
|
-
resp = Aws::Plugins::UserAgent.
|
|
294
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
298
295
|
@client.create_queue(options)
|
|
299
296
|
end
|
|
300
297
|
Queue.new(
|
|
@@ -311,17 +308,17 @@ module Aws::SQS
|
|
|
311
308
|
# })
|
|
312
309
|
# @param [Hash] options ({})
|
|
313
310
|
# @option options [required, String] :queue_name
|
|
314
|
-
# The name of the queue
|
|
315
|
-
#
|
|
316
|
-
# underscores (
|
|
317
|
-
#
|
|
318
|
-
# Queue URLs and names are case-sensitive.
|
|
311
|
+
# (Required) The name of the queue for which you want to fetch the URL.
|
|
312
|
+
# The name can be up to 80 characters long and can include alphanumeric
|
|
313
|
+
# characters, hyphens (-), and underscores (\_). Queue URLs and names
|
|
314
|
+
# are case-sensitive.
|
|
319
315
|
# @option options [String] :queue_owner_aws_account_id
|
|
320
|
-
# The Amazon Web Services account ID of the account that
|
|
321
|
-
# queue.
|
|
316
|
+
# (Optional) The Amazon Web Services account ID of the account that
|
|
317
|
+
# created the queue. This is only required when you are attempting to
|
|
318
|
+
# access a queue owned by another Amazon Web Services account.
|
|
322
319
|
# @return [Queue]
|
|
323
320
|
def get_queue_by_name(options = {})
|
|
324
|
-
resp = Aws::Plugins::UserAgent.
|
|
321
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
325
322
|
@client.get_queue_url(options)
|
|
326
323
|
end
|
|
327
324
|
Queue.new(
|
|
@@ -355,7 +352,7 @@ module Aws::SQS
|
|
|
355
352
|
# @return [Queue::Collection]
|
|
356
353
|
def queues(options = {})
|
|
357
354
|
batches = Enumerator.new do |y|
|
|
358
|
-
resp = Aws::Plugins::UserAgent.
|
|
355
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
359
356
|
@client.list_queues(options)
|
|
360
357
|
end
|
|
361
358
|
resp.each_page do |page|
|