aws-sdk-autoscaling 1.77.0 → 1.80.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +124 -74
- data/lib/aws-sdk-autoscaling/client.rb +446 -319
- data/lib/aws-sdk-autoscaling/client_api.rb +11 -0
- data/lib/aws-sdk-autoscaling/instance.rb +1 -1
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +25 -29
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +35 -39
- data/lib/aws-sdk-autoscaling/resource.rb +168 -134
- data/lib/aws-sdk-autoscaling/scheduled_action.rb +1 -1
- data/lib/aws-sdk-autoscaling/types.rb +558 -370
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +4 -4
@@ -159,6 +159,7 @@ module Aws::AutoScaling
|
|
159
159
|
# max_instance_lifetime: 1,
|
160
160
|
# context: "Context",
|
161
161
|
# desired_capacity_type: "XmlStringMaxLen255",
|
162
|
+
# default_instance_warmup: 1,
|
162
163
|
# })
|
163
164
|
# @param [Hash] options ({})
|
164
165
|
# @option options [required, String] :auto_scaling_group_name
|
@@ -171,7 +172,7 @@ module Aws::AutoScaling
|
|
171
172
|
# (`LaunchTemplate` or `MixedInstancesPolicy`) or a launch configuration
|
172
173
|
# (`LaunchConfigurationName` or `InstanceId`).
|
173
174
|
# @option options [Types::LaunchTemplateSpecification] :launch_template
|
174
|
-
#
|
175
|
+
# Information used to specify the launch template and version to use to
|
175
176
|
# launch instances.
|
176
177
|
#
|
177
178
|
# Conditional: You must specify either a launch template
|
@@ -232,34 +233,36 @@ module Aws::AutoScaling
|
|
232
233
|
# specify a desired capacity, the default is the minimum size of the
|
233
234
|
# group.
|
234
235
|
# @option options [Integer] :default_cooldown
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
236
|
+
# *Only needed if you use simple scaling policies.*
|
237
|
+
#
|
238
|
+
# The amount of time, in seconds, between one scaling activity ending
|
239
|
+
# and another one starting due to simple scaling policies. For more
|
239
240
|
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
240
241
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
241
242
|
#
|
243
|
+
# Default: `300` seconds
|
244
|
+
#
|
242
245
|
#
|
243
246
|
#
|
244
247
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html
|
245
248
|
# @option options [Array<String>] :availability_zones
|
246
249
|
# A list of Availability Zones where instances in the Auto Scaling group
|
247
|
-
# can be created.
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
# parameter is required to launch instances into EC2-Classic.
|
250
|
+
# can be created. Used for launching into the default VPC subnet in each
|
251
|
+
# Availability Zone when not using the `VPCZoneIdentifier` property, or
|
252
|
+
# for attaching a network interface when an existing network interface
|
253
|
+
# ID is specified in a launch template.
|
252
254
|
# @option options [Array<String>] :load_balancer_names
|
253
255
|
# A list of Classic Load Balancers associated with this Auto Scaling
|
254
256
|
# group. For Application Load Balancers, Network Load Balancers, and
|
255
|
-
# Gateway Load
|
256
|
-
# instead.
|
257
|
+
# Gateway Load Balancer, specify the `TargetGroupARNs` property instead.
|
257
258
|
# @option options [Array<String>] :target_group_arns
|
258
259
|
# The Amazon Resource Names (ARN) of the target groups to associate with
|
259
|
-
# the Auto Scaling group. Instances are registered as targets
|
260
|
-
# target
|
261
|
-
#
|
262
|
-
#
|
260
|
+
# the Auto Scaling group. Instances are registered as targets with the
|
261
|
+
# target groups. The target groups receive incoming traffic and route
|
262
|
+
# requests to one or more registered targets. For more information, see
|
263
|
+
# [Use Elastic Load Balancing to distribute traffic across the instances
|
264
|
+
# in your Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User
|
265
|
+
# Guide*.
|
263
266
|
#
|
264
267
|
#
|
265
268
|
#
|
@@ -278,22 +281,27 @@ module Aws::AutoScaling
|
|
278
281
|
# @option options [Integer] :health_check_grace_period
|
279
282
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
280
283
|
# before checking the health status of an EC2 instance that has come
|
281
|
-
# into service and marking it unhealthy due to a failed
|
282
|
-
#
|
283
|
-
#
|
284
|
+
# into service and marking it unhealthy due to a failed Elastic Load
|
285
|
+
# Balancing or custom health check. This is useful if your instances do
|
286
|
+
# not immediately pass these health checks after they enter the
|
287
|
+
# `InService` state. For more information, see [Health check grace
|
288
|
+
# period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
284
289
|
#
|
285
|
-
#
|
290
|
+
# Default: `0` seconds
|
286
291
|
#
|
287
292
|
#
|
288
293
|
#
|
289
294
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
290
295
|
# @option options [String] :placement_group
|
291
|
-
# The name of
|
292
|
-
#
|
293
|
-
#
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
296
|
+
# The name of the placement group into which to launch your instances.
|
297
|
+
# For more information, see [Placement groups][1] in the *Amazon EC2
|
298
|
+
# User Guide for Linux Instances*.
|
299
|
+
#
|
300
|
+
# <note markdown="1"> A *cluster* placement group is a logical grouping of instances within
|
301
|
+
# a single Availability Zone. You cannot specify multiple Availability
|
302
|
+
# Zones and a cluster placement group.
|
303
|
+
#
|
304
|
+
# </note>
|
297
305
|
#
|
298
306
|
#
|
299
307
|
#
|
@@ -302,21 +310,21 @@ module Aws::AutoScaling
|
|
302
310
|
# A comma-separated list of subnet IDs for a virtual private cloud (VPC)
|
303
311
|
# where instances in the Auto Scaling group can be created. If you
|
304
312
|
# specify `VPCZoneIdentifier` with `AvailabilityZones`, the subnets that
|
305
|
-
# you specify
|
306
|
-
# Zones.
|
307
|
-
#
|
308
|
-
# Conditional: If your account supports EC2-Classic and VPC, this
|
309
|
-
# parameter is required to launch instances into a VPC.
|
313
|
+
# you specify must reside in those Availability Zones.
|
310
314
|
# @option options [Array<String>] :termination_policies
|
311
315
|
# A policy or a list of policies that are used to select the instance to
|
312
316
|
# terminate. These policies are executed in the order that you list
|
313
|
-
# them. For more information, see [
|
314
|
-
#
|
315
|
-
# Scaling User Guide*.
|
317
|
+
# them. For more information, see [Work with Amazon EC2 Auto Scaling
|
318
|
+
# termination policies][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
316
319
|
#
|
320
|
+
# Valid values: `Default` \| `AllocationStrategy` \|
|
321
|
+
# `ClosestToNextInstanceHour` \| `NewestInstance` \| `OldestInstance` \|
|
322
|
+
# `OldestLaunchConfiguration` \| `OldestLaunchTemplate` \|
|
323
|
+
# `arn:aws:lambda:region:account-id:function:my-function:my-alias`
|
317
324
|
#
|
318
325
|
#
|
319
|
-
#
|
326
|
+
#
|
327
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-termination-policies.html
|
320
328
|
# @option options [Boolean] :new_instances_protected_from_scale_in
|
321
329
|
# Indicates whether newly launched instances are protected from
|
322
330
|
# termination by Amazon EC2 Auto Scaling when scaling in. For more
|
@@ -333,15 +341,16 @@ module Aws::AutoScaling
|
|
333
341
|
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
334
342
|
# EC2 notifies that a Spot Instance is at an elevated risk of
|
335
343
|
# interruption. After launching a new instance, it then terminates an
|
336
|
-
# old instance. For more information, see [
|
337
|
-
#
|
344
|
+
# old instance. For more information, see [Use Capacity Rebalancing to
|
345
|
+
# handle Amazon EC2 Spot Interruptions][1] in the in the *Amazon EC2
|
346
|
+
# Auto Scaling User Guide*.
|
338
347
|
#
|
339
348
|
#
|
340
349
|
#
|
341
350
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-capacity-rebalancing.html
|
342
351
|
# @option options [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
|
343
|
-
# One or more lifecycle hooks
|
344
|
-
#
|
352
|
+
# One or more lifecycle hooks to add to the Auto Scaling group before
|
353
|
+
# instances are launched.
|
345
354
|
# @option options [Array<Types::Tag>] :tags
|
346
355
|
# One or more tags. You can tag your Auto Scaling group and propagate
|
347
356
|
# the tags to the Amazon EC2 instances it launches. Tags are not
|
@@ -350,18 +359,18 @@ module Aws::AutoScaling
|
|
350
359
|
# template specifies an instance tag with a key that is also specified
|
351
360
|
# for the Auto Scaling group, Amazon EC2 Auto Scaling overrides the
|
352
361
|
# value of that instance tag with the value specified by the Auto
|
353
|
-
# Scaling group. For more information, see [
|
354
|
-
#
|
362
|
+
# Scaling group. For more information, see [Tag Auto Scaling groups and
|
363
|
+
# instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
355
364
|
#
|
356
365
|
#
|
357
366
|
#
|
358
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
367
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html
|
359
368
|
# @option options [String] :service_linked_role_arn
|
360
369
|
# The Amazon Resource Name (ARN) of the service-linked role that the
|
361
|
-
# Auto Scaling group uses to call other Amazon Web Services on
|
362
|
-
# behalf. By default, Amazon EC2 Auto Scaling uses a service-linked
|
363
|
-
# named `AWSServiceRoleForAutoScaling`, which it creates if it does
|
364
|
-
# exist. For more information, see [Service-linked roles][1] in the
|
370
|
+
# Auto Scaling group uses to call other Amazon Web Services service on
|
371
|
+
# your behalf. By default, Amazon EC2 Auto Scaling uses a service-linked
|
372
|
+
# role named `AWSServiceRoleForAutoScaling`, which it creates if it does
|
373
|
+
# not exist. For more information, see [Service-linked roles][1] in the
|
365
374
|
# *Amazon EC2 Auto Scaling User Guide*.
|
366
375
|
#
|
367
376
|
#
|
@@ -394,6 +403,31 @@ module Aws::AutoScaling
|
|
394
403
|
#
|
395
404
|
#
|
396
405
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
|
406
|
+
# @option options [Integer] :default_instance_warmup
|
407
|
+
# The amount of time, in seconds, until a newly launched instance can
|
408
|
+
# contribute to the Amazon CloudWatch metrics. This delay lets an
|
409
|
+
# instance finish initializing before Amazon EC2 Auto Scaling aggregates
|
410
|
+
# instance metrics, resulting in more reliable usage data. Set this
|
411
|
+
# value equal to the amount of time that it takes for resource
|
412
|
+
# consumption to become stable after an instance reaches the `InService`
|
413
|
+
# state. For more information, see [Set the default instance warmup for
|
414
|
+
# an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
415
|
+
#
|
416
|
+
# To manage your warm-up settings at the group level, we recommend that
|
417
|
+
# you set the default instance warmup, *even if its value is set to 0
|
418
|
+
# seconds*. This also optimizes the performance of scaling policies that
|
419
|
+
# scale continuously, such as target tracking and step scaling policies.
|
420
|
+
#
|
421
|
+
# If you need to remove a value that you previously set, include the
|
422
|
+
# property but specify `-1` for the value. However, we strongly
|
423
|
+
# recommend keeping the default instance warmup enabled by specifying a
|
424
|
+
# minimum value of `0`.
|
425
|
+
#
|
426
|
+
# Default: None
|
427
|
+
#
|
428
|
+
#
|
429
|
+
#
|
430
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
397
431
|
# @return [AutoScalingGroup]
|
398
432
|
def create_group(options = {})
|
399
433
|
@client.create_auto_scaling_group(options)
|
@@ -453,64 +487,51 @@ module Aws::AutoScaling
|
|
453
487
|
# Region per account.
|
454
488
|
# @option options [String] :image_id
|
455
489
|
# The ID of the Amazon Machine Image (AMI) that was assigned during
|
456
|
-
# registration. For more information, see [Finding
|
457
|
-
# *Amazon EC2 User Guide for Linux Instances*.
|
490
|
+
# registration. For more information, see [Finding a Linux AMI][1] in
|
491
|
+
# the *Amazon EC2 User Guide for Linux Instances*.
|
458
492
|
#
|
459
|
-
# If you
|
493
|
+
# If you specify `InstanceId`, an `ImageId` is not required.
|
460
494
|
#
|
461
495
|
#
|
462
496
|
#
|
463
497
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html
|
464
498
|
# @option options [String] :key_name
|
465
|
-
# The name of the key pair. For more information, see [Amazon EC2
|
466
|
-
#
|
499
|
+
# The name of the key pair. For more information, see [Amazon EC2 key
|
500
|
+
# pairs and Linux instances][1] in the *Amazon EC2 User Guide for Linux
|
501
|
+
# Instances*.
|
467
502
|
#
|
468
503
|
#
|
469
504
|
#
|
470
505
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
|
471
506
|
# @option options [Array<String>] :security_groups
|
472
|
-
# A list that contains the security
|
473
|
-
# the Auto Scaling group.
|
474
|
-
#
|
475
|
-
#
|
476
|
-
# [Security Groups for Your VPC][1] in the *Amazon Virtual Private Cloud
|
477
|
-
# User Guide*.
|
478
|
-
#
|
479
|
-
# \[EC2-Classic\] Specify either the security group names or the
|
480
|
-
# security group IDs. For more information, see [Amazon EC2 Security
|
481
|
-
# Groups][2] in the *Amazon EC2 User Guide for Linux Instances*.
|
507
|
+
# A list that contains the security group IDs to assign to the instances
|
508
|
+
# in the Auto Scaling group. For more information, see [Control traffic
|
509
|
+
# to resources using security groups][1] in the *Amazon Virtual Private
|
510
|
+
# Cloud User Guide*.
|
482
511
|
#
|
483
512
|
#
|
484
513
|
#
|
485
514
|
# [1]: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html
|
486
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html
|
487
515
|
# @option options [String] :classic_link_vpc_id
|
516
|
+
# *EC2-Classic retires on August 15, 2022. This property is not
|
517
|
+
# supported after that date.*
|
518
|
+
#
|
488
519
|
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
489
520
|
# to. For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
490
|
-
# Guide for Linux Instances
|
491
|
-
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
492
|
-
#
|
493
|
-
# This parameter can only be used if you are launching EC2-Classic
|
494
|
-
# instances.
|
521
|
+
# Guide for Linux Instances*.
|
495
522
|
#
|
496
523
|
#
|
497
524
|
#
|
498
525
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html
|
499
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink
|
500
526
|
# @option options [Array<String>] :classic_link_vpc_security_groups
|
501
|
-
#
|
502
|
-
#
|
503
|
-
# the *Amazon EC2 User Guide for Linux Instances* and [Linking
|
504
|
-
# EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling
|
505
|
-
# User Guide*.
|
506
|
-
#
|
507
|
-
# If you specify the `ClassicLinkVPCId` parameter, you must specify this
|
508
|
-
# parameter.
|
509
|
-
#
|
527
|
+
# *EC2-Classic retires on August 15, 2022. This property is not
|
528
|
+
# supported after that date.*
|
510
529
|
#
|
530
|
+
# The IDs of one or more security groups for the specified
|
531
|
+
# ClassicLink-enabled VPC.
|
511
532
|
#
|
512
|
-
#
|
513
|
-
#
|
533
|
+
# If you specify the `ClassicLinkVPCId` property, you must specify
|
534
|
+
# `ClassicLinkVPCSecurityGroups`.
|
514
535
|
# @option options [String] :user_data
|
515
536
|
# The user data to make available to the launched EC2 instances. For
|
516
537
|
# more information, see [Instance metadata and user data][1] (Linux) and
|
@@ -535,31 +556,48 @@ module Aws::AutoScaling
|
|
535
556
|
# For more information, see [Creating a launch configuration using an
|
536
557
|
# EC2 instance][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
537
558
|
#
|
538
|
-
# If you do not specify `InstanceId`, you must specify both `ImageId`
|
539
|
-
# and `InstanceType`.
|
540
|
-
#
|
541
559
|
#
|
542
560
|
#
|
543
561
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-lc-with-instanceID.html
|
544
562
|
# @option options [String] :instance_type
|
545
|
-
# Specifies the instance type of the EC2 instance.
|
546
|
-
#
|
547
|
-
#
|
548
|
-
# Instance Types][1] in the *Amazon EC2 User Guide for Linux Instances*.
|
563
|
+
# Specifies the instance type of the EC2 instance. For information about
|
564
|
+
# available instance types, see [Available instance types][1] in the
|
565
|
+
# *Amazon EC2 User Guide for Linux Instances*.
|
549
566
|
#
|
550
|
-
# If you
|
567
|
+
# If you specify `InstanceId`, an `InstanceType` is not required.
|
551
568
|
#
|
552
569
|
#
|
553
570
|
#
|
554
571
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes
|
555
572
|
# @option options [String] :kernel_id
|
556
573
|
# The ID of the kernel associated with the AMI.
|
574
|
+
#
|
575
|
+
# <note markdown="1"> We recommend that you use PV-GRUB instead of kernels and RAM disks.
|
576
|
+
# For more information, see [User provided kernels][1] in the *Amazon
|
577
|
+
# EC2 User Guide for Linux Instances*.
|
578
|
+
#
|
579
|
+
# </note>
|
580
|
+
#
|
581
|
+
#
|
582
|
+
#
|
583
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html
|
557
584
|
# @option options [String] :ramdisk_id
|
558
585
|
# The ID of the RAM disk to select.
|
586
|
+
#
|
587
|
+
# <note markdown="1"> We recommend that you use PV-GRUB instead of kernels and RAM disks.
|
588
|
+
# For more information, see [User provided kernels][1] in the *Amazon
|
589
|
+
# EC2 User Guide for Linux Instances*.
|
590
|
+
#
|
591
|
+
# </note>
|
592
|
+
#
|
593
|
+
#
|
594
|
+
#
|
595
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html
|
559
596
|
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
597
|
+
# The block device mapping entries that define the block devices to
|
598
|
+
# attach to the instances at launch. By default, the block devices
|
599
|
+
# specified in the block device mapping for the AMI are used. For more
|
600
|
+
# information, see [Block device mappings][1] in the *Amazon EC2 User
|
563
601
|
# Guide for Linux Instances*.
|
564
602
|
#
|
565
603
|
#
|
@@ -584,8 +622,10 @@ module Aws::AutoScaling
|
|
584
622
|
# The maximum hourly price to be paid for any Spot Instance launched to
|
585
623
|
# fulfill the request. Spot Instances are launched when the price you
|
586
624
|
# specify exceeds the current Spot price. For more information, see
|
587
|
-
# [
|
588
|
-
# Guide*.
|
625
|
+
# [Request Spot Instances for fault-tolerant and flexible
|
626
|
+
# applications][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
627
|
+
#
|
628
|
+
# Valid Range: Minimum value of 0.001
|
589
629
|
#
|
590
630
|
# <note markdown="1"> When you change your maximum price by creating a new launch
|
591
631
|
# configuration, running instances will continue to run as long as the
|
@@ -596,14 +636,13 @@ module Aws::AutoScaling
|
|
596
636
|
#
|
597
637
|
#
|
598
638
|
#
|
599
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/
|
639
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-template-spot-instances.html
|
600
640
|
# @option options [String] :iam_instance_profile
|
601
641
|
# The name or the Amazon Resource Name (ARN) of the instance profile
|
602
642
|
# associated with the IAM role for the instance. The instance profile
|
603
|
-
# contains the IAM role.
|
604
|
-
#
|
605
|
-
#
|
606
|
-
# Amazon EC2 instances][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
643
|
+
# contains the IAM role. For more information, see [IAM role for
|
644
|
+
# applications that run on Amazon EC2 instances][1] in the *Amazon EC2
|
645
|
+
# Auto Scaling User Guide*.
|
607
646
|
#
|
608
647
|
#
|
609
648
|
#
|
@@ -624,44 +663,39 @@ module Aws::AutoScaling
|
|
624
663
|
#
|
625
664
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html
|
626
665
|
# @option options [Boolean] :associate_public_ip_address
|
627
|
-
#
|
628
|
-
#
|
629
|
-
#
|
630
|
-
#
|
666
|
+
# Specifies whether to assign a public IPv4 address to the group's
|
667
|
+
# instances. If the instance is launched into a default subnet, the
|
668
|
+
# default is to assign a public IPv4 address, unless you disabled the
|
669
|
+
# option to assign a public IPv4 address on the subnet. If the instance
|
670
|
+
# is launched into a nondefault subnet, the default is not to assign a
|
671
|
+
# public IPv4 address, unless you enabled the option to assign a public
|
672
|
+
# IPv4 address on the subnet.
|
673
|
+
#
|
674
|
+
# If you specify `true`, each instance in the Auto Scaling group
|
675
|
+
# receives a unique public IPv4 address. For more information, see
|
631
676
|
# [Launching Auto Scaling instances in a VPC][1] in the *Amazon EC2 Auto
|
632
677
|
# Scaling User Guide*.
|
633
678
|
#
|
634
|
-
# If you specify this
|
635
|
-
#
|
636
|
-
#
|
637
|
-
# <note markdown="1"> If the instance is launched into a default subnet, the default is to
|
638
|
-
# assign a public IP address, unless you disabled the option to assign a
|
639
|
-
# public IP address on the subnet. If the instance is launched into a
|
640
|
-
# nondefault subnet, the default is not to assign a public IP address,
|
641
|
-
# unless you enabled the option to assign a public IP address on the
|
642
|
-
# subnet.
|
643
|
-
#
|
644
|
-
# </note>
|
679
|
+
# If you specify this property, you must specify at least one subnet for
|
680
|
+
# `VPCZoneIdentifier` when you create your group.
|
645
681
|
#
|
646
682
|
#
|
647
683
|
#
|
648
684
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html
|
649
685
|
# @option options [String] :placement_tenancy
|
650
|
-
# The tenancy of the instance
|
651
|
-
# on isolated, single-tenant
|
652
|
-
# VPC.
|
653
|
-
#
|
654
|
-
#
|
655
|
-
#
|
656
|
-
#
|
686
|
+
# The tenancy of the instance, either `default` or `dedicated`. An
|
687
|
+
# instance with `dedicated` tenancy runs on isolated, single-tenant
|
688
|
+
# hardware and can only be launched into a VPC. To launch dedicated
|
689
|
+
# instances into a shared tenancy VPC (a VPC with the instance placement
|
690
|
+
# tenancy attribute set to `default`), you must set the value of this
|
691
|
+
# property to `dedicated`. For more information, see [Configuring
|
692
|
+
# instance tenancy with Amazon EC2 Auto Scaling][1] in the *Amazon EC2
|
693
|
+
# Auto Scaling User Guide*.
|
657
694
|
#
|
658
695
|
# If you specify `PlacementTenancy`, you must specify at least one
|
659
696
|
# subnet for `VPCZoneIdentifier` when you create your group.
|
660
697
|
#
|
661
|
-
#
|
662
|
-
# EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
663
|
-
#
|
664
|
-
# Valid Values: `default` \| `dedicated`
|
698
|
+
# Valid values: `default` \| `dedicated`
|
665
699
|
#
|
666
700
|
#
|
667
701
|
#
|
@@ -695,7 +729,7 @@ module Aws::AutoScaling
|
|
695
729
|
# @param [Hash] options ({})
|
696
730
|
# @option options [Array<String>] :activity_ids
|
697
731
|
# The activity IDs of the desired scaling activities. If you omit this
|
698
|
-
#
|
732
|
+
# property, all activities for the past six weeks are described. If
|
699
733
|
# unknown activities are requested, they are ignored with no error. If
|
700
734
|
# you specify an Auto Scaling group, the results are limited to that
|
701
735
|
# group.
|
@@ -758,9 +792,9 @@ module Aws::AutoScaling
|
|
758
792
|
# @option options [Array<String>] :auto_scaling_group_names
|
759
793
|
# The names of the Auto Scaling groups. By default, you can only specify
|
760
794
|
# up to 50 names. You can optionally increase this limit using the
|
761
|
-
# `MaxRecords`
|
795
|
+
# `MaxRecords` property.
|
762
796
|
#
|
763
|
-
# If you omit this
|
797
|
+
# If you omit this property, all Auto Scaling groups are described.
|
764
798
|
# @option options [Array<Types::Filter>] :filters
|
765
799
|
# One or more filters to limit the results based on specific tags.
|
766
800
|
# @return [AutoScalingGroup::Collection]
|
@@ -789,7 +823,7 @@ module Aws::AutoScaling
|
|
789
823
|
# })
|
790
824
|
# @param [Hash] options ({})
|
791
825
|
# @option options [Array<String>] :instance_ids
|
792
|
-
# The IDs of the instances. If you omit this
|
826
|
+
# The IDs of the instances. If you omit this property, all Auto Scaling
|
793
827
|
# instances are described. If you specify an ID that does not exist, it
|
794
828
|
# is ignored with no error.
|
795
829
|
#
|
@@ -830,7 +864,7 @@ module Aws::AutoScaling
|
|
830
864
|
# })
|
831
865
|
# @param [Hash] options ({})
|
832
866
|
# @option options [Array<String>] :launch_configuration_names
|
833
|
-
# The launch configuration names. If you omit this
|
867
|
+
# The launch configuration names. If you omit this property, all launch
|
834
868
|
# configurations are described.
|
835
869
|
#
|
836
870
|
# Array Members: Maximum number of 50 items.
|
@@ -864,7 +898,7 @@ module Aws::AutoScaling
|
|
864
898
|
# @option options [String] :auto_scaling_group_name
|
865
899
|
# The name of the Auto Scaling group.
|
866
900
|
# @option options [Array<String>] :policy_names
|
867
|
-
# The names of one or more policies. If you omit this
|
901
|
+
# The names of one or more policies. If you omit this property, all
|
868
902
|
# policies are described. If a group name is provided, the results are
|
869
903
|
# limited to that group. If you specify an unknown policy name, it is
|
870
904
|
# ignored with no error.
|
@@ -922,17 +956,17 @@ module Aws::AutoScaling
|
|
922
956
|
# @option options [String] :auto_scaling_group_name
|
923
957
|
# The name of the Auto Scaling group.
|
924
958
|
# @option options [Array<String>] :scheduled_action_names
|
925
|
-
# The names of one or more scheduled actions. If you omit this
|
926
|
-
#
|
927
|
-
#
|
959
|
+
# The names of one or more scheduled actions. If you omit this property,
|
960
|
+
# all scheduled actions are described. If you specify an unknown
|
961
|
+
# scheduled action, it is ignored with no error.
|
928
962
|
#
|
929
963
|
# Array Members: Maximum number of 50 actions.
|
930
964
|
# @option options [Time,DateTime,Date,Integer,String] :start_time
|
931
965
|
# The earliest scheduled start time to return. If scheduled action names
|
932
|
-
# are provided, this
|
966
|
+
# are provided, this property is ignored.
|
933
967
|
# @option options [Time,DateTime,Date,Integer,String] :end_time
|
934
968
|
# The latest scheduled start time to return. If scheduled action names
|
935
|
-
# are provided, this
|
969
|
+
# are provided, this property is ignored.
|
936
970
|
# @return [ScheduledAction::Collection]
|
937
971
|
def scheduled_actions(options = {})
|
938
972
|
batches = Enumerator.new do |y|
|