aws-sdk-autoscaling 1.45.0 → 1.50.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +2 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +60 -65
- data/lib/aws-sdk-autoscaling/client.rb +245 -259
- data/lib/aws-sdk-autoscaling/client_api.rb +5 -0
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +30 -44
- data/lib/aws-sdk-autoscaling/resource.rb +130 -145
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +3 -3
- data/lib/aws-sdk-autoscaling/types.rb +367 -401
- 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: 7f5cd630fa1733a3686b3a32353aa0c1049969555e2ced4d437049162b19b045
|
4
|
+
data.tar.gz: 47f35b87f1b91ba69dc7b577a2be602e0788c039ec0520997b9ccb19ae85d915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de4a71226e3bf5bbbb2161d0d903de16cabc63a9573f8a151649acd5ffc816bc4220ab3eb13eaa9f15189a56c6af2d85605c913ee00cf2f05c45211ce843184f
|
7
|
+
data.tar.gz: 59bf612f1affd9d86e3476b70861d5c72a6587af3cb1271909bccd1c0822e7c249520b21641d0b35c8dbeca6165224916e161fe0d0e27151204553d14df1208f
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -58,6 +59,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
|
|
58
59
|
# @!group service
|
59
60
|
module Aws::AutoScaling
|
60
61
|
|
61
|
-
GEM_VERSION = '1.
|
62
|
+
GEM_VERSION = '1.50.0'
|
62
63
|
|
63
64
|
end
|
@@ -186,6 +186,12 @@ module Aws::AutoScaling
|
|
186
186
|
data[:max_instance_lifetime]
|
187
187
|
end
|
188
188
|
|
189
|
+
# Indicates whether Capacity Rebalancing is enabled.
|
190
|
+
# @return [Boolean]
|
191
|
+
def capacity_rebalance
|
192
|
+
data[:capacity_rebalance]
|
193
|
+
end
|
194
|
+
|
189
195
|
# @!endgroup
|
190
196
|
|
191
197
|
# @return [Client]
|
@@ -597,7 +603,7 @@ module Aws::AutoScaling
|
|
597
603
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
598
604
|
#
|
599
605
|
# Required if the policy type is `StepScaling` or `SimpleScaling`. For
|
600
|
-
# more information, see [Scaling
|
606
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
601
607
|
# Auto Scaling User Guide*.
|
602
608
|
#
|
603
609
|
#
|
@@ -616,7 +622,7 @@ module Aws::AutoScaling
|
|
616
622
|
# EC2 Auto Scaling scales out the group by 2 instances.
|
617
623
|
#
|
618
624
|
# Valid only if the policy type is `StepScaling` or `SimpleScaling`. For
|
619
|
-
# more information, see [Scaling
|
625
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
620
626
|
# Auto Scaling User Guide*.
|
621
627
|
#
|
622
628
|
# <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
|
@@ -642,7 +648,7 @@ module Aws::AutoScaling
|
|
642
648
|
# period defined for the Auto Scaling group.
|
643
649
|
#
|
644
650
|
# Valid only if the policy type is `SimpleScaling`. For more
|
645
|
-
# information, see [Scaling
|
651
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
646
652
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
647
653
|
#
|
648
654
|
#
|
@@ -696,8 +702,8 @@ module Aws::AutoScaling
|
|
696
702
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_TargetTrackingConfiguration.html
|
697
703
|
# @option options [Boolean] :enabled
|
698
704
|
# Indicates whether the scaling policy is enabled or disabled. The
|
699
|
-
# default is enabled. For more information, see [Disabling a
|
700
|
-
#
|
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
|
701
707
|
# User Guide*.
|
702
708
|
#
|
703
709
|
#
|
@@ -890,6 +896,11 @@ module Aws::AutoScaling
|
|
890
896
|
# {
|
891
897
|
# instance_type: "XmlStringMaxLen255",
|
892
898
|
# weighted_capacity: "XmlStringMaxLen32",
|
899
|
+
# launch_template_specification: {
|
900
|
+
# launch_template_id: "XmlStringMaxLen255",
|
901
|
+
# launch_template_name: "LaunchTemplateName",
|
902
|
+
# version: "XmlStringMaxLen255",
|
903
|
+
# },
|
893
904
|
# },
|
894
905
|
# ],
|
895
906
|
# },
|
@@ -915,6 +926,7 @@ module Aws::AutoScaling
|
|
915
926
|
# new_instances_protected_from_scale_in: false,
|
916
927
|
# service_linked_role_arn: "ResourceName",
|
917
928
|
# max_instance_lifetime: 1,
|
929
|
+
# capacity_rebalance: false,
|
918
930
|
# })
|
919
931
|
# @param [Hash] options ({})
|
920
932
|
# @option options [String] :launch_configuration_name
|
@@ -925,29 +937,16 @@ module Aws::AutoScaling
|
|
925
937
|
# The launch template and version to use to specify the updates. If you
|
926
938
|
# specify `LaunchTemplate` in your update request, you can't specify
|
927
939
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
928
|
-
#
|
929
|
-
# For more information, see [LaunchTemplateSpecification][1] in the
|
930
|
-
# *Amazon EC2 Auto Scaling API Reference*.
|
931
|
-
#
|
932
|
-
#
|
933
|
-
#
|
934
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
|
935
940
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
936
|
-
# An embedded object that specifies a mixed instances policy.
|
937
|
-
#
|
938
|
-
#
|
939
|
-
#
|
940
|
-
#
|
941
|
-
#
|
942
|
-
# For more information, see [MixedInstancesPolicy][1] in the *Amazon EC2
|
943
|
-
# Auto Scaling API Reference* and [Auto Scaling Groups with Multiple
|
944
|
-
# Instance Types and Purchase Options][2] in the *Amazon EC2 Auto
|
945
|
-
# Scaling User Guide*.
|
941
|
+
# An embedded object that specifies a mixed instances policy. When you
|
942
|
+
# make changes to an existing policy, all optional parameters are left
|
943
|
+
# unchanged if not specified. For more information, see [Auto Scaling
|
944
|
+
# groups with multiple instance types and purchase options][1] in the
|
945
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
946
946
|
#
|
947
947
|
#
|
948
948
|
#
|
949
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
950
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
949
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
951
950
|
# @option options [Integer] :min_size
|
952
951
|
# The minimum size of the Auto Scaling group.
|
953
952
|
# @option options [Integer] :max_size
|
@@ -964,17 +963,15 @@ module Aws::AutoScaling
|
|
964
963
|
# @option options [Integer] :desired_capacity
|
965
964
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
966
965
|
# after this operation completes and the capacity it attempts to
|
967
|
-
# maintain.
|
968
|
-
#
|
969
|
-
#
|
970
|
-
# group and less than or equal to the maximum size of the group.
|
966
|
+
# maintain. This number must be greater than or equal to the minimum
|
967
|
+
# size of the group and less than or equal to the maximum size of the
|
968
|
+
# group.
|
971
969
|
# @option options [Integer] :default_cooldown
|
972
970
|
# The amount of time, in seconds, after a scaling activity completes
|
973
971
|
# before another scaling activity can start. The default value is `300`.
|
974
|
-
#
|
975
972
|
# This setting applies when using simple scaling policies, but not when
|
976
973
|
# using other scaling policies or scheduled scaling. For more
|
977
|
-
# information, see [Scaling
|
974
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
978
975
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
979
976
|
#
|
980
977
|
#
|
@@ -990,50 +987,46 @@ module Aws::AutoScaling
|
|
990
987
|
# @option options [Integer] :health_check_grace_period
|
991
988
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
992
989
|
# before checking the health status of an EC2 instance that has come
|
993
|
-
# into service. The default value is `0`.
|
994
|
-
#
|
995
|
-
#
|
996
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
990
|
+
# into service. The default value is `0`. For more information, see
|
991
|
+
# [Health check grace period][1] in the *Amazon EC2 Auto Scaling User
|
992
|
+
# Guide*.
|
997
993
|
#
|
998
|
-
# Required if you are adding an `ELB` health check.
|
994
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
999
995
|
#
|
1000
996
|
#
|
1001
997
|
#
|
1002
998
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
1003
999
|
# @option options [String] :placement_group
|
1004
|
-
# The name of
|
1005
|
-
# if any. A placement group is a logical grouping of
|
1006
|
-
# single Availability Zone. You cannot specify
|
1007
|
-
# Zones and a placement group. For more
|
1008
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
1000
|
+
# The name of an existing placement group into which to launch your
|
1001
|
+
# instances, if any. A placement group is a logical grouping of
|
1002
|
+
# instances within a single Availability Zone. You cannot specify
|
1003
|
+
# multiple Availability Zones and a placement group. For more
|
1004
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
1005
|
+
# for Linux Instances*.
|
1009
1006
|
#
|
1010
1007
|
#
|
1011
1008
|
#
|
1012
1009
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
1013
1010
|
# @option options [String] :vpc_zone_identifier
|
1014
|
-
# A comma-separated list of subnet IDs for virtual private cloud
|
1015
|
-
#
|
1016
|
-
#
|
1017
|
-
# subnets that you specify for this parameter must reside in those
|
1011
|
+
# A comma-separated list of subnet IDs for a virtual private cloud
|
1012
|
+
# (VPC). If you specify `VPCZoneIdentifier` with `AvailabilityZones`,
|
1013
|
+
# the subnets that you specify for this parameter must reside in those
|
1018
1014
|
# Availability Zones.
|
1019
1015
|
# @option options [Array<String>] :termination_policies
|
1020
|
-
# A
|
1021
|
-
# to
|
1022
|
-
#
|
1023
|
-
#
|
1024
|
-
#
|
1025
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
1026
|
-
# Guide*.
|
1016
|
+
# A policy or a list of policies that are used to select the instances
|
1017
|
+
# to terminate. The policies are executed in the order that you list
|
1018
|
+
# them. For more information, see [Controlling which Auto Scaling
|
1019
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
1020
|
+
# Scaling User Guide*.
|
1027
1021
|
#
|
1028
1022
|
#
|
1029
1023
|
#
|
1030
1024
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html
|
1031
1025
|
# @option options [Boolean] :new_instances_protected_from_scale_in
|
1032
1026
|
# Indicates whether newly launched instances are protected from
|
1033
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
1034
|
-
#
|
1035
|
-
#
|
1036
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto Scaling
|
1027
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
1028
|
+
# information about preventing instances from terminating on scale in,
|
1029
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
1037
1030
|
# User Guide*.
|
1038
1031
|
#
|
1039
1032
|
#
|
@@ -1042,7 +1035,7 @@ module Aws::AutoScaling
|
|
1042
1035
|
# @option options [String] :service_linked_role_arn
|
1043
1036
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
1044
1037
|
# Auto Scaling group uses to call other AWS services on your behalf. For
|
1045
|
-
# more information, see [Service-
|
1038
|
+
# more information, see [Service-linked roles][1] in the *Amazon EC2
|
1046
1039
|
# Auto Scaling User Guide*.
|
1047
1040
|
#
|
1048
1041
|
#
|
@@ -1050,21 +1043,23 @@ module Aws::AutoScaling
|
|
1050
1043
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
|
1051
1044
|
# @option options [Integer] :max_instance_lifetime
|
1052
1045
|
# The maximum amount of time, in seconds, that an instance can be in
|
1053
|
-
# service. The default is null.
|
1046
|
+
# service. The default is null. If specified, the value must be either 0
|
1047
|
+
# or a number equal to or greater than 86,400 seconds (1 day). To clear
|
1048
|
+
# a previously set value, specify a new value of 0. For more
|
1049
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
1050
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1054
1051
|
#
|
1055
|
-
# This parameter is optional, but if you specify a value for it, you
|
1056
|
-
# must specify a value of at least 604,800 seconds (7 days). To clear a
|
1057
|
-
# previously set value, specify a new value of 0.
|
1058
1052
|
#
|
1059
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
1060
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
1061
|
-
# Guide*.
|
1062
1053
|
#
|
1063
|
-
#
|
1054
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
1055
|
+
# @option options [Boolean] :capacity_rebalance
|
1056
|
+
# Enables or disables Capacity Rebalancing. For more information, see
|
1057
|
+
# [Amazon EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2
|
1058
|
+
# Auto Scaling User Guide*.
|
1064
1059
|
#
|
1065
1060
|
#
|
1066
1061
|
#
|
1067
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1062
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
1068
1063
|
# @return [AutoScalingGroup]
|
1069
1064
|
def update(options = {})
|
1070
1065
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -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,34 @@ 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
|
-
# For more information, see [
|
789
|
-
#
|
790
|
-
#
|
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 and different launch templates for
|
787
|
+
# individual instance types. For more information, see [Auto Scaling
|
788
|
+
# groups with multiple instance types and purchase options][1] in the
|
789
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
792
790
|
#
|
793
|
-
# You must specify
|
794
|
-
# `
|
795
|
-
# `
|
791
|
+
# Conditional: You must specify either a launch template
|
792
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
793
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
796
794
|
#
|
797
795
|
#
|
798
796
|
#
|
799
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
800
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
797
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
801
798
|
#
|
802
799
|
# @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`.
|
800
|
+
# The ID of the instance used to base the launch configuration on. If
|
801
|
+
# specified, Amazon EC2 Auto Scaling uses the configuration values from
|
802
|
+
# the specified instance to create a new launch configuration. To get
|
803
|
+
# the instance ID, use the Amazon EC2 [DescribeInstances][1] API
|
804
|
+
# operation. For more information, see [Creating an Auto Scaling group
|
805
|
+
# using an EC2 instance][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
815
806
|
#
|
816
807
|
#
|
817
808
|
#
|
818
809
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html
|
810
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html
|
819
811
|
#
|
820
812
|
# @option params [required, Integer] :min_size
|
821
813
|
# The minimum size of the group.
|
@@ -835,20 +827,18 @@ module Aws::AutoScaling
|
|
835
827
|
# @option params [Integer] :desired_capacity
|
836
828
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
837
829
|
# 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.
|
830
|
+
# It can scale beyond this capacity if you configure auto scaling. This
|
831
|
+
# number must be greater than or equal to the minimum size of the group
|
832
|
+
# and less than or equal to the maximum size of the group. If you do not
|
833
|
+
# specify a desired capacity, the default is the minimum size of the
|
834
|
+
# group.
|
844
835
|
#
|
845
836
|
# @option params [Integer] :default_cooldown
|
846
837
|
# The amount of time, in seconds, after a scaling activity completes
|
847
838
|
# before another scaling activity can start. The default value is `300`.
|
848
|
-
#
|
849
839
|
# This setting applies when using simple scaling policies, but not when
|
850
840
|
# using other scaling policies or scheduled scaling. For more
|
851
|
-
# information, see [Scaling
|
841
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
852
842
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
853
843
|
#
|
854
844
|
#
|
@@ -856,8 +846,9 @@ module Aws::AutoScaling
|
|
856
846
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html
|
857
847
|
#
|
858
848
|
# @option params [Array<String>] :availability_zones
|
859
|
-
#
|
860
|
-
# optional if you specify one or more
|
849
|
+
# A list of Availability Zones where instances in the Auto Scaling group
|
850
|
+
# can be created. This parameter is optional if you specify one or more
|
851
|
+
# subnets for `VPCZoneIdentifier`.
|
861
852
|
#
|
862
853
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
863
854
|
# parameter is required to launch instances into EC2-Classic.
|
@@ -865,23 +856,14 @@ module Aws::AutoScaling
|
|
865
856
|
# @option params [Array<String>] :load_balancer_names
|
866
857
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
867
858
|
# 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
|
859
|
+
# specify `TargetGroupARNs` instead.
|
877
860
|
#
|
878
861
|
# @option params [Array<String>] :target_group_arns
|
879
862
|
# The Amazon Resource Names (ARN) of the target groups to associate with
|
880
863
|
# 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*.
|
864
|
+
# target group, and traffic is routed to the target group. For more
|
865
|
+
# information, see [Elastic Load Balancing and Amazon EC2 Auto
|
866
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
885
867
|
#
|
886
868
|
#
|
887
869
|
#
|
@@ -889,13 +871,11 @@ module Aws::AutoScaling
|
|
889
871
|
#
|
890
872
|
# @option params [String] :health_check_type
|
891
873
|
# 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*.
|
874
|
+
# (default) and `ELB`. If you configure an Auto Scaling group to use
|
875
|
+
# load balancer (ELB) health checks, it considers the instance unhealthy
|
876
|
+
# if it fails either the EC2 status checks or the load balancer health
|
877
|
+
# checks. For more information, see [Health checks for Auto Scaling
|
878
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
899
879
|
#
|
900
880
|
#
|
901
881
|
#
|
@@ -905,47 +885,44 @@ module Aws::AutoScaling
|
|
905
885
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
906
886
|
# before checking the health status of an EC2 instance that has come
|
907
887
|
# 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*.
|
888
|
+
# instance are ignored. The default value is `0`. For more information,
|
889
|
+
# see [Health check grace period][1] in the *Amazon EC2 Auto Scaling
|
890
|
+
# User Guide*.
|
912
891
|
#
|
913
|
-
# Required if you are adding an `ELB` health check.
|
892
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
914
893
|
#
|
915
894
|
#
|
916
895
|
#
|
917
896
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
918
897
|
#
|
919
898
|
# @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
|
899
|
+
# The name of an existing placement group into which to launch your
|
900
|
+
# instances, if any. A placement group is a logical grouping of
|
901
|
+
# instances within a single Availability Zone. You cannot specify
|
902
|
+
# multiple Availability Zones and a placement group. For more
|
903
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
904
|
+
# for Linux Instances*.
|
925
905
|
#
|
926
906
|
#
|
927
907
|
#
|
928
908
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
929
909
|
#
|
930
910
|
# @option params [String] :vpc_zone_identifier
|
931
|
-
# A comma-separated list of subnet IDs for
|
932
|
-
#
|
933
|
-
#
|
934
|
-
#
|
935
|
-
#
|
936
|
-
# Availability Zones.
|
911
|
+
# A comma-separated list of subnet IDs for a virtual private cloud (VPC)
|
912
|
+
# where instances in the Auto Scaling group can be created. If you
|
913
|
+
# specify `VPCZoneIdentifier` with `AvailabilityZones`, the subnets that
|
914
|
+
# you specify for this parameter must reside in those Availability
|
915
|
+
# Zones.
|
937
916
|
#
|
938
917
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
939
918
|
# parameter is required to launch instances into a VPC.
|
940
919
|
#
|
941
920
|
# @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*.
|
921
|
+
# A policy or a list of policies that are used to select the instance to
|
922
|
+
# terminate. These policies are executed in the order that you list
|
923
|
+
# them. For more information, see [Controlling which Auto Scaling
|
924
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
925
|
+
# Scaling User Guide*.
|
949
926
|
#
|
950
927
|
#
|
951
928
|
#
|
@@ -953,32 +930,42 @@ module Aws::AutoScaling
|
|
953
930
|
#
|
954
931
|
# @option params [Boolean] :new_instances_protected_from_scale_in
|
955
932
|
# 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
|
933
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
934
|
+
# information about preventing instances from terminating on scale in,
|
935
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
960
936
|
# User Guide*.
|
961
937
|
#
|
962
938
|
#
|
963
939
|
#
|
964
940
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
965
941
|
#
|
942
|
+
# @option params [Boolean] :capacity_rebalance
|
943
|
+
# Indicates whether Capacity Rebalancing is enabled. Otherwise, Capacity
|
944
|
+
# Rebalancing is disabled. When you turn on Capacity Rebalancing, Amazon
|
945
|
+
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
946
|
+
# EC2 notifies that a Spot Instance is at an elevated risk of
|
947
|
+
# interruption. After launching a new instance, it then terminates an
|
948
|
+
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
949
|
+
# Capacity Rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
950
|
+
#
|
951
|
+
#
|
952
|
+
#
|
953
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
954
|
+
#
|
966
955
|
# @option params [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
|
967
|
-
# One or more lifecycle hooks
|
956
|
+
# One or more lifecycle hooks for the group, which specify actions to
|
957
|
+
# perform when Amazon EC2 Auto Scaling launches or terminates instances.
|
968
958
|
#
|
969
959
|
# @option params [Array<Types::Tag>] :tags
|
970
960
|
# One or more tags. You can tag your Auto Scaling group and propagate
|
971
|
-
# the tags to the Amazon EC2 instances it launches.
|
972
|
-
#
|
973
|
-
#
|
974
|
-
#
|
975
|
-
# the
|
976
|
-
#
|
977
|
-
#
|
978
|
-
# the Auto Scaling
|
979
|
-
#
|
980
|
-
# For more information, see [Tagging Auto Scaling Groups and
|
981
|
-
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
961
|
+
# the tags to the Amazon EC2 instances it launches. Tags are not
|
962
|
+
# propagated to Amazon EBS volumes. To add tags to Amazon EBS volumes,
|
963
|
+
# specify the tags in a launch template but use caution. If the launch
|
964
|
+
# template specifies an instance tag with a key that is also specified
|
965
|
+
# for the Auto Scaling group, Amazon EC2 Auto Scaling overrides the
|
966
|
+
# value of that instance tag with the value specified by the Auto
|
967
|
+
# Scaling group. For more information, see [Tagging Auto Scaling groups
|
968
|
+
# and instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
982
969
|
#
|
983
970
|
#
|
984
971
|
#
|
@@ -989,7 +976,7 @@ module Aws::AutoScaling
|
|
989
976
|
# Auto Scaling group uses to call other AWS services on your behalf. By
|
990
977
|
# default, Amazon EC2 Auto Scaling uses a service-linked role named
|
991
978
|
# AWSServiceRoleForAutoScaling, which it creates if it does not exist.
|
992
|
-
# For more information, see [Service-
|
979
|
+
# For more information, see [Service-linked roles][1] in the *Amazon EC2
|
993
980
|
# Auto Scaling User Guide*.
|
994
981
|
#
|
995
982
|
#
|
@@ -998,17 +985,10 @@ module Aws::AutoScaling
|
|
998
985
|
#
|
999
986
|
# @option params [Integer] :max_instance_lifetime
|
1000
987
|
# The maximum amount of time, in seconds, that an instance can be in
|
1001
|
-
# service. The default is null.
|
1002
|
-
#
|
1003
|
-
#
|
1004
|
-
#
|
1005
|
-
# previously set value, specify a new value of 0.
|
1006
|
-
#
|
1007
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
1008
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
1009
|
-
# Guide*.
|
1010
|
-
#
|
1011
|
-
# Valid Range: Minimum value of 0.
|
988
|
+
# service. The default is null. If specified, the value must be either 0
|
989
|
+
# or a number equal to or greater than 86,400 seconds (1 day). For more
|
990
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
991
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1012
992
|
#
|
1013
993
|
#
|
1014
994
|
#
|
@@ -1090,6 +1070,11 @@ module Aws::AutoScaling
|
|
1090
1070
|
# {
|
1091
1071
|
# instance_type: "XmlStringMaxLen255",
|
1092
1072
|
# weighted_capacity: "XmlStringMaxLen32",
|
1073
|
+
# launch_template_specification: {
|
1074
|
+
# launch_template_id: "XmlStringMaxLen255",
|
1075
|
+
# launch_template_name: "LaunchTemplateName",
|
1076
|
+
# version: "XmlStringMaxLen255",
|
1077
|
+
# },
|
1093
1078
|
# },
|
1094
1079
|
# ],
|
1095
1080
|
# },
|
@@ -1116,6 +1101,7 @@ module Aws::AutoScaling
|
|
1116
1101
|
# vpc_zone_identifier: "XmlStringMaxLen2047",
|
1117
1102
|
# termination_policies: ["XmlStringMaxLen1600"],
|
1118
1103
|
# new_instances_protected_from_scale_in: false,
|
1104
|
+
# capacity_rebalance: false,
|
1119
1105
|
# lifecycle_hook_specification_list: [
|
1120
1106
|
# {
|
1121
1107
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
@@ -1154,9 +1140,9 @@ module Aws::AutoScaling
|
|
1154
1140
|
# If you exceed your maximum limit of launch configurations, the call
|
1155
1141
|
# fails. To query this limit, call the DescribeAccountLimits API. For
|
1156
1142
|
# information about updating this limit, see [Amazon EC2 Auto Scaling
|
1157
|
-
#
|
1143
|
+
# service quotas][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1158
1144
|
#
|
1159
|
-
# For more information, see [Launch
|
1145
|
+
# For more information, see [Launch configurations][2] in the *Amazon
|
1160
1146
|
# EC2 Auto Scaling User Guide*.
|
1161
1147
|
#
|
1162
1148
|
#
|
@@ -1207,7 +1193,7 @@ module Aws::AutoScaling
|
|
1207
1193
|
# @option params [String] :classic_link_vpc_id
|
1208
1194
|
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
1209
1195
|
# to. For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
1210
|
-
# Guide for Linux Instances* and [Linking EC2-Classic
|
1196
|
+
# Guide for Linux Instances* and [Linking EC2-Classic instances to a
|
1211
1197
|
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
1212
1198
|
#
|
1213
1199
|
# This parameter can only be used if you are launching EC2-Classic
|
@@ -1222,7 +1208,7 @@ module Aws::AutoScaling
|
|
1222
1208
|
# The IDs of one or more security groups for the specified
|
1223
1209
|
# ClassicLink-enabled VPC. For more information, see [ClassicLink][1] in
|
1224
1210
|
# the *Amazon EC2 User Guide for Linux Instances* and [Linking
|
1225
|
-
# EC2-Classic
|
1211
|
+
# EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling
|
1226
1212
|
# User Guide*.
|
1227
1213
|
#
|
1228
1214
|
# If you specify the `ClassicLinkVPCId` parameter, you must specify this
|
@@ -1235,8 +1221,8 @@ module Aws::AutoScaling
|
|
1235
1221
|
#
|
1236
1222
|
# @option params [String] :user_data
|
1237
1223
|
# The Base64-encoded user data to make available to the launched EC2
|
1238
|
-
# instances. For more information, see [Instance
|
1239
|
-
#
|
1224
|
+
# instances. For more information, see [Instance metadata and user
|
1225
|
+
# data][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
1240
1226
|
#
|
1241
1227
|
#
|
1242
1228
|
#
|
@@ -1251,8 +1237,8 @@ module Aws::AutoScaling
|
|
1251
1237
|
# override any other instance attributes, specify them as part of the
|
1252
1238
|
# same request.
|
1253
1239
|
#
|
1254
|
-
# For more information, see [
|
1255
|
-
#
|
1240
|
+
# For more information, see [Creating a launch configuration using an
|
1241
|
+
# EC2 instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1256
1242
|
#
|
1257
1243
|
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
1258
1244
|
# and `InstanceType`.
|
@@ -1303,14 +1289,14 @@ module Aws::AutoScaling
|
|
1303
1289
|
#
|
1304
1290
|
#
|
1305
1291
|
#
|
1306
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/
|
1292
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
|
1307
1293
|
#
|
1308
1294
|
# @option params [String] :spot_price
|
1309
1295
|
# The maximum hourly price to be paid for any Spot Instance launched to
|
1310
1296
|
# fulfill the request. Spot Instances are launched when the price you
|
1311
1297
|
# specify exceeds the current Spot price. For more information, see
|
1312
|
-
# [
|
1313
|
-
#
|
1298
|
+
# [Requesting Spot Instances][1] in the *Amazon EC2 Auto Scaling User
|
1299
|
+
# Guide*.
|
1314
1300
|
#
|
1315
1301
|
# <note markdown="1"> When you change your maximum price by creating a new launch
|
1316
1302
|
# configuration, running instances will continue to run as long as the
|
@@ -1328,8 +1314,8 @@ module Aws::AutoScaling
|
|
1328
1314
|
# associated with the IAM role for the instance. The instance profile
|
1329
1315
|
# contains the IAM role.
|
1330
1316
|
#
|
1331
|
-
# For more information, see [IAM
|
1332
|
-
# Amazon EC2
|
1317
|
+
# For more information, see [IAM role for applications that run on
|
1318
|
+
# Amazon EC2 instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1333
1319
|
#
|
1334
1320
|
#
|
1335
1321
|
#
|
@@ -1356,7 +1342,7 @@ module Aws::AutoScaling
|
|
1356
1342
|
# (VPC), specifies whether to assign a public IP address to the group's
|
1357
1343
|
# instances. If you specify `true`, each instance in the Auto Scaling
|
1358
1344
|
# group receives a unique public IP address. For more information, see
|
1359
|
-
# [Launching Auto Scaling
|
1345
|
+
# [Launching Auto Scaling instances in a VPC][1] in the *Amazon EC2 Auto
|
1360
1346
|
# Scaling User Guide*.
|
1361
1347
|
#
|
1362
1348
|
# If you specify this parameter, you must specify at least one subnet
|
@@ -1387,23 +1373,23 @@ module Aws::AutoScaling
|
|
1387
1373
|
# If you specify `PlacementTenancy`, you must specify at least one
|
1388
1374
|
# subnet for `VPCZoneIdentifier` when you create your group.
|
1389
1375
|
#
|
1390
|
-
# For more information, see [
|
1391
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
1376
|
+
# For more information, see [Configuring instance tenancy with Amazon
|
1377
|
+
# EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1392
1378
|
#
|
1393
1379
|
# Valid Values: `default` \| `dedicated`
|
1394
1380
|
#
|
1395
1381
|
#
|
1396
1382
|
#
|
1397
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1383
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
|
1398
1384
|
#
|
1399
1385
|
# @option params [Types::InstanceMetadataOptions] :metadata_options
|
1400
1386
|
# The metadata options for the instances. For more information, see
|
1401
|
-
# [Instance Metadata
|
1402
|
-
#
|
1387
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
|
1388
|
+
# Scaling User Guide*.
|
1403
1389
|
#
|
1404
1390
|
#
|
1405
1391
|
#
|
1406
|
-
# [1]: https://docs.aws.amazon.com/
|
1392
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
1407
1393
|
#
|
1408
1394
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1409
1395
|
#
|
@@ -1481,8 +1467,8 @@ module Aws::AutoScaling
|
|
1481
1467
|
# overwrites the previous tag definition, and you do not get an error
|
1482
1468
|
# message.
|
1483
1469
|
#
|
1484
|
-
# For more information, see [Tagging Auto Scaling
|
1485
|
-
#
|
1470
|
+
# For more information, see [Tagging Auto Scaling groups and
|
1471
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1486
1472
|
#
|
1487
1473
|
#
|
1488
1474
|
#
|
@@ -1721,7 +1707,7 @@ module Aws::AutoScaling
|
|
1721
1707
|
# deletes the underlying alarm action, but does not delete the alarm,
|
1722
1708
|
# even if it no longer has an associated action.
|
1723
1709
|
#
|
1724
|
-
# For more information, see [Deleting a
|
1710
|
+
# For more information, see [Deleting a scaling policy][1] in the
|
1725
1711
|
# *Amazon EC2 Auto Scaling User Guide*.
|
1726
1712
|
#
|
1727
1713
|
#
|
@@ -1848,7 +1834,7 @@ module Aws::AutoScaling
|
|
1848
1834
|
# AWS account.
|
1849
1835
|
#
|
1850
1836
|
# For information about requesting an increase, see [Amazon EC2 Auto
|
1851
|
-
# Scaling
|
1837
|
+
# Scaling service quotas][1] in the *Amazon EC2 Auto Scaling User
|
1852
1838
|
# Guide*.
|
1853
1839
|
#
|
1854
1840
|
#
|
@@ -1951,9 +1937,9 @@ module Aws::AutoScaling
|
|
1951
1937
|
# Describes one or more Auto Scaling groups.
|
1952
1938
|
#
|
1953
1939
|
# @option params [Array<String>] :auto_scaling_group_names
|
1954
|
-
# The names of the Auto Scaling groups.
|
1955
|
-
#
|
1956
|
-
#
|
1940
|
+
# The names of the Auto Scaling groups. By default, you can only specify
|
1941
|
+
# up to 50 names. You can optionally increase this limit using the
|
1942
|
+
# `MaxRecords` parameter.
|
1957
1943
|
#
|
1958
1944
|
# If you omit this parameter, all Auto Scaling groups are described.
|
1959
1945
|
#
|
@@ -2050,6 +2036,9 @@ module Aws::AutoScaling
|
|
2050
2036
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides #=> Array
|
2051
2037
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_type #=> String
|
2052
2038
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].weighted_capacity #=> String
|
2039
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_id #=> String
|
2040
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_name #=> String
|
2041
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.version #=> String
|
2053
2042
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
|
2054
2043
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
|
2055
2044
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
|
@@ -2101,6 +2090,7 @@ module Aws::AutoScaling
|
|
2101
2090
|
# resp.auto_scaling_groups[0].new_instances_protected_from_scale_in #=> Boolean
|
2102
2091
|
# resp.auto_scaling_groups[0].service_linked_role_arn #=> String
|
2103
2092
|
# resp.auto_scaling_groups[0].max_instance_lifetime #=> Integer
|
2093
|
+
# resp.auto_scaling_groups[0].capacity_rebalance #=> Boolean
|
2104
2094
|
# resp.next_token #=> String
|
2105
2095
|
#
|
2106
2096
|
#
|
@@ -3213,8 +3203,8 @@ module Aws::AutoScaling
|
|
3213
3203
|
# for a particular tag only if it matches all the filters. If there's
|
3214
3204
|
# no match, no special message is returned.
|
3215
3205
|
#
|
3216
|
-
# For more information, see [Tagging Auto Scaling
|
3217
|
-
#
|
3206
|
+
# For more information, see [Tagging Auto Scaling groups and
|
3207
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3218
3208
|
#
|
3219
3209
|
#
|
3220
3210
|
#
|
@@ -3310,8 +3300,8 @@ module Aws::AutoScaling
|
|
3310
3300
|
# Describes the termination policies supported by Amazon EC2 Auto
|
3311
3301
|
# Scaling.
|
3312
3302
|
#
|
3313
|
-
# For more information, see [Controlling
|
3314
|
-
#
|
3303
|
+
# For more information, see [Controlling which Auto Scaling instances
|
3304
|
+
# terminate during scale in][1] in the *Amazon EC2 Auto Scaling User
|
3315
3305
|
# Guide*.
|
3316
3306
|
#
|
3317
3307
|
#
|
@@ -3369,8 +3359,8 @@ module Aws::AutoScaling
|
|
3369
3359
|
# are target groups attached to the Auto Scaling group, the instances
|
3370
3360
|
# are deregistered from the target groups.
|
3371
3361
|
#
|
3372
|
-
# For more information, see [Detach EC2
|
3373
|
-
#
|
3362
|
+
# For more information, see [Detach EC2 instances from your Auto Scaling
|
3363
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3374
3364
|
#
|
3375
3365
|
#
|
3376
3366
|
#
|
@@ -3606,8 +3596,8 @@ module Aws::AutoScaling
|
|
3606
3596
|
end
|
3607
3597
|
|
3608
3598
|
# Enables group metrics for the specified Auto Scaling group. For more
|
3609
|
-
# information, see [Monitoring
|
3610
|
-
#
|
3599
|
+
# information, see [Monitoring CloudWatch metrics for your Auto Scaling
|
3600
|
+
# groups and instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3611
3601
|
#
|
3612
3602
|
#
|
3613
3603
|
#
|
@@ -3695,8 +3685,8 @@ module Aws::AutoScaling
|
|
3695
3685
|
# Scaling group, the Auto Scaling group launches new instances to
|
3696
3686
|
# replace the instances on standby.
|
3697
3687
|
#
|
3698
|
-
# For more information, see [Temporarily
|
3699
|
-
# Auto Scaling
|
3688
|
+
# For more information, see [Temporarily removing instances from your
|
3689
|
+
# Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3700
3690
|
#
|
3701
3691
|
#
|
3702
3692
|
#
|
@@ -3790,7 +3780,7 @@ module Aws::AutoScaling
|
|
3790
3780
|
# period to complete before executing the policy.
|
3791
3781
|
#
|
3792
3782
|
# Valid only if the policy type is `SimpleScaling`. For more
|
3793
|
-
# information, see [Scaling
|
3783
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
3794
3784
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
3795
3785
|
#
|
3796
3786
|
#
|
@@ -3854,8 +3844,8 @@ module Aws::AutoScaling
|
|
3854
3844
|
# After you put the instances back in service, the desired capacity is
|
3855
3845
|
# incremented.
|
3856
3846
|
#
|
3857
|
-
# For more information, see [Temporarily
|
3858
|
-
# Auto Scaling
|
3847
|
+
# For more information, see [Temporarily removing instances from your
|
3848
|
+
# Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3859
3849
|
#
|
3860
3850
|
#
|
3861
3851
|
#
|
@@ -3958,7 +3948,7 @@ module Aws::AutoScaling
|
|
3958
3948
|
# 5. If you finish before the timeout period ends, complete the
|
3959
3949
|
# lifecycle action using the CompleteLifecycleAction API call.
|
3960
3950
|
#
|
3961
|
-
# For more information, see [Amazon EC2 Auto Scaling
|
3951
|
+
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
3962
3952
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
3963
3953
|
#
|
3964
3954
|
# If you exceed your maximum limit of lifecycle hooks, which by default
|
@@ -4078,10 +4068,13 @@ module Aws::AutoScaling
|
|
4078
4068
|
#
|
4079
4069
|
# This configuration overwrites any existing configuration.
|
4080
4070
|
#
|
4081
|
-
# For more information, see [Getting Amazon SNS
|
4082
|
-
# Auto Scaling
|
4071
|
+
# For more information, see [Getting Amazon SNS notifications when your
|
4072
|
+
# Auto Scaling group scales][1] in the *Amazon EC2 Auto Scaling User
|
4083
4073
|
# Guide*.
|
4084
4074
|
#
|
4075
|
+
# If you exceed your maximum limit of SNS topics, which is 10 per Auto
|
4076
|
+
# Scaling group, the call fails.
|
4077
|
+
#
|
4085
4078
|
#
|
4086
4079
|
#
|
4087
4080
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html
|
@@ -4133,8 +4126,8 @@ module Aws::AutoScaling
|
|
4133
4126
|
# Creates or updates a scaling policy for an Auto Scaling group.
|
4134
4127
|
#
|
4135
4128
|
# For more information about using scaling policies to scale your Auto
|
4136
|
-
# Scaling group, see [Target
|
4137
|
-
#
|
4129
|
+
# Scaling group, see [Target tracking scaling policies][1] and [Step and
|
4130
|
+
# simple scaling policies][2] in the *Amazon EC2 Auto Scaling User
|
4138
4131
|
# Guide*.
|
4139
4132
|
#
|
4140
4133
|
#
|
@@ -4163,7 +4156,7 @@ module Aws::AutoScaling
|
|
4163
4156
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4164
4157
|
#
|
4165
4158
|
# Required if the policy type is `StepScaling` or `SimpleScaling`. For
|
4166
|
-
# more information, see [Scaling
|
4159
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
4167
4160
|
# Auto Scaling User Guide*.
|
4168
4161
|
#
|
4169
4162
|
#
|
@@ -4184,7 +4177,7 @@ module Aws::AutoScaling
|
|
4184
4177
|
# EC2 Auto Scaling scales out the group by 2 instances.
|
4185
4178
|
#
|
4186
4179
|
# Valid only if the policy type is `StepScaling` or `SimpleScaling`. For
|
4187
|
-
# more information, see [Scaling
|
4180
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
4188
4181
|
# Auto Scaling User Guide*.
|
4189
4182
|
#
|
4190
4183
|
# <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
|
@@ -4212,7 +4205,7 @@ module Aws::AutoScaling
|
|
4212
4205
|
# period defined for the Auto Scaling group.
|
4213
4206
|
#
|
4214
4207
|
# Valid only if the policy type is `SimpleScaling`. For more
|
4215
|
-
# information, see [Scaling
|
4208
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
4216
4209
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
4217
4210
|
#
|
4218
4211
|
#
|
@@ -4271,8 +4264,8 @@ module Aws::AutoScaling
|
|
4271
4264
|
#
|
4272
4265
|
# @option params [Boolean] :enabled
|
4273
4266
|
# Indicates whether the scaling policy is enabled or disabled. The
|
4274
|
-
# default is enabled. For more information, see [Disabling a
|
4275
|
-
#
|
4267
|
+
# default is enabled. For more information, see [Disabling a scaling
|
4268
|
+
# policy for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
4276
4269
|
# User Guide*.
|
4277
4270
|
#
|
4278
4271
|
#
|
@@ -4380,7 +4373,7 @@ module Aws::AutoScaling
|
|
4380
4373
|
# group. If you leave a parameter unspecified when updating a scheduled
|
4381
4374
|
# scaling action, the corresponding value remains unchanged.
|
4382
4375
|
#
|
4383
|
-
# For more information, see [Scheduled
|
4376
|
+
# For more information, see [Scheduled scaling][1] in the *Amazon EC2
|
4384
4377
|
# Auto Scaling User Guide*.
|
4385
4378
|
#
|
4386
4379
|
#
|
@@ -4503,7 +4496,7 @@ module Aws::AutoScaling
|
|
4503
4496
|
# 5. If you finish before the timeout period ends, complete the
|
4504
4497
|
# lifecycle action.
|
4505
4498
|
#
|
4506
|
-
# For more information, see [Auto Scaling
|
4499
|
+
# For more information, see [Auto Scaling lifecycle][1] in the *Amazon
|
4507
4500
|
# EC2 Auto Scaling User Guide*.
|
4508
4501
|
#
|
4509
4502
|
#
|
@@ -4556,11 +4549,11 @@ module Aws::AutoScaling
|
|
4556
4549
|
req.send_request(options)
|
4557
4550
|
end
|
4558
4551
|
|
4559
|
-
# Resumes the specified suspended
|
4552
|
+
# Resumes the specified suspended auto scaling processes, or all
|
4560
4553
|
# suspended process, for the specified Auto Scaling group.
|
4561
4554
|
#
|
4562
|
-
# For more information, see [Suspending and
|
4563
|
-
#
|
4555
|
+
# For more information, see [Suspending and resuming scaling
|
4556
|
+
# processes][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4564
4557
|
#
|
4565
4558
|
#
|
4566
4559
|
#
|
@@ -4629,7 +4622,7 @@ module Aws::AutoScaling
|
|
4629
4622
|
# Scaling group uses its termination policy to determine which instances
|
4630
4623
|
# to terminate.
|
4631
4624
|
#
|
4632
|
-
# For more information, see [Manual
|
4625
|
+
# For more information, see [Manual scaling][1] in the *Amazon EC2 Auto
|
4633
4626
|
# Scaling User Guide*.
|
4634
4627
|
#
|
4635
4628
|
#
|
@@ -4683,8 +4676,8 @@ module Aws::AutoScaling
|
|
4683
4676
|
|
4684
4677
|
# Sets the health status of the specified instance.
|
4685
4678
|
#
|
4686
|
-
# For more information, see [Health
|
4687
|
-
#
|
4679
|
+
# For more information, see [Health checks for Auto Scaling
|
4680
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4688
4681
|
#
|
4689
4682
|
#
|
4690
4683
|
#
|
@@ -4746,14 +4739,17 @@ module Aws::AutoScaling
|
|
4746
4739
|
#
|
4747
4740
|
# For more information about preventing instances that are part of an
|
4748
4741
|
# Auto Scaling group from terminating on scale in, see [Instance
|
4749
|
-
#
|
4742
|
+
# scale-in protection][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4743
|
+
#
|
4744
|
+
# If you exceed your maximum limit of instance IDs, which is 50 per Auto
|
4745
|
+
# Scaling group, the call fails.
|
4750
4746
|
#
|
4751
4747
|
#
|
4752
4748
|
#
|
4753
4749
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
4754
4750
|
#
|
4755
4751
|
# @option params [required, Array<String>] :instance_ids
|
4756
|
-
# One or more instance IDs.
|
4752
|
+
# One or more instance IDs. You can specify up to 50 instances.
|
4757
4753
|
#
|
4758
4754
|
# @option params [required, String] :auto_scaling_group_name
|
4759
4755
|
# The name of the Auto Scaling group.
|
@@ -4899,12 +4895,12 @@ module Aws::AutoScaling
|
|
4899
4895
|
req.send_request(options)
|
4900
4896
|
end
|
4901
4897
|
|
4902
|
-
# Suspends the specified
|
4903
|
-
#
|
4898
|
+
# Suspends the specified auto scaling processes, or all processes, for
|
4899
|
+
# the specified Auto Scaling group.
|
4904
4900
|
#
|
4905
4901
|
# If you suspend either the `Launch` or `Terminate` process types, it
|
4906
4902
|
# can prevent other process types from functioning properly. For more
|
4907
|
-
# information, see [Suspending and
|
4903
|
+
# information, see [Suspending and resuming scaling processes][1] in the
|
4908
4904
|
# *Amazon EC2 Auto Scaling User Guide*.
|
4909
4905
|
#
|
4910
4906
|
# To resume processes that have been suspended, call the ResumeProcesses
|
@@ -4987,7 +4983,7 @@ module Aws::AutoScaling
|
|
4987
4983
|
# Scaling group can become unbalanced between Availability Zones. Amazon
|
4988
4984
|
# EC2 Auto Scaling tries to rebalance the group, and rebalancing might
|
4989
4985
|
# terminate instances in other zones. For more information, see
|
4990
|
-
# [Rebalancing
|
4986
|
+
# [Rebalancing activities][1] in the *Amazon EC2 Auto Scaling User
|
4991
4987
|
# Guide*.
|
4992
4988
|
#
|
4993
4989
|
#
|
@@ -5103,29 +5099,16 @@ module Aws::AutoScaling
|
|
5103
5099
|
# specify `LaunchTemplate` in your update request, you can't specify
|
5104
5100
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
5105
5101
|
#
|
5106
|
-
# For more information, see [LaunchTemplateSpecification][1] in the
|
5107
|
-
# *Amazon EC2 Auto Scaling API Reference*.
|
5108
|
-
#
|
5109
|
-
#
|
5110
|
-
#
|
5111
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
|
5112
|
-
#
|
5113
5102
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
5114
|
-
# An embedded object that specifies a mixed instances policy.
|
5115
|
-
#
|
5116
|
-
#
|
5117
|
-
#
|
5118
|
-
#
|
5119
|
-
#
|
5120
|
-
# For more information, see [MixedInstancesPolicy][1] in the *Amazon EC2
|
5121
|
-
# Auto Scaling API Reference* and [Auto Scaling Groups with Multiple
|
5122
|
-
# Instance Types and Purchase Options][2] in the *Amazon EC2 Auto
|
5123
|
-
# Scaling User Guide*.
|
5103
|
+
# An embedded object that specifies a mixed instances policy. When you
|
5104
|
+
# make changes to an existing policy, all optional parameters are left
|
5105
|
+
# unchanged if not specified. For more information, see [Auto Scaling
|
5106
|
+
# groups with multiple instance types and purchase options][1] in the
|
5107
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
5124
5108
|
#
|
5125
5109
|
#
|
5126
5110
|
#
|
5127
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
5128
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
5111
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
5129
5112
|
#
|
5130
5113
|
# @option params [Integer] :min_size
|
5131
5114
|
# The minimum size of the Auto Scaling group.
|
@@ -5145,18 +5128,16 @@ module Aws::AutoScaling
|
|
5145
5128
|
# @option params [Integer] :desired_capacity
|
5146
5129
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
5147
5130
|
# after this operation completes and the capacity it attempts to
|
5148
|
-
# maintain.
|
5149
|
-
#
|
5150
|
-
#
|
5151
|
-
# group and less than or equal to the maximum size of the group.
|
5131
|
+
# maintain. This number must be greater than or equal to the minimum
|
5132
|
+
# size of the group and less than or equal to the maximum size of the
|
5133
|
+
# group.
|
5152
5134
|
#
|
5153
5135
|
# @option params [Integer] :default_cooldown
|
5154
5136
|
# The amount of time, in seconds, after a scaling activity completes
|
5155
5137
|
# before another scaling activity can start. The default value is `300`.
|
5156
|
-
#
|
5157
5138
|
# This setting applies when using simple scaling policies, but not when
|
5158
5139
|
# using other scaling policies or scheduled scaling. For more
|
5159
|
-
# information, see [Scaling
|
5140
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
5160
5141
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
5161
5142
|
#
|
5162
5143
|
#
|
@@ -5175,43 +5156,40 @@ module Aws::AutoScaling
|
|
5175
5156
|
# @option params [Integer] :health_check_grace_period
|
5176
5157
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
5177
5158
|
# before checking the health status of an EC2 instance that has come
|
5178
|
-
# into service. The default value is `0`.
|
5179
|
-
#
|
5180
|
-
#
|
5181
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
5159
|
+
# into service. The default value is `0`. For more information, see
|
5160
|
+
# [Health check grace period][1] in the *Amazon EC2 Auto Scaling User
|
5161
|
+
# Guide*.
|
5182
5162
|
#
|
5183
|
-
# Required if you are adding an `ELB` health check.
|
5163
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
5184
5164
|
#
|
5185
5165
|
#
|
5186
5166
|
#
|
5187
5167
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
5188
5168
|
#
|
5189
5169
|
# @option params [String] :placement_group
|
5190
|
-
# The name of
|
5191
|
-
# if any. A placement group is a logical grouping of
|
5192
|
-
# single Availability Zone. You cannot specify
|
5193
|
-
# Zones and a placement group. For more
|
5194
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
5170
|
+
# The name of an existing placement group into which to launch your
|
5171
|
+
# instances, if any. A placement group is a logical grouping of
|
5172
|
+
# instances within a single Availability Zone. You cannot specify
|
5173
|
+
# multiple Availability Zones and a placement group. For more
|
5174
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
5175
|
+
# for Linux Instances*.
|
5195
5176
|
#
|
5196
5177
|
#
|
5197
5178
|
#
|
5198
5179
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
5199
5180
|
#
|
5200
5181
|
# @option params [String] :vpc_zone_identifier
|
5201
|
-
# A comma-separated list of subnet IDs for virtual private cloud
|
5202
|
-
#
|
5203
|
-
#
|
5204
|
-
# subnets that you specify for this parameter must reside in those
|
5182
|
+
# A comma-separated list of subnet IDs for a virtual private cloud
|
5183
|
+
# (VPC). If you specify `VPCZoneIdentifier` with `AvailabilityZones`,
|
5184
|
+
# the subnets that you specify for this parameter must reside in those
|
5205
5185
|
# Availability Zones.
|
5206
5186
|
#
|
5207
5187
|
# @option params [Array<String>] :termination_policies
|
5208
|
-
# A
|
5209
|
-
# to
|
5210
|
-
#
|
5211
|
-
#
|
5212
|
-
#
|
5213
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
5214
|
-
# Guide*.
|
5188
|
+
# A policy or a list of policies that are used to select the instances
|
5189
|
+
# to terminate. The policies are executed in the order that you list
|
5190
|
+
# them. For more information, see [Controlling which Auto Scaling
|
5191
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
5192
|
+
# Scaling User Guide*.
|
5215
5193
|
#
|
5216
5194
|
#
|
5217
5195
|
#
|
@@ -5219,10 +5197,9 @@ module Aws::AutoScaling
|
|
5219
5197
|
#
|
5220
5198
|
# @option params [Boolean] :new_instances_protected_from_scale_in
|
5221
5199
|
# Indicates whether newly launched instances are protected from
|
5222
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
5223
|
-
#
|
5224
|
-
#
|
5225
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto Scaling
|
5200
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
5201
|
+
# information about preventing instances from terminating on scale in,
|
5202
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
5226
5203
|
# User Guide*.
|
5227
5204
|
#
|
5228
5205
|
#
|
@@ -5232,7 +5209,7 @@ module Aws::AutoScaling
|
|
5232
5209
|
# @option params [String] :service_linked_role_arn
|
5233
5210
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
5234
5211
|
# Auto Scaling group uses to call other AWS services on your behalf. For
|
5235
|
-
# more information, see [Service-
|
5212
|
+
# more information, see [Service-linked roles][1] in the *Amazon EC2
|
5236
5213
|
# Auto Scaling User Guide*.
|
5237
5214
|
#
|
5238
5215
|
#
|
@@ -5241,21 +5218,24 @@ module Aws::AutoScaling
|
|
5241
5218
|
#
|
5242
5219
|
# @option params [Integer] :max_instance_lifetime
|
5243
5220
|
# The maximum amount of time, in seconds, that an instance can be in
|
5244
|
-
# service. The default is null.
|
5221
|
+
# service. The default is null. If specified, the value must be either 0
|
5222
|
+
# or a number equal to or greater than 86,400 seconds (1 day). To clear
|
5223
|
+
# a previously set value, specify a new value of 0. For more
|
5224
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
5225
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
5245
5226
|
#
|
5246
|
-
# This parameter is optional, but if you specify a value for it, you
|
5247
|
-
# must specify a value of at least 604,800 seconds (7 days). To clear a
|
5248
|
-
# previously set value, specify a new value of 0.
|
5249
5227
|
#
|
5250
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
5251
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
5252
|
-
# Guide*.
|
5253
5228
|
#
|
5254
|
-
#
|
5229
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
5230
|
+
#
|
5231
|
+
# @option params [Boolean] :capacity_rebalance
|
5232
|
+
# Enables or disables Capacity Rebalancing. For more information, see
|
5233
|
+
# [Amazon EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2
|
5234
|
+
# Auto Scaling User Guide*.
|
5255
5235
|
#
|
5256
5236
|
#
|
5257
5237
|
#
|
5258
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
5238
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
5259
5239
|
#
|
5260
5240
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
5261
5241
|
#
|
@@ -5309,6 +5289,11 @@ module Aws::AutoScaling
|
|
5309
5289
|
# {
|
5310
5290
|
# instance_type: "XmlStringMaxLen255",
|
5311
5291
|
# weighted_capacity: "XmlStringMaxLen32",
|
5292
|
+
# launch_template_specification: {
|
5293
|
+
# launch_template_id: "XmlStringMaxLen255",
|
5294
|
+
# launch_template_name: "LaunchTemplateName",
|
5295
|
+
# version: "XmlStringMaxLen255",
|
5296
|
+
# },
|
5312
5297
|
# },
|
5313
5298
|
# ],
|
5314
5299
|
# },
|
@@ -5334,6 +5319,7 @@ module Aws::AutoScaling
|
|
5334
5319
|
# new_instances_protected_from_scale_in: false,
|
5335
5320
|
# service_linked_role_arn: "ResourceName",
|
5336
5321
|
# max_instance_lifetime: 1,
|
5322
|
+
# capacity_rebalance: false,
|
5337
5323
|
# })
|
5338
5324
|
#
|
5339
5325
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation
|
@@ -5358,7 +5344,7 @@ module Aws::AutoScaling
|
|
5358
5344
|
params: params,
|
5359
5345
|
config: config)
|
5360
5346
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5361
|
-
context[:gem_version] = '1.
|
5347
|
+
context[:gem_version] = '1.50.0'
|
5362
5348
|
Seahorse::Client::Request.new(handlers, context)
|
5363
5349
|
end
|
5364
5350
|
|