aws-sdk-sqs 1.10.0 → 1.34.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
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:
@@ -22,6 +24,7 @@ module Aws::SQS
22
24
  Binary = Shapes::BlobShape.new(name: 'Binary')
23
25
  BinaryList = Shapes::ListShape.new(name: 'BinaryList', flattened: true)
24
26
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
27
+ BoxedInteger = Shapes::IntegerShape.new(name: 'BoxedInteger')
25
28
  ChangeMessageVisibilityBatchRequest = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchRequest')
26
29
  ChangeMessageVisibilityBatchRequestEntry = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchRequestEntry')
27
30
  ChangeMessageVisibilityBatchRequestEntryList = Shapes::ListShape.new(name: 'ChangeMessageVisibilityBatchRequestEntryList', flattened: true)
@@ -60,10 +63,13 @@ module Aws::SQS
60
63
  MessageAttributeNameList = Shapes::ListShape.new(name: 'MessageAttributeNameList', flattened: true)
61
64
  MessageAttributeValue = Shapes::StructureShape.new(name: 'MessageAttributeValue')
62
65
  MessageBodyAttributeMap = Shapes::MapShape.new(name: 'MessageBodyAttributeMap', flattened: true)
66
+ MessageBodySystemAttributeMap = Shapes::MapShape.new(name: 'MessageBodySystemAttributeMap', flattened: true)
63
67
  MessageList = Shapes::ListShape.new(name: 'MessageList', flattened: true)
64
68
  MessageNotInflight = Shapes::StructureShape.new(name: 'MessageNotInflight')
65
69
  MessageSystemAttributeMap = Shapes::MapShape.new(name: 'MessageSystemAttributeMap', flattened: true)
66
70
  MessageSystemAttributeName = Shapes::StringShape.new(name: 'MessageSystemAttributeName')
71
+ MessageSystemAttributeNameForSends = Shapes::StringShape.new(name: 'MessageSystemAttributeNameForSends')
72
+ MessageSystemAttributeValue = Shapes::StructureShape.new(name: 'MessageSystemAttributeValue')
67
73
  OverLimit = Shapes::StructureShape.new(name: 'OverLimit')
68
74
  PurgeQueueInProgress = Shapes::StructureShape.new(name: 'PurgeQueueInProgress')
69
75
  PurgeQueueRequest = Shapes::StructureShape.new(name: 'PurgeQueueRequest')
@@ -93,6 +99,7 @@ module Aws::SQS
93
99
  TagMap = Shapes::MapShape.new(name: 'TagMap', flattened: true)
94
100
  TagQueueRequest = Shapes::StructureShape.new(name: 'TagQueueRequest')
95
101
  TagValue = Shapes::StringShape.new(name: 'TagValue')
102
+ Token = Shapes::StringShape.new(name: 'Token')
96
103
  TooManyEntriesInBatchRequest = Shapes::StructureShape.new(name: 'TooManyEntriesInBatchRequest')
97
104
  UnsupportedOperation = Shapes::StructureShape.new(name: 'UnsupportedOperation')
98
105
  UntagQueueRequest = Shapes::StructureShape.new(name: 'UntagQueueRequest')
@@ -109,6 +116,10 @@ module Aws::SQS
109
116
 
110
117
  AttributeNameList.member = Shapes::ShapeRef.new(shape: QueueAttributeName, location_name: "AttributeName")
111
118
 
119
+ BatchEntryIdsNotDistinct.struct_class = Types::BatchEntryIdsNotDistinct
120
+
121
+ BatchRequestTooLong.struct_class = Types::BatchRequestTooLong
122
+
112
123
  BatchResultErrorEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
113
124
  BatchResultErrorEntry.add_member(:sender_fault, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "SenderFault"))
114
125
  BatchResultErrorEntry.add_member(:code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Code"))
@@ -146,6 +157,7 @@ module Aws::SQS
146
157
 
147
158
  CreateQueueRequest.add_member(:queue_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueName"))
148
159
  CreateQueueRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: QueueAttributeMap, location_name: "Attribute"))
