aws-sdk-sqs 1.51.1 → 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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sqs/client.rb +20 -3
- data/lib/aws-sdk-sqs/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-sqs/endpoint_provider.rb +116 -0
- data/lib/aws-sdk-sqs/endpoints.rb +295 -0
- data/lib/aws-sdk-sqs/plugins/endpoints.rb +108 -0
- data/lib/aws-sdk-sqs/plugins/queue_urls.rb +4 -10
- data/lib/aws-sdk-sqs/queue_poller.rb +6 -0
- data/lib/aws-sdk-sqs/types.rb +0 -302
- data/lib/aws-sdk-sqs.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bf99a4bb094a8b1c622dd9267738f157e10884005dbdc0d604588c138190368
|
4
|
+
data.tar.gz: 6945077761cbe9023076ac51d32d8545a1badd86bf8ad7183d846fb737a2ba5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d0ba39889dd50415de62f09f3bc11c84cd542426bf05487d50034e6e4cf3185560c8e4a4902c8dbdcc73cbc70f3c76bed849a8f225ca4c6e8e12bfe60064add
|
7
|
+
data.tar.gz: 824994c8aff7caf9c249967eff4095afc05179852cb10ed937d5e338fce96179df23062b6e7cffd243b2af03bfc7227be1caf1f88cfd00b24788fca75a8b7411
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
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
|
+
|
9
|
+
1.52.0 (2022-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.51.1 (2022-05-02)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.52.1
|
data/lib/aws-sdk-sqs/client.rb
CHANGED
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/query.rb'
|
35
35
|
require 'aws-sdk-sqs/plugins/queue_urls.rb'
|
36
36
|
require 'aws-sdk-sqs/plugins/md5s.rb'
|
@@ -81,10 +81,11 @@ module Aws::SQS
|
|
81
81
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
82
82
|
add_plugin(Aws::Plugins::DefaultsMode)
|
83
83
|
add_plugin(Aws::Plugins::RecursionDetection)
|
84
|
-
add_plugin(Aws::Plugins::
|
84
|
+
add_plugin(Aws::Plugins::Sign)
|
85
85
|
add_plugin(Aws::Plugins::Protocols::Query)
|
86
86
|
add_plugin(Aws::SQS::Plugins::QueueUrls)
|
87
87
|
add_plugin(Aws::SQS::Plugins::Md5s)
|
88
|
+
add_plugin(Aws::SQS::Plugins::Endpoints)
|
88
89
|
|
89
90
|
# @overload initialize(options)
|
90
91
|
# @param [Hash] options
|
@@ -291,6 +292,19 @@ module Aws::SQS
|
|
291
292
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
292
293
|
# requests are made, and retries are disabled.
|
293
294
|
#
|
295
|
+
# @option options [Aws::TokenProvider] :token_provider
|
296
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
297
|
+
# following classes:
|
298
|
+
#
|
299
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
300
|
+
# tokens.
|
301
|
+
#
|
302
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
303
|
+
# access token generated from `aws login`.
|
304
|
+
#
|
305
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
306
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
307
|
+
#
|
294
308
|
# @option options [Boolean] :use_dualstack_endpoint
|
295
309
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
296
310
|
# will be used if available.
|
@@ -310,6 +324,9 @@ module Aws::SQS
|
|
310
324
|
# `Aws::Errors::Checksum` errors are raised for cases where checksums do
|
311
325
|
# not match.
|
312
326
|
#
|
327
|
+
# @option options [Aws::SQS::EndpointProvider] :endpoint_provider
|
328
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SQS::EndpointParameters`
|
329
|
+
#
|
313
330
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
314
331
|
# requests through. Formatted like 'http://proxy.com:123'.
|
315
332
|
#
|
@@ -2486,7 +2503,7 @@ module Aws::SQS
|
|
2486
2503
|
params: params,
|
2487
2504
|
config: config)
|
2488
2505
|
context[:gem_name] = 'aws-sdk-sqs'
|
2489
|
-
context[:gem_version] = '1.
|
2506
|
+
context[:gem_version] = '1.52.1'
|
2490
2507
|
Seahorse::Client::Request.new(handlers, context)
|
2491
2508
|
end
|
2492
2509
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::SQS
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::SQS
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
+
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
+
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdG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ml4fSIsInByb3BlcnRpZXMiOnt9LCJo
|
112
|
+
ZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
|
113
|
+
|
114
|
+
JSON
|
115
|
+
end
|
116
|
+
end
|
@@ -0,0 +1,295 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::SQS
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class AddPermission
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::SQS::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class ChangeMessageVisibility
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::SQS::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class ChangeMessageVisibilityBatch
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::SQS::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class CreateQueue
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::SQS::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class DeleteMessage
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::SQS::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class DeleteMessageBatch
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::SQS::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class DeleteQueue
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::SQS::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class GetQueueAttributes
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::SQS::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class GetQueueUrl
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::SQS::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class ListDeadLetterSourceQueues
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::SQS::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class ListQueueTags
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::SQS::EndpointParameters.new(
|
160
|
+
region: context.config.region,
|
161
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
+
use_fips: context.config.use_fips_endpoint,
|
163
|
+
endpoint: endpoint,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class ListQueues
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::SQS::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class PurgeQueue
|
183
|
+
def self.build(context)
|
184
|
+
unless context.config.regional_endpoint
|
185
|
+
endpoint = context.config.endpoint.to_s
|
186
|
+
end
|
187
|
+
Aws::SQS::EndpointParameters.new(
|
188
|
+
region: context.config.region,
|
189
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
|
+
use_fips: context.config.use_fips_endpoint,
|
191
|
+
endpoint: endpoint,
|
192
|
+
)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class ReceiveMessage
|
197
|
+
def self.build(context)
|
198
|
+
unless context.config.regional_endpoint
|
199
|
+
endpoint = context.config.endpoint.to_s
|
200
|
+
end
|
201
|
+
Aws::SQS::EndpointParameters.new(
|
202
|
+
region: context.config.region,
|
203
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
|
+
use_fips: context.config.use_fips_endpoint,
|
205
|
+
endpoint: endpoint,
|
206
|
+
)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
class RemovePermission
|
211
|
+
def self.build(context)
|
212
|
+
unless context.config.regional_endpoint
|
213
|
+
endpoint = context.config.endpoint.to_s
|
214
|
+
end
|
215
|
+
Aws::SQS::EndpointParameters.new(
|
216
|
+
region: context.config.region,
|
217
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
|
+
use_fips: context.config.use_fips_endpoint,
|
219
|
+
endpoint: endpoint,
|
220
|
+
)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
class SendMessage
|
225
|
+
def self.build(context)
|
226
|
+
unless context.config.regional_endpoint
|
227
|
+
endpoint = context.config.endpoint.to_s
|
228
|
+
end
|
229
|
+
Aws::SQS::EndpointParameters.new(
|
230
|
+
region: context.config.region,
|
231
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
232
|
+
use_fips: context.config.use_fips_endpoint,
|
233
|
+
endpoint: endpoint,
|
234
|
+
)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
class SendMessageBatch
|
239
|
+
def self.build(context)
|
240
|
+
unless context.config.regional_endpoint
|
241
|
+
endpoint = context.config.endpoint.to_s
|
242
|
+
end
|
243
|
+
Aws::SQS::EndpointParameters.new(
|
244
|
+
region: context.config.region,
|
245
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
246
|
+
use_fips: context.config.use_fips_endpoint,
|
247
|
+
endpoint: endpoint,
|
248
|
+
)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class SetQueueAttributes
|
253
|
+
def self.build(context)
|
254
|
+
unless context.config.regional_endpoint
|
255
|
+
endpoint = context.config.endpoint.to_s
|
256
|
+
end
|
257
|
+
Aws::SQS::EndpointParameters.new(
|
258
|
+
region: context.config.region,
|
259
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
260
|
+
use_fips: context.config.use_fips_endpoint,
|
261
|
+
endpoint: endpoint,
|
262
|
+
)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
class TagQueue
|
267
|
+
def self.build(context)
|
268
|
+
unless context.config.regional_endpoint
|
269
|
+
endpoint = context.config.endpoint.to_s
|
270
|
+
end
|
271
|
+
Aws::SQS::EndpointParameters.new(
|
272
|
+
region: context.config.region,
|
273
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
274
|
+
use_fips: context.config.use_fips_endpoint,
|
275
|
+
endpoint: endpoint,
|
276
|
+
)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class UntagQueue
|
281
|
+
def self.build(context)
|
282
|
+
unless context.config.regional_endpoint
|
283
|
+
endpoint = context.config.endpoint.to_s
|
284
|
+
end
|
285
|
+
Aws::SQS::EndpointParameters.new(
|
286
|
+
region: context.config.region,
|
287
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
288
|
+
use_fips: context.config.use_fips_endpoint,
|
289
|
+
endpoint: endpoint,
|
290
|
+
)
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
end
|
295
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::SQS
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::SQS::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::SQS::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::SQS::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :add_permission
|
60
|
+
Aws::SQS::Endpoints::AddPermission.build(context)
|
61
|
+
when :change_message_visibility
|
62
|
+
Aws::SQS::Endpoints::ChangeMessageVisibility.build(context)
|
63
|
+
when :change_message_visibility_batch
|
64
|
+
Aws::SQS::Endpoints::ChangeMessageVisibilityBatch.build(context)
|
65
|
+
when :create_queue
|
66
|
+
Aws::SQS::Endpoints::CreateQueue.build(context)
|
67
|
+
when :delete_message
|
68
|
+
Aws::SQS::Endpoints::DeleteMessage.build(context)
|
69
|
+
when :delete_message_batch
|
70
|
+
Aws::SQS::Endpoints::DeleteMessageBatch.build(context)
|
71
|
+
when :delete_queue
|
72
|
+
Aws::SQS::Endpoints::DeleteQueue.build(context)
|
73
|
+
when :get_queue_attributes
|
74
|
+
Aws::SQS::Endpoints::GetQueueAttributes.build(context)
|
75
|
+
when :get_queue_url
|
76
|
+
Aws::SQS::Endpoints::GetQueueUrl.build(context)
|
77
|
+
when :list_dead_letter_source_queues
|
78
|
+
Aws::SQS::Endpoints::ListDeadLetterSourceQueues.build(context)
|
79
|
+
when :list_queue_tags
|
80
|
+
Aws::SQS::Endpoints::ListQueueTags.build(context)
|
81
|
+
when :list_queues
|
82
|
+
Aws::SQS::Endpoints::ListQueues.build(context)
|
83
|
+
when :purge_queue
|
84
|
+
Aws::SQS::Endpoints::PurgeQueue.build(context)
|
85
|
+
when :receive_message
|
86
|
+
Aws::SQS::Endpoints::ReceiveMessage.build(context)
|
87
|
+
when :remove_permission
|
88
|
+
Aws::SQS::Endpoints::RemovePermission.build(context)
|
89
|
+
when :send_message
|
90
|
+
Aws::SQS::Endpoints::SendMessage.build(context)
|
91
|
+
when :send_message_batch
|
92
|
+
Aws::SQS::Endpoints::SendMessageBatch.build(context)
|
93
|
+
when :set_queue_attributes
|
94
|
+
Aws::SQS::Endpoints::SetQueueAttributes.build(context)
|
95
|
+
when :tag_queue
|
96
|
+
Aws::SQS::Endpoints::TagQueue.build(context)
|
97
|
+
when :untag_queue
|
98
|
+
Aws::SQS::Endpoints::UntagQueue.build(context)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
def add_handlers(handlers, _config)
|
104
|
+
handlers.add(Handler, step: :build, priority: 75)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -20,17 +20,11 @@ module Aws
|
|
20
20
|
end
|
21
21
|
|
22
22
|
# If the region in the queue url is not the configured
|
23
|
-
# region, then we will modify
|
24
|
-
# a sigv4 signer for the proper region.
|
23
|
+
# region, then we will modify signing to use it
|
25
24
|
def update_region(context, queue_url)
|
26
|
-
if (queue_region = parse_region(queue_url))
|
27
|
-
|
28
|
-
|
29
|
-
config.region = queue_region
|
30
|
-
config.sigv4_region = queue_region
|
31
|
-
config.sigv4_signer = Aws::Plugins::SignatureV4.build_signer(config)
|
32
|
-
context.config = config
|
33
|
-
end
|
25
|
+
if (queue_region = parse_region(queue_url)) &&
|
26
|
+
queue_region != context.config.region
|
27
|
+
context[:auth_scheme]['signingRegion'] = queue_region
|
34
28
|
end
|
35
29
|
end
|
36
30
|
|
@@ -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
|
data/lib/aws-sdk-sqs/types.rb
CHANGED
@@ -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
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-sqs/types'
|
15
15
|
require_relative 'aws-sdk-sqs/client_api'
|
16
|
+
require_relative 'aws-sdk-sqs/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-sqs/client'
|
17
18
|
require_relative 'aws-sdk-sqs/errors'
|
18
19
|
require_relative 'aws-sdk-sqs/resource'
|
20
|
+
require_relative 'aws-sdk-sqs/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-sqs/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-sqs/endpoints'
|
19
23
|
require_relative 'aws-sdk-sqs/message'
|
20
24
|
require_relative 'aws-sdk-sqs/queue'
|
21
25
|
require_relative 'aws-sdk-sqs/customizations'
|
@@ -50,6 +54,6 @@ require_relative 'aws-sdk-sqs/customizations'
|
|
50
54
|
# @!group service
|
51
55
|
module Aws::SQS
|
52
56
|
|
53
|
-
GEM_VERSION = '1.
|
57
|
+
GEM_VERSION = '1.52.1'
|
54
58
|
|
55
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.
|
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-
|
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
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,8 +59,12 @@ files:
|
|
59
59
|
- lib/aws-sdk-sqs/client.rb
|
60
60
|
- lib/aws-sdk-sqs/client_api.rb
|
61
61
|
- lib/aws-sdk-sqs/customizations.rb
|
62
|
+
- lib/aws-sdk-sqs/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-sqs/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-sqs/endpoints.rb
|
62
65
|
- lib/aws-sdk-sqs/errors.rb
|
63
66
|
- lib/aws-sdk-sqs/message.rb
|
67
|
+
- lib/aws-sdk-sqs/plugins/endpoints.rb
|
64
68
|
- lib/aws-sdk-sqs/plugins/md5s.rb
|
65
69
|
- lib/aws-sdk-sqs/plugins/queue_urls.rb
|
66
70
|
- lib/aws-sdk-sqs/queue.rb
|