aws-sdk-autoscaling 1.48.0 → 1.53.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +53 -79
- data/lib/aws-sdk-autoscaling/client.rb +301 -334
- data/lib/aws-sdk-autoscaling/client_api.rb +49 -48
- data/lib/aws-sdk-autoscaling/instance.rb +12 -1
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +32 -42
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +1 -1
- data/lib/aws-sdk-autoscaling/resource.rb +128 -159
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +5 -5
- data/lib/aws-sdk-autoscaling/scheduled_action.rb +1 -1
- data/lib/aws-sdk-autoscaling/types.rb +409 -462
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71f00079018d695da8463a86bdd4782dae43bd1fb1c4c921d64399b907df087a
|
4
|
+
data.tar.gz: ec16dba86368aadd7bb7a6ef9e386edb50121655a04a994e86f0e33a4f3591fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22b26368c71a345f36a8c3ec71b6cb449d3f91f8a08514989c5f03ee1e191830f1e975a5e80cad8c6c4c10a3745dde3ac457553b32afabc53e2e7186ea550d86
|
7
|
+
data.tar.gz: 99a71c6d1c4bdd2e4695e89149410d82dd2a8447459303515f14ac8cec0e701b4cbaa56c45a2f3d74bde389a8cdee476a553f337c3db9b0b8f8a18f91115f985
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -186,7 +186,7 @@ module Aws::AutoScaling
|
|
186
186
|
data[:max_instance_lifetime]
|
187
187
|
end
|
188
188
|
|
189
|
-
# Indicates whether
|
189
|
+
# Indicates whether Capacity Rebalancing is enabled.
|
190
190
|
# @return [Boolean]
|
191
191
|
def capacity_rebalance
|
192
192
|
data[:capacity_rebalance]
|
@@ -603,7 +603,7 @@ module Aws::AutoScaling
|
|
603
603
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
604
604
|
#
|
605
605
|
# Required if the policy type is `StepScaling` or `SimpleScaling`. For
|
606
|
-
# more information, see [Scaling
|
606
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
607
607
|
# Auto Scaling User Guide*.
|
608
608
|
#
|
609
609
|
#
|
@@ -622,7 +622,7 @@ module Aws::AutoScaling
|
|
622
622
|
# EC2 Auto Scaling scales out the group by 2 instances.
|
623
623
|
#
|
624
624
|
# Valid only if the policy type is `StepScaling` or `SimpleScaling`. For
|
625
|
-
# more information, see [Scaling
|
625
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
626
626
|
# Auto Scaling User Guide*.
|
627
627
|
#
|
628
628
|
# <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
|
@@ -648,7 +648,7 @@ module Aws::AutoScaling
|
|
648
648
|
# period defined for the Auto Scaling group.
|
649
649
|
#
|
650
650
|
# Valid only if the policy type is `SimpleScaling`. For more
|
651
|
-
# information, see [Scaling
|
651
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
652
652
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
653
653
|
#
|
654
654
|
#
|
@@ -702,8 +702,8 @@ module Aws::AutoScaling
|
|
702
702
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_TargetTrackingConfiguration.html
|
703
703
|
# @option options [Boolean] :enabled
|
704
704
|
# Indicates whether the scaling policy is enabled or disabled. The
|
705
|
-
# default is enabled. For more information, see [Disabling a
|
706
|
-
#
|
705
|
+
# default is enabled. For more information, see [Disabling a scaling
|
706
|
+
# policy for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
707
707
|
# User Guide*.
|
708
708
|
#
|
709
709
|
#
|
@@ -879,7 +879,7 @@ module Aws::AutoScaling
|
|
879
879
|
# @example Request syntax with placeholder values
|
880
880
|
#
|
881
881
|
# autoscalinggroup = auto_scaling_group.update({
|
882
|
-
# launch_configuration_name: "
|
882
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
883
883
|
# launch_template: {
|
884
884
|
# launch_template_id: "XmlStringMaxLen255",
|
885
885
|
# launch_template_name: "LaunchTemplateName",
|
@@ -896,6 +896,11 @@ module Aws::AutoScaling
|
|
896
896
|
# {
|
897
897
|
# instance_type: "XmlStringMaxLen255",
|
898
898
|
# weighted_capacity: "XmlStringMaxLen32",
|
899
|
+
# launch_template_specification: {
|
900
|
+
# launch_template_id: "XmlStringMaxLen255",
|
901
|
+
# launch_template_name: "LaunchTemplateName",
|
902
|
+
# version: "XmlStringMaxLen255",
|
903
|
+
# },
|
899
904
|
# },
|
900
905
|
# ],
|
901
906
|
# },
|
@@ -932,29 +937,16 @@ module Aws::AutoScaling
|
|
932
937
|
# The launch template and version to use to specify the updates. If you
|
933
938
|
# specify `LaunchTemplate` in your update request, you can't specify
|
934
939
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
935
|
-
#
|
936
|
-
# For more information, see [LaunchTemplateSpecification][1] in the
|
937
|
-
# *Amazon EC2 Auto Scaling API Reference*.
|
938
|
-
#
|
939
|
-
#
|
940
|
-
#
|
941
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
|
942
940
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
943
|
-
# An embedded object that specifies a mixed instances policy.
|
944
|
-
#
|
945
|
-
#
|
946
|
-
#
|
947
|
-
#
|
948
|
-
#
|
949
|
-
# For more information, see [MixedInstancesPolicy][1] in the *Amazon EC2
|
950
|
-
# Auto Scaling API Reference* and [Auto Scaling Groups with Multiple
|
951
|
-
# Instance Types and Purchase Options][2] in the *Amazon EC2 Auto
|
952
|
-
# Scaling User Guide*.
|
941
|
+
# An embedded object that specifies a mixed instances policy. When you
|
942
|
+
# make changes to an existing policy, all optional parameters are left
|
943
|
+
# unchanged if not specified. For more information, see [Auto Scaling
|
944
|
+
# groups with multiple instance types and purchase options][1] in the
|
945
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
953
946
|
#
|
954
947
|
#
|
955
948
|
#
|
956
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
957
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
949
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
958
950
|
# @option options [Integer] :min_size
|
959
951
|
# The minimum size of the Auto Scaling group.
|
960
952
|
# @option options [Integer] :max_size
|
@@ -971,17 +963,15 @@ module Aws::AutoScaling
|
|
971
963
|
# @option options [Integer] :desired_capacity
|
972
964
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
973
965
|
# after this operation completes and the capacity it attempts to
|
974
|
-
# maintain.
|
975
|
-
#
|
976
|
-
#
|
977
|
-
# group and less than or equal to the maximum size of the group.
|
966
|
+
# maintain. This number must be greater than or equal to the minimum
|
967
|
+
# size of the group and less than or equal to the maximum size of the
|
968
|
+
# group.
|
978
969
|
# @option options [Integer] :default_cooldown
|
979
970
|
# The amount of time, in seconds, after a scaling activity completes
|
980
971
|
# before another scaling activity can start. The default value is `300`.
|
981
|
-
#
|
982
972
|
# This setting applies when using simple scaling policies, but not when
|
983
973
|
# using other scaling policies or scheduled scaling. For more
|
984
|
-
# information, see [Scaling
|
974
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
985
975
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
986
976
|
#
|
987
977
|
#
|
@@ -997,50 +987,46 @@ module Aws::AutoScaling
|
|
997
987
|
# @option options [Integer] :health_check_grace_period
|
998
988
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
999
989
|
# before checking the health status of an EC2 instance that has come
|
1000
|
-
# into service. The default value is `0`.
|
1001
|
-
#
|
1002
|
-
#
|
1003
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
990
|
+
# into service. The default value is `0`. For more information, see
|
991
|
+
# [Health check grace period][1] in the *Amazon EC2 Auto Scaling User
|
992
|
+
# Guide*.
|
1004
993
|
#
|
1005
|
-
# Required if you are adding an `ELB` health check.
|
994
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
1006
995
|
#
|
1007
996
|
#
|
1008
997
|
#
|
1009
998
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
1010
999
|
# @option options [String] :placement_group
|
1011
|
-
# The name of
|
1012
|
-
# if any. A placement group is a logical grouping of
|
1013
|
-
# single Availability Zone. You cannot specify
|
1014
|
-
# Zones and a placement group. For more
|
1015
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
1000
|
+
# The name of an existing placement group into which to launch your
|
1001
|
+
# instances, if any. A placement group is a logical grouping of
|
1002
|
+
# instances within a single Availability Zone. You cannot specify
|
1003
|
+
# multiple Availability Zones and a placement group. For more
|
1004
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
1005
|
+
# for Linux Instances*.
|
1016
1006
|
#
|
1017
1007
|
#
|
1018
1008
|
#
|
1019
1009
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
1020
1010
|
# @option options [String] :vpc_zone_identifier
|
1021
|
-
# A comma-separated list of subnet IDs for virtual private cloud
|
1022
|
-
#
|
1023
|
-
#
|
1024
|
-
# subnets that you specify for this parameter must reside in those
|
1011
|
+
# A comma-separated list of subnet IDs for a virtual private cloud
|
1012
|
+
# (VPC). If you specify `VPCZoneIdentifier` with `AvailabilityZones`,
|
1013
|
+
# the subnets that you specify for this parameter must reside in those
|
1025
1014
|
# Availability Zones.
|
1026
1015
|
# @option options [Array<String>] :termination_policies
|
1027
|
-
# A
|
1028
|
-
# to
|
1029
|
-
#
|
1030
|
-
#
|
1031
|
-
#
|
1032
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
1033
|
-
# Guide*.
|
1016
|
+
# A policy or a list of policies that are used to select the instances
|
1017
|
+
# to terminate. The policies are executed in the order that you list
|
1018
|
+
# them. For more information, see [Controlling which Auto Scaling
|
1019
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
1020
|
+
# Scaling User Guide*.
|
1034
1021
|
#
|
1035
1022
|
#
|
1036
1023
|
#
|
1037
1024
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html
|
1038
1025
|
# @option options [Boolean] :new_instances_protected_from_scale_in
|
1039
1026
|
# Indicates whether newly launched instances are protected from
|
1040
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
1041
|
-
#
|
1042
|
-
#
|
1043
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto Scaling
|
1027
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
1028
|
+
# information about preventing instances from terminating on scale in,
|
1029
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
1044
1030
|
# User Guide*.
|
1045
1031
|
#
|
1046
1032
|
#
|
@@ -1049,7 +1035,7 @@ module Aws::AutoScaling
|
|
1049
1035
|
# @option options [String] :service_linked_role_arn
|
1050
1036
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
1051
1037
|
# Auto Scaling group uses to call other AWS services on your behalf. For
|
1052
|
-
# more information, see [Service-
|
1038
|
+
# more information, see [Service-linked roles][1] in the *Amazon EC2
|
1053
1039
|
# Auto Scaling User Guide*.
|
1054
1040
|
#
|
1055
1041
|
#
|
@@ -1057,31 +1043,19 @@ module Aws::AutoScaling
|
|
1057
1043
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
|
1058
1044
|
# @option options [Integer] :max_instance_lifetime
|
1059
1045
|
# The maximum amount of time, in seconds, that an instance can be in
|
1060
|
-
# service. The default is null.
|
1061
|
-
#
|
1062
|
-
#
|
1063
|
-
#
|
1064
|
-
#
|
1065
|
-
#
|
1066
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
1067
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
1068
|
-
# Guide*.
|
1069
|
-
#
|
1070
|
-
# Valid Range: Minimum value of 0.
|
1046
|
+
# service. The default is null. If specified, the value must be either 0
|
1047
|
+
# or a number equal to or greater than 86,400 seconds (1 day). To clear
|
1048
|
+
# a previously set value, specify a new value of 0. For more
|
1049
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
1050
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1071
1051
|
#
|
1072
1052
|
#
|
1073
1053
|
#
|
1074
1054
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
1075
1055
|
# @option options [Boolean] :capacity_rebalance
|
1076
|
-
# Enables or disables
|
1077
|
-
#
|
1078
|
-
#
|
1079
|
-
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
1080
|
-
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
1081
|
-
# EC2 predicts that a Spot Instance is at an elevated risk of
|
1082
|
-
# interruption. After launching a new instance, it then terminates an
|
1083
|
-
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
1084
|
-
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1056
|
+
# Enables or disables Capacity Rebalancing. For more information, see
|
1057
|
+
# [Amazon EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2
|
1058
|
+
# Auto Scaling User Guide*.
|
1085
1059
|
#
|
1086
1060
|
#
|
1087
1061
|
#
|
@@ -1300,7 +1274,7 @@ module Aws::AutoScaling
|
|
1300
1274
|
# @example Request syntax with placeholder values
|
1301
1275
|
#
|
1302
1276
|
# scheduled_actions = auto_scaling_group.scheduled_actions({
|
1303
|
-
# scheduled_action_names: ["
|
1277
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
1304
1278
|
# start_time: Time.now,
|
1305
1279
|
# end_time: Time.now,
|
1306
1280
|
# })
|
@@ -341,8 +341,8 @@ module Aws::AutoScaling
|
|
341
341
|
# there are target groups attached to your Auto Scaling group, the
|
342
342
|
# instances are also registered with the target groups.
|
343
343
|
#
|
344
|
-
# For more information, see [Attach EC2
|
345
|
-
#
|
344
|
+
# For more information, see [Attach EC2 instances to your Auto Scaling
|
345
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
346
346
|
#
|
347
347
|
#
|
348
348
|
#
|
@@ -372,7 +372,7 @@ module Aws::AutoScaling
|
|
372
372
|
#
|
373
373
|
# resp = client.attach_instances({
|
374
374
|
# instance_ids: ["XmlStringMaxLen19"],
|
375
|
-
# auto_scaling_group_name: "
|
375
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
376
376
|
# })
|
377
377
|
#
|
378
378
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances AWS API Documentation
|
@@ -387,26 +387,38 @@ module Aws::AutoScaling
|
|
387
387
|
# Attaches one or more target groups to the specified Auto Scaling
|
388
388
|
# group.
|
389
389
|
#
|
390
|
+
# This operation is used with the following load balancer types:
|
391
|
+
#
|
392
|
+
# * Application Load Balancer - Operates at the application layer (layer
|
393
|
+
# 7) and supports HTTP and HTTPS.
|
394
|
+
#
|
395
|
+
# * Network Load Balancer - Operates at the transport layer (layer 4)
|
396
|
+
# and supports TCP, TLS, and UDP.
|
397
|
+
#
|
398
|
+
# * Gateway Load Balancer - Operates at the network layer (layer 3).
|
399
|
+
#
|
390
400
|
# To describe the target groups for an Auto Scaling group, call the
|
391
401
|
# DescribeLoadBalancerTargetGroups API. To detach the target group from
|
392
402
|
# the Auto Scaling group, call the DetachLoadBalancerTargetGroups API.
|
393
403
|
#
|
394
|
-
#
|
395
|
-
#
|
396
|
-
# Balancers, instances are registered with the load balancer. For more
|
397
|
-
# information, see [Attaching a Load Balancer to Your Auto Scaling
|
398
|
-
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
404
|
+
# For more information, see [Elastic Load Balancing and Amazon EC2 Auto
|
405
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
399
406
|
#
|
400
407
|
#
|
401
408
|
#
|
402
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
409
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
403
410
|
#
|
404
411
|
# @option params [required, String] :auto_scaling_group_name
|
405
412
|
# The name of the Auto Scaling group.
|
406
413
|
#
|
407
414
|
# @option params [required, Array<String>] :target_group_arns
|
408
415
|
# The Amazon Resource Names (ARN) of the target groups. You can specify
|
409
|
-
# up to 10 target groups.
|
416
|
+
# up to 10 target groups. To get the ARN of a target group, use the
|
417
|
+
# Elastic Load Balancing [DescribeTargetGroups][1] API operation.
|
418
|
+
#
|
419
|
+
#
|
420
|
+
#
|
421
|
+
# [1]: https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html
|
410
422
|
#
|
411
423
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
412
424
|
#
|
@@ -425,7 +437,7 @@ module Aws::AutoScaling
|
|
425
437
|
# @example Request syntax with placeholder values
|
426
438
|
#
|
427
439
|
# resp = client.attach_load_balancer_target_groups({
|
428
|
-
# auto_scaling_group_name: "
|
440
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
429
441
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
430
442
|
# })
|
431
443
|
#
|
@@ -438,8 +450,9 @@ module Aws::AutoScaling
|
|
438
450
|
req.send_request(options)
|
439
451
|
end
|
440
452
|
|
441
|
-
# <note markdown="1"> To attach an Application Load Balancer
|
442
|
-
# the AttachLoadBalancerTargetGroups API
|
453
|
+
# <note markdown="1"> To attach an Application Load Balancer, Network Load Balancer, or
|
454
|
+
# Gateway Load Balancer, use the AttachLoadBalancerTargetGroups API
|
455
|
+
# operation instead.
|
443
456
|
#
|
444
457
|
# </note>
|
445
458
|
#
|
@@ -451,12 +464,12 @@ module Aws::AutoScaling
|
|
451
464
|
# DescribeLoadBalancers API. To detach the load balancer from the Auto
|
452
465
|
# Scaling group, call the DetachLoadBalancers API.
|
453
466
|
#
|
454
|
-
# For more information, see [
|
455
|
-
# Scaling
|
467
|
+
# For more information, see [Elastic Load Balancing and Amazon EC2 Auto
|
468
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
456
469
|
#
|
457
470
|
#
|
458
471
|
#
|
459
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
472
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
460
473
|
#
|
461
474
|
# @option params [required, String] :auto_scaling_group_name
|
462
475
|
# The name of the Auto Scaling group.
|
@@ -482,7 +495,7 @@ module Aws::AutoScaling
|
|
482
495
|
# @example Request syntax with placeholder values
|
483
496
|
#
|
484
497
|
# resp = client.attach_load_balancers({
|
485
|
-
# auto_scaling_group_name: "
|
498
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
486
499
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
487
500
|
# })
|
488
501
|
#
|
@@ -512,8 +525,8 @@ module Aws::AutoScaling
|
|
512
525
|
# @example Request syntax with placeholder values
|
513
526
|
#
|
514
527
|
# resp = client.batch_delete_scheduled_action({
|
515
|
-
# auto_scaling_group_name: "
|
516
|
-
# scheduled_action_names: ["
|
528
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
529
|
+
# scheduled_action_names: ["XmlStringMaxLen255"], # required
|
517
530
|
# })
|
518
531
|
#
|
519
532
|
# @example Response structure
|
@@ -549,7 +562,7 @@ module Aws::AutoScaling
|
|
549
562
|
# @example Request syntax with placeholder values
|
550
563
|
#
|
551
564
|
# resp = client.batch_put_scheduled_update_group_action({
|
552
|
-
# auto_scaling_group_name: "
|
565
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
553
566
|
# scheduled_update_group_actions: [ # required
|
554
567
|
# {
|
555
568
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
@@ -654,7 +667,7 @@ module Aws::AutoScaling
|
|
654
667
|
# 5. **If you finish before the timeout period ends, complete the
|
655
668
|
# lifecycle action.**
|
656
669
|
#
|
657
|
-
# For more information, see [Amazon EC2 Auto Scaling
|
670
|
+
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
658
671
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
659
672
|
#
|
660
673
|
#
|
@@ -714,18 +727,22 @@ module Aws::AutoScaling
|
|
714
727
|
req.send_request(options)
|
715
728
|
end
|
716
729
|
|
730
|
+
# **We strongly recommend using a launch template when calling this
|
731
|
+
# operation to ensure full functionality for Amazon EC2 Auto Scaling and
|
732
|
+
# Amazon EC2.**
|
733
|
+
#
|
717
734
|
# Creates an Auto Scaling group with the specified name and attributes.
|
718
735
|
#
|
719
736
|
# If you exceed your maximum limit of Auto Scaling groups, the call
|
720
737
|
# fails. To query this limit, call the DescribeAccountLimits API. For
|
721
738
|
# information about updating this limit, see [Amazon EC2 Auto Scaling
|
722
|
-
#
|
739
|
+
# service quotas][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
723
740
|
#
|
724
741
|
# For introductory exercises for creating an Auto Scaling group, see
|
725
|
-
# [Getting
|
726
|
-
#
|
742
|
+
# [Getting started with Amazon EC2 Auto Scaling][2] and [Tutorial: Set
|
743
|
+
# up a scaled and load-balanced application][3] in the *Amazon EC2 Auto
|
727
744
|
# Scaling User Guide*. For more information, see [Auto Scaling
|
728
|
-
#
|
745
|
+
# groups][4] in the *Amazon EC2 Auto Scaling User Guide*.
|
729
746
|
#
|
730
747
|
# Every Auto Scaling group has three size parameters (`DesiredCapacity`,
|
731
748
|
# `MaxSize`, and `MinSize`). Usually, you set these sizes based on a
|
@@ -746,32 +763,30 @@ module Aws::AutoScaling
|
|
746
763
|
# Region per account.
|
747
764
|
#
|
748
765
|
# @option params [String] :launch_configuration_name
|
749
|
-
# The name of the launch configuration to use
|
750
|
-
# launched. To get the launch configuration name, use the
|
751
|
-
# DescribeLaunchConfigurations API operation. New launch configurations
|
752
|
-
# can be created with the CreateLaunchConfiguration API.
|
766
|
+
# The name of the launch configuration to use to launch instances.
|
753
767
|
#
|
754
|
-
# You must specify
|
755
|
-
# `
|
756
|
-
# `
|
768
|
+
# Conditional: You must specify either a launch template
|
769
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
770
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
757
771
|
#
|
758
772
|
# @option params [Types::LaunchTemplateSpecification] :launch_template
|
759
|
-
# Parameters used to specify the launch template and version to use
|
760
|
-
#
|
773
|
+
# Parameters used to specify the launch template and version to use to
|
774
|
+
# launch instances.
|
761
775
|
#
|
762
|
-
#
|
763
|
-
#
|
776
|
+
# Conditional: You must specify either a launch template
|
777
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
778
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
764
779
|
#
|
765
|
-
#
|
766
|
-
# group
|
780
|
+
# <note markdown="1"> The launch template that is specified must be configured for use with
|
781
|
+
# an Auto Scaling group. For more information, see [Creating a launch
|
782
|
+
# template for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
783
|
+
# User Guide*.
|
767
784
|
#
|
768
|
-
#
|
769
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
770
|
-
# `MixedInstancesPolicy`.
|
785
|
+
# </note>
|
771
786
|
#
|
772
787
|
#
|
773
788
|
#
|
774
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
789
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
775
790
|
#
|
776
791
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
777
792
|
# An embedded object that specifies a mixed instances policy. The
|
@@ -781,41 +796,30 @@ module Aws::AutoScaling
|
|
781
796
|
# The policy includes parameters that not only define the distribution
|
782
797
|
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
783
798
|
# for Spot Instances, and how the Auto Scaling group allocates instance
|
784
|
-
# types to fulfill On-Demand and Spot
|
785
|
-
# that specify the instance configuration information—the
|
786
|
-
# template and instance types.
|
787
|
-
#
|
788
|
-
# For more information, see [
|
789
|
-
#
|
790
|
-
#
|
791
|
-
# Scaling User Guide*.
|
792
|
-
#
|
793
|
-
# You must specify one of the following parameters in your request:
|
794
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
795
|
-
# `MixedInstancesPolicy`.
|
799
|
+
# types to fulfill On-Demand and Spot capacities, but also the
|
800
|
+
# parameters that specify the instance configuration information—the
|
801
|
+
# launch template and instance types. The policy can also include a
|
802
|
+
# weight for each instance type and different launch templates for
|
803
|
+
# individual instance types. For more information, see [Auto Scaling
|
804
|
+
# groups with multiple instance types and purchase options][1] in the
|
805
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
796
806
|
#
|
797
807
|
#
|
798
808
|
#
|
799
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
800
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
809
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
801
810
|
#
|
802
811
|
# @option params [String] :instance_id
|
803
|
-
# The ID of the instance used to
|
804
|
-
#
|
805
|
-
#
|
806
|
-
#
|
807
|
-
#
|
808
|
-
#
|
809
|
-
# launch configuration derives its attributes from the specified
|
810
|
-
# instance, except for the block device mapping.
|
811
|
-
#
|
812
|
-
# You must specify one of the following parameters in your request:
|
813
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
814
|
-
# `MixedInstancesPolicy`.
|
812
|
+
# The ID of the instance used to base the launch configuration on. If
|
813
|
+
# specified, Amazon EC2 Auto Scaling uses the configuration values from
|
814
|
+
# the specified instance to create a new launch configuration. To get
|
815
|
+
# the instance ID, use the Amazon EC2 [DescribeInstances][1] API
|
816
|
+
# operation. For more information, see [Creating an Auto Scaling group
|
817
|
+
# using an EC2 instance][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
815
818
|
#
|
816
819
|
#
|
817
820
|
#
|
818
821
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html
|
822
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html
|
819
823
|
#
|
820
824
|
# @option params [required, Integer] :min_size
|
821
825
|
# The minimum size of the group.
|
@@ -835,20 +839,18 @@ module Aws::AutoScaling
|
|
835
839
|
# @option params [Integer] :desired_capacity
|
836
840
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
837
841
|
# at the time of its creation and the capacity it attempts to maintain.
|
838
|
-
# It can scale beyond this capacity if you configure
|
839
|
-
#
|
840
|
-
#
|
841
|
-
#
|
842
|
-
#
|
843
|
-
# the group.
|
842
|
+
# It can scale beyond this capacity if you configure auto scaling. This
|
843
|
+
# number must be greater than or equal to the minimum size of the group
|
844
|
+
# and less than or equal to the maximum size of the group. If you do not
|
845
|
+
# specify a desired capacity, the default is the minimum size of the
|
846
|
+
# group.
|
844
847
|
#
|
845
848
|
# @option params [Integer] :default_cooldown
|
846
849
|
# The amount of time, in seconds, after a scaling activity completes
|
847
850
|
# before another scaling activity can start. The default value is `300`.
|
848
|
-
#
|
849
851
|
# This setting applies when using simple scaling policies, but not when
|
850
852
|
# using other scaling policies or scheduled scaling. For more
|
851
|
-
# information, see [Scaling
|
853
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
852
854
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
853
855
|
#
|
854
856
|
#
|
@@ -856,32 +858,25 @@ module Aws::AutoScaling
|
|
856
858
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html
|
857
859
|
#
|
858
860
|
# @option params [Array<String>] :availability_zones
|
859
|
-
#
|
860
|
-
# optional if you specify one or more
|
861
|
+
# A list of Availability Zones where instances in the Auto Scaling group
|
862
|
+
# can be created. This parameter is optional if you specify one or more
|
863
|
+
# subnets for `VPCZoneIdentifier`.
|
861
864
|
#
|
862
865
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
863
866
|
# parameter is required to launch instances into EC2-Classic.
|
864
867
|
#
|
865
868
|
# @option params [Array<String>] :load_balancer_names
|
866
869
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
867
|
-
# group. For Application Load Balancers
|
868
|
-
#
|
870
|
+
# group. For Application Load Balancers, Network Load Balancers, and
|
871
|
+
# Gateway Load Balancers, specify the `TargetGroupARNs` property
|
869
872
|
# instead.
|
870
873
|
#
|
871
|
-
# For more information, see [Using a Load Balancer with an Auto Scaling
|
872
|
-
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
873
|
-
#
|
874
|
-
#
|
875
|
-
#
|
876
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
877
|
-
#
|
878
874
|
# @option params [Array<String>] :target_group_arns
|
879
875
|
# The Amazon Resource Names (ARN) of the target groups to associate with
|
880
876
|
# the Auto Scaling group. Instances are registered as targets in a
|
881
|
-
# target group, and traffic is routed to the target group.
|
882
|
-
#
|
883
|
-
#
|
884
|
-
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
877
|
+
# target group, and traffic is routed to the target group. For more
|
878
|
+
# information, see [Elastic Load Balancing and Amazon EC2 Auto
|
879
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
885
880
|
#
|
886
881
|
#
|
887
882
|
#
|
@@ -889,13 +884,11 @@ module Aws::AutoScaling
|
|
889
884
|
#
|
890
885
|
# @option params [String] :health_check_type
|
891
886
|
# The service to use for the health checks. The valid values are `EC2`
|
892
|
-
# and `ELB`.
|
893
|
-
#
|
894
|
-
#
|
895
|
-
#
|
896
|
-
#
|
897
|
-
# For more information, see [Health Checks for Auto Scaling
|
898
|
-
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
887
|
+
# (default) and `ELB`. If you configure an Auto Scaling group to use
|
888
|
+
# load balancer (ELB) health checks, it considers the instance unhealthy
|
889
|
+
# if it fails either the EC2 status checks or the load balancer health
|
890
|
+
# checks. For more information, see [Health checks for Auto Scaling
|
891
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
899
892
|
#
|
900
893
|
#
|
901
894
|
#
|
@@ -905,47 +898,44 @@ module Aws::AutoScaling
|
|
905
898
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
906
899
|
# before checking the health status of an EC2 instance that has come
|
907
900
|
# into service. During this time, any health check failures for the
|
908
|
-
# instance are ignored. The default value is `0`.
|
909
|
-
#
|
910
|
-
#
|
911
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
901
|
+
# instance are ignored. The default value is `0`. For more information,
|
902
|
+
# see [Health check grace period][1] in the *Amazon EC2 Auto Scaling
|
903
|
+
# User Guide*.
|
912
904
|
#
|
913
|
-
# Required if you are adding an `ELB` health check.
|
905
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
914
906
|
#
|
915
907
|
#
|
916
908
|
#
|
917
909
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
918
910
|
#
|
919
911
|
# @option params [String] :placement_group
|
920
|
-
# The name of
|
921
|
-
# if any. A placement group is a logical grouping of
|
922
|
-
# single Availability Zone. You cannot specify
|
923
|
-
# Zones and a placement group. For more
|
924
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
912
|
+
# The name of an existing placement group into which to launch your
|
913
|
+
# instances, if any. A placement group is a logical grouping of
|
914
|
+
# instances within a single Availability Zone. You cannot specify
|
915
|
+
# multiple Availability Zones and a placement group. For more
|
916
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
917
|
+
# for Linux Instances*.
|
925
918
|
#
|
926
919
|
#
|
927
920
|
#
|
928
921
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
929
922
|
#
|
930
923
|
# @option params [String] :vpc_zone_identifier
|
931
|
-
# A comma-separated list of subnet IDs for
|
932
|
-
#
|
933
|
-
#
|
934
|
-
#
|
935
|
-
#
|
936
|
-
# Availability Zones.
|
924
|
+
# A comma-separated list of subnet IDs for a virtual private cloud (VPC)
|
925
|
+
# where instances in the Auto Scaling group can be created. If you
|
926
|
+
# specify `VPCZoneIdentifier` with `AvailabilityZones`, the subnets that
|
927
|
+
# you specify for this parameter must reside in those Availability
|
928
|
+
# Zones.
|
937
929
|
#
|
938
930
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
939
931
|
# parameter is required to launch instances into a VPC.
|
940
932
|
#
|
941
933
|
# @option params [Array<String>] :termination_policies
|
942
|
-
#
|
943
|
-
# terminate. These policies are executed in the order that
|
944
|
-
#
|
945
|
-
#
|
946
|
-
#
|
947
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
948
|
-
# Guide*.
|
934
|
+
# A policy or a list of policies that are used to select the instance to
|
935
|
+
# terminate. These policies are executed in the order that you list
|
936
|
+
# them. For more information, see [Controlling which Auto Scaling
|
937
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
938
|
+
# Scaling User Guide*.
|
949
939
|
#
|
950
940
|
#
|
951
941
|
#
|
@@ -953,10 +943,9 @@ module Aws::AutoScaling
|
|
953
943
|
#
|
954
944
|
# @option params [Boolean] :new_instances_protected_from_scale_in
|
955
945
|
# Indicates whether newly launched instances are protected from
|
956
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
957
|
-
#
|
958
|
-
#
|
959
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto Scaling
|
946
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
947
|
+
# information about preventing instances from terminating on scale in,
|
948
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
960
949
|
# User Guide*.
|
961
950
|
#
|
962
951
|
#
|
@@ -964,37 +953,32 @@ module Aws::AutoScaling
|
|
964
953
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
965
954
|
#
|
966
955
|
# @option params [Boolean] :capacity_rebalance
|
967
|
-
# Indicates whether
|
968
|
-
#
|
969
|
-
#
|
970
|
-
# You can enable capacity rebalancing for your Auto Scaling groups when
|
971
|
-
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
956
|
+
# Indicates whether Capacity Rebalancing is enabled. Otherwise, Capacity
|
957
|
+
# Rebalancing is disabled. When you turn on Capacity Rebalancing, Amazon
|
972
958
|
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
973
|
-
# EC2
|
959
|
+
# EC2 notifies that a Spot Instance is at an elevated risk of
|
974
960
|
# interruption. After launching a new instance, it then terminates an
|
975
961
|
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
976
|
-
#
|
962
|
+
# Capacity Rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
977
963
|
#
|
978
964
|
#
|
979
965
|
#
|
980
966
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
981
967
|
#
|
982
968
|
# @option params [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
|
983
|
-
# One or more lifecycle hooks
|
969
|
+
# One or more lifecycle hooks for the group, which specify actions to
|
970
|
+
# perform when Amazon EC2 Auto Scaling launches or terminates instances.
|
984
971
|
#
|
985
972
|
# @option params [Array<Types::Tag>] :tags
|
986
973
|
# One or more tags. You can tag your Auto Scaling group and propagate
|
987
|
-
# the tags to the Amazon EC2 instances it launches.
|
988
|
-
#
|
989
|
-
#
|
990
|
-
#
|
991
|
-
# the
|
992
|
-
#
|
993
|
-
#
|
994
|
-
# the Auto Scaling
|
995
|
-
#
|
996
|
-
# For more information, see [Tagging Auto Scaling Groups and
|
997
|
-
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
974
|
+
# the tags to the Amazon EC2 instances it launches. Tags are not
|
975
|
+
# propagated to Amazon EBS volumes. To add tags to Amazon EBS volumes,
|
976
|
+
# specify the tags in a launch template but use caution. If the launch
|
977
|
+
# template specifies an instance tag with a key that is also specified
|
978
|
+
# for the Auto Scaling group, Amazon EC2 Auto Scaling overrides the
|
979
|
+
# value of that instance tag with the value specified by the Auto
|
980
|
+
# Scaling group. For more information, see [Tagging Auto Scaling groups
|
981
|
+
# and instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
998
982
|
#
|
999
983
|
#
|
1000
984
|
#
|
@@ -1005,7 +989,7 @@ module Aws::AutoScaling
|
|
1005
989
|
# Auto Scaling group uses to call other AWS services on your behalf. By
|
1006
990
|
# default, Amazon EC2 Auto Scaling uses a service-linked role named
|
1007
991
|
# AWSServiceRoleForAutoScaling, which it creates if it does not exist.
|
1008
|
-
# For more information, see [Service-
|
992
|
+
# For more information, see [Service-linked roles][1] in the *Amazon EC2
|
1009
993
|
# Auto Scaling User Guide*.
|
1010
994
|
#
|
1011
995
|
#
|
@@ -1014,17 +998,10 @@ module Aws::AutoScaling
|
|
1014
998
|
#
|
1015
999
|
# @option params [Integer] :max_instance_lifetime
|
1016
1000
|
# The maximum amount of time, in seconds, that an instance can be in
|
1017
|
-
# service. The default is null.
|
1018
|
-
#
|
1019
|
-
#
|
1020
|
-
#
|
1021
|
-
# previously set value, specify a new value of 0.
|
1022
|
-
#
|
1023
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
1024
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
1025
|
-
# Guide*.
|
1026
|
-
#
|
1027
|
-
# Valid Range: Minimum value of 0.
|
1001
|
+
# service. The default is null. If specified, the value must be either 0
|
1002
|
+
# or a number equal to or greater than 86,400 seconds (1 day). For more
|
1003
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
1004
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1028
1005
|
#
|
1029
1006
|
#
|
1030
1007
|
#
|
@@ -1089,7 +1066,7 @@ module Aws::AutoScaling
|
|
1089
1066
|
#
|
1090
1067
|
# resp = client.create_auto_scaling_group({
|
1091
1068
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1092
|
-
# launch_configuration_name: "
|
1069
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
1093
1070
|
# launch_template: {
|
1094
1071
|
# launch_template_id: "XmlStringMaxLen255",
|
1095
1072
|
# launch_template_name: "LaunchTemplateName",
|
@@ -1106,6 +1083,11 @@ module Aws::AutoScaling
|
|
1106
1083
|
# {
|
1107
1084
|
# instance_type: "XmlStringMaxLen255",
|
1108
1085
|
# weighted_capacity: "XmlStringMaxLen32",
|
1086
|
+
# launch_template_specification: {
|
1087
|
+
# launch_template_id: "XmlStringMaxLen255",
|
1088
|
+
# launch_template_name: "LaunchTemplateName",
|
1089
|
+
# version: "XmlStringMaxLen255",
|
1090
|
+
# },
|
1109
1091
|
# },
|
1110
1092
|
# ],
|
1111
1093
|
# },
|
@@ -1141,7 +1123,7 @@ module Aws::AutoScaling
|
|
1141
1123
|
# heartbeat_timeout: 1,
|
1142
1124
|
# default_result: "LifecycleActionResult",
|
1143
1125
|
# notification_target_arn: "NotificationTargetResourceName",
|
1144
|
-
# role_arn: "
|
1126
|
+
# role_arn: "XmlStringMaxLen255",
|
1145
1127
|
# },
|
1146
1128
|
# ],
|
1147
1129
|
# tags: [
|
@@ -1171,9 +1153,9 @@ module Aws::AutoScaling
|
|
1171
1153
|
# If you exceed your maximum limit of launch configurations, the call
|
1172
1154
|
# fails. To query this limit, call the DescribeAccountLimits API. For
|
1173
1155
|
# information about updating this limit, see [Amazon EC2 Auto Scaling
|
1174
|
-
#
|
1156
|
+
# service quotas][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1175
1157
|
#
|
1176
|
-
# For more information, see [Launch
|
1158
|
+
# For more information, see [Launch configurations][2] in the *Amazon
|
1177
1159
|
# EC2 Auto Scaling User Guide*.
|
1178
1160
|
#
|
1179
1161
|
#
|
@@ -1224,7 +1206,7 @@ module Aws::AutoScaling
|
|
1224
1206
|
# @option params [String] :classic_link_vpc_id
|
1225
1207
|
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
1226
1208
|
# to. For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
1227
|
-
# Guide for Linux Instances* and [Linking EC2-Classic
|
1209
|
+
# Guide for Linux Instances* and [Linking EC2-Classic instances to a
|
1228
1210
|
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
1229
1211
|
#
|
1230
1212
|
# This parameter can only be used if you are launching EC2-Classic
|
@@ -1239,7 +1221,7 @@ module Aws::AutoScaling
|
|
1239
1221
|
# The IDs of one or more security groups for the specified
|
1240
1222
|
# ClassicLink-enabled VPC. For more information, see [ClassicLink][1] in
|
1241
1223
|
# the *Amazon EC2 User Guide for Linux Instances* and [Linking
|
1242
|
-
# EC2-Classic
|
1224
|
+
# EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling
|
1243
1225
|
# User Guide*.
|
1244
1226
|
#
|
1245
1227
|
# If you specify the `ClassicLinkVPCId` parameter, you must specify this
|
@@ -1251,13 +1233,17 @@ module Aws::AutoScaling
|
|
1251
1233
|
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink
|
1252
1234
|
#
|
1253
1235
|
# @option params [String] :user_data
|
1254
|
-
# The
|
1255
|
-
#
|
1256
|
-
#
|
1236
|
+
# The user data to make available to the launched EC2 instances. For
|
1237
|
+
# more information, see [Instance metadata and user data][1] (Linux) and
|
1238
|
+
# [Instance metadata and user data][2] (Windows). If you are using a
|
1239
|
+
# command line tool, base64-encoding is performed for you, and you can
|
1240
|
+
# load the text from a file. Otherwise, you must provide base64-encoded
|
1241
|
+
# text. User data is limited to 16 KB.
|
1257
1242
|
#
|
1258
1243
|
#
|
1259
1244
|
#
|
1260
1245
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
1246
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html
|
1261
1247
|
#
|
1262
1248
|
# @option params [String] :instance_id
|
1263
1249
|
# The ID of the instance to use to create the launch configuration. The
|
@@ -1268,8 +1254,8 @@ module Aws::AutoScaling
|
|
1268
1254
|
# override any other instance attributes, specify them as part of the
|
1269
1255
|
# same request.
|
1270
1256
|
#
|
1271
|
-
# For more information, see [
|
1272
|
-
#
|
1257
|
+
# For more information, see [Creating a launch configuration using an
|
1258
|
+
# EC2 instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1273
1259
|
#
|
1274
1260
|
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
1275
1261
|
# and `InstanceType`.
|
@@ -1282,7 +1268,7 @@ module Aws::AutoScaling
|
|
1282
1268
|
# Specifies the instance type of the EC2 instance.
|
1283
1269
|
#
|
1284
1270
|
# For information about available instance types, see [Available
|
1285
|
-
# Instance Types][1] in the *Amazon EC2 User Guide for Linux Instances
|
1271
|
+
# Instance Types][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
1286
1272
|
#
|
1287
1273
|
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
1288
1274
|
#
|
@@ -1326,8 +1312,8 @@ module Aws::AutoScaling
|
|
1326
1312
|
# The maximum hourly price to be paid for any Spot Instance launched to
|
1327
1313
|
# fulfill the request. Spot Instances are launched when the price you
|
1328
1314
|
# specify exceeds the current Spot price. For more information, see
|
1329
|
-
# [
|
1330
|
-
#
|
1315
|
+
# [Requesting Spot Instances][1] in the *Amazon EC2 Auto Scaling User
|
1316
|
+
# Guide*.
|
1331
1317
|
#
|
1332
1318
|
# <note markdown="1"> When you change your maximum price by creating a new launch
|
1333
1319
|
# configuration, running instances will continue to run as long as the
|
@@ -1345,8 +1331,8 @@ module Aws::AutoScaling
|
|
1345
1331
|
# associated with the IAM role for the instance. The instance profile
|
1346
1332
|
# contains the IAM role.
|
1347
1333
|
#
|
1348
|
-
# For more information, see [IAM
|
1349
|
-
# Amazon EC2
|
1334
|
+
# For more information, see [IAM role for applications that run on
|
1335
|
+
# Amazon EC2 instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1350
1336
|
#
|
1351
1337
|
#
|
1352
1338
|
#
|
@@ -1373,7 +1359,7 @@ module Aws::AutoScaling
|
|
1373
1359
|
# (VPC), specifies whether to assign a public IP address to the group's
|
1374
1360
|
# instances. If you specify `true`, each instance in the Auto Scaling
|
1375
1361
|
# group receives a unique public IP address. For more information, see
|
1376
|
-
# [Launching Auto Scaling
|
1362
|
+
# [Launching Auto Scaling instances in a VPC][1] in the *Amazon EC2 Auto
|
1377
1363
|
# Scaling User Guide*.
|
1378
1364
|
#
|
1379
1365
|
# If you specify this parameter, you must specify at least one subnet
|
@@ -1404,14 +1390,14 @@ module Aws::AutoScaling
|
|
1404
1390
|
# If you specify `PlacementTenancy`, you must specify at least one
|
1405
1391
|
# subnet for `VPCZoneIdentifier` when you create your group.
|
1406
1392
|
#
|
1407
|
-
# For more information, see [
|
1408
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
1393
|
+
# For more information, see [Configuring instance tenancy with Amazon
|
1394
|
+
# EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1409
1395
|
#
|
1410
1396
|
# Valid Values: `default` \| `dedicated`
|
1411
1397
|
#
|
1412
1398
|
#
|
1413
1399
|
#
|
1414
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
1400
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
|
1415
1401
|
#
|
1416
1402
|
# @option params [Types::InstanceMetadataOptions] :metadata_options
|
1417
1403
|
# The metadata options for the instances. For more information, see
|
@@ -1498,8 +1484,8 @@ module Aws::AutoScaling
|
|
1498
1484
|
# overwrites the previous tag definition, and you do not get an error
|
1499
1485
|
# message.
|
1500
1486
|
#
|
1501
|
-
# For more information, see [Tagging Auto Scaling
|
1502
|
-
#
|
1487
|
+
# For more information, see [Tagging Auto Scaling groups and
|
1488
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1503
1489
|
#
|
1504
1490
|
#
|
1505
1491
|
#
|
@@ -1607,7 +1593,7 @@ module Aws::AutoScaling
|
|
1607
1593
|
# @example Request syntax with placeholder values
|
1608
1594
|
#
|
1609
1595
|
# resp = client.delete_auto_scaling_group({
|
1610
|
-
# auto_scaling_group_name: "
|
1596
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1611
1597
|
# force_delete: false,
|
1612
1598
|
# })
|
1613
1599
|
#
|
@@ -1643,7 +1629,7 @@ module Aws::AutoScaling
|
|
1643
1629
|
# @example Request syntax with placeholder values
|
1644
1630
|
#
|
1645
1631
|
# resp = client.delete_launch_configuration({
|
1646
|
-
# launch_configuration_name: "
|
1632
|
+
# launch_configuration_name: "XmlStringMaxLen255", # required
|
1647
1633
|
# })
|
1648
1634
|
#
|
1649
1635
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration AWS API Documentation
|
@@ -1683,7 +1669,7 @@ module Aws::AutoScaling
|
|
1683
1669
|
#
|
1684
1670
|
# resp = client.delete_lifecycle_hook({
|
1685
1671
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
1686
|
-
# auto_scaling_group_name: "
|
1672
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1687
1673
|
# })
|
1688
1674
|
#
|
1689
1675
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook AWS API Documentation
|
@@ -1719,8 +1705,8 @@ module Aws::AutoScaling
|
|
1719
1705
|
# @example Request syntax with placeholder values
|
1720
1706
|
#
|
1721
1707
|
# resp = client.delete_notification_configuration({
|
1722
|
-
# auto_scaling_group_name: "
|
1723
|
-
# topic_arn: "
|
1708
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1709
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
1724
1710
|
# })
|
1725
1711
|
#
|
1726
1712
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration AWS API Documentation
|
@@ -1738,7 +1724,7 @@ module Aws::AutoScaling
|
|
1738
1724
|
# deletes the underlying alarm action, but does not delete the alarm,
|
1739
1725
|
# even if it no longer has an associated action.
|
1740
1726
|
#
|
1741
|
-
# For more information, see [Deleting a
|
1727
|
+
# For more information, see [Deleting a scaling policy][1] in the
|
1742
1728
|
# *Amazon EC2 Auto Scaling User Guide*.
|
1743
1729
|
#
|
1744
1730
|
#
|
@@ -1766,7 +1752,7 @@ module Aws::AutoScaling
|
|
1766
1752
|
# @example Request syntax with placeholder values
|
1767
1753
|
#
|
1768
1754
|
# resp = client.delete_policy({
|
1769
|
-
# auto_scaling_group_name: "
|
1755
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
1770
1756
|
# policy_name: "ResourceName", # required
|
1771
1757
|
# })
|
1772
1758
|
#
|
@@ -1802,8 +1788,8 @@ module Aws::AutoScaling
|
|
1802
1788
|
# @example Request syntax with placeholder values
|
1803
1789
|
#
|
1804
1790
|
# resp = client.delete_scheduled_action({
|
1805
|
-
# auto_scaling_group_name: "
|
1806
|
-
# scheduled_action_name: "
|
1791
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
1792
|
+
# scheduled_action_name: "XmlStringMaxLen255", # required
|
1807
1793
|
# })
|
1808
1794
|
#
|
1809
1795
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction AWS API Documentation
|
@@ -1865,7 +1851,7 @@ module Aws::AutoScaling
|
|
1865
1851
|
# AWS account.
|
1866
1852
|
#
|
1867
1853
|
# For information about requesting an increase, see [Amazon EC2 Auto
|
1868
|
-
# Scaling
|
1854
|
+
# Scaling service quotas][1] in the *Amazon EC2 Auto Scaling User
|
1869
1855
|
# Guide*.
|
1870
1856
|
#
|
1871
1857
|
#
|
@@ -1968,9 +1954,9 @@ module Aws::AutoScaling
|
|
1968
1954
|
# Describes one or more Auto Scaling groups.
|
1969
1955
|
#
|
1970
1956
|
# @option params [Array<String>] :auto_scaling_group_names
|
1971
|
-
# The names of the Auto Scaling groups.
|
1972
|
-
#
|
1973
|
-
#
|
1957
|
+
# The names of the Auto Scaling groups. By default, you can only specify
|
1958
|
+
# up to 50 names. You can optionally increase this limit using the
|
1959
|
+
# `MaxRecords` parameter.
|
1974
1960
|
#
|
1975
1961
|
# If you omit this parameter, all Auto Scaling groups are described.
|
1976
1962
|
#
|
@@ -2047,7 +2033,7 @@ module Aws::AutoScaling
|
|
2047
2033
|
# @example Request syntax with placeholder values
|
2048
2034
|
#
|
2049
2035
|
# resp = client.describe_auto_scaling_groups({
|
2050
|
-
# auto_scaling_group_names: ["
|
2036
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2051
2037
|
# next_token: "XmlString",
|
2052
2038
|
# max_records: 1,
|
2053
2039
|
# })
|
@@ -2067,6 +2053,9 @@ module Aws::AutoScaling
|
|
2067
2053
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides #=> Array
|
2068
2054
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_type #=> String
|
2069
2055
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].weighted_capacity #=> String
|
2056
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_id #=> String
|
2057
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.launch_template_name #=> String
|
2058
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].launch_template_specification.version #=> String
|
2070
2059
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
|
2071
2060
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
|
2072
2061
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
|
@@ -2427,7 +2416,7 @@ module Aws::AutoScaling
|
|
2427
2416
|
# @example Request syntax with placeholder values
|
2428
2417
|
#
|
2429
2418
|
# resp = client.describe_launch_configurations({
|
2430
|
-
# launch_configuration_names: ["
|
2419
|
+
# launch_configuration_names: ["XmlStringMaxLen255"],
|
2431
2420
|
# next_token: "XmlString",
|
2432
2421
|
# max_records: 1,
|
2433
2422
|
# })
|
@@ -2562,7 +2551,7 @@ module Aws::AutoScaling
|
|
2562
2551
|
# @example Request syntax with placeholder values
|
2563
2552
|
#
|
2564
2553
|
# resp = client.describe_lifecycle_hooks({
|
2565
|
-
# auto_scaling_group_name: "
|
2554
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2566
2555
|
# lifecycle_hook_names: ["AsciiStringMaxLen255"],
|
2567
2556
|
# })
|
2568
2557
|
#
|
@@ -2628,7 +2617,7 @@ module Aws::AutoScaling
|
|
2628
2617
|
# @example Request syntax with placeholder values
|
2629
2618
|
#
|
2630
2619
|
# resp = client.describe_load_balancer_target_groups({
|
2631
|
-
# auto_scaling_group_name: "
|
2620
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2632
2621
|
# next_token: "XmlString",
|
2633
2622
|
# max_records: 1,
|
2634
2623
|
# })
|
@@ -2652,8 +2641,8 @@ module Aws::AutoScaling
|
|
2652
2641
|
# Describes the load balancers for the specified Auto Scaling group.
|
2653
2642
|
#
|
2654
2643
|
# This operation describes only Classic Load Balancers. If you have
|
2655
|
-
# Application Load Balancers
|
2656
|
-
# DescribeLoadBalancerTargetGroups API instead.
|
2644
|
+
# Application Load Balancers, Network Load Balancers, or Gateway Load
|
2645
|
+
# Balancers, use the DescribeLoadBalancerTargetGroups API instead.
|
2657
2646
|
#
|
2658
2647
|
# @option params [required, String] :auto_scaling_group_name
|
2659
2648
|
# The name of the Auto Scaling group.
|
@@ -2693,7 +2682,7 @@ module Aws::AutoScaling
|
|
2693
2682
|
# @example Request syntax with placeholder values
|
2694
2683
|
#
|
2695
2684
|
# resp = client.describe_load_balancers({
|
2696
|
-
# auto_scaling_group_name: "
|
2685
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
2697
2686
|
# next_token: "XmlString",
|
2698
2687
|
# max_records: 1,
|
2699
2688
|
# })
|
@@ -2836,7 +2825,7 @@ module Aws::AutoScaling
|
|
2836
2825
|
# @example Request syntax with placeholder values
|
2837
2826
|
#
|
2838
2827
|
# resp = client.describe_notification_configurations({
|
2839
|
-
# auto_scaling_group_names: ["
|
2828
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
2840
2829
|
# next_token: "XmlString",
|
2841
2830
|
# max_records: 1,
|
2842
2831
|
# })
|
@@ -2926,7 +2915,7 @@ module Aws::AutoScaling
|
|
2926
2915
|
# @example Request syntax with placeholder values
|
2927
2916
|
#
|
2928
2917
|
# resp = client.describe_policies({
|
2929
|
-
# auto_scaling_group_name: "
|
2918
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
2930
2919
|
# policy_names: ["ResourceName"],
|
2931
2920
|
# policy_types: ["XmlStringMaxLen64"],
|
2932
2921
|
# next_token: "XmlString",
|
@@ -3035,7 +3024,7 @@ module Aws::AutoScaling
|
|
3035
3024
|
#
|
3036
3025
|
# resp = client.describe_scaling_activities({
|
3037
3026
|
# activity_ids: ["XmlString"],
|
3038
|
-
# auto_scaling_group_name: "
|
3027
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3039
3028
|
# max_records: 1,
|
3040
3029
|
# next_token: "XmlString",
|
3041
3030
|
# })
|
@@ -3188,8 +3177,8 @@ module Aws::AutoScaling
|
|
3188
3177
|
# @example Request syntax with placeholder values
|
3189
3178
|
#
|
3190
3179
|
# resp = client.describe_scheduled_actions({
|
3191
|
-
# auto_scaling_group_name: "
|
3192
|
-
# scheduled_action_names: ["
|
3180
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3181
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
3193
3182
|
# start_time: Time.now,
|
3194
3183
|
# end_time: Time.now,
|
3195
3184
|
# next_token: "XmlString",
|
@@ -3231,8 +3220,8 @@ module Aws::AutoScaling
|
|
3231
3220
|
# for a particular tag only if it matches all the filters. If there's
|
3232
3221
|
# no match, no special message is returned.
|
3233
3222
|
#
|
3234
|
-
# For more information, see [Tagging Auto Scaling
|
3235
|
-
#
|
3223
|
+
# For more information, see [Tagging Auto Scaling groups and
|
3224
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3236
3225
|
#
|
3237
3226
|
#
|
3238
3227
|
#
|
@@ -3328,8 +3317,8 @@ module Aws::AutoScaling
|
|
3328
3317
|
# Describes the termination policies supported by Amazon EC2 Auto
|
3329
3318
|
# Scaling.
|
3330
3319
|
#
|
3331
|
-
# For more information, see [Controlling
|
3332
|
-
#
|
3320
|
+
# For more information, see [Controlling which Auto Scaling instances
|
3321
|
+
# terminate during scale in][1] in the *Amazon EC2 Auto Scaling User
|
3333
3322
|
# Guide*.
|
3334
3323
|
#
|
3335
3324
|
#
|
@@ -3387,8 +3376,8 @@ module Aws::AutoScaling
|
|
3387
3376
|
# are target groups attached to the Auto Scaling group, the instances
|
3388
3377
|
# are deregistered from the target groups.
|
3389
3378
|
#
|
3390
|
-
# For more information, see [Detach EC2
|
3391
|
-
#
|
3379
|
+
# For more information, see [Detach EC2 instances from your Auto Scaling
|
3380
|
+
# group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3392
3381
|
#
|
3393
3382
|
#
|
3394
3383
|
#
|
@@ -3441,7 +3430,7 @@ module Aws::AutoScaling
|
|
3441
3430
|
#
|
3442
3431
|
# resp = client.detach_instances({
|
3443
3432
|
# instance_ids: ["XmlStringMaxLen19"],
|
3444
|
-
# auto_scaling_group_name: "
|
3433
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3445
3434
|
# should_decrement_desired_capacity: false, # required
|
3446
3435
|
# })
|
3447
3436
|
#
|
@@ -3495,7 +3484,7 @@ module Aws::AutoScaling
|
|
3495
3484
|
# @example Request syntax with placeholder values
|
3496
3485
|
#
|
3497
3486
|
# resp = client.detach_load_balancer_target_groups({
|
3498
|
-
# auto_scaling_group_name: "
|
3487
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3499
3488
|
# target_group_arns: ["XmlStringMaxLen511"], # required
|
3500
3489
|
# })
|
3501
3490
|
#
|
@@ -3512,8 +3501,8 @@ module Aws::AutoScaling
|
|
3512
3501
|
# Scaling group.
|
3513
3502
|
#
|
3514
3503
|
# This operation detaches only Classic Load Balancers. If you have
|
3515
|
-
# Application Load Balancers
|
3516
|
-
# DetachLoadBalancerTargetGroups API instead.
|
3504
|
+
# Application Load Balancers, Network Load Balancers, or Gateway Load
|
3505
|
+
# Balancers, use the DetachLoadBalancerTargetGroups API instead.
|
3517
3506
|
#
|
3518
3507
|
# When you detach a load balancer, it enters the `Removing` state while
|
3519
3508
|
# deregistering the instances in the group. When all instances are
|
@@ -3544,7 +3533,7 @@ module Aws::AutoScaling
|
|
3544
3533
|
# @example Request syntax with placeholder values
|
3545
3534
|
#
|
3546
3535
|
# resp = client.detach_load_balancers({
|
3547
|
-
# auto_scaling_group_name: "
|
3536
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3548
3537
|
# load_balancer_names: ["XmlStringMaxLen255"], # required
|
3549
3538
|
# })
|
3550
3539
|
#
|
@@ -3610,7 +3599,7 @@ module Aws::AutoScaling
|
|
3610
3599
|
# @example Request syntax with placeholder values
|
3611
3600
|
#
|
3612
3601
|
# resp = client.disable_metrics_collection({
|
3613
|
-
# auto_scaling_group_name: "
|
3602
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3614
3603
|
# metrics: ["XmlStringMaxLen255"],
|
3615
3604
|
# })
|
3616
3605
|
#
|
@@ -3624,8 +3613,8 @@ module Aws::AutoScaling
|
|
3624
3613
|
end
|
3625
3614
|
|
3626
3615
|
# Enables group metrics for the specified Auto Scaling group. For more
|
3627
|
-
# information, see [Monitoring
|
3628
|
-
#
|
3616
|
+
# information, see [Monitoring CloudWatch metrics for your Auto Scaling
|
3617
|
+
# groups and instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3629
3618
|
#
|
3630
3619
|
#
|
3631
3620
|
#
|
@@ -3688,7 +3677,7 @@ module Aws::AutoScaling
|
|
3688
3677
|
# @example Request syntax with placeholder values
|
3689
3678
|
#
|
3690
3679
|
# resp = client.enable_metrics_collection({
|
3691
|
-
# auto_scaling_group_name: "
|
3680
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3692
3681
|
# metrics: ["XmlStringMaxLen255"],
|
3693
3682
|
# granularity: "XmlStringMaxLen255", # required
|
3694
3683
|
# })
|
@@ -3713,8 +3702,8 @@ module Aws::AutoScaling
|
|
3713
3702
|
# Scaling group, the Auto Scaling group launches new instances to
|
3714
3703
|
# replace the instances on standby.
|
3715
3704
|
#
|
3716
|
-
# For more information, see [Temporarily
|
3717
|
-
# Auto Scaling
|
3705
|
+
# For more information, see [Temporarily removing instances from your
|
3706
|
+
# Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3718
3707
|
#
|
3719
3708
|
#
|
3720
3709
|
#
|
@@ -3767,7 +3756,7 @@ module Aws::AutoScaling
|
|
3767
3756
|
#
|
3768
3757
|
# resp = client.enter_standby({
|
3769
3758
|
# instance_ids: ["XmlStringMaxLen19"],
|
3770
|
-
# auto_scaling_group_name: "
|
3759
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3771
3760
|
# should_decrement_desired_capacity: false, # required
|
3772
3761
|
# })
|
3773
3762
|
#
|
@@ -3808,7 +3797,7 @@ module Aws::AutoScaling
|
|
3808
3797
|
# period to complete before executing the policy.
|
3809
3798
|
#
|
3810
3799
|
# Valid only if the policy type is `SimpleScaling`. For more
|
3811
|
-
# information, see [Scaling
|
3800
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
3812
3801
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
3813
3802
|
#
|
3814
3803
|
#
|
@@ -3851,7 +3840,7 @@ module Aws::AutoScaling
|
|
3851
3840
|
# @example Request syntax with placeholder values
|
3852
3841
|
#
|
3853
3842
|
# resp = client.execute_policy({
|
3854
|
-
# auto_scaling_group_name: "
|
3843
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
3855
3844
|
# policy_name: "ResourceName", # required
|
3856
3845
|
# honor_cooldown: false,
|
3857
3846
|
# metric_value: 1.0,
|
@@ -3872,8 +3861,8 @@ module Aws::AutoScaling
|
|
3872
3861
|
# After you put the instances back in service, the desired capacity is
|
3873
3862
|
# incremented.
|
3874
3863
|
#
|
3875
|
-
# For more information, see [Temporarily
|
3876
|
-
# Auto Scaling
|
3864
|
+
# For more information, see [Temporarily removing instances from your
|
3865
|
+
# Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
3877
3866
|
#
|
3878
3867
|
#
|
3879
3868
|
#
|
@@ -3921,7 +3910,7 @@ module Aws::AutoScaling
|
|
3921
3910
|
#
|
3922
3911
|
# resp = client.exit_standby({
|
3923
3912
|
# instance_ids: ["XmlStringMaxLen19"],
|
3924
|
-
# auto_scaling_group_name: "
|
3913
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
3925
3914
|
# })
|
3926
3915
|
#
|
3927
3916
|
# @example Response structure
|
@@ -3976,7 +3965,7 @@ module Aws::AutoScaling
|
|
3976
3965
|
# 5. If you finish before the timeout period ends, complete the
|
3977
3966
|
# lifecycle action using the CompleteLifecycleAction API call.
|
3978
3967
|
#
|
3979
|
-
# For more information, see [Amazon EC2 Auto Scaling
|
3968
|
+
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
3980
3969
|
# in the *Amazon EC2 Auto Scaling User Guide*.
|
3981
3970
|
#
|
3982
3971
|
# If you exceed your maximum limit of lifecycle hooks, which by default
|
@@ -4071,9 +4060,9 @@ module Aws::AutoScaling
|
|
4071
4060
|
#
|
4072
4061
|
# resp = client.put_lifecycle_hook({
|
4073
4062
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
4074
|
-
# auto_scaling_group_name: "
|
4063
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4075
4064
|
# lifecycle_transition: "LifecycleTransition",
|
4076
|
-
# role_arn: "
|
4065
|
+
# role_arn: "XmlStringMaxLen255",
|
4077
4066
|
# notification_target_arn: "NotificationTargetResourceName",
|
4078
4067
|
# notification_metadata: "XmlStringMaxLen1023",
|
4079
4068
|
# heartbeat_timeout: 1,
|
@@ -4096,8 +4085,8 @@ module Aws::AutoScaling
|
|
4096
4085
|
#
|
4097
4086
|
# This configuration overwrites any existing configuration.
|
4098
4087
|
#
|
4099
|
-
# For more information, see [Getting Amazon SNS
|
4100
|
-
# Auto Scaling
|
4088
|
+
# For more information, see [Getting Amazon SNS notifications when your
|
4089
|
+
# Auto Scaling group scales][1] in the *Amazon EC2 Auto Scaling User
|
4101
4090
|
# Guide*.
|
4102
4091
|
#
|
4103
4092
|
# If you exceed your maximum limit of SNS topics, which is 10 per Auto
|
@@ -4137,8 +4126,8 @@ module Aws::AutoScaling
|
|
4137
4126
|
# @example Request syntax with placeholder values
|
4138
4127
|
#
|
4139
4128
|
# resp = client.put_notification_configuration({
|
4140
|
-
# auto_scaling_group_name: "
|
4141
|
-
# topic_arn: "
|
4129
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4130
|
+
# topic_arn: "XmlStringMaxLen255", # required
|
4142
4131
|
# notification_types: ["XmlStringMaxLen255"], # required
|
4143
4132
|
# })
|
4144
4133
|
#
|
@@ -4154,8 +4143,8 @@ module Aws::AutoScaling
|
|
4154
4143
|
# Creates or updates a scaling policy for an Auto Scaling group.
|
4155
4144
|
#
|
4156
4145
|
# For more information about using scaling policies to scale your Auto
|
4157
|
-
# Scaling group, see [Target
|
4158
|
-
#
|
4146
|
+
# Scaling group, see [Target tracking scaling policies][1] and [Step and
|
4147
|
+
# simple scaling policies][2] in the *Amazon EC2 Auto Scaling User
|
4159
4148
|
# Guide*.
|
4160
4149
|
#
|
4161
4150
|
#
|
@@ -4184,7 +4173,7 @@ module Aws::AutoScaling
|
|
4184
4173
|
# `ChangeInCapacity`, `ExactCapacity`, and `PercentChangeInCapacity`.
|
4185
4174
|
#
|
4186
4175
|
# Required if the policy type is `StepScaling` or `SimpleScaling`. For
|
4187
|
-
# more information, see [Scaling
|
4176
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
4188
4177
|
# Auto Scaling User Guide*.
|
4189
4178
|
#
|
4190
4179
|
#
|
@@ -4205,7 +4194,7 @@ module Aws::AutoScaling
|
|
4205
4194
|
# EC2 Auto Scaling scales out the group by 2 instances.
|
4206
4195
|
#
|
4207
4196
|
# Valid only if the policy type is `StepScaling` or `SimpleScaling`. For
|
4208
|
-
# more information, see [Scaling
|
4197
|
+
# more information, see [Scaling adjustment types][1] in the *Amazon EC2
|
4209
4198
|
# Auto Scaling User Guide*.
|
4210
4199
|
#
|
4211
4200
|
# <note markdown="1"> Some Auto Scaling groups use instance weights. In this case, set the
|
@@ -4233,7 +4222,7 @@ module Aws::AutoScaling
|
|
4233
4222
|
# period defined for the Auto Scaling group.
|
4234
4223
|
#
|
4235
4224
|
# Valid only if the policy type is `SimpleScaling`. For more
|
4236
|
-
# information, see [Scaling
|
4225
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
4237
4226
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
4238
4227
|
#
|
4239
4228
|
#
|
@@ -4292,8 +4281,8 @@ module Aws::AutoScaling
|
|
4292
4281
|
#
|
4293
4282
|
# @option params [Boolean] :enabled
|
4294
4283
|
# Indicates whether the scaling policy is enabled or disabled. The
|
4295
|
-
# default is enabled. For more information, see [Disabling a
|
4296
|
-
#
|
4284
|
+
# default is enabled. For more information, see [Disabling a scaling
|
4285
|
+
# policy for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
4297
4286
|
# User Guide*.
|
4298
4287
|
#
|
4299
4288
|
#
|
@@ -4341,7 +4330,7 @@ module Aws::AutoScaling
|
|
4341
4330
|
# @example Request syntax with placeholder values
|
4342
4331
|
#
|
4343
4332
|
# resp = client.put_scaling_policy({
|
4344
|
-
# auto_scaling_group_name: "
|
4333
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4345
4334
|
# policy_name: "XmlStringMaxLen255", # required
|
4346
4335
|
# policy_type: "XmlStringMaxLen64",
|
4347
4336
|
# adjustment_type: "XmlStringMaxLen255",
|
@@ -4401,7 +4390,7 @@ module Aws::AutoScaling
|
|
4401
4390
|
# group. If you leave a parameter unspecified when updating a scheduled
|
4402
4391
|
# scaling action, the corresponding value remains unchanged.
|
4403
4392
|
#
|
4404
|
-
# For more information, see [Scheduled
|
4393
|
+
# For more information, see [Scheduled scaling][1] in the *Amazon EC2
|
4405
4394
|
# Auto Scaling User Guide*.
|
4406
4395
|
#
|
4407
4396
|
#
|
@@ -4479,7 +4468,7 @@ module Aws::AutoScaling
|
|
4479
4468
|
# @example Request syntax with placeholder values
|
4480
4469
|
#
|
4481
4470
|
# resp = client.put_scheduled_update_group_action({
|
4482
|
-
# auto_scaling_group_name: "
|
4471
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4483
4472
|
# scheduled_action_name: "XmlStringMaxLen255", # required
|
4484
4473
|
# time: Time.now,
|
4485
4474
|
# start_time: Time.now,
|
@@ -4524,7 +4513,7 @@ module Aws::AutoScaling
|
|
4524
4513
|
# 5. If you finish before the timeout period ends, complete the
|
4525
4514
|
# lifecycle action.
|
4526
4515
|
#
|
4527
|
-
# For more information, see [Auto Scaling
|
4516
|
+
# For more information, see [Auto Scaling lifecycle][1] in the *Amazon
|
4528
4517
|
# EC2 Auto Scaling User Guide*.
|
4529
4518
|
#
|
4530
4519
|
#
|
@@ -4577,11 +4566,11 @@ module Aws::AutoScaling
|
|
4577
4566
|
req.send_request(options)
|
4578
4567
|
end
|
4579
4568
|
|
4580
|
-
# Resumes the specified suspended
|
4569
|
+
# Resumes the specified suspended auto scaling processes, or all
|
4581
4570
|
# suspended process, for the specified Auto Scaling group.
|
4582
4571
|
#
|
4583
|
-
# For more information, see [Suspending and
|
4584
|
-
#
|
4572
|
+
# For more information, see [Suspending and resuming scaling
|
4573
|
+
# processes][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4585
4574
|
#
|
4586
4575
|
#
|
4587
4576
|
#
|
@@ -4630,7 +4619,7 @@ module Aws::AutoScaling
|
|
4630
4619
|
# @example Request syntax with placeholder values
|
4631
4620
|
#
|
4632
4621
|
# resp = client.resume_processes({
|
4633
|
-
# auto_scaling_group_name: "
|
4622
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4634
4623
|
# scaling_processes: ["XmlStringMaxLen255"],
|
4635
4624
|
# })
|
4636
4625
|
#
|
@@ -4650,7 +4639,7 @@ module Aws::AutoScaling
|
|
4650
4639
|
# Scaling group uses its termination policy to determine which instances
|
4651
4640
|
# to terminate.
|
4652
4641
|
#
|
4653
|
-
# For more information, see [Manual
|
4642
|
+
# For more information, see [Manual scaling][1] in the *Amazon EC2 Auto
|
4654
4643
|
# Scaling User Guide*.
|
4655
4644
|
#
|
4656
4645
|
#
|
@@ -4688,7 +4677,7 @@ module Aws::AutoScaling
|
|
4688
4677
|
# @example Request syntax with placeholder values
|
4689
4678
|
#
|
4690
4679
|
# resp = client.set_desired_capacity({
|
4691
|
-
# auto_scaling_group_name: "
|
4680
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4692
4681
|
# desired_capacity: 1, # required
|
4693
4682
|
# honor_cooldown: false,
|
4694
4683
|
# })
|
@@ -4704,8 +4693,8 @@ module Aws::AutoScaling
|
|
4704
4693
|
|
4705
4694
|
# Sets the health status of the specified instance.
|
4706
4695
|
#
|
4707
|
-
# For more information, see [Health
|
4708
|
-
#
|
4696
|
+
# For more information, see [Health checks for Auto Scaling
|
4697
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4709
4698
|
#
|
4710
4699
|
#
|
4711
4700
|
#
|
@@ -4767,7 +4756,7 @@ module Aws::AutoScaling
|
|
4767
4756
|
#
|
4768
4757
|
# For more information about preventing instances that are part of an
|
4769
4758
|
# Auto Scaling group from terminating on scale in, see [Instance
|
4770
|
-
#
|
4759
|
+
# scale-in protection][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4771
4760
|
#
|
4772
4761
|
# If you exceed your maximum limit of instance IDs, which is 50 per Auto
|
4773
4762
|
# Scaling group, the call fails.
|
@@ -4777,7 +4766,7 @@ module Aws::AutoScaling
|
|
4777
4766
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
4778
4767
|
#
|
4779
4768
|
# @option params [required, Array<String>] :instance_ids
|
4780
|
-
# One or more instance IDs.
|
4769
|
+
# One or more instance IDs. You can specify up to 50 instances.
|
4781
4770
|
#
|
4782
4771
|
# @option params [required, String] :auto_scaling_group_name
|
4783
4772
|
# The name of the Auto Scaling group.
|
@@ -4817,7 +4806,7 @@ module Aws::AutoScaling
|
|
4817
4806
|
#
|
4818
4807
|
# resp = client.set_instance_protection({
|
4819
4808
|
# instance_ids: ["XmlStringMaxLen19"], # required
|
4820
|
-
# auto_scaling_group_name: "
|
4809
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4821
4810
|
# protected_from_scale_in: false, # required
|
4822
4811
|
# })
|
4823
4812
|
#
|
@@ -4923,12 +4912,12 @@ module Aws::AutoScaling
|
|
4923
4912
|
req.send_request(options)
|
4924
4913
|
end
|
4925
4914
|
|
4926
|
-
# Suspends the specified
|
4927
|
-
#
|
4915
|
+
# Suspends the specified auto scaling processes, or all processes, for
|
4916
|
+
# the specified Auto Scaling group.
|
4928
4917
|
#
|
4929
4918
|
# If you suspend either the `Launch` or `Terminate` process types, it
|
4930
4919
|
# can prevent other process types from functioning properly. For more
|
4931
|
-
# information, see [Suspending and
|
4920
|
+
# information, see [Suspending and resuming scaling processes][1] in the
|
4932
4921
|
# *Amazon EC2 Auto Scaling User Guide*.
|
4933
4922
|
#
|
4934
4923
|
# To resume processes that have been suspended, call the ResumeProcesses
|
@@ -4981,7 +4970,7 @@ module Aws::AutoScaling
|
|
4981
4970
|
# @example Request syntax with placeholder values
|
4982
4971
|
#
|
4983
4972
|
# resp = client.suspend_processes({
|
4984
|
-
# auto_scaling_group_name: "
|
4973
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
4985
4974
|
# scaling_processes: ["XmlStringMaxLen255"],
|
4986
4975
|
# })
|
4987
4976
|
#
|
@@ -5011,7 +5000,7 @@ module Aws::AutoScaling
|
|
5011
5000
|
# Scaling group can become unbalanced between Availability Zones. Amazon
|
5012
5001
|
# EC2 Auto Scaling tries to rebalance the group, and rebalancing might
|
5013
5002
|
# terminate instances in other zones. For more information, see
|
5014
|
-
# [Rebalancing
|
5003
|
+
# [Rebalancing activities][1] in the *Amazon EC2 Auto Scaling User
|
5015
5004
|
# Guide*.
|
5016
5005
|
#
|
5017
5006
|
#
|
@@ -5069,6 +5058,10 @@ module Aws::AutoScaling
|
|
5069
5058
|
req.send_request(options)
|
5070
5059
|
end
|
5071
5060
|
|
5061
|
+
# **We strongly recommend that all Auto Scaling groups use launch
|
5062
|
+
# templates to ensure full functionality for Amazon EC2 Auto Scaling and
|
5063
|
+
# Amazon EC2.**
|
5064
|
+
#
|
5072
5065
|
# Updates the configuration for the specified Auto Scaling group.
|
5073
5066
|
#
|
5074
5067
|
# To update an Auto Scaling group, specify the name of the group and the
|
@@ -5127,29 +5120,16 @@ module Aws::AutoScaling
|
|
5127
5120
|
# specify `LaunchTemplate` in your update request, you can't specify
|
5128
5121
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
5129
5122
|
#
|
5130
|
-
# For more information, see [LaunchTemplateSpecification][1] in the
|
5131
|
-
# *Amazon EC2 Auto Scaling API Reference*.
|
5132
|
-
#
|
5133
|
-
#
|
5134
|
-
#
|
5135
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_LaunchTemplateSpecification.html
|
5136
|
-
#
|
5137
5123
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
5138
|
-
# An embedded object that specifies a mixed instances policy.
|
5139
|
-
#
|
5140
|
-
#
|
5141
|
-
#
|
5142
|
-
#
|
5143
|
-
#
|
5144
|
-
# For more information, see [MixedInstancesPolicy][1] in the *Amazon EC2
|
5145
|
-
# Auto Scaling API Reference* and [Auto Scaling Groups with Multiple
|
5146
|
-
# Instance Types and Purchase Options][2] in the *Amazon EC2 Auto
|
5147
|
-
# Scaling User Guide*.
|
5124
|
+
# An embedded object that specifies a mixed instances policy. When you
|
5125
|
+
# make changes to an existing policy, all optional parameters are left
|
5126
|
+
# unchanged if not specified. For more information, see [Auto Scaling
|
5127
|
+
# groups with multiple instance types and purchase options][1] in the
|
5128
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
5148
5129
|
#
|
5149
5130
|
#
|
5150
5131
|
#
|
5151
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
5152
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
5132
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
5153
5133
|
#
|
5154
5134
|
# @option params [Integer] :min_size
|
5155
5135
|
# The minimum size of the Auto Scaling group.
|
@@ -5169,18 +5149,16 @@ module Aws::AutoScaling
|
|
5169
5149
|
# @option params [Integer] :desired_capacity
|
5170
5150
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
5171
5151
|
# after this operation completes and the capacity it attempts to
|
5172
|
-
# maintain.
|
5173
|
-
#
|
5174
|
-
#
|
5175
|
-
# group and less than or equal to the maximum size of the group.
|
5152
|
+
# maintain. This number must be greater than or equal to the minimum
|
5153
|
+
# size of the group and less than or equal to the maximum size of the
|
5154
|
+
# group.
|
5176
5155
|
#
|
5177
5156
|
# @option params [Integer] :default_cooldown
|
5178
5157
|
# The amount of time, in seconds, after a scaling activity completes
|
5179
5158
|
# before another scaling activity can start. The default value is `300`.
|
5180
|
-
#
|
5181
5159
|
# This setting applies when using simple scaling policies, but not when
|
5182
5160
|
# using other scaling policies or scheduled scaling. For more
|
5183
|
-
# information, see [Scaling
|
5161
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
5184
5162
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
5185
5163
|
#
|
5186
5164
|
#
|
@@ -5199,43 +5177,40 @@ module Aws::AutoScaling
|
|
5199
5177
|
# @option params [Integer] :health_check_grace_period
|
5200
5178
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
5201
5179
|
# before checking the health status of an EC2 instance that has come
|
5202
|
-
# into service. The default value is `0`.
|
5203
|
-
#
|
5204
|
-
#
|
5205
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
5180
|
+
# into service. The default value is `0`. For more information, see
|
5181
|
+
# [Health check grace period][1] in the *Amazon EC2 Auto Scaling User
|
5182
|
+
# Guide*.
|
5206
5183
|
#
|
5207
|
-
# Required if you are adding an `ELB` health check.
|
5184
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
5208
5185
|
#
|
5209
5186
|
#
|
5210
5187
|
#
|
5211
5188
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
5212
5189
|
#
|
5213
5190
|
# @option params [String] :placement_group
|
5214
|
-
# The name of
|
5215
|
-
# if any. A placement group is a logical grouping of
|
5216
|
-
# single Availability Zone. You cannot specify
|
5217
|
-
# Zones and a placement group. For more
|
5218
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
5191
|
+
# The name of an existing placement group into which to launch your
|
5192
|
+
# instances, if any. A placement group is a logical grouping of
|
5193
|
+
# instances within a single Availability Zone. You cannot specify
|
5194
|
+
# multiple Availability Zones and a placement group. For more
|
5195
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
5196
|
+
# for Linux Instances*.
|
5219
5197
|
#
|
5220
5198
|
#
|
5221
5199
|
#
|
5222
5200
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
5223
5201
|
#
|
5224
5202
|
# @option params [String] :vpc_zone_identifier
|
5225
|
-
# A comma-separated list of subnet IDs for virtual private cloud
|
5226
|
-
#
|
5227
|
-
#
|
5228
|
-
# subnets that you specify for this parameter must reside in those
|
5203
|
+
# A comma-separated list of subnet IDs for a virtual private cloud
|
5204
|
+
# (VPC). If you specify `VPCZoneIdentifier` with `AvailabilityZones`,
|
5205
|
+
# the subnets that you specify for this parameter must reside in those
|
5229
5206
|
# Availability Zones.
|
5230
5207
|
#
|
5231
5208
|
# @option params [Array<String>] :termination_policies
|
5232
|
-
# A
|
5233
|
-
# to
|
5234
|
-
#
|
5235
|
-
#
|
5236
|
-
#
|
5237
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
5238
|
-
# Guide*.
|
5209
|
+
# A policy or a list of policies that are used to select the instances
|
5210
|
+
# to terminate. The policies are executed in the order that you list
|
5211
|
+
# them. For more information, see [Controlling which Auto Scaling
|
5212
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
5213
|
+
# Scaling User Guide*.
|
5239
5214
|
#
|
5240
5215
|
#
|
5241
5216
|
#
|
@@ -5243,10 +5218,9 @@ module Aws::AutoScaling
|
|
5243
5218
|
#
|
5244
5219
|
# @option params [Boolean] :new_instances_protected_from_scale_in
|
5245
5220
|
# Indicates whether newly launched instances are protected from
|
5246
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
5247
|
-
#
|
5248
|
-
#
|
5249
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto Scaling
|
5221
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
5222
|
+
# information about preventing instances from terminating on scale in,
|
5223
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
5250
5224
|
# User Guide*.
|
5251
5225
|
#
|
5252
5226
|
#
|
@@ -5256,7 +5230,7 @@ module Aws::AutoScaling
|
|
5256
5230
|
# @option params [String] :service_linked_role_arn
|
5257
5231
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
5258
5232
|
# Auto Scaling group uses to call other AWS services on your behalf. For
|
5259
|
-
# more information, see [Service-
|
5233
|
+
# more information, see [Service-linked roles][1] in the *Amazon EC2
|
5260
5234
|
# Auto Scaling User Guide*.
|
5261
5235
|
#
|
5262
5236
|
#
|
@@ -5265,32 +5239,20 @@ module Aws::AutoScaling
|
|
5265
5239
|
#
|
5266
5240
|
# @option params [Integer] :max_instance_lifetime
|
5267
5241
|
# The maximum amount of time, in seconds, that an instance can be in
|
5268
|
-
# service. The default is null.
|
5269
|
-
#
|
5270
|
-
#
|
5271
|
-
#
|
5272
|
-
#
|
5273
|
-
#
|
5274
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
5275
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
5276
|
-
# Guide*.
|
5277
|
-
#
|
5278
|
-
# Valid Range: Minimum value of 0.
|
5242
|
+
# service. The default is null. If specified, the value must be either 0
|
5243
|
+
# or a number equal to or greater than 86,400 seconds (1 day). To clear
|
5244
|
+
# a previously set value, specify a new value of 0. For more
|
5245
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
5246
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
5279
5247
|
#
|
5280
5248
|
#
|
5281
5249
|
#
|
5282
5250
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
5283
5251
|
#
|
5284
5252
|
# @option params [Boolean] :capacity_rebalance
|
5285
|
-
# Enables or disables
|
5286
|
-
#
|
5287
|
-
#
|
5288
|
-
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
5289
|
-
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
5290
|
-
# EC2 predicts that a Spot Instance is at an elevated risk of
|
5291
|
-
# interruption. After launching a new instance, it then terminates an
|
5292
|
-
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
5293
|
-
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
5253
|
+
# Enables or disables Capacity Rebalancing. For more information, see
|
5254
|
+
# [Amazon EC2 Auto Scaling Capacity Rebalancing][1] in the *Amazon EC2
|
5255
|
+
# Auto Scaling User Guide*.
|
5294
5256
|
#
|
5295
5257
|
#
|
5296
5258
|
#
|
@@ -5330,8 +5292,8 @@ module Aws::AutoScaling
|
|
5330
5292
|
# @example Request syntax with placeholder values
|
5331
5293
|
#
|
5332
5294
|
# resp = client.update_auto_scaling_group({
|
5333
|
-
# auto_scaling_group_name: "
|
5334
|
-
# launch_configuration_name: "
|
5295
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5296
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
5335
5297
|
# launch_template: {
|
5336
5298
|
# launch_template_id: "XmlStringMaxLen255",
|
5337
5299
|
# launch_template_name: "LaunchTemplateName",
|
@@ -5348,6 +5310,11 @@ module Aws::AutoScaling
|
|
5348
5310
|
# {
|
5349
5311
|
# instance_type: "XmlStringMaxLen255",
|
5350
5312
|
# weighted_capacity: "XmlStringMaxLen32",
|
5313
|
+
# launch_template_specification: {
|
5314
|
+
# launch_template_id: "XmlStringMaxLen255",
|
5315
|
+
# launch_template_name: "LaunchTemplateName",
|
5316
|
+
# version: "XmlStringMaxLen255",
|
5317
|
+
# },
|
5351
5318
|
# },
|
5352
5319
|
# ],
|
5353
5320
|
# },
|
@@ -5398,7 +5365,7 @@ module Aws::AutoScaling
|
|
5398
5365
|
params: params,
|
5399
5366
|
config: config)
|
5400
5367
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5401
|
-
context[:gem_version] = '1.
|
5368
|
+
context[:gem_version] = '1.53.0'
|
5402
5369
|
Seahorse::Client::Request.new(handlers, context)
|
5403
5370
|
end
|
5404
5371
|
|