aws-sdk-sqs 1.54.0 → 1.56.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.
@@ -30,20 +30,10 @@ module Aws::SQS
30
30
  # * {BatchEntryIdsNotDistinct}
31
31
  # * {BatchRequestTooLong}
32
32
  # * {EmptyBatchRequest}
33
- # * {InvalidAddress}
34
33
  # * {InvalidAttributeName}
35
- # * {InvalidAttributeValue}
36
34
  # * {InvalidBatchEntryId}
37
35
  # * {InvalidIdFormat}
38
36
  # * {InvalidMessageContents}
39
- # * {InvalidSecurity}
40
- # * {KmsAccessDenied}
41
- # * {KmsDisabled}
42
- # * {KmsInvalidKeyUsage}
43
- # * {KmsInvalidState}
44
- # * {KmsNotFound}
45
- # * {KmsOptInRequired}
46
- # * {KmsThrottled}
47
37
  # * {MessageNotInflight}
48
38
  # * {OverLimit}
49
39
  # * {PurgeQueueInProgress}
@@ -51,7 +41,6 @@ module Aws::SQS
51
41
  # * {QueueDoesNotExist}
52
42
  # * {QueueNameExists}
53
43
  # * {ReceiptHandleIsInvalid}
54
- # * {RequestThrottled}
55
44
  # * {TooManyEntriesInBatchRequest}
56
45
  # * {UnsupportedOperation}
57
46
  #
@@ -69,11 +58,6 @@ module Aws::SQS
69
58
  def initialize(context, message, data = Aws::EmptyStructure.new)
70
59
  super(context, message, data)
71
60
  end
72
-
73
- # @return [String]
74
- def message
75
- @message || @data[:message]
76
- end
77
61
  end
78
62
 
79
63
  class BatchRequestTooLong < ServiceError
@@ -84,11 +68,6 @@ module Aws::SQS
84
68
  def initialize(context, message, data = Aws::EmptyStructure.new)
85
69
  super(context, message, data)
86
70
  end
87
-
88
- # @return [String]
89
- def message
90
- @message || @data[:message]
91
- end
92
71
  end
93
72
 
94
73
  class EmptyBatchRequest < ServiceError
@@ -99,26 +78,6 @@ module Aws::SQS
99
78
  def initialize(context, message, data = Aws::EmptyStructure.new)
100
79
  super(context, message, data)
101
80
  end
102
-
103
- # @return [String]
104
- def message
105
- @message || @data[:message]
106
- end
107
- end
108
-
109
- class InvalidAddress < ServiceError
110
-
111
- # @param [Seahorse::Client::RequestContext] context
112
- # @param [String] message
113
- # @param [Aws::SQS::Types::InvalidAddress] data
114
- def initialize(context, message, data = Aws::EmptyStructure.new)
115
- super(context, message, data)
116
- end
117
-
118
- # @return [String]
119
- def message
120
- @message || @data[:message]
121
- end
122
81
  end
123
82
 
124
83
  class InvalidAttributeName < ServiceError
@@ -129,26 +88,6 @@ module Aws::SQS
129
88
  def initialize(context, message, data = Aws::EmptyStructure.new)
130
89
  super(context, message, data)
131
90
  end
132
-
133
- # @return [String]
134
- def message
135
- @message || @data[:message]
136
- end
137
- end
138
-
139
- class InvalidAttributeValue < ServiceError
140
-
141
- # @param [Seahorse::Client::RequestContext] context
142
- # @param [String] message
143
- # @param [Aws::SQS::Types::InvalidAttributeValue] data
144
- def initialize(context, message, data = Aws::EmptyStructure.new)
145
- super(context, message, data)
146
- end
147
-
148
- # @return [String]
149
- def message
150
- @message || @data[:message]
151
- end
152
91
  end
153
92
 
154
93
  class InvalidBatchEntryId < ServiceError
@@ -159,11 +98,6 @@ module Aws::SQS
159
98
  def initialize(context, message, data = Aws::EmptyStructure.new)
160
99
  super(context, message, data)
161
100
  end
