aws-sdk-sqs 1.39.0 → 1.86.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/aws-sdk-sqs.rb CHANGED
@@ -11,14 +11,7 @@
11
11
  require 'aws-sdk-core'
12
12
  require 'aws-sigv4'
13
13
 
14
- require_relative 'aws-sdk-sqs/types'
15
- require_relative 'aws-sdk-sqs/client_api'
16
- require_relative 'aws-sdk-sqs/client'
17
- require_relative 'aws-sdk-sqs/errors'
18
- require_relative 'aws-sdk-sqs/resource'
19
- require_relative 'aws-sdk-sqs/message'
20
- require_relative 'aws-sdk-sqs/queue'
21
- require_relative 'aws-sdk-sqs/customizations'
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:sqs)
22
15
 
23
16
  # This module provides support for Amazon Simple Queue Service. This module is available in the
24
17
  # `aws-sdk-sqs` gem.
@@ -49,7 +42,22 @@ require_relative 'aws-sdk-sqs/customizations'
49
42
  #
50
43
  # @!group service
51
44
  module Aws::SQS
45
+ autoload :Types, 'aws-sdk-sqs/types'
46
+ autoload :ClientApi, 'aws-sdk-sqs/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-sqs/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-sqs/client'
51
+ autoload :Errors, 'aws-sdk-sqs/errors'
52
+ autoload :Resource, 'aws-sdk-sqs/resource'
53
+ autoload :EndpointParameters, 'aws-sdk-sqs/endpoint_parameters'
54
+ autoload :EndpointProvider, 'aws-sdk-sqs/endpoint_provider'
55
+ autoload :Endpoints, 'aws-sdk-sqs/endpoints'
56
+ autoload :Message, 'aws-sdk-sqs/message'
57
+ autoload :Queue, 'aws-sdk-sqs/queue'
52
58
 
53
- GEM_VERSION = '1.39.0'
59
+ GEM_VERSION = '1.86.0'
54
60
 
55
61
  end
