aws-sdk-sqs 1.52.0 → 1.62.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.
@@ -25,6 +25,8 @@ module Aws::SQS
25
25
  BinaryList = Shapes::ListShape.new(name: 'BinaryList', flattened: true)
26
26
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
27
27
  BoxedInteger = Shapes::IntegerShape.new(name: 'BoxedInteger')
28
+ CancelMessageMoveTaskRequest = Shapes::StructureShape.new(name: 'CancelMessageMoveTaskRequest')
29
+ CancelMessageMoveTaskResult = Shapes::StructureShape.new(name: 'CancelMessageMoveTaskResult')
28
30
  ChangeMessageVisibilityBatchRequest = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchRequest')
29
31
  ChangeMessageVisibilityBatchRequestEntry = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchRequestEntry')
30
32
  ChangeMessageVisibilityBatchRequestEntryList = Shapes::ListShape.new(name: 'ChangeMessageVisibilityBatchRequestEntryList', flattened: true)
@@ -54,10 +56,15 @@ module Aws::SQS
54
56
  InvalidMessageContents = Shapes::StructureShape.new(name: 'InvalidMessageContents')
55
57
  ListDeadLetterSourceQueuesRequest = Shapes::StructureShape.new(name: 'ListDeadLetterSourceQueuesRequest')
56
58
  ListDeadLetterSourceQueuesResult = Shapes::StructureShape.new(name: 'ListDeadLetterSourceQueuesResult')
59
+ ListMessageMoveTasksRequest = Shapes::StructureShape.new(name: 'ListMessageMoveTasksRequest')
60
+ ListMessageMoveTasksResult = Shapes::StructureShape.new(name: 'ListMessageMoveTasksResult')
61
+ ListMessageMoveTasksResultEntry = Shapes::StructureShape.new(name: 'ListMessageMoveTasksResultEntry')
62
+ ListMessageMoveTasksResultEntryList = Shapes::ListShape.new(name: 'ListMessageMoveTasksResultEntryList', flattened: true)
57
63
  ListQueueTagsRequest = Shapes::StructureShape.new(name: 'ListQueueTagsRequest')
58
64
  ListQueueTagsResult = Shapes::StructureShape.new(name: 'ListQueueTagsResult')
59
65
  ListQueuesRequest = Shapes::StructureShape.new(name: 'ListQueuesRequest')
60
66
  ListQueuesResult = Shapes::StructureShape.new(name: 'ListQueuesResult')
67
+ Long = Shapes::IntegerShape.new(name: 'Long')
61
68
  Message = Shapes::StructureShape.new(name: 'Message')
62
69
  MessageAttributeName = Shapes::StringShape.new(name: 'MessageAttributeName')
63
70
  MessageAttributeNameList = Shapes::ListShape.new(name: 'MessageAttributeNameList', flattened: true)
@@ -83,6 +90,7 @@ module Aws::SQS
83
90
  ReceiveMessageRequest = Shapes::StructureShape.new(name: 'ReceiveMessageRequest')
84
91
  ReceiveMessageResult = Shapes::StructureShape.new(name: 'ReceiveMessageResult')
85
92
  RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
93
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
86
94
  SendMessageBatchRequest = Shapes::StructureShape.new(name: 'SendMessageBatchRequest')
87
95
  SendMessageBatchRequestEntry = Shapes::StructureShape.new(name: 'SendMessageBatchRequestEntry')
88
96
  SendMessageBatchRequestEntryList = Shapes::ListShape.new(name: 'SendMessageBatchRequestEntryList', flattened: true)
@@ -92,6 +100,8 @@ module Aws::SQS
92
100
  SendMessageRequest = Shapes::StructureShape.new(name: 'SendMessageRequest')
93
101
  SendMessageResult = Shapes::StructureShape.new(name: 'SendMessageResult')
94
102
  SetQueueAttributesRequest = Shapes::StructureShape.new(name: 'SetQueueAttributesRequest')