162
-
163
- # @return [String]
164
- def message
165
- @message || @data[:message]
166
- end
167
101
  end
168
102
 
169
103
  class InvalidIdFormat < ServiceError
@@ -184,131 +118,6 @@ module Aws::SQS
184
118
  def initialize(context, message, data = Aws::EmptyStructure.new)
185
119
  super(context, message, data)
186
120
  end
187
-
188
- # @return [String]
189
- def message
190
- @message || @data[:message]
191
- end
192
- end
193
-
194
- class InvalidSecurity < ServiceError
195
-
196
- # @param [Seahorse::Client::RequestContext] context
197
- # @param [String] message
198
- # @param [Aws::SQS::Types::InvalidSecurity] data
199
- def initialize(context, message, data = Aws::EmptyStructure.new)
200
- super(context, message, data)
201
- end
202
-
203
- # @return [String]
204
- def message
205
- @message || @data[:message]
206
- end
207
- end
208
-
209
- class KmsAccessDenied < ServiceError
210
-
211
- # @param [Seahorse::Client::RequestContext] context
212
- # @param [String] message
213
- # @param [Aws::SQS::Types::KmsAccessDenied] data
214
- def initialize(context, message, data = Aws::EmptyStructure.new)
215
- super(context, message, data)
216
- end
217
-
218
- # @return [String]
219
- def message
220
- @message || @data[:message]
221
- end
222
- end
223
-
224
- class KmsDisabled < ServiceError
225
-
226
- # @param [Seahorse::Client::RequestContext] context
227
- # @param [String] message
228
- # @param [Aws::SQS::Types::KmsDisabled] data
229
- def initialize(context, message, data = Aws::EmptyStructure.new)
230
- super(context, message, data)
231
- end
232
-
233
- # @return [String]
234
- def message
235
- @message || @data[:message]
236
- end
237
- end
238
-
239
- class KmsInvalidKeyUsage < ServiceError
240
-
241
- # @param [Seahorse::Client::RequestContext] context
242
- # @param [String] message
243
- # @param [Aws::SQS::Types::KmsInvalidKeyUsage] data
244
- def initialize(context, message, data = Aws::EmptyStructure.new)
245
- super(context, message, data)
246
- end
247
-
248
- # @return [String]
249
- def message
250
- @message || @data[:message]
251
- end
252
- end
253
-
254
- class KmsInvalidState < ServiceError
255
-
256
- # @param [Seahorse::Client::RequestContext] context
257
- # @param [String] message
258
- # @param [Aws::SQS::Types::KmsInvalidState] data
259
- def initialize(context, message, data = Aws::EmptyStructure.new)
260
- super(context, message, data)
261
- end
262
-
263
- # @return [String]
264
- def message
265
- @message || @data[:message]
266
- end
267
- end
268
-
269
- class KmsNotFound < ServiceError
270
-
271
- # @param [Seahorse::Client::RequestContext] context
272
- # @param [String] message
273
- # @param [Aws::SQS::Types::KmsNotFound] data
274
- def initialize(context, message, data = Aws::EmptyStructure.new)
275
- super(context, message, data)
276
- end
277
-
278
- # @return [String]
279
- def message
280
- @message || @data[:message]
281
- end
282
- end
283
-
284
- class KmsOptInRequired < ServiceError
285
-
286
- # @param [Seahorse::Client::RequestContext] context
287
- # @param [String] message
288
- # @param [Aws::SQS::Types::KmsOptInRequired] data
289
- def initialize(context, message, data = Aws::EmptyStructure.new)
290
- super(context, message, data)
291
- end
292
-
293
- # @return [String]
294
- def message
295
- @message || @data[:message]
296
- end
297
- end
298
-
299
- class KmsThrottled < ServiceError
300
-
301
- # @param [Seahorse::Client::RequestContext] context
302
- # @param [String] message
303
- # @param [Aws::SQS::Types::KmsThrottled] data
304
- def initialize(context, message, data = Aws::EmptyStructure.new)
305
- super(context, message, data)
306
- end
307
-
308
- # @return [String]
309
- def message
310
- @message || @data[:message]
311
- end
312
121
  end
313
122
 
