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