aws-sdk-autoscaling 1.25.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +37 -17
- data/lib/aws-sdk-autoscaling/client.rb +152 -75
- data/lib/aws-sdk-autoscaling/resource.rb +65 -36
- data/lib/aws-sdk-autoscaling/scaling_policy.rb +4 -3
- data/lib/aws-sdk-autoscaling/scheduled_action.rb +10 -8
- data/lib/aws-sdk-autoscaling/types.rb +200 -122
- metadata +2 -2
@@ -91,46 +91,60 @@ module Aws::AutoScaling
|
|
91
91
|
# })
|
92
92
|
# @param [Hash] options ({})
|
93
93
|
# @option options [required, String] :auto_scaling_group_name
|
94
|
-
# The name of the Auto Scaling group. This name must be unique
|
95
|
-
#
|
94
|
+
# The name of the Auto Scaling group. This name must be unique per
|
95
|
+
# Region per account.
|
96
96
|
# @option options [String] :launch_configuration_name
|
97
|
-
# The name of the launch configuration.
|
98
|
-
# template, a mixed instances policy, or an EC2 instance must be
|
99
|
-
# specified.
|
97
|
+
# The name of the launch configuration.
|
100
98
|
#
|
101
99
|
# For more information, see [Creating an Auto Scaling Group Using a
|
102
100
|
# Launch Configuration][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
103
101
|
#
|
102
|
+
# If you do not specify `LaunchConfigurationName`, you must specify one
|
103
|
+
# of the following parameters: `InstanceId`, `LaunchTemplate`, or
|
104
|
+
# `MixedInstancesPolicy`.
|
105
|
+
#
|
104
106
|
#
|
105
107
|
#
|
106
108
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg.html
|
107
109
|
# @option options [Types::LaunchTemplateSpecification] :launch_template
|
108
|
-
# The launch template to use to launch instances.
|
109
|
-
# launch configuration, a mixed instances policy, or an EC2 instance
|
110
|
-
# must be specified.
|
110
|
+
# The launch template to use to launch instances.
|
111
111
|
#
|
112
112
|
# For more information, see [Creating an Auto Scaling Group Using a
|
113
113
|
# Launch Template][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
114
114
|
#
|
115
|
+
# If you do not specify `LaunchTemplate`, you must specify one of the
|
116
|
+
# following parameters: `InstanceId`, `LaunchConfigurationName`, or
|
117
|
+
# `MixedInstancesPolicy`.
|
118
|
+
#
|
115
119
|
#
|
116
120
|
#
|
117
121
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-launch-template.html
|
118
122
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
123
|
+
# An embedded object that specifies a mixed instances policy. The
|
124
|
+
# required parameters must be specified. If optional parameters are
|
125
|
+
# unspecified, their default values are used.
|
126
|
+
#
|
127
|
+
# The policy includes parameters that not only define the distribution
|
128
|
+
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
129
|
+
# for Spot instances, and how the Auto Scaling group allocates instance
|
130
|
+
# types to fulfill On-Demand and Spot capacity, but also the parameters
|
131
|
+
# that specify the instance configuration information—the launch
|
132
|
+
# template and instance types.
|
122
133
|
#
|
123
134
|
# For more information, see [Auto Scaling Groups with Multiple Instance
|
124
135
|
# Types and Purchase Options][1] in the *Amazon EC2 Auto Scaling User
|
125
136
|
# Guide*.
|
126
137
|
#
|
138
|
+
# You must specify one of the following parameters in your request:
|
139
|
+
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
140
|
+
# `MixedInstancesPolicy`.
|
141
|
+
#
|
127
142
|
#
|
128
143
|
#
|
129
144
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
130
145
|
# @option options [String] :instance_id
|
131
146
|
# The ID of the instance used to create a launch configuration for the
|
132
|
-
# group.
|
133
|
-
# mixed instances policy must be specified.
|
147
|
+
# group.
|
134
148
|
#
|
135
149
|
# When you specify an ID of an instance, Amazon EC2 Auto Scaling creates
|
136
150
|
# a new launch configuration and associates it with the group. This
|
@@ -140,6 +154,10 @@ module Aws::AutoScaling
|
|
140
154
|
# For more information, see [Create an Auto Scaling Group Using an EC2
|
141
155
|
# Instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
142
156
|
#
|
157
|
+
# You must specify one of the following parameters in your request:
|
158
|
+
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
159
|
+
# `MixedInstancesPolicy`.
|
160
|
+
#
|
143
161
|
#
|
144
162
|
#
|
145
163
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html
|
@@ -148,11 +166,11 @@ module Aws::AutoScaling
|
|
148
166
|
# @option options [required, Integer] :max_size
|
149
167
|
# The maximum size of the group.
|
150
168
|
# @option options [Integer] :desired_capacity
|
151
|
-
# The number of EC2 instances that
|
152
|
-
# number must be greater than or equal to the
|
153
|
-
# and less than or equal to the maximum size
|
154
|
-
# specify a desired capacity, the default is
|
155
|
-
# group.
|
169
|
+
# The number of Amazon EC2 instances that the Auto Scaling group
|
170
|
+
# attempts to maintain. This number must be greater than or equal to the
|
171
|
+
# minimum size of the group and less than or equal to the maximum size
|
172
|
+
# of the group. If you do not specify a desired capacity, the default is
|
173
|
+
# the minimum size of the group.
|
156
174
|
# @option options [Integer] :default_cooldown
|
157
175
|
# The amount of time, in seconds, after a scaling activity completes
|
158
176
|
# before another scaling activity can start. The default value is `300`.
|
@@ -170,17 +188,28 @@ module Aws::AutoScaling
|
|
170
188
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
171
189
|
# parameter is required to launch instances into EC2-Classic.
|
172
190
|
# @option options [Array<String>] :load_balancer_names
|
173
|
-
#
|
174
|
-
#
|
191
|
+
# A list of Classic Load Balancers associated with this Auto Scaling
|
192
|
+
# group. For Application Load Balancers and Network Load Balancers,
|
193
|
+
# specify a list of target groups using the `TargetGroupARNs` property
|
194
|
+
# instead.
|
175
195
|
#
|
176
|
-
# For more information, see [Using a Load Balancer
|
196
|
+
# For more information, see [Using a Load Balancer with an Auto Scaling
|
177
197
|
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
178
198
|
#
|
179
199
|
#
|
180
200
|
#
|
181
201
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
182
202
|
# @option options [Array<String>] :target_group_arns
|
183
|
-
# The Amazon Resource Names (ARN) of the target groups
|
203
|
+
# The Amazon Resource Names (ARN) of the target groups to associate with
|
204
|
+
# the Auto Scaling group. Instances are registered as targets in a
|
205
|
+
# target group, and traffic is routed to the target group.
|
206
|
+
#
|
207
|
+
# For more information, see [Using a Load Balancer with an Auto Scaling
|
208
|
+
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
209
|
+
#
|
210
|
+
#
|
211
|
+
#
|
212
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
184
213
|
# @option options [String] :health_check_type
|
185
214
|
# The service to use for the health checks. The valid values are `EC2`
|
186
215
|
# and `ELB`. The default value is `EC2`. If you configure an Auto
|
@@ -323,8 +352,8 @@ module Aws::AutoScaling
|
|
323
352
|
# })
|
324
353
|
# @param [Hash] options ({})
|
325
354
|
# @option options [required, String] :launch_configuration_name
|
326
|
-
# The name of the launch configuration. This name must be unique
|
327
|
-
#
|
355
|
+
# The name of the launch configuration. This name must be unique per
|
356
|
+
# Region per account.
|
328
357
|
# @option options [String] :image_id
|
329
358
|
# The ID of the Amazon Machine Image (AMI) to use to launch your EC2
|
330
359
|
# instances.
|
@@ -398,9 +427,6 @@ module Aws::AutoScaling
|
|
398
427
|
# new launch configuration derives attributes from the instance, except
|
399
428
|
# for the block device mapping.
|
400
429
|
#
|
401
|
-
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
402
|
-
# and `InstanceType`.
|
403
|
-
#
|
404
430
|
# To create a launch configuration with a block device mapping or
|
405
431
|
# override any other instance attributes, specify them as part of the
|
406
432
|
# same request.
|
@@ -408,17 +434,20 @@ module Aws::AutoScaling
|
|
408
434
|
# For more information, see [Create a Launch Configuration Using an EC2
|
409
435
|
# Instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
410
436
|
#
|
437
|
+
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
438
|
+
# and `InstanceType`.
|
439
|
+
#
|
411
440
|
#
|
412
441
|
#
|
413
442
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-lc-with-instanceID.html
|
414
443
|
# @option options [String] :instance_type
|
415
444
|
# The instance type of the EC2 instance.
|
416
445
|
#
|
417
|
-
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
418
|
-
#
|
419
446
|
# For information about available instance types, see [Available
|
420
447
|
# Instance Types][1] in the *Amazon EC2 User Guide for Linux Instances.*
|
421
448
|
#
|
449
|
+
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
450
|
+
#
|
422
451
|
#
|
423
452
|
#
|
424
453
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes
|
@@ -455,8 +484,8 @@ module Aws::AutoScaling
|
|
455
484
|
# security credentials available. You can use IAM roles with Amazon EC2
|
456
485
|
# Auto Scaling to automatically enable applications running on your EC2
|
457
486
|
# instances to securely access other AWS resources. For more
|
458
|
-
# information, see [
|
459
|
-
#
|
487
|
+
# information, see [IAM Role for Applications That Run on Amazon EC2
|
488
|
+
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
460
489
|
#
|
461
490
|
#
|
462
491
|
#
|
@@ -498,17 +527,17 @@ module Aws::AutoScaling
|
|
498
527
|
# the instance placement tenancy attribute set to `default`), you must
|
499
528
|
# set the value of this parameter to `dedicated`.
|
500
529
|
#
|
501
|
-
# If you specify
|
502
|
-
# when you create your group.
|
530
|
+
# If you specify `PlacementTenancy`, be sure to specify at least one
|
531
|
+
# subnet when you create your group.
|
503
532
|
#
|
504
|
-
# For more information, see [
|
505
|
-
#
|
533
|
+
# For more information, see [Instance Placement Tenancy][1] in the
|
534
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
506
535
|
#
|
507
536
|
# Valid values: `default` \| `dedicated`
|
508
537
|
#
|
509
538
|
#
|
510
539
|
#
|
511
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html
|
540
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
512
541
|
# @return [LaunchConfiguration]
|
513
542
|
def create_launch_configuration(options = {})
|
514
543
|
resp = @client.create_launch_configuration(options)
|
@@ -43,8 +43,8 @@ module Aws::AutoScaling
|
|
43
43
|
data[:policy_arn]
|
44
44
|
end
|
45
45
|
|
46
|
-
# The policy type. The valid values are `SimpleScaling`
|
47
|
-
# `
|
46
|
+
# The policy type. The valid values are `SimpleScaling`, `StepScaling`,
|
47
|
+
# and `TargetTrackingScaling`.
|
48
48
|
# @return [String]
|
49
49
|
def policy_type
|
50
50
|
data[:policy_type]
|
@@ -284,7 +284,8 @@ module Aws::AutoScaling
|
|
284
284
|
# Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
|
285
285
|
# period to complete before executing the policy.
|
286
286
|
#
|
287
|
-
# This parameter is not supported if the policy type is `StepScaling
|
287
|
+
# This parameter is not supported if the policy type is `StepScaling` or
|
288
|
+
# `TargetTrackingScaling`.
|
288
289
|
#
|
289
290
|
# For more information, see [Scaling Cooldowns][1] in the *Amazon EC2
|
290
291
|
# Auto Scaling User Guide*.
|
@@ -49,34 +49,36 @@ module Aws::AutoScaling
|
|
49
49
|
data[:time]
|
50
50
|
end
|
51
51
|
|
52
|
-
# The date and time
|
53
|
-
#
|
54
|
-
# When `StartTime` and `EndTime` are specified with `Recurrence`, they
|
55
|
-
# form the boundaries of when the recurring action starts and stops.
|
52
|
+
# The date and time in UTC for this action to start. For example,
|
53
|
+
# `"2019-06-01T00:00:00Z"`.
|
56
54
|
# @return [Time]
|
57
55
|
def start_time
|
58
56
|
data[:start_time]
|
59
57
|
end
|
60
58
|
|
61
|
-
# The date and time
|
59
|
+
# The date and time in UTC for the recurring schedule to end. For
|
60
|
+
# example, `"2019-06-01T00:00:00Z"`.
|
62
61
|
# @return [Time]
|
63
62
|
def end_time
|
64
63
|
data[:end_time]
|
65
64
|
end
|
66
65
|
|
67
|
-
# The recurring schedule for the action.
|
66
|
+
# The recurring schedule for the action, in Unix cron syntax format.
|
67
|
+
#
|
68
|
+
# When `StartTime` and `EndTime` are specified with `Recurrence`, they
|
69
|
+
# form the boundaries of when the recurring action starts and stops.
|
68
70
|
# @return [String]
|
69
71
|
def recurrence
|
70
72
|
data[:recurrence]
|
71
73
|
end
|
72
74
|
|
73
|
-
# The minimum
|
75
|
+
# The minimum number of instances in the Auto Scaling group.
|
74
76
|
# @return [Integer]
|
75
77
|
def min_size
|
76
78
|
data[:min_size]
|
77
79
|
end
|
78
80
|
|
79
|
-
# The maximum
|
81
|
+
# The maximum number of instances in the Auto Scaling group.
|
80
82
|
# @return [Integer]
|
81
83
|
def max_size
|
82
84
|
data[:max_size]
|
@@ -762,46 +762,61 @@ module Aws::AutoScaling
|
|
762
762
|
# }
|
763
763
|
#
|
764
764
|
# @!attribute [rw] auto_scaling_group_name
|
765
|
-
# The name of the Auto Scaling group. This name must be unique
|
766
|
-
#
|
765
|
+
# The name of the Auto Scaling group. This name must be unique per
|
766
|
+
# Region per account.
|
767
767
|
# @return [String]
|
768
768
|
#
|
769
769
|
# @!attribute [rw] launch_configuration_name
|
770
|
-
# The name of the launch configuration.
|
771
|
-
# template, a mixed instances policy, or an EC2 instance must be
|
772
|
-
# specified.
|
770
|
+
# The name of the launch configuration.
|
773
771
|
#
|
774
772
|
# For more information, see [Creating an Auto Scaling Group Using a
|
775
773
|
# Launch Configuration][1] in the *Amazon EC2 Auto Scaling User
|
776
774
|
# Guide*.
|
777
775
|
#
|
776
|
+
# If you do not specify `LaunchConfigurationName`, you must specify
|
777
|
+
# one of the following parameters: `InstanceId`, `LaunchTemplate`, or
|
778
|
+
# `MixedInstancesPolicy`.
|
779
|
+
#
|
778
780
|
#
|
779
781
|
#
|
780
782
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg.html
|
781
783
|
# @return [String]
|
782
784
|
#
|
783
785
|
# @!attribute [rw] launch_template
|
784
|
-
# The launch template to use to launch instances.
|
785
|
-
# launch configuration, a mixed instances policy, or an EC2 instance
|
786
|
-
# must be specified.
|
786
|
+
# The launch template to use to launch instances.
|
787
787
|
#
|
788
788
|
# For more information, see [Creating an Auto Scaling Group Using a
|
789
789
|
# Launch Template][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
790
790
|
#
|
791
|
+
# If you do not specify `LaunchTemplate`, you must specify one of the
|
792
|
+
# following parameters: `InstanceId`, `LaunchConfigurationName`, or
|
793
|
+
# `MixedInstancesPolicy`.
|
794
|
+
#
|
791
795
|
#
|
792
796
|
#
|
793
797
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-launch-template.html
|
794
798
|
# @return [Types::LaunchTemplateSpecification]
|
795
799
|
#
|
796
800
|
# @!attribute [rw] mixed_instances_policy
|
797
|
-
#
|
798
|
-
#
|
799
|
-
#
|
801
|
+
# An embedded object that specifies a mixed instances policy. The
|
802
|
+
# required parameters must be specified. If optional parameters are
|
803
|
+
# unspecified, their default values are used.
|
804
|
+
#
|
805
|
+
# The policy includes parameters that not only define the distribution
|
806
|
+
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
807
|
+
# for Spot instances, and how the Auto Scaling group allocates
|
808
|
+
# instance types to fulfill On-Demand and Spot capacity, but also the
|
809
|
+
# parameters that specify the instance configuration information—the
|
810
|
+
# launch template and instance types.
|
800
811
|
#
|
801
812
|
# For more information, see [Auto Scaling Groups with Multiple
|
802
813
|
# Instance Types and Purchase Options][1] in the *Amazon EC2 Auto
|
803
814
|
# Scaling User Guide*.
|
804
815
|
#
|
816
|
+
# You must specify one of the following parameters in your request:
|
817
|
+
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
818
|
+
# `MixedInstancesPolicy`.
|
819
|
+
#
|
805
820
|
#
|
806
821
|
#
|
807
822
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
@@ -809,8 +824,7 @@ module Aws::AutoScaling
|
|
809
824
|
#
|
810
825
|
# @!attribute [rw] instance_id
|
811
826
|
# The ID of the instance used to create a launch configuration for the
|
812
|
-
# group.
|
813
|
-
# a mixed instances policy must be specified.
|
827
|
+
# group.
|
814
828
|
#
|
815
829
|
# When you specify an ID of an instance, Amazon EC2 Auto Scaling
|
816
830
|
# creates a new launch configuration and associates it with the group.
|
@@ -820,6 +834,10 @@ module Aws::AutoScaling
|
|
820
834
|
# For more information, see [Create an Auto Scaling Group Using an EC2
|
821
835
|
# Instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
822
836
|
#
|
837
|
+
# You must specify one of the following parameters in your request:
|
838
|
+
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
839
|
+
# `MixedInstancesPolicy`.
|
840
|
+
#
|
823
841
|
#
|
824
842
|
#
|
825
843
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html
|
@@ -834,11 +852,11 @@ module Aws::AutoScaling
|
|
834
852
|
# @return [Integer]
|
835
853
|
#
|
836
854
|
# @!attribute [rw] desired_capacity
|
837
|
-
# The number of EC2 instances that
|
838
|
-
# This number must be greater than or equal to
|
839
|
-
# group and less than or equal to the maximum
|
840
|
-
# you do not specify a desired capacity, the
|
841
|
-
# size of the group.
|
855
|
+
# The number of Amazon EC2 instances that the Auto Scaling group
|
856
|
+
# attempts to maintain. This number must be greater than or equal to
|
857
|
+
# the minimum size of the group and less than or equal to the maximum
|
858
|
+
# size of the group. If you do not specify a desired capacity, the
|
859
|
+
# default is the minimum size of the group.
|
842
860
|
# @return [Integer]
|
843
861
|
#
|
844
862
|
# @!attribute [rw] default_cooldown
|
@@ -863,10 +881,12 @@ module Aws::AutoScaling
|
|
863
881
|
# @return [Array<String>]
|
864
882
|
#
|
865
883
|
# @!attribute [rw] load_balancer_names
|
866
|
-
#
|
867
|
-
#
|
884
|
+
# A list of Classic Load Balancers associated with this Auto Scaling
|
885
|
+
# group. For Application Load Balancers and Network Load Balancers,
|
886
|
+
# specify a list of target groups using the `TargetGroupARNs` property
|
887
|
+
# instead.
|
868
888
|
#
|
869
|
-
# For more information, see [Using a Load Balancer
|
889
|
+
# For more information, see [Using a Load Balancer with an Auto
|
870
890
|
# Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
871
891
|
#
|
872
892
|
#
|
@@ -875,7 +895,16 @@ module Aws::AutoScaling
|
|
875
895
|
# @return [Array<String>]
|
876
896
|
#
|
877
897
|
# @!attribute [rw] target_group_arns
|
878
|
-
# The Amazon Resource Names (ARN) of the target groups
|
898
|
+
# The Amazon Resource Names (ARN) of the target groups to associate
|
899
|
+
# with the Auto Scaling group. Instances are registered as targets in
|
900
|
+
# a target group, and traffic is routed to the target group.
|
901
|
+
#
|
902
|
+
# For more information, see [Using a Load Balancer with an Auto
|
903
|
+
# Scaling Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
904
|
+
#
|
905
|
+
#
|
906
|
+
#
|
907
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
879
908
|
# @return [Array<String>]
|
880
909
|
#
|
881
910
|
# @!attribute [rw] health_check_type
|
@@ -1057,8 +1086,8 @@ module Aws::AutoScaling
|
|
1057
1086
|
# }
|
1058
1087
|
#
|
1059
1088
|
# @!attribute [rw] launch_configuration_name
|
1060
|
-
# The name of the launch configuration. This name must be unique
|
1061
|
-
#
|
1089
|
+
# The name of the launch configuration. This name must be unique per
|
1090
|
+
# Region per account.
|
1062
1091
|
# @return [String]
|
1063
1092
|
#
|
1064
1093
|
# @!attribute [rw] image_id
|
@@ -1147,9 +1176,6 @@ module Aws::AutoScaling
|
|
1147
1176
|
# The new launch configuration derives attributes from the instance,
|
1148
1177
|
# except for the block device mapping.
|
1149
1178
|
#
|
1150
|
-
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
1151
|
-
# and `InstanceType`.
|
1152
|
-
#
|
1153
1179
|
# To create a launch configuration with a block device mapping or
|
1154
1180
|
# override any other instance attributes, specify them as part of the
|
1155
1181
|
# same request.
|
@@ -1157,6 +1183,9 @@ module Aws::AutoScaling
|
|
1157
1183
|
# For more information, see [Create a Launch Configuration Using an
|
1158
1184
|
# EC2 Instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1159
1185
|
#
|
1186
|
+
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
1187
|
+
# and `InstanceType`.
|
1188
|
+
#
|
1160
1189
|
#
|
1161
1190
|
#
|
1162
1191
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-lc-with-instanceID.html
|
@@ -1165,12 +1194,12 @@ module Aws::AutoScaling
|
|
1165
1194
|
# @!attribute [rw] instance_type
|
1166
1195
|
# The instance type of the EC2 instance.
|
1167
1196
|
#
|
1168
|
-
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
1169
|
-
#
|
1170
1197
|
# For information about available instance types, see [Available
|
1171
1198
|
# Instance Types][1] in the *Amazon EC2 User Guide for Linux
|
1172
1199
|
# Instances.*
|
1173
1200
|
#
|
1201
|
+
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
1202
|
+
#
|
1174
1203
|
#
|
1175
1204
|
#
|
1176
1205
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes
|
@@ -1219,9 +1248,8 @@ module Aws::AutoScaling
|
|
1219
1248
|
# security credentials available. You can use IAM roles with Amazon
|
1220
1249
|
# EC2 Auto Scaling to automatically enable applications running on
|
1221
1250
|
# your EC2 instances to securely access other AWS resources. For more
|
1222
|
-
# information, see [
|
1223
|
-
#
|
1224
|
-
# Guide*.
|
1251
|
+
# information, see [IAM Role for Applications That Run on Amazon EC2
|
1252
|
+
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1225
1253
|
#
|
1226
1254
|
#
|
1227
1255
|
#
|
@@ -1270,17 +1298,17 @@ module Aws::AutoScaling
|
|
1270
1298
|
# the instance placement tenancy attribute set to `default`), you must
|
1271
1299
|
# set the value of this parameter to `dedicated`.
|
1272
1300
|
#
|
1273
|
-
# If you specify
|
1301
|
+
# If you specify `PlacementTenancy`, be sure to specify at least one
|
1274
1302
|
# subnet when you create your group.
|
1275
1303
|
#
|
1276
|
-
# For more information, see [
|
1277
|
-
#
|
1304
|
+
# For more information, see [Instance Placement Tenancy][1] in the
|
1305
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
1278
1306
|
#
|
1279
1307
|
# Valid values: `default` \| `dedicated`
|
1280
1308
|
#
|
1281
1309
|
#
|
1282
1310
|
#
|
1283
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html
|
1311
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
1284
1312
|
# @return [String]
|
1285
1313
|
#
|
1286
1314
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType AWS API Documentation
|
@@ -2221,17 +2249,20 @@ module Aws::AutoScaling
|
|
2221
2249
|
# }
|
2222
2250
|
#
|
2223
2251
|
# @!attribute [rw] snapshot_id
|
2224
|
-
# The ID of the
|
2225
|
-
#
|
2252
|
+
# The snapshot ID of the volume to use.
|
2253
|
+
#
|
2254
|
+
# Conditional: This parameter is optional if you specify a volume
|
2255
|
+
# size. If you specify both `SnapshotId` and `VolumeSize`,
|
2256
|
+
# `VolumeSize` must be equal or greater than the size of the snapshot.
|
2226
2257
|
# @return [String]
|
2227
2258
|
#
|
2228
2259
|
# @!attribute [rw] volume_size
|
2229
|
-
# The volume size, in GiB.
|
2260
|
+
# The volume size, in Gibibytes (GiB).
|
2230
2261
|
#
|
2231
|
-
#
|
2232
|
-
# for `gp2`, and 500-16,384 for `st1` and `sc1`. If
|
2233
|
-
# snapshot, the volume size must be equal to or larger
|
2234
|
-
# snapshot size.
|
2262
|
+
# This can be a number from 1-1,024 for `standard`, 4-16,384 for
|
2263
|
+
# `io1`, 1-16,384 for `gp2`, and 500-16,384 for `st1` and `sc1`. If
|
2264
|
+
# you specify a snapshot, the volume size must be equal to or larger
|
2265
|
+
# than the snapshot size.
|
2235
2266
|
#
|
2236
2267
|
# Default: If you create a volume from a snapshot and you don't
|
2237
2268
|
# specify a volume size, the default is the snapshot size.
|
@@ -2256,14 +2287,15 @@ module Aws::AutoScaling
|
|
2256
2287
|
# @return [String]
|
2257
2288
|
#
|
2258
2289
|
# @!attribute [rw] delete_on_termination
|
2259
|
-
# Indicates whether the volume is deleted on instance termination.
|
2260
|
-
# default value is `true`.
|
2290
|
+
# Indicates whether the volume is deleted on instance termination. For
|
2291
|
+
# Amazon EC2 Auto Scaling, the default value is `true`.
|
2261
2292
|
# @return [Boolean]
|
2262
2293
|
#
|
2263
2294
|
# @!attribute [rw] iops
|
2264
2295
|
# The number of I/O operations per second (IOPS) to provision for the
|
2265
|
-
# volume.
|
2266
|
-
#
|
2296
|
+
# volume. The maximum ratio of IOPS to volume size (in GiB) is 50:1.
|
2297
|
+
# For more information, see [Amazon EBS Volume Types][1] in the
|
2298
|
+
# *Amazon EC2 User Guide for Linux Instances*.
|
2267
2299
|
#
|
2268
2300
|
# Conditional: This parameter is required when the volume type is
|
2269
2301
|
# `io1`. (Not used with `standard`, `gp2`, `st1`, or `sc1` volumes.)
|
@@ -2275,18 +2307,39 @@ module Aws::AutoScaling
|
|
2275
2307
|
#
|
2276
2308
|
# @!attribute [rw] encrypted
|
2277
2309
|
# Specifies whether the volume should be encrypted. Encrypted EBS
|
2278
|
-
# volumes
|
2279
|
-
# encryption.
|
2280
|
-
#
|
2281
|
-
#
|
2282
|
-
#
|
2283
|
-
#
|
2284
|
-
#
|
2285
|
-
#
|
2310
|
+
# volumes can only be attached to instances that support Amazon EBS
|
2311
|
+
# encryption. For more information, see [Supported Instance Types][1].
|
2312
|
+
# If your AMI uses encrypted volumes, you can also only launch it on
|
2313
|
+
# supported instance types.
|
2314
|
+
#
|
2315
|
+
# <note markdown="1"> If you are creating a volume from a snapshot, you cannot specify an
|
2316
|
+
# encryption value. Volumes that are created from encrypted snapshots
|
2317
|
+
# are automatically encrypted, and volumes that are created from
|
2318
|
+
# unencrypted snapshots are automatically unencrypted. By default,
|
2319
|
+
# encrypted snapshots use the AWS managed CMK that is used for EBS
|
2320
|
+
# encryption, but you can specify a custom CMK when you create the
|
2321
|
+
# snapshot. The ability to encrypt a snapshot during copying also
|
2322
|
+
# allows you to apply a new CMK to an already-encrypted snapshot.
|
2323
|
+
# Volumes restored from the resulting copy are only accessible using
|
2324
|
+
# the new CMK.
|
2325
|
+
#
|
2326
|
+
# Enabling [encryption by default][2] results in all EBS volumes being
|
2327
|
+
# encrypted with the AWS managed CMK or a customer managed CMK,
|
2328
|
+
# whether or not the snapshot was encrypted.
|
2329
|
+
#
|
2330
|
+
# </note>
|
2331
|
+
#
|
2332
|
+
# For more information, see [Using Encryption with EBS-Backed AMIs][3]
|
2333
|
+
# in the *Amazon EC2 User Guide for Linux Instances* and [Required CMK
|
2334
|
+
# Key Policy for Use with Encrypted Volumes][4] in the *Amazon EC2
|
2335
|
+
# Auto Scaling User Guide*.
|
2286
2336
|
#
|
2287
2337
|
#
|
2288
2338
|
#
|
2289
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html
|
2339
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances
|
2340
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default
|
2341
|
+
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html
|
2342
|
+
# [4]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/key-policy-requirements-EBS-encryption.html
|
2290
2343
|
# @return [Boolean]
|
2291
2344
|
#
|
2292
2345
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Ebs AWS API Documentation
|
@@ -2448,7 +2501,8 @@ module Aws::AutoScaling
|
|
2448
2501
|
# Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
|
2449
2502
|
# period to complete before executing the policy.
|
2450
2503
|
#
|
2451
|
-
# This parameter is not supported if the policy type is `StepScaling
|
2504
|
+
# This parameter is not supported if the policy type is `StepScaling`
|
2505
|
+
# or `TargetTrackingScaling`.
|
2452
2506
|
#
|
2453
2507
|
# For more information, see [Scaling Cooldowns][1] in the *Amazon EC2
|
2454
2508
|
# Auto Scaling User Guide*.
|
@@ -2652,7 +2706,8 @@ module Aws::AutoScaling
|
|
2652
2706
|
#
|
2653
2707
|
# The instances distribution specifies the distribution of On-Demand
|
2654
2708
|
# Instances and Spot Instances, the maximum price to pay for Spot
|
2655
|
-
# Instances, and how the Auto Scaling group allocates instance types
|
2709
|
+
# Instances, and how the Auto Scaling group allocates instance types to
|
2710
|
+
# fulfill On-Demand and Spot capacity.
|
2656
2711
|
#
|
2657
2712
|
# @note When making an API call, you may pass InstancesDistribution
|
2658
2713
|
# data as a hash:
|
@@ -2693,11 +2748,12 @@ module Aws::AutoScaling
|
|
2693
2748
|
#
|
2694
2749
|
# @!attribute [rw] on_demand_percentage_above_base_capacity
|
2695
2750
|
# Controls the percentages of On-Demand Instances and Spot Instances
|
2696
|
-
# for your additional capacity beyond `OnDemandBaseCapacity`.
|
2751
|
+
# for your additional capacity beyond `OnDemandBaseCapacity`. The
|
2752
|
+
# range is 0–100.
|
2697
2753
|
#
|
2698
|
-
# The
|
2699
|
-
#
|
2700
|
-
#
|
2754
|
+
# The default value is `100`. If you leave this parameter set to
|
2755
|
+
# `100`, the percentages are 100% for On-Demand Instances and 0% for
|
2756
|
+
# Spot Instances.
|
2701
2757
|
# @return [Integer]
|
2702
2758
|
#
|
2703
2759
|
# @!attribute [rw] spot_allocation_strategy
|
@@ -2712,9 +2768,9 @@ module Aws::AutoScaling
|
|
2712
2768
|
# @!attribute [rw] spot_instance_pools
|
2713
2769
|
# The number of Spot pools to use to allocate your Spot capacity. The
|
2714
2770
|
# Spot pools are determined from the different instance types in the
|
2715
|
-
# Overrides array of LaunchTemplate.
|
2771
|
+
# Overrides array of LaunchTemplate. The range is 1–20.
|
2716
2772
|
#
|
2717
|
-
# The
|
2773
|
+
# The default value is `2`.
|
2718
2774
|
# @return [Integer]
|
2719
2775
|
#
|
2720
2776
|
# @!attribute [rw] spot_max_price
|
@@ -2984,9 +3040,7 @@ module Aws::AutoScaling
|
|
2984
3040
|
# @!attribute [rw] overrides
|
2985
3041
|
# Any parameters that you specify override the same parameters in the
|
2986
3042
|
# launch template. Currently, the only supported override is instance
|
2987
|
-
# type.
|
2988
|
-
#
|
2989
|
-
# You must specify between 2 and 20 overrides.
|
3043
|
+
# type. You must specify between 2 and 20 overrides.
|
2990
3044
|
# @return [Array<Types::LaunchTemplateOverrides>]
|
2991
3045
|
#
|
2992
3046
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplate AWS API Documentation
|
@@ -3436,14 +3490,15 @@ module Aws::AutoScaling
|
|
3436
3490
|
# Describes a mixed instances policy for an Auto Scaling group. With
|
3437
3491
|
# mixed instances, your Auto Scaling group can provision a combination
|
3438
3492
|
# of On-Demand Instances and Spot Instances across multiple instance
|
3439
|
-
# types.
|
3440
|
-
#
|
3441
|
-
#
|
3493
|
+
# types. For more information, see [Auto Scaling Groups with Multiple
|
3494
|
+
# Instance Types and Purchase Options][1] in the *Amazon EC2 Auto
|
3495
|
+
# Scaling User Guide*.
|
3442
3496
|
#
|
3443
|
-
#
|
3444
|
-
#
|
3445
|
-
#
|
3446
|
-
#
|
3497
|
+
# You can create a mixed instances policy for a new Auto Scaling group
|
3498
|
+
# (CreateAutoScalingGroup), or you can create it for an existing group
|
3499
|
+
# by updating the group (UpdateAutoScalingGroup) to specify
|
3500
|
+
# `MixedInstancesPolicy` as the top-level parameter instead of a launch
|
3501
|
+
# configuration or template.
|
3447
3502
|
#
|
3448
3503
|
#
|
3449
3504
|
#
|
@@ -3476,18 +3531,17 @@ module Aws::AutoScaling
|
|
3476
3531
|
# }
|
3477
3532
|
#
|
3478
3533
|
# @!attribute [rw] launch_template
|
3479
|
-
# The launch template and overrides.
|
3534
|
+
# The launch template and instance types (overrides).
|
3480
3535
|
#
|
3481
|
-
# This parameter
|
3482
|
-
#
|
3483
|
-
# group.
|
3536
|
+
# This parameter must be specified when creating a mixed instances
|
3537
|
+
# policy.
|
3484
3538
|
# @return [Types::LaunchTemplate]
|
3485
3539
|
#
|
3486
3540
|
# @!attribute [rw] instances_distribution
|
3487
3541
|
# The instances distribution to use.
|
3488
3542
|
#
|
3489
|
-
# If you leave this parameter unspecified when creating
|
3490
|
-
# default values are used.
|
3543
|
+
# If you leave this parameter unspecified when creating a mixed
|
3544
|
+
# instances policy, the default values are used.
|
3491
3545
|
# @return [Types::InstancesDistribution]
|
3492
3546
|
#
|
3493
3547
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MixedInstancesPolicy AWS API Documentation
|
@@ -3600,8 +3654,7 @@ module Aws::AutoScaling
|
|
3600
3654
|
# network interfaces by the Auto Scaling group.
|
3601
3655
|
#
|
3602
3656
|
# * `ALBRequestCountPerTarget` - Number of requests completed per
|
3603
|
-
# target in an Application Load Balancer
|
3604
|
-
# target group.
|
3657
|
+
# target in an Application Load Balancer target group.
|
3605
3658
|
#
|
3606
3659
|
# For predefined metric types `ASGAverageCPUUtilization`,
|
3607
3660
|
# `ASGAverageNetworkIn`, and `ASGAverageNetworkOut`, the parameter
|
@@ -3997,8 +4050,9 @@ module Aws::AutoScaling
|
|
3997
4050
|
# @return [Time]
|
3998
4051
|
#
|
3999
4052
|
# @!attribute [rw] start_time
|
4000
|
-
# The time for this action to start, in YYYY-MM-DDThh:mm:ssZ
|
4001
|
-
# UTC/GMT only and in quotes (for example,
|
4053
|
+
# The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ
|
4054
|
+
# format in UTC/GMT only and in quotes (for example,
|
4055
|
+
# `"2019-06-01T00:00:00Z"`).
|
4002
4056
|
#
|
4003
4057
|
# If you specify `Recurrence` and `StartTime`, Amazon EC2 Auto Scaling
|
4004
4058
|
# performs the action at this time, and then performs the action based
|
@@ -4009,8 +4063,8 @@ module Aws::AutoScaling
|
|
4009
4063
|
# @return [Time]
|
4010
4064
|
#
|
4011
4065
|
# @!attribute [rw] end_time
|
4012
|
-
# The time for the recurring schedule to end. Amazon EC2 Auto
|
4013
|
-
# does not perform the action after this time.
|
4066
|
+
# The date and time for the recurring schedule to end. Amazon EC2 Auto
|
4067
|
+
# Scaling does not perform the action after this time.
|
4014
4068
|
# @return [Time]
|
4015
4069
|
#
|
4016
4070
|
# @!attribute [rw] recurrence
|
@@ -4021,21 +4075,25 @@ module Aws::AutoScaling
|
|
4021
4075
|
# 1 1,6,12 *"`). For more information about this format, see
|
4022
4076
|
# [Crontab][1].
|
4023
4077
|
#
|
4078
|
+
# When `StartTime` and `EndTime` are specified with `Recurrence`, they
|
4079
|
+
# form the boundaries of when the recurring action starts and stops.
|
4080
|
+
#
|
4024
4081
|
#
|
4025
4082
|
#
|
4026
4083
|
# [1]: http://crontab.org
|
4027
4084
|
# @return [String]
|
4028
4085
|
#
|
4029
4086
|
# @!attribute [rw] min_size
|
4030
|
-
# The minimum
|
4087
|
+
# The minimum number of instances in the Auto Scaling group.
|
4031
4088
|
# @return [Integer]
|
4032
4089
|
#
|
4033
4090
|
# @!attribute [rw] max_size
|
4034
|
-
# The maximum
|
4091
|
+
# The maximum number of instances in the Auto Scaling group.
|
4035
4092
|
# @return [Integer]
|
4036
4093
|
#
|
4037
4094
|
# @!attribute [rw] desired_capacity
|
4038
|
-
# The number of EC2 instances that should be running in the
|
4095
|
+
# The number of EC2 instances that should be running in the Auto
|
4096
|
+
# Scaling group.
|
4039
4097
|
# @return [Integer]
|
4040
4098
|
#
|
4041
4099
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupActionType AWS API Documentation
|
@@ -4150,8 +4208,8 @@ module Aws::AutoScaling
|
|
4150
4208
|
# @return [String]
|
4151
4209
|
#
|
4152
4210
|
# @!attribute [rw] policy_type
|
4153
|
-
# The policy type. The valid values are `SimpleScaling
|
4154
|
-
# `StepScaling`.
|
4211
|
+
# The policy type. The valid values are `SimpleScaling`,
|
4212
|
+
# `StepScaling`, and `TargetTrackingScaling`.
|
4155
4213
|
# @return [String]
|
4156
4214
|
#
|
4157
4215
|
# @!attribute [rw] adjustment_type
|
@@ -4307,26 +4365,28 @@ module Aws::AutoScaling
|
|
4307
4365
|
# @return [Time]
|
4308
4366
|
#
|
4309
4367
|
# @!attribute [rw] start_time
|
4310
|
-
# The date and time
|
4311
|
-
#
|
4312
|
-
# When `StartTime` and `EndTime` are specified with `Recurrence`, they
|
4313
|
-
# form the boundaries of when the recurring action starts and stops.
|
4368
|
+
# The date and time in UTC for this action to start. For example,
|
4369
|
+
# `"2019-06-01T00:00:00Z"`.
|
4314
4370
|
# @return [Time]
|
4315
4371
|
#
|
4316
4372
|
# @!attribute [rw] end_time
|
4317
|
-
# The date and time
|
4373
|
+
# The date and time in UTC for the recurring schedule to end. For
|
4374
|
+
# example, `"2019-06-01T00:00:00Z"`.
|
4318
4375
|
# @return [Time]
|
4319
4376
|
#
|
4320
4377
|
# @!attribute [rw] recurrence
|
4321
|
-
# The recurring schedule for the action.
|
4378
|
+
# The recurring schedule for the action, in Unix cron syntax format.
|
4379
|
+
#
|
4380
|
+
# When `StartTime` and `EndTime` are specified with `Recurrence`, they
|
4381
|
+
# form the boundaries of when the recurring action starts and stops.
|
4322
4382
|
# @return [String]
|
4323
4383
|
#
|
4324
4384
|
# @!attribute [rw] min_size
|
4325
|
-
# The minimum
|
4385
|
+
# The minimum number of instances in the Auto Scaling group.
|
4326
4386
|
# @return [Integer]
|
4327
4387
|
#
|
4328
4388
|
# @!attribute [rw] max_size
|
4329
|
-
# The maximum
|
4389
|
+
# The maximum number of instances in the Auto Scaling group.
|
4330
4390
|
# @return [Integer]
|
4331
4391
|
#
|
4332
4392
|
# @!attribute [rw] desired_capacity
|
@@ -4374,8 +4434,9 @@ module Aws::AutoScaling
|
|
4374
4434
|
# @return [String]
|
4375
4435
|
#
|
4376
4436
|
# @!attribute [rw] start_time
|
4377
|
-
# The time for the action to start, in YYYY-MM-DDThh:mm:ssZ
|
4378
|
-
# UTC/GMT only and in quotes (for example,
|
4437
|
+
# The date and time for the action to start, in YYYY-MM-DDThh:mm:ssZ
|
4438
|
+
# format in UTC/GMT only and in quotes (for example,
|
4439
|
+
# `"2019-06-01T00:00:00Z"`).
|
4379
4440
|
#
|
4380
4441
|
# If you specify `Recurrence` and `StartTime`, Amazon EC2 Auto Scaling
|
4381
4442
|
# performs the action at this time, and then performs the action based
|
@@ -4386,8 +4447,8 @@ module Aws::AutoScaling
|
|
4386
4447
|
# @return [Time]
|
4387
4448
|
#
|
4388
4449
|
# @!attribute [rw] end_time
|
4389
|
-
# The time for the recurring schedule to end. Amazon EC2 Auto
|
4390
|
-
# does not perform the action after this time.
|
4450
|
+
# The date and time for the recurring schedule to end. Amazon EC2 Auto
|
4451
|
+
# Scaling does not perform the action after this time.
|
4391
4452
|
# @return [Time]
|
4392
4453
|
#
|
4393
4454
|
# @!attribute [rw] recurrence
|
@@ -4398,17 +4459,20 @@ module Aws::AutoScaling
|
|
4398
4459
|
# 1 1,6,12 *"`). For more information about this format, see
|
4399
4460
|
# [Crontab][1].
|
4400
4461
|
#
|
4462
|
+
# When `StartTime` and `EndTime` are specified with `Recurrence`, they
|
4463
|
+
# form the boundaries of when the recurring action starts and stops.
|
4464
|
+
#
|
4401
4465
|
#
|
4402
4466
|
#
|
4403
4467
|
# [1]: http://crontab.org
|
4404
4468
|
# @return [String]
|
4405
4469
|
#
|
4406
4470
|
# @!attribute [rw] min_size
|
4407
|
-
# The minimum
|
4471
|
+
# The minimum number of instances in the Auto Scaling group.
|
4408
4472
|
# @return [Integer]
|
4409
4473
|
#
|
4410
4474
|
# @!attribute [rw] max_size
|
4411
|
-
# The maximum
|
4475
|
+
# The maximum number of instances in the Auto Scaling group.
|
4412
4476
|
# @return [Integer]
|
4413
4477
|
#
|
4414
4478
|
# @!attribute [rw] desired_capacity
|
@@ -4771,13 +4835,13 @@ module Aws::AutoScaling
|
|
4771
4835
|
# }
|
4772
4836
|
#
|
4773
4837
|
# @!attribute [rw] predefined_metric_specification
|
4774
|
-
# A predefined metric. You
|
4775
|
-
# customized metric.
|
4838
|
+
# A predefined metric. You must specify either a predefined metric or
|
4839
|
+
# a customized metric.
|
4776
4840
|
# @return [Types::PredefinedMetricSpecification]
|
4777
4841
|
#
|
4778
4842
|
# @!attribute [rw] customized_metric_specification
|
4779
|
-
# A customized metric. You
|
4780
|
-
# customized metric.
|
4843
|
+
# A customized metric. You must specify either a predefined metric or
|
4844
|
+
# a customized metric.
|
4781
4845
|
# @return [Types::CustomizedMetricSpecification]
|
4782
4846
|
#
|
4783
4847
|
# @!attribute [rw] target_value
|
@@ -4789,7 +4853,7 @@ module Aws::AutoScaling
|
|
4789
4853
|
# is disabled. If scaling in is disabled, the target tracking scaling
|
4790
4854
|
# policy doesn't remove instances from the Auto Scaling group.
|
4791
4855
|
# Otherwise, the target tracking scaling policy can remove instances
|
4792
|
-
# from the Auto Scaling group. The default is
|
4856
|
+
# from the Auto Scaling group. The default is `false`.
|
4793
4857
|
# @return [Boolean]
|
4794
4858
|
#
|
4795
4859
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TargetTrackingConfiguration AWS API Documentation
|
@@ -4879,20 +4943,31 @@ module Aws::AutoScaling
|
|
4879
4943
|
# @return [String]
|
4880
4944
|
#
|
4881
4945
|
# @!attribute [rw] launch_configuration_name
|
4882
|
-
# The name of the launch configuration. If you specify
|
4883
|
-
# you can't specify
|
4946
|
+
# The name of the launch configuration. If you specify
|
4947
|
+
# `LaunchConfigurationName` in your update request, you can't specify
|
4948
|
+
# `LaunchTemplate` or `MixedInstancesPolicy`.
|
4949
|
+
#
|
4950
|
+
# <note markdown="1"> To update an Auto Scaling group with a launch configuration with
|
4951
|
+
# `InstanceMonitoring` set to `false`, you must first disable the
|
4952
|
+
# collection of group metrics. Otherwise, you get an error. If you
|
4953
|
+
# have previously enabled the collection of group metrics, you can
|
4954
|
+
# disable it using DisableMetricsCollection.
|
4955
|
+
#
|
4956
|
+
# </note>
|
4884
4957
|
# @return [String]
|
4885
4958
|
#
|
4886
4959
|
# @!attribute [rw] launch_template
|
4887
4960
|
# The launch template and version to use to specify the updates. If
|
4888
|
-
# you specify
|
4889
|
-
#
|
4961
|
+
# you specify `LaunchTemplate` in your update request, you can't
|
4962
|
+
# specify `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
4890
4963
|
# @return [Types::LaunchTemplateSpecification]
|
4891
4964
|
#
|
4892
4965
|
# @!attribute [rw] mixed_instances_policy
|
4893
|
-
#
|
4894
|
-
#
|
4895
|
-
#
|
4966
|
+
# An embedded object that specifies a mixed instances policy.
|
4967
|
+
#
|
4968
|
+
# In your call to `UpdateAutoScalingGroup`, you can make changes to
|
4969
|
+
# the policy that is specified. All optional parameters are left
|
4970
|
+
# unchanged if not specified.
|
4896
4971
|
#
|
4897
4972
|
# For more information, see [Auto Scaling Groups with Multiple
|
4898
4973
|
# Instance Types and Purchase Options][1] in the *Amazon EC2 Auto
|
@@ -4921,10 +4996,13 @@ module Aws::AutoScaling
|
|
4921
4996
|
# @!attribute [rw] default_cooldown
|
4922
4997
|
# The amount of time, in seconds, after a scaling activity completes
|
4923
4998
|
# before another scaling activity can start. The default value is
|
4924
|
-
# `300`.
|
4999
|
+
# `300`. This cooldown period is not used when a scaling-specific
|
5000
|
+
# cooldown is specified.
|
4925
5001
|
#
|
4926
|
-
#
|
4927
|
-
#
|
5002
|
+
# Cooldown periods are not supported for target tracking scaling
|
5003
|
+
# policies, step scaling policies, or scheduled scaling. For more
|
5004
|
+
# information, see [Scaling Cooldowns][1] in the *Amazon EC2 Auto
|
5005
|
+
# Scaling User Guide*.
|
4928
5006
|
#
|
4929
5007
|
#
|
4930
5008
|
#
|
@@ -4971,8 +5049,8 @@ module Aws::AutoScaling
|
|
4971
5049
|
# @return [String]
|
4972
5050
|
#
|
4973
5051
|
# @!attribute [rw] vpc_zone_identifier
|
4974
|
-
# A comma-separated list of subnet IDs
|
4975
|
-
# VPC.
|
5052
|
+
# A comma-separated list of subnet IDs for virtual private cloud
|
5053
|
+
# (VPC).
|
4976
5054
|
#
|
4977
5055
|
# If you specify `VPCZoneIdentifier` with `AvailabilityZones`, the
|
4978
5056
|
# subnets that you specify for this parameter must reside in those
|