aws-sdk-autoscaling 1.47.0 → 1.52.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,8 +55,8 @@ module Aws::AutoScaling
55
55
  #
56
56
  # * `SimpleScaling` (default)
57
57
  #
58
- # For more information, see [Target Tracking Scaling Policies][1] and
59
- # [Step and Simple Scaling Policies][2] in the *Amazon EC2 Auto Scaling
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
  #
@@ -281,7 +281,7 @@ module Aws::AutoScaling
281
281
  # @example Request syntax with placeholder values
282
282
  #
283
283
  # scaling_policy.delete({
284
- # auto_scaling_group_name: "ResourceName",
284
+ # auto_scaling_group_name: "XmlStringMaxLen255",
285
285
  # })
286
286
  # @param [Hash] options ({})
287
287
  # @option options [String] :auto_scaling_group_name
@@ -296,7 +296,7 @@ module Aws::AutoScaling
296
296
  # @example Request syntax with placeholder values
297
297
  #
298
298
  # scaling_policy.execute({
299
- # auto_scaling_group_name: "ResourceName",
299
+ # auto_scaling_group_name: "XmlStringMaxLen255",
300
300
  # honor_cooldown: false,
301
301
  # metric_value: 1.0,
302
302
  # breach_threshold: 1.0,
@@ -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 Cooldowns for Amazon EC2 Auto Scaling][1] in
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
  #
@@ -233,7 +233,7 @@ module Aws::AutoScaling
233
233
  # @example Request syntax with placeholder values
234
234
  #
235
235
  # scheduled_action.delete({
236
- # auto_scaling_group_name: "ResourceName", # required
236
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
237
237
  # })
238
238
  # @param [Hash] options ({})
239
239
  # @option options [required, String] :auto_scaling_group_name
@@ -173,7 +173,7 @@ module Aws::AutoScaling
173
173
  #
174
174
  # {
175
175
  # instance_ids: ["XmlStringMaxLen19"],
176
- # auto_scaling_group_name: "ResourceName", # required
176
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
177
177
  # }
178
178
  #
179
179
  # @!attribute [rw] instance_ids
@@ -201,7 +201,7 @@ module Aws::AutoScaling
201
201
  # data as a hash:
202
202
  #
203
203
  # {
204
- # auto_scaling_group_name: "ResourceName", # required
204
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
205
205
  # target_group_arns: ["XmlStringMaxLen511"], # required
206
206
  # }
207
207
  #
@@ -211,7 +211,13 @@ module Aws::AutoScaling
211
211
  #
212
212
  # @!attribute [rw] target_group_arns
213
213
  # The Amazon Resource Names (ARN) of the target groups. You can
214
- # specify up to 10 target groups.
214
+ # specify up to 10 target groups. To get the ARN of a target group,
215
+ # use the Elastic Load Balancing [DescribeTargetGroups][1] API
216
+ # operation.
217
+ #
218
+ #
219
+ #
220
+ # [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html
215
221
  # @return [Array<String>]
216
222
  #
217
223
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroupsType AWS API Documentation
@@ -231,7 +237,7 @@ module Aws::AutoScaling
231
237
  # data as a hash:
232
238
  #
233
239
  # {
234
- # auto_scaling_group_name: "ResourceName", # required
240
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
235
241
  # load_balancer_names: ["XmlStringMaxLen255"], # required
236
242
  # }
237
243
  #
@@ -372,6 +378,10 @@ module Aws::AutoScaling
372
378
  # Valid Range: Minimum value of 0.
373
379
  # @return [Integer]
374
380
  #
381
+ # @!attribute [rw] capacity_rebalance
382
+ # Indicates whether Capacity Rebalancing is enabled.
383
+ # @return [Boolean]
384
+ #
375
385
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
376
386
  #
377
387
  class AutoScalingGroup < Struct.new(
@@ -400,7 +410,8 @@ module Aws::AutoScaling
400
410
  :termination_policies,
401
411
  :new_instances_protected_from_scale_in,
402
412
  :service_linked_role_arn,
403
- :max_instance_lifetime)
413
+ :max_instance_lifetime,
414
+ :capacity_rebalance)
404
415
  SENSITIVE = []
405
416
  include Aws::Structure
406
417
  end
@@ -409,16 +420,15 @@ module Aws::AutoScaling
409
420
  # data as a hash:
410
421
  #
411
422
  # {
412
- # auto_scaling_group_names: ["ResourceName"],
423
+ # auto_scaling_group_names: ["XmlStringMaxLen255"],
413
424
  # next_token: "XmlString",
414
425
  # max_records: 1,
415
426
  # }
416
427
  #
417
428
  # @!attribute [rw] auto_scaling_group_names
418
- # The names of the Auto Scaling groups. Each name can be a maximum of
419
- # 1600 characters. By default, you can only specify up to 50 names.
420
- # You can optionally increase this limit using the `MaxRecords`
421
- # parameter.
429
+ # The names of the Auto Scaling groups. By default, you can only
430
+ # specify up to 50 names. You can optionally increase this limit using
431
+ # the `MaxRecords` parameter.
422
432
  #
423
433
  # If you omit this parameter, all Auto Scaling groups are described.
424
434
  # @return [Array<String>]
@@ -570,8 +580,8 @@ module Aws::AutoScaling
570
580
  # data as a hash:
571
581
  #
572
582
  # {
573
- # auto_scaling_group_name: "ResourceName", # required
574
- # scheduled_action_names: ["ResourceName"], # required
583
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
584
+ # scheduled_action_names: ["XmlStringMaxLen255"], # required
575
585
  # }
576
586
  #
577
587
  # @!attribute [rw] auto_scaling_group_name
@@ -609,7 +619,7 @@ module Aws::AutoScaling
609
619
  # data as a hash:
610
620
  #
611
621
  # {
612
- # auto_scaling_group_name: "ResourceName", # required
622
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
613
623
  # scheduled_update_group_actions: [ # required
614
624
  # {
615
625
  # scheduled_action_name: "XmlStringMaxLen255", # required
@@ -791,7 +801,7 @@ module Aws::AutoScaling
791
801
  #
792
802
  # {
793
803
  # auto_scaling_group_name: "XmlStringMaxLen255", # required
794
- # launch_configuration_name: "ResourceName",
804
+ # launch_configuration_name: "XmlStringMaxLen255",
795
805
  # launch_template: {
796
806
  # launch_template_id: "XmlStringMaxLen255",
797
807
  # launch_template_name: "LaunchTemplateName",
@@ -808,6 +818,11 @@ module Aws::AutoScaling
808
818
  # {
809
819
  # instance_type: "XmlStringMaxLen255",
810
820
  # weighted_capacity: "XmlStringMaxLen32",
821
+ # launch_template_specification: {
822
+ # launch_template_id: "XmlStringMaxLen255",
823
+ # launch_template_name: "LaunchTemplateName",
824
+ # version: "XmlStringMaxLen255",
825
+ # },
811
826
  # },
812
827
  # ],
813
828
  # },
@@ -834,6 +849,7 @@ module Aws::AutoScaling
834
849
  # vpc_zone_identifier: "XmlStringMaxLen2047",
835
850
  # termination_policies: ["XmlStringMaxLen1600"],
836
851
  # new_instances_protected_from_scale_in: false,
852
+ # capacity_rebalance: false,
837
853
  # lifecycle_hook_specification_list: [
838
854
  # {
839
855
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
@@ -842,7 +858,7 @@ module Aws::AutoScaling
842
858
  # heartbeat_timeout: 1,
843
859
  # default_result: "LifecycleActionResult",
844
860
  # notification_target_arn: "NotificationTargetResourceName",
845
- # role_arn: "ResourceName",
861
+ # role_arn: "XmlStringMaxLen255",
846
862
  # },
847
863
  # ],
848
864
  # tags: [
@@ -864,34 +880,32 @@ module Aws::AutoScaling
864
880
  # @return [String]
865
881
  #
866
882
  # @!attribute [rw] launch_configuration_name
867
- # The name of the launch configuration to use when an instance is
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.
883
+ # The name of the launch configuration to use to launch instances.
872
884
  #
873
- # You must specify one of the following parameters in your request:
874
- # `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
875
- # `MixedInstancesPolicy`.
885
+ # Conditional: You must specify either a launch template
886
+ # (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
887
+ # configuration (`LaunchConfigurationName` or `InstanceId`).
876
888
  # @return [String]
877
889
  #
878
890
  # @!attribute [rw] launch_template
879
- # Parameters used to specify the launch template and version to use
880
- # when an instance is launched.
891
+ # Parameters used to specify the [launch template][1] and version to
892
+ # use to launch instances.
881
893
  #
882
- # For more information, see [LaunchTemplateSpecification][1] in the
883
- # *Amazon EC2 Auto Scaling API Reference*.
894
+ # Conditional: You must specify either a launch template
895
+ # (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch
896
+ # configuration (`LaunchConfigurationName` or `InstanceId`).
884
897
  #
885
- # You can alternatively associate a launch template to the Auto
886
- # Scaling group by using the `MixedInstancesPolicy` parameter.
898
+ # <note markdown="1"> The launch template that is specified must be configured for use
899
+ # with an Auto Scaling group. For more information, see [Creating a
900
+ # launch template for an Auto Scaling group][2] in the *Amazon EC2
901
+ # Auto Scaling User Guide*.
887
902
  #
888
- # You must specify one of the following parameters in your request:
889
- # `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
890
- # `MixedInstancesPolicy`.
903
+ # </note>
891
904
  #
892
905
  #
893
906
  #
894
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
907
+ # [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html
908
+ # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
895
909
  # @return [Types::LaunchTemplateSpecification]
896
910
  #
897
911
  # @!attribute [rw] mixed_instances_policy
@@ -902,42 +916,32 @@ module Aws::AutoScaling
902
916
  # The policy includes parameters that not only define the distribution
903
917
  # of On-Demand Instances and Spot Instances, the maximum price to pay
904
918
  # for Spot Instances, and how the Auto Scaling group allocates