160
+ CreateQueueRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tag"))
149
161
  CreateQueueRequest.struct_class = Types::CreateQueueRequest
150
162
 
151
163
  CreateQueueResult.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, location_name: "QueueUrl"))
@@ -177,6 +189,8 @@ module Aws::SQS
177
189
  DeleteQueueRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
178
190
  DeleteQueueRequest.struct_class = Types::DeleteQueueRequest
179
191
 
192
+ EmptyBatchRequest.struct_class = Types::EmptyBatchRequest
193
+
180
194
  GetQueueAttributesRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
181
195
  GetQueueAttributesRequest.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributeNames"))
182
196
  GetQueueAttributesRequest.struct_class = Types::GetQueueAttributesRequest
@@ -191,10 +205,21 @@ module Aws::SQS
191
205
  GetQueueUrlResult.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, location_name: "QueueUrl"))
192
206
  GetQueueUrlResult.struct_class = Types::GetQueueUrlResult
193
207
 
208
+ InvalidAttributeName.struct_class = Types::InvalidAttributeName
209
+
210
+ InvalidBatchEntryId.struct_class = Types::InvalidBatchEntryId
211
+
212
+ InvalidIdFormat.struct_class = Types::InvalidIdFormat
213
+
214
+ InvalidMessageContents.struct_class = Types::InvalidMessageContents
215
+
194
216
  ListDeadLetterSourceQueuesRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
217
+ ListDeadLetterSourceQueuesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
218
+ ListDeadLetterSourceQueuesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "MaxResults"))
195
219
  ListDeadLetterSourceQueuesRequest.struct_class = Types::ListDeadLetterSourceQueuesRequest
196
220
 
197
221
  ListDeadLetterSourceQueuesResult.add_member(:queue_urls, Shapes::ShapeRef.new(shape: QueueUrlList, required: true, location_name: "queueUrls"))
222
+ ListDeadLetterSourceQueuesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
198
223
  ListDeadLetterSourceQueuesResult.struct_class = Types::ListDeadLetterSourceQueuesResult
199
224
 
200
225
  ListQueueTagsRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
@@ -204,9 +229,12 @@ module Aws::SQS
204
229
  ListQueueTagsResult.struct_class = Types::ListQueueTagsResult
205
230
 
206
231
  ListQueuesRequest.add_member(:queue_name_prefix, Shapes::ShapeRef.new(shape: String, location_name: "QueueNamePrefix"))
232
+ ListQueuesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
233
+ ListQueuesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "MaxResults"))
207
234
  ListQueuesRequest.struct_class = Types::ListQueuesRequest
208
235
 
209
236
  ListQueuesResult.add_member(:queue_urls, Shapes::ShapeRef.new(shape: QueueUrlList, location_name: "QueueUrls"))
237
+ ListQueuesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
210
238
  ListQueuesResult.struct_class = Types::ListQueuesResult
211
239
 