62
+
63
+ require_relative 'aws-sdk-sqs/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,367 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SQS
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_min_compression_size_bytes: Integer,
43
+ ?retry_backoff: Proc,
44
+ ?retry_base_delay: Float,
45
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
46
+ ?retry_limit: Integer,
47
+ ?retry_max_delay: Integer,
48
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
49
+ ?sdk_ua_app_id: String,
50
+ ?secret_access_key: String,
51
+ ?session_token: String,
52
+ ?sigv4a_signing_region_set: Array[String],
53
+ ?simple_json: bool,
54
+ ?stub_responses: untyped,
55
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
56
+ ?token_provider: untyped,
57
+ ?use_dualstack_endpoint: bool,
58
+ ?use_fips_endpoint: bool,
59
+ ?validate_params: bool,
60
+ ?verify_checksums: bool,
61
+ ?endpoint_provider: untyped,
62
+ ?http_proxy: String,
63
+ ?http_open_timeout: (Float | Integer),
64
+ ?http_read_timeout: (Float | Integer),
65
+ ?http_idle_timeout: (Float | Integer),
66
+ ?http_continue_timeout: (Float | Integer),
67
+ ?ssl_timeout: (Float | Integer | nil),
68
+ ?http_wire_trace: bool,
69
+ ?ssl_verify_peer: bool,
70
+ ?ssl_ca_bundle: String,
71
+ ?ssl_ca_directory: String,
72
+ ?ssl_ca_store: String,
73
+ ?on_chunk_received: Proc,
74
+ ?on_chunk_sent: Proc,
75
+ ?raise_response_errors: bool
76
+ ) -> instance
77
+ | (?Hash[Symbol, untyped]) -> instance
78
+
79
+
80
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#add_permission-instance_method
81
+ def add_permission: (
82
+ queue_url: ::String,
83
+ label: ::String,
84
+ aws_account_ids: Array[::String],
85
+ actions: Array[::String]
86
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
87
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
88
+
89
+ interface _CancelMessageMoveTaskResponseSuccess
90
+ include ::Seahorse::Client::_ResponseSuccess[Types::CancelMessageMoveTaskResult]
91
+ def approximate_number_of_messages_moved: () -> ::Integer
92
+ end
93
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#cancel_message_move_task-instance_method
94
+ def cancel_message_move_task: (
95
+ task_handle: ::String
96
+ ) -> _CancelMessageMoveTaskResponseSuccess
97
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CancelMessageMoveTaskResponseSuccess
98
+
99
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#change_message_visibility-instance_method
100
+ def change_message_visibility: (
101
+ queue_url: ::String,
102
+ receipt_handle: ::String,
103
+ visibility_timeout: ::Integer
104
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
105
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
106
+
107
+ interface _ChangeMessageVisibilityBatchResponseSuccess
108
+ include ::Seahorse::Client::_ResponseSuccess[Types::ChangeMessageVisibilityBatchResult]
109
+ def successful: () -> ::Array[Types::ChangeMessageVisibilityBatchResultEntry]
110
+ def failed: () -> ::Array[Types::BatchResultErrorEntry]
111
+ end
112
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#change_message_visibility_batch-instance_method
113
+ def change_message_visibility_batch: (
114
+ queue_url: ::String,
115
+ entries: Array[
116
+ {
117
+ id: ::String,
118
+ receipt_handle: ::String,
119
+ visibility_timeout: ::Integer?
120
+ },
121
+ ]
122
+ ) -> _ChangeMessageVisibilityBatchResponseSuccess
123
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ChangeMessageVisibilityBatchResponseSuccess
124
+
125
+ interface _CreateQueueResponseSuccess
126
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateQueueResult]
127
+ def queue_url: () -> ::String
128
+ end
129
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#create_queue-instance_method
130
+ def create_queue: (
131
+ queue_name: ::String,
132
+ ?attributes: Hash[("All" | "Policy" | "VisibilityTimeout" | "MaximumMessageSize" | "MessageRetentionPeriod" | "ApproximateNumberOfMessages" | "ApproximateNumberOfMessagesNotVisible" | "CreatedTimestamp" | "LastModifiedTimestamp" | "QueueArn" | "ApproximateNumberOfMessagesDelayed" | "DelaySeconds" | "ReceiveMessageWaitTimeSeconds" | "RedrivePolicy" | "FifoQueue" | "ContentBasedDeduplication" | "KmsMasterKeyId" | "KmsDataKeyReusePeriodSeconds" | "DeduplicationScope" | "FifoThroughputLimit" | "RedriveAllowPolicy" | "SqsManagedSseEnabled"), ::String],
133
+ ?tags: Hash[::String, ::String]
134
+ ) -> _CreateQueueResponseSuccess
135
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateQueueResponseSuccess
136
+
137
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#delete_message-instance_method
138
+ def delete_message: (
139
+ queue_url: ::String,
140
+ receipt_handle: ::String
141
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
142
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
143
+
144
+ interface _DeleteMessageBatchResponseSuccess
145
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteMessageBatchResult]
146
+ def successful: () -> ::Array[Types::DeleteMessageBatchResultEntry]
147
+ def failed: () -> ::Array[Types::BatchResultErrorEntry]
148
+ end
149
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#delete_message_batch-instance_method
150
+ def delete_message_batch: (
151
+ queue_url: ::String,
152
+ entries: Array[
153
+ {
154
+ id: ::String,
155
+ receipt_handle: ::String
156
+ },
157
+ ]
158
+ ) -> _DeleteMessageBatchResponseSuccess
159
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteMessageBatchResponseSuccess
160
+
161
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#delete_queue-instance_method
162
+ def delete_queue: (
163
+ queue_url: ::String
164
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
165
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
166
+
167
+ interface _GetQueueAttributesResponseSuccess
168
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetQueueAttributesResult]
169
+ def attributes: () -> ::Hash[("All" | "Policy" | "VisibilityTimeout" | "MaximumMessageSize" | "MessageRetentionPeriod" | "ApproximateNumberOfMessages" | "ApproximateNumberOfMessagesNotVisible" | "CreatedTimestamp" | "LastModifiedTimestamp" | "QueueArn" | "ApproximateNumberOfMessagesDelayed" | "DelaySeconds" | "ReceiveMessageWaitTimeSeconds" | "RedrivePolicy" | "FifoQueue" | "ContentBasedDeduplication" | "KmsMasterKeyId" | "KmsDataKeyReusePeriodSeconds" | "DeduplicationScope" | "FifoThroughputLimit" | "RedriveAllowPolicy" | "SqsManagedSseEnabled"), ::String]
170
+ end
171
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#get_queue_attributes-instance_method
172
+ def get_queue_attributes: (
173
+ queue_url: ::String,
174
+ ?attribute_names: Array[("All" | "Policy" | "VisibilityTimeout" | "MaximumMessageSize" | "MessageRetentionPeriod" | "ApproximateNumberOfMessages" | "ApproximateNumberOfMessagesNotVisible" | "CreatedTimestamp" | "LastModifiedTimestamp" | "QueueArn" | "ApproximateNumberOfMessagesDelayed" | "DelaySeconds" | "ReceiveMessageWaitTimeSeconds" | "RedrivePolicy" | "FifoQueue" | "ContentBasedDeduplication" | "KmsMasterKeyId" | "KmsDataKeyReusePeriodSeconds" | "DeduplicationScope" | "FifoThroughputLimit" | "RedriveAllowPolicy" | "SqsManagedSseEnabled")]
175
+ ) -> _GetQueueAttributesResponseSuccess
176
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueueAttributesResponseSuccess
177
+
178
+ interface _GetQueueUrlResponseSuccess
179
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetQueueUrlResult]
180
+ def queue_url: () -> ::String
181
+ end
182
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#get_queue_url-instance_method
183
+ def get_queue_url: (
184
+ queue_name: ::String,
185
+ ?queue_owner_aws_account_id: ::String
186
+ ) -> _GetQueueUrlResponseSuccess
187
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueueUrlResponseSuccess
188
+
189
+ interface _ListDeadLetterSourceQueuesResponseSuccess
190
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListDeadLetterSourceQueuesResult]
191
+ def queue_urls: () -> ::Array[::String]
192
+ def next_token: () -> ::String
193
+ end
194
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#list_dead_letter_source_queues-instance_method
195
+ def list_dead_letter_source_queues: (
196
+ queue_url: ::String,
197
+ ?next_token: ::String,
198
+ ?max_results: ::Integer
199
+ ) -> _ListDeadLetterSourceQueuesResponseSuccess
200
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDeadLetterSourceQueuesResponseSuccess
201
+
202
+ interface _ListMessageMoveTasksResponseSuccess
203
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListMessageMoveTasksResult]
204
+ def results: () -> ::Array[Types::ListMessageMoveTasksResultEntry]
205
+ end
206
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#list_message_move_tasks-instance_method
207
+ def list_message_move_tasks: (
208
+ source_arn: ::String,
209
+ ?max_results: ::Integer
210
+ ) -> _ListMessageMoveTasksResponseSuccess
211
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMessageMoveTasksResponseSuccess
212
+
213
+ interface _ListQueueTagsResponseSuccess
214
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListQueueTagsResult]
215
+ def tags: () -> ::Hash[::String, ::String]
216
+ end
217
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#list_queue_tags-instance_method
218
+ def list_queue_tags: (
219
+ queue_url: ::String
220
+ ) -> _ListQueueTagsResponseSuccess
221
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListQueueTagsResponseSuccess
222
+
223
+ interface _ListQueuesResponseSuccess
224
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListQueuesResult]
225
+ def queue_urls: () -> ::Array[::String]
226
+ def next_token: () -> ::String
227
+ end
228
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#list_queues-instance_method
229
+ def list_queues: (
230
+ ?queue_name_prefix: ::String,
231
+ ?next_token: ::String,
232
+ ?max_results: ::Integer
233
+ ) -> _ListQueuesResponseSuccess
234
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListQueuesResponseSuccess
235
+
236
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#purge_queue-instance_method
237
+ def purge_queue: (
238
+ queue_url: ::String
239
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
240
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
241
+
242
+ interface _ReceiveMessageResponseSuccess
243
+ include ::Seahorse::Client::_ResponseSuccess[Types::ReceiveMessageResult]
244
+ def messages: () -> ::Array[Types::Message]
245
+ end
246
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#receive_message-instance_method
247
+ def receive_message: (
248
+ queue_url: ::String,
249
+ ?attribute_names: Array[("All" | "Policy" | "VisibilityTimeout" | "MaximumMessageSize" | "MessageRetentionPeriod" | "ApproximateNumberOfMessages" | "ApproximateNumberOfMessagesNotVisible" | "CreatedTimestamp" | "LastModifiedTimestamp" | "QueueArn" | "ApproximateNumberOfMessagesDelayed" | "DelaySeconds" | "ReceiveMessageWaitTimeSeconds" | "RedrivePolicy" | "FifoQueue" | "ContentBasedDeduplication" | "KmsMasterKeyId" | "KmsDataKeyReusePeriodSeconds" | "DeduplicationScope" | "FifoThroughputLimit" | "RedriveAllowPolicy" | "SqsManagedSseEnabled")],
250
+ ?message_system_attribute_names: Array[("All" | "SenderId" | "SentTimestamp" | "ApproximateReceiveCount" | "ApproximateFirstReceiveTimestamp" | "SequenceNumber" | "MessageDeduplicationId" | "MessageGroupId" | "AWSTraceHeader" | "DeadLetterQueueSourceArn")],
251
+ ?message_attribute_names: Array[::String],
252
+ ?max_number_of_messages: ::Integer,
253
+ ?visibility_timeout: ::Integer,
254
+ ?wait_time_seconds: ::Integer,
255
+ ?receive_request_attempt_id: ::String
256
+ ) -> _ReceiveMessageResponseSuccess
257
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ReceiveMessageResponseSuccess
258
+
259
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#remove_permission-instance_method
260
+ def remove_permission: (
261
+ queue_url: ::String,
262
+ label: ::String
263
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
264
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
265
+
266
+ interface _SendMessageResponseSuccess
267
+ include ::Seahorse::Client::_ResponseSuccess[Types::SendMessageResult]
268
+ def md5_of_message_body: () -> ::String
269
+ def md5_of_message_attributes: () -> ::String
270
+ def md5_of_message_system_attributes: () -> ::String
271
+ def message_id: () -> ::String
272
+ def sequence_number: () -> ::String
273
+ end
274
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#send_message-instance_method
275
+ def send_message: (
276
+ queue_url: ::String,
277
+ message_body: ::String,
278
+ ?delay_seconds: ::Integer,
279
+ ?message_attributes: Hash[::String, {
280
+ string_value: ::String?,
281
+ binary_value: ::String?,
282
+ string_list_values: Array[::String]?,
283
+ binary_list_values: Array[::String]?,
284
+ data_type: ::String
285
+ }],
286
+ ?message_system_attributes: Hash[("AWSTraceHeader"), {
287
+ string_value: ::String?,
288
+ binary_value: ::String?,
289
+ string_list_values: Array[::String]?,
290
+ binary_list_values: Array[::String]?,
291
+ data_type: ::String
292
+ }],
293
+ ?message_deduplication_id: ::String,
294
+ ?message_group_id: ::String
295
+ ) -> _SendMessageResponseSuccess
296
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SendMessageResponseSuccess
297
+
298
+ interface _SendMessageBatchResponseSuccess
299
+ include ::Seahorse::Client::_ResponseSuccess[Types::SendMessageBatchResult]
300
+ def successful: () -> ::Array[Types::SendMessageBatchResultEntry]
301
+ def failed: () -> ::Array[Types::BatchResultErrorEntry]
302
+ end
303
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#send_message_batch-instance_method
304
+ def send_message_batch: (
305
+ queue_url: ::String,
306
+ entries: Array[
307
+ {
308
+ id: ::String,
309
+ message_body: ::String,
310
+ delay_seconds: ::Integer?,
311
+ message_attributes: Hash[::String, {
312
+ string_value: ::String?,
313
+ binary_value: ::String?,
314
+ string_list_values: Array[::String]?,
315
+ binary_list_values: Array[::String]?,
316
+ data_type: ::String
317
+ }]?,
318
+ message_system_attributes: Hash[("AWSTraceHeader"), {
319
+ string_value: ::String?,
320
+ binary_value: ::String?,
321
+ string_list_values: Array[::String]?,
322
+ binary_list_values: Array[::String]?,
323
+ data_type: ::String
324
+ }]?,
325
+ message_deduplication_id: ::String?,
326
+ message_group_id: ::String?
327
+ },
328
+ ]
329
+ ) -> _SendMessageBatchResponseSuccess
330
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SendMessageBatchResponseSuccess
331
+
332
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#set_queue_attributes-instance_method
333
+ def set_queue_attributes: (
334
+ queue_url: ::String,
335
+ attributes: Hash[("All" | "Policy" | "VisibilityTimeout" | "MaximumMessageSize" | "MessageRetentionPeriod" | "ApproximateNumberOfMessages" | "ApproximateNumberOfMessagesNotVisible" | "CreatedTimestamp" | "LastModifiedTimestamp" | "QueueArn" | "ApproximateNumberOfMessagesDelayed" | "DelaySeconds" | "ReceiveMessageWaitTimeSeconds" | "RedrivePolicy" | "FifoQueue" | "ContentBasedDeduplication" | "KmsMasterKeyId" | "KmsDataKeyReusePeriodSeconds" | "DeduplicationScope" | "FifoThroughputLimit" | "RedriveAllowPolicy" | "SqsManagedSseEnabled"), ::String]
336
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
337
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
338
+
339
+ interface _StartMessageMoveTaskResponseSuccess
340
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartMessageMoveTaskResult]
341
+ def task_handle: () -> ::String
342
+ end
343
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#start_message_move_task-instance_method
344
+ def start_message_move_task: (
345
+ source_arn: ::String,
346
+ ?destination_arn: ::String,
347
+ ?max_number_of_messages_per_second: ::Integer
348
+ ) -> _StartMessageMoveTaskResponseSuccess
349
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartMessageMoveTaskResponseSuccess
350
+
351
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#tag_queue-instance_method
352
+ def tag_queue: (
353
+ queue_url: ::String,
354
+ tags: Hash[::String, ::String]
355
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
356
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
357
+
358
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html#untag_queue-instance_method
359
+ def untag_queue: (
360
+ queue_url: ::String,
361
+ tag_keys: Array[::String]
362
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
363
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
364
+ end
365
+ end
366
+ end
367
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,98 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SQS
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class BatchEntryIdsNotDistinct < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class BatchRequestTooLong < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class EmptyBatchRequest < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class InvalidAddress < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ class InvalidAttributeName < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ class InvalidAttributeValue < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ end
32
+ class InvalidBatchEntryId < ::Aws::Errors::ServiceError
33
+ def message: () -> ::String
34
+ end
35
+ class InvalidIdFormat < ::Aws::Errors::ServiceError
36
+ end
37
+ class InvalidMessageContents < ::Aws::Errors::ServiceError
38
+ def message: () -> ::String
39
+ end
40
+ class InvalidSecurity < ::Aws::Errors::ServiceError
41
+ def message: () -> ::String
42
+ end
43
+ class KmsAccessDenied < ::Aws::Errors::ServiceError
44
+ def message: () -> ::String
45
+ end
46
+ class KmsDisabled < ::Aws::Errors::ServiceError
47
+ def message: () -> ::String
48
+ end
49
+ class KmsInvalidKeyUsage < ::Aws::Errors::ServiceError
50
+ def message: () -> ::String
51
+ end
52
+ class KmsInvalidState < ::Aws::Errors::ServiceError
53
+ def message: () -> ::String
54
+ end
55
+ class KmsNotFound < ::Aws::Errors::ServiceError
56
+ def message: () -> ::String
57
+ end
58
+ class KmsOptInRequired < ::Aws::Errors::ServiceError
59
+ def message: () -> ::String
60
+ end
61
+ class KmsThrottled < ::Aws::Errors::ServiceError
62
+ def message: () -> ::String
63
+ end
64
+ class MessageNotInflight < ::Aws::Errors::ServiceError
65
+ end
66
+ class OverLimit < ::Aws::Errors::ServiceError
67
+ def message: () -> ::String
68
+ end
69
+ class PurgeQueueInProgress < ::Aws::Errors::ServiceError
70
+ def message: () -> ::String
71
+ end
72
+ class QueueDeletedRecently < ::Aws::Errors::ServiceError
73
+ def message: () -> ::String
74
+ end
75
+ class QueueDoesNotExist < ::Aws::Errors::ServiceError
76
+ def message: () -> ::String
77
+ end
78
+ class QueueNameExists < ::Aws::Errors::ServiceError
79
+ def message: () -> ::String
80
+ end
81
+ class ReceiptHandleIsInvalid < ::Aws::Errors::ServiceError
82
+ def message: () -> ::String
83
+ end
84
+ class RequestThrottled < ::Aws::Errors::ServiceError
85
+ def message: () -> ::String
86
+ end
87
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
88
+ def message: () -> ::String
89
+ end
90
+ class TooManyEntriesInBatchRequest < ::Aws::Errors::ServiceError
91
+ def message: () -> ::String
92
+ end
93
+ class UnsupportedOperation < ::Aws::Errors::ServiceError
94
+ def message: () -> ::String
95
+ end
96
+ end
97
+ end
98
+ end
data/sig/message.rbs ADDED
@@ -0,0 +1,73 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SQS
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html
11
+ class Message
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#initialize-instance_method
13
+ def initialize: (String queue_url, String receipt_handle, Hash[Symbol, untyped] options) -> void
14
+ | (queue_url: String, receipt_handle: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#queue_url-instance_method
18
+ def queue_url: () -> String
19
+
20
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#receipt_handle-instance_method
21
+ def receipt_handle: () -> String
22
+
23
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#message_id-instance_method
24
+ def message_id: () -> ::String
25
+
26
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#md5_of_body-instance_method
27
+ def md5_of_body: () -> ::String
28
+
29
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#body-instance_method
30
+ def body: () -> ::String
31
+
32
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#attributes-instance_method
33
+ def attributes: () -> ::Hash[("All" | "SenderId" | "SentTimestamp" | "ApproximateReceiveCount" | "ApproximateFirstReceiveTimestamp" | "SequenceNumber" | "MessageDeduplicationId" | "MessageGroupId" | "AWSTraceHeader" | "DeadLetterQueueSourceArn"), ::String]
34
+
35
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#md5_of_message_attributes-instance_method
36
+ def md5_of_message_attributes: () -> ::String
37
+
38
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#message_attributes-instance_method
39
+ def message_attributes: () -> ::Hash[::String, Types::MessageAttributeValue]
40
+
41
+ def client: () -> Client
42
+
43
+
44
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#data-instance_method
45
+ def data: () -> Types::Message
46
+
47
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#data_loaded?-instance_method
48
+ def data_loaded?: () -> bool
49
+
50
+
51
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#change_visibility-instance_method
52
+ def change_visibility: (
53
+ visibility_timeout: ::Integer
54
+ ) -> ::Aws::EmptyStructure
55
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
56
+
57
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#delete-instance_method
58
+ def delete: (
59
+ ) -> ::Aws::EmptyStructure
60
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
61
+
62
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Message.html#queue-instance_method
63
+ def queue: () -> Queue
64
+
65
+ class Collection < ::Aws::Resources::Collection[Message]
66
+
67
+ def batch_delete!: (
68
+ ) -> void
69
+ | (?Hash[Symbol, untyped]) -> void
70
+ end
71
+ end
72
+ end
73
+ end