905
- # instance types to fulfill On-Demand and Spot capacity, but also the
906
- # parameters that specify the instance configuration information—the
907
- # launch template and instance types.
908
- #
909
- # For more information, see [MixedInstancesPolicy][1] in the *Amazon
910
- # EC2 Auto Scaling API Reference* and [Auto Scaling Groups with
911
- # Multiple Instance Types and Purchase Options][2] in the *Amazon EC2
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`.
919
+ # instance types to fulfill On-Demand and Spot capacities, but also
920
+ # the parameters that specify the instance configuration
921
+ # information—the launch template and instance types. The policy can
922
+ # also include a weight for each instance type and different launch
923
+ # templates for individual instance types. For more information, see
924
+ # [Auto Scaling groups with multiple instance types and purchase
925
+ # options][1] in the *Amazon EC2 Auto Scaling User Guide*.
917
926
  #
918
927
  #
919
928
  #
920
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_MixedInstancesPolicy.html
921
- # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
929
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
922
930
  # @return [Types::MixedInstancesPolicy]
923
931
  #
924
932
  # @!attribute [rw] instance_id
925
- # The ID of the instance used to create a launch configuration for the
926
- # group. To get the instance ID, use the Amazon EC2
927
- # [DescribeInstances][1] API operation.
928
- #
929
- # When you specify an ID of an instance, Amazon EC2 Auto Scaling
930
- # creates a new launch configuration and associates it with the group.
931
- # This launch configuration derives its attributes from the specified
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`.
933
+ # The ID of the instance used to base the launch configuration on. If
934
+ # specified, Amazon EC2 Auto Scaling uses the configuration values
935
+ # from the specified instance to create a new launch configuration. To
936
+ # get the instance ID, use the Amazon EC2 [DescribeInstances][1] API
937
+ # operation. For more information, see [Creating an Auto Scaling group
938
+ # using an EC2 instance][2] in the *Amazon EC2 Auto Scaling User
939
+ # Guide*.
937
940
  #
938
941
  #
939
942
  #
940
943
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html
944
+ # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html
941
945
  # @return [String]
942
946
  #
943
947
  # @!attribute [rw] min_size
@@ -960,23 +964,19 @@ module Aws::AutoScaling
960
964
  # @!attribute [rw] desired_capacity
961
965
  # The desired capacity is the initial capacity of the Auto Scaling
962
966
  # 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
- # automatic scaling.
965
- #
966
- # This number must be greater than or equal to the minimum size of the
967
- # group and less than or equal to the maximum size of the group. If
968
- # you do not specify a desired capacity, the default is the minimum
969
- # size of the group.
967
+ # maintain. It can scale beyond this capacity if you configure auto
968
+ # scaling. This number must be greater than or equal to the minimum
969
+ # size of the group and less than or equal to the maximum size of the
970
+ # group. If you do not specify a desired capacity, the default is the
971
+ # minimum size of the group.
970
972
  # @return [Integer]
971
973
  #
972
974
  # @!attribute [rw] default_cooldown
973
975
  # The amount of time, in seconds, after a scaling activity completes
974
976
  # before another scaling activity can start. The default value is
975
- # `300`.
976
- #
977
- # This setting applies when using simple scaling policies, but not
978
- # when using other scaling policies or scheduled scaling. For more
979
- # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
977
+ # `300`. This setting applies when using simple scaling policies, but
978
+ # not when using other scaling policies or scheduled scaling. For more
979
+ # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1]
980
980
  # in the *Amazon EC2 Auto Scaling User Guide*.
981
981
  #
982
982
  #
@@ -985,8 +985,9 @@ module Aws::AutoScaling
985
985
  # @return [Integer]
986
986
  #
987
987
  # @!attribute [rw] availability_zones
988
- # One or more Availability Zones for the group. This parameter is
989
- # optional if you specify one or more subnets for `VPCZoneIdentifier`.
988
+ # A list of Availability Zones where instances in the Auto Scaling
989
+ # group can be created. This parameter is optional if you specify one
990
+ # or more subnets for `VPCZoneIdentifier`.
990
991
  #
991
992
  # Conditional: If your account supports EC2-Classic and VPC, this
992
993
  # parameter is required to launch instances into EC2-Classic.
@@ -994,25 +995,17 @@ module Aws::AutoScaling
994
995
  #
995
996
  # @!attribute [rw] load_balancer_names
996
997
  # A list of Classic Load Balancers associated with this Auto Scaling
997
- # group. For Application Load Balancers and Network Load Balancers,
998
- # specify a list of target groups using the `TargetGroupARNs` property
998
+ # group. For Application Load Balancers, Network Load Balancers, and
999
+ # Gateway Load Balancers, specify the `TargetGroupARNs` property
999
1000
  # 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
1007
1001
  # @return [Array<String>]
1008
1002
  #
1009
1003
  # @!attribute [rw] target_group_arns
1010
1004
  # The Amazon Resource Names (ARN) of the target groups to associate
1011
1005
  # 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
- # For more information, see [Using a Load Balancer with an Auto
1015
- # Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
1006
+ # a target group, and traffic is routed to the target group. For more
1007
+ # information, see [Elastic Load Balancing and Amazon EC2 Auto
1008
+ # Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
1016
1009
  #
1017
1010
  #
1018
1011
  #
@@ -1021,13 +1014,12 @@ module Aws::AutoScaling
1021
1014
  #
1022
1015
  # @!attribute [rw] health_check_type
1023
1016
  # The service to use for the health checks. The valid values are `EC2`
1024
- # and `ELB`. The default value is `EC2`. If you configure an Auto
1025
- # Scaling group to use ELB health checks, it considers the instance
1017
+ # (default) and `ELB`. If you configure an Auto Scaling group to use
1018
+ # load balancer (ELB) health checks, it considers the instance
1026
1019
  # unhealthy if it fails either the EC2 status checks or the load
1027
- # balancer health checks.
1028
- #
1029
- # For more information, see [Health Checks for Auto Scaling
1030
- # Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
1020
+ # balancer health checks. For more information, see [Health checks for
1021
+ # Auto Scaling instances][1] in the *Amazon EC2 Auto Scaling User
1022
+ # Guide*.
1031
1023
  #
1032
1024
  #
1033
1025
  #
@@ -1038,12 +1030,11 @@ module Aws::AutoScaling
1038
1030
  # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
1039
1031
  # before checking the health status of an EC2 instance that has come
1040
1032
  # into service. During this time, any health check failures for the
1041
- # instance are ignored. The default value is `0`.
1042
- #
1043
- # For more information, see [Health Check Grace Period][1] in the
1044
- # *Amazon EC2 Auto Scaling User Guide*.
1033
+ # instance are ignored. The default value is `0`. For more
1034
+ # information, see [Health check grace period][1] in the *Amazon EC2
1035
+ # Auto Scaling User Guide*.
1045
1036
  #
1046
- # Required if you are adding an `ELB` health check.
1037
+ # Conditional: Required if you are adding an `ELB` health check.
1047
1038
  #
1048
1039
  #
1049
1040
  #
@@ -1051,11 +1042,12 @@ module Aws::AutoScaling
1051
1042
  # @return [Integer]
1052
1043
  #
1053
1044
  # @!attribute [rw] placement_group
1054
- # The name of the placement group into which to launch your instances,
1055
- # if any. A placement group is a logical grouping of instances within
1056
- # a single Availability Zone. You cannot specify multiple Availability
1057
- # Zones and a placement group. For more information, see [Placement
1058
- # Groups][1] in the *Amazon EC2 User Guide for Linux Instances*.
1045
+ # The name of an existing placement group into which to launch your
1046
+ # instances, if any. A placement group is a logical grouping of
1047
+ # instances within a single Availability Zone. You cannot specify
1048
+ # multiple Availability Zones and a placement group. For more
1049
+ # information, see [Placement Groups][1] in the *Amazon EC2 User Guide
1050
+ # for Linux Instances*.
1059
1051
  #
1060
1052
  #
1061
1053
  #
@@ -1063,10 +1055,9 @@ module Aws::AutoScaling
1063
1055
  # @return [String]
1064
1056
  #
1065
1057
  # @!attribute [rw] vpc_zone_identifier
1066
- # A comma-separated list of subnet IDs for your virtual private cloud
1067
- # (VPC).
1068
- #
1069
- # If you specify `VPCZoneIdentifier` with `AvailabilityZones`, the
1058
+ # A comma-separated list of subnet IDs for a virtual private cloud
1059
+ # (VPC) where instances in the Auto Scaling group can be created. If
1060
+ # you specify `VPCZoneIdentifier` with `AvailabilityZones`, the
1070
1061
  # subnets that you specify for this parameter must reside in those
1071
1062
  # Availability Zones.
1072
1063
  #
@@ -1075,13 +1066,11 @@ module Aws::AutoScaling
1075
1066
  # @return [String]
1076
1067
  #
1077
1068
  # @!attribute [rw] termination_policies
1078
- # One or more termination policies used to select the instance to
1079
- # terminate. These policies are executed in the order that they are
1080
- # listed.
1081
- #
1082
- # For more information, see [Controlling Which Instances Auto Scaling
1083
- # Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
1084
- # Guide*.
1069
+ # A policy or a list of policies that are used to select the instance
1070
+ # to terminate. These policies are executed in the order that you list
1071
+ # them. For more information, see [Controlling which Auto Scaling
1072
+ # instances terminate during scale in][1] in the *Amazon EC2 Auto
1073
+ # Scaling User Guide*.
1085
1074
  #
1086
1075
  #
1087
1076
  #
@@ -1090,10 +1079,9 @@ module Aws::AutoScaling
1090
1079
  #
1091
1080
  # @!attribute [rw] new_instances_protected_from_scale_in
1092
1081
  # Indicates whether newly launched instances are protected from
1093
- # termination by Amazon EC2 Auto Scaling when scaling in.
1094
- #
1095
- # For more information about preventing instances from terminating on
1096
- # scale in, see [Instance Protection][1] in the *Amazon EC2 Auto
1082
+ # termination by Amazon EC2 Auto Scaling when scaling in. For more
1083
+ # information about preventing instances from terminating on scale in,
1084
+ # see [Instance scale-in protection][1] in the *Amazon EC2 Auto
1097
1085
  # Scaling User Guide*.
1098
1086
  #
1099
1087
  #
@@ -1101,23 +1089,38 @@ module Aws::AutoScaling
1101
1089
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
1102
1090
  # @return [Boolean]
1103
1091
  #
1092
+ # @!attribute [rw] capacity_rebalance
1093
+ # Indicates whether Capacity Rebalancing is enabled. Otherwise,
1094
+ # Capacity Rebalancing is disabled. When you turn on Capacity
1095
+ # Rebalancing, Amazon EC2 Auto Scaling attempts to launch a Spot
1096
+ # Instance whenever Amazon EC2 notifies that a Spot Instance is at an
1097
+ # elevated risk of interruption. After launching a new instance, it
1098
+ # then terminates an old instance. For more information, see [Amazon
1099
+ # EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2 Auto
1100
+ # Scaling User Guide*.
1101
+ #
1102
+ #
1103
+ #
1104
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
1105
+ # @return [Boolean]
1106
+ #
1104
1107
  # @!attribute [rw] lifecycle_hook_specification_list
1105
- # One or more lifecycle hooks.
1108
+ # One or more lifecycle hooks for the group, which specify actions to
1109
+ # perform when Amazon EC2 Auto Scaling launches or terminates
1110
+ # instances.
1106
1111
  # @return [Array<Types::LifecycleHookSpecification>]