212
240
  Message.add_member(:message_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageId"))
@@ -230,19 +258,43 @@ module Aws::SQS
230
258
  MessageBodyAttributeMap.key = Shapes::ShapeRef.new(shape: String, location_name: "Name")
231
259
  MessageBodyAttributeMap.value = Shapes::ShapeRef.new(shape: MessageAttributeValue, location_name: "Value")
232
260
 
261
+ MessageBodySystemAttributeMap.key = Shapes::ShapeRef.new(shape: MessageSystemAttributeNameForSends, location_name: "Name")
262
+ MessageBodySystemAttributeMap.value = Shapes::ShapeRef.new(shape: MessageSystemAttributeValue, location_name: "Value")
263
+
233
264
  MessageList.member = Shapes::ShapeRef.new(shape: Message, location_name: "Message")
234
265
 
266
+ MessageNotInflight.struct_class = Types::MessageNotInflight
267
+
235
268
  MessageSystemAttributeMap.key = Shapes::ShapeRef.new(shape: MessageSystemAttributeName, location_name: "Name")
236
269
  MessageSystemAttributeMap.value = Shapes::ShapeRef.new(shape: String, location_name: "Value")
237
270
 
271
+ MessageSystemAttributeValue.add_member(:string_value, Shapes::ShapeRef.new(shape: String, location_name: "StringValue"))
272
+ MessageSystemAttributeValue.add_member(:binary_value, Shapes::ShapeRef.new(shape: Binary, location_name: "BinaryValue"))
273
+ MessageSystemAttributeValue.add_member(:string_list_values, Shapes::ShapeRef.new(shape: StringList, location_name: "StringListValue", metadata: {"flattened"=>true}))
274
+ MessageSystemAttributeValue.add_member(:binary_list_values, Shapes::ShapeRef.new(shape: BinaryList, location_name: "BinaryListValue", metadata: {"flattened"=>true}))
275
+ MessageSystemAttributeValue.add_member(:data_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DataType"))
276
+ MessageSystemAttributeValue.struct_class = Types::MessageSystemAttributeValue
277
+
278
+ OverLimit.struct_class = Types::OverLimit
279
+
280
+ PurgeQueueInProgress.struct_class = Types::PurgeQueueInProgress
281
+
238
282
  PurgeQueueRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
239
283
  PurgeQueueRequest.struct_class = Types::PurgeQueueRequest
240
284
 
241
285
  QueueAttributeMap.key = Shapes::ShapeRef.new(shape: QueueAttributeName, location_name: "Name")
242
286
  QueueAttributeMap.value = Shapes::ShapeRef.new(shape: String, location_name: "Value")
243
287
 
288
+ QueueDeletedRecently.struct_class = Types::QueueDeletedRecently
289
+
290
+ QueueDoesNotExist.struct_class = Types::QueueDoesNotExist
291
+
292
+ QueueNameExists.struct_class = Types::QueueNameExists
293
+
244
294
  QueueUrlList.member = Shapes::ShapeRef.new(shape: String, location_name: "QueueUrl")
245
295
 
296
+ ReceiptHandleIsInvalid.struct_class = Types::ReceiptHandleIsInvalid
297
+
246
298
  ReceiveMessageRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
247
299
  ReceiveMessageRequest.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributeNames"))
248
300
  ReceiveMessageRequest.add_member(:message_attribute_names, Shapes::ShapeRef.new(shape: MessageAttributeNameList, location_name: "MessageAttributeNames"))
@@ -267,6 +319,7 @@ module Aws::SQS
267
319
  SendMessageBatchRequestEntry.add_member(:message_body, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MessageBody"))
268
320
  SendMessageBatchRequestEntry.add_member(:delay_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "DelaySeconds"))
269
321
  SendMessageBatchRequestEntry.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageBodyAttributeMap, location_name: "MessageAttribute"))