103
+ StartMessageMoveTaskRequest = Shapes::StructureShape.new(name: 'StartMessageMoveTaskRequest')
104
+ StartMessageMoveTaskResult = Shapes::StructureShape.new(name: 'StartMessageMoveTaskResult')
95
105
  String = Shapes::StringShape.new(name: 'String')
96
106
  StringList = Shapes::ListShape.new(name: 'StringList', flattened: true)
97
107
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -130,6 +140,12 @@ module Aws::SQS
130
140
 
131
141
  BinaryList.member = Shapes::ShapeRef.new(shape: Binary, location_name: "BinaryListValue")
132
142
 
143
+ CancelMessageMoveTaskRequest.add_member(:task_handle, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TaskHandle"))
144
+ CancelMessageMoveTaskRequest.struct_class = Types::CancelMessageMoveTaskRequest
145
+
146
+ CancelMessageMoveTaskResult.add_member(:approximate_number_of_messages_moved, Shapes::ShapeRef.new(shape: Long, location_name: "ApproximateNumberOfMessagesMoved"))
147
+ CancelMessageMoveTaskResult.struct_class = Types::CancelMessageMoveTaskResult
148
+
133
149
  ChangeMessageVisibilityBatchRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
134
150
  ChangeMessageVisibilityBatchRequest.add_member(:entries, Shapes::ShapeRef.new(shape: ChangeMessageVisibilityBatchRequestEntryList, required: true, location_name: "Entries"))
135
151
  ChangeMessageVisibilityBatchRequest.struct_class = Types::ChangeMessageVisibilityBatchRequest
@@ -222,6 +238,26 @@ module Aws::SQS
222
238
  ListDeadLetterSourceQueuesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
223
239
  ListDeadLetterSourceQueuesResult.struct_class = Types::ListDeadLetterSourceQueuesResult
224
240
 
241
+ ListMessageMoveTasksRequest.add_member(:source_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "SourceArn"))
242
+ ListMessageMoveTasksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
243
+ ListMessageMoveTasksRequest.struct_class = Types::ListMessageMoveTasksRequest
244
+
245
+ ListMessageMoveTasksResult.add_member(:results, Shapes::ShapeRef.new(shape: ListMessageMoveTasksResultEntryList, location_name: "Results"))
246
+ ListMessageMoveTasksResult.struct_class = Types::ListMessageMoveTasksResult
247
+
248
+ ListMessageMoveTasksResultEntry.add_member(:task_handle, Shapes::ShapeRef.new(shape: String, location_name: "TaskHandle"))
249
+ ListMessageMoveTasksResultEntry.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
250
+ ListMessageMoveTasksResultEntry.add_member(:source_arn, Shapes::ShapeRef.new(shape: String, location_name: "SourceArn"))
251
+ ListMessageMoveTasksResultEntry.add_member(:destination_arn, Shapes::ShapeRef.new(shape: String, location_name: "DestinationArn"))
252
+ ListMessageMoveTasksResultEntry.add_member(:max_number_of_messages_per_second, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxNumberOfMessagesPerSecond"))
253
+ ListMessageMoveTasksResultEntry.add_member(:approximate_number_of_messages_moved, Shapes::ShapeRef.new(shape: Long, location_name: "ApproximateNumberOfMessagesMoved"))
254
+ ListMessageMoveTasksResultEntry.add_member(:approximate_number_of_messages_to_move, Shapes::ShapeRef.new(shape: Long, location_name: "ApproximateNumberOfMessagesToMove"))
255
+ ListMessageMoveTasksResultEntry.add_member(:failure_reason, Shapes::ShapeRef.new(shape: String, location_name: "FailureReason"))
256
+ ListMessageMoveTasksResultEntry.add_member(:started_timestamp, Shapes::ShapeRef.new(shape: Long, location_name: "StartedTimestamp"))
257
+ ListMessageMoveTasksResultEntry.struct_class = Types::ListMessageMoveTasksResultEntry
258
+
259
+ ListMessageMoveTasksResultEntryList.member = Shapes::ShapeRef.new(shape: ListMessageMoveTasksResultEntry, location_name: "ListMessageMoveTasksResultEntry")
260
+
225
261
  ListQueueTagsRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
226
262
  ListQueueTagsRequest.struct_class = Types::ListQueueTagsRequest
227
263
 
@@ -311,6 +347,8 @@ module Aws::SQS
311
347
  RemovePermissionRequest.add_member(:label, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Label"))
312
348
  RemovePermissionRequest.struct_class = Types::RemovePermissionRequest
313
349
 
350
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
351
+
314
352
  SendMessageBatchRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
315
353
  SendMessageBatchRequest.add_member(:entries, Shapes::ShapeRef.new(shape: SendMessageBatchRequestEntryList, required: true, location_name: "Entries"))
316
354
  SendMessageBatchRequest.struct_class = Types::SendMessageBatchRequest
@@ -360,6 +398,14 @@ module Aws::SQS
360
398
  SetQueueAttributesRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: QueueAttributeMap, required: true, location_name: "Attribute"))