1107
1112
  #
1108
1113
  # @!attribute [rw] tags
1109
1114
  # 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
- # Tags are not propagated to Amazon EBS volumes. To add tags to Amazon
1113
- # EBS volumes, specify the tags in a launch template but use caution.
1114
- # If the launch template specifies an instance tag with a key that is
1115
- # also specified for the Auto Scaling group, Amazon EC2 Auto Scaling
1116
- # overrides the value of that instance tag with the value specified by
1117
- # the Auto Scaling group.
1118
- #
1119
- # For more information, see [Tagging Auto Scaling Groups and
1120
- # Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
1115
+ # the tags to the Amazon EC2 instances it launches. Tags are not
1116
+ # propagated to Amazon EBS volumes. To add tags to Amazon EBS volumes,
1117
+ # specify the tags in a launch template but use caution. If the launch
1118
+ # template specifies an instance tag with a key that is also specified
1119
+ # for the Auto Scaling group, Amazon EC2 Auto Scaling overrides the
1120
+ # value of that instance tag with the value specified by the Auto
1121
+ # Scaling group. For more information, see [Tagging Auto Scaling
1122
+ # groups and instances][1] in the *Amazon EC2 Auto Scaling User
1123
+ # Guide*.
1121
1124
  #
1122
1125
  #
1123
1126
  #
@@ -1129,7 +1132,7 @@ module Aws::AutoScaling
1129
1132
  # Auto Scaling group uses to call other AWS services on your behalf.
1130
1133
  # By default, Amazon EC2 Auto Scaling uses a service-linked role named
1131
1134
  # AWSServiceRoleForAutoScaling, which it creates if it does not exist.
1132
- # For more information, see [Service-Linked Roles][1] in the *Amazon
1135
+ # For more information, see [Service-linked roles][1] in the *Amazon
1133
1136
  # EC2 Auto Scaling User Guide*.
1134
1137
  #
1135
1138
  #
@@ -1139,18 +1142,12 @@ module Aws::AutoScaling
1139
1142
  #
1140
1143
  # @!attribute [rw] max_instance_lifetime
1141
1144
  # The maximum amount of time, in seconds, that an instance can be in
1142
- # service. The default is null.
1143
- #
1144
- # This parameter is optional, but if you specify a value for it, you
1145
- # must specify a value of at least 604,800 seconds (7 days). To clear
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
1145
+ # service. The default is null. If specified, the value must be either
1146
+ # 0 or a number equal to or greater than 86,400 seconds (1 day). For
1147
+ # more information, see [Replacing Auto Scaling instances based on
1148
+ # maximum instance lifetime][1] in the *Amazon EC2 Auto Scaling User
1150
1149
  # Guide*.
1151
1150
  #
1152
- # Valid Range: Minimum value of 0.
1153
- #
1154
1151
  #
1155
1152
  #
1156
1153
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
@@ -1177,6 +1174,7 @@ module Aws::AutoScaling
1177
1174
  :vpc_zone_identifier,
1178
1175
  :termination_policies,
1179
1176
  :new_instances_protected_from_scale_in,
1177
+ :capacity_rebalance,
1180
1178
  :lifecycle_hook_specification_list,
1181
1179
  :tags,
1182
1180
  :service_linked_role_arn,
@@ -1278,7 +1276,7 @@ module Aws::AutoScaling
1278
1276
  # The ID of a ClassicLink-enabled VPC to link your EC2-Classic
1279
1277
  # instances to. For more information, see [ClassicLink][1] in the
1280
1278
  # *Amazon EC2 User Guide for Linux Instances* and [Linking EC2-Classic
1281
- # Instances to a VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
1279
+ # instances to a VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
1282
1280
  #
1283
1281
  # This parameter can only be used if you are launching EC2-Classic
1284
1282
  # instances.
@@ -1293,7 +1291,7 @@ module Aws::AutoScaling
1293
1291
  # The IDs of one or more security groups for the specified
1294
1292
  # ClassicLink-enabled VPC. For more information, see [ClassicLink][1]
1295
1293
  # in the *Amazon EC2 User Guide for Linux Instances* and [Linking
1296
- # EC2-Classic Instances to a VPC][2] in the *Amazon EC2 Auto Scaling
1294
+ # EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling
1297
1295
  # User Guide*.
1298
1296
  #
1299
1297
  # If you specify the `ClassicLinkVPCId` parameter, you must specify
@@ -1307,8 +1305,8 @@ module Aws::AutoScaling
1307
1305
  #
1308
1306
  # @!attribute [rw] user_data
1309
1307
  # The Base64-encoded user data to make available to the launched EC2
1310
- # instances. For more information, see [Instance Metadata and User
1311
- # Data][1] in the *Amazon EC2 User Guide for Linux Instances*.
1308
+ # instances. For more information, see [Instance metadata and user
1309
+ # data][1] in the *Amazon EC2 User Guide for Linux Instances*.
1312
1310
  #
1313
1311
  #
1314
1312
  #
@@ -1324,8 +1322,8 @@ module Aws::AutoScaling
1324
1322
  # override any other instance attributes, specify them as part of the
1325
1323
  # same request.
1326
1324
  #
1327
- # For more information, see [Create a Launch Configuration Using an
1328
- # EC2 Instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
1325
+ # For more information, see [Creating a launch configuration using an
1326
+ # EC2 instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
1329
1327
  #
1330
1328
  # If you do not specify `InstanceId`, you must specify both `ImageId`
1331
1329
  # and `InstanceType`.
@@ -1382,15 +1380,15 @@ module Aws::AutoScaling
1382
1380
  #
1383
1381
  #
1384
1382
  #
1385
- # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html#enable-as-instance-metrics
1383
+ # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
1386
1384
  # @return [Types::InstanceMonitoring]
1387
1385
  #
1388
1386
  # @!attribute [rw] spot_price
1389
1387
  # The maximum hourly price to be paid for any Spot Instance launched
1390
1388
  # to fulfill the request. Spot Instances are launched when the price
1391
1389
  # you specify exceeds the current Spot price. For more information,
1392
- # see [Launching Spot Instances in Your Auto Scaling Group][1] in the
1393
- # *Amazon EC2 Auto Scaling User Guide*.
1390
+ # see [Requesting Spot Instances][1] in the *Amazon EC2 Auto Scaling
1391
+ # User Guide*.
1394
1392
  #
1395
1393
  # <note markdown="1"> When you change your maximum price by creating a new launch
1396
1394
  # configuration, running instances will continue to run as long as the
@@ -1409,8 +1407,8 @@ module Aws::AutoScaling
1409
1407
  # associated with the IAM role for the instance. The instance profile
1410
1408
  # contains the IAM role.
1411
1409
  #
1412
- # For more information, see [IAM Role for Applications That Run on
1413
- # Amazon EC2 Instances][1] in the *Amazon EC2 Auto Scaling User
1410
+ # For more information, see [IAM role for applications that run on
1411
+ # Amazon EC2 instances][1] in the *Amazon EC2 Auto Scaling User
1414
1412
  # Guide*.
1415
1413
  #
1416
1414
  #
@@ -1441,7 +1439,7 @@ module Aws::AutoScaling
1441
1439
  # (VPC), specifies whether to assign a public IP address to the
1442
1440
  # group's instances. If you specify `true`, each instance in the Auto
1443
1441
  # Scaling group receives a unique public IP address. For more
1444
- # information, see [Launching Auto Scaling Instances in a VPC][1] in
1442
+ # information, see [Launching Auto Scaling instances in a VPC][1] in
1445
1443
  # the *Amazon EC2 Auto Scaling User Guide*.
1446
1444
  #
1447
1445
  # If you specify this parameter, you must specify at least one subnet
@@ -1473,24 +1471,24 @@ module Aws::AutoScaling
1473
1471
  # If you specify `PlacementTenancy`, you must specify at least one
1474
1472
  # subnet for `VPCZoneIdentifier` when you create your group.
1475
1473
  #
1476
- # For more information, see [Instance Placement Tenancy][1] in the
1477
- # *Amazon EC2 Auto Scaling User Guide*.
1474
+ # For more information, see [Configuring instance tenancy with Amazon
1475
+ # EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
1478
1476
  #
1479
1477
  # Valid Values: `default` \| `dedicated`
1480
1478
  #
1481
1479
  #
1482
1480
  #
1483
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
1481
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
1484
1482
  # @return [String]
1485
1483
  #
1486
1484
  # @!attribute [rw] metadata_options
1487
1485
  # The metadata options for the instances. For more information, see
1488
- # [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide
1489
- # for Linux Instances*.
1486
+ # [Configuring the Instance Metadata Options][1] in the *Amazon EC2
1487
+ # Auto Scaling User Guide*.
1490
1488
  #
1491
1489
  #
1492
1490
  #
1493
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
1491
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
1494
1492
  # @return [Types::InstanceMetadataOptions]
1495
1493
  #
1496
1494
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType AWS API Documentation
@@ -1625,7 +1623,7 @@ module Aws::AutoScaling
1625
1623
  # data as a hash:
1626
1624
  #
1627
1625
  # {
1628
- # auto_scaling_group_name: "ResourceName", # required
1626
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1629
1627
  # force_delete: false,
1630
1628
  # }
1631
1629
  #
@@ -1658,7 +1656,7 @@ module Aws::AutoScaling
1658
1656
  #
1659
1657
  # {
1660
1658
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
1661
- # auto_scaling_group_name: "ResourceName", # required
1659
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1662
1660
  # }
1663
1661
  #
1664
1662
  # @!attribute [rw] lifecycle_hook_name
@@ -1682,8 +1680,8 @@ module Aws::AutoScaling
1682
1680
  # data as a hash:
1683
1681
  #
1684
1682
  # {
1685
- # auto_scaling_group_name: "ResourceName", # required
1686
- # topic_arn: "ResourceName", # required
1683
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1684
+ # topic_arn: "XmlStringMaxLen255", # required
1687
1685
  # }
1688
1686
  #
1689
1687
  # @!attribute [rw] auto_scaling_group_name
@@ -1708,7 +1706,7 @@ module Aws::AutoScaling
1708
1706
  # data as a hash:
1709
1707
  #
1710
1708
  # {
1711
- # auto_scaling_group_name: "ResourceName",
1709
+ # auto_scaling_group_name: "XmlStringMaxLen255",
1712
1710
  # policy_name: "ResourceName", # required
1713
1711
  # }
1714
1712
  #
@@ -1733,8 +1731,8 @@ module Aws::AutoScaling
1733
1731
  # data as a hash:
1734
1732
  #
1735
1733
  # {
1736
- # auto_scaling_group_name: "ResourceName", # required
1737
- # scheduled_action_name: "ResourceName", # required
1734
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1735
+ # scheduled_action_name: "XmlStringMaxLen255", # required
1738
1736
  # }
