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
@@ -286,7 +286,7 @@ module Aws::AutoScaling
|
|
286
286
|
#
|
287
287
|
# lifecycle_hook.put({
|
288
288
|
# lifecycle_transition: "LifecycleTransition",
|
289
|
-
# role_arn: "
|
289
|
+
# role_arn: "XmlStringMaxLen255",
|
290
290
|
# notification_target_arn: "NotificationTargetResourceName",
|
291
291
|
# notification_metadata: "XmlStringMaxLen1023",
|
292
292
|
# heartbeat_timeout: 1,
|
@@ -39,7 +39,7 @@ module Aws::AutoScaling
|
|
39
39
|
#
|
40
40
|
# autoscalinggroup = auto_scaling.create_group({
|
41
41
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
42
|
-
# launch_configuration_name: "
|
42
|
+
# launch_configuration_name: "XmlStringMaxLen255",
|
43
43
|
# launch_template: {
|
44
44
|
# launch_template_id: "XmlStringMaxLen255",
|
45
45
|
# launch_template_name: "LaunchTemplateName",
|
@@ -56,6 +56,11 @@ module Aws::AutoScaling
|
|
56
56
|
# {
|
57
57
|
# instance_type: "XmlStringMaxLen255",
|
58
58
|
# weighted_capacity: "XmlStringMaxLen32",
|
59
|
+
# launch_template_specification: {
|
60
|
+
# launch_template_id: "XmlStringMaxLen255",
|
61
|
+
# launch_template_name: "LaunchTemplateName",
|
62
|
+
# version: "XmlStringMaxLen255",
|
63
|
+
# },
|
59
64
|
# },
|
60
65
|
# ],
|
61
66
|
# },
|
@@ -91,7 +96,7 @@ module Aws::AutoScaling
|
|
91
96
|
# heartbeat_timeout: 1,
|
92
97
|
# default_result: "LifecycleActionResult",
|
93
98
|
# notification_target_arn: "NotificationTargetResourceName",
|
94
|
-
# role_arn: "
|
99
|
+
# role_arn: "XmlStringMaxLen255",
|
95
100
|
# },
|
96
101
|
# ],
|
97
102
|
# tags: [
|
@@ -111,31 +116,29 @@ module Aws::AutoScaling
|
|
111
116
|
# The name of the Auto Scaling group. This name must be unique per
|
112
117
|
# Region per account.
|
113
118
|
# @option options [String] :launch_configuration_name
|
114
|
-
# The name of the launch configuration to use
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
# You must specify one of the following parameters in your request:
|
120
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
121
|
-
# `MixedInstancesPolicy`.
|
119
|
+
# The name of the launch configuration to use to launch instances.
|
120
|
+
#
|
121
|
+
# Conditional: You must specify either a launch template
|
122
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
123
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
122
124
|
# @option options [Types::LaunchTemplateSpecification] :launch_template
|
123
|
-
# Parameters used to specify the launch template and version to use
|
124
|
-
#
|
125
|
+
# Parameters used to specify the launch template and version to use to
|
126
|
+
# launch instances.
|
125
127
|
#
|
126
|
-
#
|
127
|
-
#
|
128
|
+
# Conditional: You must specify either a launch template
|
129
|
+
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
130
|
+
# (`LaunchConfigurationName` or `InstanceId`).
|
128
131
|
#
|
129
|
-
#
|
130
|
-
# group
|
132
|
+
# <note markdown="1"> The launch template that is specified must be configured for use with
|
133
|
+
# an Auto Scaling group. For more information, see [Creating a launch
|
134
|
+
# template for an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling
|
135
|
+
# User Guide*.
|
131
136
|
#
|
132
|
-
#
|
133
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
134
|
-
# `MixedInstancesPolicy`.
|
137
|
+
# </note>
|
135
138
|
#
|
136
139
|
#
|
137
140
|
#
|
138
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
141
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
139
142
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
140
143
|
# An embedded object that specifies a mixed instances policy. The
|
141
144
|
# required parameters must be specified. If optional parameters are
|
@@ -144,40 +147,29 @@ module Aws::AutoScaling
|
|
144
147
|
# The policy includes parameters that not only define the distribution
|
145
148
|
# of On-Demand Instances and Spot Instances, the maximum price to pay
|
146
149
|
# for Spot Instances, and how the Auto Scaling group allocates instance
|
147
|
-
# types to fulfill On-Demand and Spot
|
148
|
-
# that specify the instance configuration information—the
|
149
|
-
# template and instance types.
|
150
|
-
#
|
151
|
-
# For more information, see [
|
152
|
-
#
|
153
|
-
#
|
154
|
-
# Scaling User Guide*.
|
155
|
-
#
|
156
|
-
# You must specify one of the following parameters in your request:
|
157
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
158
|
-
# `MixedInstancesPolicy`.
|
150
|
+
# types to fulfill On-Demand and Spot capacities, but also the
|
151
|
+
# parameters that specify the instance configuration information—the
|
152
|
+
# launch template and instance types. The policy can also include a
|
153
|
+
# weight for each instance type and different launch templates for
|
154
|
+
# individual instance types. For more information, see [Auto Scaling
|
155
|
+
# groups with multiple instance types and purchase options][1] in the
|
156
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
159
157
|
#
|
160
158
|
#
|
161
159
|
#
|
162
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/
|
163
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
160
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
|
164
161
|
# @option options [String] :instance_id
|
165
|
-
# The ID of the instance used to
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
# launch configuration derives its attributes from the specified
|
172
|
-
# instance, except for the block device mapping.
|
173
|
-
#
|
174
|
-
# You must specify one of the following parameters in your request:
|
175
|
-
# `LaunchConfigurationName`, `LaunchTemplate`, `InstanceId`, or
|
176
|
-
# `MixedInstancesPolicy`.
|
162
|
+
# The ID of the instance used to base the launch configuration on. If
|
163
|
+
# specified, Amazon EC2 Auto Scaling uses the configuration values from
|
164
|
+
# the specified instance to create a new launch configuration. To get
|
165
|
+
# the instance ID, use the Amazon EC2 [DescribeInstances][1] API
|
166
|
+
# operation. For more information, see [Creating an Auto Scaling group
|
167
|
+
# using an EC2 instance][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
177
168
|
#
|
178
169
|
#
|
179
170
|
#
|
180
171
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html
|
172
|
+
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html
|
181
173
|
# @option options [required, Integer] :min_size
|
182
174
|
# The minimum size of the group.
|
183
175
|
# @option options [required, Integer] :max_size
|
@@ -194,62 +186,51 @@ module Aws::AutoScaling
|
|
194
186
|
# @option options [Integer] :desired_capacity
|
195
187
|
# The desired capacity is the initial capacity of the Auto Scaling group
|
196
188
|
# at the time of its creation and the capacity it attempts to maintain.
|
197
|
-
# It can scale beyond this capacity if you configure
|
198
|
-
#
|
199
|
-
#
|
200
|
-
#
|
201
|
-
#
|
202
|
-
# the group.
|
189
|
+
# It can scale beyond this capacity if you configure auto scaling. This
|
190
|
+
# number must be greater than or equal to the minimum size of the group
|
191
|
+
# and less than or equal to the maximum size of the group. If you do not
|
192
|
+
# specify a desired capacity, the default is the minimum size of the
|
193
|
+
# group.
|
203
194
|
# @option options [Integer] :default_cooldown
|
204
195
|
# The amount of time, in seconds, after a scaling activity completes
|
205
196
|
# before another scaling activity can start. The default value is `300`.
|
206
|
-
#
|
207
197
|
# This setting applies when using simple scaling policies, but not when
|
208
198
|
# using other scaling policies or scheduled scaling. For more
|
209
|
-
# information, see [Scaling
|
199
|
+
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
210
200
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
211
201
|
#
|
212
202
|
#
|
213
203
|
#
|
214
204
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html
|
215
205
|
# @option options [Array<String>] :availability_zones
|
216
|
-
#
|
217
|
-
# optional if you specify one or more
|
206
|
+
# A list of Availability Zones where instances in the Auto Scaling group
|
207
|
+
# can be created. This parameter is optional if you specify one or more
|
208
|
+
# subnets for `VPCZoneIdentifier`.
|
218
209
|
#
|
219
210
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
220
211
|
# parameter is required to launch instances into EC2-Classic.
|
221
212
|
# @option options [Array<String>] :load_balancer_names
|
222
213
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
223
|
-
# group. For Application Load Balancers
|
224
|
-
#
|
214
|
+
# group. For Application Load Balancers, Network Load Balancers, and
|
215
|
+
# Gateway Load Balancers, specify the `TargetGroupARNs` property
|
225
216
|
# instead.
|
226
|
-
#
|
227
|
-
# For more information, see [Using a Load Balancer with an Auto Scaling
|
228
|
-
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
233
217
|
# @option options [Array<String>] :target_group_arns
|
234
218
|
# The Amazon Resource Names (ARN) of the target groups to associate with
|
235
219
|
# the Auto Scaling group. Instances are registered as targets in a
|
236
|
-
# target group, and traffic is routed to the target group.
|
237
|
-
#
|
238
|
-
#
|
239
|
-
# Group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
220
|
+
# target group, and traffic is routed to the target group. For more
|
221
|
+
# information, see [Elastic Load Balancing and Amazon EC2 Auto
|
222
|
+
# Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
240
223
|
#
|
241
224
|
#
|
242
225
|
#
|
243
226
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
|
244
227
|
# @option options [String] :health_check_type
|
245
228
|
# The service to use for the health checks. The valid values are `EC2`
|
246
|
-
# and `ELB`.
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
# For more information, see [Health Checks for Auto Scaling
|
252
|
-
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
229
|
+
# (default) and `ELB`. If you configure an Auto Scaling group to use
|
230
|
+
# load balancer (ELB) health checks, it considers the instance unhealthy
|
231
|
+
# if it fails either the EC2 status checks or the load balancer health
|
232
|
+
# checks. For more information, see [Health checks for Auto Scaling
|
233
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
253
234
|
#
|
254
235
|
#
|
255
236
|
#
|
@@ -258,89 +239,80 @@ module Aws::AutoScaling
|
|
258
239
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
259
240
|
# before checking the health status of an EC2 instance that has come
|
260
241
|
# into service. During this time, any health check failures for the
|
261
|
-
# instance are ignored. The default value is `0`.
|
262
|
-
#
|
263
|
-
#
|
264
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
242
|
+
# instance are ignored. The default value is `0`. For more information,
|
243
|
+
# see [Health check grace period][1] in the *Amazon EC2 Auto Scaling
|
244
|
+
# User Guide*.
|
265
245
|
#
|
266
|
-
# Required if you are adding an `ELB` health check.
|
246
|
+
# Conditional: Required if you are adding an `ELB` health check.
|
267
247
|
#
|
268
248
|
#
|
269
249
|
#
|
270
250
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
271
251
|
# @option options [String] :placement_group
|
272
|
-
# The name of
|
273
|
-
# if any. A placement group is a logical grouping of
|
274
|
-
# single Availability Zone. You cannot specify
|
275
|
-
# Zones and a placement group. For more
|
276
|
-
# Groups][1] in the *Amazon EC2 User Guide
|
252
|
+
# The name of an existing placement group into which to launch your
|
253
|
+
# instances, if any. A placement group is a logical grouping of
|
254
|
+
# instances within a single Availability Zone. You cannot specify
|
255
|
+
# multiple Availability Zones and a placement group. For more
|
256
|
+
# information, see [Placement Groups][1] in the *Amazon EC2 User Guide
|
257
|
+
# for Linux Instances*.
|
277
258
|
#
|
278
259
|
#
|
279
260
|
#
|
280
261
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
|
281
262
|
# @option options [String] :vpc_zone_identifier
|
282
|
-
# A comma-separated list of subnet IDs for
|
283
|
-
#
|
284
|
-
#
|
285
|
-
#
|
286
|
-
#
|
287
|
-
# Availability Zones.
|
263
|
+
# A comma-separated list of subnet IDs for a virtual private cloud (VPC)
|
264
|
+
# where instances in the Auto Scaling group can be created. If you
|
265
|
+
# specify `VPCZoneIdentifier` with `AvailabilityZones`, the subnets that
|
266
|
+
# you specify for this parameter must reside in those Availability
|
267
|
+
# Zones.
|
288
268
|
#
|
289
269
|
# Conditional: If your account supports EC2-Classic and VPC, this
|
290
270
|
# parameter is required to launch instances into a VPC.
|
291
271
|
# @option options [Array<String>] :termination_policies
|
292
|
-
#
|
293
|
-
# terminate. These policies are executed in the order that
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
# Terminates During Scale In][1] in the *Amazon EC2 Auto Scaling User
|
298
|
-
# Guide*.
|
272
|
+
# A policy or a list of policies that are used to select the instance to
|
273
|
+
# terminate. These policies are executed in the order that you list
|
274
|
+
# them. For more information, see [Controlling which Auto Scaling
|
275
|
+
# instances terminate during scale in][1] in the *Amazon EC2 Auto
|
276
|
+
# Scaling User Guide*.
|
299
277
|
#
|
300
278
|
#
|
301
279
|
#
|
302
280
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html
|
303
281
|
# @option options [Boolean] :new_instances_protected_from_scale_in
|
304
282
|
# Indicates whether newly launched instances are protected from
|
305
|
-
# termination by Amazon EC2 Auto Scaling when scaling in.
|
306
|
-
#
|
307
|
-
#
|
308
|
-
# scale in, see [Instance Protection][1] in the *Amazon EC2 Auto Scaling
|
283
|
+
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
284
|
+
# information about preventing instances from terminating on scale in,
|
285
|
+
# see [Instance scale-in protection][1] in the *Amazon EC2 Auto Scaling
|
309
286
|
# User Guide*.
|
310
287
|
#
|
311
288
|
#
|
312
289
|
#
|
313
290
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
314
291
|
# @option options [Boolean] :capacity_rebalance
|
315
|
-
# Indicates whether
|
316
|
-
#
|
317
|
-
#
|
318
|
-
# You can enable capacity rebalancing for your Auto Scaling groups when
|
319
|
-
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
292
|
+
# Indicates whether Capacity Rebalancing is enabled. Otherwise, Capacity
|
293
|
+
# Rebalancing is disabled. When you turn on Capacity Rebalancing, Amazon
|
320
294
|
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
321
|
-
# EC2
|
295
|
+
# EC2 notifies that a Spot Instance is at an elevated risk of
|
322
296
|
# interruption. After launching a new instance, it then terminates an
|
323
297
|
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
324
|
-
#
|
298
|
+
# Capacity Rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
325
299
|
#
|
326
300
|
#
|
327
301
|
#
|
328
302
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
329
303
|
# @option options [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
|
330
|
-
# One or more lifecycle hooks
|
304
|
+
# One or more lifecycle hooks for the group, which specify actions to
|
305
|
+
# perform when Amazon EC2 Auto Scaling launches or terminates instances.
|
331
306
|
# @option options [Array<Types::Tag>] :tags
|
332
307
|
# One or more tags. You can tag your Auto Scaling group and propagate
|
333
|
-
# the tags to the Amazon EC2 instances it launches.
|
334
|
-
#
|
335
|
-
#
|
336
|
-
#
|
337
|
-
# the
|
338
|
-
#
|
339
|
-
#
|
340
|
-
# the Auto Scaling
|
341
|
-
#
|
342
|
-
# For more information, see [Tagging Auto Scaling Groups and
|
343
|
-
# Instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
308
|
+
# the tags to the Amazon EC2 instances it launches. Tags are not
|
309
|
+
# propagated to Amazon EBS volumes. To add tags to Amazon EBS volumes,
|
310
|
+
# specify the tags in a launch template but use caution. If the launch
|
311
|
+
# template specifies an instance tag with a key that is also specified
|
312
|
+
# for the Auto Scaling group, Amazon EC2 Auto Scaling overrides the
|
313
|
+
# value of that instance tag with the value specified by the Auto
|
314
|
+
# Scaling group. For more information, see [Tagging Auto Scaling groups
|
315
|
+
# and instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
344
316
|
#
|
345
317
|
#
|
346
318
|
#
|
@@ -350,7 +322,7 @@ module Aws::AutoScaling
|
|
350
322
|
# Auto Scaling group uses to call other AWS services on your behalf. By
|
351
323
|
# default, Amazon EC2 Auto Scaling uses a service-linked role named
|
352
324
|
# AWSServiceRoleForAutoScaling, which it creates if it does not exist.
|
353
|
-
# For more information, see [Service-
|
325
|
+
# For more information, see [Service-linked roles][1] in the *Amazon EC2
|
354
326
|
# Auto Scaling User Guide*.
|
355
327
|
#
|
356
328
|
#
|
@@ -358,17 +330,10 @@ module Aws::AutoScaling
|
|
358
330
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html
|
359
331
|
# @option options [Integer] :max_instance_lifetime
|
360
332
|
# The maximum amount of time, in seconds, that an instance can be in
|
361
|
-
# service. The default is null.
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
# previously set value, specify a new value of 0.
|
366
|
-
#
|
367
|
-
# For more information, see [Replacing Auto Scaling Instances Based on
|
368
|
-
# Maximum Instance Lifetime][1] in the *Amazon EC2 Auto Scaling User
|
369
|
-
# Guide*.
|
370
|
-
#
|
371
|
-
# Valid Range: Minimum value of 0.
|
333
|
+
# service. The default is null. If specified, the value must be either 0
|
334
|
+
# or a number equal to or greater than 86,400 seconds (1 day). For more
|
335
|
+
# information, see [Replacing Auto Scaling instances based on maximum
|
336
|
+
# instance lifetime][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
372
337
|
#
|
373
338
|
#
|
374
339
|
#
|
@@ -465,7 +430,7 @@ module Aws::AutoScaling
|
|
465
430
|
# @option options [String] :classic_link_vpc_id
|
466
431
|
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
467
432
|
# to. For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
468
|
-
# Guide for Linux Instances* and [Linking EC2-Classic
|
433
|
+
# Guide for Linux Instances* and [Linking EC2-Classic instances to a
|
469
434
|
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
470
435
|
#
|
471
436
|
# This parameter can only be used if you are launching EC2-Classic
|
@@ -479,7 +444,7 @@ module Aws::AutoScaling
|
|
479
444
|
# The IDs of one or more security groups for the specified
|
480
445
|
# ClassicLink-enabled VPC. For more information, see [ClassicLink][1] in
|
481
446
|
# the *Amazon EC2 User Guide for Linux Instances* and [Linking
|
482
|
-
# EC2-Classic
|
447
|
+
# EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling
|
483
448
|
# User Guide*.
|
484
449
|
#
|
485
450
|
# If you specify the `ClassicLinkVPCId` parameter, you must specify this
|
@@ -490,13 +455,17 @@ module Aws::AutoScaling
|
|
490
455
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html
|
491
456
|
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink
|
492
457
|
# @option options [String] :user_data
|
493
|
-
# The
|
494
|
-
#
|
495
|
-
#
|
458
|
+
# The user data to make available to the launched EC2 instances. For
|
459
|
+
# more information, see [Instance metadata and user data][1] (Linux) and
|
460
|
+
# [Instance metadata and user data][2] (Windows). If you are using a
|
461
|
+
# command line tool, base64-encoding is performed for you, and you can
|
462
|
+
# load the text from a file. Otherwise, you must provide base64-encoded
|
463
|
+
# text. User data is limited to 16 KB.
|
496
464
|
#
|
497
465
|
#
|
498
466
|
#
|
499
467
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
|
468
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html
|
500
469
|
# @option options [String] :instance_id
|
501
470
|
# The ID of the instance to use to create the launch configuration. The
|
502
471
|
# new launch configuration derives attributes from the instance, except
|
@@ -506,8 +475,8 @@ module Aws::AutoScaling
|
|
506
475
|
# override any other instance attributes, specify them as part of the
|
507
476
|
# same request.
|
508
477
|
#
|
509
|
-
# For more information, see [
|
510
|
-
#
|
478
|
+
# For more information, see [Creating a launch configuration using an
|
479
|
+
# EC2 instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
511
480
|
#
|
512
481
|
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
513
482
|
# and `InstanceType`.
|
@@ -519,7 +488,7 @@ module Aws::AutoScaling
|
|
519
488
|
# Specifies the instance type of the EC2 instance.
|
520
489
|
#
|
521
490
|
# For information about available instance types, see [Available
|
522
|
-
# Instance Types][1] in the *Amazon EC2 User Guide for Linux Instances
|
491
|
+
# Instance Types][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
523
492
|
#
|
524
493
|
# If you do not specify `InstanceId`, you must specify `InstanceType`.
|
525
494
|
#
|
@@ -558,8 +527,8 @@ module Aws::AutoScaling
|
|
558
527
|
# The maximum hourly price to be paid for any Spot Instance launched to
|
559
528
|
# fulfill the request. Spot Instances are launched when the price you
|
560
529
|
# specify exceeds the current Spot price. For more information, see
|
561
|
-
# [
|
562
|
-
#
|
530
|
+
# [Requesting Spot Instances][1] in the *Amazon EC2 Auto Scaling User
|
531
|
+
# Guide*.
|
563
532
|
#
|
564
533
|
# <note markdown="1"> When you change your maximum price by creating a new launch
|
565
534
|
# configuration, running instances will continue to run as long as the
|
@@ -576,8 +545,8 @@ module Aws::AutoScaling
|
|
576
545
|
# associated with the IAM role for the instance. The instance profile
|
577
546
|
# contains the IAM role.
|
578
547
|
#
|
579
|
-
# For more information, see [IAM
|
580
|
-
# Amazon EC2
|
548
|
+
# For more information, see [IAM role for applications that run on
|
549
|
+
# Amazon EC2 instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
581
550
|
#
|
582
551
|
#
|
583
552
|
#
|
@@ -602,7 +571,7 @@ module Aws::AutoScaling
|
|
602
571
|
# (VPC), specifies whether to assign a public IP address to the group's
|
603
572
|
# instances. If you specify `true`, each instance in the Auto Scaling
|
604
573
|
# group receives a unique public IP address. For more information, see
|
605
|
-
# [Launching Auto Scaling
|
574
|
+
# [Launching Auto Scaling instances in a VPC][1] in the *Amazon EC2 Auto
|
606
575
|
# Scaling User Guide*.
|
607
576
|
#
|
608
577
|
# If you specify this parameter, you must specify at least one subnet
|
@@ -632,14 +601,14 @@ module Aws::AutoScaling
|
|
632
601
|
# If you specify `PlacementTenancy`, you must specify at least one
|
633
602
|
# subnet for `VPCZoneIdentifier` when you create your group.
|
634
603
|
#
|
635
|
-
# For more information, see [
|
636
|
-
# *Amazon EC2 Auto Scaling User Guide*.
|
604
|
+
# For more information, see [Configuring instance tenancy with Amazon
|
605
|
+
# EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
637
606
|
#
|
638
607
|
# Valid Values: `default` \| `dedicated`
|
639
608
|
#
|
640
609
|
#
|
641
610
|
#
|
642
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
611
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-dedicated-instances.html
|
643
612
|
# @option options [Types::InstanceMetadataOptions] :metadata_options
|
644
613
|
# The metadata options for the instances. For more information, see
|
645
614
|
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
|
@@ -663,7 +632,7 @@ module Aws::AutoScaling
|
|
663
632
|
#
|
664
633
|
# activities = auto_scaling.activities({
|
665
634
|
# activity_ids: ["XmlString"],
|
666
|
-
# auto_scaling_group_name: "
|
635
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
667
636
|
# })
|
668
637
|
# @param [Hash] options ({})
|
669
638
|
# @option options [Array<String>] :activity_ids
|
@@ -714,13 +683,13 @@ module Aws::AutoScaling
|
|
714
683
|
# @example Request syntax with placeholder values
|
715
684
|
#
|
716
685
|
# groups = auto_scaling.groups({
|
717
|
-
# auto_scaling_group_names: ["
|
686
|
+
# auto_scaling_group_names: ["XmlStringMaxLen255"],
|
718
687
|
# })
|
719
688
|
# @param [Hash] options ({})
|
720
689
|
# @option options [Array<String>] :auto_scaling_group_names
|
721
|
-
# The names of the Auto Scaling groups.
|
722
|
-
#
|
723
|
-
#
|
690
|
+
# The names of the Auto Scaling groups. By default, you can only specify
|
691
|
+
# up to 50 names. You can optionally increase this limit using the
|
692
|
+
# `MaxRecords` parameter.
|
724
693
|
#
|
725
694
|
# If you omit this parameter, all Auto Scaling groups are described.
|
726
695
|
# @return [AutoScalingGroup::Collection]
|
@@ -784,7 +753,7 @@ module Aws::AutoScaling
|
|
784
753
|
# @example Request syntax with placeholder values
|
785
754
|
#
|
786
755
|
# launch_configurations = auto_scaling.launch_configurations({
|
787
|
-
# launch_configuration_names: ["
|
756
|
+
# launch_configuration_names: ["XmlStringMaxLen255"],
|
788
757
|
# })
|
789
758
|
# @param [Hash] options ({})
|
790
759
|
# @option options [Array<String>] :launch_configuration_names
|
@@ -812,7 +781,7 @@ module Aws::AutoScaling
|
|
812
781
|
# @example Request syntax with placeholder values
|
813
782
|
#
|
814
783
|
# policies = auto_scaling.policies({
|
815
|
-
# auto_scaling_group_name: "
|
784
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
816
785
|
# policy_names: ["ResourceName"],
|
817
786
|
# policy_types: ["XmlStringMaxLen64"],
|
818
787
|
# })
|
@@ -867,8 +836,8 @@ module Aws::AutoScaling
|
|
867
836
|
# @example Request syntax with placeholder values
|
868
837
|
#
|
869
838
|
# scheduled_actions = auto_scaling.scheduled_actions({
|
870
|
-
# auto_scaling_group_name: "
|
871
|
-
# scheduled_action_names: ["
|
839
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
840
|
+
# scheduled_action_names: ["XmlStringMaxLen255"],
|
872
841
|
# start_time: Time.now,
|
873
842
|
# end_time: Time.now,
|
874
843
|
# })
|