361
399
  SetQueueAttributesRequest.struct_class = Types::SetQueueAttributesRequest
362
400
 
401
+ StartMessageMoveTaskRequest.add_member(:source_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "SourceArn"))
402
+ StartMessageMoveTaskRequest.add_member(:destination_arn, Shapes::ShapeRef.new(shape: String, location_name: "DestinationArn"))
403
+ StartMessageMoveTaskRequest.add_member(:max_number_of_messages_per_second, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxNumberOfMessagesPerSecond"))
404
+ StartMessageMoveTaskRequest.struct_class = Types::StartMessageMoveTaskRequest
405
+
406
+ StartMessageMoveTaskResult.add_member(:task_handle, Shapes::ShapeRef.new(shape: String, location_name: "TaskHandle"))
407
+ StartMessageMoveTaskResult.struct_class = Types::StartMessageMoveTaskResult
408
+
363
409
  StringList.member = Shapes::ShapeRef.new(shape: String, location_name: "StringListValue")
364
410
 
365
411
  TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey, location_name: "TagKey")
@@ -407,6 +453,16 @@ module Aws::SQS
407
453
  o.errors << Shapes::ShapeRef.new(shape: OverLimit)
408
454
  end)
409
455
 
456
+ api.add_operation(:cancel_message_move_task, Seahorse::Model::Operation.new.tap do |o|
457
+ o.name = "CancelMessageMoveTask"
458
+ o.http_method = "POST"
459
+ o.http_request_uri = "/"
460
+ o.input = Shapes::ShapeRef.new(shape: CancelMessageMoveTaskRequest)
461
+ o.output = Shapes::ShapeRef.new(shape: CancelMessageMoveTaskResult)
462
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
463
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperation)
464
+ end)
465
+
410
466
  api.add_operation(:change_message_visibility, Seahorse::Model::Operation.new.tap do |o|
411
467
  o.name = "ChangeMessageVisibility"
412
468
  o.http_method = "POST"
@@ -502,6 +558,16 @@ module Aws::SQS
502
558
  )
503
559
  end)
504
560
 
561
+ api.add_operation(:list_message_move_tasks, Seahorse::Model::Operation.new.tap do |o|
562
+ o.name = "ListMessageMoveTasks"
563
+ o.http_method = "POST"
564
+ o.http_request_uri = "/"
565
+ o.input = Shapes::ShapeRef.new(shape: ListMessageMoveTasksRequest)
566
+ o.output = Shapes::ShapeRef.new(shape: ListMessageMoveTasksResult)
567
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
568
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperation)
569
+ end)
570
+
505
571
  api.add_operation(:list_queue_tags, Seahorse::Model::Operation.new.tap do |o|
506
572
  o.name = "ListQueueTags"
507
573
  o.http_method = "POST"
@@ -584,6 +650,16 @@ module Aws::SQS
584
650
  o.errors << Shapes::ShapeRef.new(shape: InvalidAttributeName)
585
651
  end)
586
652
 
