aws-sdk-autoscaling 1.79.0 → 1.80.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +58 -39
- data/lib/aws-sdk-autoscaling/client.rb +251 -219
- data/lib/aws-sdk-autoscaling/instance.rb +1 -1
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +20 -14
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +26 -30
- data/lib/aws-sdk-autoscaling/resource.rb +119 -118
- data/lib/aws-sdk-autoscaling/scheduled_action.rb +1 -1
- data/lib/aws-sdk-autoscaling/types.rb +316 -265
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a90f86e7d7ff96c43ec9a64b9b24ade4ce7f9e84ae23970dd93d10b7c05b36a
|
4
|
+
data.tar.gz: 7f7df9f6d208489a16eede23641360d7cf15e391f2168e009dfd07fe43818a51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2789123a1df9e9a5c33e43f1ba8c3f25529665b05ab0f8391dd05cac314a13aefaac825eb65b57166c37c4ce9a993d3e5b99b5c1cd7864f92a7217f55d07939a
|
7
|
+
data.tar.gz: c8da8ad0f8f0ef50c4bc95827e4efbb1aed22ecea802fa5dadc78211fba004c375c9c05b73e83ea18b27c1bf30555ac2ac95ffc7a7ad5601fc5f0bced19c462a
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.80.0
|
@@ -453,8 +453,8 @@ module Aws::AutoScaling
|
|
453
453
|
# @option options [Boolean] :force_delete
|
454
454
|
# Specifies that the group is to be deleted along with all instances
|
455
455
|
# associated with the group, without waiting for all instances to be
|
456
|
-
# terminated. This
|
457
|
-
#
|
456
|
+
# terminated. This action also deletes any outstanding lifecycle actions
|
457
|
+
# associated with the group.
|
458
458
|
# @return [EmptyStructure]
|
459
459
|
def delete(options = {})
|
460
460
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -496,7 +496,9 @@ module Aws::AutoScaling
|
|
496
496
|
# })
|
497
497
|
# @param [Hash] options ({})
|
498
498
|
# @option options [Array<String>] :metrics
|
499
|
-
#
|
499
|
+
# Identifies the metrics to disable.
|
500
|
+
#
|
501
|
+
# You can specify one or more of the following metrics:
|
500
502
|
#
|
501
503
|
# * `GroupMinSize`
|
502
504
|
#
|
@@ -538,7 +540,14 @@ module Aws::AutoScaling
|
|
538
540
|
#
|
539
541
|
# * `GroupAndWarmPoolTotalCapacity`
|
540
542
|
#
|
541
|
-
# If you omit this
|
543
|
+
# If you omit this property, all metrics are disabled.
|
544
|
+
#
|
545
|
+
# For more information, see [Auto Scaling group metrics][1] in the
|
546
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
547
|
+
#
|
548
|
+
#
|
549
|
+
#
|
550
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html#as-group-metrics
|
542
551
|
# @return [EmptyStructure]
|
543
552
|
def disable_metrics_collection(options = {})
|
544
553
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -554,8 +563,9 @@ module Aws::AutoScaling
|
|
554
563
|
# })
|
555
564
|
# @param [Hash] options ({})
|
556
565
|
# @option options [Array<String>] :metrics
|
557
|
-
#
|
558
|
-
#
|
566
|
+
# Identifies the metrics to enable.
|
567
|
+
#
|
568
|
+
# You can specify one or more of the following metrics:
|
559
569
|
#
|
560
570
|
# * `GroupMinSize`
|
561
571
|
#
|
@@ -573,9 +583,6 @@ module Aws::AutoScaling
|
|
573
583
|
#
|
574
584
|
# * `GroupTotalInstances`
|
575
585
|
#
|
576
|
-
# The instance weighting feature supports the following additional
|
577
|
-
# metrics:
|
578
|
-
#
|
579
586
|
# * `GroupInServiceCapacity`
|
580
587
|
#
|
581
588
|
# * `GroupPendingCapacity`
|
@@ -586,8 +593,6 @@ module Aws::AutoScaling
|
|
586
593
|
#
|
587
594
|
# * `GroupTotalCapacity`
|
588
595
|
#
|
589
|
-
# The warm pools feature supports the following additional metrics:
|
590
|
-
#
|
591
596
|
# * `WarmPoolDesiredCapacity`
|
592
597
|
#
|
593
598
|
# * `WarmPoolWarmedCapacity`
|
@@ -602,10 +607,18 @@ module Aws::AutoScaling
|
|
602
607
|
#
|
603
608
|
# * `GroupAndWarmPoolTotalCapacity`
|
604
609
|
#
|
605
|
-
# If you
|
610
|
+
# If you specify `Granularity` and don't specify any metrics, all
|
611
|
+
# metrics are enabled.
|
612
|
+
#
|
613
|
+
# For more information, see [Auto Scaling group metrics][1] in the
|
614
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
615
|
+
#
|
616
|
+
#
|
617
|
+
#
|
618
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html#as-group-metrics
|
606
619
|
# @option options [required, String] :granularity
|
607
|
-
# The
|
608
|
-
# valid value is `1Minute`.
|
620
|
+
# The frequency at which Amazon EC2 Auto Scaling sends aggregated data
|
621
|
+
# to CloudWatch. The only valid value is `1Minute`.
|
609
622
|
# @return [EmptyStructure]
|
610
623
|
def enable_metrics_collection(options = {})
|
611
624
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -865,7 +878,7 @@ module Aws::AutoScaling
|
|
865
878
|
# * `ALBRequestCountPerTarget`
|
866
879
|
#
|
867
880
|
# If you specify `ALBRequestCountPerTarget` for the metric, you must
|
868
|
-
# specify the `ResourceLabel`
|
881
|
+
# specify the `ResourceLabel` property with the
|
869
882
|
# `PredefinedMetricSpecification`.
|
870
883
|
#
|
871
884
|
# For more information, see [TargetTrackingConfiguration][1] in the
|
@@ -927,20 +940,18 @@ module Aws::AutoScaling
|
|
927
940
|
# @option options [required, String] :scheduled_action_name
|
928
941
|
# The name of this scaling action.
|
929
942
|
# @option options [Time,DateTime,Date,Integer,String] :time
|
930
|
-
# This
|
943
|
+
# This property is no longer used.
|
931
944
|
# @option options [Time,DateTime,Date,Integer,String] :start_time
|
932
945
|
# The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ
|
933
946
|
# format in UTC/GMT only and in quotes (for example,
|
934
|
-
# `"
|
947
|
+
# `"2021-06-01T00:00:00Z"`).
|
935
948
|
#
|
936
949
|
# If you specify `Recurrence` and `StartTime`, Amazon EC2 Auto Scaling
|
937
950
|
# performs the action at this time, and then performs the action based
|
938
951
|
# on the specified recurrence.
|
939
|
-
#
|
940
|
-
# If you try to schedule your action in the past, Amazon EC2 Auto
|
941
|
-
# Scaling returns an error message.
|
942
952
|
# @option options [Time,DateTime,Date,Integer,String] :end_time
|
943
|
-
# The date and time for the recurring schedule to end, in UTC.
|
953
|
+
# The date and time for the recurring schedule to end, in UTC. For
|
954
|
+
# example, `"2021-06-01T00:00:00Z"`.
|
944
955
|
# @option options [String] :recurrence
|
945
956
|
# The recurring schedule for this action. This format consists of five
|
946
957
|
# fields separated by white spaces: \[Minute\] \[Hour\]
|
@@ -965,6 +976,11 @@ module Aws::AutoScaling
|
|
965
976
|
# after the scheduled action runs and the capacity it attempts to
|
966
977
|
# maintain. It can scale beyond this capacity if you add more scaling
|
967
978
|
# conditions.
|
979
|
+
#
|
980
|
+
# <note markdown="1"> You must specify at least one of the following properties: `MaxSize`,
|
981
|
+
# `MinSize`, or `DesiredCapacity`.
|
982
|
+
#
|
983
|
+
# </note>
|
968
984
|
# @option options [String] :time_zone
|
969
985
|
# Specifies the time zone for a cron expression. If a time zone is not
|
970
986
|
# provided, UTC is used by default.
|
@@ -1014,7 +1030,7 @@ module Aws::AutoScaling
|
|
1014
1030
|
#
|
1015
1031
|
# * `ScheduledActions`
|
1016
1032
|
#
|
1017
|
-
# If you omit this
|
1033
|
+
# If you omit this property, all processes are specified.
|
1018
1034
|
# @return [EmptyStructure]
|
1019
1035
|
def resume_processes(options = {})
|
1020
1036
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -1073,7 +1089,7 @@ module Aws::AutoScaling
|
|
1073
1089
|
#
|
1074
1090
|
# * `ScheduledActions`
|
1075
1091
|
#
|
1076
|
-
# If you omit this
|
1092
|
+
# If you omit this property, all processes are specified.
|
1077
1093
|
# @return [EmptyStructure]
|
1078
1094
|
def suspend_processes(options = {})
|
1079
1095
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -1266,18 +1282,21 @@ module Aws::AutoScaling
|
|
1266
1282
|
# @option options [String] :vpc_zone_identifier
|
1267
1283
|
# A comma-separated list of subnet IDs for a virtual private cloud
|
1268
1284
|
# (VPC). If you specify `VPCZoneIdentifier` with `AvailabilityZones`,
|
1269
|
-
# the subnets that you specify
|
1270
|
-
# Availability Zones.
|
1285
|
+
# the subnets that you specify must reside in those Availability Zones.
|
1271
1286
|
# @option options [Array<String>] :termination_policies
|
1272
1287
|
# A policy or a list of policies that are used to select the instances
|
1273
1288
|
# to terminate. The policies are executed in the order that you list
|
1274
|
-
# them. For more information, see [
|
1275
|
-
#
|
1276
|
-
# Scaling User Guide*.
|
1289
|
+
# them. For more information, see [Work with Amazon EC2 Auto Scaling
|
1290
|
+
# termination policies][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1277
1291
|
#
|
1292
|
+
# Valid values: `Default` \| `AllocationStrategy` \|
|
1293
|
+
# `ClosestToNextInstanceHour` \| `NewestInstance` \| `OldestInstance` \|
|
1294
|
+
# `OldestLaunchConfiguration` \| `OldestLaunchTemplate` \|
|
1295
|
+
# `arn:aws:lambda:region:account-id:function:my-function:my-alias`
|
1278
1296
|
#
|
1279
1297
|
#
|
1280
|
-
#
|
1298
|
+
#
|
1299
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-termination-policies.html
|
1281
1300
|
# @option options [Boolean] :new_instances_protected_from_scale_in
|
1282
1301
|
# Indicates whether newly launched instances are protected from
|
1283
1302
|
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
@@ -1310,8 +1329,8 @@ module Aws::AutoScaling
|
|
1310
1329
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
1311
1330
|
# @option options [Boolean] :capacity_rebalance
|
1312
1331
|
# Enables or disables Capacity Rebalancing. For more information, see
|
1313
|
-
# [
|
1314
|
-
# Auto Scaling User Guide*.
|
1332
|
+
# [Use Capacity Rebalancing to handle Amazon EC2 Spot Interruptions][1]
|
1333
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
1315
1334
|
#
|
1316
1335
|
#
|
1317
1336
|
#
|
@@ -1377,7 +1396,7 @@ module Aws::AutoScaling
|
|
1377
1396
|
# @param [Hash] options ({})
|
1378
1397
|
# @option options [Array<String>] :activity_ids
|
1379
1398
|
# The activity IDs of the desired scaling activities. If you omit this
|
1380
|
-
#
|
1399
|
+
# property, all activities for the past six weeks are described. If
|
1381
1400
|
# unknown activities are requested, they are ignored with no error. If
|
1382
1401
|
# you specify an Auto Scaling group, the results are limited to that
|
1383
1402
|
# group.
|
@@ -1449,7 +1468,7 @@ module Aws::AutoScaling
|
|
1449
1468
|
# })
|
1450
1469
|
# @param [Hash] options ({})
|
1451
1470
|
# @option options [Array<String>] :lifecycle_hook_names
|
1452
|
-
# The names of one or more lifecycle hooks. If you omit this
|
1471
|
+
# The names of one or more lifecycle hooks. If you omit this property,
|
1453
1472
|
# all lifecycle hooks are described.
|
1454
1473
|
# @return [LifecycleHook::Collection]
|
1455
1474
|
def lifecycle_hooks(options = {})
|
@@ -1546,7 +1565,7 @@ module Aws::AutoScaling
|
|
1546
1565
|
# })
|
1547
1566
|
# @param [Hash] options ({})
|
1548
1567
|
# @option options [Array<String>] :policy_names
|
1549
|
-
# The names of one or more policies. If you omit this
|
1568
|
+
# The names of one or more policies. If you omit this property, all
|
1550
1569
|
# policies are described. If a group name is provided, the results are
|
1551
1570
|
# limited to that group. If you specify an unknown policy name, it is
|
1552
1571
|
# ignored with no error.
|
@@ -1584,17 +1603,17 @@ module Aws::AutoScaling
|
|
1584
1603
|
# })
|
1585
1604
|
# @param [Hash] options ({})
|
1586
1605
|
# @option options [Array<String>] :scheduled_action_names
|
1587
|
-
# The names of one or more scheduled actions. If you omit this
|
1588
|
-
#
|
1589
|
-
#
|
1606
|
+
# The names of one or more scheduled actions. If you omit this property,
|
1607
|
+
# all scheduled actions are described. If you specify an unknown
|
1608
|
+
# scheduled action, it is ignored with no error.
|
1590
1609
|
#
|
1591
1610
|
# Array Members: Maximum number of 50 actions.
|
1592
1611
|
# @option options [Time,DateTime,Date,Integer,String] :start_time
|
1593
1612
|
# The earliest scheduled start time to return. If scheduled action names
|
1594
|
-
# are provided, this
|
1613
|
+
# are provided, this property is ignored.
|
1595
1614
|
# @option options [Time,DateTime,Date,Integer,String] :end_time
|
1596
1615
|
# The latest scheduled start time to return. If scheduled action names
|
1597
|
-
# are provided, this
|
1616
|
+
# are provided, this property is ignored.
|
1598
1617
|
# @return [ScheduledAction::Collection]
|
1599
1618
|
def scheduled_actions(options = {})
|
1600
1619
|
batches = Enumerator.new do |y|
|