aws-sdk-autoscaling 1.87.0 → 1.90.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/activity.rb +6 -2
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +70 -24
- data/lib/aws-sdk-autoscaling/client.rb +52 -50
- data/lib/aws-sdk-autoscaling/instance.rb +36 -12
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +9 -3
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +18 -6
- data/lib/aws-sdk-autoscaling/load_balancer.rb +15 -5
- data/lib/aws-sdk-autoscaling/notification_configuration.rb +12 -4
- data/lib/aws-sdk-autoscaling/resource.rb +30 -10
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +12 -4
- data/lib/aws-sdk-autoscaling/scheduled_action.rb +9 -3
- data/lib/aws-sdk-autoscaling/tag.rb +18 -6
- data/lib/aws-sdk-autoscaling/types.rb +11 -5
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6880835985313903be5564e7a236561cb584a7a6c7ac0a2bfb882fcb7a4c4608
|
4
|
+
data.tar.gz: d5040e61bbe3fc74620a6de4dafd95c74f96834c28bbe4fa3cbb96ce12b156c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4de3820f03caee5f39150ecd5437ba0e7700f45ba0dbb7614a94008876ccbd33964f761a59539a4f0b4d8937bfb9ee5e09714135459ef6eb454458d218785b7b
|
7
|
+
data.tar.gz: eceeacf3a99db7add64760bda689a59e00a04e64106477e8cf7784399efa577c8ae15c524906e300b7f6caf961ca73e508d15ff211398e4fdefa01c13d1e392b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
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
|
+
|
9
|
+
1.89.0 (2023-04-04)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Documentation updates for Amazon EC2 Auto Scaling
|
13
|
+
|
14
|
+
1.88.0 (2023-04-04)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Documentation updates for Amazon EC2 Auto Scaling
|
18
|
+
|
4
19
|
1.87.0 (2023-03-30)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.90.0
|
@@ -116,7 +116,9 @@ module Aws::AutoScaling
|
|
116
116
|
#
|
117
117
|
# @return [self]
|
118
118
|
def load
|
119
|
-
resp =
|
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::
|
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
|
@@ -109,7 +109,7 @@ module Aws::AutoScaling
|
|
109
109
|
data[:target_group_arns]
|
110
110
|
end
|
111
111
|
|
112
|
-
# A comma-separated
|
112
|
+
# A comma-separated value string of one or more health check types.
|
113
113
|
# @return [String]
|
114
114
|
def health_check_type
|
115
115
|
data[:health_check_type]
|
@@ -247,7 +247,9 @@ module Aws::AutoScaling
|
|
247
247
|
#
|
248
248
|
# @return [self]
|
249
249
|
def load
|
250
|
-
resp =
|
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
|
-
|
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
|
-
|
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
|
-
|
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::
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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
|
-
|
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
|
-
|
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 =
|
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 =
|
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 =
|
1149
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1150
|
+
@client.suspend_processes(options)
|
1151
|
+
end
|
1122
1152
|
resp.data
|
1123
1153
|
end
|
1124
1154
|
|
@@ -1279,13 +1309,15 @@ module Aws::AutoScaling
|
|
1279
1309
|
# @option options [Array<String>] :availability_zones
|
1280
1310
|
# One or more Availability Zones for the group.
|
1281
1311
|
# @option options [String] :health_check_type
|
1282
|
-
# A comma-separated
|
1312
|
+
# A comma-separated value string of one or more health check types.
|
1283
1313
|
#
|
1284
1314
|
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
1285
1315
|
# default health check and cannot be disabled. For more information, see
|
1286
1316
|
# [Health checks for Auto Scaling instances][1] in the *Amazon EC2 Auto
|
1287
1317
|
# Scaling User Guide*.
|
1288
1318
|
#
|
1319
|
+
# Only specify `EC2` if you must clear a value that was previously set.
|
1320
|
+
#
|
1289
1321
|
#
|
1290
1322
|
#
|
1291
1323
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
@@ -1415,7 +1447,9 @@ module Aws::AutoScaling
|
|
1415
1447
|
# @return [AutoScalingGroup]
|
1416
1448
|
def update(options = {})
|
1417
1449
|
options = options.merge(auto_scaling_group_name: @name)
|
1418
|
-
|
1450
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
1451
|
+
@client.update_auto_scaling_group(options)
|
1452
|
+
end
|
1419
1453
|
AutoScalingGroup.new(
|
1420
1454
|
name: options[:auto_scaling_group_name],
|
1421
1455
|
client: @client
|
@@ -1446,7 +1480,9 @@ module Aws::AutoScaling
|
|
1446
1480
|
def activities(options = {})
|
1447
1481
|
batches = Enumerator.new do |y|
|
1448
1482
|
options = options.merge(auto_scaling_group_name: @name)
|
1449
|
-
resp =
|
1483
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1484
|
+
@client.describe_scaling_activities(options)
|
1485
|
+
end
|
1450
1486
|
resp.each_page do |page|
|
1451
1487
|
batch = []
|
1452
1488
|
page.data.activities.each do |a|
|
@@ -1512,7 +1548,9 @@ module Aws::AutoScaling
|
|
1512
1548
|
batches = Enumerator.new do |y|
|
1513
1549
|
batch = []
|
1514
1550
|
options = options.merge(auto_scaling_group_name: @name)
|
1515
|
-
resp =
|
1551
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1552
|
+
@client.describe_lifecycle_hooks(options)
|
1553
|
+
end
|
1516
1554
|
resp.data.lifecycle_hooks.each do |l|
|
1517
1555
|
batch << LifecycleHook.new(
|
1518
1556
|
group_name: l.auto_scaling_group_name,
|
@@ -1554,7 +1592,9 @@ module Aws::AutoScaling
|
|
1554
1592
|
batches = Enumerator.new do |y|
|
1555
1593
|
batch = []
|
1556
1594
|
options = options.merge(auto_scaling_group_name: @name)
|
1557
|
-
resp =
|
1595
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1596
|
+
@client.describe_load_balancers(options)
|
1597
|
+
end
|
1558
1598
|
resp.data.load_balancers.each do |l|
|
1559
1599
|
batch << LoadBalancer.new(
|
1560
1600
|
group_name: @name,
|
@@ -1576,7 +1616,9 @@ module Aws::AutoScaling
|
|
1576
1616
|
def notification_configurations(options = {})
|
1577
1617
|
batches = Enumerator.new do |y|
|
1578
1618
|
options = Aws::Util.deep_merge(options, auto_scaling_group_names: [@name])
|
1579
|
-
resp =
|
1619
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1620
|
+
@client.describe_notification_configurations(options)
|
1621
|
+
end
|
1580
1622
|
resp.each_page do |page|
|
1581
1623
|
batch = []
|
1582
1624
|
page.data.notification_configurations.each do |n|
|
@@ -1615,7 +1657,9 @@ module Aws::AutoScaling
|
|
1615
1657
|
def policies(options = {})
|
1616
1658
|
batches = Enumerator.new do |y|
|
1617
1659
|
options = options.merge(auto_scaling_group_name: @name)
|
1618
|
-
resp =
|
1660
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1661
|
+
@client.describe_policies(options)
|
1662
|
+
end
|
1619
1663
|
resp.each_page do |page|
|
1620
1664
|
batch = []
|
1621
1665
|
page.data.scaling_policies.each do |s|
|
@@ -1655,7 +1699,9 @@ module Aws::AutoScaling
|
|
1655
1699
|
def scheduled_actions(options = {})
|
1656
1700
|
batches = Enumerator.new do |y|
|
1657
1701
|
options = options.merge(auto_scaling_group_name: @name)
|
1658
|
-
resp =
|
1702
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1703
|
+
@client.describe_scheduled_actions(options)
|
1704
|
+
end
|
1659
1705
|
resp.each_page do |page|
|
1660
1706
|
batch = []
|
1661
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
|
@@ -425,13 +430,12 @@ module Aws::AutoScaling
|
|
425
430
|
req.send_request(options)
|
426
431
|
end
|
427
432
|
|
428
|
-
# <note markdown="1"> This API
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
# to simplify how you manage traffic sources.
|
433
|
+
# <note markdown="1"> This API operation is superseded by AttachTrafficSources, which can
|
434
|
+
# attach multiple traffic sources types. We recommend using
|
435
|
+
# `AttachTrafficSources` to simplify how you manage traffic sources.
|
436
|
+
# However, we continue to support `AttachLoadBalancerTargetGroups`. You
|
437
|
+
# can use both the original `AttachLoadBalancerTargetGroups` API
|
438
|
+
# operation and `AttachTrafficSources` on the same Auto Scaling group.
|
435
439
|
#
|
436
440
|
# </note>
|
437
441
|
#
|
@@ -505,13 +509,12 @@ module Aws::AutoScaling
|
|
505
509
|
req.send_request(options)
|
506
510
|
end
|
507
511
|
|
508
|
-
# <note markdown="1"> This API
|
509
|
-
#
|
510
|
-
#
|
511
|
-
#
|
512
|
-
#
|
513
|
-
#
|
514
|
-
# you manage traffic sources.
|
512
|
+
# <note markdown="1"> This API operation is superseded by AttachTrafficSources, which can
|
513
|
+
# attach multiple traffic sources types. We recommend using
|
514
|
+
# `AttachTrafficSources` to simplify how you manage traffic sources.
|
515
|
+
# However, we continue to support `AttachLoadBalancers`. You can use
|
516
|
+
# both the original `AttachLoadBalancers` API operation and
|
517
|
+
# `AttachTrafficSources` on the same Auto Scaling group.
|
515
518
|
#
|
516
519
|
# </note>
|
517
520
|
#
|
@@ -581,10 +584,10 @@ module Aws::AutoScaling
|
|
581
584
|
#
|
582
585
|
# * Classic Load Balancer
|
583
586
|
#
|
584
|
-
# * Network Load Balancer
|
585
|
-
#
|
586
587
|
# * Gateway Load Balancer
|
587
588
|
#
|
589
|
+
# * Network Load Balancer
|
590
|
+
#
|
588
591
|
# * VPC Lattice
|
589
592
|
#
|
590
593
|
# This operation is additive and does not detach existing traffic
|
@@ -1026,13 +1029,15 @@ module Aws::AutoScaling
|
|
1026
1029
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
1027
1030
|
#
|
1028
1031
|
# @option params [String] :health_check_type
|
1029
|
-
# A comma-separated
|
1032
|
+
# A comma-separated value string of one or more health check types.
|
1030
1033
|
#
|
1031
1034
|
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
1032
1035
|
# default health check and cannot be disabled. For more information, see
|
1033
1036
|
# [Health checks for Auto Scaling instances][1] in the *Amazon EC2 Auto
|
1034
1037
|
# Scaling User Guide*.
|
1035
1038
|
#
|
1039
|
+
# Only specify `EC2` if you must clear a value that was previously set.
|
1040
|
+
#
|
1036
1041
|
#
|
1037
1042
|
#
|
1038
1043
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
@@ -3057,14 +3062,12 @@ module Aws::AutoScaling
|
|
3057
3062
|
req.send_request(options)
|
3058
3063
|
end
|
3059
3064
|
|
3060
|
-
# <note markdown="1"> This API
|
3061
|
-
#
|
3062
|
-
#
|
3063
|
-
#
|
3064
|
-
#
|
3065
|
-
# `DescribeTrafficSources`
|
3066
|
-
# recommend using the new "traffic sources" API call to simplify how
|
3067
|
-
# you manage traffic sources.
|
3065
|
+
# <note markdown="1"> This API operation is superseded by DescribeTrafficSources, which can
|
3066
|
+
# describe multiple traffic sources types. We recommend using
|
3067
|
+
# `DetachTrafficSources` to simplify how you manage traffic sources.
|
3068
|
+
# However, we continue to support `DescribeLoadBalancerTargetGroups`.
|
3069
|
+
# You can use both the original `DescribeLoadBalancerTargetGroups` API
|
3070
|
+
# operation and `DescribeTrafficSources` on the same Auto Scaling group.
|
3068
3071
|
#
|
3069
3072
|
# </note>
|
3070
3073
|
#
|
@@ -3165,13 +3168,12 @@ module Aws::AutoScaling
|
|
3165
3168
|
req.send_request(options)
|
3166
3169
|
end
|
3167
3170
|
|
3168
|
-
# <note markdown="1"> This API
|
3169
|
-
#
|
3170
|
-
#
|
3171
|
-
#
|
3172
|
-
# the
|
3173
|
-
#
|
3174
|
-
# simplify how you manage traffic sources.
|
3171
|
+
# <note markdown="1"> This API operation is superseded by DescribeTrafficSources, which can
|
3172
|
+
# describe multiple traffic sources types. We recommend using
|
3173
|
+
# `DescribeTrafficSources` to simplify how you manage traffic sources.
|
3174
|
+
# However, we continue to support `DescribeLoadBalancers`. You can use
|
3175
|
+
# both the original `DescribeLoadBalancers` API operation and
|
3176
|
+
# `DescribeTrafficSources` on the same Auto Scaling group.
|
3175
3177
|
#
|
3176
3178
|
# </note>
|
3177
3179
|
#
|
@@ -4266,13 +4268,12 @@ module Aws::AutoScaling
|
|
4266
4268
|
req.send_request(options)
|
4267
4269
|
end
|
4268
4270
|
|
4269
|
-
# <note markdown="1"> This API
|
4270
|
-
#
|
4271
|
-
#
|
4272
|
-
#
|
4273
|
-
#
|
4274
|
-
#
|
4275
|
-
# to simplify how you manage traffic sources.
|
4271
|
+
# <note markdown="1"> This API operation is superseded by DetachTrafficSources, which can
|
4272
|
+
# detach multiple traffic sources types. We recommend using
|
4273
|
+
# `DetachTrafficSources` to simplify how you manage traffic sources.
|
4274
|
+
# However, we continue to support `DetachLoadBalancerTargetGroups`. You
|
4275
|
+
# can use both the original `DetachLoadBalancerTargetGroups` API
|
4276
|
+
# operation and `DetachTrafficSources` on the same Auto Scaling group.
|
4276
4277
|
#
|
4277
4278
|
# </note>
|
4278
4279
|
#
|
@@ -4328,13 +4329,12 @@ module Aws::AutoScaling
|
|
4328
4329
|
req.send_request(options)
|
4329
4330
|
end
|
4330
4331
|
|
4331
|
-
# <note markdown="1"> This API
|
4332
|
-
#
|
4333
|
-
#
|
4334
|
-
#
|
4335
|
-
#
|
4336
|
-
#
|
4337
|
-
# you manage traffic sources.
|
4332
|
+
# <note markdown="1"> This API operation is superseded by DetachTrafficSources, which can
|
4333
|
+
# detach multiple traffic sources types. We recommend using
|
4334
|
+
# `DetachTrafficSources` to simplify how you manage traffic sources.
|
4335
|
+
# However, we continue to support `DetachLoadBalancers`. You can use
|
4336
|
+
# both the original `DetachLoadBalancers` API operation and
|
4337
|
+
# `DetachTrafficSources` on the same Auto Scaling group.
|
4338
4338
|
#
|
4339
4339
|
# </note>
|
4340
4340
|
#
|
@@ -4399,8 +4399,8 @@ module Aws::AutoScaling
|
|
4399
4399
|
# The name of the Auto Scaling group.
|
4400
4400
|
#
|
4401
4401
|
# @option params [required, Array<Types::TrafficSourceIdentifier>] :traffic_sources
|
4402
|
-
# The unique identifiers of one or more traffic sources
|
4403
|
-
#
|
4402
|
+
# The unique identifiers of one or more traffic sources. You can specify
|
4403
|
+
# up to 10 traffic sources.
|
4404
4404
|
#
|
4405
4405
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4406
4406
|
#
|
@@ -6714,13 +6714,15 @@ module Aws::AutoScaling
|
|
6714
6714
|
# One or more Availability Zones for the group.
|
6715
6715
|
#
|
6716
6716
|
# @option params [String] :health_check_type
|
6717
|
-
# A comma-separated
|
6717
|
+
# A comma-separated value string of one or more health check types.
|
6718
6718
|
#
|
6719
6719
|
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
6720
6720
|
# default health check and cannot be disabled. For more information, see
|
6721
6721
|
# [Health checks for Auto Scaling instances][1] in the *Amazon EC2 Auto
|
6722
6722
|
# Scaling User Guide*.
|
6723
6723
|
#
|
6724
|
+
# Only specify `EC2` if you must clear a value that was previously set.
|
6725
|
+
#
|
6724
6726
|
#
|
6725
6727
|
#
|
6726
6728
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
@@ -7008,7 +7010,7 @@ module Aws::AutoScaling
|
|
7008
7010
|
params: params,
|
7009
7011
|
config: config)
|
7010
7012
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
7011
|
-
context[:gem_version] = '1.
|
7013
|
+
context[:gem_version] = '1.90.0'
|
7012
7014
|
Seahorse::Client::Request.new(handlers, context)
|
7013
7015
|
end
|
7014
7016
|
|
@@ -129,7 +129,9 @@ module Aws::AutoScaling
|
|
129
129
|
#
|
130
130
|
# @return [self]
|
131
131
|
def load
|
132
|
-
resp =
|
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::
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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 =
|
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::
|
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 =
|
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 =
|
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::
|
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 =
|
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 =
|
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 =
|
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 =
|
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::
|
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 =
|
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 =
|
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
|
-
|
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
|
-
|
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::
|
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 =
|
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 =
|
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
|
-
|
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
|
@@ -285,13 +285,15 @@ module Aws::AutoScaling
|
|
285
285
|
#
|
286
286
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
287
287
|
# @option options [String] :health_check_type
|
288
|
-
# A comma-separated
|
288
|
+
# A comma-separated value string of one or more health check types.
|
289
289
|
#
|
290
290
|
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
291
291
|
# default health check and cannot be disabled. For more information, see
|
292
292
|
# [Health checks for Auto Scaling instances][1] in the *Amazon EC2 Auto
|
293
293
|
# Scaling User Guide*.
|
294
294
|
#
|
295
|
+
# Only specify `EC2` if you must clear a value that was previously set.
|
296
|
+
#
|
295
297
|
#
|
296
298
|
#
|
297
299
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
@@ -453,7 +455,9 @@ module Aws::AutoScaling
|
|
453
455
|
# Balancer, Network Load Balancer, and VPC Lattice.
|
454
456
|
# @return [AutoScalingGroup]
|
455
457
|
def create_group(options = {})
|
456
|
-
|
458
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
459
|
+
@client.create_auto_scaling_group(options)
|
460
|
+
end
|
457
461
|
AutoScalingGroup.new(
|
458
462
|
name: options[:auto_scaling_group_name],
|
459
463
|
client: @client
|
@@ -717,7 +721,9 @@ module Aws::AutoScaling
|
|
717
721
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
718
722
|
# @return [LaunchConfiguration]
|
719
723
|
def create_launch_configuration(options = {})
|
720
|
-
|
724
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
725
|
+
@client.create_launch_configuration(options)
|
726
|
+
end
|
721
727
|
LaunchConfiguration.new(
|
722
728
|
name: options[:launch_configuration_name],
|
723
729
|
client: @client
|
@@ -750,7 +756,9 @@ module Aws::AutoScaling
|
|
750
756
|
# @return [Activity::Collection]
|
751
757
|
def activities(options = {})
|
752
758
|
batches = Enumerator.new do |y|
|
753
|
-
resp =
|
759
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
760
|
+
@client.describe_scaling_activities(options)
|
761
|
+
end
|
754
762
|
resp.each_page do |page|
|
755
763
|
batch = []
|
756
764
|
page.data.activities.each do |a|
|
@@ -807,7 +815,9 @@ module Aws::AutoScaling
|
|
807
815
|
# @return [AutoScalingGroup::Collection]
|
808
816
|
def groups(options = {})
|
809
817
|
batches = Enumerator.new do |y|
|
810
|
-
resp =
|
818
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
819
|
+
@client.describe_auto_scaling_groups(options)
|
820
|
+
end
|
811
821
|
resp.each_page do |page|
|
812
822
|
batch = []
|
813
823
|
page.data.auto_scaling_groups.each do |a|
|
@@ -838,7 +848,9 @@ module Aws::AutoScaling
|
|
838
848
|
# @return [Instance::Collection]
|
839
849
|
def instances(options = {})
|
840
850
|
batches = Enumerator.new do |y|
|
841
|
-
resp =
|
851
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
852
|
+
@client.describe_auto_scaling_instances(options)
|
853
|
+
end
|
842
854
|
resp.each_page do |page|
|
843
855
|
batch = []
|
844
856
|
page.data.auto_scaling_instances.each do |a|
|
@@ -878,7 +890,9 @@ module Aws::AutoScaling
|
|
878
890
|
# @return [LaunchConfiguration::Collection]
|
879
891
|
def launch_configurations(options = {})
|
880
892
|
batches = Enumerator.new do |y|
|
881
|
-
resp =
|
893
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
894
|
+
@client.describe_launch_configurations(options)
|
895
|
+
end
|
882
896
|
resp.each_page do |page|
|
883
897
|
batch = []
|
884
898
|
page.data.launch_configurations.each do |l|
|
@@ -917,7 +931,9 @@ module Aws::AutoScaling
|
|
917
931
|
# @return [ScalingPolicy::Collection]
|
918
932
|
def policies(options = {})
|
919
933
|
batches = Enumerator.new do |y|
|
920
|
-
resp =
|
934
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
935
|
+
@client.describe_policies(options)
|
936
|
+
end
|
921
937
|
resp.each_page do |page|
|
922
938
|
batch = []
|
923
939
|
page.data.scaling_policies.each do |s|
|
@@ -977,7 +993,9 @@ module Aws::AutoScaling
|
|
977
993
|
# @return [ScheduledAction::Collection]
|
978
994
|
def scheduled_actions(options = {})
|
979
995
|
batches = Enumerator.new do |y|
|
980
|
-
resp =
|
996
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
997
|
+
@client.describe_scheduled_actions(options)
|
998
|
+
end
|
981
999
|
resp.each_page do |page|
|
982
1000
|
batch = []
|
983
1001
|
page.data.scheduled_update_group_actions.each do |s|
|
@@ -1010,7 +1028,9 @@ module Aws::AutoScaling
|
|
1010
1028
|
# @return [Tag::Collection]
|
1011
1029
|
def tags(options = {})
|
1012
1030
|
batches = Enumerator.new do |y|
|
1013
|
-
resp =
|
1031
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1032
|
+
@client.describe_tags(options)
|
1033
|
+
end
|
1014
1034
|
resp.each_page do |page|
|
1015
1035
|
batch = []
|
1016
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 =
|
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::
|
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 =
|
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 =
|
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 =
|
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::
|
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 =
|
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 =
|
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::
|
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 =
|
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 =
|
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
|
-
|
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
|
-
|
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
|
@@ -366,7 +366,7 @@ module Aws::AutoScaling
|
|
366
366
|
# @return [Array<String>]
|
367
367
|
#
|
368
368
|
# @!attribute [rw] health_check_type
|
369
|
-
# A comma-separated
|
369
|
+
# A comma-separated value string of one or more health check types.
|
370
370
|
# @return [String]
|
371
371
|
#
|
372
372
|
# @!attribute [rw] health_check_grace_period
|
@@ -1014,13 +1014,16 @@ module Aws::AutoScaling
|
|
1014
1014
|
# @return [Array<String>]
|
1015
1015
|
#
|
1016
1016
|
# @!attribute [rw] health_check_type
|
1017
|
-
# A comma-separated
|
1017
|
+
# A comma-separated value string of one or more health check types.
|
1018
1018
|
#
|
1019
1019
|
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
1020
1020
|
# default health check and cannot be disabled. For more information,
|
1021
1021
|
# see [Health checks for Auto Scaling instances][1] in the *Amazon EC2
|
1022
1022
|
# Auto Scaling User Guide*.
|
1023
1023
|
#
|
1024
|
+
# Only specify `EC2` if you must clear a value that was previously
|
1025
|
+
# set.
|
1026
|
+
#
|
1024
1027
|
#
|
1025
1028
|
#
|
1026
1029
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
@@ -2480,8 +2483,8 @@ module Aws::AutoScaling
|
|
2480
2483
|
# @return [String]
|
2481
2484
|
#
|
2482
2485
|
# @!attribute [rw] traffic_sources
|
2483
|
-
# The unique identifiers of one or more traffic sources
|
2484
|
-
#
|
2486
|
+
# The unique identifiers of one or more traffic sources. You can
|
2487
|
+
# specify up to 10 traffic sources.
|
2485
2488
|
# @return [Array<Types::TrafficSourceIdentifier>]
|
2486
2489
|
#
|
2487
2490
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSourcesType AWS API Documentation
|
@@ -7511,13 +7514,16 @@ module Aws::AutoScaling
|
|
7511
7514
|
# @return [Array<String>]
|
7512
7515
|
#
|
7513
7516
|
# @!attribute [rw] health_check_type
|
7514
|
-
# A comma-separated
|
7517
|
+
# A comma-separated value string of one or more health check types.
|
7515
7518
|
#
|
7516
7519
|
# The valid values are `EC2`, `ELB`, and `VPC_LATTICE`. `EC2` is the
|
7517
7520
|
# default health check and cannot be disabled. For more information,
|
7518
7521
|
# see [Health checks for Auto Scaling instances][1] in the *Amazon EC2
|
7519
7522
|
# Auto Scaling User Guide*.
|
7520
7523
|
#
|
7524
|
+
# Only specify `EC2` if you must clear a value that was previously
|
7525
|
+
# set.
|
7526
|
+
#
|
7521
7527
|
#
|
7522
7528
|
#
|
7523
7529
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
32
|
+
version: 3.174.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|