aws-sdk-cloudwatch 1.73.0 → 1.74.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f026df9017d75a5c86fa19e049dc5eecb9c0300f082310a5faf7330977e7e3d8
4
- data.tar.gz: a3699d39fadb29a0f26fcba3de7ec039e33f8a2f131e3f58a975e2bbe8229899
3
+ metadata.gz: efaa644f311f8782c406285c5965bc7e92861b18574a0a52d7d46cdba1022a18
4
+ data.tar.gz: c686da5dc9bcb3ff379911fe5666bfb5019c4cb1918d417a12a9a8206afb77b9
5
5
  SHA512:
6
- metadata.gz: 2bd09cca9f567a2f4c8d84d0d72b498cc4b692a10effa969b6919ab7fcc2016c180194123491be4990b5317dcd248a41fdc7c2eb4c7f40634e596b8316e285fc
7
- data.tar.gz: c037ee9e83dac40d5f83843ca29323d375393b3036a153c0439ff61dbdc8a163e78bf907db61ff376b6511a9b13e1d94b0a49d403664ace3ffe4a42febfbafa7
6
+ metadata.gz: bd5c5c67d67b99055e3e07297536fca11024d30bb05bd00067b8b0f445b6d4b4b141356647e35cc59529d7a0fbcdaa517069d40507028e70ef3c87cf4e0c2edf
7
+ data.tar.gz: 999319c59e25e48afe9c49f6dd58f77bee4ce6a243401a661df5241d480bc3430562d9185e33858816cf4d984145b2258a1279d23a4f58d8d7e13457e7241356
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.74.0 (2023-05-31)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
4
9
  1.73.0 (2023-05-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.73.0
1
+ 1.74.0
@@ -258,7 +258,9 @@ module Aws::CloudWatch
258
258
  #
259
259
  # @return [self]
260
260
  def load
261
- resp = @client.describe_alarms(alarm_names: [@name])
261
+ resp = Aws::Plugins::UserAgent.feature('resource') do
262
+ @client.describe_alarms(alarm_names: [@name])
263
+ end
262
264
  @data = resp.metric_alarms[0]
263
265
  self
264
266
  end
@@ -303,7 +305,9 @@ module Aws::CloudWatch
303
305
  options, params = separate_params_and_options(options)
304
306
  waiter = Waiters::AlarmExists.new(options)
305
307
  yield_waiter_and_warn(waiter, &block) if block_given?
306
- waiter.wait(params.merge(alarm_names: [@name]))
308
+ Aws::Plugins::UserAgent.feature('resource') do
309
+ waiter.wait(params.merge(alarm_names: [@name]))
310
+ end
307
311
  Alarm.new({
308
312
  name: @name,
309
313
  client: @client
@@ -404,7 +408,9 @@ module Aws::CloudWatch
404
408
  :retry
405
409
  end
406
410
  end
407
- Aws::Waiters::Waiter.new(options).wait({})
411
+ Aws::Plugins::UserAgent.feature('resource') do
412
+ Aws::Waiters::Waiter.new(options).wait({})
413
+ end
408
414
  end
409
415
 
410
416
  # @!group Actions
@@ -416,7 +422,9 @@ module Aws::CloudWatch
416
422
  # @return [EmptyStructure]
417
423
  def delete(options = {})
418
424
  options = Aws::Util.deep_merge(options, alarm_names: [@name])
419
- resp = @client.delete_alarms(options)
425
+ resp = Aws::Plugins::UserAgent.feature('resource') do
426
+ @client.delete_alarms(options)
427
+ end
420
428
  resp.data
421
429
  end
422
430
 
@@ -455,7 +463,9 @@ module Aws::CloudWatch
455
463
  # @return [Types::DescribeAlarmHistoryOutput]
456
464
  def describe_history(options = {})
457
465
  options = options.merge(alarm_name: @name)
458
- resp = @client.describe_alarm_history(options)
466
+ resp = Aws::Plugins::UserAgent.feature('resource') do
467
+ @client.describe_alarm_history(options)
468
+ end
459
469
  resp.data
460
470
  end
461
471
 
@@ -466,7 +476,9 @@ module Aws::CloudWatch
466
476
  # @return [EmptyStructure]
467
477
  def disable_actions(options = {})
468
478
  options = Aws::Util.deep_merge(options, alarm_names: [@name])
469
- resp = @client.disable_alarm_actions(options)
479
+ resp = Aws::Plugins::UserAgent.feature('resource') do
480
+ @client.disable_alarm_actions(options)
481
+ end
470
482
  resp.data
471
483
  end
472
484
 
@@ -477,7 +489,9 @@ module Aws::CloudWatch
477
489
  # @return [EmptyStructure]
478
490
  def enable_actions(options = {})
479
491
  options = Aws::Util.deep_merge(options, alarm_names: [@name])
480
- resp = @client.enable_alarm_actions(options)
492
+ resp = Aws::Plugins::UserAgent.feature('resource') do
493
+ @client.enable_alarm_actions(options)
494
+ end
481
495
  resp.data
482
496
  end
483
497
 
@@ -505,7 +519,9 @@ module Aws::CloudWatch
505
519
  # @return [EmptyStructure]
506
520
  def set_state(options = {})
507
521
  options = options.merge(alarm_name: @name)
508
- resp = @client.set_alarm_state(options)
522
+ resp = Aws::Plugins::UserAgent.feature('resource') do
523
+ @client.set_alarm_state(options)
524
+ end
509
525
  resp.data
510
526
  end
511
527
 
@@ -584,7 +600,9 @@ module Aws::CloudWatch
584
600
  batch.each do |item|
585
601
  params[:alarm_names] << item.name
586
602
  end
587
- batch[0].client.delete_alarms(params)
603
+ Aws::Plugins::UserAgent.feature('resource') do
604
+ batch[0].client.delete_alarms(params)
605
+ end
588
606
  end
589
607
  nil
590
608
  end
@@ -598,7 +616,9 @@ module Aws::CloudWatch
598
616
  batch.each do |item|
599
617
  params[:alarm_names] << item.name
600
618
  end
601
- batch[0].client.disable_alarm_actions(params)
619
+ Aws::Plugins::UserAgent.feature('resource') do
620
+ batch[0].client.disable_alarm_actions(params)
621
+ end
602
622
  end
603
623
  nil
604
624
  end
@@ -612,7 +632,9 @@ module Aws::CloudWatch
612
632
  batch.each do |item|
613
633
  params[:alarm_names] << item.name
614
634
  end
615
- batch[0].client.enable_alarm_actions(params)
635
+ Aws::Plugins::UserAgent.feature('resource') do
636
+ batch[0].client.enable_alarm_actions(params)
637
+ end
616
638
  end
617
639
  nil
618
640
  end
@@ -275,6 +275,11 @@ module Aws::CloudWatch
275
275
  # in the future.
276
276
  #
277
277
  #
278
+ # @option options [String] :sdk_ua_app_id
279
+ # A unique and opaque application ID that is appended to the
280
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
281
+ # maximum length of 50.
282
+ #
278
283
  # @option options [String] :secret_access_key
279
284
  #
280
285
  # @option options [String] :session_token
@@ -3923,7 +3928,7 @@ module Aws::CloudWatch
3923
3928
  params: params,
3924
3929
  config: config)
3925
3930
  context[:gem_name] = 'aws-sdk-cloudwatch'
3926
- context[:gem_version] = '1.73.0'
3931
+ context[:gem_version] = '1.74.0'
3927
3932
  Seahorse::Client::Request.new(handlers, context)
3928
3933
  end
3929
3934
 
@@ -186,7 +186,9 @@ module Aws::CloudWatch
186
186
  #
187
187
  # @return [self]
188
188
  def load
189
- resp = @client.describe_alarms(alarm_names: [@name])
189
+ resp = Aws::Plugins::UserAgent.feature('resource') do
190
+ @client.describe_alarms(alarm_names: [@name])
191
+ end
190
192
  @data = resp.composite_alarms[0]
191
193
  self
192
194
  end
@@ -231,7 +233,9 @@ module Aws::CloudWatch
231
233
  options, params = separate_params_and_options(options)
232
234
  waiter = Waiters::CompositeAlarmExists.new(options)
233
235
  yield_waiter_and_warn(waiter, &block) if block_given?
234
- waiter.wait(params.merge(alarm_names: [@name]))
236
+ Aws::Plugins::UserAgent.feature('resource') do
237
+ waiter.wait(params.merge(alarm_names: [@name]))
238
+ end
235
239
  CompositeAlarm.new({
236
240
  name: @name,
237
241
  client: @client
@@ -332,7 +336,9 @@ module Aws::CloudWatch
332
336
  :retry
333
337
  end
334
338
  end
335
- Aws::Waiters::Waiter.new(options).wait({})
339
+ Aws::Plugins::UserAgent.feature('resource') do
340
+ Aws::Waiters::Waiter.new(options).wait({})
341
+ end
336
342
  end
337
343
 
338
344
  # @!group Actions
@@ -344,7 +350,9 @@ module Aws::CloudWatch
344
350
  # @return [EmptyStructure]
345
351
  def delete(options = {})
346
352
  options = Aws::Util.deep_merge(options, alarm_names: [@name])
347
- resp = @client.delete_alarms(options)
353
+ resp = Aws::Plugins::UserAgent.feature('resource') do
354
+ @client.delete_alarms(options)
355
+ end
348
356
  resp.data
349
357
  end
350
358
 
@@ -383,7 +391,9 @@ module Aws::CloudWatch
383
391
  # @return [Types::DescribeAlarmHistoryOutput]
384
392
  def describe_history(options = {})
385
393
  options = options.merge(alarm_name: @name)
386
- resp = @client.describe_alarm_history(options)
394
+ resp = Aws::Plugins::UserAgent.feature('resource') do
395
+ @client.describe_alarm_history(options)
396
+ end
387
397
  resp.data
388
398
  end
389
399
 
@@ -394,7 +404,9 @@ module Aws::CloudWatch
394
404
  # @return [EmptyStructure]
395
405
  def disable_actions(options = {})
396
406
  options = Aws::Util.deep_merge(options, alarm_names: [@name])
397
- resp = @client.disable_alarm_actions(options)
407
+ resp = Aws::Plugins::UserAgent.feature('resource') do
408
+ @client.disable_alarm_actions(options)
409
+ end
398
410
  resp.data
399
411
  end
400
412
 
@@ -405,7 +417,9 @@ module Aws::CloudWatch
405
417
  # @return [EmptyStructure]
406
418
  def enable_actions(options = {})
407
419
  options = Aws::Util.deep_merge(options, alarm_names: [@name])
408
- resp = @client.enable_alarm_actions(options)
420
+ resp = Aws::Plugins::UserAgent.feature('resource') do
421
+ @client.enable_alarm_actions(options)
422
+ end
409
423
  resp.data
410
424
  end
411
425
 
@@ -433,7 +447,9 @@ module Aws::CloudWatch
433
447
  # @return [EmptyStructure]
434
448
  def set_state(options = {})
435
449
  options = options.merge(alarm_name: @name)
436
- resp = @client.set_alarm_state(options)
450
+ resp = Aws::Plugins::UserAgent.feature('resource') do
451
+ @client.set_alarm_state(options)
452
+ end
437
453
  resp.data
438
454
  end
439
455
 
@@ -497,7 +513,9 @@ module Aws::CloudWatch
497
513
  batch.each do |item|
498
514
  params[:alarm_names] << item.name
499
515
  end
500
- batch[0].client.delete_alarms(params)
516
+ Aws::Plugins::UserAgent.feature('resource') do
517
+ batch[0].client.delete_alarms(params)
518
+ end
501
519
  end
502
520
  nil
503
521
  end
@@ -511,7 +529,9 @@ module Aws::CloudWatch
511
529
  batch.each do |item|
512
530
  params[:alarm_names] << item.name
513
531
  end
514
- batch[0].client.disable_alarm_actions(params)
532
+ Aws::Plugins::UserAgent.feature('resource') do
533
+ batch[0].client.disable_alarm_actions(params)
534
+ end
515
535
  end
516
536
  nil
517
537
  end
@@ -525,7 +545,9 @@ module Aws::CloudWatch
525
545
  batch.each do |item|
526
546
  params[:alarm_names] << item.name
527
547
  end
528
- batch[0].client.enable_alarm_actions(params)
548
+ Aws::Plugins::UserAgent.feature('resource') do
549
+ batch[0].client.enable_alarm_actions(params)
550
+ end
529
551
  end
530
552
  nil
531
553
  end
@@ -63,10 +63,12 @@ module Aws::CloudWatch
63
63
  #
64
64
  # @return [self]
65
65
  def load
66
- resp = @client.list_metrics(
66
+ resp = Aws::Plugins::UserAgent.feature('resource') do
67
+ @client.list_metrics(
67
68
  metric_name: @name,
68
69
  namespace: @namespace
69
70
  )
71
+ end
70
72
  @data = resp.metrics[0]
71
73
  self
72
74
  end
@@ -181,7 +183,9 @@ module Aws::CloudWatch
181
183
  :retry
182
184
  end
183
185
  end
184
- Aws::Waiters::Waiter.new(options).wait({})
186
+ Aws::Plugins::UserAgent.feature('resource') do
187
+ Aws::Waiters::Waiter.new(options).wait({})
188
+ end
185
189
  end
186
190
 
187
191
  # @!group Actions
@@ -300,7 +304,9 @@ module Aws::CloudWatch
300
304
  namespace: @namespace,
301
305
  metric_name: @name
302
306
  )
303
- resp = @client.get_metric_statistics(options)
307
+ resp = Aws::Plugins::UserAgent.feature('resource') do
308
+ @client.get_metric_statistics(options)
309
+ end
304
310
  resp.data
305
311
  end
306
312
 
@@ -679,7 +685,9 @@ module Aws::CloudWatch
679
685
  namespace: @namespace,
680
686
  metric_name: @name
681
687
  )
682
- @client.put_metric_alarm(options)
688
+ Aws::Plugins::UserAgent.feature('resource') do
689
+ @client.put_metric_alarm(options)
690
+ end
683
691
  Alarm.new(
684
692
  name: options[:alarm_name],
685
693
  client: @client
@@ -723,7 +731,9 @@ module Aws::CloudWatch
723
731
  namespace: @namespace,
724
732
  metric_data: [{ metric_name: @name }]
725
733
  )
726
- resp = @client.put_metric_data(options)
734
+ resp = Aws::Plugins::UserAgent.feature('resource') do
735
+ @client.put_metric_data(options)
736
+ end
727
737
  resp.data
728
738
  end
729
739
 
@@ -766,7 +776,9 @@ module Aws::CloudWatch
766
776
  namespace: @namespace,
767
777
  metric_name: @name
768
778
  )
769
- resp = @client.describe_alarms_for_metric(options)
779
+ resp = Aws::Plugins::UserAgent.feature('resource') do
780
+ @client.describe_alarms_for_metric(options)
781
+ end
770
782
  resp.data.metric_alarms.each do |m|
771
783
  batch << Alarm.new(
772
784
  name: m.alarm_name,
@@ -117,7 +117,9 @@ module Aws::CloudWatch
117
117
  # @return [Alarm::Collection]
118
118
  def alarms(options = {})
119
119
  batches = Enumerator.new do |y|
120
- resp = @client.describe_alarms(options)
120
+ resp = Aws::Plugins::UserAgent.feature('resource') do
121
+ @client.describe_alarms(options)
122
+ end
121
123
  resp.each_page do |page|
122
124
  batch = []
123
125
  page.data.metric_alarms.each do |m|
@@ -215,7 +217,9 @@ module Aws::CloudWatch
215
217
  # @return [CompositeAlarm::Collection]
216
218
  def composite_alarms(options = {})
217
219
  batches = Enumerator.new do |y|
218
- resp = @client.describe_alarms(options)
220
+ resp = Aws::Plugins::UserAgent.feature('resource') do
221
+ @client.describe_alarms(options)
222
+ end
219
223
  resp.each_page do |page|
220
224
  batch = []
221
225
  page.data.composite_alarms.each do |c|
@@ -289,7 +293,9 @@ module Aws::CloudWatch
289
293
  # @return [Metric::Collection]
290
294
  def metrics(options = {})
291
295
  batches = Enumerator.new do |y|
292
- resp = @client.list_metrics(options)
296
+ resp = Aws::Plugins::UserAgent.feature('resource') do
297
+ @client.list_metrics(options)
298
+ end
293
299
  resp.each_page do |page|
294
300
  batch = []
295
301
  page.data.metrics.each do |m|
@@ -56,6 +56,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
56
56
  # @!group service
57
57
  module Aws::CloudWatch
58
58
 
59
- GEM_VERSION = '1.73.0'
59
+ GEM_VERSION = '1.74.0'
60
60
 
61
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.73.0
4
+ version: 1.74.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-04 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.165.0
22
+ version: 3.174.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.165.0
32
+ version: 3.174.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement