aws-sdk-autoscaling 1.44.0 → 1.49.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 +3 -2
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +55 -65
- data/lib/aws-sdk-autoscaling/client.rb +253 -266
- data/lib/aws-sdk-autoscaling/client_api.rb +4 -0
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +30 -44
- data/lib/aws-sdk-autoscaling/resource.rb +124 -145
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +3 -3
- data/lib/aws-sdk-autoscaling/types.rb +315 -389
- 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: 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
@@ -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
|
|
@@ -55,9 +56,9 @@ require_relative 'aws-sdk-autoscaling/customizations'
|
|
55
56
|
#
|
56
57
|
# See {Errors} for more information.
|
57
58
|
#
|
58
|
-
#
|
59
|
+
# @!group service
|
59
60
|
module Aws::AutoScaling
|
60
61
|
|
61
|
-
GEM_VERSION = '1.
|
62
|
+
GEM_VERSION = '1.49.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
|
#
|
@@ -915,6 +921,7 @@ module Aws::AutoScaling
|
|
915
921
|
# new_instances_protected_from_scale_in: false,
|
916
922
|
# service_linked_role_arn: "ResourceName",
|
917
923
|
# max_instance_lifetime: 1,
|
924
|
+
# capacity_rebalance: false,
|
918
925
|
# })
|
919
926
|
# @param [Hash] options ({})
|
920
927
|
# @option options [String] :launch_configuration_name
|
@@ -925,29 +932,16 @@ module Aws::AutoScaling
|
|
925
932
|
# The launch template and version to use to specify the updates. If you
|
926
933
|
# specify `LaunchTemplate` in your update request, you can't specify
|
927
934
|
# `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
935
|
# @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*.
|
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*.
|
946
941
|
#
|
947
942
|
#
|
948
943
|
#
|
949
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
950
|
-
# [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
|
951
945
|
# @option options [Integer] :min_size
|
952
946
|
# The minimum size of the Auto Scaling group.
|
953
947
|
# @option options [Integer] :max_size
|
@@ -964,17 +958,15 @@ module Aws::AutoScaling
|
|
964
958
|
# @option options [Integer] :desired_capacity
|
965
959
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
966
960
|
# 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.
|
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.
|
971
964
|
# @option options [Integer] :default_cooldown
|
972
965
|
# The amount of time, in seconds, after a scaling activity completes
|
973
966
|
# before another scaling activity can start. The default value is `300`.
|
974
|
-
#
|
975
967
|
# This setting applies when using simple scaling policies, but not when
|
976
968
|
# using other scaling policies or scheduled scaling. For more
|
977
|
-
# information, see [Scaling
|
969
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
978
970
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
979
971
|
#
|
980
972
|
#
|
@@ -990,50 +982,46 @@ module Aws::AutoScaling
|
|
990
982
|
# @option options [Integer] :health_check_grace_period
|
991
983
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
992
984
|
# 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*.
|
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*.
|
997
988
|
#
|
998
|
-
# Required if you are adding an `ELB` health check.
|
989
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
999
990
|
#
|
1000
991
|
#
|
1001
992
|
#
|
1002
993
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
1003
994
|
# @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
|
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*.
|
1009
1001
|
#
|
1010
1002
|
#
|
1011
1003
|
#
|
1012
1004
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
1013
1005
|
# @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
|
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
|
1018
1009
|
# Availability Zones.
|
1019
1010
|
# @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*.
|
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*.
|
1027
1016
|
#
|
1028
1017
|
#
|
1029
1018
|
#
|
1030
1019
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html
|
1031
1020
|
# @option options [Boolean] :new_instances_protected_from_scale_in
|
1032
1021
|
# 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
|
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
|
1037
1025
|
# User Guide*.
|
1038
1026
|
#
|
1039
1027
|
#
|
@@ -1042,7 +1030,7 @@ module Aws::AutoScaling
|
|
1042
1030
|
# @option options [String] :service_linked_role_arn
|
1043
1031
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
1044
1032
|
# Auto Scaling group uses to call other AWS services on your behalf. For
|
1045
|
-
# more information, see [Service-
|
1033
|
+
# more information, see [Service-linked roles][1] in the *Amazon EC2
|
1046
1034
|
# Auto Scaling User Guide*.
|
1047
1035
|
#
|
1048
1036
|
#
|
@@ -1050,21 +1038,23 @@ module Aws::AutoScaling
|
|
1050
1038
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
|
1051
1039
|
# @option options [Integer] :max_instance_lifetime
|
1052
1040
|
# The maximum amount of time, in seconds, that an instance can be in
|
1053
|
-
# service. The default is null.
|
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*.
|
1054
1046
|
#
|
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
1047
|
#
|
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
1048
|
#
|
1063
|
-
#
|
1049
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
1050
|
+
# @option options [Boolean] :capacity_rebalance
|
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*.
|
1064
1054
|
#
|
1065
1055
|
#
|
1066
1056
|
#
|
1067
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1057
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
1068
1058
|
# @return [AutoScalingGroup]
|
1069
1059
|
def update(options = {})
|
1070
1060
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -85,13 +85,28 @@ module Aws::AutoScaling
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::AutoScaling
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -326,8 +341,8 @@ module Aws::AutoScaling
|
|
326
341
|
# there are target groups attached to your Auto Scaling group, the
|
327
342
|
# instances are also registered with the target groups.
|
328
343
|
#
|
329
|
-
# For more information, see [Attach EC2
|
330
|
-
#
|
344
|
+
# For more information, see [Attach EC2 instances to your Auto Scaling
|
345
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
331
346
|
#
|
332
347
|
#
|
333
348
|
#
|
@@ -379,8 +394,8 @@ module Aws::AutoScaling
|
|
379
394
|
# With Application Load Balancers and Network Load Balancers, instances
|
380
395
|
# are registered as targets with a target group. With Classic Load
|
381
396
|
# Balancers, instances are registered with the load balancer. For more
|
382
|
-
# information, see [Attaching a
|
383
|
-
#
|
397
|
+
# information, see [Attaching a load balancer to your Auto Scaling
|
398
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
384
399
|
#
|
385
400
|
#
|
386
401
|
#
|
@@ -436,8 +451,8 @@ module Aws::AutoScaling
|
|
436
451
|
# DescribeLoadBalancers API. To detach the load balancer from the Auto
|
437
452
|
# Scaling group, call the DetachLoadBalancers API.
|
438
453
|
#
|
439
|
-
# For more information, see [Attaching a
|
440
|
-
# 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*.
|
441
456
|
#
|
442
457
|
#
|
443
458
|
#
|
@@ -639,7 +654,7 @@ module Aws::AutoScaling
|
|
639
654
|
# 5. **If you finish before the timeout period ends, complete the
|
640
655
|
# lifecycle action.**
|
641
656
|
#
|
642
|
-
# For more information, see [Amazon EC2 Auto Scaling
|
657
|
+
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
643
658
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
644
659
|
#
|
645
660
|
#
|
@@ -704,13 +719,13 @@ module Aws::AutoScaling
|
|
704
719
|
# If you exceed your maximum limit of Auto Scaling groups, the call
|
705
720
|
# fails. To query this limit, call the DescribeAccountLimits API. For
|
706
721
|
# information about updating this limit, see [Amazon EC2 Auto Scaling
|
707
|
-
#
|
722
|
+
# service quotas][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
708
723
|
#
|
709
724
|
# For introductory exercises for creating an Auto Scaling group, see
|
710
|
-
# [Getting
|
711
|
-
#
|
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
|
712
727
|
# Scaling User Guide*. For more information, see [Auto Scaling
|
713
|
-
#
|
728
|
+
# groups][4] in the *Amazon EC2 Auto Scaling User Guide*.
|
714
729
|
#
|
715
730
|
# Every Auto Scaling group has three size parameters (`DesiredCapacity`,
|
716
731
|
# `MaxSize`, and `MinSize`). Usually, you set these sizes based on a
|
@@ -731,32 +746,31 @@ module Aws::AutoScaling
|
|
731
746
|
# Region per account.
|
732
747
|
#
|
733
748
|
# @option params [String] :launch_configuration_name
|
734
|
-
# The name of the launch configuration to use
|
735
|
-
# launched. To get the launch configuration name, use the
|
736
|
-
# DescribeLaunchConfigurations API operation. New launch configurations
|
737
|
-
# can be created with the CreateLaunchConfiguration API.
|
749
|
+
# The name of the launch configuration to use to launch instances.
|
738
750
|
#
|
739
|
-
# You must specify
|
740
|
-
# `
|
741
|
-
# `
|
751
|
+
# Conditional: You must specify either a launch template
|
752
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
753
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
742
754
|
#
|
743
755
|
# @option params [Types::LaunchTemplateSpecification] :launch_template
|
744
|
-
# Parameters used to specify the launch template and version to use
|
745
|
-
#
|
756
|
+
# Parameters used to specify the [launch template][1] and version to use
|
757
|
+
# to launch instances.
|
746
758
|
#
|
747
|
-
#
|
748
|
-
#
|
759
|
+
# Conditional: You must specify either a launch template
|
760
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
761
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
749
762
|
#
|
750
|
-
#
|
751
|
-
# 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*.
|
752
767
|
#
|
753
|
-
#
|
754
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
755
|
-
# `MixedInstancesPolicy`.
|
768
|
+
# </note>
|
756
769
|
#
|
757
770
|
#
|
758
771
|
#
|
759
|
-
# [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
|
760
774
|
#
|
761
775
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
762
776
|
# An embedded object that specifies a mixed instances policy. The
|
@@ -766,41 +780,33 @@ module Aws::AutoScaling
|
|
766
780
|
# The policy includes parameters that not only define the distribution
|
767
781
|
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
768
782
|
# for Spot Instances, and how the Auto Scaling group allocates instance
|
769
|
-
# types to fulfill On-Demand and Spot
|
770
|
-
# that specify the instance configuration information—the
|
771
|
-
# template and instance types.
|
772
|
-
#
|
773
|
-
#
|
774
|
-
#
|
775
|
-
# Instance Types and Purchase Options][2] in the *Amazon EC2 Auto
|
776
|
-
# 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*.
|
777
789
|
#
|
778
|
-
# You must specify
|
779
|
-
# `
|
780
|
-
# `
|
790
|
+
# Conditional: You must specify either a launch template
|
791
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
792
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
781
793
|
#
|
782
794
|
#
|
783
795
|
#
|
784
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
785
|
-
# [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
|
786
797
|
#
|
787
798
|
# @option params [String] :instance_id
|
788
|
-
# The ID of the instance used to
|
789
|
-
#
|
790
|
-
#
|
791
|
-
#
|
792
|
-
#
|
793
|
-
#
|
794
|
-
# launch configuration derives its attributes from the specified
|
795
|
-
# instance, except for the block device mapping.
|
796
|
-
#
|
797
|
-
# You must specify one of the following parameters in your request:
|
798
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
799
|
-
# `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*.
|
800
805
|
#
|
801
806
|
#
|
802
807
|
#
|
803
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
|
804
810
|
#
|
805
811
|
# @option params [required, Integer] :min_size
|
806
812
|
# The minimum size of the group.
|
@@ -820,20 +826,18 @@ module Aws::AutoScaling
|
|
820
826
|
# @option params [Integer] :desired_capacity
|
821
827
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
822
828
|
# at the time of its creation and the capacity it attempts to maintain.
|
823
|
-
# It can scale beyond this capacity if you configure
|
824
|
-
#
|
825
|
-
#
|
826
|
-
#
|
827
|
-
#
|
828
|
-
# 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.
|
829
834
|
#
|
830
835
|
# @option params [Integer] :default_cooldown
|
831
836
|
# The amount of time, in seconds, after a scaling activity completes
|
832
837
|
# before another scaling activity can start. The default value is `300`.
|
833
|
-
#
|
834
838
|
# This setting applies when using simple scaling policies, but not when
|
835
839
|
# using other scaling policies or scheduled scaling. For more
|
836
|
-
# information, see [Scaling
|
840
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
837
841
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
838
842
|
#
|
839
843
|
#
|
@@ -841,8 +845,9 @@ module Aws::AutoScaling
|
|
841
845
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html
|
842
846
|
#
|
843
847
|
# @option params [Array<String>] :availability_zones
|
844
|
-
#
|
845
|
-
# 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`.
|
846
851
|
#
|
847
852
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
848
853
|
# parameter is required to launch instances into EC2-Classic.
|
@@ -850,23 +855,14 @@ module Aws::AutoScaling
|
|
850
855
|
# @option params [Array<String>] :load_balancer_names
|
851
856
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
852
857
|
# group. For Application Load Balancers and Network Load Balancers,
|
853
|
-
# specify
|
854
|
-
# instead.
|
855
|
-
#
|
856
|
-
# For more information, see [Using a Load Balancer with an Auto Scaling
|
857
|
-
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
858
|
-
#
|
859
|
-
#
|
860
|
-
#
|
861
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
858
|
+
# specify `TargetGroupARNs` instead.
|
862
859
|
#
|
863
860
|
# @option params [Array<String>] :target_group_arns
|
864
861
|
# The Amazon Resource Names (ARN) of the target groups to associate with
|
865
862
|
# the Auto Scaling group. Instances are registered as targets in a
|
866
|
-
# target group, and traffic is routed to the target group.
|
867
|
-
#
|
868
|
-
#
|
869
|
-
# 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*.
|
870
866
|
#
|
871
867
|
#
|
872
868
|
#
|
@@ -874,13 +870,11 @@ module Aws::AutoScaling
|
|
874
870
|
#
|
875
871
|
# @option params [String] :health_check_type
|
876
872
|
# The service to use for the health checks. The valid values are `EC2`
|
877
|
-
# and `ELB`.
|
878
|
-
#
|
879
|
-
#
|
880
|
-
#
|
881
|
-
#
|
882
|
-
# For more information, see [Health Checks for Auto Scaling
|
883
|
-
# 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*.
|
884
878
|
#
|
885
879
|
#
|
886
880
|
#
|
@@ -890,47 +884,44 @@ module Aws::AutoScaling
|
|
890
884
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
891
885
|
# before checking the health status of an EC2 instance that has come
|
892
886
|
# into service. During this time, any health check failures for the
|
893
|
-
# instance are ignored. The default value is `0`.
|
894
|
-
#
|
895
|
-
#
|
896
|
-
# *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*.
|
897
890
|
#
|
898
|
-
# Required if you are adding an `ELB` health check.
|
891
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
899
892
|
#
|
900
893
|
#
|
901
894
|
#
|
902
895
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
903
896
|
#
|
904
897
|
# @option params [String] :placement_group
|
905
|
-
# The name of
|
906
|
-
# if any. A placement group is a logical grouping of
|
907
|
-
# single Availability Zone. You cannot specify
|
908
|
-
# Zones and a placement group. For more
|
909
|
-
# 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*.
|
910
904
|
#
|
911
905
|
#
|
912
906
|
#
|
913
907
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
914
908
|
#
|
915
909
|
# @option params [String] :vpc_zone_identifier
|
916
|
-
# A comma-separated list of subnet IDs for
|
917
|
-
#
|
918
|
-
#
|
919
|
-
#
|
920
|
-
#
|
921
|
-
# 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.
|
922
915
|
#
|
923
916
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
924
917
|
# parameter is required to launch instances into a VPC.
|
925
918
|
#
|
926
919
|
# @option params [Array<String>] :termination_policies
|
927
|
-
#
|
928
|
-
# terminate. These policies are executed in the order that
|
929
|
-
#
|
930
|
-
#
|
931
|
-
#
|
932
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
933
|
-
# 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*.
|
934
925
|
#
|
935
926
|
#
|
936
927
|
#
|
@@ -938,32 +929,42 @@ module Aws::AutoScaling
|
|
938
929
|
#
|
939
930
|
# @option params [Boolean] :new_instances_protected_from_scale_in
|
940
931
|
# Indicates whether newly launched instances are protected from
|
941
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
942
|
-
#
|
943
|
-
#
|
944
|
-
# 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
|
945
935
|
# User Guide*.
|
946
936
|
#
|
947
937
|
#
|
948
938
|
#
|
949
939
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
950
940
|
#
|
941
|
+
# @option params [Boolean] :capacity_rebalance
|
942
|
+
# Indicates whether Capacity Rebalancing is enabled. Otherwise, Capacity
|
943
|
+
# Rebalancing is disabled. When you turn on Capacity Rebalancing, Amazon
|
944
|
+
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
945
|
+
# EC2 notifies that a Spot Instance is at an elevated risk of
|
946
|
+
# interruption. After launching a new instance, it then terminates an
|
947
|
+
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
948
|
+
# Capacity Rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
949
|
+
#
|
950
|
+
#
|
951
|
+
#
|
952
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
953
|
+
#
|
951
954
|
# @option params [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
|
952
|
-
# 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.
|
953
957
|
#
|
954
958
|
# @option params [Array<Types::Tag>] :tags
|
955
959
|
# One or more tags. You can tag your Auto Scaling group and propagate
|
956
|
-
# the tags to the Amazon EC2 instances it launches.
|
957
|
-
#
|
958
|
-
#
|
959
|
-
#
|
960
|
-
# the
|
961
|
-
#
|
962
|
-
#
|
963
|
-
# the Auto Scaling
|
964
|
-
#
|
965
|
-
# For more information, see [Tagging Auto Scaling Groups and
|
966
|
-
# 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*.
|
967
968
|
#
|
968
969
|
#
|
969
970
|
#
|
@@ -974,7 +975,7 @@ module Aws::AutoScaling
|
|
974
975
|
# Auto Scaling group uses to call other AWS services on your behalf. By
|
975
976
|
# default, Amazon EC2 Auto Scaling uses a service-linked role named
|
976
977
|
# AWSServiceRoleForAutoScaling, which it creates if it does not exist.
|
977
|
-
# For more information, see [Service-
|
978
|
+
# For more information, see [Service-linked roles][1] in the *Amazon EC2
|
978
979
|
# Auto Scaling User Guide*.
|
979
980
|
#
|
980
981
|
#
|
@@ -983,17 +984,10 @@ module Aws::AutoScaling
|
|
983
984
|
#
|
984
985
|
# @option params [Integer] :max_instance_lifetime
|
985
986
|
# The maximum amount of time, in seconds, that an instance can be in
|
986
|
-
# service. The default is null.
|
987
|
-
#
|
988
|
-
#
|
989
|
-
#
|
990
|
-
# previously set value, specify a new value of 0.
|
991
|
-
#
|
992
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
993
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
994
|
-
# Guide*.
|
995
|
-
#
|
996
|
-
# 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*.
|
997
991
|
#
|
998
992
|
#
|
999
993
|
#
|
@@ -1101,6 +1095,7 @@ module Aws::AutoScaling
|
|
1101
1095
|
# vpc_zone_identifier: "XmlStringMaxLen2047",
|
1102
1096
|
# termination_policies: ["XmlStringMaxLen1600"],
|
1103
1097
|
# new_instances_protected_from_scale_in: false,
|
1098
|
+
# capacity_rebalance: false,
|
1104
1099
|
# lifecycle_hook_specification_list: [
|
1105
1100
|
# {
|
1106
1101
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
@@ -1139,9 +1134,9 @@ module Aws::AutoScaling
|
|
1139
1134
|
# If you exceed your maximum limit of launch configurations, the call
|
1140
1135
|
# fails. To query this limit, call the DescribeAccountLimits API. For
|
1141
1136
|
# information about updating this limit, see [Amazon EC2 Auto Scaling
|
1142
|
-
#
|
1137
|
+
# service quotas][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1143
1138
|
#
|
1144
|
-
# For more information, see [Launch
|
1139
|
+
# For more information, see [Launch configurations][2] in the *Amazon
|
1145
1140
|
# EC2 Auto Scaling User Guide*.
|
1146
1141
|
#
|
1147
1142
|
#
|
@@ -1192,7 +1187,7 @@ module Aws::AutoScaling
|
|
1192
1187
|
# @option params [String] :classic_link_vpc_id
|
1193
1188
|
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
1194
1189
|
# to. For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
1195
|
-
# Guide for Linux Instances* and [Linking EC2-Classic
|
1190
|
+
# Guide for Linux Instances* and [Linking EC2-Classic instances to a
|
1196
1191
|
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
1197
1192
|
#
|
1198
1193
|
# This parameter can only be used if you are launching EC2-Classic
|
@@ -1207,7 +1202,7 @@ module Aws::AutoScaling
|
|
1207
1202
|
# The IDs of one or more security groups for the specified
|
1208
1203
|
# ClassicLink-enabled VPC. For more information, see [ClassicLink][1] in
|
1209
1204
|
# the *Amazon EC2 User Guide for Linux Instances* and [Linking
|
1210
|
-
# EC2-Classic
|
1205
|
+
# EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling
|
1211
1206
|
# User Guide*.
|
1212
1207
|
#
|
1213
1208
|
# If you specify the `ClassicLinkVPCId` parameter, you must specify this
|
@@ -1220,8 +1215,8 @@ module Aws::AutoScaling
|
|
1220
1215
|
#
|
1221
1216
|
# @option params [String] :user_data
|
1222
1217
|
# The Base64-encoded user data to make available to the launched EC2
|
1223
|
-
# instances. For more information, see [Instance
|
1224
|
-
#
|
1218
|
+
# instances. For more information, see [Instance metadata and user
|
1219
|
+
# data][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
1225
1220
|
#
|
1226
1221
|
#
|
1227
1222
|
#
|
@@ -1236,8 +1231,8 @@ module Aws::AutoScaling
|
|
1236
1231
|
# override any other instance attributes, specify them as part of the
|
1237
1232
|
# same request.
|
1238
1233
|
#
|
1239
|
-
# For more information, see [
|
1240
|
-
#
|
1234
|
+
# For more information, see [Creating a launch configuration using an
|
1235
|
+
# EC2 instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1241
1236
|
#
|
1242
1237
|
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
1243
1238
|
# and `InstanceType`.
|
@@ -1288,14 +1283,14 @@ module Aws::AutoScaling
|
|
1288
1283
|
#
|
1289
1284
|
#
|
1290
1285
|
#
|
1291
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/
|
1286
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
|
1292
1287
|
#
|
1293
1288
|
# @option params [String] :spot_price
|
1294
1289
|
# The maximum hourly price to be paid for any Spot Instance launched to
|
1295
1290
|
# fulfill the request. Spot Instances are launched when the price you
|
1296
1291
|
# specify exceeds the current Spot price. For more information, see
|
1297
|
-
# [
|
1298
|
-
#
|
1292
|
+
# [Requesting Spot Instances][1] in the *Amazon EC2 Auto Scaling User
|
1293
|
+
# Guide*.
|
1299
1294
|
#
|
1300
1295
|
# <note markdown="1"> When you change your maximum price by creating a new launch
|
1301
1296
|
# configuration, running instances will continue to run as long as the
|
@@ -1313,8 +1308,8 @@ module Aws::AutoScaling
|
|
1313
1308
|
# associated with the IAM role for the instance. The instance profile
|
1314
1309
|
# contains the IAM role.
|
1315
1310
|
#
|
1316
|
-
# For more information, see [IAM
|
1317
|
-
# 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*.
|
1318
1313
|
#
|
1319
1314
|
#
|
1320
1315
|
#
|
@@ -1341,7 +1336,7 @@ module Aws::AutoScaling
|
|
1341
1336
|
# (VPC), specifies whether to assign a public IP address to the group's
|
1342
1337
|
# instances. If you specify `true`, each instance in the Auto Scaling
|
1343
1338
|
# group receives a unique public IP address. For more information, see
|
1344
|
-
# [Launching Auto Scaling
|
1339
|
+
# [Launching Auto Scaling instances in a VPC][1] in the *Amazon EC2 Auto
|
1345
1340
|
# Scaling User Guide*.
|
1346
1341
|
#
|
1347
1342
|
# If you specify this parameter, you must specify at least one subnet
|
@@ -1372,23 +1367,23 @@ module Aws::AutoScaling
|
|
1372
1367
|
# If you specify `PlacementTenancy`, you must specify at least one
|
1373
1368
|
# subnet for `VPCZoneIdentifier` when you create your group.
|
1374
1369
|
#
|
1375
|
-
# For more information, see [
|
1376
|
-
# *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*.
|
1377
1372
|
#
|
1378
1373
|
# Valid Values: `default` \| `dedicated`
|
1379
1374
|
#
|
1380
1375
|
#
|
1381
1376
|
#
|
1382
|
-
# [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
|
1383
1378
|
#
|
1384
1379
|
# @option params [Types::InstanceMetadataOptions] :metadata_options
|
1385
1380
|
# The metadata options for the instances. For more information, see
|
1386
|
-
# [Instance Metadata
|
1387
|
-
#
|
1381
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
|
1382
|
+
# Scaling User Guide*.
|
1388
1383
|
#
|
1389
1384
|
#
|
1390
1385
|
#
|
1391
|
-
# [1]: https://docs.aws.amazon.com/
|
1386
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
1392
1387
|
#
|
1393
1388
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1394
1389
|
#
|
@@ -1466,8 +1461,8 @@ module Aws::AutoScaling
|
|
1466
1461
|
# overwrites the previous tag definition, and you do not get an error
|
1467
1462
|
# message.
|
1468
1463
|
#
|
1469
|
-
# For more information, see [Tagging Auto Scaling
|
1470
|
-
#
|
1464
|
+
# For more information, see [Tagging Auto Scaling groups and
|
1465
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1471
1466
|
#
|
1472
1467
|
#
|
1473
1468
|
#
|
@@ -1706,7 +1701,7 @@ module Aws::AutoScaling
|
|
1706
1701
|
# deletes the underlying alarm action, but does not delete the alarm,
|
1707
1702
|
# even if it no longer has an associated action.
|
1708
1703
|
#
|
1709
|
-
# For more information, see [Deleting a
|
1704
|
+
# For more information, see [Deleting a scaling policy][1] in the
|
1710
1705
|
# *Amazon EC2 Auto Scaling User Guide*.
|
1711
1706
|
#
|
1712
1707
|
#
|
@@ -1833,7 +1828,7 @@ module Aws::AutoScaling
|
|
1833
1828
|
# AWS account.
|
1834
1829
|
#
|
1835
1830
|
# For information about requesting an increase, see [Amazon EC2 Auto
|
1836
|
-
# Scaling
|
1831
|
+
# Scaling service quotas][1] in the *Amazon EC2 Auto Scaling User
|
1837
1832
|
# Guide*.
|
1838
1833
|
#
|
1839
1834
|
#
|
@@ -1936,9 +1931,9 @@ module Aws::AutoScaling
|
|
1936
1931
|
# Describes one or more Auto Scaling groups.
|
1937
1932
|
#
|
1938
1933
|
# @option params [Array<String>] :auto_scaling_group_names
|
1939
|
-
# The names of the Auto Scaling groups.
|
1940
|
-
#
|
1941
|
-
#
|
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.
|
1942
1937
|
#
|
1943
1938
|
# If you omit this parameter, all Auto Scaling groups are described.
|
1944
1939
|
#
|
@@ -2086,6 +2081,7 @@ module Aws::AutoScaling
|
|
2086
2081
|
# resp.auto_scaling_groups[0].new_instances_protected_from_scale_in #=> Boolean
|
2087
2082
|
# resp.auto_scaling_groups[0].service_linked_role_arn #=> String
|
2088
2083
|
# resp.auto_scaling_groups[0].max_instance_lifetime #=> Integer
|
2084
|
+
# resp.auto_scaling_groups[0].capacity_rebalance #=> Boolean
|
2089
2085
|
# resp.next_token #=> String
|
2090
2086
|
#
|
2091
2087
|
#
|
@@ -3198,8 +3194,8 @@ module Aws::AutoScaling
|
|
3198
3194
|
# for a particular tag only if it matches all the filters. If there's
|
3199
3195
|
# no match, no special message is returned.
|
3200
3196
|
#
|
3201
|
-
# For more information, see [Tagging Auto Scaling
|
3202
|
-
#
|
3197
|
+
# For more information, see [Tagging Auto Scaling groups and
|
3198
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3203
3199
|
#
|
3204
3200
|
#
|
3205
3201
|
#
|
@@ -3295,8 +3291,8 @@ module Aws::AutoScaling
|
|
3295
3291
|
# Describes the termination policies supported by Amazon EC2 Auto
|
3296
3292
|
# Scaling.
|
3297
3293
|
#
|
3298
|
-
# For more information, see [Controlling
|
3299
|
-
#
|
3294
|
+
# For more information, see [Controlling which Auto Scaling instances
|
3295
|
+
# terminate during scale in][1] in the *Amazon EC2 Auto Scaling User
|
3300
3296
|
# Guide*.
|
3301
3297
|
#
|
3302
3298
|
#
|
@@ -3354,8 +3350,8 @@ module Aws::AutoScaling
|
|
3354
3350
|
# are target groups attached to the Auto Scaling group, the instances
|
3355
3351
|
# are deregistered from the target groups.
|
3356
3352
|
#
|
3357
|
-
# For more information, see [Detach EC2
|
3358
|
-
#
|
3353
|
+
# For more information, see [Detach EC2 instances from your Auto Scaling
|
3354
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3359
3355
|
#
|
3360
3356
|
#
|
3361
3357
|
#
|
@@ -3591,8 +3587,8 @@ module Aws::AutoScaling
|
|
3591
3587
|
end
|
3592
3588
|
|
3593
3589
|
# Enables group metrics for the specified Auto Scaling group. For more
|
3594
|
-
# information, see [Monitoring
|
3595
|
-
#
|
3590
|
+
# information, see [Monitoring CloudWatch metrics for your Auto Scaling
|
3591
|
+
# groups and instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3596
3592
|
#
|
3597
3593
|
#
|
3598
3594
|
#
|
@@ -3680,8 +3676,8 @@ module Aws::AutoScaling
|
|
3680
3676
|
# Scaling group, the Auto Scaling group launches new instances to
|
3681
3677
|
# replace the instances on standby.
|
3682
3678
|
#
|
3683
|
-
# For more information, see [Temporarily
|
3684
|
-
# 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*.
|
3685
3681
|
#
|
3686
3682
|
#
|
3687
3683
|
#
|
@@ -3775,7 +3771,7 @@ module Aws::AutoScaling
|
|
3775
3771
|
# period to complete before executing the policy.
|
3776
3772
|
#
|
3777
3773
|
# Valid only if the policy type is `SimpleScaling`. For more
|
3778
|
-
# information, see [Scaling
|
3774
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
3779
3775
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
3780
3776
|
#
|
3781
3777
|
#
|
@@ -3839,8 +3835,8 @@ module Aws::AutoScaling
|
|
3839
3835
|
# After you put the instances back in service, the desired capacity is
|
3840
3836
|
# incremented.
|
3841
3837
|
#
|
3842
|
-
# For more information, see [Temporarily
|
3843
|
-
# 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*.
|
3844
3840
|
#
|
3845
3841
|
#
|
3846
3842
|
#
|
@@ -3943,7 +3939,7 @@ module Aws::AutoScaling
|
|
3943
3939
|
# 5. If you finish before the timeout period ends, complete the
|
3944
3940
|
# lifecycle action using the CompleteLifecycleAction API call.
|
3945
3941
|
#
|
3946
|
-
# For more information, see [Amazon EC2 Auto Scaling
|
3942
|
+
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
3947
3943
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
3948
3944
|
#
|
3949
3945
|
# If you exceed your maximum limit of lifecycle hooks, which by default
|
@@ -4063,10 +4059,13 @@ module Aws::AutoScaling
|
|
4063
4059
|
#
|
4064
4060
|
# This configuration overwrites any existing configuration.
|
4065
4061
|
#
|
4066
|
-
# For more information, see [Getting Amazon SNS
|
4067
|
-
# 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
|
4068
4064
|
# Guide*.
|
4069
4065
|
#
|
4066
|
+
# If you exceed your maximum limit of SNS topics, which is 10 per Auto
|
4067
|
+
# Scaling group, the call fails.
|
4068
|
+
#
|
4070
4069
|
#
|
4071
4070
|
#
|
4072
4071
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html
|
@@ -4118,8 +4117,8 @@ module Aws::AutoScaling
|
|
4118
4117
|
# Creates or updates a scaling policy for an Auto Scaling group.
|
4119
4118
|
#
|
4120
4119
|
# For more information about using scaling policies to scale your Auto
|
4121
|
-
# Scaling group, see [Target
|
4122
|
-
#
|
4120
|
+
# Scaling group, see [Target tracking scaling policies][1] and [Step and
|
4121
|
+
# simple scaling policies][2] in the *Amazon EC2 Auto Scaling User
|
4123
4122
|
# Guide*.
|
4124
4123
|
#
|
4125
4124
|
#
|
@@ -4148,7 +4147,7 @@ module Aws::AutoScaling
|
|
4148
4147
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4149
4148
|
#
|
4150
4149
|
# Required if the policy type is `StepScaling` or `SimpleScaling`. For
|
4151
|
-
# more information, see [Scaling
|
4150
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
4152
4151
|
# Auto Scaling User Guide*.
|
4153
4152
|
#
|
4154
4153
|
#
|
@@ -4169,7 +4168,7 @@ module Aws::AutoScaling
|
|
4169
4168
|
# EC2 Auto Scaling scales out the group by 2 instances.
|
4170
4169
|
#
|
4171
4170
|
# Valid only if the policy type is `StepScaling` or `SimpleScaling`. For
|
4172
|
-
# more information, see [Scaling
|
4171
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
4173
4172
|
# Auto Scaling User Guide*.
|
4174
4173
|
#
|
4175
4174
|
# <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
|
@@ -4197,7 +4196,7 @@ module Aws::AutoScaling
|
|
4197
4196
|
# period defined for the Auto Scaling group.
|
4198
4197
|
#
|
4199
4198
|
# Valid only if the policy type is `SimpleScaling`. For more
|
4200
|
-
# information, see [Scaling
|
4199
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
4201
4200
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
4202
4201
|
#
|
4203
4202
|
#
|
@@ -4256,8 +4255,8 @@ module Aws::AutoScaling
|
|
4256
4255
|
#
|
4257
4256
|
# @option params [Boolean] :enabled
|
4258
4257
|
# Indicates whether the scaling policy is enabled or disabled. The
|
4259
|
-
# default is enabled. For more information, see [Disabling a
|
4260
|
-
#
|
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
|
4261
4260
|
# User Guide*.
|
4262
4261
|
#
|
4263
4262
|
#
|
@@ -4365,7 +4364,7 @@ module Aws::AutoScaling
|
|
4365
4364
|
# group. If you leave a parameter unspecified when updating a scheduled
|
4366
4365
|
# scaling action, the corresponding value remains unchanged.
|
4367
4366
|
#
|
4368
|
-
# For more information, see [Scheduled
|
4367
|
+
# For more information, see [Scheduled scaling][1] in the *Amazon EC2
|
4369
4368
|
# Auto Scaling User Guide*.
|
4370
4369
|
#
|
4371
4370
|
#
|
@@ -4488,7 +4487,7 @@ module Aws::AutoScaling
|
|
4488
4487
|
# 5. If you finish before the timeout period ends, complete the
|
4489
4488
|
# lifecycle action.
|
4490
4489
|
#
|
4491
|
-
# For more information, see [Auto Scaling
|
4490
|
+
# For more information, see [Auto Scaling lifecycle][1] in the *Amazon
|
4492
4491
|
# EC2 Auto Scaling User Guide*.
|
4493
4492
|
#
|
4494
4493
|
#
|
@@ -4541,11 +4540,11 @@ module Aws::AutoScaling
|
|
4541
4540
|
req.send_request(options)
|
4542
4541
|
end
|
4543
4542
|
|
4544
|
-
# Resumes the specified suspended
|
4543
|
+
# Resumes the specified suspended auto scaling processes, or all
|
4545
4544
|
# suspended process, for the specified Auto Scaling group.
|
4546
4545
|
#
|
4547
|
-
# For more information, see [Suspending and
|
4548
|
-
#
|
4546
|
+
# For more information, see [Suspending and resuming scaling
|
4547
|
+
# processes][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4549
4548
|
#
|
4550
4549
|
#
|
4551
4550
|
#
|
@@ -4614,7 +4613,7 @@ module Aws::AutoScaling
|
|
4614
4613
|
# Scaling group uses its termination policy to determine which instances
|
4615
4614
|
# to terminate.
|
4616
4615
|
#
|
4617
|
-
# For more information, see [Manual
|
4616
|
+
# For more information, see [Manual scaling][1] in the *Amazon EC2 Auto
|
4618
4617
|
# Scaling User Guide*.
|
4619
4618
|
#
|
4620
4619
|
#
|
@@ -4668,8 +4667,8 @@ module Aws::AutoScaling
|
|
4668
4667
|
|
4669
4668
|
# Sets the health status of the specified instance.
|
4670
4669
|
#
|
4671
|
-
# For more information, see [Health
|
4672
|
-
#
|
4670
|
+
# For more information, see [Health checks for Auto Scaling
|
4671
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4673
4672
|
#
|
4674
4673
|
#
|
4675
4674
|
#
|
@@ -4731,14 +4730,17 @@ module Aws::AutoScaling
|
|
4731
4730
|
#
|
4732
4731
|
# For more information about preventing instances that are part of an
|
4733
4732
|
# Auto Scaling group from terminating on scale in, see [Instance
|
4734
|
-
#
|
4733
|
+
# scale-in protection][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4734
|
+
#
|
4735
|
+
# If you exceed your maximum limit of instance IDs, which is 50 per Auto
|
4736
|
+
# Scaling group, the call fails.
|
4735
4737
|
#
|
4736
4738
|
#
|
4737
4739
|
#
|
4738
4740
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
4739
4741
|
#
|
4740
4742
|
# @option params [required, Array<String>] :instance_ids
|
4741
|
-
# One or more instance IDs.
|
4743
|
+
# One or more instance IDs. You can specify up to 50 instances.
|
4742
4744
|
#
|
4743
4745
|
# @option params [required, String] :auto_scaling_group_name
|
4744
4746
|
# The name of the Auto Scaling group.
|
@@ -4884,12 +4886,12 @@ module Aws::AutoScaling
|
|
4884
4886
|
req.send_request(options)
|
4885
4887
|
end
|
4886
4888
|
|
4887
|
-
# Suspends the specified
|
4888
|
-
#
|
4889
|
+
# Suspends the specified auto scaling processes, or all processes, for
|
4890
|
+
# the specified Auto Scaling group.
|
4889
4891
|
#
|
4890
4892
|
# If you suspend either the `Launch` or `Terminate` process types, it
|
4891
4893
|
# can prevent other process types from functioning properly. For more
|
4892
|
-
# information, see [Suspending and
|
4894
|
+
# information, see [Suspending and resuming scaling processes][1] in the
|
4893
4895
|
# *Amazon EC2 Auto Scaling User Guide*.
|
4894
4896
|
#
|
4895
4897
|
# To resume processes that have been suspended, call the ResumeProcesses
|
@@ -4972,7 +4974,7 @@ module Aws::AutoScaling
|
|
4972
4974
|
# Scaling group can become unbalanced between Availability Zones. Amazon
|
4973
4975
|
# EC2 Auto Scaling tries to rebalance the group, and rebalancing might
|
4974
4976
|
# terminate instances in other zones. For more information, see
|
4975
|
-
# [Rebalancing
|
4977
|
+
# [Rebalancing activities][1] in the *Amazon EC2 Auto Scaling User
|
4976
4978
|
# Guide*.
|
4977
4979
|
#
|
4978
4980
|
#
|
@@ -5088,29 +5090,16 @@ module Aws::AutoScaling
|
|
5088
5090
|
# specify `LaunchTemplate` in your update request, you can't specify
|
5089
5091
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
5090
5092
|
#
|
5091
|
-
# For more information, see [LaunchTemplateSpecification][1] in the
|
5092
|
-
# *Amazon EC2 Auto Scaling API Reference*.
|
5093
|
-
#
|
5094
|
-
#
|
5095
|
-
#
|
5096
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
|
5097
|
-
#
|
5098
5093
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
5099
|
-
# An embedded object that specifies a mixed instances policy.
|
5100
|
-
#
|
5101
|
-
#
|
5102
|
-
#
|
5103
|
-
#
|
5104
|
-
#
|
5105
|
-
# For more information, see [MixedInstancesPolicy][1] in the *Amazon EC2
|
5106
|
-
# Auto Scaling API Reference* and [Auto Scaling Groups with Multiple
|
5107
|
-
# Instance Types and Purchase Options][2] in the *Amazon EC2 Auto
|
5108
|
-
# 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*.
|
5109
5099
|
#
|
5110
5100
|
#
|
5111
5101
|
#
|
5112
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
5113
|
-
# [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
|
5114
5103
|
#
|
5115
5104
|
# @option params [Integer] :min_size
|
5116
5105
|
# The minimum size of the Auto Scaling group.
|
@@ -5130,18 +5119,16 @@ module Aws::AutoScaling
|
|
5130
5119
|
# @option params [Integer] :desired_capacity
|
5131
5120
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
5132
5121
|
# after this operation completes and the capacity it attempts to
|
5133
|
-
# maintain.
|
5134
|
-
#
|
5135
|
-
#
|
5136
|
-
# 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.
|
5137
5125
|
#
|
5138
5126
|
# @option params [Integer] :default_cooldown
|
5139
5127
|
# The amount of time, in seconds, after a scaling activity completes
|
5140
5128
|
# before another scaling activity can start. The default value is `300`.
|
5141
|
-
#
|
5142
5129
|
# This setting applies when using simple scaling policies, but not when
|
5143
5130
|
# using other scaling policies or scheduled scaling. For more
|
5144
|
-
# information, see [Scaling
|
5131
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
5145
5132
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
5146
5133
|
#
|
5147
5134
|
#
|
@@ -5160,43 +5147,40 @@ module Aws::AutoScaling
|
|
5160
5147
|
# @option params [Integer] :health_check_grace_period
|
5161
5148
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
5162
5149
|
# before checking the health status of an EC2 instance that has come
|
5163
|
-
# into service. The default value is `0`.
|
5164
|
-
#
|
5165
|
-
#
|
5166
|
-
# *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*.
|
5167
5153
|
#
|
5168
|
-
# Required if you are adding an `ELB` health check.
|
5154
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
5169
5155
|
#
|
5170
5156
|
#
|
5171
5157
|
#
|
5172
5158
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
5173
5159
|
#
|
5174
5160
|
# @option params [String] :placement_group
|
5175
|
-
# The name of
|
5176
|
-
# if any. A placement group is a logical grouping of
|
5177
|
-
# single Availability Zone. You cannot specify
|
5178
|
-
# Zones and a placement group. For more
|
5179
|
-
# 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*.
|
5180
5167
|
#
|
5181
5168
|
#
|
5182
5169
|
#
|
5183
5170
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
5184
5171
|
#
|
5185
5172
|
# @option params [String] :vpc_zone_identifier
|
5186
|
-
# A comma-separated list of subnet IDs for virtual private cloud
|
5187
|
-
#
|
5188
|
-
#
|
5189
|
-
# 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
|
5190
5176
|
# Availability Zones.
|
5191
5177
|
#
|
5192
5178
|
# @option params [Array<String>] :termination_policies
|
5193
|
-
# A
|
5194
|
-
# to
|
5195
|
-
#
|
5196
|
-
#
|
5197
|
-
#
|
5198
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
5199
|
-
# 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*.
|
5200
5184
|
#
|
5201
5185
|
#
|
5202
5186
|
#
|
@@ -5204,10 +5188,9 @@ module Aws::AutoScaling
|
|
5204
5188
|
#
|
5205
5189
|
# @option params [Boolean] :new_instances_protected_from_scale_in
|
5206
5190
|
# Indicates whether newly launched instances are protected from
|
5207
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
5208
|
-
#
|
5209
|
-
#
|
5210
|
-
# 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
|
5211
5194
|
# User Guide*.
|
5212
5195
|
#
|
5213
5196
|
#
|
@@ -5217,7 +5200,7 @@ module Aws::AutoScaling
|
|
5217
5200
|
# @option params [String] :service_linked_role_arn
|
5218
5201
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
5219
5202
|
# Auto Scaling group uses to call other AWS services on your behalf. For
|
5220
|
-
# more information, see [Service-
|
5203
|
+
# more information, see [Service-linked roles][1] in the *Amazon EC2
|
5221
5204
|
# Auto Scaling User Guide*.
|
5222
5205
|
#
|
5223
5206
|
#
|
@@ -5226,21 +5209,24 @@ module Aws::AutoScaling
|
|
5226
5209
|
#
|
5227
5210
|
# @option params [Integer] :max_instance_lifetime
|
5228
5211
|
# The maximum amount of time, in seconds, that an instance can be in
|
5229
|
-
# service. The default is null.
|
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*.
|
5230
5217
|
#
|
5231
|
-
# This parameter is optional, but if you specify a value for it, you
|
5232
|
-
# must specify a value of at least 604,800 seconds (7 days). To clear a
|
5233
|
-
# previously set value, specify a new value of 0.
|
5234
5218
|
#
|
5235
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
5236
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
5237
|
-
# Guide*.
|
5238
5219
|
#
|
5239
|
-
#
|
5220
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
5240
5221
|
#
|
5222
|
+
# @option params [Boolean] :capacity_rebalance
|
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*.
|
5241
5226
|
#
|
5242
5227
|
#
|
5243
|
-
#
|
5228
|
+
#
|
5229
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
5244
5230
|
#
|
5245
5231
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
5246
5232
|
#
|
@@ -5319,6 +5305,7 @@ module Aws::AutoScaling
|
|
5319
5305
|
# new_instances_protected_from_scale_in: false,
|
5320
5306
|
# service_linked_role_arn: "ResourceName",
|
5321
5307
|
# max_instance_lifetime: 1,
|
5308
|
+
# capacity_rebalance: false,
|
5322
5309
|
# })
|
5323
5310
|
#
|
5324
5311
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation
|
@@ -5343,7 +5330,7 @@ module Aws::AutoScaling
|
|
5343
5330
|
params: params,
|
5344
5331
|
config: config)
|
5345
5332
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5346
|
-
context[:gem_version] = '1.
|
5333
|
+
context[:gem_version] = '1.49.0'
|
5347
5334
|
Seahorse::Client::Request.new(handlers, context)
|
5348
5335
|
end
|
5349
5336
|
|