aws-sdk-autoscaling 1.45.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +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
@@ -55,8 +55,8 @@ module Aws::AutoScaling
|
|
55
55
|
#
|
56
56
|
# * `SimpleScaling` (default)
|
57
57
|
#
|
58
|
-
# For more information, see [Target
|
59
|
-
# [Step and
|
58
|
+
# For more information, see [Target tracking scaling policies][1] and
|
59
|
+
# [Step and simple scaling policies][2] in the *Amazon EC2 Auto Scaling
|
60
60
|
# User Guide*.
|
61
61
|
#
|
62
62
|
#
|
@@ -309,7 +309,7 @@ module Aws::AutoScaling
|
|
309
309
|
# period to complete before executing the policy.
|
310
310
|
#
|
311
311
|
# Valid only if the policy type is `SimpleScaling`. For more
|
312
|
-
# information, see [Scaling
|
312
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
313
313
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
314
314
|
#
|
315
315
|
#
|
@@ -372,6 +372,10 @@ module Aws::AutoScaling
|
|
372
372
|
# Valid Range: Minimum value of 0.
|
373
373
|
# @return [Integer]
|
374
374
|
#
|
375
|
+
# @!attribute [rw] capacity_rebalance
|
376
|
+
# Indicates whether Capacity Rebalancing is enabled.
|
377
|
+
# @return [Boolean]
|
378
|
+
#
|
375
379
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
|
376
380
|
#
|
377
381
|
class AutoScalingGroup < Struct.new(
|
@@ -400,7 +404,8 @@ module Aws::AutoScaling
|
|
400
404
|
:termination_policies,
|
401
405
|
:new_instances_protected_from_scale_in,
|
402
406
|
:service_linked_role_arn,
|
403
|
-
:max_instance_lifetime
|
407
|
+
:max_instance_lifetime,
|
408
|
+
:capacity_rebalance)
|
404
409
|
SENSITIVE = []
|
405
410
|
include Aws::Structure
|
406
411
|
end
|
@@ -415,10 +420,9 @@ module Aws::AutoScaling
|
|
415
420
|
# }
|
416
421
|
#
|
417
422
|
# @!attribute [rw] auto_scaling_group_names
|
418
|
-
# The names of the Auto Scaling groups.
|
419
|
-
#
|
420
|
-
#
|
421
|
-
# parameter.
|
423
|
+
# The names of the Auto Scaling groups. By default, you can only
|
424
|
+
# specify up to 50 names. You can optionally increase this limit using
|
425
|
+
# the `MaxRecords` parameter.
|
422
426
|
#
|
423
427
|
# If you omit this parameter, all Auto Scaling groups are described.
|
424
428
|
# @return [Array<String>]
|
@@ -808,6 +812,11 @@ module Aws::AutoScaling
|
|
808
812
|
# {
|
809
813
|
# instance_type: "XmlStringMaxLen255",
|
810
814
|
# weighted_capacity: "XmlStringMaxLen32",
|
815
|
+
# launch_template_specification: {
|
816
|
+
# launch_template_id: "XmlStringMaxLen255",
|
817
|
+
# launch_template_name: "LaunchTemplateName",
|
818
|
+
# version: "XmlStringMaxLen255",
|
819
|
+
# },
|
811
820
|
# },
|
812
821
|
# ],
|
813
822
|
# },
|
@@ -834,6 +843,7 @@ module Aws::AutoScaling
|
|
834
843
|
# vpc_zone_identifier: "XmlStringMaxLen2047",
|
835
844
|
# termination_policies: ["XmlStringMaxLen1600"],
|
836
845
|
# new_instances_protected_from_scale_in: false,
|
846
|
+
# capacity_rebalance: false,
|
837
847
|
# lifecycle_hook_specification_list: [
|
838
848
|
# {
|
839
849
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
@@ -864,34 +874,32 @@ module Aws::AutoScaling
|
|
864
874
|
# @return [String]
|
865
875
|
#
|
866
876
|
# @!attribute [rw] launch_configuration_name
|
867
|
-
# The name of the launch configuration to use
|
868
|
-
# launched. To get the launch configuration name, use the
|
869
|
-
# DescribeLaunchConfigurations API operation. New launch
|
870
|
-
# configurations can be created with the CreateLaunchConfiguration
|
871
|
-
# API.
|
877
|
+
# The name of the launch configuration to use to launch instances.
|
872
878
|
#
|
873
|
-
# You must specify
|
874
|
-
# `
|
875
|
-
# `
|
879
|
+
# Conditional: You must specify either a launch template
|
880
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
|
881
|
+
# configuration (`LaunchConfigurationName` or `InstanceId`).
|
876
882
|
# @return [String]
|
877
883
|
#
|
878
884
|
# @!attribute [rw] launch_template
|
879
|
-
# Parameters used to specify the launch template and version to
|
880
|
-
#
|
885
|
+
# Parameters used to specify the [launch template][1] and version to
|
886
|
+
# use to launch instances.
|
881
887
|
#
|
882
|
-
#
|
883
|
-
#
|
888
|
+
# Conditional: You must specify either a launch template
|
889
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
|
890
|
+
# configuration (`LaunchConfigurationName` or `InstanceId`).
|
884
891
|
#
|
885
|
-
#
|
886
|
-
# Scaling group
|
892
|
+
# <note markdown="1"> The launch template that is specified must be configured for use
|
893
|
+
# with an Auto Scaling group. For more information, see [Creating a
|
894
|
+
# launch template for an Auto Scaling group][2] in the *Amazon EC2
|
895
|
+
# Auto Scaling User Guide*.
|
887
896
|
#
|
888
|
-
#
|
889
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
890
|
-
# `MixedInstancesPolicy`.
|
897
|
+
# </note>
|
891
898
|
#
|
892
899
|
#
|
893
900
|
#
|
894
|
-
# [1]: https://docs.aws.amazon.com/
|
901
|
+
# [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html
|
902
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
895
903
|
# @return [Types::LaunchTemplateSpecification]
|
896
904
|
#
|
897
905
|
# @!attribute [rw] mixed_instances_policy
|
@@ -902,42 +910,36 @@ module Aws::AutoScaling
|
|
902
910
|
# The policy includes parameters that not only define the distribution
|
903
911
|
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
904
912
|
# for Spot Instances, and how the Auto Scaling group allocates
|
905
|
-
# instance types to fulfill On-Demand and Spot
|
906
|
-
# parameters that specify the instance configuration
|
907
|
-
# launch template and instance types.
|
913
|
+
# instance types to fulfill On-Demand and Spot capacities, but also
|
914
|
+
# the parameters that specify the instance configuration
|
915
|
+
# information—the launch template and instance types. The policy can
|
916
|
+
# also include a weight for each instance type and different launch
|
917
|
+
# templates for individual instance types. For more information, see
|
918
|
+
# [Auto Scaling groups with multiple instance types and purchase
|
919
|
+
# options][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
908
920
|
#
|
909
|
-
#
|
910
|
-
#
|
911
|
-
#
|
912
|
-
# Auto Scaling User Guide*.
|
913
|
-
#
|
914
|
-
# You must specify one of the following parameters in your request:
|
915
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
916
|
-
# `MixedInstancesPolicy`.
|
921
|
+
# Conditional: You must specify either a launch template
|
922
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
|
923
|
+
# configuration (`LaunchConfigurationName` or `InstanceId`).
|
917
924
|
#
|
918
925
|
#
|
919
926
|
#
|
920
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
921
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
927
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
922
928
|
# @return [Types::MixedInstancesPolicy]
|
923
929
|
#
|
924
930
|
# @!attribute [rw] instance_id
|
925
|
-
# The ID of the instance used to
|
926
|
-
#
|
927
|
-
#
|
928
|
-
#
|
929
|
-
#
|
930
|
-
#
|
931
|
-
#
|
932
|
-
# instance, except for the block device mapping.
|
933
|
-
#
|
934
|
-
# You must specify one of the following parameters in your request:
|
935
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
936
|
-
# `MixedInstancesPolicy`.
|
931
|
+
# The ID of the instance used to base the launch configuration on. If
|
932
|
+
# specified, Amazon EC2 Auto Scaling uses the configuration values
|
933
|
+
# from the specified instance to create a new launch configuration. To
|
934
|
+
# get the instance ID, use the Amazon EC2 [DescribeInstances][1] API
|
935
|
+
# operation. For more information, see [Creating an Auto Scaling group
|
936
|
+
# using an EC2 instance][2] in the *Amazon EC2 Auto Scaling User
|
937
|
+
# Guide*.
|
937
938
|
#
|
938
939
|
#
|
939
940
|
#
|
940
941
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html
|
942
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html
|
941
943
|
# @return [String]
|
942
944
|
#
|
943
945
|
# @!attribute [rw] min_size
|
@@ -960,23 +962,19 @@ module Aws::AutoScaling
|
|
960
962
|
# @!attribute [rw] desired_capacity
|
961
963
|
# The desired capacity is the initial capacity of the Auto Scaling
|
962
964
|
# group at the time of its creation and the capacity it attempts to
|
963
|
-
# maintain. It can scale beyond this capacity if you configure
|
964
|
-
#
|
965
|
-
#
|
966
|
-
#
|
967
|
-
#
|
968
|
-
# you do not specify a desired capacity, the default is the minimum
|
969
|
-
# size of the group.
|
965
|
+
# maintain. It can scale beyond this capacity if you configure auto
|
966
|
+
# scaling. 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. If you do not specify a desired capacity, the default is the
|
969
|
+
# minimum size of the group.
|
970
970
|
# @return [Integer]
|
971
971
|
#
|
972
972
|
# @!attribute [rw] default_cooldown
|
973
973
|
# The amount of time, in seconds, after a scaling activity completes
|
974
974
|
# before another scaling activity can start. The default value is
|
975
|
-
# `300`.
|
976
|
-
#
|
977
|
-
#
|
978
|
-
# when using other scaling policies or scheduled scaling. For more
|
979
|
-
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
|
975
|
+
# `300`. This setting applies when using simple scaling policies, but
|
976
|
+
# not when using other scaling policies or scheduled scaling. For more
|
977
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1]
|
980
978
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
981
979
|
#
|
982
980
|
#
|
@@ -985,8 +983,9 @@ module Aws::AutoScaling
|
|
985
983
|
# @return [Integer]
|
986
984
|
#
|
987
985
|
# @!attribute [rw] availability_zones
|
988
|
-
#
|
989
|
-
# optional if you specify one
|
986
|
+
# A list of Availability Zones where instances in the Auto Scaling
|
987
|
+
# group can be created. This parameter is optional if you specify one
|
988
|
+
# or more subnets for `VPCZoneIdentifier`.
|
990
989
|
#
|
991
990
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
992
991
|
# parameter is required to launch instances into EC2-Classic.
|
@@ -995,24 +994,15 @@ module Aws::AutoScaling
|
|
995
994
|
# @!attribute [rw] load_balancer_names
|
996
995
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
997
996
|
# group. For Application Load Balancers and Network Load Balancers,
|
998
|
-
# specify
|
999
|
-
# instead.
|
1000
|
-
#
|
1001
|
-
# For more information, see [Using a Load Balancer with an Auto
|
1002
|
-
# Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1003
|
-
#
|
1004
|
-
#
|
1005
|
-
#
|
1006
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
997
|
+
# specify `TargetGroupARNs` instead.
|
1007
998
|
# @return [Array<String>]
|
1008
999
|
#
|
1009
1000
|
# @!attribute [rw] target_group_arns
|
1010
1001
|
# The Amazon Resource Names (ARN) of the target groups to associate
|
1011
1002
|
# with the Auto Scaling group. Instances are registered as targets in
|
1012
|
-
# a target group, and traffic is routed to the target group.
|
1013
|
-
#
|
1014
|
-
#
|
1015
|
-
# Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1003
|
+
# a target group, and traffic is routed to the target group. For more
|
1004
|
+
# information, see [Elastic Load Balancing and Amazon EC2 Auto
|
1005
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1016
1006
|
#
|
1017
1007
|
#
|
1018
1008
|
#
|
@@ -1021,13 +1011,12 @@ module Aws::AutoScaling
|
|
1021
1011
|
#
|
1022
1012
|
# @!attribute [rw] health_check_type
|
1023
1013
|
# The service to use for the health checks. The valid values are `EC2`
|
1024
|
-
# and `ELB`.
|
1025
|
-
#
|
1014
|
+
# (default) and `ELB`. If you configure an Auto Scaling group to use
|
1015
|
+
# load balancer (ELB) health checks, it considers the instance
|
1026
1016
|
# unhealthy if it fails either the EC2 status checks or the load
|
1027
|
-
# balancer health checks.
|
1028
|
-
#
|
1029
|
-
#
|
1030
|
-
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1017
|
+
# balancer health checks. For more information, see [Health checks for
|
1018
|
+
# Auto Scaling instances][1] in the *Amazon EC2 Auto Scaling User
|
1019
|
+
# Guide*.
|
1031
1020
|
#
|
1032
1021
|
#
|
1033
1022
|
#
|
@@ -1038,12 +1027,11 @@ module Aws::AutoScaling
|
|
1038
1027
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
1039
1028
|
# before checking the health status of an EC2 instance that has come
|
1040
1029
|
# into service. During this time, any health check failures for the
|
1041
|
-
# instance are ignored. The default value is `0`.
|
1042
|
-
#
|
1043
|
-
#
|
1044
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
1030
|
+
# instance are ignored. The default value is `0`. For more
|
1031
|
+
# information, see [Health check grace period][1] in the *Amazon EC2
|
1032
|
+
# Auto Scaling User Guide*.
|
1045
1033
|
#
|
1046
|
-
# Required if you are adding an `ELB` health check.
|
1034
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
1047
1035
|
#
|
1048
1036
|
#
|
1049
1037
|
#
|
@@ -1051,11 +1039,12 @@ module Aws::AutoScaling
|
|
1051
1039
|
# @return [Integer]
|
1052
1040
|
#
|
1053
1041
|
# @!attribute [rw] placement_group
|
1054
|
-
# The name of
|
1055
|
-
# if any. A placement group is a logical grouping of
|
1056
|
-
# a single Availability Zone. You cannot specify
|
1057
|
-
# Zones and a placement group. For more
|
1058
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
1042
|
+
# The name of an existing placement group into which to launch your
|
1043
|
+
# instances, if any. A placement group is a logical grouping of
|
1044
|
+
# instances within a single Availability Zone. You cannot specify
|
1045
|
+
# multiple Availability Zones and a placement group. For more
|
1046
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
1047
|
+
# for Linux Instances*.
|
1059
1048
|
#
|
1060
1049
|
#
|
1061
1050
|
#
|
@@ -1063,10 +1052,9 @@ module Aws::AutoScaling
|
|
1063
1052
|
# @return [String]
|
1064
1053
|
#
|
1065
1054
|
# @!attribute [rw] vpc_zone_identifier
|
1066
|
-
# A comma-separated list of subnet IDs for
|
1067
|
-
# (VPC).
|
1068
|
-
#
|
1069
|
-
# If you specify `VPCZoneIdentifier` with `AvailabilityZones`, the
|
1055
|
+
# A comma-separated list of subnet IDs for a virtual private cloud
|
1056
|
+
# (VPC) where instances in the Auto Scaling group can be created. If
|
1057
|
+
# you specify `VPCZoneIdentifier` with `AvailabilityZones`, the
|
1070
1058
|
# subnets that you specify for this parameter must reside in those
|
1071
1059
|
# Availability Zones.
|
1072
1060
|
#
|
@@ -1075,13 +1063,11 @@ module Aws::AutoScaling
|
|
1075
1063
|
# @return [String]
|
1076
1064
|
#
|
1077
1065
|
# @!attribute [rw] termination_policies
|
1078
|
-
#
|
1079
|
-
# terminate. These policies are executed in the order that
|
1080
|
-
#
|
1081
|
-
#
|
1082
|
-
#
|
1083
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
1084
|
-
# Guide*.
|
1066
|
+
# A policy or a list of policies that are used to select the instance
|
1067
|
+
# to terminate. These policies are executed in the order that you list
|
1068
|
+
# them. For more information, see [Controlling which Auto Scaling
|
1069
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
1070
|
+
# Scaling User Guide*.
|
1085
1071
|
#
|
1086
1072
|
#
|
1087
1073
|
#
|
@@ -1090,10 +1076,9 @@ module Aws::AutoScaling
|
|
1090
1076
|
#
|
1091
1077
|
# @!attribute [rw] new_instances_protected_from_scale_in
|
1092
1078
|
# Indicates whether newly launched instances are protected from
|
1093
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
1094
|
-
#
|
1095
|
-
#
|
1096
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto
|
1079
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
1080
|
+
# information about preventing instances from terminating on scale in,
|
1081
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto
|
1097
1082
|
# Scaling User Guide*.
|
1098
1083
|
#
|
1099
1084
|
#
|
@@ -1101,23 +1086,38 @@ module Aws::AutoScaling
|
|
1101
1086
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
1102
1087
|
# @return [Boolean]
|
1103
1088
|
#
|
1089
|
+
# @!attribute [rw] capacity_rebalance
|
1090
|
+
# Indicates whether Capacity Rebalancing is enabled. Otherwise,
|
1091
|
+
# Capacity Rebalancing is disabled. When you turn on Capacity
|
1092
|
+
# Rebalancing, Amazon EC2 Auto Scaling attempts to launch a Spot
|
1093
|
+
# Instance whenever Amazon EC2 notifies that a Spot Instance is at an
|
1094
|
+
# elevated risk of interruption. After launching a new instance, it
|
1095
|
+
# then terminates an old instance. For more information, see [Amazon
|
1096
|
+
# EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2 Auto
|
1097
|
+
# Scaling User Guide*.
|
1098
|
+
#
|
1099
|
+
#
|
1100
|
+
#
|
1101
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
1102
|
+
# @return [Boolean]
|
1103
|
+
#
|
1104
1104
|
# @!attribute [rw] lifecycle_hook_specification_list
|
1105
|
-
# One or more lifecycle hooks
|
1105
|
+
# One or more lifecycle hooks for the group, which specify actions to
|
1106
|
+
# perform when Amazon EC2 Auto Scaling launches or terminates
|
1107
|
+
# instances.
|
1106
1108
|
# @return [Array<Types::LifecycleHookSpecification>]
|
1107
1109
|
#
|
1108
1110
|
# @!attribute [rw] tags
|
1109
1111
|
# One or more tags. You can tag your Auto Scaling group and propagate
|
1110
|
-
# the tags to the Amazon EC2 instances it launches.
|
1111
|
-
#
|
1112
|
-
#
|
1113
|
-
#
|
1114
|
-
#
|
1115
|
-
#
|
1116
|
-
#
|
1117
|
-
# the Auto Scaling
|
1118
|
-
#
|
1119
|
-
# For more information, see [Tagging Auto Scaling Groups and
|
1120
|
-
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1112
|
+
# the tags to the Amazon EC2 instances it launches. Tags are not
|
1113
|
+
# propagated to Amazon EBS volumes. To add tags to Amazon EBS volumes,
|
1114
|
+
# specify the tags in a launch template but use caution. If the launch
|
1115
|
+
# template specifies an instance tag with a key that is also specified
|
1116
|
+
# for the Auto Scaling group, Amazon EC2 Auto Scaling overrides the
|
1117
|
+
# value of that instance tag with the value specified by the Auto
|
1118
|
+
# Scaling group. For more information, see [Tagging Auto Scaling
|
1119
|
+
# groups and instances][1] in the *Amazon EC2 Auto Scaling User
|
1120
|
+
# Guide*.
|
1121
1121
|
#
|
1122
1122
|
#
|
1123
1123
|
#
|
@@ -1129,7 +1129,7 @@ module Aws::AutoScaling
|
|
1129
1129
|
# Auto Scaling group uses to call other AWS services on your behalf.
|
1130
1130
|
# By default, Amazon EC2 Auto Scaling uses a service-linked role named
|
1131
1131
|
# AWSServiceRoleForAutoScaling, which it creates if it does not exist.
|
1132
|
-
# For more information, see [Service-
|
1132
|
+
# For more information, see [Service-linked roles][1] in the *Amazon
|
1133
1133
|
# EC2 Auto Scaling User Guide*.
|
1134
1134
|
#
|
1135
1135
|
#
|
@@ -1139,18 +1139,12 @@ module Aws::AutoScaling
|
|
1139
1139
|
#
|
1140
1140
|
# @!attribute [rw] max_instance_lifetime
|
1141
1141
|
# The maximum amount of time, in seconds, that an instance can be in
|
1142
|
-
# service. The default is null.
|
1143
|
-
#
|
1144
|
-
#
|
1145
|
-
#
|
1146
|
-
# a previously set value, specify a new value of 0.
|
1147
|
-
#
|
1148
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
1149
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
1142
|
+
# service. The default is null. If specified, the value must be either
|
1143
|
+
# 0 or a number equal to or greater than 86,400 seconds (1 day). For
|
1144
|
+
# more information, see [Replacing Auto Scaling instances based on
|
1145
|
+
# maximum instance lifetime][1] in the *Amazon EC2 Auto Scaling User
|
1150
1146
|
# Guide*.
|
1151
1147
|
#
|
1152
|
-
# Valid Range: Minimum value of 0.
|
1153
|
-
#
|
1154
1148
|
#
|
1155
1149
|
#
|
1156
1150
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
@@ -1177,6 +1171,7 @@ module Aws::AutoScaling
|
|
1177
1171
|
:vpc_zone_identifier,
|
1178
1172
|
:termination_policies,
|
1179
1173
|
:new_instances_protected_from_scale_in,
|
1174
|
+
:capacity_rebalance,
|
1180
1175
|
:lifecycle_hook_specification_list,
|
1181
1176
|
:tags,
|
1182
1177
|
:service_linked_role_arn,
|
@@ -1278,7 +1273,7 @@ module Aws::AutoScaling
|
|
1278
1273
|
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic
|
1279
1274
|
# instances to. For more information, see [ClassicLink][1] in the
|
1280
1275
|
# *Amazon EC2 User Guide for Linux Instances* and [Linking EC2-Classic
|
1281
|
-
#
|
1276
|
+
# instances to a VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
1282
1277
|
#
|
1283
1278
|
# This parameter can only be used if you are launching EC2-Classic
|
1284
1279
|
# instances.
|
@@ -1293,7 +1288,7 @@ module Aws::AutoScaling
|
|
1293
1288
|
# The IDs of one or more security groups for the specified
|
1294
1289
|
# ClassicLink-enabled VPC. For more information, see [ClassicLink][1]
|
1295
1290
|
# in the *Amazon EC2 User Guide for Linux Instances* and [Linking
|
1296
|
-
# EC2-Classic
|
1291
|
+
# EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling
|
1297
1292
|
# User Guide*.
|
1298
1293
|
#
|
1299
1294
|
# If you specify the `ClassicLinkVPCId` parameter, you must specify
|
@@ -1307,8 +1302,8 @@ module Aws::AutoScaling
|
|
1307
1302
|
#
|
1308
1303
|
# @!attribute [rw] user_data
|
1309
1304
|
# The Base64-encoded user data to make available to the launched EC2
|
1310
|
-
# instances. For more information, see [Instance
|
1311
|
-
#
|
1305
|
+
# instances. For more information, see [Instance metadata and user
|
1306
|
+
# data][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
1312
1307
|
#
|
1313
1308
|
#
|
1314
1309
|
#
|
@@ -1324,8 +1319,8 @@ module Aws::AutoScaling
|
|
1324
1319
|
# override any other instance attributes, specify them as part of the
|
1325
1320
|
# same request.
|
1326
1321
|
#
|
1327
|
-
# For more information, see [
|
1328
|
-
# EC2
|
1322
|
+
# For more information, see [Creating a launch configuration using an
|
1323
|
+
# EC2 instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1329
1324
|
#
|
1330
1325
|
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
1331
1326
|
# and `InstanceType`.
|
@@ -1382,15 +1377,15 @@ module Aws::AutoScaling
|
|
1382
1377
|
#
|
1383
1378
|
#
|
1384
1379
|
#
|
1385
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/
|
1380
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
|
1386
1381
|
# @return [Types::InstanceMonitoring]
|
1387
1382
|
#
|
1388
1383
|
# @!attribute [rw] spot_price
|
1389
1384
|
# The maximum hourly price to be paid for any Spot Instance launched
|
1390
1385
|
# to fulfill the request. Spot Instances are launched when the price
|
1391
1386
|
# you specify exceeds the current Spot price. For more information,
|
1392
|
-
# see [
|
1393
|
-
#
|
1387
|
+
# see [Requesting Spot Instances][1] in the *Amazon EC2 Auto Scaling
|
1388
|
+
# User Guide*.
|
1394
1389
|
#
|
1395
1390
|
# <note markdown="1"> When you change your maximum price by creating a new launch
|
1396
1391
|
# configuration, running instances will continue to run as long as the
|
@@ -1409,8 +1404,8 @@ module Aws::AutoScaling
|
|
1409
1404
|
# associated with the IAM role for the instance. The instance profile
|
1410
1405
|
# contains the IAM role.
|
1411
1406
|
#
|
1412
|
-
# For more information, see [IAM
|
1413
|
-
# Amazon EC2
|
1407
|
+
# For more information, see [IAM role for applications that run on
|
1408
|
+
# Amazon EC2 instances][1] in the *Amazon EC2 Auto Scaling User
|
1414
1409
|
# Guide*.
|
1415
1410
|
#
|
1416
1411
|
#
|
@@ -1441,7 +1436,7 @@ module Aws::AutoScaling
|
|
1441
1436
|
# (VPC), specifies whether to assign a public IP address to the
|
1442
1437
|
# group's instances. If you specify `true`, each instance in the Auto
|
1443
1438
|
# Scaling group receives a unique public IP address. For more
|
1444
|
-
# information, see [Launching Auto Scaling
|
1439
|
+
# information, see [Launching Auto Scaling instances in a VPC][1] in
|
1445
1440
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
1446
1441
|
#
|
1447
1442
|
# If you specify this parameter, you must specify at least one subnet
|
@@ -1473,24 +1468,24 @@ module Aws::AutoScaling
|
|
1473
1468
|
# If you specify `PlacementTenancy`, you must specify at least one
|
1474
1469
|
# subnet for `VPCZoneIdentifier` when you create your group.
|
1475
1470
|
#
|
1476
|
-
# For more information, see [
|
1477
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
1471
|
+
# For more information, see [Configuring instance tenancy with Amazon
|
1472
|
+
# EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1478
1473
|
#
|
1479
1474
|
# Valid Values: `default` \| `dedicated`
|
1480
1475
|
#
|
1481
1476
|
#
|
1482
1477
|
#
|
1483
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1478
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
|
1484
1479
|
# @return [String]
|
1485
1480
|
#
|
1486
1481
|
# @!attribute [rw] metadata_options
|
1487
1482
|
# The metadata options for the instances. For more information, see
|
1488
|
-
# [Instance Metadata
|
1489
|
-
#
|
1483
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2
|
1484
|
+
# Auto Scaling User Guide*.
|
1490
1485
|
#
|
1491
1486
|
#
|
1492
1487
|
#
|
1493
|
-
# [1]: https://docs.aws.amazon.com/
|
1488
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
1494
1489
|
# @return [Types::InstanceMetadataOptions]
|
1495
1490
|
#
|
1496
1491
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType AWS API Documentation
|
@@ -2616,7 +2611,7 @@ module Aws::AutoScaling
|
|
2616
2611
|
#
|
2617
2612
|
# For more information, see [Using Encryption with EBS-Backed AMIs][3]
|
2618
2613
|
# in the *Amazon EC2 User Guide for Linux Instances* and [Required CMK
|
2619
|
-
#
|
2614
|
+
# key policy for use with encrypted volumes][4] in the *Amazon EC2
|
2620
2615
|
# Auto Scaling User Guide*.
|
2621
2616
|
#
|
2622
2617
|
#
|
@@ -2817,7 +2812,7 @@ module Aws::AutoScaling
|
|
2817
2812
|
# period to complete before executing the policy.
|
2818
2813
|
#
|
2819
2814
|
# Valid only if the policy type is `SimpleScaling`. For more
|
2820
|
-
# information, see [Scaling
|
2815
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1]
|
2821
2816
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
2822
2817
|
#
|
2823
2818
|
#
|
@@ -2923,8 +2918,8 @@ module Aws::AutoScaling
|
|
2923
2918
|
# Describes a filter that is used to return a more specific list of
|
2924
2919
|
# results when describing tags.
|
2925
2920
|
#
|
2926
|
-
# For more information, see [Tagging Auto Scaling
|
2927
|
-
#
|
2921
|
+
# For more information, see [Tagging Auto Scaling groups and
|
2922
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
2928
2923
|
#
|
2929
2924
|
#
|
2930
2925
|
#
|
@@ -3019,12 +3014,12 @@ module Aws::AutoScaling
|
|
3019
3014
|
end
|
3020
3015
|
|
3021
3016
|
# The metadata options for the instances. For more information, see
|
3022
|
-
# [Instance Metadata
|
3023
|
-
#
|
3017
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
|
3018
|
+
# Scaling User Guide*.
|
3024
3019
|
#
|
3025
3020
|
#
|
3026
3021
|
#
|
3027
|
-
# [1]: https://docs.aws.amazon.com/
|
3022
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
3028
3023
|
#
|
3029
3024
|
# @note When making an API call, you may pass InstanceMetadataOptions
|
3030
3025
|
# data as a hash:
|
@@ -3199,7 +3194,7 @@ module Aws::AutoScaling
|
|
3199
3194
|
# The instances distribution specifies the distribution of On-Demand
|
3200
3195
|
# Instances and Spot Instances, the maximum price to pay for Spot
|
3201
3196
|
# Instances, and how the Auto Scaling group allocates instance types to
|
3202
|
-
# fulfill On-Demand and Spot
|
3197
|
+
# fulfill On-Demand and Spot capacities.
|
3203
3198
|
#
|
3204
3199
|
# When you update `SpotAllocationStrategy`, `SpotInstancePools`, or
|
3205
3200
|
# `SpotMaxPrice`, this update action does not deploy any changes across
|
@@ -3224,80 +3219,49 @@ module Aws::AutoScaling
|
|
3224
3219
|
#
|
3225
3220
|
# @!attribute [rw] on_demand_allocation_strategy
|
3226
3221
|
# Indicates how to allocate instance types to fulfill On-Demand
|
3227
|
-
# capacity.
|
3228
|
-
#
|
3229
|
-
#
|
3230
|
-
#
|
3231
|
-
#
|
3232
|
-
#
|
3233
|
-
#
|
3234
|
-
#
|
3235
|
-
# launches the remaining capacity using the second priority instance
|
3236
|
-
# type, and so on.
|
3222
|
+
# capacity. The only valid value is `prioritized`, which is also the
|
3223
|
+
# default value. This strategy uses the order of instance types in the
|
3224
|
+
# overrides to define the launch priority of each instance type. The
|
3225
|
+
# first instance type in the array is prioritized higher than the
|
3226
|
+
# last. If all your On-Demand capacity cannot be fulfilled using your
|
3227
|
+
# highest priority instance, then the Auto Scaling groups launches the
|
3228
|
+
# remaining capacity using the second priority instance type, and so
|
3229
|
+
# on.
|
3237
3230
|
# @return [String]
|
3238
3231
|
#
|
3239
3232
|
# @!attribute [rw] on_demand_base_capacity
|
3240
3233
|
# The minimum amount of the Auto Scaling group's capacity that must
|
3241
3234
|
# be fulfilled by On-Demand Instances. This base portion is
|
3242
|
-
# provisioned first as your group scales.
|
3243
|
-
#
|
3244
|
-
#
|
3245
|
-
#
|
3246
|
-
# desired capacity, per the `OnDemandPercentageAboveBaseCapacity`
|
3247
|
-
# setting.
|
3248
|
-
#
|
3249
|
-
# <note markdown="1"> An update to this setting means a gradual replacement of instances
|
3250
|
-
# to maintain the specified number of On-Demand Instances for your
|
3251
|
-
# base capacity. When replacing instances, Amazon EC2 Auto Scaling
|
3252
|
-
# launches new instances before terminating the old ones.
|
3253
|
-
#
|
3254
|
-
# </note>
|
3235
|
+
# provisioned first as your group scales. Defaults to 0 if not
|
3236
|
+
# specified. If you specify weights for the instance types in the
|
3237
|
+
# overrides, set the value of `OnDemandBaseCapacity` in terms of the
|
3238
|
+
# number of capacity units, and not the number of instances.
|
3255
3239
|
# @return [Integer]
|
3256
3240
|
#
|
3257
3241
|
# @!attribute [rw] on_demand_percentage_above_base_capacity
|
3258
3242
|
# Controls the percentages of On-Demand Instances and Spot Instances
|
3259
3243
|
# for your additional capacity beyond `OnDemandBaseCapacity`.
|
3260
|
-
#
|
3261
|
-
#
|
3262
|
-
#
|
3263
|
-
# Instances.
|
3264
|
-
#
|
3265
|
-
# <note markdown="1"> An update to this setting means a gradual replacement of instances
|
3266
|
-
# to maintain the percentage of On-Demand Instances for your
|
3267
|
-
# additional capacity above the base capacity. When replacing
|
3268
|
-
# instances, Amazon EC2 Auto Scaling launches new instances before
|
3269
|
-
# terminating the old ones.
|
3270
|
-
#
|
3271
|
-
# </note>
|
3272
|
-
#
|
3273
|
-
# Valid Range: Minimum value of 0. Maximum value of 100.
|
3244
|
+
# Expressed as a number (for example, 20 specifies 20% On-Demand
|
3245
|
+
# Instances, 80% Spot Instances). Defaults to 100 if not specified. If
|
3246
|
+
# set to 100, only On-Demand Instances are provisioned.
|
3274
3247
|
# @return [Integer]
|
3275
3248
|
#
|
3276
3249
|
# @!attribute [rw] spot_allocation_strategy
|
3277
|
-
# Indicates how to allocate instances across Spot Instance pools.
|
3278
|
-
#
|
3279
|
-
# If the allocation strategy is `lowest-price`, the Auto Scaling group
|
3250
|
+
# Indicates how to allocate instances across Spot Instance pools. If
|
3251
|
+
# the allocation strategy is `lowest-price`, the Auto Scaling group
|
3280
3252
|
# launches instances using the Spot pools with the lowest price, and
|
3281
3253
|
# evenly allocates your instances across the number of Spot pools that
|
3282
3254
|
# you specify. If the allocation strategy is `capacity-optimized`, the
|
3283
3255
|
# Auto Scaling group launches instances using Spot pools that are
|
3284
|
-
# optimally chosen based on the available Spot capacity.
|
3285
|
-
#
|
3286
|
-
# The default Spot allocation strategy for calls that you make through
|
3287
|
-
# the API, the AWS CLI, or the AWS SDKs is `lowest-price`. The default
|
3288
|
-
# Spot allocation strategy for the AWS Management Console is
|
3289
|
-
# `capacity-optimized`.
|
3290
|
-
#
|
3291
|
-
# Valid values: `lowest-price` \| `capacity-optimized`
|
3256
|
+
# optimally chosen based on the available Spot capacity. Defaults to
|
3257
|
+
# `lowest-price` if not specified.
|
3292
3258
|
# @return [String]
|
3293
3259
|
#
|
3294
3260
|
# @!attribute [rw] spot_instance_pools
|
3295
3261
|
# The number of Spot Instance pools across which to allocate your Spot
|
3296
3262
|
# Instances. The Spot pools are determined from the different instance
|
3297
|
-
# types in the
|
3298
|
-
# is
|
3299
|
-
#
|
3300
|
-
# Used only when the Spot allocation strategy is `lowest-price`.
|
3263
|
+
# types in the overrides. Defaults to 2 if not specified. Valid only
|
3264
|
+
# when the Spot allocation strategy is `lowest-price`.
|
3301
3265
|
#
|
3302
3266
|
# Valid Range: Minimum value of 1. Maximum value of 20.
|
3303
3267
|
# @return [Integer]
|
@@ -3306,10 +3270,8 @@ module Aws::AutoScaling
|
|
3306
3270
|
# The maximum price per unit hour that you are willing to pay for a
|
3307
3271
|
# Spot Instance. If you leave the value of this parameter blank (which
|
3308
3272
|
# is the default), the maximum Spot price is set at the On-Demand
|
3309
|
-
# price.
|
3310
|
-
#
|
3311
|
-
# To remove a value that you previously set, include the parameter but
|
3312
|
-
# leave the value blank.
|
3273
|
+
# price. To remove a value that you previously set, include the
|
3274
|
+
# parameter but leave the value blank.
|
3313
3275
|
# @return [String]
|
3314
3276
|
#
|
3315
3277
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstancesDistribution AWS API Documentation
|
@@ -3350,10 +3312,8 @@ module Aws::AutoScaling
|
|
3350
3312
|
#
|
3351
3313
|
# @!attribute [rw] image_id
|
3352
3314
|
# The ID of the Amazon Machine Image (AMI) to use to launch your EC2
|
3353
|
-
# instances.
|
3354
|
-
#
|
3355
|
-
# For more information, see [Finding an AMI][1] in the *Amazon EC2
|
3356
|
-
# User Guide for Linux Instances*.
|
3315
|
+
# instances. For more information, see [Finding an AMI][1] in the
|
3316
|
+
# *Amazon EC2 User Guide for Linux Instances*.
|
3357
3317
|
#
|
3358
3318
|
#
|
3359
3319
|
#
|
@@ -3373,10 +3333,9 @@ module Aws::AutoScaling
|
|
3373
3333
|
#
|
3374
3334
|
# @!attribute [rw] security_groups
|
3375
3335
|
# A list that contains the security groups to assign to the instances
|
3376
|
-
# in the Auto Scaling group.
|
3377
|
-
#
|
3378
|
-
#
|
3379
|
-
# *Amazon Virtual Private Cloud User Guide*.
|
3336
|
+
# in the Auto Scaling group. For more information, see [Security
|
3337
|
+
# Groups for Your VPC][1] in the *Amazon Virtual Private Cloud User
|
3338
|
+
# Guide*.
|
3380
3339
|
#
|
3381
3340
|
#
|
3382
3341
|
#
|
@@ -3385,11 +3344,9 @@ module Aws::AutoScaling
|
|
3385
3344
|
#
|
3386
3345
|
# @!attribute [rw] classic_link_vpc_id
|
3387
3346
|
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic
|
3388
|
-
# instances to.
|
3389
|
-
#
|
3390
|
-
#
|
3391
|
-
# Guide for Linux Instances* and [Linking EC2-Classic Instances to a
|
3392
|
-
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
3347
|
+
# instances to. For more information, see [ClassicLink][1] in the
|
3348
|
+
# *Amazon EC2 User Guide for Linux Instances* and [Linking EC2-Classic
|
3349
|
+
# instances to a VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
3393
3350
|
#
|
3394
3351
|
#
|
3395
3352
|
#
|
@@ -3402,7 +3359,7 @@ module Aws::AutoScaling
|
|
3402
3359
|
# `ClassicLinkVPCId`.
|
3403
3360
|
#
|
3404
3361
|
# For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
3405
|
-
# Guide for Linux Instances* and [Linking EC2-Classic
|
3362
|
+
# Guide for Linux Instances* and [Linking EC2-Classic instances to a
|
3406
3363
|
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
3407
3364
|
#
|
3408
3365
|
#
|
@@ -3413,10 +3370,8 @@ module Aws::AutoScaling
|
|
3413
3370
|
#
|
3414
3371
|
# @!attribute [rw] user_data
|
3415
3372
|
# The Base64-encoded user data to make available to the launched EC2
|
3416
|
-
# instances.
|
3417
|
-
#
|
3418
|
-
# For more information, see [Instance Metadata and User Data][1] in
|
3419
|
-
# the *Amazon EC2 User Guide for Linux Instances*.
|
3373
|
+
# instances. For more information, see [Instance metadata and user
|
3374
|
+
# data][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
3420
3375
|
#
|
3421
3376
|
#
|
3422
3377
|
#
|
@@ -3445,10 +3400,8 @@ module Aws::AutoScaling
|
|
3445
3400
|
#
|
3446
3401
|
# @!attribute [rw] block_device_mappings
|
3447
3402
|
# A block device mapping, which specifies the block devices for the
|
3448
|
-
# instance.
|
3449
|
-
#
|
3450
|
-
# For more information, see [Block Device Mapping][1] in the *Amazon
|
3451
|
-
# EC2 User Guide for Linux Instances*.
|
3403
|
+
# instance. For more information, see [Block Device Mapping][1] in the
|
3404
|
+
# *Amazon EC2 User Guide for Linux Instances*.
|
3452
3405
|
#
|
3453
3406
|
#
|
3454
3407
|
#
|
@@ -3464,16 +3417,15 @@ module Aws::AutoScaling
|
|
3464
3417
|
#
|
3465
3418
|
#
|
3466
3419
|
#
|
3467
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/
|
3420
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
|
3468
3421
|
# @return [Types::InstanceMonitoring]
|
3469
3422
|
#
|
3470
3423
|
# @!attribute [rw] spot_price
|
3471
3424
|
# The maximum hourly price to be paid for any Spot Instance launched
|
3472
3425
|
# to fulfill the request. Spot Instances are launched when the price
|
3473
|
-
# you specify exceeds the current Spot price.
|
3474
|
-
#
|
3475
|
-
#
|
3476
|
-
# Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3426
|
+
# you specify exceeds the current Spot price. For more information,
|
3427
|
+
# see [Requesting Spot Instances][1] in the *Amazon EC2 Auto Scaling
|
3428
|
+
# User Guide*.
|
3477
3429
|
#
|
3478
3430
|
#
|
3479
3431
|
#
|
@@ -3483,11 +3435,9 @@ module Aws::AutoScaling
|
|
3483
3435
|
# @!attribute [rw] iam_instance_profile
|
3484
3436
|
# The name or the Amazon Resource Name (ARN) of the instance profile
|
3485
3437
|
# associated with the IAM role for the instance. The instance profile
|
3486
|
-
# contains the IAM role.
|
3487
|
-
#
|
3488
|
-
#
|
3489
|
-
# Amazon EC2 Instances][1] in the *Amazon EC2 Auto Scaling User
|
3490
|
-
# Guide*.
|
3438
|
+
# contains the IAM role. For more information, see [IAM role for
|
3439
|
+
# applications that run on Amazon EC2 instances][1] in the *Amazon EC2
|
3440
|
+
# Auto Scaling User Guide*.
|
3491
3441
|
#
|
3492
3442
|
#
|
3493
3443
|
#
|
@@ -3500,10 +3450,9 @@ module Aws::AutoScaling
|
|
3500
3450
|
#
|
3501
3451
|
# @!attribute [rw] ebs_optimized
|
3502
3452
|
# Specifies whether the launch configuration is optimized for EBS I/O
|
3503
|
-
# (`true`) or not (`false`).
|
3504
|
-
#
|
3505
|
-
#
|
3506
|
-
# *Amazon EC2 User Guide for Linux Instances*.
|
3453
|
+
# (`true`) or not (`false`). For more information, see [Amazon
|
3454
|
+
# EBS-Optimized Instances][1] in the *Amazon EC2 User Guide for Linux
|
3455
|
+
# Instances*.
|
3507
3456
|
#
|
3508
3457
|
#
|
3509
3458
|
#
|
@@ -3512,10 +3461,9 @@ module Aws::AutoScaling
|
|
3512
3461
|
#
|
3513
3462
|
# @!attribute [rw] associate_public_ip_address
|
3514
3463
|
# For Auto Scaling groups that are running in a VPC, specifies whether
|
3515
|
-
# to assign a public IP address to the group's instances.
|
3516
|
-
#
|
3517
|
-
#
|
3518
|
-
# VPC][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3464
|
+
# to assign a public IP address to the group's instances. For more
|
3465
|
+
# information, see [Launching Auto Scaling instances in a VPC][1] in
|
3466
|
+
# the *Amazon EC2 Auto Scaling User Guide*.
|
3519
3467
|
#
|
3520
3468
|
#
|
3521
3469
|
#
|
@@ -3527,22 +3475,22 @@ module Aws::AutoScaling
|
|
3527
3475
|
# instance with `dedicated` tenancy runs on isolated, single-tenant
|
3528
3476
|
# hardware and can only be launched into a VPC.
|
3529
3477
|
#
|
3530
|
-
# For more information, see [
|
3531
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
3478
|
+
# For more information, see [Configuring instance tenancy with Amazon
|
3479
|
+
# EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3532
3480
|
#
|
3533
3481
|
#
|
3534
3482
|
#
|
3535
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
3483
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
|
3536
3484
|
# @return [String]
|
3537
3485
|
#
|
3538
3486
|
# @!attribute [rw] metadata_options
|
3539
3487
|
# The metadata options for the instances. For more information, see
|
3540
|
-
# [Instance Metadata
|
3541
|
-
#
|
3488
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2
|
3489
|
+
# Auto Scaling User Guide*.
|
3542
3490
|
#
|
3543
3491
|
#
|
3544
3492
|
#
|
3545
|
-
# [1]: https://docs.aws.amazon.com/
|
3493
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
3546
3494
|
# @return [Types::InstanceMetadataOptions]
|
3547
3495
|
#
|
3548
3496
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfiguration AWS API Documentation
|
@@ -3648,9 +3596,7 @@ module Aws::AutoScaling
|
|
3648
3596
|
|
3649
3597
|
# Describes a launch template and overrides.
|
3650
3598
|
#
|
3651
|
-
#
|
3652
|
-
# launch template with multiple instance types that can be used to
|
3653
|
-
# launch On-Demand Instances and Spot Instances.
|
3599
|
+
# You specify these parameters as part of a mixed instances policy.
|
3654
3600
|
#
|
3655
3601
|
# When you update the launch template or overrides, existing Amazon EC2
|
3656
3602
|
# instances continue to run. When scale out occurs, Amazon EC2 Auto
|
@@ -3671,22 +3617,24 @@ module Aws::AutoScaling
|
|
3671
3617
|
# {
|
3672
3618
|
# instance_type: "XmlStringMaxLen255",
|
3673
3619
|
# weighted_capacity: "XmlStringMaxLen32",
|
3620
|
+
# launch_template_specification: {
|
3621
|
+
# launch_template_id: "XmlStringMaxLen255",
|
3622
|
+
# launch_template_name: "LaunchTemplateName",
|
3623
|
+
# version: "XmlStringMaxLen255",
|
3624
|
+
# },
|
3674
3625
|
# },
|
3675
3626
|
# ],
|
3676
3627
|
# }
|
3677
3628
|
#
|
3678
3629
|
# @!attribute [rw] launch_template_specification
|
3679
|
-
# The launch template to use.
|
3680
|
-
# template ID or launch template name in the request.
|
3630
|
+
# The launch template to use.
|
3681
3631
|
# @return [Types::LaunchTemplateSpecification]
|
3682
3632
|
#
|
3683
3633
|
# @!attribute [rw] overrides
|
3684
3634
|
# Any parameters that you specify override the same parameters in the
|
3685
|
-
# launch template.
|
3686
|
-
# type
|
3687
|
-
#
|
3688
|
-
# If not provided, Amazon EC2 Auto Scaling will use the instance type
|
3689
|
-
# specified in the launch template to launch instances.
|
3635
|
+
# launch template. If not provided, Amazon EC2 Auto Scaling uses the
|
3636
|
+
# instance type specified in the launch template when it launches an
|
3637
|
+
# instance.
|
3690
3638
|
# @return [Array<Types::LaunchTemplateOverrides>]
|
3691
3639
|
#
|
3692
3640
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplate AWS API Documentation
|
@@ -3698,11 +3646,14 @@ module Aws::AutoScaling
|
|
3698
3646
|
include Aws::Structure
|
3699
3647
|
end
|
3700
3648
|
|
3701
|
-
# Describes an override for a launch template.
|
3702
|
-
#
|
3649
|
+
# Describes an override for a launch template. The maximum number of
|
3650
|
+
# instance types that can be associated with an Auto Scaling group is
|
3651
|
+
# 20. For more information, see [Configuring overrides][1] in the
|
3652
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
3653
|
+
#
|
3654
|
+
#
|
3703
3655
|
#
|
3704
|
-
#
|
3705
|
-
# with an Auto Scaling group is 20.
|
3656
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-override-options.html
|
3706
3657
|
#
|
3707
3658
|
# @note When making an API call, you may pass LaunchTemplateOverrides
|
3708
3659
|
# data as a hash:
|
@@ -3710,30 +3661,37 @@ module Aws::AutoScaling
|
|
3710
3661
|
# {
|
3711
3662
|
# instance_type: "XmlStringMaxLen255",
|
3712
3663
|
# weighted_capacity: "XmlStringMaxLen32",
|
3664
|
+
# launch_template_specification: {
|
3665
|
+
# launch_template_id: "XmlStringMaxLen255",
|
3666
|
+
# launch_template_name: "LaunchTemplateName",
|
3667
|
+
# version: "XmlStringMaxLen255",
|
3668
|
+
# },
|
3713
3669
|
# }
|
3714
3670
|
#
|
3715
3671
|
# @!attribute [rw] instance_type
|
3716
|
-
# The instance type. You must use an instance
|
3717
|
-
# in your requested Region and Availability
|
3718
|
-
#
|
3719
|
-
#
|
3720
|
-
# Instance Types][1] in the *Amazon Elastic Compute Cloud User Guide.*
|
3672
|
+
# The instance type, such as `m3.xlarge`. You must use an instance
|
3673
|
+
# type that is supported in your requested Region and Availability
|
3674
|
+
# Zones. For more information, see [Instance types][1] in the *Amazon
|
3675
|
+
# Elastic Compute Cloud User Guide*.
|
3721
3676
|
#
|
3722
3677
|
#
|
3723
3678
|
#
|
3724
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
3679
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
3725
3680
|
# @return [String]
|
3726
3681
|
#
|
3727
3682
|
# @!attribute [rw] weighted_capacity
|
3728
|
-
# The number of capacity units
|
3729
|
-
#
|
3730
|
-
#
|
3731
|
-
#
|
3732
|
-
# capacity
|
3733
|
-
#
|
3734
|
-
#
|
3735
|
-
#
|
3736
|
-
#
|
3683
|
+
# The number of capacity units provided by the specified instance type
|
3684
|
+
# in terms of virtual CPUs, memory, storage, throughput, or other
|
3685
|
+
# relative performance characteristic. When a Spot or On-Demand
|
3686
|
+
# Instance is provisioned, the capacity units count toward the desired
|
3687
|
+
# capacity. Amazon EC2 Auto Scaling provisions instances until the
|
3688
|
+
# desired capacity is totally fulfilled, even if this results in an
|
3689
|
+
# overage. For example, if there are 2 units remaining to fulfill
|
3690
|
+
# capacity, and Amazon EC2 Auto Scaling can only provision an instance
|
3691
|
+
# with a `WeightedCapacity` of 5 units, the instance is provisioned,
|
3692
|
+
# and the desired capacity is exceeded by 3 units. For more
|
3693
|
+
# information, see [Instance weighting for Amazon EC2 Auto Scaling][1]
|
3694
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
3737
3695
|
#
|
3738
3696
|
# Valid Range: Minimum value of 1. Maximum value of 999.
|
3739
3697
|
#
|
@@ -3742,11 +3700,26 @@ module Aws::AutoScaling
|
|
3742
3700
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html
|
3743
3701
|
# @return [String]
|
3744
3702
|
#
|
3703
|
+
# @!attribute [rw] launch_template_specification
|
3704
|
+
# Provides the launch template to be used when launching the instance
|
3705
|
+
# type. For example, some instance types might require a launch
|
3706
|
+
# template with a different AMI. If not provided, Amazon EC2 Auto
|
3707
|
+
# Scaling uses the launch template that's defined for your mixed
|
3708
|
+
# instances policy. For more information, see [Specifying a different
|
3709
|
+
# launch template for an instance type][1] in the *Amazon EC2 Auto
|
3710
|
+
# Scaling User Guide*.
|
3711
|
+
#
|
3712
|
+
#
|
3713
|
+
#
|
3714
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-template-overrides.html
|
3715
|
+
# @return [Types::LaunchTemplateSpecification]
|
3716
|
+
#
|
3745
3717
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplateOverrides AWS API Documentation
|
3746
3718
|
#
|
3747
3719
|
class LaunchTemplateOverrides < Struct.new(
|
3748
3720
|
:instance_type,
|
3749
|
-
:weighted_capacity
|
3721
|
+
:weighted_capacity,
|
3722
|
+
:launch_template_specification)
|
3750
3723
|
SENSITIVE = []
|
3751
3724
|
include Aws::Structure
|
3752
3725
|
end
|
@@ -3756,8 +3729,8 @@ module Aws::AutoScaling
|
|
3756
3729
|
# EC2 instances.
|
3757
3730
|
#
|
3758
3731
|
# The launch template that is specified must be configured for use with
|
3759
|
-
# an Auto Scaling group. For more information, see [Creating a
|
3760
|
-
#
|
3732
|
+
# an Auto Scaling group. For more information, see [Creating a launch
|
3733
|
+
# template for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
3761
3734
|
# User Guide*.
|
3762
3735
|
#
|
3763
3736
|
#
|
@@ -3777,9 +3750,8 @@ module Aws::AutoScaling
|
|
3777
3750
|
# The ID of the launch template. To get the template ID, use the
|
3778
3751
|
# Amazon EC2 [DescribeLaunchTemplates][1] API operation. New launch
|
3779
3752
|
# templates can be created using the Amazon EC2
|
3780
|
-
# [CreateLaunchTemplate][2] API.
|
3781
|
-
#
|
3782
|
-
# You must specify either a template ID or a template name.
|
3753
|
+
# [CreateLaunchTemplate][2] API. You must specify either a
|
3754
|
+
# `LaunchTemplateId` or a `LaunchTemplateName`.
|
3783
3755
|
#
|
3784
3756
|
#
|
3785
3757
|
#
|
@@ -3791,9 +3763,8 @@ module Aws::AutoScaling
|
|
3791
3763
|
# The name of the launch template. To get the template name, use the
|
3792
3764
|
# Amazon EC2 [DescribeLaunchTemplates][1] API operation. New launch
|
3793
3765
|
# templates can be created using the Amazon EC2
|
3794
|
-
# [CreateLaunchTemplate][2] API.
|
3795
|
-
#
|
3796
|
-
# You must specify either a template ID or a template name.
|
3766
|
+
# [CreateLaunchTemplate][2] API. You must specify either a
|
3767
|
+
# `LaunchTemplateId` or a `LaunchTemplateName`.
|
3797
3768
|
#
|
3798
3769
|
#
|
3799
3770
|
#
|
@@ -3805,13 +3776,12 @@ module Aws::AutoScaling
|
|
3805
3776
|
# The version number, `$Latest`, or `$Default`. To get the version
|
3806
3777
|
# number, use the Amazon EC2 [DescribeLaunchTemplateVersions][1] API
|
3807
3778
|
# operation. New launch template versions can be created using the
|
3808
|
-
# Amazon EC2 [CreateLaunchTemplateVersion][2] API.
|
3809
|
-
#
|
3810
|
-
#
|
3811
|
-
#
|
3812
|
-
# the
|
3813
|
-
#
|
3814
|
-
# value is `$Default`.
|
3779
|
+
# Amazon EC2 [CreateLaunchTemplateVersion][2] API. If the value is
|
3780
|
+
# `$Latest`, Amazon EC2 Auto Scaling selects the latest version of the
|
3781
|
+
# launch template when launching instances. If the value is
|
3782
|
+
# `$Default`, Amazon EC2 Auto Scaling selects the default version of
|
3783
|
+
# the launch template when launching instances. The default value is
|
3784
|
+
# `$Default`.
|
3815
3785
|
#
|
3816
3786
|
#
|
3817
3787
|
#
|
@@ -3931,7 +3901,7 @@ module Aws::AutoScaling
|
|
3931
3901
|
# 5. If you finish before the timeout period ends, complete the
|
3932
3902
|
# lifecycle action.
|
3933
3903
|
#
|
3934
|
-
# For more information, see [Amazon EC2 Auto Scaling
|
3904
|
+
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
3935
3905
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
3936
3906
|
#
|
3937
3907
|
#
|
@@ -4208,15 +4178,14 @@ module Aws::AutoScaling
|
|
4208
4178
|
# Describes a mixed instances policy for an Auto Scaling group. With
|
4209
4179
|
# mixed instances, your Auto Scaling group can provision a combination
|
4210
4180
|
# of On-Demand Instances and Spot Instances across multiple instance
|
4211
|
-
# types. For more information, see [Auto Scaling
|
4212
|
-
#
|
4181
|
+
# types. For more information, see [Auto Scaling groups with multiple
|
4182
|
+
# instance types and purchase options][1] in the *Amazon EC2 Auto
|
4213
4183
|
# Scaling User Guide*.
|
4214
4184
|
#
|
4215
4185
|
# You can create a mixed instances policy for a new Auto Scaling group,
|
4216
4186
|
# or you can create it for an existing group by updating the group to
|
4217
4187
|
# specify `MixedInstancesPolicy` as the top-level parameter instead of a
|
4218
|
-
# launch configuration or launch template.
|
4219
|
-
# CreateAutoScalingGroup and UpdateAutoScalingGroup.
|
4188
|
+
# launch configuration or launch template.
|
4220
4189
|
#
|
4221
4190
|
#
|
4222
4191
|
#
|
@@ -4236,6 +4205,11 @@ module Aws::AutoScaling
|
|
4236
4205
|
# {
|
4237
4206
|
# instance_type: "XmlStringMaxLen255",
|
4238
4207
|
# weighted_capacity: "XmlStringMaxLen32",
|
4208
|
+
# launch_template_specification: {
|
4209
|
+
# launch_template_id: "XmlStringMaxLen255",
|
4210
|
+
# launch_template_name: "LaunchTemplateName",
|
4211
|
+
# version: "XmlStringMaxLen255",
|
4212
|
+
# },
|
4239
4213
|
# },
|
4240
4214
|
# ],
|
4241
4215
|
# },
|
@@ -4250,16 +4224,15 @@ module Aws::AutoScaling
|
|
4250
4224
|
# }
|
4251
4225
|
#
|
4252
4226
|
# @!attribute [rw] launch_template
|
4253
|
-
#
|
4254
|
-
#
|
4255
|
-
# Required when creating a
|
4227
|
+
# Specifies the launch template to use and optionally the instance
|
4228
|
+
# types (overrides) that are used to provision EC2 instances to
|
4229
|
+
# fulfill On-Demand and Spot capacities. Required when creating a
|
4230
|
+
# mixed instances policy.
|
4256
4231
|
# @return [Types::LaunchTemplate]
|
4257
4232
|
#
|
4258
4233
|
# @!attribute [rw] instances_distribution
|
4259
|
-
#
|
4260
|
-
#
|
4261
|
-
# If you leave this parameter unspecified, the value for each
|
4262
|
-
# parameter in `InstancesDistribution` uses a default value.
|
4234
|
+
# Specifies the instances distribution. If not provided, the value for
|
4235
|
+
# each parameter in `InstancesDistribution` uses a default value.
|
4263
4236
|
# @return [Types::InstancesDistribution]
|
4264
4237
|
#
|
4265
4238
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MixedInstancesPolicy AWS API Documentation
|
@@ -4380,17 +4353,20 @@ module Aws::AutoScaling
|
|
4380
4353
|
# `ALBRequestCountPerTarget` and there is a target group attached to
|
4381
4354
|
# the Auto Scaling group.
|
4382
4355
|
#
|
4383
|
-
#
|
4384
|
-
#
|
4385
|
-
#
|
4386
|
-
#
|
4387
|
-
#
|
4356
|
+
# You create the resource label by appending the final portion of the
|
4357
|
+
# load balancer ARN and the final portion of the target group ARN into
|
4358
|
+
# a single value, separated by a forward slash (/). The format is
|
4359
|
+
# app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>,
|
4360
|
+
# where:
|
4361
|
+
#
|
4362
|
+
# * app/<load-balancer-name>/<load-balancer-id> is the
|
4363
|
+
# final portion of the load balancer ARN
|
4388
4364
|
#
|
4389
|
-
# *
|
4390
|
-
# the
|
4365
|
+
# * targetgroup/<target-group-name>/<target-group-id> is
|
4366
|
+
# the final portion of the target group ARN.
|
4391
4367
|
#
|
4392
|
-
#
|
4393
|
-
#
|
4368
|
+
# This is an example:
|
4369
|
+
# app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
|
4394
4370
|
#
|
4395
4371
|
# To find the ARN for an Application Load Balancer, use the
|
4396
4372
|
# [DescribeLoadBalancers][1] API operation. To find the ARN for the
|
@@ -4413,7 +4389,7 @@ module Aws::AutoScaling
|
|
4413
4389
|
|
4414
4390
|
# Describes a process type.
|
4415
4391
|
#
|
4416
|
-
# For more information, see [Scaling
|
4392
|
+
# For more information, see [Scaling processes][1] in the *Amazon EC2
|
4417
4393
|
# Auto Scaling User Guide*.
|
4418
4394
|
#
|
4419
4395
|
#
|
@@ -4667,7 +4643,7 @@ module Aws::AutoScaling
|
|
4667
4643
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4668
4644
|
#
|
4669
4645
|
# Required if the policy type is `StepScaling` or `SimpleScaling`. For
|
4670
|
-
# more information, see [Scaling
|
4646
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon
|
4671
4647
|
# EC2 Auto Scaling User Guide*.
|
4672
4648
|
#
|
4673
4649
|
#
|
@@ -4690,7 +4666,7 @@ module Aws::AutoScaling
|
|
4690
4666
|
# Amazon EC2 Auto Scaling scales out the group by 2 instances.
|
4691
4667
|
#
|
4692
4668
|
# Valid only if the policy type is `StepScaling` or `SimpleScaling`.
|
4693
|
-
# For more information, see [Scaling
|
4669
|
+
# For more information, see [Scaling adjustment types][1] in the
|
4694
4670
|
# *Amazon EC2 Auto Scaling User Guide*.
|
4695
4671
|
#
|
4696
4672
|
# <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
|
@@ -4720,7 +4696,7 @@ module Aws::AutoScaling
|
|
4720
4696
|
# period defined for the Auto Scaling group.
|
4721
4697
|
#
|
4722
4698
|
# Valid only if the policy type is `SimpleScaling`. For more
|
4723
|
-
# information, see [Scaling
|
4699
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1]
|
4724
4700
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
4725
4701
|
#
|
4726
4702
|
#
|
@@ -4784,8 +4760,8 @@ module Aws::AutoScaling
|
|
4784
4760
|
#
|
4785
4761
|
# @!attribute [rw] enabled
|
4786
4762
|
# Indicates whether the scaling policy is enabled or disabled. The
|
4787
|
-
# default is enabled. For more information, see [Disabling a
|
4788
|
-
#
|
4763
|
+
# default is enabled. For more information, see [Disabling a scaling
|
4764
|
+
# policy for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
4789
4765
|
# User Guide*.
|
4790
4766
|
#
|
4791
4767
|
#
|
@@ -5048,8 +5024,8 @@ module Aws::AutoScaling
|
|
5048
5024
|
#
|
5049
5025
|
# * `SimpleScaling` (default)
|
5050
5026
|
#
|
5051
|
-
# For more information, see [Target
|
5052
|
-
# [Step and
|
5027
|
+
# For more information, see [Target tracking scaling policies][1] and
|
5028
|
+
# [Step and simple scaling policies][2] in the *Amazon EC2 Auto
|
5053
5029
|
# Scaling User Guide*.
|
5054
5030
|
#
|
5055
5031
|
#
|
@@ -5460,7 +5436,7 @@ module Aws::AutoScaling
|
|
5460
5436
|
# }
|
5461
5437
|
#
|
5462
5438
|
# @!attribute [rw] instance_ids
|
5463
|
-
# One or more instance IDs.
|
5439
|
+
# One or more instance IDs. You can specify up to 50 instances.
|
5464
5440
|
# @return [Array<String>]
|
5465
5441
|
#
|
5466
5442
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -5577,7 +5553,7 @@ module Aws::AutoScaling
|
|
5577
5553
|
# * The upper and lower bound can't be null in the same step
|
5578
5554
|
# adjustment.
|
5579
5555
|
#
|
5580
|
-
# For more information, see [Step
|
5556
|
+
# For more information, see [Step adjustments][1] in the *Amazon EC2
|
5581
5557
|
# Auto Scaling User Guide*.
|
5582
5558
|
#
|
5583
5559
|
#
|
@@ -5629,9 +5605,9 @@ module Aws::AutoScaling
|
|
5629
5605
|
include Aws::Structure
|
5630
5606
|
end
|
5631
5607
|
|
5632
|
-
# Describes an
|
5608
|
+
# Describes an auto scaling process that has been suspended.
|
5633
5609
|
#
|
5634
|
-
# For more information, see [Scaling
|
5610
|
+
# For more information, see [Scaling processes][1] in the *Amazon EC2
|
5635
5611
|
# Auto Scaling User Guide*.
|
5636
5612
|
#
|
5637
5613
|
#
|
@@ -5867,6 +5843,11 @@ module Aws::AutoScaling
|
|
5867
5843
|
# {
|
5868
5844
|
# instance_type: "XmlStringMaxLen255",
|
5869
5845
|
# weighted_capacity: "XmlStringMaxLen32",
|
5846
|
+
# launch_template_specification: {
|
5847
|
+
# launch_template_id: "XmlStringMaxLen255",
|
5848
|
+
# launch_template_name: "LaunchTemplateName",
|
5849
|
+
# version: "XmlStringMaxLen255",
|
5850
|
+
# },
|
5870
5851
|
# },
|
5871
5852
|
# ],
|
5872
5853
|
# },
|
@@ -5892,6 +5873,7 @@ module Aws::AutoScaling
|
|
5892
5873
|
# new_instances_protected_from_scale_in: false,
|
5893
5874
|
# service_linked_role_arn: "ResourceName",
|
5894
5875
|
# max_instance_lifetime: 1,
|
5876
|
+
# capacity_rebalance: false,
|
5895
5877
|
# }
|
5896
5878
|
#
|
5897
5879
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -5908,31 +5890,18 @@ module Aws::AutoScaling
|
|
5908
5890
|
# The launch template and version to use to specify the updates. If
|
5909
5891
|
# you specify `LaunchTemplate` in your update request, you can't
|
5910
5892
|
# specify `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
5911
|
-
#
|
5912
|
-
# For more information, see [LaunchTemplateSpecification][1] in the
|
5913
|
-
# *Amazon EC2 Auto Scaling API Reference*.
|
5914
|
-
#
|
5915
|
-
#
|
5916
|
-
#
|
5917
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
|
5918
5893
|
# @return [Types::LaunchTemplateSpecification]
|
5919
5894
|
#
|
5920
5895
|
# @!attribute [rw] mixed_instances_policy
|
5921
|
-
# An embedded object that specifies a mixed instances policy.
|
5922
|
-
#
|
5923
|
-
#
|
5924
|
-
#
|
5925
|
-
#
|
5926
|
-
#
|
5927
|
-
# For more information, see [MixedInstancesPolicy][1] in the *Amazon
|
5928
|
-
# EC2 Auto Scaling API Reference* and [Auto Scaling Groups with
|
5929
|
-
# Multiple Instance Types and Purchase Options][2] in the *Amazon EC2
|
5930
|
-
# Auto Scaling User Guide*.
|
5896
|
+
# An embedded object that specifies a mixed instances policy. When you
|
5897
|
+
# make changes to an existing policy, all optional parameters are left
|
5898
|
+
# unchanged if not specified. For more information, see [Auto Scaling
|
5899
|
+
# groups with multiple instance types and purchase options][1] in the
|
5900
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
5931
5901
|
#
|
5932
5902
|
#
|
5933
5903
|
#
|
5934
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
5935
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
5904
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
5936
5905
|
# @return [Types::MixedInstancesPolicy]
|
5937
5906
|
#
|
5938
5907
|
# @!attribute [rw] min_size
|
@@ -5955,20 +5924,17 @@ module Aws::AutoScaling
|
|
5955
5924
|
# @!attribute [rw] desired_capacity
|
5956
5925
|
# The desired capacity is the initial capacity of the Auto Scaling
|
5957
5926
|
# group after this operation completes and the capacity it attempts to
|
5958
|
-
# maintain.
|
5959
|
-
#
|
5960
|
-
#
|
5961
|
-
# group and less than or equal to the maximum size of the group.
|
5927
|
+
# maintain. This number must be greater than or equal to the minimum
|
5928
|
+
# size of the group and less than or equal to the maximum size of the
|
5929
|
+
# group.
|
5962
5930
|
# @return [Integer]
|
5963
5931
|
#
|
5964
5932
|
# @!attribute [rw] default_cooldown
|
5965
5933
|
# The amount of time, in seconds, after a scaling activity completes
|
5966
5934
|
# before another scaling activity can start. The default value is
|
5967
|
-
# `300`.
|
5968
|
-
#
|
5969
|
-
#
|
5970
|
-
# when using other scaling policies or scheduled scaling. For more
|
5971
|
-
# information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
|
5935
|
+
# `300`. This setting applies when using simple scaling policies, but
|
5936
|
+
# not when using other scaling policies or scheduled scaling. For more
|
5937
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1]
|
5972
5938
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
5973
5939
|
#
|
5974
5940
|
#
|
@@ -5990,12 +5956,11 @@ module Aws::AutoScaling
|
|
5990
5956
|
# @!attribute [rw] health_check_grace_period
|
5991
5957
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
5992
5958
|
# before checking the health status of an EC2 instance that has come
|
5993
|
-
# into service. The default value is `0`.
|
5994
|
-
#
|
5995
|
-
#
|
5996
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
5959
|
+
# into service. The default value is `0`. For more information, see
|
5960
|
+
# [Health check grace period][1] in the *Amazon EC2 Auto Scaling User
|
5961
|
+
# Guide*.
|
5997
5962
|
#
|
5998
|
-
# Required if you are adding an `ELB` health check.
|
5963
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
5999
5964
|
#
|
6000
5965
|
#
|
6001
5966
|
#
|
@@ -6003,11 +5968,12 @@ module Aws::AutoScaling
|
|
6003
5968
|
# @return [Integer]
|
6004
5969
|
#
|
6005
5970
|
# @!attribute [rw] placement_group
|
6006
|
-
# The name of
|
6007
|
-
# if any. A placement group is a logical grouping of
|
6008
|
-
# a single Availability Zone. You cannot specify
|
6009
|
-
# Zones and a placement group. For more
|
6010
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
5971
|
+
# The name of an existing placement group into which to launch your
|
5972
|
+
# instances, if any. A placement group is a logical grouping of
|
5973
|
+
# instances within a single Availability Zone. You cannot specify
|
5974
|
+
# multiple Availability Zones and a placement group. For more
|
5975
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
5976
|
+
# for Linux Instances*.
|
6011
5977
|
#
|
6012
5978
|
#
|
6013
5979
|
#
|
@@ -6015,22 +5981,18 @@ module Aws::AutoScaling
|
|
6015
5981
|
# @return [String]
|
6016
5982
|
#
|
6017
5983
|
# @!attribute [rw] vpc_zone_identifier
|
6018
|
-
# A comma-separated list of subnet IDs for virtual private cloud
|
6019
|
-
# (VPC).
|
6020
|
-
#
|
6021
|
-
# If you specify `VPCZoneIdentifier` with `AvailabilityZones`, the
|
6022
|
-
# subnets that you specify for this parameter must reside in those
|
5984
|
+
# A comma-separated list of subnet IDs for a virtual private cloud
|
5985
|
+
# (VPC). If you specify `VPCZoneIdentifier` with `AvailabilityZones`,
|
5986
|
+
# the subnets that you specify for this parameter must reside in those
|
6023
5987
|
# Availability Zones.
|
6024
5988
|
# @return [String]
|
6025
5989
|
#
|
6026
5990
|
# @!attribute [rw] termination_policies
|
6027
|
-
# A
|
6028
|
-
#
|
6029
|
-
#
|
6030
|
-
#
|
6031
|
-
#
|
6032
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
6033
|
-
# Guide*.
|
5991
|
+
# A policy or a list of policies that are used to select the instances
|
5992
|
+
# to terminate. The policies are executed in the order that you list
|
5993
|
+
# them. For more information, see [Controlling which Auto Scaling
|
5994
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
5995
|
+
# Scaling User Guide*.
|
6034
5996
|
#
|
6035
5997
|
#
|
6036
5998
|
#
|
@@ -6039,10 +6001,9 @@ module Aws::AutoScaling
|
|
6039
6001
|
#
|
6040
6002
|
# @!attribute [rw] new_instances_protected_from_scale_in
|
6041
6003
|
# Indicates whether newly launched instances are protected from
|
6042
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
6043
|
-
#
|
6044
|
-
#
|
6045
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto
|
6004
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
6005
|
+
# information about preventing instances from terminating on scale in,
|
6006
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto
|
6046
6007
|
# Scaling User Guide*.
|
6047
6008
|
#
|
6048
6009
|
#
|
@@ -6053,7 +6014,7 @@ module Aws::AutoScaling
|
|
6053
6014
|
# @!attribute [rw] service_linked_role_arn
|
6054
6015
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
6055
6016
|
# Auto Scaling group uses to call other AWS services on your behalf.
|
6056
|
-
# For more information, see [Service-
|
6017
|
+
# For more information, see [Service-linked roles][1] in the *Amazon
|
6057
6018
|
# EC2 Auto Scaling User Guide*.
|
6058
6019
|
#
|
6059
6020
|
#
|
@@ -6063,22 +6024,26 @@ module Aws::AutoScaling
|
|
6063
6024
|
#
|
6064
6025
|
# @!attribute [rw] max_instance_lifetime
|
6065
6026
|
# The maximum amount of time, in seconds, that an instance can be in
|
6066
|
-
# service. The default is null.
|
6027
|
+
# service. The default is null. If specified, the value must be either
|
6028
|
+
# 0 or a number equal to or greater than 86,400 seconds (1 day). To
|
6029
|
+
# clear a previously set value, specify a new value of 0. For more
|
6030
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
6031
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
6067
6032
|
#
|
6068
|
-
# This parameter is optional, but if you specify a value for it, you
|
6069
|
-
# must specify a value of at least 604,800 seconds (7 days). To clear
|
6070
|
-
# a previously set value, specify a new value of 0.
|
6071
6033
|
#
|
6072
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
6073
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
6074
|
-
# Guide*.
|
6075
6034
|
#
|
6076
|
-
#
|
6035
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
6036
|
+
# @return [Integer]
|
6077
6037
|
#
|
6038
|
+
# @!attribute [rw] capacity_rebalance
|
6039
|
+
# Enables or disables Capacity Rebalancing. For more information, see
|
6040
|
+
# [Amazon EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2
|
6041
|
+
# Auto Scaling User Guide*.
|
6078
6042
|
#
|
6079
6043
|
#
|
6080
|
-
#
|
6081
|
-
#
|
6044
|
+
#
|
6045
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
6046
|
+
# @return [Boolean]
|
6082
6047
|
#
|
6083
6048
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation
|
6084
6049
|
#
|
@@ -6099,7 +6064,8 @@ module Aws::AutoScaling
|
|
6099
6064
|
:termination_policies,
|
6100
6065
|
:new_instances_protected_from_scale_in,
|
6101
6066
|
:service_linked_role_arn,
|
6102
|
-
:max_instance_lifetime
|
6067
|
+
:max_instance_lifetime,
|
6068
|
+
:capacity_rebalance)
|
6103
6069
|
SENSITIVE = []
|
6104
6070
|
include Aws::Structure
|
6105
6071
|
end
|