1739
1737
  #
1740
1738
  # @!attribute [rw] auto_scaling_group_name
@@ -1958,7 +1956,7 @@ module Aws::AutoScaling
1958
1956
  # data as a hash:
1959
1957
  #
1960
1958
  # {
1961
- # auto_scaling_group_name: "ResourceName", # required
1959
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1962
1960
  # lifecycle_hook_names: ["AsciiStringMaxLen255"],
1963
1961
  # }
1964
1962
  #
@@ -1984,7 +1982,7 @@ module Aws::AutoScaling
1984
1982
  # data as a hash:
1985
1983
  #
1986
1984
  # {
1987
- # auto_scaling_group_name: "ResourceName", # required
1985
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
1988
1986
  # next_token: "XmlString",
1989
1987
  # max_records: 1,
1990
1988
  # }
@@ -2038,7 +2036,7 @@ module Aws::AutoScaling
2038
2036
  # data as a hash:
2039
2037
  #
2040
2038
  # {
2041
- # auto_scaling_group_name: "ResourceName", # required
2039
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2042
2040
  # next_token: "XmlString",
2043
2041
  # max_records: 1,
2044
2042
  # }
@@ -2130,7 +2128,7 @@ module Aws::AutoScaling
2130
2128
  # data as a hash:
2131
2129
  #
2132
2130
  # {
2133
- # auto_scaling_group_names: ["ResourceName"],
2131
+ # auto_scaling_group_names: ["XmlStringMaxLen255"],
2134
2132
  # next_token: "XmlString",
2135
2133
  # max_records: 1,
2136
2134
  # }
@@ -2163,7 +2161,7 @@ module Aws::AutoScaling
2163
2161
  # data as a hash:
2164
2162
  #
2165
2163
  # {
2166
- # auto_scaling_group_name: "ResourceName",
2164
+ # auto_scaling_group_name: "XmlStringMaxLen255",
2167
2165
  # policy_names: ["ResourceName"],
2168
2166
  # policy_types: ["XmlStringMaxLen64"],
2169
2167
  # next_token: "XmlString",
@@ -2213,7 +2211,7 @@ module Aws::AutoScaling
2213
2211
  #
2214
2212
  # {
2215
2213
  # activity_ids: ["XmlString"],
2216
- # auto_scaling_group_name: "ResourceName",
2214
+ # auto_scaling_group_name: "XmlStringMaxLen255",
2217
2215
  # max_records: 1,
2218
2216
  # next_token: "XmlString",
2219
2217
  # }
@@ -2255,8 +2253,8 @@ module Aws::AutoScaling
2255
2253
  # data as a hash:
2256
2254
  #
2257
2255
  # {
2258
- # auto_scaling_group_name: "ResourceName",
2259
- # scheduled_action_names: ["ResourceName"],
2256
+ # auto_scaling_group_name: "XmlStringMaxLen255",
2257
+ # scheduled_action_names: ["XmlStringMaxLen255"],
2260
2258
  # start_time: Time.now,
2261
2259
  # end_time: Time.now,
2262
2260
  # next_token: "XmlString",
@@ -2380,7 +2378,7 @@ module Aws::AutoScaling
2380
2378
  #
2381
2379
  # {
2382
2380
  # instance_ids: ["XmlStringMaxLen19"],
2383
- # auto_scaling_group_name: "ResourceName", # required
2381
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2384
2382
  # should_decrement_desired_capacity: false, # required
2385
2383
  # }
2386
2384
  #
@@ -2415,7 +2413,7 @@ module Aws::AutoScaling
2415
2413
  # data as a hash:
2416
2414
  #
2417
2415
  # {
2418
- # auto_scaling_group_name: "ResourceName", # required
2416
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2419
2417
  # target_group_arns: ["XmlStringMaxLen511"], # required
2420
2418
  # }
2421
2419
  #
@@ -2445,7 +2443,7 @@ module Aws::AutoScaling
2445
2443
  # data as a hash:
2446
2444
  #
2447
2445
  # {
2448
- # auto_scaling_group_name: "ResourceName", # required
2446
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2449
2447
  # load_balancer_names: ["XmlStringMaxLen255"], # required
2450
2448
  # }
2451
2449
  #
@@ -2471,7 +2469,7 @@ module Aws::AutoScaling
2471
2469
  # data as a hash:
2472
2470
  #
2473
2471
  # {
2474
- # auto_scaling_group_name: "ResourceName", # required
2472
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2475
2473
  # metrics: ["XmlStringMaxLen255"],
2476
2474
  # }
2477
2475
  #
@@ -2616,7 +2614,7 @@ module Aws::AutoScaling
2616
2614
  #
2617
2615
  # For more information, see [Using Encryption with EBS-Backed AMIs][3]
2618
2616
  # in the *Amazon EC2 User Guide for Linux Instances* and [Required CMK
2619
- # Key Policy for Use with Encrypted Volumes][4] in the *Amazon EC2
2617
+ # key policy for use with encrypted volumes][4] in the *Amazon EC2
2620
2618
  # Auto Scaling User Guide*.
2621
2619
  #
2622
2620
  #
@@ -2644,7 +2642,7 @@ module Aws::AutoScaling
2644
2642
  # data as a hash:
2645
2643
  #
2646
2644
  # {
2647
- # auto_scaling_group_name: "ResourceName", # required
2645
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2648
2646
  # metrics: ["XmlStringMaxLen255"],
2649
2647
  # granularity: "XmlStringMaxLen255", # required
2650
2648
  # }
@@ -2766,7 +2764,7 @@ module Aws::AutoScaling
2766
2764
  #
2767
2765
  # {
2768
2766
  # instance_ids: ["XmlStringMaxLen19"],
2769
- # auto_scaling_group_name: "ResourceName", # required
2767
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2770
2768
  # should_decrement_desired_capacity: false, # required
2771
2769
  # }
2772
2770
  #
@@ -2797,7 +2795,7 @@ module Aws::AutoScaling
2797
2795
  # data as a hash:
2798
2796
  #
2799
2797
  # {
2800
- # auto_scaling_group_name: "ResourceName",
2798
+ # auto_scaling_group_name: "XmlStringMaxLen255",
2801
2799
  # policy_name: "ResourceName", # required
2802
2800
  # honor_cooldown: false,
2803
2801
  # metric_value: 1.0,
@@ -2817,7 +2815,7 @@ module Aws::AutoScaling
2817
2815
  # period to complete before executing the policy.
2818
2816
  #
2819
2817
  # Valid only if the policy type is `SimpleScaling`. For more
2820
- # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
2818
+ # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1]
2821
2819
  # in the *Amazon EC2 Auto Scaling User Guide*.
2822
2820
  #
2823
2821
  #
@@ -2875,7 +2873,7 @@ module Aws::AutoScaling
2875
2873
  #
2876
2874
  # {
2877
2875
  # instance_ids: ["XmlStringMaxLen19"],
2878
- # auto_scaling_group_name: "ResourceName", # required
2876
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
2879
2877
  # }
2880
2878
  #
2881
2879
  # @!attribute [rw] instance_ids
@@ -2923,8 +2921,8 @@ module Aws::AutoScaling
2923
2921
  # Describes a filter that is used to return a more specific list of
2924
2922
  # results when describing tags.
2925
2923
  #
2926
- # For more information, see [Tagging Auto Scaling Groups and
2927
- # Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
2924
+ # For more information, see [Tagging Auto Scaling groups and
2925
+ # instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
2928
2926
  #
2929
2927
  #
2930
2928
  #
@@ -3019,12 +3017,12 @@ module Aws::AutoScaling
3019
3017
  end
3020
3018
 
3021
3019
  # The metadata options for the instances. For more information, see
3022
- # [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide for
3023
- # Linux Instances*.
3020
+ # [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
3021
+ # Scaling User Guide*.
3024
3022
  #
3025
3023
  #
3026
3024
  #
3027
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
3025
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
3028
3026
  #
3029
3027
  # @note When making an API call, you may pass InstanceMetadataOptions
3030
3028
  # data as a hash:
@@ -3199,7 +3197,7 @@ module Aws::AutoScaling
3199
3197
  # The instances distribution specifies the distribution of On-Demand
3200
3198
  # Instances and Spot Instances, the maximum price to pay for Spot
3201
3199
  # Instances, and how the Auto Scaling group allocates instance types to
3202
- # fulfill On-Demand and Spot capacity.
3200
+ # fulfill On-Demand and Spot capacities.
3203
3201
  #
3204
3202
  # When you update `SpotAllocationStrategy`, `SpotInstancePools`, or
3205
3203
  # `SpotMaxPrice`, this update action does not deploy any changes across
@@ -3224,92 +3222,58 @@ module Aws::AutoScaling
3224
3222
  #
3225
3223
  # @!attribute [rw] on_demand_allocation_strategy
3226
3224
  # Indicates how to allocate instance types to fulfill On-Demand
3227
- # capacity.
3228
- #
3229
- # The only valid value is `prioritized`, which is also the default
3230
- # value. This strategy uses the order of instance type overrides for
3231
- # the LaunchTemplate to define the launch priority of each instance
3232
- # type. The first instance type in the array is prioritized higher
3233
- # than the last. If all your On-Demand capacity cannot be fulfilled
3234
- # using your highest priority instance, then the Auto Scaling groups
3235
- # launches the remaining capacity using the second priority instance
3236
- # type, and so on.
3225
+ # capacity. The only valid value is `prioritized`, which is also the
3226
+ # default value. This strategy uses the order of instance types in the
3227
+ # overrides to define the launch priority of each instance type. The
3228
+ # first instance type in the array is prioritized higher than the
3229
+ # last. If all your On-Demand capacity cannot be fulfilled using your
3230
+ # highest priority instance, then the Auto Scaling groups launches the
3231
+ # remaining capacity using the second priority instance type, and so
3232
+ # on.
3237
3233
  # @return [String]
3238
3234
  #
3239
3235
  # @!attribute [rw] on_demand_base_capacity
3240
3236
  # The minimum amount of the Auto Scaling group's capacity that must
3241
3237
  # be fulfilled by On-Demand Instances. This base portion is
3242
- # provisioned first as your group scales.
3243
- #
3244
- # Default if not set is 0. If you leave it set to 0, On-Demand
3245
- # Instances are launched as a percentage of the Auto Scaling group's
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>
3238
+ # provisioned first as your group scales. Defaults to 0 if not
3239
+ # specified. If you specify weights for the instance types in the
3240
+ # overrides, set the value of `OnDemandBaseCapacity` in terms of the
3241
+ # number of capacity units, and not the number of instances.
3255
3242
  # @return [Integer]
3256
3243
  #