314
123
  class MessageNotInflight < ServiceError
@@ -329,11 +138,6 @@ module Aws::SQS
329
138
  def initialize(context, message, data = Aws::EmptyStructure.new)
330
139
  super(context, message, data)
331
140
  end
332
-
333
- # @return [String]
334
- def message
335
- @message || @data[:message]
336
- end
337
141
  end
338
142
 
339
143
  class PurgeQueueInProgress < ServiceError
@@ -344,11 +148,6 @@ module Aws::SQS
344
148
  def initialize(context, message, data = Aws::EmptyStructure.new)
345
149
  super(context, message, data)
346
150
  end
347
-
348
- # @return [String]
349
- def message
350
- @message || @data[:message]
351
- end
352
151
  end
353
152
 
354
153
  class QueueDeletedRecently < ServiceError
@@ -359,11 +158,6 @@ module Aws::SQS
359
158
  def initialize(context, message, data = Aws::EmptyStructure.new)
360
159
  super(context, message, data)
361
160
  end
362
-
363
- # @return [String]
364
- def message
365
- @message || @data[:message]
366
- end
367
161
  end
368
162
 
369
163
  class QueueDoesNotExist < ServiceError
@@ -374,11 +168,6 @@ module Aws::SQS
374
168
  def initialize(context, message, data = Aws::EmptyStructure.new)
375
169
  super(context, message, data)
376
170
  end
377
-
378
- # @return [String]
379
- def message
380
- @message || @data[:message]
381
- end
382
171
  end
383
172
 
384
173
  class QueueNameExists < ServiceError
@@ -389,11 +178,6 @@ module Aws::SQS
389
178
  def initialize(context, message, data = Aws::EmptyStructure.new)
390
179
  super(context, message, data)
391
180
  end
392
-
393
- # @return [String]
394
- def message
395
- @message || @data[:message]
396
- end
397
181
  end
398
182
 
399
183
  class ReceiptHandleIsInvalid < ServiceError
@@ -404,26 +188,6 @@ module Aws::SQS
404
188
  def initialize(context, message, data = Aws::EmptyStructure.new)
405
189
  super(context, message, data)
406
190
  end
407
-
408
- # @return [String]
409
- def message
410
- @message || @data[:message]
411
- end
412
- end
413
-
414
- class RequestThrottled < ServiceError
415
-
416
- # @param [Seahorse::Client::RequestContext] context
417
- # @param [String] message
418
- # @param [Aws::SQS::Types::RequestThrottled] data
419
- def initialize(context, message, data = Aws::EmptyStructure.new)
420
- super(context, message, data)
421
- end
422
-
423
- # @return [String]
424
- def message
425
- @message || @data[:message]
426
- end
427
191
  end
428
192
 
429
193
  class TooManyEntriesInBatchRequest < ServiceError
@@ -434,11 +198,6 @@ module Aws::SQS
434
198
  def initialize(context, message, data = Aws::EmptyStructure.new)
435
199
  super(context, message, data)
436
200
  end
437
-
438
- # @return [String]
439
- def message
440
- @message || @data[:message]
441
- end
442
201
  end
443
202
 
444
203
  class UnsupportedOperation < ServiceError
@@ -449,11 +208,6 @@ module Aws::SQS
449
208
  def initialize(context, message, data = Aws::EmptyStructure.new)
450
209
  super(context, message, data)
451
210
  end
452
-
453
- # @return [String]
454
- def message
455
- @message || @data[:message]
456
- end
457
211
  end
458
212
 
459
213
  end
@@ -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
@@ -54,10 +54,12 @@ module Aws::SQS
54
54
  #
55
55
  # @return [self]
56
56
  def load
