aws-sdk-autoscaling 1.48.0 → 1.49.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/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +46 -77
- data/lib/aws-sdk-autoscaling/client.rb +205 -273
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +26 -40
- data/lib/aws-sdk-autoscaling/resource.rb +111 -148
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +3 -3
- data/lib/aws-sdk-autoscaling/types.rb +269 -390
- 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: 948014cc4592f44b389e7dc3ee1005734c5c7fe19378360542587d3387c9379d
|
4
|
+
data.tar.gz: e6114ca5f91a0eb8922a877102880f89e5d60525aa15ac9d984e762ac851cf57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e6a565befddd9e5dfd3cdcae1be23c98ae35e0105d16501381f7f0bf1abc1b7a22f748c1147a6c3c6eedf68b0a6a911e4987c34ce2ab2969f1cfe8a17ce5ec6
|
7
|
+
data.tar.gz: 7a18aca09d9d44fdc4f14743aef3c088bf43b2cb0b341e7a9520f2ac0576070175436f53368617590b72274b80bf1c76cce52191416d600070cc436d6c0ba928
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -186,7 +186,7 @@ module Aws::AutoScaling
|
|
186
186
|
data[:max_instance_lifetime]
|
187
187
|
end
|
188
188
|
|
189
|
-
# Indicates whether
|
189
|
+
# Indicates whether Capacity Rebalancing is enabled.
|
190
190
|
# @return [Boolean]
|
191
191
|
def capacity_rebalance
|
192
192
|
data[:capacity_rebalance]
|
@@ -603,7 +603,7 @@ module Aws::AutoScaling
|
|
603
603
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
604
604
|
#
|
605
605
|
# Required if the policy type is `StepScaling` or `SimpleScaling`. For
|
606
|
-
# more information, see [Scaling
|
606
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
607
607
|
# Auto Scaling User Guide*.
|
608
608
|
#
|
609
609
|
#
|
@@ -622,7 +622,7 @@ module Aws::AutoScaling
|
|
622
622
|
# EC2 Auto Scaling scales out the group by 2 instances.
|
623
623
|
#
|
624
624
|
# Valid only if the policy type is `StepScaling` or `SimpleScaling`. For
|
625
|
-
# more information, see [Scaling
|
625
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
626
626
|
# Auto Scaling User Guide*.
|
627
627
|
#
|
628
628
|
# <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
|
@@ -648,7 +648,7 @@ module Aws::AutoScaling
|
|
648
648
|
# period defined for the Auto Scaling group.
|
649
649
|
#
|
650
650
|
# Valid only if the policy type is `SimpleScaling`. For more
|
651
|
-
# information, see [Scaling
|
651
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
652
652
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
653
653
|
#
|
654
654
|
#
|
@@ -702,8 +702,8 @@ module Aws::AutoScaling
|
|
702
702
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_TargetTrackingConfiguration.html
|
703
703
|
# @option options [Boolean] :enabled
|
704
704
|
# Indicates whether the scaling policy is enabled or disabled. The
|
705
|
-
# default is enabled. For more information, see [Disabling a
|
706
|
-
#
|
705
|
+
# default is enabled. For more information, see [Disabling a scaling
|
706
|
+
# policy for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
707
707
|
# User Guide*.
|
708
708
|
#
|
709
709
|
#
|
@@ -932,29 +932,16 @@ module Aws::AutoScaling
|
|
932
932
|
# The launch template and version to use to specify the updates. If you
|
933
933
|
# specify `LaunchTemplate` in your update request, you can't specify
|
934
934
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
935
|
-
#
|
936
|
-
# For more information, see [LaunchTemplateSpecification][1] in the
|
937
|
-
# *Amazon EC2 Auto Scaling API Reference*.
|
938
|
-
#
|
939
|
-
#
|
940
|
-
#
|
941
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
|
942
935
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
943
|
-
# An embedded object that specifies a mixed instances policy.
|
944
|
-
#
|
945
|
-
#
|
946
|
-
#
|
947
|
-
#
|
948
|
-
#
|
949
|
-
# For more information, see [MixedInstancesPolicy][1] in the *Amazon EC2
|
950
|
-
# Auto Scaling API Reference* and [Auto Scaling Groups with Multiple
|
951
|
-
# Instance Types and Purchase Options][2] in the *Amazon EC2 Auto
|
952
|
-
# Scaling User Guide*.
|
936
|
+
# An embedded object that specifies a mixed instances policy. When you
|
937
|
+
# make changes to an existing policy, all optional parameters are left
|
938
|
+
# unchanged if not specified. For more information, see [Auto Scaling
|
939
|
+
# Groups with Multiple Instance Types and Purchase Options][1] in the
|
940
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
953
941
|
#
|
954
942
|
#
|
955
943
|
#
|
956
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
957
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
944
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
958
945
|
# @option options [Integer] :min_size
|
959
946
|
# The minimum size of the Auto Scaling group.
|
960
947
|
# @option options [Integer] :max_size
|
@@ -971,17 +958,15 @@ module Aws::AutoScaling
|
|
971
958
|
# @option options [Integer] :desired_capacity
|
972
959
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
973
960
|
# after this operation completes and the capacity it attempts to
|
974
|
-
# maintain.
|
975
|
-
#
|
976
|
-
#
|
977
|
-
# group and less than or equal to the maximum size of the group.
|
961
|
+
# maintain. This number must be greater than or equal to the minimum
|
962
|
+
# size of the group and less than or equal to the maximum size of the
|
963
|
+
# group.
|
978
964
|
# @option options [Integer] :default_cooldown
|
979
965
|
# The amount of time, in seconds, after a scaling activity completes
|
980
966
|
# before another scaling activity can start. The default value is `300`.
|
981
|
-
#
|
982
967
|
# This setting applies when using simple scaling policies, but not when
|
983
968
|
# using other scaling policies or scheduled scaling. For more
|
984
|
-
# information, see [Scaling
|
969
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
985
970
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
986
971
|
#
|
987
972
|
#
|
@@ -997,50 +982,46 @@ module Aws::AutoScaling
|
|
997
982
|
# @option options [Integer] :health_check_grace_period
|
998
983
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
999
984
|
# before checking the health status of an EC2 instance that has come
|
1000
|
-
# into service. The default value is `0`.
|
1001
|
-
#
|
1002
|
-
#
|
1003
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
985
|
+
# into service. The default value is `0`. For more information, see
|
986
|
+
# [Health check grace period][1] in the *Amazon EC2 Auto Scaling User
|
987
|
+
# Guide*.
|
1004
988
|
#
|
1005
|
-
# Required if you are adding an `ELB` health check.
|
989
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
1006
990
|
#
|
1007
991
|
#
|
1008
992
|
#
|
1009
993
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
1010
994
|
# @option options [String] :placement_group
|
1011
|
-
# The name of
|
1012
|
-
# if any. A placement group is a logical grouping of
|
1013
|
-
# single Availability Zone. You cannot specify
|
1014
|
-
# Zones and a placement group. For more
|
1015
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
995
|
+
# The name of an existing placement group into which to launch your
|
996
|
+
# instances, if any. A placement group is a logical grouping of
|
997
|
+
# instances within a single Availability Zone. You cannot specify
|
998
|
+
# multiple Availability Zones and a placement group. For more
|
999
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
1000
|
+
# for Linux Instances*.
|
1016
1001
|
#
|
1017
1002
|
#
|
1018
1003
|
#
|
1019
1004
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
1020
1005
|
# @option options [String] :vpc_zone_identifier
|
1021
|
-
# A comma-separated list of subnet IDs for virtual private cloud
|
1022
|
-
#
|
1023
|
-
#
|
1024
|
-
# subnets that you specify for this parameter must reside in those
|
1006
|
+
# A comma-separated list of subnet IDs for a virtual private cloud
|
1007
|
+
# (VPC). If you specify `VPCZoneIdentifier` with `AvailabilityZones`,
|
1008
|
+
# the subnets that you specify for this parameter must reside in those
|
1025
1009
|
# Availability Zones.
|
1026
1010
|
# @option options [Array<String>] :termination_policies
|
1027
|
-
# A
|
1028
|
-
# to
|
1029
|
-
#
|
1030
|
-
#
|
1031
|
-
#
|
1032
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
1033
|
-
# Guide*.
|
1011
|
+
# A policy or a list of policies that are used to select the instances
|
1012
|
+
# to terminate. The policies are executed in the order that you list
|
1013
|
+
# them. For more information, see [Controlling which Auto Scaling
|
1014
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
1015
|
+
# Scaling User Guide*.
|
1034
1016
|
#
|
1035
1017
|
#
|
1036
1018
|
#
|
1037
1019
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html
|
1038
1020
|
# @option options [Boolean] :new_instances_protected_from_scale_in
|
1039
1021
|
# Indicates whether newly launched instances are protected from
|
1040
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
1041
|
-
#
|
1042
|
-
#
|
1043
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto Scaling
|
1022
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
1023
|
+
# information about preventing instances from terminating on scale in,
|
1024
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
1044
1025
|
# User Guide*.
|
1045
1026
|
#
|
1046
1027
|
#
|
@@ -1049,7 +1030,7 @@ module Aws::AutoScaling
|
|
1049
1030
|
# @option options [String] :service_linked_role_arn
|
1050
1031
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
1051
1032
|
# Auto Scaling group uses to call other AWS services on your behalf. For
|
1052
|
-
# more information, see [Service-
|
1033
|
+
# more information, see [Service-linked roles][1] in the *Amazon EC2
|
1053
1034
|
# Auto Scaling User Guide*.
|
1054
1035
|
#
|
1055
1036
|
#
|
@@ -1057,31 +1038,19 @@ module Aws::AutoScaling
|
|
1057
1038
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
|
1058
1039
|
# @option options [Integer] :max_instance_lifetime
|
1059
1040
|
# The maximum amount of time, in seconds, that an instance can be in
|
1060
|
-
# service. The default is null.
|
1061
|
-
#
|
1062
|
-
#
|
1063
|
-
#
|
1064
|
-
#
|
1065
|
-
#
|
1066
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
1067
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
1068
|
-
# Guide*.
|
1069
|
-
#
|
1070
|
-
# Valid Range: Minimum value of 0.
|
1041
|
+
# service. The default is null. If specified, the value must be either 0
|
1042
|
+
# or a number equal to or greater than 86,400 seconds (1 day). To clear
|
1043
|
+
# a previously set value, specify a new value of 0. For more
|
1044
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
1045
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1071
1046
|
#
|
1072
1047
|
#
|
1073
1048
|
#
|
1074
1049
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
1075
1050
|
# @option options [Boolean] :capacity_rebalance
|
1076
|
-
# Enables or disables
|
1077
|
-
#
|
1078
|
-
#
|
1079
|
-
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
1080
|
-
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
1081
|
-
# EC2 predicts that a Spot Instance is at an elevated risk of
|
1082
|
-
# interruption. After launching a new instance, it then terminates an
|
1083
|
-
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
1084
|
-
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1051
|
+
# Enables or disables Capacity Rebalancing. For more information, see
|
1052
|
+
# [Amazon EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2
|
1053
|
+
# Auto Scaling User Guide*.
|
1085
1054
|
#
|
1086
1055
|
#
|
1087
1056
|
#
|
@@ -341,8 +341,8 @@ module Aws::AutoScaling
|
|
341
341
|
# there are target groups attached to your Auto Scaling group, the
|
342
342
|
# instances are also registered with the target groups.
|
343
343
|
#
|
344
|
-
# For more information, see [Attach EC2
|
345
|
-
#
|
344
|
+
# For more information, see [Attach EC2 instances to your Auto Scaling
|
345
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
346
346
|
#
|
347
347
|
#
|
348
348
|
#
|
@@ -394,8 +394,8 @@ module Aws::AutoScaling
|
|
394
394
|
# With Application Load Balancers and Network Load Balancers, instances
|
395
395
|
# are registered as targets with a target group. With Classic Load
|
396
396
|
# Balancers, instances are registered with the load balancer. For more
|
397
|
-
# information, see [Attaching a
|
398
|
-
#
|
397
|
+
# information, see [Attaching a load balancer to your Auto Scaling
|
398
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
399
399
|
#
|
400
400
|
#
|
401
401
|
#
|
@@ -451,8 +451,8 @@ module Aws::AutoScaling
|
|
451
451
|
# DescribeLoadBalancers API. To detach the load balancer from the Auto
|
452
452
|
# Scaling group, call the DetachLoadBalancers API.
|
453
453
|
#
|
454
|
-
# For more information, see [Attaching a
|
455
|
-
# Scaling
|
454
|
+
# For more information, see [Attaching a load balancer to your Auto
|
455
|
+
# Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
456
456
|
#
|
457
457
|
#
|
458
458
|
#
|
@@ -654,7 +654,7 @@ module Aws::AutoScaling
|
|
654
654
|
# 5. **If you finish before the timeout period ends, complete the
|
655
655
|
# lifecycle action.**
|
656
656
|
#
|
657
|
-
# For more information, see [Amazon EC2 Auto Scaling
|
657
|
+
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
658
658
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
659
659
|
#
|
660
660
|
#
|
@@ -719,13 +719,13 @@ module Aws::AutoScaling
|
|
719
719
|
# If you exceed your maximum limit of Auto Scaling groups, the call
|
720
720
|
# fails. To query this limit, call the DescribeAccountLimits API. For
|
721
721
|
# information about updating this limit, see [Amazon EC2 Auto Scaling
|
722
|
-
#
|
722
|
+
# service quotas][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
723
723
|
#
|
724
724
|
# For introductory exercises for creating an Auto Scaling group, see
|
725
|
-
# [Getting
|
726
|
-
#
|
725
|
+
# [Getting started with Amazon EC2 Auto Scaling][2] and [Tutorial: Set
|
726
|
+
# up a scaled and load-balanced application][3] in the *Amazon EC2 Auto
|
727
727
|
# Scaling User Guide*. For more information, see [Auto Scaling
|
728
|
-
#
|
728
|
+
# groups][4] in the *Amazon EC2 Auto Scaling User Guide*.
|
729
729
|
#
|
730
730
|
# Every Auto Scaling group has three size parameters (`DesiredCapacity`,
|
731
731
|
# `MaxSize`, and `MinSize`). Usually, you set these sizes based on a
|
@@ -746,32 +746,31 @@ module Aws::AutoScaling
|
|
746
746
|
# Region per account.
|
747
747
|
#
|
748
748
|
# @option params [String] :launch_configuration_name
|
749
|
-
# The name of the launch configuration to use
|
750
|
-
# launched. To get the launch configuration name, use the
|
751
|
-
# DescribeLaunchConfigurations API operation. New launch configurations
|
752
|
-
# can be created with the CreateLaunchConfiguration API.
|
749
|
+
# The name of the launch configuration to use to launch instances.
|
753
750
|
#
|
754
|
-
# You must specify
|
755
|
-
# `
|
756
|
-
# `
|
751
|
+
# Conditional: You must specify either a launch template
|
752
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
753
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
757
754
|
#
|
758
755
|
# @option params [Types::LaunchTemplateSpecification] :launch_template
|
759
|
-
# Parameters used to specify the launch template and version to use
|
760
|
-
#
|
756
|
+
# Parameters used to specify the [launch template][1] and version to use
|
757
|
+
# to launch instances.
|
761
758
|
#
|
762
|
-
#
|
763
|
-
#
|
759
|
+
# Conditional: You must specify either a launch template
|
760
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
761
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
764
762
|
#
|
765
|
-
#
|
766
|
-
# group
|
763
|
+
# <note markdown="1"> The launch template that is specified must be configured for use with
|
764
|
+
# an Auto Scaling group. For more information, see [Creating a launch
|
765
|
+
# template for an Auto Scaling group][2] in the *Amazon EC2 Auto Scaling
|
766
|
+
# User Guide*.
|
767
767
|
#
|
768
|
-
#
|
769
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
770
|
-
# `MixedInstancesPolicy`.
|
768
|
+
# </note>
|
771
769
|
#
|
772
770
|
#
|
773
771
|
#
|
774
|
-
# [1]: https://docs.aws.amazon.com/
|
772
|
+
# [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html
|
773
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
775
774
|
#
|
776
775
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
777
776
|
# An embedded object that specifies a mixed instances policy. The
|
@@ -781,41 +780,33 @@ module Aws::AutoScaling
|
|
781
780
|
# The policy includes parameters that not only define the distribution
|
782
781
|
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
783
782
|
# for Spot Instances, and how the Auto Scaling group allocates instance
|
784
|
-
# types to fulfill On-Demand and Spot
|
785
|
-
# that specify the instance configuration information—the
|
786
|
-
# template and instance types.
|
787
|
-
#
|
788
|
-
#
|
789
|
-
#
|
790
|
-
# Instance Types and Purchase Options][2] in the *Amazon EC2 Auto
|
791
|
-
# Scaling User Guide*.
|
783
|
+
# types to fulfill On-Demand and Spot capacities, but also the
|
784
|
+
# parameters that specify the instance configuration information—the
|
785
|
+
# launch template and instance types. The policy can also include a
|
786
|
+
# weight for each instance type. For more information, see [Auto Scaling
|
787
|
+
# groups with multiple instance types and purchase options][1] in the
|
788
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
792
789
|
#
|
793
|
-
# You must specify
|
794
|
-
# `
|
795
|
-
# `
|
790
|
+
# Conditional: You must specify either a launch template
|
791
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
792
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
796
793
|
#
|
797
794
|
#
|
798
795
|
#
|
799
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
800
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
796
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
801
797
|
#
|
802
798
|
# @option params [String] :instance_id
|
803
|
-
# The ID of the instance used to
|
804
|
-
#
|
805
|
-
#
|
806
|
-
#
|
807
|
-
#
|
808
|
-
#
|
809
|
-
# launch configuration derives its attributes from the specified
|
810
|
-
# instance, except for the block device mapping.
|
811
|
-
#
|
812
|
-
# You must specify one of the following parameters in your request:
|
813
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
814
|
-
# `MixedInstancesPolicy`.
|
799
|
+
# The ID of the instance used to base the launch configuration on. If
|
800
|
+
# specified, Amazon EC2 Auto Scaling uses the configuration values from
|
801
|
+
# the specified instance to create a new launch configuration. To get
|
802
|
+
# the instance ID, use the Amazon EC2 [DescribeInstances][1] API
|
803
|
+
# operation. For more information, see [Creating an Auto Scaling group
|
804
|
+
# using an EC2 instance][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
815
805
|
#
|
816
806
|
#
|
817
807
|
#
|
818
808
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html
|
809
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html
|
819
810
|
#
|
820
811
|
# @option params [required, Integer] :min_size
|
821
812
|
# The minimum size of the group.
|
@@ -835,20 +826,18 @@ module Aws::AutoScaling
|
|
835
826
|
# @option params [Integer] :desired_capacity
|
836
827
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
837
828
|
# at the time of its creation and the capacity it attempts to maintain.
|
838
|
-
# It can scale beyond this capacity if you configure
|
839
|
-
#
|
840
|
-
#
|
841
|
-
#
|
842
|
-
#
|
843
|
-
# the group.
|
829
|
+
# It can scale beyond this capacity if you configure auto scaling. This
|
830
|
+
# number must be greater than or equal to the minimum size of the group
|
831
|
+
# and less than or equal to the maximum size of the group. If you do not
|
832
|
+
# specify a desired capacity, the default is the minimum size of the
|
833
|
+
# group.
|
844
834
|
#
|
845
835
|
# @option params [Integer] :default_cooldown
|
846
836
|
# The amount of time, in seconds, after a scaling activity completes
|
847
837
|
# before another scaling activity can start. The default value is `300`.
|
848
|
-
#
|
849
838
|
# This setting applies when using simple scaling policies, but not when
|
850
839
|
# using other scaling policies or scheduled scaling. For more
|
851
|
-
# information, see [Scaling
|
840
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
852
841
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
853
842
|
#
|
854
843
|
#
|
@@ -856,8 +845,9 @@ module Aws::AutoScaling
|
|
856
845
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html
|
857
846
|
#
|
858
847
|
# @option params [Array<String>] :availability_zones
|
859
|
-
#
|
860
|
-
# optional if you specify one or more
|
848
|
+
# A list of Availability Zones where instances in the Auto Scaling group
|
849
|
+
# can be created. This parameter is optional if you specify one or more
|
850
|
+
# subnets for `VPCZoneIdentifier`.
|
861
851
|
#
|
862
852
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
863
853
|
# parameter is required to launch instances into EC2-Classic.
|
@@ -865,23 +855,14 @@ module Aws::AutoScaling
|
|
865
855
|
# @option params [Array<String>] :load_balancer_names
|
866
856
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
867
857
|
# group. For Application Load Balancers and Network Load Balancers,
|
868
|
-
# specify
|
869
|
-
# instead.
|
870
|
-
#
|
871
|
-
# For more information, see [Using a Load Balancer with an Auto Scaling
|
872
|
-
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
873
|
-
#
|
874
|
-
#
|
875
|
-
#
|
876
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
858
|
+
# specify `TargetGroupARNs` instead.
|
877
859
|
#
|
878
860
|
# @option params [Array<String>] :target_group_arns
|
879
861
|
# The Amazon Resource Names (ARN) of the target groups to associate with
|
880
862
|
# the Auto Scaling group. Instances are registered as targets in a
|
881
|
-
# target group, and traffic is routed to the target group.
|
882
|
-
#
|
883
|
-
#
|
884
|
-
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
863
|
+
# target group, and traffic is routed to the target group. For more
|
864
|
+
# information, see [Elastic Load Balancing and Amazon EC2 Auto
|
865
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
885
866
|
#
|
886
867
|
#
|
887
868
|
#
|
@@ -889,13 +870,11 @@ module Aws::AutoScaling
|
|
889
870
|
#
|
890
871
|
# @option params [String] :health_check_type
|
891
872
|
# The service to use for the health checks. The valid values are `EC2`
|
892
|
-
# and `ELB`.
|
893
|
-
#
|
894
|
-
#
|
895
|
-
#
|
896
|
-
#
|
897
|
-
# For more information, see [Health Checks for Auto Scaling
|
898
|
-
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
873
|
+
# (default) and `ELB`. If you configure an Auto Scaling group to use
|
874
|
+
# load balancer (ELB) health checks, it considers the instance unhealthy
|
875
|
+
# if it fails either the EC2 status checks or the load balancer health
|
876
|
+
# checks. For more information, see [Health checks for Auto Scaling
|
877
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
899
878
|
#
|
900
879
|
#
|
901
880
|
#
|
@@ -905,47 +884,44 @@ module Aws::AutoScaling
|
|
905
884
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
906
885
|
# before checking the health status of an EC2 instance that has come
|
907
886
|
# into service. During this time, any health check failures for the
|
908
|
-
# instance are ignored. The default value is `0`.
|
909
|
-
#
|
910
|
-
#
|
911
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
887
|
+
# instance are ignored. The default value is `0`. For more information,
|
888
|
+
# see [Health check grace period][1] in the *Amazon EC2 Auto Scaling
|
889
|
+
# User Guide*.
|
912
890
|
#
|
913
|
-
# Required if you are adding an `ELB` health check.
|
891
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
914
892
|
#
|
915
893
|
#
|
916
894
|
#
|
917
895
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
918
896
|
#
|
919
897
|
# @option params [String] :placement_group
|
920
|
-
# The name of
|
921
|
-
# if any. A placement group is a logical grouping of
|
922
|
-
# single Availability Zone. You cannot specify
|
923
|
-
# Zones and a placement group. For more
|
924
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
898
|
+
# The name of an existing placement group into which to launch your
|
899
|
+
# instances, if any. A placement group is a logical grouping of
|
900
|
+
# instances within a single Availability Zone. You cannot specify
|
901
|
+
# multiple Availability Zones and a placement group. For more
|
902
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
903
|
+
# for Linux Instances*.
|
925
904
|
#
|
926
905
|
#
|
927
906
|
#
|
928
907
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
929
908
|
#
|
930
909
|
# @option params [String] :vpc_zone_identifier
|
931
|
-
# A comma-separated list of subnet IDs for
|
932
|
-
#
|
933
|
-
#
|
934
|
-
#
|
935
|
-
#
|
936
|
-
# Availability Zones.
|
910
|
+
# A comma-separated list of subnet IDs for a virtual private cloud (VPC)
|
911
|
+
# where instances in the Auto Scaling group can be created. If you
|
912
|
+
# specify `VPCZoneIdentifier` with `AvailabilityZones`, the subnets that
|
913
|
+
# you specify for this parameter must reside in those Availability
|
914
|
+
# Zones.
|
937
915
|
#
|
938
916
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
939
917
|
# parameter is required to launch instances into a VPC.
|
940
918
|
#
|
941
919
|
# @option params [Array<String>] :termination_policies
|
942
|
-
#
|
943
|
-
# terminate. These policies are executed in the order that
|
944
|
-
#
|
945
|
-
#
|
946
|
-
#
|
947
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
948
|
-
# Guide*.
|
920
|
+
# A policy or a list of policies that are used to select the instance to
|
921
|
+
# terminate. These policies are executed in the order that you list
|
922
|
+
# them. For more information, see [Controlling which Auto Scaling
|
923
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
924
|
+
# Scaling User Guide*.
|
949
925
|
#
|
950
926
|
#
|
951
927
|
#
|
@@ -953,10 +929,9 @@ module Aws::AutoScaling
|
|
953
929
|
#
|
954
930
|
# @option params [Boolean] :new_instances_protected_from_scale_in
|
955
931
|
# Indicates whether newly launched instances are protected from
|
956
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
957
|
-
#
|
958
|
-
#
|
959
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto Scaling
|
932
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
933
|
+
# information about preventing instances from terminating on scale in,
|
934
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
960
935
|
# User Guide*.
|
961
936
|
#
|
962
937
|
#
|
@@ -964,37 +939,32 @@ module Aws::AutoScaling
|
|
964
939
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
965
940
|
#
|
966
941
|
# @option params [Boolean] :capacity_rebalance
|
967
|
-
# Indicates whether
|
968
|
-
#
|
969
|
-
#
|
970
|
-
# You can enable capacity rebalancing for your Auto Scaling groups when
|
971
|
-
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
942
|
+
# Indicates whether Capacity Rebalancing is enabled. Otherwise, Capacity
|
943
|
+
# Rebalancing is disabled. When you turn on Capacity Rebalancing, Amazon
|
972
944
|
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
973
|
-
# EC2
|
945
|
+
# EC2 notifies that a Spot Instance is at an elevated risk of
|
974
946
|
# interruption. After launching a new instance, it then terminates an
|
975
947
|
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
976
|
-
#
|
948
|
+
# Capacity Rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
977
949
|
#
|
978
950
|
#
|
979
951
|
#
|
980
952
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
981
953
|
#
|
982
954
|
# @option params [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
|
983
|
-
# One or more lifecycle hooks
|
955
|
+
# One or more lifecycle hooks for the group, which specify actions to
|
956
|
+
# perform when Amazon EC2 Auto Scaling launches or terminates instances.
|
984
957
|
#
|
985
958
|
# @option params [Array<Types::Tag>] :tags
|
986
959
|
# One or more tags. You can tag your Auto Scaling group and propagate
|
987
|
-
# the tags to the Amazon EC2 instances it launches.
|
988
|
-
#
|
989
|
-
#
|
990
|
-
#
|
991
|
-
# the
|
992
|
-
#
|
993
|
-
#
|
994
|
-
# the Auto Scaling
|
995
|
-
#
|
996
|
-
# For more information, see [Tagging Auto Scaling Groups and
|
997
|
-
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
960
|
+
# the tags to the Amazon EC2 instances it launches. Tags are not
|
961
|
+
# propagated to Amazon EBS volumes. To add tags to Amazon EBS volumes,
|
962
|
+
# specify the tags in a launch template but use caution. If the launch
|
963
|
+
# template specifies an instance tag with a key that is also specified
|
964
|
+
# for the Auto Scaling group, Amazon EC2 Auto Scaling overrides the
|
965
|
+
# value of that instance tag with the value specified by the Auto
|
966
|
+
# Scaling group. For more information, see [Tagging Auto Scaling groups
|
967
|
+
# and instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
998
968
|
#
|
999
969
|
#
|
1000
970
|
#
|
@@ -1005,7 +975,7 @@ module Aws::AutoScaling
|
|
1005
975
|
# Auto Scaling group uses to call other AWS services on your behalf. By
|
1006
976
|
# default, Amazon EC2 Auto Scaling uses a service-linked role named
|
1007
977
|
# AWSServiceRoleForAutoScaling, which it creates if it does not exist.
|
1008
|
-
# For more information, see [Service-
|
978
|
+
# For more information, see [Service-linked roles][1] in the *Amazon EC2
|
1009
979
|
# Auto Scaling User Guide*.
|
1010
980
|
#
|
1011
981
|
#
|
@@ -1014,17 +984,10 @@ module Aws::AutoScaling
|
|
1014
984
|
#
|
1015
985
|
# @option params [Integer] :max_instance_lifetime
|
1016
986
|
# The maximum amount of time, in seconds, that an instance can be in
|
1017
|
-
# service. The default is null.
|
1018
|
-
#
|
1019
|
-
#
|
1020
|
-
#
|
1021
|
-
# previously set value, specify a new value of 0.
|
1022
|
-
#
|
1023
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
1024
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
1025
|
-
# Guide*.
|
1026
|
-
#
|
1027
|
-
# Valid Range: Minimum value of 0.
|
987
|
+
# service. The default is null. If specified, the value must be either 0
|
988
|
+
# or a number equal to or greater than 86,400 seconds (1 day). For more
|
989
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
990
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1028
991
|
#
|
1029
992
|
#
|
1030
993
|
#
|
@@ -1171,9 +1134,9 @@ module Aws::AutoScaling
|
|
1171
1134
|
# If you exceed your maximum limit of launch configurations, the call
|
1172
1135
|
# fails. To query this limit, call the DescribeAccountLimits API. For
|
1173
1136
|
# information about updating this limit, see [Amazon EC2 Auto Scaling
|
1174
|
-
#
|
1137
|
+
# service quotas][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1175
1138
|
#
|
1176
|
-
# For more information, see [Launch
|
1139
|
+
# For more information, see [Launch configurations][2] in the *Amazon
|
1177
1140
|
# EC2 Auto Scaling User Guide*.
|
1178
1141
|
#
|
1179
1142
|
#
|
@@ -1224,7 +1187,7 @@ module Aws::AutoScaling
|
|
1224
1187
|
# @option params [String] :classic_link_vpc_id
|
1225
1188
|
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
1226
1189
|
# to. For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
1227
|
-
# Guide for Linux Instances* and [Linking EC2-Classic
|
1190
|
+
# Guide for Linux Instances* and [Linking EC2-Classic instances to a
|
1228
1191
|
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
1229
1192
|
#
|
1230
1193
|
# This parameter can only be used if you are launching EC2-Classic
|
@@ -1239,7 +1202,7 @@ module Aws::AutoScaling
|
|
1239
1202
|
# The IDs of one or more security groups for the specified
|
1240
1203
|
# ClassicLink-enabled VPC. For more information, see [ClassicLink][1] in
|
1241
1204
|
# the *Amazon EC2 User Guide for Linux Instances* and [Linking
|
1242
|
-
# EC2-Classic
|
1205
|
+
# EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling
|
1243
1206
|
# User Guide*.
|
1244
1207
|
#
|
1245
1208
|
# If you specify the `ClassicLinkVPCId` parameter, you must specify this
|
@@ -1252,8 +1215,8 @@ module Aws::AutoScaling
|
|
1252
1215
|
#
|
1253
1216
|
# @option params [String] :user_data
|
1254
1217
|
# The Base64-encoded user data to make available to the launched EC2
|
1255
|
-
# instances. For more information, see [Instance
|
1256
|
-
#
|
1218
|
+
# instances. For more information, see [Instance metadata and user
|
1219
|
+
# data][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
1257
1220
|
#
|
1258
1221
|
#
|
1259
1222
|
#
|
@@ -1268,8 +1231,8 @@ module Aws::AutoScaling
|
|
1268
1231
|
# override any other instance attributes, specify them as part of the
|
1269
1232
|
# same request.
|
1270
1233
|
#
|
1271
|
-
# For more information, see [
|
1272
|
-
#
|
1234
|
+
# For more information, see [Creating a launch configuration using an
|
1235
|
+
# EC2 instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1273
1236
|
#
|
1274
1237
|
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
1275
1238
|
# and `InstanceType`.
|
@@ -1326,8 +1289,8 @@ module Aws::AutoScaling
|
|
1326
1289
|
# The maximum hourly price to be paid for any Spot Instance launched to
|
1327
1290
|
# fulfill the request. Spot Instances are launched when the price you
|
1328
1291
|
# specify exceeds the current Spot price. For more information, see
|
1329
|
-
# [
|
1330
|
-
#
|
1292
|
+
# [Requesting Spot Instances][1] in the *Amazon EC2 Auto Scaling User
|
1293
|
+
# Guide*.
|
1331
1294
|
#
|
1332
1295
|
# <note markdown="1"> When you change your maximum price by creating a new launch
|
1333
1296
|
# configuration, running instances will continue to run as long as the
|
@@ -1345,8 +1308,8 @@ module Aws::AutoScaling
|
|
1345
1308
|
# associated with the IAM role for the instance. The instance profile
|
1346
1309
|
# contains the IAM role.
|
1347
1310
|
#
|
1348
|
-
# For more information, see [IAM
|
1349
|
-
# Amazon EC2
|
1311
|
+
# For more information, see [IAM role for applications that run on
|
1312
|
+
# Amazon EC2 instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1350
1313
|
#
|
1351
1314
|
#
|
1352
1315
|
#
|
@@ -1373,7 +1336,7 @@ module Aws::AutoScaling
|
|
1373
1336
|
# (VPC), specifies whether to assign a public IP address to the group's
|
1374
1337
|
# instances. If you specify `true`, each instance in the Auto Scaling
|
1375
1338
|
# group receives a unique public IP address. For more information, see
|
1376
|
-
# [Launching Auto Scaling
|
1339
|
+
# [Launching Auto Scaling instances in a VPC][1] in the *Amazon EC2 Auto
|
1377
1340
|
# Scaling User Guide*.
|
1378
1341
|
#
|
1379
1342
|
# If you specify this parameter, you must specify at least one subnet
|
@@ -1404,14 +1367,14 @@ module Aws::AutoScaling
|
|
1404
1367
|
# If you specify `PlacementTenancy`, you must specify at least one
|
1405
1368
|
# subnet for `VPCZoneIdentifier` when you create your group.
|
1406
1369
|
#
|
1407
|
-
# For more information, see [
|
1408
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
1370
|
+
# For more information, see [Configuring instance tenancy with Amazon
|
1371
|
+
# EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1409
1372
|
#
|
1410
1373
|
# Valid Values: `default` \| `dedicated`
|
1411
1374
|
#
|
1412
1375
|
#
|
1413
1376
|
#
|
1414
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1377
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
|
1415
1378
|
#
|
1416
1379
|
# @option params [Types::InstanceMetadataOptions] :metadata_options
|
1417
1380
|
# The metadata options for the instances. For more information, see
|
@@ -1498,8 +1461,8 @@ module Aws::AutoScaling
|
|
1498
1461
|
# overwrites the previous tag definition, and you do not get an error
|
1499
1462
|
# message.
|
1500
1463
|
#
|
1501
|
-
# For more information, see [Tagging Auto Scaling
|
1502
|
-
#
|
1464
|
+
# For more information, see [Tagging Auto Scaling groups and
|
1465
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1503
1466
|
#
|
1504
1467
|
#
|
1505
1468
|
#
|
@@ -1738,7 +1701,7 @@ module Aws::AutoScaling
|
|
1738
1701
|
# deletes the underlying alarm action, but does not delete the alarm,
|
1739
1702
|
# even if it no longer has an associated action.
|
1740
1703
|
#
|
1741
|
-
# For more information, see [Deleting a
|
1704
|
+
# For more information, see [Deleting a scaling policy][1] in the
|
1742
1705
|
# *Amazon EC2 Auto Scaling User Guide*.
|
1743
1706
|
#
|
1744
1707
|
#
|
@@ -1865,7 +1828,7 @@ module Aws::AutoScaling
|
|
1865
1828
|
# AWS account.
|
1866
1829
|
#
|
1867
1830
|
# For information about requesting an increase, see [Amazon EC2 Auto
|
1868
|
-
# Scaling
|
1831
|
+
# Scaling service quotas][1] in the *Amazon EC2 Auto Scaling User
|
1869
1832
|
# Guide*.
|
1870
1833
|
#
|
1871
1834
|
#
|
@@ -1968,9 +1931,9 @@ module Aws::AutoScaling
|
|
1968
1931
|
# Describes one or more Auto Scaling groups.
|
1969
1932
|
#
|
1970
1933
|
# @option params [Array<String>] :auto_scaling_group_names
|
1971
|
-
# The names of the Auto Scaling groups.
|
1972
|
-
#
|
1973
|
-
#
|
1934
|
+
# The names of the Auto Scaling groups. By default, you can only specify
|
1935
|
+
# up to 50 names. You can optionally increase this limit using the
|
1936
|
+
# `MaxRecords` parameter.
|
1974
1937
|
#
|
1975
1938
|
# If you omit this parameter, all Auto Scaling groups are described.
|
1976
1939
|
#
|
@@ -3231,8 +3194,8 @@ module Aws::AutoScaling
|
|
3231
3194
|
# for a particular tag only if it matches all the filters. If there's
|
3232
3195
|
# no match, no special message is returned.
|
3233
3196
|
#
|
3234
|
-
# For more information, see [Tagging Auto Scaling
|
3235
|
-
#
|
3197
|
+
# For more information, see [Tagging Auto Scaling groups and
|
3198
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3236
3199
|
#
|
3237
3200
|
#
|
3238
3201
|
#
|
@@ -3328,8 +3291,8 @@ module Aws::AutoScaling
|
|
3328
3291
|
# Describes the termination policies supported by Amazon EC2 Auto
|
3329
3292
|
# Scaling.
|
3330
3293
|
#
|
3331
|
-
# For more information, see [Controlling
|
3332
|
-
#
|
3294
|
+
# For more information, see [Controlling which Auto Scaling instances
|
3295
|
+
# terminate during scale in][1] in the *Amazon EC2 Auto Scaling User
|
3333
3296
|
# Guide*.
|
3334
3297
|
#
|
3335
3298
|
#
|
@@ -3387,8 +3350,8 @@ module Aws::AutoScaling
|
|
3387
3350
|
# are target groups attached to the Auto Scaling group, the instances
|
3388
3351
|
# are deregistered from the target groups.
|
3389
3352
|
#
|
3390
|
-
# For more information, see [Detach EC2
|
3391
|
-
#
|
3353
|
+
# For more information, see [Detach EC2 instances from your Auto Scaling
|
3354
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3392
3355
|
#
|
3393
3356
|
#
|
3394
3357
|
#
|
@@ -3624,8 +3587,8 @@ module Aws::AutoScaling
|
|
3624
3587
|
end
|
3625
3588
|
|
3626
3589
|
# Enables group metrics for the specified Auto Scaling group. For more
|
3627
|
-
# information, see [Monitoring
|
3628
|
-
#
|
3590
|
+
# information, see [Monitoring CloudWatch metrics for your Auto Scaling
|
3591
|
+
# groups and instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3629
3592
|
#
|
3630
3593
|
#
|
3631
3594
|
#
|
@@ -3713,8 +3676,8 @@ module Aws::AutoScaling
|
|
3713
3676
|
# Scaling group, the Auto Scaling group launches new instances to
|
3714
3677
|
# replace the instances on standby.
|
3715
3678
|
#
|
3716
|
-
# For more information, see [Temporarily
|
3717
|
-
# Auto Scaling
|
3679
|
+
# For more information, see [Temporarily removing instances from your
|
3680
|
+
# Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3718
3681
|
#
|
3719
3682
|
#
|
3720
3683
|
#
|
@@ -3808,7 +3771,7 @@ module Aws::AutoScaling
|
|
3808
3771
|
# period to complete before executing the policy.
|
3809
3772
|
#
|
3810
3773
|
# Valid only if the policy type is `SimpleScaling`. For more
|
3811
|
-
# information, see [Scaling
|
3774
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
3812
3775
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
3813
3776
|
#
|
3814
3777
|
#
|
@@ -3872,8 +3835,8 @@ module Aws::AutoScaling
|
|
3872
3835
|
# After you put the instances back in service, the desired capacity is
|
3873
3836
|
# incremented.
|
3874
3837
|
#
|
3875
|
-
# For more information, see [Temporarily
|
3876
|
-
# Auto Scaling
|
3838
|
+
# For more information, see [Temporarily removing instances from your
|
3839
|
+
# Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3877
3840
|
#
|
3878
3841
|
#
|
3879
3842
|
#
|
@@ -3976,7 +3939,7 @@ module Aws::AutoScaling
|
|
3976
3939
|
# 5. If you finish before the timeout period ends, complete the
|
3977
3940
|
# lifecycle action using the CompleteLifecycleAction API call.
|
3978
3941
|
#
|
3979
|
-
# For more information, see [Amazon EC2 Auto Scaling
|
3942
|
+
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
3980
3943
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
3981
3944
|
#
|
3982
3945
|
# If you exceed your maximum limit of lifecycle hooks, which by default
|
@@ -4096,8 +4059,8 @@ module Aws::AutoScaling
|
|
4096
4059
|
#
|
4097
4060
|
# This configuration overwrites any existing configuration.
|
4098
4061
|
#
|
4099
|
-
# For more information, see [Getting Amazon SNS
|
4100
|
-
# Auto Scaling
|
4062
|
+
# For more information, see [Getting Amazon SNS notifications when your
|
4063
|
+
# Auto Scaling group scales][1] in the *Amazon EC2 Auto Scaling User
|
4101
4064
|
# Guide*.
|
4102
4065
|
#
|
4103
4066
|
# If you exceed your maximum limit of SNS topics, which is 10 per Auto
|
@@ -4154,8 +4117,8 @@ module Aws::AutoScaling
|
|
4154
4117
|
# Creates or updates a scaling policy for an Auto Scaling group.
|
4155
4118
|
#
|
4156
4119
|
# For more information about using scaling policies to scale your Auto
|
4157
|
-
# Scaling group, see [Target
|
4158
|
-
#
|
4120
|
+
# Scaling group, see [Target tracking scaling policies][1] and [Step and
|
4121
|
+
# simple scaling policies][2] in the *Amazon EC2 Auto Scaling User
|
4159
4122
|
# Guide*.
|
4160
4123
|
#
|
4161
4124
|
#
|
@@ -4184,7 +4147,7 @@ module Aws::AutoScaling
|
|
4184
4147
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4185
4148
|
#
|
4186
4149
|
# Required if the policy type is `StepScaling` or `SimpleScaling`. For
|
4187
|
-
# more information, see [Scaling
|
4150
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
4188
4151
|
# Auto Scaling User Guide*.
|
4189
4152
|
#
|
4190
4153
|
#
|
@@ -4205,7 +4168,7 @@ module Aws::AutoScaling
|
|
4205
4168
|
# EC2 Auto Scaling scales out the group by 2 instances.
|
4206
4169
|
#
|
4207
4170
|
# Valid only if the policy type is `StepScaling` or `SimpleScaling`. For
|
4208
|
-
# more information, see [Scaling
|
4171
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
4209
4172
|
# Auto Scaling User Guide*.
|
4210
4173
|
#
|
4211
4174
|
# <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
|
@@ -4233,7 +4196,7 @@ module Aws::AutoScaling
|
|
4233
4196
|
# period defined for the Auto Scaling group.
|
4234
4197
|
#
|
4235
4198
|
# Valid only if the policy type is `SimpleScaling`. For more
|
4236
|
-
# information, see [Scaling
|
4199
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
4237
4200
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
4238
4201
|
#
|
4239
4202
|
#
|
@@ -4292,8 +4255,8 @@ module Aws::AutoScaling
|
|
4292
4255
|
#
|
4293
4256
|
# @option params [Boolean] :enabled
|
4294
4257
|
# Indicates whether the scaling policy is enabled or disabled. The
|
4295
|
-
# default is enabled. For more information, see [Disabling a
|
4296
|
-
#
|
4258
|
+
# default is enabled. For more information, see [Disabling a scaling
|
4259
|
+
# policy for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
4297
4260
|
# User Guide*.
|
4298
4261
|
#
|
4299
4262
|
#
|
@@ -4401,7 +4364,7 @@ module Aws::AutoScaling
|
|
4401
4364
|
# group. If you leave a parameter unspecified when updating a scheduled
|
4402
4365
|
# scaling action, the corresponding value remains unchanged.
|
4403
4366
|
#
|
4404
|
-
# For more information, see [Scheduled
|
4367
|
+
# For more information, see [Scheduled scaling][1] in the *Amazon EC2
|
4405
4368
|
# Auto Scaling User Guide*.
|
4406
4369
|
#
|
4407
4370
|
#
|
@@ -4524,7 +4487,7 @@ module Aws::AutoScaling
|
|
4524
4487
|
# 5. If you finish before the timeout period ends, complete the
|
4525
4488
|
# lifecycle action.
|
4526
4489
|
#
|
4527
|
-
# For more information, see [Auto Scaling
|
4490
|
+
# For more information, see [Auto Scaling lifecycle][1] in the *Amazon
|
4528
4491
|
# EC2 Auto Scaling User Guide*.
|
4529
4492
|
#
|
4530
4493
|
#
|
@@ -4577,11 +4540,11 @@ module Aws::AutoScaling
|
|
4577
4540
|
req.send_request(options)
|
4578
4541
|
end
|
4579
4542
|
|
4580
|
-
# Resumes the specified suspended
|
4543
|
+
# Resumes the specified suspended auto scaling processes, or all
|
4581
4544
|
# suspended process, for the specified Auto Scaling group.
|
4582
4545
|
#
|
4583
|
-
# For more information, see [Suspending and
|
4584
|
-
#
|
4546
|
+
# For more information, see [Suspending and resuming scaling
|
4547
|
+
# processes][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4585
4548
|
#
|
4586
4549
|
#
|
4587
4550
|
#
|
@@ -4650,7 +4613,7 @@ module Aws::AutoScaling
|
|
4650
4613
|
# Scaling group uses its termination policy to determine which instances
|
4651
4614
|
# to terminate.
|
4652
4615
|
#
|
4653
|
-
# For more information, see [Manual
|
4616
|
+
# For more information, see [Manual scaling][1] in the *Amazon EC2 Auto
|
4654
4617
|
# Scaling User Guide*.
|
4655
4618
|
#
|
4656
4619
|
#
|
@@ -4704,8 +4667,8 @@ module Aws::AutoScaling
|
|
4704
4667
|
|
4705
4668
|
# Sets the health status of the specified instance.
|
4706
4669
|
#
|
4707
|
-
# For more information, see [Health
|
4708
|
-
#
|
4670
|
+
# For more information, see [Health checks for Auto Scaling
|
4671
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4709
4672
|
#
|
4710
4673
|
#
|
4711
4674
|
#
|
@@ -4767,7 +4730,7 @@ module Aws::AutoScaling
|
|
4767
4730
|
#
|
4768
4731
|
# For more information about preventing instances that are part of an
|
4769
4732
|
# Auto Scaling group from terminating on scale in, see [Instance
|
4770
|
-
#
|
4733
|
+
# scale-in protection][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4771
4734
|
#
|
4772
4735
|
# If you exceed your maximum limit of instance IDs, which is 50 per Auto
|
4773
4736
|
# Scaling group, the call fails.
|
@@ -4777,7 +4740,7 @@ module Aws::AutoScaling
|
|
4777
4740
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
4778
4741
|
#
|
4779
4742
|
# @option params [required, Array<String>] :instance_ids
|
4780
|
-
# One or more instance IDs.
|
4743
|
+
# One or more instance IDs. You can specify up to 50 instances.
|
4781
4744
|
#
|
4782
4745
|
# @option params [required, String] :auto_scaling_group_name
|
4783
4746
|
# The name of the Auto Scaling group.
|
@@ -4923,12 +4886,12 @@ module Aws::AutoScaling
|
|
4923
4886
|
req.send_request(options)
|
4924
4887
|
end
|
4925
4888
|
|
4926
|
-
# Suspends the specified
|
4927
|
-
#
|
4889
|
+
# Suspends the specified auto scaling processes, or all processes, for
|
4890
|
+
# the specified Auto Scaling group.
|
4928
4891
|
#
|
4929
4892
|
# If you suspend either the `Launch` or `Terminate` process types, it
|
4930
4893
|
# can prevent other process types from functioning properly. For more
|
4931
|
-
# information, see [Suspending and
|
4894
|
+
# information, see [Suspending and resuming scaling processes][1] in the
|
4932
4895
|
# *Amazon EC2 Auto Scaling User Guide*.
|
4933
4896
|
#
|
4934
4897
|
# To resume processes that have been suspended, call the ResumeProcesses
|
@@ -5011,7 +4974,7 @@ module Aws::AutoScaling
|
|
5011
4974
|
# Scaling group can become unbalanced between Availability Zones. Amazon
|
5012
4975
|
# EC2 Auto Scaling tries to rebalance the group, and rebalancing might
|
5013
4976
|
# terminate instances in other zones. For more information, see
|
5014
|
-
# [Rebalancing
|
4977
|
+
# [Rebalancing activities][1] in the *Amazon EC2 Auto Scaling User
|
5015
4978
|
# Guide*.
|
5016
4979
|
#
|
5017
4980
|
#
|
@@ -5127,29 +5090,16 @@ module Aws::AutoScaling
|
|
5127
5090
|
# specify `LaunchTemplate` in your update request, you can't specify
|
5128
5091
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
5129
5092
|
#
|
5130
|
-
# For more information, see [LaunchTemplateSpecification][1] in the
|
5131
|
-
# *Amazon EC2 Auto Scaling API Reference*.
|
5132
|
-
#
|
5133
|
-
#
|
5134
|
-
#
|
5135
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
|
5136
|
-
#
|
5137
5093
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
5138
|
-
# An embedded object that specifies a mixed instances policy.
|
5139
|
-
#
|
5140
|
-
#
|
5141
|
-
#
|
5142
|
-
#
|
5143
|
-
#
|
5144
|
-
# For more information, see [MixedInstancesPolicy][1] in the *Amazon EC2
|
5145
|
-
# Auto Scaling API Reference* and [Auto Scaling Groups with Multiple
|
5146
|
-
# Instance Types and Purchase Options][2] in the *Amazon EC2 Auto
|
5147
|
-
# Scaling User Guide*.
|
5094
|
+
# An embedded object that specifies a mixed instances policy. When you
|
5095
|
+
# make changes to an existing policy, all optional parameters are left
|
5096
|
+
# unchanged if not specified. For more information, see [Auto Scaling
|
5097
|
+
# Groups with Multiple Instance Types and Purchase Options][1] in the
|
5098
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
5148
5099
|
#
|
5149
5100
|
#
|
5150
5101
|
#
|
5151
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
5152
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
5102
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
5153
5103
|
#
|
5154
5104
|
# @option params [Integer] :min_size
|
5155
5105
|
# The minimum size of the Auto Scaling group.
|
@@ -5169,18 +5119,16 @@ module Aws::AutoScaling
|
|
5169
5119
|
# @option params [Integer] :desired_capacity
|
5170
5120
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
5171
5121
|
# after this operation completes and the capacity it attempts to
|
5172
|
-
# maintain.
|
5173
|
-
#
|
5174
|
-
#
|
5175
|
-
# group and less than or equal to the maximum size of the group.
|
5122
|
+
# maintain. This number must be greater than or equal to the minimum
|
5123
|
+
# size of the group and less than or equal to the maximum size of the
|
5124
|
+
# group.
|
5176
5125
|
#
|
5177
5126
|
# @option params [Integer] :default_cooldown
|
5178
5127
|
# The amount of time, in seconds, after a scaling activity completes
|
5179
5128
|
# before another scaling activity can start. The default value is `300`.
|
5180
|
-
#
|
5181
5129
|
# This setting applies when using simple scaling policies, but not when
|
5182
5130
|
# using other scaling policies or scheduled scaling. For more
|
5183
|
-
# information, see [Scaling
|
5131
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
5184
5132
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
5185
5133
|
#
|
5186
5134
|
#
|
@@ -5199,43 +5147,40 @@ module Aws::AutoScaling
|
|
5199
5147
|
# @option params [Integer] :health_check_grace_period
|
5200
5148
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
5201
5149
|
# before checking the health status of an EC2 instance that has come
|
5202
|
-
# into service. The default value is `0`.
|
5203
|
-
#
|
5204
|
-
#
|
5205
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
5150
|
+
# into service. The default value is `0`. For more information, see
|
5151
|
+
# [Health check grace period][1] in the *Amazon EC2 Auto Scaling User
|
5152
|
+
# Guide*.
|
5206
5153
|
#
|
5207
|
-
# Required if you are adding an `ELB` health check.
|
5154
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
5208
5155
|
#
|
5209
5156
|
#
|
5210
5157
|
#
|
5211
5158
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
5212
5159
|
#
|
5213
5160
|
# @option params [String] :placement_group
|
5214
|
-
# The name of
|
5215
|
-
# if any. A placement group is a logical grouping of
|
5216
|
-
# single Availability Zone. You cannot specify
|
5217
|
-
# Zones and a placement group. For more
|
5218
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
5161
|
+
# The name of an existing placement group into which to launch your
|
5162
|
+
# instances, if any. A placement group is a logical grouping of
|
5163
|
+
# instances within a single Availability Zone. You cannot specify
|
5164
|
+
# multiple Availability Zones and a placement group. For more
|
5165
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
5166
|
+
# for Linux Instances*.
|
5219
5167
|
#
|
5220
5168
|
#
|
5221
5169
|
#
|
5222
5170
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
5223
5171
|
#
|
5224
5172
|
# @option params [String] :vpc_zone_identifier
|
5225
|
-
# A comma-separated list of subnet IDs for virtual private cloud
|
5226
|
-
#
|
5227
|
-
#
|
5228
|
-
# subnets that you specify for this parameter must reside in those
|
5173
|
+
# A comma-separated list of subnet IDs for a virtual private cloud
|
5174
|
+
# (VPC). If you specify `VPCZoneIdentifier` with `AvailabilityZones`,
|
5175
|
+
# the subnets that you specify for this parameter must reside in those
|
5229
5176
|
# Availability Zones.
|
5230
5177
|
#
|
5231
5178
|
# @option params [Array<String>] :termination_policies
|
5232
|
-
# A
|
5233
|
-
# to
|
5234
|
-
#
|
5235
|
-
#
|
5236
|
-
#
|
5237
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
5238
|
-
# Guide*.
|
5179
|
+
# A policy or a list of policies that are used to select the instances
|
5180
|
+
# to terminate. The policies are executed in the order that you list
|
5181
|
+
# them. For more information, see [Controlling which Auto Scaling
|
5182
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
5183
|
+
# Scaling User Guide*.
|
5239
5184
|
#
|
5240
5185
|
#
|
5241
5186
|
#
|
@@ -5243,10 +5188,9 @@ module Aws::AutoScaling
|
|
5243
5188
|
#
|
5244
5189
|
# @option params [Boolean] :new_instances_protected_from_scale_in
|
5245
5190
|
# Indicates whether newly launched instances are protected from
|
5246
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
5247
|
-
#
|
5248
|
-
#
|
5249
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto Scaling
|
5191
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
5192
|
+
# information about preventing instances from terminating on scale in,
|
5193
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
5250
5194
|
# User Guide*.
|
5251
5195
|
#
|
5252
5196
|
#
|
@@ -5256,7 +5200,7 @@ module Aws::AutoScaling
|
|
5256
5200
|
# @option params [String] :service_linked_role_arn
|
5257
5201
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
5258
5202
|
# Auto Scaling group uses to call other AWS services on your behalf. For
|
5259
|
-
# more information, see [Service-
|
5203
|
+
# more information, see [Service-linked roles][1] in the *Amazon EC2
|
5260
5204
|
# Auto Scaling User Guide*.
|
5261
5205
|
#
|
5262
5206
|
#
|
@@ -5265,32 +5209,20 @@ module Aws::AutoScaling
|
|
5265
5209
|
#
|
5266
5210
|
# @option params [Integer] :max_instance_lifetime
|
5267
5211
|
# The maximum amount of time, in seconds, that an instance can be in
|
5268
|
-
# service. The default is null.
|
5269
|
-
#
|
5270
|
-
#
|
5271
|
-
#
|
5272
|
-
#
|
5273
|
-
#
|
5274
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
5275
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
5276
|
-
# Guide*.
|
5277
|
-
#
|
5278
|
-
# Valid Range: Minimum value of 0.
|
5212
|
+
# service. The default is null. If specified, the value must be either 0
|
5213
|
+
# or a number equal to or greater than 86,400 seconds (1 day). To clear
|
5214
|
+
# a previously set value, specify a new value of 0. For more
|
5215
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
5216
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
5279
5217
|
#
|
5280
5218
|
#
|
5281
5219
|
#
|
5282
5220
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
5283
5221
|
#
|
5284
5222
|
# @option params [Boolean] :capacity_rebalance
|
5285
|
-
# Enables or disables
|
5286
|
-
#
|
5287
|
-
#
|
5288
|
-
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
5289
|
-
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
5290
|
-
# EC2 predicts that a Spot Instance is at an elevated risk of
|
5291
|
-
# interruption. After launching a new instance, it then terminates an
|
5292
|
-
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
5293
|
-
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
5223
|
+
# Enables or disables Capacity Rebalancing. For more information, see
|
5224
|
+
# [Amazon EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2
|
5225
|
+
# Auto Scaling User Guide*.
|
5294
5226
|
#
|
5295
5227
|
#
|
5296
5228
|
#
|
@@ -5398,7 +5330,7 @@ module Aws::AutoScaling
|
|
5398
5330
|
params: params,
|
5399
5331
|
config: config)
|
5400
5332
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5401
|
-
context[:gem_version] = '1.
|
5333
|
+
context[:gem_version] = '1.49.0'
|
5402
5334
|
Seahorse::Client::Request.new(handlers, context)
|
5403
5335
|
end
|
5404
5336
|
|