3257
3244
  # @!attribute [rw] on_demand_percentage_above_base_capacity
3258
3245
  # Controls the percentages of On-Demand Instances and Spot Instances
3259
3246
  # for your additional capacity beyond `OnDemandBaseCapacity`.
3260
- #
3261
- # Default if not set is 100. If you leave it set to 100, the
3262
- # percentages are 100% for On-Demand Instances and 0% for Spot
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.
3247
+ # Expressed as a number (for example, 20 specifies 20% On-Demand
3248
+ # Instances, 80% Spot Instances). Defaults to 100 if not specified. If
3249
+ # set to 100, only On-Demand Instances are provisioned.
3274
3250
  # @return [Integer]
3275
3251
  #
3276
3252
  # @!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
3253
+ # Indicates how to allocate instances across Spot Instance pools. If
3254
+ # the allocation strategy is `capacity-optimized` (recommended), the
3255
+ # Auto Scaling group launches instances using Spot pools that are
3256
+ # optimally chosen based on the available Spot capacity. If the
3257
+ # allocation strategy is `lowest-price`, the Auto Scaling group
3280
3258
  # launches instances using the Spot pools with the lowest price, and
3281
3259
  # evenly allocates your instances across the number of Spot pools that
3282
- # you specify. If the allocation strategy is `capacity-optimized`, the
3283
- # 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`
3260
+ # you specify. Defaults to `lowest-price` if not specified.
3292
3261
  # @return [String]
3293
3262
  #
3294
3263
  # @!attribute [rw] spot_instance_pools
3295
3264
  # The number of Spot Instance pools across which to allocate your Spot
3296
3265
  # Instances. The Spot pools are determined from the different instance
3297
- # types in the Overrides array of LaunchTemplate. Default if not set
3298
- # is 2.
3299
- #
3300
- # Used only when the Spot allocation strategy is `lowest-price`.
3301
- #
3302
- # Valid Range: Minimum value of 1. Maximum value of 20.
3266
+ # types in the overrides. Valid only when the Spot allocation strategy
3267
+ # is `lowest-price`. Value must be in the range of 1 to 20. Defaults
3268
+ # to 2 if not specified.
3303
3269
  # @return [Integer]
3304
3270
  #
3305
3271
  # @!attribute [rw] spot_max_price
3306
3272
  # The maximum price per unit hour that you are willing to pay for a
3307
- # Spot Instance. If you leave the value of this parameter blank (which
3308
- # 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
+ # Spot Instance. If you leave the value at its default (empty), Amazon
3274
+ # EC2 Auto Scaling uses the On-Demand price as the maximum Spot price.
3275
+ # To remove a value that you previously set, include the property but
3276
+ # specify an empty string ("") for the value.
3313
3277
  # @return [String]
3314
3278
  #
3315
3279
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstancesDistribution AWS API Documentation
@@ -3350,10 +3314,8 @@ module Aws::AutoScaling
3350
3314
  #
3351
3315
  # @!attribute [rw] image_id
3352
3316
  # 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*.
3317
+ # instances. For more information, see [Finding an AMI][1] in the
3318
+ # *Amazon EC2 User Guide for Linux Instances*.
3357
3319
  #
3358
3320
  #
3359
3321
  #
@@ -3373,10 +3335,9 @@ module Aws::AutoScaling
3373
3335
  #
3374
3336
  # @!attribute [rw] security_groups
3375
3337
  # A list that contains the security groups to assign to the instances
3376
- # in the Auto Scaling group.
3377
- #
3378
- # For more information, see [Security Groups for Your VPC][1] in the
3379
- # *Amazon Virtual Private Cloud User Guide*.
3338
+ # in the Auto Scaling group. For more information, see [Security
3339
+ # Groups for Your VPC][1] in the *Amazon Virtual Private Cloud User
3340
+ # Guide*.
3380
3341
  #
3381
3342
  #
3382
3343
  #
@@ -3385,11 +3346,9 @@ module Aws::AutoScaling
3385
3346
  #
3386
3347
  # @!attribute [rw] classic_link_vpc_id
3387
3348
  # The ID of a ClassicLink-enabled VPC to link your EC2-Classic
3388
- # instances to.
3389
- #
3390
- # For more information, see [ClassicLink][1] in the *Amazon EC2 User
3391
- # Guide for Linux Instances* and [Linking EC2-Classic Instances to a
3392
- # VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
3349
+ # instances to. For more information, see [ClassicLink][1] in the
3350
+ # *Amazon EC2 User Guide for Linux Instances* and [Linking EC2-Classic
3351
+ # instances to a VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
3393
3352
  #
3394
3353
  #
3395
3354
  #
@@ -3402,7 +3361,7 @@ module Aws::AutoScaling
3402
3361
  # `ClassicLinkVPCId`.
3403
3362
  #
3404
3363
  # For more information, see [ClassicLink][1] in the *Amazon EC2 User
3405
- # Guide for Linux Instances* and [Linking EC2-Classic Instances to a
3364
+ # Guide for Linux Instances* and [Linking EC2-Classic instances to a
3406
3365
  # VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
3407
3366
  #
3408
3367
  #
@@ -3413,10 +3372,8 @@ module Aws::AutoScaling
3413
3372
  #
3414
3373
  # @!attribute [rw] user_data
3415
3374
  # 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*.
3375
+ # instances. For more information, see [Instance metadata and user
3376
+ # data][1] in the *Amazon EC2 User Guide for Linux Instances*.
3420
3377
  #
3421
3378
  #
3422
3379
  #
@@ -3445,10 +3402,8 @@ module Aws::AutoScaling
3445
3402
  #
3446
3403
  # @!attribute [rw] block_device_mappings
3447
3404
  # 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*.
3405
+ # instance. For more information, see [Block Device Mapping][1] in the
3406
+ # *Amazon EC2 User Guide for Linux Instances*.
3452
3407
  #
3453
3408
  #
3454
3409
  #
@@ -3464,16 +3419,15 @@ module Aws::AutoScaling
3464
3419
  #
3465
3420
  #
3466
3421
  #
3467
- # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html#enable-as-instance-metrics
3422
+ # [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
3468
3423
  # @return [Types::InstanceMonitoring]
3469
3424
  #
3470
3425
  # @!attribute [rw] spot_price
3471
3426
  # The maximum hourly price to be paid for any Spot Instance launched
3472
3427
  # to fulfill the request. Spot Instances are launched when the price
3473
- # you specify exceeds the current Spot price.
3474
- #
3475
- # For more information, see [Launching Spot Instances in Your Auto
3476
- # Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
3428
+ # you specify exceeds the current Spot price. For more information,
3429
+ # see [Requesting Spot Instances][1] in the *Amazon EC2 Auto Scaling
3430
+ # User Guide*.
3477
3431
  #
3478
3432
  #
3479
3433
  #
@@ -3483,11 +3437,9 @@ module Aws::AutoScaling
3483
3437
  # @!attribute [rw] iam_instance_profile
3484
3438
  # The name or the Amazon Resource Name (ARN) of the instance profile
3485
3439
  # associated with the IAM role for the instance. The instance profile
3486
- # contains the IAM role.
3487
- #
3488
- # For more information, see [IAM Role for Applications That Run on
3489
- # Amazon EC2 Instances][1] in the *Amazon EC2 Auto Scaling User
3490
- # Guide*.
3440
+ # contains the IAM role. For more information, see [IAM role for
3441
+ # applications that run on Amazon EC2 instances][1] in the *Amazon EC2
3442
+ # Auto Scaling User Guide*.
3491
3443
  #
3492
3444
  #
3493
3445
  #
@@ -3500,10 +3452,9 @@ module Aws::AutoScaling
3500
3452
  #
3501
3453
  # @!attribute [rw] ebs_optimized
3502
3454
  # Specifies whether the launch configuration is optimized for EBS I/O
3503
- # (`true`) or not (`false`).
3504
- #
3505
- # For more information, see [Amazon EBS-Optimized Instances][1] in the
3506
- # *Amazon EC2 User Guide for Linux Instances*.
3455
+ # (`true`) or not (`false`). For more information, see [Amazon
3456
+ # EBS-Optimized Instances][1] in the *Amazon EC2 User Guide for Linux
3457
+ # Instances*.
3507
3458
  #
3508
3459
  #
3509
3460
  #
@@ -3512,10 +3463,9 @@ module Aws::AutoScaling
3512
3463
  #
3513
3464
  # @!attribute [rw] associate_public_ip_address
3514
3465
  # 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
- # For more information, see [Launching Auto Scaling Instances in a
3518
- # VPC][1] in the *Amazon EC2 Auto Scaling User Guide*.
3466
+ # to assign a public IP address to the group's instances. For more
3467
+ # information, see [Launching Auto Scaling instances in a VPC][1] in
3468
+ # the *Amazon EC2 Auto Scaling User Guide*.
3519
3469
  #
3520
3470
  #
3521
3471
  #
@@ -3527,22 +3477,22 @@ module Aws::AutoScaling
3527
3477
  # instance with `dedicated` tenancy runs on isolated, single-tenant
3528
3478
  # hardware and can only be launched into a VPC.
3529
3479
  #
3530
- # For more information, see [Instance Placement Tenancy][1] in the
3531
- # *Amazon EC2 Auto Scaling User Guide*.
3480
+ # For more information, see [Configuring instance tenancy with Amazon
3481
+ # EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
3532
3482
  #
3533
3483
  #
3534
3484
  #
3535
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
3485
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
3536
3486
  # @return [String]
3537
3487
  #
3538
3488
  # @!attribute [rw] metadata_options
3539
3489
  # The metadata options for the instances. For more information, see
3540
- # [Instance Metadata and User Data][1] in the *Amazon EC2 User Guide
3541
- # for Linux Instances*.
3490
+ # [Configuring the Instance Metadata Options][1] in the *Amazon EC2
3491
+ # Auto Scaling User Guide*.
3542
3492
  #
3543
3493
  #
3544
3494
  #
3545
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
3495
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
3546
3496
  # @return [Types::InstanceMetadataOptions]
3547
3497
  #
3548
3498
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfiguration AWS API Documentation
@@ -3576,7 +3526,7 @@ module Aws::AutoScaling
3576
3526
  # data as a hash:
3577
3527
  #
3578
3528
  # {
3579
- # launch_configuration_name: "ResourceName", # required
3529
+ # launch_configuration_name: "XmlStringMaxLen255", # required
3580
3530
  # }
3581
3531
  #
3582
3532
  # @!attribute [rw] launch_configuration_name
@@ -3595,7 +3545,7 @@ module Aws::AutoScaling
3595
3545
  # data as a hash:
3596
3546
  #
3597
3547
  # {
3598
- # launch_configuration_names: ["ResourceName"],
3548
+ # launch_configuration_names: ["XmlStringMaxLen255"],
3599
3549
  # next_token: "XmlString",