322
+ SendMessageBatchRequestEntry.add_member(:message_system_attributes, Shapes::ShapeRef.new(shape: MessageBodySystemAttributeMap, location_name: "MessageSystemAttribute"))
270
323
  SendMessageBatchRequestEntry.add_member(:message_deduplication_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageDeduplicationId"))
271
324
  SendMessageBatchRequestEntry.add_member(:message_group_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageGroupId"))
272
325
  SendMessageBatchRequestEntry.struct_class = Types::SendMessageBatchRequestEntry
@@ -281,6 +334,7 @@ module Aws::SQS
281
334
  SendMessageBatchResultEntry.add_member(:message_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MessageId"))
282
335
  SendMessageBatchResultEntry.add_member(:md5_of_message_body, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MD5OfMessageBody"))
283
336
  SendMessageBatchResultEntry.add_member(:md5_of_message_attributes, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfMessageAttributes"))
337
+ SendMessageBatchResultEntry.add_member(:md5_of_message_system_attributes, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfMessageSystemAttributes"))
284
338
  SendMessageBatchResultEntry.add_member(:sequence_number, Shapes::ShapeRef.new(shape: String, location_name: "SequenceNumber"))
285
339
  SendMessageBatchResultEntry.struct_class = Types::SendMessageBatchResultEntry
286
340
 
@@ -290,12 +344,14 @@ module Aws::SQS
290
344
  SendMessageRequest.add_member(:message_body, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MessageBody"))
291
345
  SendMessageRequest.add_member(:delay_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "DelaySeconds"))
292
346
  SendMessageRequest.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageBodyAttributeMap, location_name: "MessageAttribute"))
347
+ SendMessageRequest.add_member(:message_system_attributes, Shapes::ShapeRef.new(shape: MessageBodySystemAttributeMap, location_name: "MessageSystemAttribute"))
293
348
  SendMessageRequest.add_member(:message_deduplication_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageDeduplicationId"))
294
349
  SendMessageRequest.add_member(:message_group_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageGroupId"))
295
350
  SendMessageRequest.struct_class = Types::SendMessageRequest
296
351
 
297
352
  SendMessageResult.add_member(:md5_of_message_body, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfMessageBody"))
298
353
  SendMessageResult.add_member(:md5_of_message_attributes, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfMessageAttributes"))
354
+ SendMessageResult.add_member(:md5_of_message_system_attributes, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfMessageSystemAttributes"))
299
355
  SendMessageResult.add_member(:message_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageId"))
300
356
  SendMessageResult.add_member(:sequence_number, Shapes::ShapeRef.new(shape: String, location_name: "SequenceNumber"))
301
357
  SendMessageResult.struct_class = Types::SendMessageResult
@@ -315,6 +371,10 @@ module Aws::SQS
315
371
  TagQueueRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
316
372
  TagQueueRequest.struct_class = Types::TagQueueRequest
317
373
 
374
+ TooManyEntriesInBatchRequest.struct_class = Types::TooManyEntriesInBatchRequest
375
+
376
+ UnsupportedOperation.struct_class = Types::UnsupportedOperation
377
+
318
378
  UntagQueueRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
319
379
  UntagQueueRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
320
380
  UntagQueueRequest.struct_class = Types::UntagQueueRequest
@@ -434,6 +494,12 @@ module Aws::SQS
434
494
  o.input = Shapes::ShapeRef.new(shape: ListDeadLetterSourceQueuesRequest)
435
495
  o.output = Shapes::ShapeRef.new(shape: ListDeadLetterSourceQueuesResult)
436
496
  o.errors << Shapes::ShapeRef.new(shape: QueueDoesNotExist)
497
+ o[:pager] = Aws::Pager.new(
498
+ limit_key: "max_results",
499
+ tokens: {
500
+ "next_token" => "next_token"
501
+ }
502
+ )
437
503
  end)
438
504
 
439
505
  api.add_operation(:list_queue_tags, Seahorse::Model::Operation.new.tap do |o|
@@ -450,6 +516,12 @@ module Aws::SQS
450
516
  o.http_request_uri = "/"
451
517
  o.input = Shapes::ShapeRef.new(shape: ListQueuesRequest)
452
518
  o.output = Shapes::ShapeRef.new(shape: ListQueuesResult)
519
+ o[:pager] = Aws::Pager.new(
520
+ limit_key: "max_results",
521
+ tokens: {
522
+ "next_token" => "next_token"
523
+ }
524
+ )
453
525
  end)
454
526
 
455
527
  api.add_operation(:purge_queue, Seahorse::Model::Operation.new.tap do |o|
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # utility classes
2
4
  require 'aws-sdk-sqs/queue_poller'
@@ -1,3 +1,5 @@
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:
@@ -6,9 +8,207 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::SQS
11
+
12
+ # When SQS returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::SQS::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all SQS errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::SQS::Errors::ServiceError
20
+ # # rescues all SQS API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {BatchEntryIdsNotDistinct}
31
+ # * {BatchRequestTooLong}
32
+ # * {EmptyBatchRequest}
33
+ # * {InvalidAttributeName}
34
+ # * {InvalidBatchEntryId}
35
+ # * {InvalidIdFormat}
36
+ # * {InvalidMessageContents}
37
+ # * {MessageNotInflight}
38
+ # * {OverLimit}
39
+ # * {PurgeQueueInProgress}
40
+ # * {QueueDeletedRecently}
41
+ # * {QueueDoesNotExist}
42
+ # * {QueueNameExists}
43
+ # * {ReceiptHandleIsInvalid}
44
+ # * {TooManyEntriesInBatchRequest}
45
+ # * {UnsupportedOperation}
46
+ #
47
+ # Additionally, error classes are dynamically generated for service errors based on the error code
48
+ # if they are not defined above.
9
49
  module Errors
10
50
 
11
51
  extend Aws::Errors::DynamicErrors
12
52
 
53
+ class BatchEntryIdsNotDistinct < ServiceError
54
+
55
+ # @param [Seahorse::Client::RequestContext] context
56
+ # @param [String] message
57
+ # @param [Aws::SQS::Types::BatchEntryIdsNotDistinct] data
58
+ def initialize(context, message, data = Aws::EmptyStructure.new)
59
+ super(context, message, data)
60
+ end
61
+ end
62
+
63
+ class BatchRequestTooLong < ServiceError
64
+
65
+ # @param [Seahorse::Client::RequestContext] context
66
+ # @param [String] message
67
+ # @param [Aws::SQS::Types::BatchRequestTooLong] data
68
+ def initialize(context, message, data = Aws::EmptyStructure.new)
69
+ super(context, message, data)
70
+ end
71
+ end
72
+
73
+ class EmptyBatchRequest < ServiceError
74
+
75
+ # @param [Seahorse::Client::RequestContext] context
76
+ # @param [String] message
77
+ # @param [Aws::SQS::Types::EmptyBatchRequest] data
78
+ def initialize(context, message, data = Aws::EmptyStructure.new)
79
+ super(context, message, data)
80
+ end
81
+ end
82
+
83
+ class InvalidAttributeName < ServiceError
84
+
85
+ # @param [Seahorse::Client::RequestContext] context
86
+ # @param [String] message
87
+ # @param [Aws::SQS::Types::InvalidAttributeName] data
88
+ def initialize(context, message, data = Aws::EmptyStructure.new)
89
+ super(context, message, data)
90
+ end
91
+ end
92
+
93
+ class InvalidBatchEntryId < ServiceError
94
+
95
+ # @param [Seahorse::Client::RequestContext] context
96
+ # @param [String] message
97
+ # @param [Aws::SQS::Types::InvalidBatchEntryId] data
98
+ def initialize(context, message, data = Aws::EmptyStructure.new)
99
+ super(context, message, data)
100
+ end
101
+ end
102
+
103
+ class InvalidIdFormat < ServiceError
104
+
105
+ # @param [Seahorse::Client::RequestContext] context
106
+ # @param [String] message
107
+ # @param [Aws::SQS::Types::InvalidIdFormat] data
108
+ def initialize(context, message, data = Aws::EmptyStructure.new)
109
+ super(context, message, data)
110
+ end
111
+ end
112
+
113
+ class InvalidMessageContents < ServiceError
114
+
115
+ # @param [Seahorse::Client::RequestContext] context
116
+ # @param [String] message
117
+ # @param [Aws::SQS::Types::InvalidMessageContents] data
118
+ def initialize(context, message, data = Aws::EmptyStructure.new)
119
+ super(context, message, data)
120
+ end
121
+ end
122
+
123
+ class MessageNotInflight < ServiceError
124
+
125
+ # @param [Seahorse::Client::RequestContext] context
126
+ # @param [String] message
127
+ # @param [Aws::SQS::Types::MessageNotInflight] data
128
+ def initialize(context, message, data = Aws::EmptyStructure.new)
129
+ super(context, message, data)
130
+ end
131
+ end
132
+
133
+ class OverLimit < ServiceError
134
+
135
+ # @param [Seahorse::Client::RequestContext] context
136
+ # @param [String] message
137
+ # @param [Aws::SQS::Types::OverLimit] data
138
+ def initialize(context, message, data = Aws::EmptyStructure.new)
139
+ super(context, message, data)
140
+ end
141
+ end
142
+
143
+ class PurgeQueueInProgress < ServiceError
144
+
145
+ # @param [Seahorse::Client::RequestContext] context
146
+ # @param [String] message
147
+ # @param [Aws::SQS::Types::PurgeQueueInProgress] data
148
+ def initialize(context, message, data = Aws::EmptyStructure.new)
149
+ super(context, message, data)
150
+ end
151
+ end
152
+
153
+ class QueueDeletedRecently < ServiceError
154
+
155
+ # @param [Seahorse::Client::RequestContext] context
156
+ # @param [String] message
157
+ # @param [Aws::SQS::Types::QueueDeletedRecently] data
158
+ def initialize(context, message, data = Aws::EmptyStructure.new)
159
+ super(context, message, data)
160
+ end
161
+ end
162
+
163
+ class QueueDoesNotExist < ServiceError
164
+
165
+ # @param [Seahorse::Client::RequestContext] context
166
+ # @param [String] message
167
+ # @param [Aws::SQS::Types::QueueDoesNotExist] data
168
+ def initialize(context, message, data = Aws::EmptyStructure.new)
169
+ super(context, message, data)
170
+ end
171
+ end
172
+
173
+ class QueueNameExists < ServiceError
174
+
175
+ # @param [Seahorse::Client::RequestContext] context
176
+ # @param [String] message
177
+ # @param [Aws::SQS::Types::QueueNameExists] data
178
+ def initialize(context, message, data = Aws::EmptyStructure.new)
179
+ super(context, message, data)
180
+ end
181
+ end
182
+
183
+ class ReceiptHandleIsInvalid < ServiceError
184
+
185
+ # @param [Seahorse::Client::RequestContext] context
186
+ # @param [String] message
187
+ # @param [Aws::SQS::Types::ReceiptHandleIsInvalid] data
188
+ def initialize(context, message, data = Aws::EmptyStructure.new)
189
+ super(context, message, data)
190
+ end
191
+ end
192
+
193
+ class TooManyEntriesInBatchRequest < ServiceError
194
+
195
+ # @param [Seahorse::Client::RequestContext] context
196
+ # @param [String] message
197
+ # @param [Aws::SQS::Types::TooManyEntriesInBatchRequest] data
198
+ def initialize(context, message, data = Aws::EmptyStructure.new)
199
+ super(context, message, data)
200
+ end
201
+ end
202
+
203
+ class UnsupportedOperation < ServiceError
204
+
205
+ # @param [Seahorse::Client::RequestContext] context
206
+ # @param [String] message
207
+ # @param [Aws::SQS::Types::UnsupportedOperation] data
208
+ def initialize(context, message, data = Aws::EmptyStructure.new)
209
+ super(context, message, data)
210
+ end
211
+ end
212
+
13
213
  end
14
214
  end
@@ -1,3 +1,5 @@
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:
@@ -6,6 +8,7 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::SQS
11
+
9
12
  class Message
10
13
 
11
14
  extend Aws::Deprecations
@@ -24,6 +27,7 @@ module Aws::SQS
24
27
  @receipt_handle = extract_receipt_handle(args, options)
25
28
  @data = options.delete(:data)
26
29
  @client = options.delete(:client) || Client.new(options)
30
+ @waiter_block_warned = false
27
31
  end
28
32
 
29
33
  # @!group Read-Only Attributes
@@ -105,7 +109,7 @@ module Aws::SQS
105
109
  #
106
110
  #
107
111
  #
108
- # [1]: http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html
112
+ # [1]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes
109
113
  # @return [Hash<String,Types::MessageAttributeValue>]
110
114
  def message_attributes
111
115
  data[:message_attributes]
@@ -151,7 +155,7 @@ module Aws::SQS
151
155
  # @param [Hash] options ({})
152
156
  # @option options [required, Integer] :visibility_timeout
153
157
  # The new value for the message's visibility timeout (in seconds).
154
- # Values values: `0` to `43200`. Maximum: 12 hours.
158
+ # Values range: `0` to `43200`. Maximum: 12 hours.
155
159
  # @return [EmptyStructure]
156
160
  def change_visibility(options = {})
157
161
  options = options.merge(