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