3600
3550
  # max_records: 1,
3601
3551
  # }
@@ -3648,9 +3598,7 @@ module Aws::AutoScaling
3648
3598
 
3649
3599
  # Describes a launch template and overrides.
3650
3600
  #
3651
- # The overrides are used to override the instance type specified by the
3652
- # launch template with multiple instance types that can be used to
3653
- # launch On-Demand Instances and Spot Instances.
3601
+ # You specify these parameters as part of a mixed instances policy.
3654
3602
  #
3655
3603
  # When you update the launch template or overrides, existing Amazon EC2
3656
3604
  # instances continue to run. When scale out occurs, Amazon EC2 Auto
@@ -3671,22 +3619,24 @@ module Aws::AutoScaling
3671
3619
  # {
3672
3620
  # instance_type: "XmlStringMaxLen255",
3673
3621
  # weighted_capacity: "XmlStringMaxLen32",
3622
+ # launch_template_specification: {
3623
+ # launch_template_id: "XmlStringMaxLen255",
3624
+ # launch_template_name: "LaunchTemplateName",
3625
+ # version: "XmlStringMaxLen255",
3626
+ # },
3674
3627
  # },
3675
3628
  # ],
3676
3629
  # }
3677
3630
  #
3678
3631
  # @!attribute [rw] launch_template_specification
3679
- # The launch template to use. You must specify either the launch
3680
- # template ID or launch template name in the request.
3632
+ # The launch template to use.
3681
3633
  # @return [Types::LaunchTemplateSpecification]
3682
3634
  #
3683
3635
  # @!attribute [rw] overrides
3684
3636
  # Any parameters that you specify override the same parameters in the
3685
- # launch template. Currently, the only supported override is instance
3686
- # type. You can specify between 1 and 20 instance types.
3687
- #
3688
- # If not provided, Amazon EC2 Auto Scaling will use the instance type
3689
- # specified in the launch template to launch instances.
3637
+ # launch template. If not provided, Amazon EC2 Auto Scaling uses the
3638
+ # instance type specified in the launch template when it launches an
3639
+ # instance.
3690
3640
  # @return [Array<Types::LaunchTemplateOverrides>]
3691
3641
  #
3692
3642
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplate AWS API Documentation
@@ -3698,11 +3648,14 @@ module Aws::AutoScaling
3698
3648
  include Aws::Structure
3699
3649
  end
3700
3650
 
3701
- # Describes an override for a launch template. Currently, the only
3702
- # supported override is instance type.
3651
+ # Describes an override for a launch template. The maximum number of
3652
+ # instance types that can be associated with an Auto Scaling group is
3653
+ # 20. For more information, see [Configuring overrides][1] in the
3654
+ # *Amazon EC2 Auto Scaling User Guide*.
3703
3655
  #
3704
- # The maximum number of instance type overrides that can be associated
3705
- # with an Auto Scaling group is 20.
3656
+ #
3657
+ #
3658
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-override-options.html
3706
3659
  #
3707
3660
  # @note When making an API call, you may pass LaunchTemplateOverrides
3708
3661
  # data as a hash:
@@ -3710,43 +3663,64 @@ module Aws::AutoScaling
3710
3663
  # {
3711
3664
  # instance_type: "XmlStringMaxLen255",
3712
3665
  # weighted_capacity: "XmlStringMaxLen32",
3666
+ # launch_template_specification: {
3667
+ # launch_template_id: "XmlStringMaxLen255",
3668
+ # launch_template_name: "LaunchTemplateName",
3669
+ # version: "XmlStringMaxLen255",
3670
+ # },
3713
3671
  # }
3714
3672
  #
3715
3673
  # @!attribute [rw] instance_type
3716
- # The instance type. You must use an instance type that is supported
3717
- # in your requested Region and Availability Zones.
3718
- #
3719
- # For information about available instance types, see [Available
3720
- # Instance Types][1] in the *Amazon Elastic Compute Cloud User Guide.*
3674
+ # The instance type, such as `m3.xlarge`. You must use an instance
3675
+ # type that is supported in your requested Region and Availability
3676
+ # Zones. For more information, see [Instance types][1] in the *Amazon
3677
+ # Elastic Compute Cloud User Guide*.
3721
3678
  #
3722
3679
  #
3723
3680
  #
3724
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes
3681
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
3725
3682
  # @return [String]
3726
3683
  #
3727
3684
  # @!attribute [rw] weighted_capacity
3728
- # The number of capacity units, which gives the instance type a
3729
- # proportional weight to other instance types. For example, larger
3730
- # instance types are generally weighted more than smaller instance
3731
- # types. These are the same units that you chose to set the desired
3732
- # capacity in terms of instances, or a performance attribute such as
3733
- # vCPUs, memory, or I/O.
3734
- #
3735
- # For more information, see [Instance Weighting for Amazon EC2 Auto
3736
- # Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
3737
- #
3738
- # Valid Range: Minimum value of 1. Maximum value of 999.
3685
+ # The number of capacity units provided by the specified instance type
3686
+ # in terms of virtual CPUs, memory, storage, throughput, or other
3687
+ # relative performance characteristic. When a Spot or On-Demand
3688
+ # Instance is provisioned, the capacity units count toward the desired
3689
+ # capacity. Amazon EC2 Auto Scaling provisions instances until the
3690
+ # desired capacity is totally fulfilled, even if this results in an
3691
+ # overage. For example, if there are 2 units remaining to fulfill
3692
+ # capacity, and Amazon EC2 Auto Scaling can only provision an instance
3693
+ # with a `WeightedCapacity` of 5 units, the instance is provisioned,
3694
+ # and the desired capacity is exceeded by 3 units. For more
3695
+ # information, see [Instance weighting for Amazon EC2 Auto Scaling][1]
3696
+ # in the *Amazon EC2 Auto Scaling User Guide*. Value must be in the
3697
+ # range of 1 to 999.
3739
3698
  #
3740
3699
  #
3741
3700
  #
3742
3701
  # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html
3743
3702
  # @return [String]
3744
3703
  #
3704
+ # @!attribute [rw] launch_template_specification
3705
+ # Provides the launch template to be used when launching the instance
3706
+ # type. For example, some instance types might require a launch
3707
+ # template with a different AMI. If not provided, Amazon EC2 Auto
3708
+ # Scaling uses the launch template that's defined for your mixed
3709
+ # instances policy. For more information, see [Specifying a different
3710
+ # launch template for an instance type][1] in the *Amazon EC2 Auto
3711
+ # Scaling User Guide*.
3712
+ #
3713
+ #
3714
+ #
3715
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-launch-template-overrides.html
3716
+ # @return [Types::LaunchTemplateSpecification]
3717
+ #
3745
3718
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplateOverrides AWS API Documentation
3746
3719
  #
3747
3720
  class LaunchTemplateOverrides < Struct.new(
3748
3721
  :instance_type,
3749
- :weighted_capacity)
3722
+ :weighted_capacity,
3723
+ :launch_template_specification)
3750
3724
  SENSITIVE = []
3751
3725
  include Aws::Structure
3752
3726
  end
@@ -3756,8 +3730,8 @@ module Aws::AutoScaling
3756
3730
  # EC2 instances.
3757
3731
  #
3758
3732
  # The launch template that is specified must be configured for use with
3759
- # an Auto Scaling group. For more information, see [Creating a Launch
3760
- # Template for an Auto Scaling Group][1] in the *Amazon EC2 Auto Scaling
3733
+ # an Auto Scaling group. For more information, see [Creating a launch
3734
+ # template for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
3761
3735
  # User Guide*.
3762
3736
  #
3763
3737
  #
@@ -3779,7 +3753,8 @@ module Aws::AutoScaling
3779
3753
  # templates can be created using the Amazon EC2
3780
3754
  # [CreateLaunchTemplate][2] API.
3781
3755
  #
3782
- # You must specify either a template ID or a template name.
3756
+ # Conditional: You must specify either a `LaunchTemplateId` or a
3757
+ # `LaunchTemplateName`.
3783
3758
  #
3784
3759
  #
3785
3760
  #
@@ -3793,7 +3768,8 @@ module Aws::AutoScaling
3793
3768
  # templates can be created using the Amazon EC2
3794
3769
  # [CreateLaunchTemplate][2] API.
3795
3770
  #
3796
- # You must specify either a template ID or a template name.
3771
+ # Conditional: You must specify either a `LaunchTemplateId` or a
3772
+ # `LaunchTemplateName`.
3797
3773
  #
3798
3774
  #
3799
3775
  #
@@ -3805,13 +3781,12 @@ module Aws::AutoScaling
3805
3781
  # The version number, `$Latest`, or `$Default`. To get the version
3806
3782
  # number, use the Amazon EC2 [DescribeLaunchTemplateVersions][1] API
3807
3783
  # operation. New launch template versions can be created using the
3808
- # Amazon EC2 [CreateLaunchTemplateVersion][2] API.
3809
- #
3810
- # If the value is `$Latest`, Amazon EC2 Auto Scaling selects the
3811
- # latest version of the launch template when launching instances. If
3812
- # the value is `$Default`, Amazon EC2 Auto Scaling selects the default
3813
- # version of the launch template when launching instances. The default
3814
- # value is `$Default`.
3784
+ # Amazon EC2 [CreateLaunchTemplateVersion][2] API. If the value is
3785
+ # `$Latest`, Amazon EC2 Auto Scaling selects the latest version of the
3786
+ # launch template when launching instances. If the value is
3787
+ # `$Default`, Amazon EC2 Auto Scaling selects the default version of
3788
+ # the launch template when launching instances. The default value is
3789
+ # `$Default`.
3815
3790
  #
3816
3791
  #
3817
3792
  #
@@ -3931,7 +3906,7 @@ module Aws::AutoScaling
3931
3906
  # 5. If you finish before the timeout period ends, complete the
3932
3907
  # lifecycle action.
3933
3908
  #
3934
- # For more information, see [Amazon EC2 Auto Scaling Lifecycle Hooks][1]
3909
+ # For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
3935
3910
  # in the *Amazon EC2 Auto Scaling User Guide*.
3936
3911
  #
3937
3912
  #
@@ -3948,7 +3923,7 @@ module Aws::AutoScaling
3948
3923
  # heartbeat_timeout: 1,
3949
3924
  # default_result: "LifecycleActionResult",
3950
3925
  # notification_target_arn: "NotificationTargetResourceName",
3951
- # role_arn: "ResourceName",
3926
+ # role_arn: "XmlStringMaxLen255",
3952
3927
  # }
3953
3928
  #
3954
3929
  # @!attribute [rw] lifecycle_hook_name
@@ -4208,15 +4183,14 @@ module Aws::AutoScaling
4208
4183
  # Describes a mixed instances policy for an Auto Scaling group. With