57
- resp = @client.get_queue_attributes(
57
+ resp = Aws::Plugins::UserAgent.feature('resource') do
58
+ @client.get_queue_attributes(
58
59
  queue_url: @url,
59
60
  attribute_names: ["All"]
60
61
  )
62
+ end
61
63
  @data = resp.data
62
64
  self
63
65
  end
@@ -123,7 +125,9 @@ module Aws::SQS
123
125
  # @return [EmptyStructure]
124
126
  def add_permission(options = {})
125
127
  options = options.merge(queue_url: @url)
126
- resp = @client.add_permission(options)
128
+ resp = Aws::Plugins::UserAgent.feature('resource') do
129
+ @client.add_permission(options)
130
+ end
127
131
  resp.data
128
132
  end
129
133
 
@@ -145,7 +149,9 @@ module Aws::SQS
145
149
  # @return [Types::ChangeMessageVisibilityBatchResult]
146
150
  def change_message_visibility_batch(options = {})
147
151
  options = options.merge(queue_url: @url)
148
- resp = @client.change_message_visibility_batch(options)
152
+ resp = Aws::Plugins::UserAgent.feature('resource') do
153
+ @client.change_message_visibility_batch(options)
154
+ end
149
155
  resp.data
150
156
  end
151
157
 
@@ -156,7 +162,9 @@ module Aws::SQS
156
162
  # @return [EmptyStructure]
157
163
  def delete(options = {})
158
164
  options = options.merge(queue_url: @url)
159
- resp = @client.delete_queue(options)
165
+ resp = Aws::Plugins::UserAgent.feature('resource') do
166
+ @client.delete_queue(options)
167
+ end
160
168
  resp.data
161
169
  end
162
170
 
@@ -176,7 +184,9 @@ module Aws::SQS
176
184
  # @return [Types::DeleteMessageBatchResult]
177
185
  def delete_messages(options = {})
178
186
  options = options.merge(queue_url: @url)
179
- resp = @client.delete_message_batch(options)
187
+ resp = Aws::Plugins::UserAgent.feature('resource') do
188
+ @client.delete_message_batch(options)
189
+ end
180
190
  resp.data
181
191
  end
182
192
 
@@ -187,7 +197,9 @@ module Aws::SQS
187
197
  # @return [EmptyStructure]
188
198
  def purge(options = {})
189
199
  options = options.merge(queue_url: @url)
190
- resp = @client.purge_queue(options)
200
+ resp = Aws::Plugins::UserAgent.feature('resource') do
201
+ @client.purge_queue(options)
202
+ end
191
203
  resp.data
192
204
  end
193
205
 
@@ -218,7 +230,7 @@ module Aws::SQS
218
230
  #
219
231
  # * `SenderId`
220
232
  #
221
- # * For a user, returns the user ID, for example
233
+ # * For an IAM user, returns the IAM user ID, for example
222
234
  # `ABCDEFGHI1JKLMNOPQ23R`.
223
235
  #
224
236
  # * For an IAM role, returns the IAM role ID, for example
@@ -229,7 +241,7 @@ module Aws::SQS
229
241
  #
230
242
  # * `SqsManagedSseEnabled` – Enables server-side queue encryption using
231
243
  # SQS owned encryption keys. Only one server-side encryption option is
232
- # supported per queue (for example, [SSE-KMS][2] or [SSE-SQS][3]).
244
+ # supported per queue (e.g. [SSE-KMS][2] or [SSE-SQS][3]).
233
245
  #
234
246
  # * `MessageDeduplicationId` – Returns the value provided by the
235
247
  # producer that calls the ` SendMessage ` action.
@@ -359,7 +371,9 @@ module Aws::SQS
359
371
  def receive_messages(options = {})
360
372
  batch = []
361
373
  options = options.merge(queue_url: @url)
362
- resp = @client.receive_message(options)
374
+ resp = Aws::Plugins::UserAgent.feature('resource') do
375
+ @client.receive_message(options)
376
+ end
363
377
  resp.data.messages.each do |m|
364
378
  batch << Message.new(
365
379
  queue_url: @url,
@@ -383,7 +397,9 @@ module Aws::SQS
383
397
  # @return [EmptyStructure]
384
398
  def remove_permission(options = {})
385
399
  options = options.merge(queue_url: @url)
386
- resp = @client.remove_permission(options)
400
+ resp = Aws::Plugins::UserAgent.feature('resource') do
401
+ @client.remove_permission(options)
402
+ end
387
403
  resp.data
388
404
  end
389
405
 
@@ -416,7 +432,7 @@ module Aws::SQS
416
432
  # @param [Hash] options ({})
417
433
  # @option options [required, String] :message_body
418
434
  # The message to send. The minimum size is one character. The maximum
419
- # size is 256 KiB.
435
+ # size is 256 KB.
420
436
  #
421
437
  # A message can include only XML, JSON, and unformatted text. The
422
438
  # following Unicode characters are allowed:
@@ -555,7 +571,9 @@ module Aws::SQS
555
571
  # @return [Types::SendMessageResult]
556
572
  def send_message(options = {})
557
573
  options = options.merge(queue_url: @url)
558
- resp = @client.send_message(options)
574
+ resp = Aws::Plugins::UserAgent.feature('resource') do
575
+ @client.send_message(options)
576
+ end
559
577
  resp.data
560
578
  end
561
579
 
@@ -596,7 +614,9 @@ module Aws::SQS
596
614
  # @return [Types::SendMessageBatchResult]
597
615
  def send_messages(options = {})
598
616
  options = options.merge(queue_url: @url)
599
- resp = @client.send_message_batch(options)
617
+ resp = Aws::Plugins::UserAgent.feature('resource') do
618
+ @client.send_message_batch(options)
619
+ end
600
620
  resp.data
601
621
  end
602
622
 
@@ -626,13 +646,7 @@ module Aws::SQS
626
646
  # * `MessageRetentionPeriod` – The length of time, in seconds, for which
627
647
  # Amazon SQS retains a message. Valid values: An integer representing
628
648
  # seconds, from 60 (1 minute) to 1,209,600 (14 days). Default: 345,600
629
- # (4 days). When you change a queue's attributes, the change can take
630
- # up to 60 seconds for most of the attributes to propagate throughout
631
- # the Amazon SQS system. Changes made to the `MessageRetentionPeriod`
632
- # attribute can take up to 15 minutes and will impact existing
633
- # messages in the queue potentially causing them to be expired and
634
- # deleted if the `MessageRetentionPeriod` is reduced below the age of
635
- # existing messages.
649
+ # (4 days).
636
650
  #
637
651
  # * `Policy` – The queue's policy. A valid Amazon Web Services policy.
638
652
  # For more information about policy structure, see [Overview of Amazon
@@ -643,59 +657,31 @@ module Aws::SQS
643
657
  # for which a ` ReceiveMessage ` action waits for a message to arrive.
644
658
  # Valid values: An integer from 0 to 20 (seconds). Default: 0.
645
659
  #
646
- # * `VisibilityTimeout` – The visibility timeout for the queue, in
647
- # seconds. Valid values: An integer from 0 to 43,200 (12 hours).
648
- # Default: 30. For more information about the visibility timeout, see
649
- # [Visibility Timeout][2] in the *Amazon SQS Developer Guide*.
650
- #
651
- # The following attributes apply only to [dead-letter queues:][3]
652
- #
653
660
  # * `RedrivePolicy` – The string that includes the parameters for the
654
661
  # dead-letter queue functionality of the source queue as a JSON
655
- # object. The parameters are as follows:
662
+ # object. For more information about the redrive policy and
663
+ # dead-letter queues, see [Using Amazon SQS Dead-Letter Queues][2] in
664
+ # the *Amazon SQS Developer Guide*.
656
665
  #
657
666
  # * `deadLetterTargetArn` – The Amazon Resource Name (ARN) of the
658
667
  # dead-letter queue to which Amazon SQS moves messages after the
659
668
  # value of `maxReceiveCount` is exceeded.
660
669
  #
661
670
  # * `maxReceiveCount` – The number of times a message is delivered to
662
- # the source queue before being moved to the dead-letter queue.
663
- # Default: 10. When the `ReceiveCount` for a message exceeds the
664
- # `maxReceiveCount` for a queue, Amazon SQS moves the message to the
665
- # dead-letter-queue.
666
- #
667
- # * `RedriveAllowPolicy` – The string that includes the parameters for
668
- # the permissions for the dead-letter queue redrive permission and
669
- # which source queues can specify dead-letter queues as a JSON object.
670
- # The parameters are as follows:
671
- #
672
- # * `redrivePermission` – The permission type that defines which
673
- # source queues can specify the current queue as the dead-letter
674
- # queue. Valid values are:
675
- #
676
- # * `allowAll` – (Default) Any source queues in this Amazon Web
677
- # Services account in the same Region can specify this queue as
678
- # the dead-letter queue.
679
- #
680
- # * `denyAll` – No source queues can specify this queue as the
681
- # dead-letter queue.
682
- #
683
- # * `byQueue` – Only queues specified by the `sourceQueueArns`
684
- # parameter can specify this queue as the dead-letter queue.
685
- #
686
- # * `sourceQueueArns` – The Amazon Resource Names (ARN)s of the source
687
- # queues that can specify this queue as the dead-letter queue and
688
- # redrive messages. You can specify this parameter only when the
689
- # `redrivePermission` parameter is set to `byQueue`. You can specify
690
- # up to 10 source queue ARNs. To allow more than 10 source queues to
691
- # specify dead-letter queues, set the `redrivePermission` parameter
692
- # to `allowAll`.
693
- #
694
- # <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
695
- # Similarly, the dead-letter queue of a standard queue must also be a
696
- # standard queue.
671
+ # the source queue before being moved to the dead-letter queue. When
672
+ # the `ReceiveCount` for a message exceeds the `maxReceiveCount` for
673
+ # a queue, Amazon SQS moves the message to the dead-letter-queue.
697
674
  #
698
- # </note>
675
+ # <note markdown="1"> The dead-letter queue of a FIFO queue must also be a FIFO queue.
676
+ # Similarly, the dead-letter queue of a standard queue must also be a
677
+ # standard queue.
678
+ #
679
+ # </note>
680
+ #
681
+ # * `VisibilityTimeout` – The visibility timeout for the queue, in
682
+ # seconds. Valid values: An integer from 0 to 43,200 (12 hours).
683
+ # Default: 30. For more information about the visibility timeout, see
684
+ # [Visibility Timeout][3] in the *Amazon SQS Developer Guide*.
699
685
  #
700
686
  # The following attributes apply only to [server-side-encryption][4]:
701
687
  #
@@ -717,7 +703,7 @@ module Aws::SQS
717
703
  #
718
704
  # * `SqsManagedSseEnabled` – Enables server-side queue encryption using
719
705
  # SQS owned encryption keys. Only one server-side encryption option is
720
- # supported per queue (for example, [SSE-KMS][9] or [SSE-SQS][10]).
706
+ # supported per queue (e.g. [SSE-KMS][9] or [SSE-SQS][10]).
721
707
  #
722
708
  # The following attribute applies only to [FIFO (first-in-first-out)
723
709
  # queues][11]:
@@ -783,8 +769,8 @@ module Aws::SQS
783
769
  #
784
770
  #
785
771
  # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/PoliciesOverview.html
786
- # [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
787
- # [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
772
+ # [2]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html
773
+ # [3]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html
788
774
  # [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html
789
775
  # [5]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-sse-key-terms
790
776
  # [6]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
@@ -799,7 +785,9 @@ module Aws::SQS
799
785
  # @return [EmptyStructure]
800
786
  def set_attributes(options = {})
801
787
  options = options.merge(queue_url: @url)
802
- resp = @client.set_queue_attributes(options)
788
+ resp = Aws::Plugins::UserAgent.feature('resource') do
789
+ @client.set_queue_attributes(options)
790
+ end
803
791
  resp.data
804
792
  end
805
793
 
@@ -813,7 +801,9 @@ module Aws::SQS
813
801
  def dead_letter_source_queues(options = {})
814
802
  batches = Enumerator.new do |y|
815
803
  options = options.merge(queue_url: @url)
816
- resp = @client.list_dead_letter_source_queues(options)
804
+ resp = Aws::Plugins::UserAgent.feature('resource') do
805
+ @client.list_dead_letter_source_queues(options)
806
+ end
817
807
  resp.each_page do |page|
818
808
  batch = []
819
809
  page.data.queue_urls.each do |q|