aws-sdk-autoscaling 1.89.0 → 1.90.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: fb16ec26a4cbab0657093d95e73ba7dd99c3a558e5e63ecc39ac492f4e248b93
4
- data.tar.gz: b5052a71fc732e23384ad992ef1a3c3a31f00e21644e6ca1b3fb7b976df0ad9f
3
+ metadata.gz: 6880835985313903be5564e7a236561cb584a7a6c7ac0a2bfb882fcb7a4c4608
4
+ data.tar.gz: d5040e61bbe3fc74620a6de4dafd95c74f96834c28bbe4fa3cbb96ce12b156c6
5
5
  SHA512:
6
- metadata.gz: ce08f7996a843e7e9e928ab15a6230f77d425745071def6f087c879ddd8dbf7a0e54039c6b3041b068934f3a1bc1d047473b6e2a5db17edfcfe1fb9056ac9e92
7
- data.tar.gz: d46e065db601d21d59f503e3cc9634bcc6da38fe30640d3d65a7c074da47c10d4bb36c148f77481ab03f791b08636e15200ee7d8284893a8abfdcd0e1d0d7342
6
+ metadata.gz: 4de3820f03caee5f39150ecd5437ba0e7700f45ba0dbb7614a94008876ccbd33964f761a59539a4f0b4d8937bfb9ee5e09714135459ef6eb454458d218785b7b
7
+ data.tar.gz: eceeacf3a99db7add64760bda689a59e00a04e64106477e8cf7784399efa577c8ae15c524906e300b7f6caf961ca73e508d15ff211398e4fdefa01c13d1e392b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.90.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.89.0 (2023-04-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.89.0
1
+ 1.90.0
@@ -116,7 +116,9 @@ module Aws::AutoScaling
116
116
  #
117
117
  # @return [self]
118
118
  def load
119
- resp = @client.describe_scaling_activities(activity_ids: [@id])
119
+ resp = Aws::Plugins::UserAgent.feature('resource') do
120
+ @client.describe_scaling_activities(activity_ids: [@id])
121
+ end
120
122
  @data = resp.activities[0]
121
123
  self
122
124
  end
@@ -231,7 +233,9 @@ module Aws::AutoScaling
231
233
  :retry
232
234
  end
233
235
  end
234
- Aws::Waiters::Waiter.new(options).wait({})
236
+ Aws::Plugins::UserAgent.feature('resource') do
237
+ Aws::Waiters::Waiter.new(options).wait({})
238
+ end
235
239
  end
236
240
 
237
241
  # @!group Associations
@@ -247,7 +247,9 @@ module Aws::AutoScaling
247
247
  #
248
248
  # @return [self]
249
249
  def load
250
- resp = @client.describe_auto_scaling_groups(auto_scaling_group_names: [@name])
250
+ resp = Aws::Plugins::UserAgent.feature('resource') do
251
+ @client.describe_auto_scaling_groups(auto_scaling_group_names: [@name])
252
+ end
251
253
  @data = resp.auto_scaling_groups[0]
252
254
  self
253
255
  end
@@ -292,7 +294,9 @@ module Aws::AutoScaling
292
294
  options, params = separate_params_and_options(options)
293
295
  waiter = Waiters::GroupExists.new(options)
294
296
  yield_waiter_and_warn(waiter, &block) if block_given?
295
- waiter.wait(params.merge(auto_scaling_group_names: [@name]))
297
+ Aws::Plugins::UserAgent.feature('resource') do
298
+ waiter.wait(params.merge(auto_scaling_group_names: [@name]))
299
+ end
296
300
  AutoScalingGroup.new({
297
301
  name: @name,
298
302
  client: @client
@@ -309,7 +313,9 @@ module Aws::AutoScaling
309
313
  options, params = separate_params_and_options(options)
310
314
  waiter = Waiters::GroupInService.new(options)
311
315
  yield_waiter_and_warn(waiter, &block) if block_given?
312
- waiter.wait(params.merge(auto_scaling_group_names: [@name]))
316
+ Aws::Plugins::UserAgent.feature('resource') do
317
+ waiter.wait(params.merge(auto_scaling_group_names: [@name]))
318
+ end
313
319
  AutoScalingGroup.new({
314
320
  name: @name,
315
321
  client: @client
@@ -326,7 +332,9 @@ module Aws::AutoScaling
326
332
  options, params = separate_params_and_options(options)
327
333
  waiter = Waiters::GroupNotExists.new(options)
328
334
  yield_waiter_and_warn(waiter, &block) if block_given?
329
- waiter.wait(params.merge(auto_scaling_group_names: [@name]))
335
+ Aws::Plugins::UserAgent.feature('resource') do
336
+ waiter.wait(params.merge(auto_scaling_group_names: [@name]))
337
+ end
330
338
  AutoScalingGroup.new({
331
339
  name: @name,
332
340
  client: @client
@@ -427,7 +435,9 @@ module Aws::AutoScaling
427
435
  :retry
428
436
  end
429
437
  end
430
- Aws::Waiters::Waiter.new(options).wait({})
438
+ Aws::Plugins::UserAgent.feature('resource') do
439
+ Aws::Waiters::Waiter.new(options).wait({})
440
+ end
431
441
  end
432
442
 
433
443
  # @!group Actions
@@ -443,7 +453,9 @@ module Aws::AutoScaling
443
453
  # @return [EmptyStructure]
444
454
  def attach_instances(options = {})
445
455
  options = options.merge(auto_scaling_group_name: @name)
446
- resp = @client.attach_instances(options)
456
+ resp = Aws::Plugins::UserAgent.feature('resource') do
457
+ @client.attach_instances(options)
458
+ end
447
459
  resp.data
448
460
  end
449
461
 
@@ -461,7 +473,9 @@ module Aws::AutoScaling
461
473
  # @return [EmptyStructure]
462
474
  def delete(options = {})
463
475
  options = options.merge(auto_scaling_group_name: @name)
464
- resp = @client.delete_auto_scaling_group(options)
476
+ resp = Aws::Plugins::UserAgent.feature('resource') do
477
+ @client.delete_auto_scaling_group(options)
478
+ end
465
479
  resp.data
466
480
  end
467
481
 
@@ -481,7 +495,9 @@ module Aws::AutoScaling
481
495
  def detach_instances(options = {})
482
496
  batch = []
483
497
  options = options.merge(auto_scaling_group_name: @name)
484
- resp = @client.detach_instances(options)
498
+ resp = Aws::Plugins::UserAgent.feature('resource') do
499
+ @client.detach_instances(options)
500
+ end
485
501
  resp.data.activities.each do |a|
486
502
  batch << Activity.new(
487
503
  id: a.activity_id,
@@ -554,7 +570,9 @@ module Aws::AutoScaling
554
570
  # @return [EmptyStructure]
555
571
  def disable_metrics_collection(options = {})
556
572
  options = options.merge(auto_scaling_group_name: @name)
557
- resp = @client.disable_metrics_collection(options)
573
+ resp = Aws::Plugins::UserAgent.feature('resource') do
574
+ @client.disable_metrics_collection(options)
575
+ end
558
576
  resp.data
559
577
  end
560
578
 
@@ -625,7 +643,9 @@ module Aws::AutoScaling
625
643
  # @return [EmptyStructure]
626
644
  def enable_metrics_collection(options = {})
627
645
  options = options.merge(auto_scaling_group_name: @name)
628
- resp = @client.enable_metrics_collection(options)
646
+ resp = Aws::Plugins::UserAgent.feature('resource') do
647
+ @client.enable_metrics_collection(options)
648
+ end
629
649
  resp.data
630
650
  end
631
651
 
@@ -941,7 +961,9 @@ module Aws::AutoScaling
941
961
  # @return [ScalingPolicy]
942
962
  def put_scaling_policy(options = {})
943
963
  options = options.merge(auto_scaling_group_name: @name)
944
- @client.put_scaling_policy(options)
964
+ Aws::Plugins::UserAgent.feature('resource') do
965
+ @client.put_scaling_policy(options)
966
+ end
945
967
  ScalingPolicy.new(
946
968
  name: options[:policy_name],
947
969
  client: @client
@@ -1021,7 +1043,9 @@ module Aws::AutoScaling
1021
1043
  # @return [ScheduledAction]
1022
1044
  def put_scheduled_update_group_action(options = {})
1023
1045
  options = options.merge(auto_scaling_group_name: @name)
1024
- @client.put_scheduled_update_group_action(options)
1046
+ Aws::Plugins::UserAgent.feature('resource') do
1047
+ @client.put_scheduled_update_group_action(options)
1048
+ end
1025
1049
  ScheduledAction.new(
1026
1050
  name: options[:scheduled_action_name],
1027
1051
  client: @client
@@ -1059,7 +1083,9 @@ module Aws::AutoScaling
1059
1083
  # @return [EmptyStructure]
1060
1084
  def resume_processes(options = {})
1061
1085
  options = options.merge(auto_scaling_group_name: @name)
1062
- resp = @client.resume_processes(options)
1086
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1087
+ @client.resume_processes(options)
1088
+ end
1063
1089
  resp.data
1064
1090
  end
1065
1091
 
@@ -1083,7 +1109,9 @@ module Aws::AutoScaling
1083
1109
  # @return [EmptyStructure]
1084
1110
  def set_desired_capacity(options = {})
1085
1111
  options = options.merge(auto_scaling_group_name: @name)
1086
- resp = @client.set_desired_capacity(options)
1112
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1113
+ @client.set_desired_capacity(options)
1114
+ end
1087
1115
  resp.data
1088
1116
  end
1089
1117
 
@@ -1118,7 +1146,9 @@ module Aws::AutoScaling
1118
1146
  # @return [EmptyStructure]
1119
1147
  def suspend_processes(options = {})
1120
1148
  options = options.merge(auto_scaling_group_name: @name)
1121
- resp = @client.suspend_processes(options)
1149
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1150
+ @client.suspend_processes(options)
1151
+ end
1122
1152
  resp.data
1123
1153
  end
1124
1154
 
@@ -1417,7 +1447,9 @@ module Aws::AutoScaling
1417
1447
  # @return [AutoScalingGroup]
1418
1448
  def update(options = {})
1419
1449
  options = options.merge(auto_scaling_group_name: @name)
1420
- @client.update_auto_scaling_group(options)
1450
+ Aws::Plugins::UserAgent.feature('resource') do
1451
+ @client.update_auto_scaling_group(options)
1452
+ end
1421
1453
  AutoScalingGroup.new(
1422
1454
  name: options[:auto_scaling_group_name],
1423
1455
  client: @client
@@ -1448,7 +1480,9 @@ module Aws::AutoScaling
1448
1480
  def activities(options = {})
1449
1481
  batches = Enumerator.new do |y|
1450
1482
  options = options.merge(auto_scaling_group_name: @name)
1451
- resp = @client.describe_scaling_activities(options)
1483
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1484
+ @client.describe_scaling_activities(options)
1485
+ end
1452
1486
  resp.each_page do |page|
1453
1487
  batch = []
1454
1488
  page.data.activities.each do |a|
@@ -1514,7 +1548,9 @@ module Aws::AutoScaling
1514
1548
  batches = Enumerator.new do |y|
1515
1549
  batch = []
1516
1550
  options = options.merge(auto_scaling_group_name: @name)
1517
- resp = @client.describe_lifecycle_hooks(options)
1551
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1552
+ @client.describe_lifecycle_hooks(options)
1553
+ end
1518
1554
  resp.data.lifecycle_hooks.each do |l|
1519
1555
  batch << LifecycleHook.new(
1520
1556
  group_name: l.auto_scaling_group_name,
@@ -1556,7 +1592,9 @@ module Aws::AutoScaling
1556
1592
  batches = Enumerator.new do |y|
1557
1593
  batch = []
1558
1594
  options = options.merge(auto_scaling_group_name: @name)
1559
- resp = @client.describe_load_balancers(options)
1595
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1596
+ @client.describe_load_balancers(options)
1597
+ end
1560
1598
  resp.data.load_balancers.each do |l|
1561
1599
  batch << LoadBalancer.new(
1562
1600
  group_name: @name,
@@ -1578,7 +1616,9 @@ module Aws::AutoScaling
1578
1616
  def notification_configurations(options = {})
1579
1617
  batches = Enumerator.new do |y|
1580
1618
  options = Aws::Util.deep_merge(options, auto_scaling_group_names: [@name])
1581
- resp = @client.describe_notification_configurations(options)
1619
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1620
+ @client.describe_notification_configurations(options)
1621
+ end
1582
1622
  resp.each_page do |page|
1583
1623
  batch = []
1584
1624
  page.data.notification_configurations.each do |n|
@@ -1617,7 +1657,9 @@ module Aws::AutoScaling
1617
1657
  def policies(options = {})
1618
1658
  batches = Enumerator.new do |y|
1619
1659
  options = options.merge(auto_scaling_group_name: @name)
1620
- resp = @client.describe_policies(options)
1660
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1661
+ @client.describe_policies(options)
1662
+ end
1621
1663
  resp.each_page do |page|
1622
1664
  batch = []
1623
1665
  page.data.scaling_policies.each do |s|
@@ -1657,7 +1699,9 @@ module Aws::AutoScaling
1657
1699
  def scheduled_actions(options = {})
1658
1700
  batches = Enumerator.new do |y|
1659
1701
  options = options.merge(auto_scaling_group_name: @name)
1660
- resp = @client.describe_scheduled_actions(options)
1702
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1703
+ @client.describe_scheduled_actions(options)
1704
+ end
1661
1705
  resp.each_page do |page|
1662
1706
  batch = []
1663
1707
  page.data.scheduled_update_group_actions.each do |s|
@@ -275,6 +275,11 @@ module Aws::AutoScaling
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
@@ -7005,7 +7010,7 @@ module Aws::AutoScaling
7005
7010
  params: params,
7006
7011
  config: config)
7007
7012
  context[:gem_name] = 'aws-sdk-autoscaling'
7008
- context[:gem_version] = '1.89.0'
7013
+ context[:gem_version] = '1.90.0'
7009
7014
  Seahorse::Client::Request.new(handlers, context)
7010
7015
  end
7011
7016
 
@@ -129,7 +129,9 @@ module Aws::AutoScaling
129
129
  #
130
130
  # @return [self]
131
131
  def load
132
- resp = @client.describe_auto_scaling_instances(instance_ids: [@id])
132
+ resp = Aws::Plugins::UserAgent.feature('resource') do
133
+ @client.describe_auto_scaling_instances(instance_ids: [@id])
134
+ end
133
135
  @data = resp.auto_scaling_instances[0]
134
136
  self
135
137
  end
@@ -244,7 +246,9 @@ module Aws::AutoScaling
244
246
  :retry
245
247
  end
246
248
  end
247
- Aws::Waiters::Waiter.new(options).wait({})
249
+ Aws::Plugins::UserAgent.feature('resource') do
250
+ Aws::Waiters::Waiter.new(options).wait({})
251
+ end
248
252
  end
249
253
 
250
254
  # @!group Actions
@@ -259,7 +263,9 @@ module Aws::AutoScaling
259
263
  auto_scaling_group_name: @group_name,
260
264
  instance_ids: [@id]
261
265
  )
262
- resp = @client.attach_instances(options)
266
+ resp = Aws::Plugins::UserAgent.feature('resource') do
267
+ @client.attach_instances(options)
268
+ end
263
269
  resp.data
264
270
  end
265
271
 
@@ -279,7 +285,9 @@ module Aws::AutoScaling
279
285
  auto_scaling_group_name: @group_name,
280
286
  instance_ids: [@id]
281
287
  )
282
- resp = @client.detach_instances(options)
288
+ resp = Aws::Plugins::UserAgent.feature('resource') do
289
+ @client.detach_instances(options)
290
+ end
283
291
  resp.data.activities.each do |a|
284
292
  batch << Activity.new(
285
293
  id: a.activity_id,
@@ -306,7 +314,9 @@ module Aws::AutoScaling
306
314
  auto_scaling_group_name: @group_name,
307
315
  instance_ids: [@id]
308
316
  )
309
- resp = @client.enter_standby(options)
317
+ resp = Aws::Plugins::UserAgent.feature('resource') do
318
+ @client.enter_standby(options)
319
+ end
310
320
  resp.data.activities.each do |a|
311
321
  batch << Activity.new(
312
322
  id: a.activity_id,
@@ -328,7 +338,9 @@ module Aws::AutoScaling
328
338
  auto_scaling_group_name: @group_name,
329
339
  instance_ids: [@id]
330
340
  )
331
- resp = @client.exit_standby(options)
341
+ resp = Aws::Plugins::UserAgent.feature('resource') do
342
+ @client.exit_standby(options)
343
+ end
332
344
  resp.data.activities.each do |a|
333
345
  batch << Activity.new(
334
346
  id: a.activity_id,
@@ -367,7 +379,9 @@ module Aws::AutoScaling
367
379
  # @return [EmptyStructure]
368
380
  def set_health(options = {})
369
381
  options = options.merge(instance_id: @id)
370
- resp = @client.set_instance_health(options)
382
+ resp = Aws::Plugins::UserAgent.feature('resource') do
383
+ @client.set_instance_health(options)
384
+ end
371
385
  resp.data
372
386
  end
373
387
 
@@ -383,7 +397,9 @@ module Aws::AutoScaling
383
397
  # @return [Activity]
384
398
  def terminate(options = {})
385
399
  options = options.merge(instance_id: @id)
386
- resp = @client.terminate_instance_in_auto_scaling_group(options)
400
+ resp = Aws::Plugins::UserAgent.feature('resource') do
401
+ @client.terminate_instance_in_auto_scaling_group(options)
402
+ end
387
403
  Activity.new(
388
404
  id: resp.data.activity.activity_id,
389
405
  data: resp.data.activity,
@@ -461,7 +477,9 @@ module Aws::AutoScaling
461
477
  batch.each do |item|
462
478
  params[:instance_ids] << item.id
463
479
  end
464
- batch[0].client.attach_instances(params)
480
+ Aws::Plugins::UserAgent.feature('resource') do
481
+ batch[0].client.attach_instances(params)
482
+ end
465
483
  end
466
484
  nil
467
485
  end
@@ -484,7 +502,9 @@ module Aws::AutoScaling
484
502
  batch.each do |item|
485
503
  params[:instance_ids] << item.id
486
504
  end
487
- batch[0].client.detach_instances(params)
505
+ Aws::Plugins::UserAgent.feature('resource') do
506
+ batch[0].client.detach_instances(params)
507
+ end
488
508
  end
489
509
  nil
490
510
  end
@@ -507,7 +527,9 @@ module Aws::AutoScaling
507
527
  batch.each do |item|
508
528
  params[:instance_ids] << item.id
509
529
  end
510
- batch[0].client.enter_standby(params)
530
+ Aws::Plugins::UserAgent.feature('resource') do
531
+ batch[0].client.enter_standby(params)
532
+ end
511
533
  end
512
534
  nil
513
535
  end
@@ -522,7 +544,9 @@ module Aws::AutoScaling
522
544
  batch.each do |item|
523
545
  params[:instance_ids] << item.id
524
546
  end
525
- batch[0].client.exit_standby(params)
547
+ Aws::Plugins::UserAgent.feature('resource') do
548
+ batch[0].client.exit_standby(params)
549
+ end
526
550
  end
527
551
  nil
528
552
  end
@@ -264,7 +264,9 @@ module Aws::AutoScaling
264
264
  #
265
265
  # @return [self]
266
266
  def load
267
- resp = @client.describe_launch_configurations(launch_configuration_names: [@name])
267
+ resp = Aws::Plugins::UserAgent.feature('resource') do
268
+ @client.describe_launch_configurations(launch_configuration_names: [@name])
269
+ end
268
270
  @data = resp.launch_configurations[0]
269
271
  self
270
272
  end
@@ -379,7 +381,9 @@ module Aws::AutoScaling
379
381
  :retry
380
382
  end
381
383
  end
382
- Aws::Waiters::Waiter.new(options).wait({})
384
+ Aws::Plugins::UserAgent.feature('resource') do
385
+ Aws::Waiters::Waiter.new(options).wait({})
386
+ end
383
387
  end
384
388
 
385
389
  # @!group Actions
@@ -391,7 +395,9 @@ module Aws::AutoScaling
391
395
  # @return [EmptyStructure]
392
396
  def delete(options = {})
393
397
  options = options.merge(launch_configuration_name: @name)
394
- resp = @client.delete_launch_configuration(options)
398
+ resp = Aws::Plugins::UserAgent.feature('resource') do
399
+ @client.delete_launch_configuration(options)
400
+ end
395
401
  resp.data
396
402
  end
397
403
 
@@ -115,10 +115,12 @@ module Aws::AutoScaling
115
115
  #
116
116
  # @return [self]
117
117
  def load
118
- resp = @client.describe_lifecycle_hooks(
118
+ resp = Aws::Plugins::UserAgent.feature('resource') do
119
+ @client.describe_lifecycle_hooks(
119
120
  auto_scaling_group_name: @group_name,
120
121
  lifecycle_hook_names: [@name]
121
122
  )
123
+ end
122
124
  @data = resp.lifecycle_hooks[0]
123
125
  self
124
126
  end
@@ -233,7 +235,9 @@ module Aws::AutoScaling
233
235
  :retry
234
236
  end
235
237
  end
236
- Aws::Waiters::Waiter.new(options).wait({})
238
+ Aws::Plugins::UserAgent.feature('resource') do
239
+ Aws::Waiters::Waiter.new(options).wait({})
240
+ end
237
241
  end
238
242
 
239
243
  # @!group Actions
@@ -262,7 +266,9 @@ module Aws::AutoScaling
262
266
  auto_scaling_group_name: @group_name,
263
267
  lifecycle_hook_name: @name
264
268
  )
265
- resp = @client.complete_lifecycle_action(options)
269
+ resp = Aws::Plugins::UserAgent.feature('resource') do
270
+ @client.complete_lifecycle_action(options)
271
+ end
266
272
  resp.data
267
273
  end
268
274
 
@@ -276,7 +282,9 @@ module Aws::AutoScaling
276
282
  auto_scaling_group_name: @group_name,
277
283
  lifecycle_hook_name: @name
278
284
  )
279
- resp = @client.delete_lifecycle_hook(options)
285
+ resp = Aws::Plugins::UserAgent.feature('resource') do
286
+ @client.delete_lifecycle_hook(options)
287
+ end
280
288
  resp.data
281
289
  end
282
290
 
@@ -344,7 +352,9 @@ module Aws::AutoScaling
344
352
  auto_scaling_group_name: @group_name,
345
353
  lifecycle_hook_name: @name
346
354
  )
347
- resp = @client.put_lifecycle_hook(options)
355
+ resp = Aws::Plugins::UserAgent.feature('resource') do
356
+ @client.put_lifecycle_hook(options)
357
+ end
348
358
  resp.data
349
359
  end
350
360
 
@@ -368,7 +378,9 @@ module Aws::AutoScaling
368
378
  auto_scaling_group_name: @group_name,
369
379
  lifecycle_hook_name: @name
370
380
  )
371
- resp = @client.record_lifecycle_action_heartbeat(options)
381
+ resp = Aws::Plugins::UserAgent.feature('resource') do
382
+ @client.record_lifecycle_action_heartbeat(options)
383
+ end
372
384
  resp.data
373
385
  end
374
386
 
@@ -190,7 +190,9 @@ module Aws::AutoScaling
190
190
  :retry
191
191
  end
192
192
  end
193
- Aws::Waiters::Waiter.new(options).wait({})
193
+ Aws::Plugins::UserAgent.feature('resource') do
194
+ Aws::Waiters::Waiter.new(options).wait({})
195
+ end
194
196
  end
195
197
 
196
198
  # @!group Actions
@@ -205,7 +207,9 @@ module Aws::AutoScaling
205
207
  auto_scaling_group_name: @group_name,
206
208
  load_balancer_names: [@name]
207
209
  )
208
- resp = @client.attach_load_balancers(options)
210
+ resp = Aws::Plugins::UserAgent.feature('resource') do
211
+ @client.attach_load_balancers(options)
212
+ end
209
213
  resp.data
210
214
  end
211
215
 
@@ -219,7 +223,9 @@ module Aws::AutoScaling
219
223
  auto_scaling_group_name: @group_name,
220
224
  load_balancer_names: [@name]
221
225
  )
222
- resp = @client.detach_load_balancers(options)
226
+ resp = Aws::Plugins::UserAgent.feature('resource') do
227
+ @client.detach_load_balancers(options)
228
+ end
223
229
  resp.data
224
230
  end
225
231
 
@@ -281,7 +287,9 @@ module Aws::AutoScaling
281
287
  batch.each do |item|
282
288
  params[:load_balancer_names] << item.name
283
289
  end
284
- batch[0].client.attach_load_balancers(params)
290
+ Aws::Plugins::UserAgent.feature('resource') do
291
+ batch[0].client.attach_load_balancers(params)
292
+ end
285
293
  end
286
294
  nil
287
295
  end
@@ -296,7 +304,9 @@ module Aws::AutoScaling
296
304
  batch.each do |item|
297
305
  params[:load_balancer_names] << item.name
298
306
  end
299
- batch[0].client.detach_load_balancers(params)
307
+ Aws::Plugins::UserAgent.feature('resource') do
308
+ batch[0].client.detach_load_balancers(params)
309
+ end
300
310
  end
301
311
  nil
302
312
  end
@@ -176,7 +176,9 @@ module Aws::AutoScaling
176
176
  :retry
177
177
  end
178
178
  end
179
- Aws::Waiters::Waiter.new(options).wait({})
179
+ Aws::Plugins::UserAgent.feature('resource') do
180
+ Aws::Waiters::Waiter.new(options).wait({})
181
+ end
180
182
  end
181
183
 
182
184
  # @!group Actions
@@ -191,7 +193,9 @@ module Aws::AutoScaling
191
193
  auto_scaling_group_name: @group_name,
192
194
  topic_arn: @topic_arn
193
195
  )
194
- resp = @client.delete_notification_configuration(options)
196
+ resp = Aws::Plugins::UserAgent.feature('resource') do
197
+ @client.delete_notification_configuration(options)
198
+ end
195
199
  resp.data
196
200
  end
197
201
 
@@ -206,7 +210,9 @@ module Aws::AutoScaling
206
210
  topic_arn: @topic_arn,
207
211
  notification_types: [@notification_type]
208
212
  )
209
- resp = @client.put_notification_configuration(options)
213
+ resp = Aws::Plugins::UserAgent.feature('resource') do
214
+ @client.put_notification_configuration(options)
215
+ end
210
216
  resp.data
211
217
  end
212
218
 
@@ -281,7 +287,9 @@ module Aws::AutoScaling
281
287
  batch.each do |item|
282
288
  params[:notification_types] << item.notification_type
283
289
  end
284
- batch[0].client.put_notification_configuration(params)
290
+ Aws::Plugins::UserAgent.feature('resource') do
291
+ batch[0].client.put_notification_configuration(params)
292
+ end
285
293
  end
286
294
  nil
287
295
  end
@@ -455,7 +455,9 @@ module Aws::AutoScaling
455
455
  # Balancer, Network Load Balancer, and VPC Lattice.
456
456
  # @return [AutoScalingGroup]
457
457
  def create_group(options = {})
458
- @client.create_auto_scaling_group(options)
458
+ Aws::Plugins::UserAgent.feature('resource') do
459
+ @client.create_auto_scaling_group(options)
460
+ end
459
461
  AutoScalingGroup.new(
460
462
  name: options[:auto_scaling_group_name],
461
463
  client: @client
@@ -719,7 +721,9 @@ module Aws::AutoScaling
719
721
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
720
722
  # @return [LaunchConfiguration]
721
723
  def create_launch_configuration(options = {})
722
- @client.create_launch_configuration(options)
724
+ Aws::Plugins::UserAgent.feature('resource') do
725
+ @client.create_launch_configuration(options)
726
+ end
723
727
  LaunchConfiguration.new(
724
728
  name: options[:launch_configuration_name],
725
729
  client: @client
@@ -752,7 +756,9 @@ module Aws::AutoScaling
752
756
  # @return [Activity::Collection]
753
757
  def activities(options = {})
754
758
  batches = Enumerator.new do |y|
755
- resp = @client.describe_scaling_activities(options)
759
+ resp = Aws::Plugins::UserAgent.feature('resource') do
760
+ @client.describe_scaling_activities(options)
761
+ end
756
762
  resp.each_page do |page|
757
763
  batch = []
758
764
  page.data.activities.each do |a|
@@ -809,7 +815,9 @@ module Aws::AutoScaling
809
815
  # @return [AutoScalingGroup::Collection]
810
816
  def groups(options = {})
811
817
  batches = Enumerator.new do |y|
812
- resp = @client.describe_auto_scaling_groups(options)
818
+ resp = Aws::Plugins::UserAgent.feature('resource') do
819
+ @client.describe_auto_scaling_groups(options)
820
+ end
813
821
  resp.each_page do |page|
814
822
  batch = []
815
823
  page.data.auto_scaling_groups.each do |a|
@@ -840,7 +848,9 @@ module Aws::AutoScaling
840
848
  # @return [Instance::Collection]
841
849
  def instances(options = {})
842
850
  batches = Enumerator.new do |y|
843
- resp = @client.describe_auto_scaling_instances(options)
851
+ resp = Aws::Plugins::UserAgent.feature('resource') do
852
+ @client.describe_auto_scaling_instances(options)
853
+ end
844
854
  resp.each_page do |page|
845
855
  batch = []
846
856
  page.data.auto_scaling_instances.each do |a|
@@ -880,7 +890,9 @@ module Aws::AutoScaling
880
890
  # @return [LaunchConfiguration::Collection]
881
891
  def launch_configurations(options = {})
882
892
  batches = Enumerator.new do |y|
883
- resp = @client.describe_launch_configurations(options)
893
+ resp = Aws::Plugins::UserAgent.feature('resource') do
894
+ @client.describe_launch_configurations(options)
895
+ end
884
896
  resp.each_page do |page|
885
897
  batch = []
886
898
  page.data.launch_configurations.each do |l|
@@ -919,7 +931,9 @@ module Aws::AutoScaling
919
931
  # @return [ScalingPolicy::Collection]
920
932
  def policies(options = {})
921
933
  batches = Enumerator.new do |y|
922
- resp = @client.describe_policies(options)
934
+ resp = Aws::Plugins::UserAgent.feature('resource') do
935
+ @client.describe_policies(options)
936
+ end
923
937
  resp.each_page do |page|
924
938
  batch = []
925
939
  page.data.scaling_policies.each do |s|
@@ -979,7 +993,9 @@ module Aws::AutoScaling
979
993
  # @return [ScheduledAction::Collection]
980
994
  def scheduled_actions(options = {})
981
995
  batches = Enumerator.new do |y|
982
- resp = @client.describe_scheduled_actions(options)
996
+ resp = Aws::Plugins::UserAgent.feature('resource') do
997
+ @client.describe_scheduled_actions(options)
998
+ end
983
999
  resp.each_page do |page|
984
1000
  batch = []
985
1001
  page.data.scheduled_update_group_actions.each do |s|
@@ -1012,7 +1028,9 @@ module Aws::AutoScaling
1012
1028
  # @return [Tag::Collection]
1013
1029
  def tags(options = {})
1014
1030
  batches = Enumerator.new do |y|
1015
- resp = @client.describe_tags(options)
1031
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1032
+ @client.describe_tags(options)
1033
+ end
1016
1034
  resp.each_page do |page|
1017
1035
  batch = []
1018
1036
  page.data.tags.each do |t|
@@ -166,7 +166,9 @@ module Aws::AutoScaling
166
166
  #
167
167
  # @return [self]
168
168
  def load
169
- resp = @client.describe_policies(policy_names: [@name])
169
+ resp = Aws::Plugins::UserAgent.feature('resource') do
170
+ @client.describe_policies(policy_names: [@name])
171
+ end
170
172
  @data = resp.scaling_policies[0]
171
173
  self
172
174
  end
@@ -281,7 +283,9 @@ module Aws::AutoScaling
281
283
  :retry
282
284
  end
283
285
  end
284
- Aws::Waiters::Waiter.new(options).wait({})
286
+ Aws::Plugins::UserAgent.feature('resource') do
287
+ Aws::Waiters::Waiter.new(options).wait({})
288
+ end
285
289
  end
286
290
 
287
291
  # @!group Actions
@@ -297,7 +301,9 @@ module Aws::AutoScaling
297
301
  # @return [EmptyStructure]
298
302
  def delete(options = {})
299
303
  options = options.merge(policy_name: @name)
300
- resp = @client.delete_policy(options)
304
+ resp = Aws::Plugins::UserAgent.feature('resource') do
305
+ @client.delete_policy(options)
306
+ end
301
307
  resp.data
302
308
  end
303
309
 
@@ -343,7 +349,9 @@ module Aws::AutoScaling
343
349
  # @return [EmptyStructure]
344
350
  def execute(options = {})
345
351
  options = options.merge(policy_name: @name)
346
- resp = @client.execute_policy(options)
352
+ resp = Aws::Plugins::UserAgent.feature('resource') do
353
+ @client.execute_policy(options)
354
+ end
347
355
  resp.data
348
356
  end
349
357
 
@@ -116,7 +116,9 @@ module Aws::AutoScaling
116
116
  #
117
117
  # @return [self]
118
118
  def load
119
- resp = @client.describe_scheduled_actions(scheduled_action_names: [@name])
119
+ resp = Aws::Plugins::UserAgent.feature('resource') do
120
+ @client.describe_scheduled_actions(scheduled_action_names: [@name])
121
+ end
120
122
  @data = resp.scheduled_update_group_actions[0]
121
123
  self
122
124
  end
@@ -231,7 +233,9 @@ module Aws::AutoScaling
231
233
  :retry
232
234
  end
233
235
  end
234
- Aws::Waiters::Waiter.new(options).wait({})
236
+ Aws::Plugins::UserAgent.feature('resource') do
237
+ Aws::Waiters::Waiter.new(options).wait({})
238
+ end
235
239
  end
236
240
 
237
241
  # @!group Actions
@@ -247,7 +251,9 @@ module Aws::AutoScaling
247
251
  # @return [EmptyStructure]
248
252
  def delete(options = {})
249
253
  options = options.merge(scheduled_action_name: @name)
250
- resp = @client.delete_scheduled_action(options)
254
+ resp = Aws::Plugins::UserAgent.feature('resource') do
255
+ @client.delete_scheduled_action(options)
256
+ end
251
257
  resp.data
252
258
  end
253
259
 
@@ -77,7 +77,8 @@ module Aws::AutoScaling
77
77
  #
78
78
  # @return [self]
79
79
  def load
80
- resp = @client.describe_tags(filters: [
80
+ resp = Aws::Plugins::UserAgent.feature('resource') do
81
+ @client.describe_tags(filters: [
81
82
  {
82
83
  name: "key",
83
84
  values: [@key]
@@ -87,6 +88,7 @@ module Aws::AutoScaling
87
88
  values: [@resource_id]
88
89
  }
89
90
  ])
91
+ end
90
92
  @data = resp.tags[0]
91
93
  self
92
94
  end
@@ -201,7 +203,9 @@ module Aws::AutoScaling
201
203
  :retry
202
204
  end
203
205
  end
204
- Aws::Waiters::Waiter.new(options).wait({})
206
+ Aws::Plugins::UserAgent.feature('resource') do
207
+ Aws::Waiters::Waiter.new(options).wait({})
208
+ end
205
209
  end
206
210
 
207
211
  # @!group Actions
@@ -229,7 +233,9 @@ module Aws::AutoScaling
229
233
  resource_id: @resource_id,
230
234
  key: @key
231
235
  }])
232
- resp = @client.create_or_update_tags(options)
236
+ resp = Aws::Plugins::UserAgent.feature('resource') do
237
+ @client.create_or_update_tags(options)
238
+ end
233
239
  resp.data
234
240
  end
235
241
 
@@ -256,7 +262,9 @@ module Aws::AutoScaling
256
262
  resource_id: @resource_id,
257
263
  key: @key
258
264
  }])
259
- resp = @client.delete_tags(options)
265
+ resp = Aws::Plugins::UserAgent.feature('resource') do
266
+ @client.delete_tags(options)
267
+ end
260
268
  resp.data
261
269
  end
262
270
 
@@ -323,7 +331,9 @@ module Aws::AutoScaling
323
331
  key: item.key
324
332
  }
325
333
  end
326
- batch[0].client.create_or_update_tags(params)
334
+ Aws::Plugins::UserAgent.feature('resource') do
335
+ batch[0].client.create_or_update_tags(params)
336
+ end
327
337
  end
328
338
  nil
329
339
  end
@@ -341,7 +351,9 @@ module Aws::AutoScaling
341
351
  key: item.key
342
352
  }
343
353
  end
344
- batch[0].client.delete_tags(params)
354
+ Aws::Plugins::UserAgent.feature('resource') do
355
+ batch[0].client.delete_tags(params)
356
+ end
345
357
  end
346
358
  nil
347
359
  end
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
63
63
  # @!group service
64
64
  module Aws::AutoScaling
65
65
 
66
- GEM_VERSION = '1.89.0'
66
+ GEM_VERSION = '1.90.0'
67
67
 
68
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-autoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.89.0
4
+ version: 1.90.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-04-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