4209
4184
  # mixed instances, your Auto Scaling group can provision a combination
4210
4185
  # of On-Demand Instances and Spot Instances across multiple instance
4211
- # types. For more information, see [Auto Scaling Groups with Multiple
4212
- # Instance Types and Purchase Options][1] in the *Amazon EC2 Auto
4186
+ # types. For more information, see [Auto Scaling groups with multiple
4187
+ # instance types and purchase options][1] in the *Amazon EC2 Auto
4213
4188
  # Scaling User Guide*.
4214
4189
  #
4215
4190
  # You can create a mixed instances policy for a new Auto Scaling group,
4216
4191
  # or you can create it for an existing group by updating the group to
4217
4192
  # specify `MixedInstancesPolicy` as the top-level parameter instead of a
4218
- # launch configuration or launch template. For more information, see
4219
- # CreateAutoScalingGroup and UpdateAutoScalingGroup.
4193
+ # launch configuration or launch template.
4220
4194
  #
4221
4195
  #
4222
4196
  #
@@ -4236,6 +4210,11 @@ module Aws::AutoScaling
4236
4210
  # {
4237
4211
  # instance_type: "XmlStringMaxLen255",
4238
4212
  # weighted_capacity: "XmlStringMaxLen32",
4213
+ # launch_template_specification: {
4214
+ # launch_template_id: "XmlStringMaxLen255",
4215
+ # launch_template_name: "LaunchTemplateName",
4216
+ # version: "XmlStringMaxLen255",
4217
+ # },
4239
4218
  # },
4240
4219
  # ],
4241
4220
  # },
@@ -4250,16 +4229,15 @@ module Aws::AutoScaling
4250
4229
  # }
4251
4230
  #
4252
4231
  # @!attribute [rw] launch_template
4253
- # The launch template and instance types (overrides).
4254
- #
4255
- # Required when creating a mixed instances policy.
4232
+ # Specifies the launch template to use and optionally the instance
4233
+ # types (overrides) that are used to provision EC2 instances to
4234
+ # fulfill On-Demand and Spot capacities. Required when creating a
4235
+ # mixed instances policy.
4256
4236
  # @return [Types::LaunchTemplate]
4257
4237
  #
4258
4238
  # @!attribute [rw] instances_distribution
4259
- # The instances distribution to use.
4260
- #
4261
- # If you leave this parameter unspecified, the value for each
4262
- # parameter in `InstancesDistribution` uses a default value.
4239
+ # Specifies the instances distribution. If not provided, the value for
4240
+ # each parameter in `InstancesDistribution` uses a default value.
4263
4241
  # @return [Types::InstancesDistribution]
4264
4242
  #
4265
4243
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MixedInstancesPolicy AWS API Documentation
@@ -4380,17 +4358,20 @@ module Aws::AutoScaling
4380
4358
  # `ALBRequestCountPerTarget` and there is a target group attached to
4381
4359
  # the Auto Scaling group.
4382
4360
  #
4383
- # Elastic Load Balancing sends data about your load balancers to
4384
- # Amazon CloudWatch. CloudWatch collects the data and specifies the
4385
- # format to use to access the data. The format is
4386
- # `app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id
4387
- # `, where
4361
+ # You create the resource label by appending the final portion of the
4362
+ # load balancer ARN and the final portion of the target group ARN into
4363
+ # a single value, separated by a forward slash (/). The format is
4364
+ # app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt;/targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt;,
4365
+ # where:
4366
+ #
4367
+ # * app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt; is the
4368
+ # final portion of the load balancer ARN
4388
4369
  #
4389
- # * `app/load-balancer-name/load-balancer-id ` is the final portion of
4390
- # the load balancer ARN, and
4370
+ # * targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt; is
4371
+ # the final portion of the target group ARN.
4391
4372
  #
4392
- # * `targetgroup/target-group-name/target-group-id ` is the final
4393
- # portion of the target group ARN.
4373
+ # This is an example:
4374
+ # app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
4394
4375
  #
4395
4376
  # To find the ARN for an Application Load Balancer, use the
4396
4377
  # [DescribeLoadBalancers][1] API operation. To find the ARN for the
@@ -4413,7 +4394,7 @@ module Aws::AutoScaling
4413
4394
 
4414
4395
  # Describes a process type.
4415
4396
  #
4416
- # For more information, see [Scaling Processes][1] in the *Amazon EC2
4397
+ # For more information, see [Scaling processes][1] in the *Amazon EC2
4417
4398
  # Auto Scaling User Guide*.
4418
4399
  #
4419
4400
  #
@@ -4471,9 +4452,9 @@ module Aws::AutoScaling
4471
4452
  #
4472
4453
  # {
4473
4454
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
4474
- # auto_scaling_group_name: "ResourceName", # required
4455
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
4475
4456
  # lifecycle_transition: "LifecycleTransition",
4476
- # role_arn: "ResourceName",
4457
+ # role_arn: "XmlStringMaxLen255",
4477
4458
  # notification_target_arn: "NotificationTargetResourceName",
4478
4459
  # notification_metadata: "XmlStringMaxLen1023",
4479
4460
  # heartbeat_timeout: 1,
@@ -4569,8 +4550,8 @@ module Aws::AutoScaling
4569
4550
  # data as a hash:
4570
4551
  #
4571
4552
  # {
4572
- # auto_scaling_group_name: "ResourceName", # required
4573
- # topic_arn: "ResourceName", # required
4553
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
4554
+ # topic_arn: "XmlStringMaxLen255", # required
4574
4555
  # notification_types: ["XmlStringMaxLen255"], # required
4575
4556
  # }
4576
4557
  #
@@ -4603,7 +4584,7 @@ module Aws::AutoScaling
4603
4584
  # data as a hash:
4604
4585
  #
4605
4586
  # {
4606
- # auto_scaling_group_name: "ResourceName", # required
4587
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
4607
4588
  # policy_name: "XmlStringMaxLen255", # required
4608
4589
  # policy_type: "XmlStringMaxLen64",
4609
4590
  # adjustment_type: "XmlStringMaxLen255",
@@ -4667,7 +4648,7 @@ module Aws::AutoScaling
4667
4648
  # `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
4668
4649
  #
4669
4650
  # Required if the policy type is `StepScaling` or `SimpleScaling`. For
4670
- # more information, see [Scaling Adjustment Types][1] in the *Amazon
4651
+ # more information, see [Scaling adjustment types][1] in the *Amazon
4671
4652
  # EC2 Auto Scaling User Guide*.
4672
4653
  #
4673
4654
  #
@@ -4690,7 +4671,7 @@ module Aws::AutoScaling
4690
4671
  # Amazon EC2 Auto Scaling scales out the group by 2 instances.
4691
4672
  #
4692
4673
  # Valid only if the policy type is `StepScaling` or `SimpleScaling`.
4693
- # For more information, see [Scaling Adjustment Types][1] in the
4674
+ # For more information, see [Scaling adjustment types][1] in the
4694
4675
  # *Amazon EC2 Auto Scaling User Guide*.
4695
4676
  #
4696
4677
  # <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
@@ -4720,7 +4701,7 @@ module Aws::AutoScaling
4720
4701
  # period defined for the Auto Scaling group.
4721
4702
  #
4722
4703
  # Valid only if the policy type is `SimpleScaling`. For more
4723
- # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
4704
+ # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1]
4724
4705
  # in the *Amazon EC2 Auto Scaling User Guide*.
4725
4706
  #
4726
4707
  #
@@ -4784,8 +4765,8 @@ module Aws::AutoScaling
4784
4765
  #
4785
4766
  # @!attribute [rw] enabled
4786
4767
  # Indicates whether the scaling policy is enabled or disabled. The
4787
- # default is enabled. For more information, see [Disabling a Scaling
4788
- # Policy for an Auto Scaling Group][1] in the *Amazon EC2 Auto Scaling
4768
+ # default is enabled. For more information, see [Disabling a scaling
4769
+ # policy for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
4789
4770
  # User Guide*.
4790
4771
  #
4791
4772
  #
@@ -4817,7 +4798,7 @@ module Aws::AutoScaling
4817
4798
  # data as a hash:
4818
4799
  #
4819
4800
  # {
4820
- # auto_scaling_group_name: "ResourceName", # required
4801
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
4821
4802
  # scheduled_action_name: "XmlStringMaxLen255", # required
4822
4803
  # time: Time.now,
4823
4804
  # start_time: Time.now,
@@ -5048,8 +5029,8 @@ module Aws::AutoScaling
5048
5029
  #
5049
5030
  # * `SimpleScaling` (default)
5050
5031
  #
5051
- # For more information, see [Target Tracking Scaling Policies][1] and
5052
- # [Step and Simple Scaling Policies][2] in the *Amazon EC2 Auto
5032
+ # For more information, see [Target tracking scaling policies][1] and
5033
+ # [Step and simple scaling policies][2] in the *Amazon EC2 Auto
5053
5034
  # Scaling User Guide*.
5054
5035
  #
5055
5036
  #
@@ -5138,7 +5119,7 @@ module Aws::AutoScaling
5138
5119
  # data as a hash:
5139
5120
  #
5140
5121
  # {
5141
- # auto_scaling_group_name: "ResourceName", # required
5122
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5142
5123
  # scaling_processes: ["XmlStringMaxLen255"],
5143
5124
  # }
5144
5125
  #
@@ -5368,7 +5349,7 @@ module Aws::AutoScaling
5368
5349
  # data as a hash:
5369
5350
  #
5370
5351
  # {
5371
- # auto_scaling_group_name: "ResourceName", # required
5352
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5372
5353
  # desired_capacity: 1, # required
5373
5354
  # honor_cooldown: false,
5374
5355
  # }
@@ -5455,12 +5436,12 @@ module Aws::AutoScaling
5455
5436
  #
5456
5437
  # {
5457
5438
  # instance_ids: ["XmlStringMaxLen19"], # required
5458
- # auto_scaling_group_name: "ResourceName", # required
5439
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5459
5440
  # protected_from_scale_in: false, # required
5460
5441
  # }
5461
5442
  #
5462
5443
  # @!attribute [rw] instance_ids
5463
- # One or more instance IDs.
5444
+ # One or more instance IDs. You can specify up to 50 instances.
5464
5445
  # @return [Array<String>]
5465
5446
  #
5466
5447
  # @!attribute [rw] auto_scaling_group_name
@@ -5577,7 +5558,7 @@ module Aws::AutoScaling
5577
5558
  # * The upper and lower bound can't be null in the same step
5578
5559
  # adjustment.
5579
5560
  #
5580
- # For more information, see [Step Adjustments][1] in the *Amazon EC2
5561
+ # For more information, see [Step adjustments][1] in the *Amazon EC2
5581
5562
  # Auto Scaling User Guide*.