653
+ api.add_operation(:start_message_move_task, Seahorse::Model::Operation.new.tap do |o|
654
+ o.name = "StartMessageMoveTask"
655
+ o.http_method = "POST"
656
+ o.http_request_uri = "/"
657
+ o.input = Shapes::ShapeRef.new(shape: StartMessageMoveTaskRequest)
658
+ o.output = Shapes::ShapeRef.new(shape: StartMessageMoveTaskResult)
659
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
660
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperation)
661
+ end)
662
+
587
663
  api.add_operation(:tag_queue, Seahorse::Model::Operation.new.tap do |o|
588
664
  o.name = "TagQueue"
589
665
  o.http_method = "POST"
@@ -9,108 +9,49 @@
9
9
 
10
10
  module Aws::SQS
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://sqs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
37
+ return Aws::Endpoints::Endpoint.new(url: "https://sqs.#{region}.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ return Aws::Endpoints::Endpoint.new(url: "https://sqs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
+ end
43
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
44
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
45
+ return Aws::Endpoints::Endpoint.new(url: "https://sqs.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
+ end
47
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
48
+ end
49
+ return Aws::Endpoints::Endpoint.new(url: "https://sqs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
50
+ end
51
+ end
52
+ raise ArgumentError, "Invalid Configuration: Missing Region"
53
+ raise ArgumentError, 'No endpoint could be resolved'
24
54
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
55
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
- ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37
- ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
38
-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W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vc3Fz
105
- LntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4
106
- fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRw
107
- b2ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sg
108
- aXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9y
109
- dCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6
110
- W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vc3FzLntSZWdpb259LntQ
111
- YXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJo
112
- ZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
113
-
114
- JSON
115
56
  end
116
57
  end
@@ -9,6 +9,7 @@
9
9
 
10
10
 
11
11
  module Aws::SQS
12
+ # @api private
12
13
  module Endpoints
13
14
 
14
15
  class AddPermission
@@ -25,6 +26,20 @@ module Aws::SQS
25
26
  end
26
27
  end
27
28
 
29
+ class CancelMessageMoveTask
30
+ def self.build(context)
31
+ unless context.config.regional_endpoint
32
+ endpoint = context.config.endpoint.to_s
33
+ end
34
+ Aws::SQS::EndpointParameters.new(
35
+ region: context.config.region,
36
+ use_dual_stack: context.config.use_dualstack_endpoint,
37
+ use_fips: context.config.use_fips_endpoint,
38
+ endpoint: endpoint,
39
+ )
40
+ end
41
+ end
42
+
28
43
  class ChangeMessageVisibility
29
44
  def self.build(context)
30
45
  unless context.config.regional_endpoint
@@ -151,6 +166,20 @@ module Aws::SQS
151
166
  end
152
167
  end
153
168
 
169
+ class ListMessageMoveTasks
170
+ def self.build(context)
171
+ unless context.config.regional_endpoint
172
+ endpoint = context.config.endpoint.to_s
173
+ end
174
+ Aws::SQS::EndpointParameters.new(
175
+ region: context.config.region,
176
+ use_dual_stack: context.config.use_dualstack_endpoint,
177
+ use_fips: context.config.use_fips_endpoint,
178
+ endpoint: endpoint,
179
+ )
180
+ end
181
+ end
182
+
154
183
  class ListQueueTags
155
184
  def self.build(context)
156
185
  unless context.config.regional_endpoint
@@ -263,6 +292,20 @@ module Aws::SQS
263
292
  end
264
293
  end
265
294
 
295
+ class StartMessageMoveTask
296
+ def self.build(context)
297
+ unless context.config.regional_endpoint
298
+ endpoint = context.config.endpoint.to_s
299
+ end
300
+ Aws::SQS::EndpointParameters.new(
301
+ region: context.config.region,
302
+ use_dual_stack: context.config.use_dualstack_endpoint,
303
+ use_fips: context.config.use_fips_endpoint,
304
+ endpoint: endpoint,
305
+ )
306
+ end
307
+ end
308
+
266
309
  class TagQueue
267
310
  def self.build(context)
268
311
  unless context.config.regional_endpoint
@@ -41,6 +41,7 @@ module Aws::SQS
41
41
  # * {QueueDoesNotExist}
42
42
  # * {QueueNameExists}
43
43
  # * {ReceiptHandleIsInvalid}
44
+ # * {ResourceNotFoundException}
44
45
  # * {TooManyEntriesInBatchRequest}
45
46
  # * {UnsupportedOperation}
46
47
  #
@@ -190,6 +191,16 @@ module Aws::SQS
190
191
  end
191
192
  end
192
193
 
194
+ class ResourceNotFoundException < ServiceError
195
+
196
+ # @param [Seahorse::Client::RequestContext] context
197
+ # @param [String] message
198
+ # @param [Aws::SQS::Types::ResourceNotFoundException] data
199
+ def initialize(context, message, data = Aws::EmptyStructure.new)
200
+ super(context, message, data)
201
+ end
202
+ end
203
+
193
204
  class TooManyEntriesInBatchRequest < ServiceError
194
205
 
195
206
  # @param [Seahorse::Client::RequestContext] context
@@ -163,7 +163,9 @@ module Aws::SQS
163
163
  queue_url: @queue_url,
164
164
  receipt_handle: @receipt_handle
165
165
  )
166
- resp = @client.change_message_visibility(options)
166
+ resp = Aws::Plugins::UserAgent.feature('resource') do
167
+ @client.change_message_visibility(options)
168
+ end
167
169
  resp.data
168
170
  end
169
171
 
@@ -177,7 +179,9 @@ module Aws::SQS
177
179
  queue_url: @queue_url,
178
180
  receipt_handle: @receipt_handle
179
181
  )
180
- resp = @client.delete_message(options)
182
+ resp = Aws::Plugins::UserAgent.feature('resource') do
183
+ @client.delete_message(options)
184
+ end
181
185
  resp.data
182
186
  end
183
187
 
@@ -242,7 +246,9 @@ module Aws::SQS
242
246
  receipt_handle: item.receipt_handle
243
247
  }
244
248
  end
245
- batch[0].client.delete_message_batch(params)
249
+ Aws::Plugins::UserAgent.feature('resource') do
250
+ batch[0].client.delete_message_batch(params)
251
+ end
246
252
  end
247
253
  nil
248
254
  end
@@ -58,6 +58,8 @@ module Aws::SQS
58
58
  case context.operation_name
59
59
  when :add_permission
60
60
  Aws::SQS::Endpoints::AddPermission.build(context)
61
+ when :cancel_message_move_task
62
+ Aws::SQS::Endpoints::CancelMessageMoveTask.build(context)
61
63
  when :change_message_visibility
62
64
  Aws::SQS::Endpoints::ChangeMessageVisibility.build(context)
63
65
  when :change_message_visibility_batch
@@ -76,6 +78,8 @@ module Aws::SQS
76
78
  Aws::SQS::Endpoints::GetQueueUrl.build(context)
77
79
  when :list_dead_letter_source_queues
78
80
  Aws::SQS::Endpoints::ListDeadLetterSourceQueues.build(context)
81
+ when :list_message_move_tasks
82
+ Aws::SQS::Endpoints::ListMessageMoveTasks.build(context)
79
83
  when :list_queue_tags
80
84
  Aws::SQS::Endpoints::ListQueueTags.build(context)
81
85
  when :list_queues
@@ -92,6 +96,8 @@ module Aws::SQS
92
96
  Aws::SQS::Endpoints::SendMessageBatch.build(context)
93
97
  when :set_queue_attributes
94
98
  Aws::SQS::Endpoints::SetQueueAttributes.build(context)
99
+ when :start_message_move_task
100
+ Aws::SQS::Endpoints::StartMessageMoveTask.build(context)
95
101
  when :tag_queue
96
102
  Aws::SQS::Endpoints::TagQueue.build(context)
97
103
  when :untag_queue