5582
5563
  #
5583
5564
  #
@@ -5629,9 +5610,9 @@ module Aws::AutoScaling
5629
5610
  include Aws::Structure
5630
5611
  end
5631
5612
 
5632
- # Describes an automatic scaling process that has been suspended.
5613
+ # Describes an auto scaling process that has been suspended.
5633
5614
  #
5634
- # For more information, see [Scaling Processes][1] in the *Amazon EC2
5615
+ # For more information, see [Scaling processes][1] in the *Amazon EC2
5635
5616
  # Auto Scaling User Guide*.
5636
5617
  #
5637
5618
  #
@@ -5849,8 +5830,8 @@ module Aws::AutoScaling
5849
5830
  # data as a hash:
5850
5831
  #
5851
5832
  # {
5852
- # auto_scaling_group_name: "ResourceName", # required
5853
- # launch_configuration_name: "ResourceName",
5833
+ # auto_scaling_group_name: "XmlStringMaxLen255", # required
5834
+ # launch_configuration_name: "XmlStringMaxLen255",
5854
5835
  # launch_template: {
5855
5836
  # launch_template_id: "XmlStringMaxLen255",
5856
5837
  # launch_template_name: "LaunchTemplateName",
@@ -5867,6 +5848,11 @@ module Aws::AutoScaling
5867
5848
  # {
5868
5849
  # instance_type: "XmlStringMaxLen255",
5869
5850
  # weighted_capacity: "XmlStringMaxLen32",
5851
+ # launch_template_specification: {
5852
+ # launch_template_id: "XmlStringMaxLen255",
5853
+ # launch_template_name: "LaunchTemplateName",
5854
+ # version: "XmlStringMaxLen255",
5855
+ # },
5870
5856
  # },
5871
5857
  # ],
5872
5858
  # },
@@ -5892,6 +5878,7 @@ module Aws::AutoScaling
5892
5878
  # new_instances_protected_from_scale_in: false,
5893
5879
  # service_linked_role_arn: "ResourceName",
5894
5880
  # max_instance_lifetime: 1,
5881
+ # capacity_rebalance: false,
5895
5882
  # }
5896
5883
  #
5897
5884
  # @!attribute [rw] auto_scaling_group_name
@@ -5908,31 +5895,18 @@ module Aws::AutoScaling
5908
5895
  # The launch template and version to use to specify the updates. If
5909
5896
  # you specify `LaunchTemplate` in your update request, you can't
5910
5897
  # 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
5898
  # @return [Types::LaunchTemplateSpecification]
5919
5899
  #
5920
5900
  # @!attribute [rw] mixed_instances_policy
5921
- # An embedded object that specifies a mixed instances policy.
5922
- #
5923
- # In your call to `UpdateAutoScalingGroup`, you can make changes to
5924
- # the policy that is specified. All optional parameters are left
5925
- # unchanged if not specified.
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*.
5901
+ # An embedded object that specifies a mixed instances policy. When you
5902
+ # make changes to an existing policy, all optional parameters are left
5903
+ # unchanged if not specified. For more information, see [Auto Scaling
5904
+ # groups with multiple instance types and purchase options][1] in the
5905
+ # *Amazon EC2 Auto Scaling User Guide*.
5931
5906
  #
5932
5907
  #
5933
5908
  #
5934
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_MixedInstancesPolicy.html
5935
- # [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
5909
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
5936
5910
  # @return [Types::MixedInstancesPolicy]
5937
5911
  #
5938
5912
  # @!attribute [rw] min_size
@@ -5955,20 +5929,17 @@ module Aws::AutoScaling
5955
5929
  # @!attribute [rw] desired_capacity
5956
5930
  # The desired capacity is the initial capacity of the Auto Scaling
5957
5931
  # group after this operation completes and the capacity it attempts to
5958
- # maintain.
5959
- #
5960
- # This number must be greater than or equal to the minimum size of the
5961
- # group and less than or equal to the maximum size of the group.
5932
+ # maintain. This number must be greater than or equal to the minimum
5933
+ # size of the group and less than or equal to the maximum size of the
5934
+ # group.
5962
5935
  # @return [Integer]
5963
5936
  #
5964
5937
  # @!attribute [rw] default_cooldown
5965
5938
  # The amount of time, in seconds, after a scaling activity completes
5966
5939
  # before another scaling activity can start. The default value is
5967
- # `300`.
5968
- #
5969
- # This setting applies when using simple scaling policies, but not
5970
- # when using other scaling policies or scheduled scaling. For more
5971
- # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
5940
+ # `300`. This setting applies when using simple scaling policies, but
5941
+ # not when using other scaling policies or scheduled scaling. For more
5942
+ # information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1]
5972
5943
  # in the *Amazon EC2 Auto Scaling User Guide*.
5973
5944
  #
5974
5945
  #
@@ -5990,12 +5961,11 @@ module Aws::AutoScaling
5990
5961
  # @!attribute [rw] health_check_grace_period
5991
5962
  # The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
5992
5963
  # before checking the health status of an EC2 instance that has come
5993
- # into service. The default value is `0`.
5994
- #
5995
- # For more information, see [Health Check Grace Period][1] in the
5996
- # *Amazon EC2 Auto Scaling User Guide*.
5964
+ # into service. The default value is `0`. For more information, see
5965
+ # [Health check grace period][1] in the *Amazon EC2 Auto Scaling User
5966
+ # Guide*.
5997
5967
  #
5998
- # Required if you are adding an `ELB` health check.
5968
+ # Conditional: Required if you are adding an `ELB` health check.
5999
5969
  #
6000
5970
  #
6001
5971
  #
@@ -6003,11 +5973,12 @@ module Aws::AutoScaling
6003
5973
  # @return [Integer]
6004
5974
  #
6005
5975
  # @!attribute [rw] placement_group
6006
- # The name of the placement group into which to launch your instances,
6007
- # if any. A placement group is a logical grouping of instances within
6008
- # a single Availability Zone. You cannot specify multiple Availability
6009
- # Zones and a placement group. For more information, see [Placement
6010
- # Groups][1] in the *Amazon EC2 User Guide for Linux Instances*.
5976
+ # The name of an existing placement group into which to launch your
5977
+ # instances, if any. A placement group is a logical grouping of
5978
+ # instances within a single Availability Zone. You cannot specify
5979
+ # multiple Availability Zones and a placement group. For more
5980
+ # information, see [Placement Groups][1] in the *Amazon EC2 User Guide
5981
+ # for Linux Instances*.
6011
5982
  #
6012
5983
  #
6013
5984
  #
@@ -6015,22 +5986,18 @@ module Aws::AutoScaling
6015
5986
  # @return [String]
6016
5987
  #
6017
5988
  # @!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
5989
+ # A comma-separated list of subnet IDs for a virtual private cloud
5990
+ # (VPC). If you specify `VPCZoneIdentifier` with `AvailabilityZones`,
5991
+ # the subnets that you specify for this parameter must reside in those
6023
5992
  # Availability Zones.
6024
5993
  # @return [String]
6025
5994
  #
6026
5995
  # @!attribute [rw] termination_policies
6027
- # A standalone termination policy or a list of termination policies
6028
- # used to select the instance to terminate. The policies are executed
6029
- # in the order that they are listed.
6030
- #
6031
- # For more information, see [Controlling Which Instances Auto Scaling
6032
- # Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
6033
- # Guide*.
5996
+ # A policy or a list of policies that are used to select the instances
5997
+ # to terminate. The policies are executed in the order that you list
5998
+ # them. For more information, see [Controlling which Auto Scaling
5999
+ # instances terminate during scale in][1] in the *Amazon EC2 Auto
6000
+ # Scaling User Guide*.
6034
6001
  #
6035
6002
  #
6036
6003
  #
@@ -6039,10 +6006,9 @@ module Aws::AutoScaling
6039
6006
  #
6040
6007
  # @!attribute [rw] new_instances_protected_from_scale_in
6041
6008
  # Indicates whether newly launched instances are protected from
6042
- # termination by Amazon EC2 Auto Scaling when scaling in.
6043
- #
6044
- # For more information about preventing instances from terminating on
6045
- # scale in, see [Instance Protection][1] in the *Amazon EC2 Auto
6009
+ # termination by Amazon EC2 Auto Scaling when scaling in. For more
6010
+ # information about preventing instances from terminating on scale in,
6011
+ # see [Instance scale-in protection][1] in the *Amazon EC2 Auto
6046
6012
  # Scaling User Guide*.
6047
6013
  #
6048
6014
  #
@@ -6053,7 +6019,7 @@ module Aws::AutoScaling
6053
6019
  # @!attribute [rw] service_linked_role_arn
6054
6020
  # The Amazon Resource Name (ARN) of the service-linked role that the
6055
6021
  # Auto Scaling group uses to call other AWS services on your behalf.
6056
- # For more information, see [Service-Linked Roles][1] in the *Amazon
6022
+ # For more information, see [Service-linked roles][1] in the *Amazon
6057
6023
  # EC2 Auto Scaling User Guide*.
6058
6024
  #
6059
6025
  #
@@ -6063,22 +6029,26 @@ module Aws::AutoScaling
6063
6029
  #
6064
6030
  # @!attribute [rw] max_instance_lifetime
6065
6031
  # The maximum amount of time, in seconds, that an instance can be in
6066
- # service. The default is null.
6032
+ # service. The default is null. If specified, the value must be either
6033
+ # 0 or a number equal to or greater than 86,400 seconds (1 day). To
6034
+ # clear a previously set value, specify a new value of 0. For more
6035
+ # information, see [Replacing Auto Scaling instances based on maximum
6036
+ # instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
6067
6037
  #
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
6038
  #
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
6039
  #
6076
- # Valid Range: Minimum value of 0.
6040
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
6041
+ # @return [Integer]
6077
6042
  #
6043
+ # @!attribute [rw] capacity_rebalance
6044
+ # Enables or disables Capacity Rebalancing. For more information, see
6045
+ # [Amazon EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2
6046
+ # Auto Scaling User Guide*.
6078
6047
  #
6079
6048
  #
6080
- # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
6081
- # @return [Integer]
6049
+ #
6050
+ # [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
6051
+ # @return [Boolean]
6082
6052
  #
6083
6053
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation
6084
6054
  #
@@ -6099,7 +6069,8 @@ module Aws::AutoScaling
6099
6069
  :termination_policies,
6100
6070
  :new_instances_protected_from_scale_in,
6101
6071
  :service_linked_role_arn,
6102
- :max_instance_lifetime)
6072
+ :max_instance_lifetime,
6073
+ :capacity_rebalance)
6103
6074
  SENSITIVE = []
6104
6075
  include Aws::Structure
6105
6076
  end