aws-sdk-autoscaling 1.76.0 → 1.79.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/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +66 -35
- data/lib/aws-sdk-autoscaling/client.rb +205 -108
- data/lib/aws-sdk-autoscaling/client_api.rb +11 -0
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +7 -17
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +9 -9
- data/lib/aws-sdk-autoscaling/resource.rb +56 -23
- data/lib/aws-sdk-autoscaling/types.rb +254 -117
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +4 -4
@@ -86,6 +86,7 @@ module Aws::AutoScaling
|
|
86
86
|
CreateLaunchConfigurationType = Shapes::StructureShape.new(name: 'CreateLaunchConfigurationType')
|
87
87
|
CreateOrUpdateTagsType = Shapes::StructureShape.new(name: 'CreateOrUpdateTagsType')
|
88
88
|
CustomizedMetricSpecification = Shapes::StructureShape.new(name: 'CustomizedMetricSpecification')
|
89
|
+
DefaultInstanceWarmup = Shapes::IntegerShape.new(name: 'DefaultInstanceWarmup')
|
89
90
|
DeleteAutoScalingGroupType = Shapes::StructureShape.new(name: 'DeleteAutoScalingGroupType')
|
90
91
|
DeleteLifecycleHookAnswer = Shapes::StructureShape.new(name: 'DeleteLifecycleHookAnswer')
|
91
92
|
DeleteLifecycleHookType = Shapes::StructureShape.new(name: 'DeleteLifecycleHookType')
|
@@ -171,6 +172,7 @@ module Aws::AutoScaling
|
|
171
172
|
InstanceRefreshWarmPoolProgress = Shapes::StructureShape.new(name: 'InstanceRefreshWarmPoolProgress')
|
172
173
|
InstanceRefreshes = Shapes::ListShape.new(name: 'InstanceRefreshes')
|
173
174
|
InstanceRequirements = Shapes::StructureShape.new(name: 'InstanceRequirements')
|
175
|
+
InstanceReusePolicy = Shapes::StructureShape.new(name: 'InstanceReusePolicy')
|
174
176
|
Instances = Shapes::ListShape.new(name: 'Instances')
|
175
177
|
InstancesDistribution = Shapes::StructureShape.new(name: 'InstancesDistribution')
|
176
178
|
InstancesToUpdate = Shapes::IntegerShape.new(name: 'InstancesToUpdate')
|
@@ -298,6 +300,7 @@ module Aws::AutoScaling
|
|
298
300
|
ResourceInUseFault = Shapes::StructureShape.new(name: 'ResourceInUseFault')
|
299
301
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
300
302
|
ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
|
303
|
+
ReuseOnScaleIn = Shapes::BooleanShape.new(name: 'ReuseOnScaleIn')
|
301
304
|
ScalingActivityInProgressFault = Shapes::StructureShape.new(name: 'ScalingActivityInProgressFault')
|
302
305
|
ScalingActivityStatusCode = Shapes::StringShape.new(name: 'ScalingActivityStatusCode')
|
303
306
|
ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
|
@@ -465,6 +468,7 @@ module Aws::AutoScaling
|
|
465
468
|
AutoScalingGroup.add_member(:warm_pool_size, Shapes::ShapeRef.new(shape: WarmPoolSize, location_name: "WarmPoolSize"))
|
466
469
|
AutoScalingGroup.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
|
467
470
|
AutoScalingGroup.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
|
471
|
+
AutoScalingGroup.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
|
468
472
|
AutoScalingGroup.struct_class = Types::AutoScalingGroup
|
469
473
|
|
470
474
|
AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
|
@@ -579,6 +583,7 @@ module Aws::AutoScaling
|
|
579
583
|
CreateAutoScalingGroupType.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
|
580
584
|
CreateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
|
581
585
|
CreateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
|
586
|
+
CreateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
|
582
587
|
CreateAutoScalingGroupType.struct_class = Types::CreateAutoScalingGroupType
|
583
588
|
|
584
589
|
CreateLaunchConfigurationType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
|
@@ -925,6 +930,9 @@ module Aws::AutoScaling
|
|
925
930
|
InstanceRequirements.add_member(:accelerator_total_memory_mi_b, Shapes::ShapeRef.new(shape: AcceleratorTotalMemoryMiBRequest, location_name: "AcceleratorTotalMemoryMiB"))
|
926
931
|
InstanceRequirements.struct_class = Types::InstanceRequirements
|
927
932
|
|
933
|
+
InstanceReusePolicy.add_member(:reuse_on_scale_in, Shapes::ShapeRef.new(shape: ReuseOnScaleIn, location_name: "ReuseOnScaleIn"))
|
934
|
+
InstanceReusePolicy.struct_class = Types::InstanceReusePolicy
|
935
|
+
|
928
936
|
Instances.member = Shapes::ShapeRef.new(shape: Instance)
|
929
937
|
|
930
938
|
InstancesDistribution.add_member(:on_demand_allocation_strategy, Shapes::ShapeRef.new(shape: XmlString, location_name: "OnDemandAllocationStrategy"))
|
@@ -1225,6 +1233,7 @@ module Aws::AutoScaling
|
|
1225
1233
|
PutWarmPoolType.add_member(:max_group_prepared_capacity, Shapes::ShapeRef.new(shape: MaxGroupPreparedCapacity, location_name: "MaxGroupPreparedCapacity"))
|
1226
1234
|
PutWarmPoolType.add_member(:min_size, Shapes::ShapeRef.new(shape: WarmPoolMinSize, location_name: "MinSize"))
|
1227
1235
|
PutWarmPoolType.add_member(:pool_state, Shapes::ShapeRef.new(shape: WarmPoolState, location_name: "PoolState"))
|
1236
|
+
PutWarmPoolType.add_member(:instance_reuse_policy, Shapes::ShapeRef.new(shape: InstanceReusePolicy, location_name: "InstanceReusePolicy"))
|
1228
1237
|
PutWarmPoolType.struct_class = Types::PutWarmPoolType
|
1229
1238
|
|
1230
1239
|
RecordLifecycleActionHeartbeatAnswer.struct_class = Types::RecordLifecycleActionHeartbeatAnswer
|
@@ -1412,6 +1421,7 @@ module Aws::AutoScaling
|
|
1412
1421
|
UpdateAutoScalingGroupType.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
|
1413
1422
|
UpdateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
|
1414
1423
|
UpdateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
|
1424
|
+
UpdateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
|
1415
1425
|
UpdateAutoScalingGroupType.struct_class = Types::UpdateAutoScalingGroupType
|
1416
1426
|
|
1417
1427
|
VCpuCountRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, required: true, location_name: "Min"))
|
@@ -1424,6 +1434,7 @@ module Aws::AutoScaling
|
|
1424
1434
|
WarmPoolConfiguration.add_member(:min_size, Shapes::ShapeRef.new(shape: WarmPoolMinSize, location_name: "MinSize"))
|
1425
1435
|
WarmPoolConfiguration.add_member(:pool_state, Shapes::ShapeRef.new(shape: WarmPoolState, location_name: "PoolState"))
|
1426
1436
|
WarmPoolConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: WarmPoolStatus, location_name: "Status"))
|
1437
|
+
WarmPoolConfiguration.add_member(:instance_reuse_policy, Shapes::ShapeRef.new(shape: InstanceReusePolicy, location_name: "InstanceReusePolicy"))
|
1427
1438
|
WarmPoolConfiguration.struct_class = Types::WarmPoolConfiguration
|
1428
1439
|
|
1429
1440
|
|
@@ -78,31 +78,21 @@ module Aws::AutoScaling
|
|
78
78
|
data[:security_groups]
|
79
79
|
end
|
80
80
|
|
81
|
-
#
|
82
|
-
#
|
83
|
-
# Guide for Linux Instances* and [Linking EC2-Classic instances to a
|
84
|
-
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
85
|
-
#
|
86
|
-
#
|
81
|
+
# *EC2-Classic retires on August 15, 2022. This parameter is not
|
82
|
+
# supported after that date.*
|
87
83
|
#
|
88
|
-
#
|
89
|
-
#
|
84
|
+
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
85
|
+
# to.
|
90
86
|
# @return [String]
|
91
87
|
def classic_link_vpc_id
|
92
88
|
data[:classic_link_vpc_id]
|
93
89
|
end
|
94
90
|
|
91
|
+
# *EC2-Classic retires on August 15, 2022. This parameter is not
|
92
|
+
# supported after that date.*
|
93
|
+
#
|
95
94
|
# The IDs of one or more security groups for the VPC specified in
|
96
95
|
# `ClassicLinkVPCId`.
|
97
|
-
#
|
98
|
-
# For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
99
|
-
# Guide for Linux Instances* and [Linking EC2-Classic instances to a
|
100
|
-
# VPC][2] in the *Amazon EC2 Auto Scaling User Guide*.
|
101
|
-
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html
|
105
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink
|
106
96
|
# @return [Array<String>]
|
107
97
|
def classic_link_vpc_security_groups
|
108
98
|
data[:classic_link_vpc_security_groups]
|
@@ -64,7 +64,8 @@ module Aws::AutoScaling
|
|
64
64
|
end
|
65
65
|
|
66
66
|
# The ARN of the IAM role that allows the Auto Scaling group to publish
|
67
|
-
# to the specified notification target
|
67
|
+
# to the specified notification target (an Amazon SNS topic or an Amazon
|
68
|
+
# SQS queue).
|
68
69
|
# @return [String]
|
69
70
|
def role_arn
|
70
71
|
data[:role_arn]
|
@@ -86,10 +87,9 @@ module Aws::AutoScaling
|
|
86
87
|
data[:heartbeat_timeout]
|
87
88
|
end
|
88
89
|
|
89
|
-
# The maximum time, in seconds, that an instance can remain in a
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# smaller.
|
90
|
+
# The maximum time, in seconds, that an instance can remain in a wait
|
91
|
+
# state. The maximum is 172800 seconds (48 hours) or 100 times
|
92
|
+
# `HeartbeatTimeout`, whichever is smaller.
|
93
93
|
# @return [Integer]
|
94
94
|
def global_timeout
|
95
95
|
data[:global_timeout]
|
@@ -305,11 +305,11 @@ module Aws::AutoScaling
|
|
305
305
|
# hooks.
|
306
306
|
# @option options [String] :role_arn
|
307
307
|
# The ARN of the IAM role that allows the Auto Scaling group to publish
|
308
|
-
# to the specified notification target
|
309
|
-
# or an Amazon SQS queue.
|
308
|
+
# to the specified notification target.
|
310
309
|
#
|
311
|
-
#
|
312
|
-
# hooks
|
310
|
+
# Valid only if the notification target is an Amazon SNS topic or an
|
311
|
+
# Amazon SQS queue. Required for new lifecycle hooks, but optional when
|
312
|
+
# updating existing hooks.
|
313
313
|
# @option options [String] :notification_target_arn
|
314
314
|
# The ARN of the notification target that Amazon EC2 Auto Scaling uses
|
315
315
|
# to notify you when an instance is in the transition state for the
|
@@ -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
|
@@ -232,13 +233,15 @@ 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
|
@@ -276,24 +279,31 @@ module Aws::AutoScaling
|
|
276
279
|
#
|
277
280
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html
|
278
281
|
# @option options [Integer] :health_check_grace_period
|
282
|
+
# **
|
283
|
+
#
|
279
284
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
280
285
|
# 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
|
-
#
|
286
|
+
# into service and marking it unhealthy due to a failed Elastic Load
|
287
|
+
# Balancing or custom health check. This is useful if your instances do
|
288
|
+
# not immediately pass these health checks after they enter the
|
289
|
+
# `InService` state. For more information, see [Health check grace
|
290
|
+
# period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
284
291
|
#
|
285
|
-
#
|
292
|
+
# Default: `0` seconds
|
286
293
|
#
|
287
294
|
#
|
288
295
|
#
|
289
296
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
290
297
|
# @option options [String] :placement_group
|
291
298
|
# The name of an existing placement group into which to launch your
|
292
|
-
# instances
|
293
|
-
#
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
299
|
+
# instances. For more information, see [Placement groups][1] in the
|
300
|
+
# *Amazon EC2 User Guide for Linux Instances*.
|
301
|
+
#
|
302
|
+
# <note markdown="1"> A *cluster* placement group is a logical grouping of instances within
|
303
|
+
# a single Availability Zone. You cannot specify multiple Availability
|
304
|
+
# Zones and a cluster placement group.
|
305
|
+
#
|
306
|
+
# </note>
|
297
307
|
#
|
298
308
|
#
|
299
309
|
#
|
@@ -394,6 +404,31 @@ module Aws::AutoScaling
|
|
394
404
|
#
|
395
405
|
#
|
396
406
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
|
407
|
+
# @option options [Integer] :default_instance_warmup
|
408
|
+
# The amount of time, in seconds, until a newly launched instance can
|
409
|
+
# contribute to the Amazon CloudWatch metrics. This delay lets an
|
410
|
+
# instance finish initializing before Amazon EC2 Auto Scaling aggregates
|
411
|
+
# instance metrics, resulting in more reliable usage data. Set this
|
412
|
+
# value equal to the amount of time that it takes for resource
|
413
|
+
# consumption to become stable after an instance reaches the `InService`
|
414
|
+
# state. For more information, see [Set the default instance warmup for
|
415
|
+
# an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
416
|
+
#
|
417
|
+
# To manage your warm-up settings at the group level, we recommend that
|
418
|
+
# you set the default instance warmup, *even if its value is set to 0
|
419
|
+
# seconds*. This also optimizes the performance of scaling policies that
|
420
|
+
# scale continuously, such as target tracking and step scaling policies.
|
421
|
+
#
|
422
|
+
# If you need to remove a value that you previously set, include the
|
423
|
+
# property but specify `-1` for the value. However, we strongly
|
424
|
+
# recommend keeping the default instance warmup enabled by specifying a
|
425
|
+
# minimum value of `0`.
|
426
|
+
#
|
427
|
+
# Default: None
|
428
|
+
#
|
429
|
+
#
|
430
|
+
#
|
431
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
397
432
|
# @return [AutoScalingGroup]
|
398
433
|
def create_group(options = {})
|
399
434
|
@client.create_auto_scaling_group(options)
|
@@ -485,24 +520,23 @@ module Aws::AutoScaling
|
|
485
520
|
# [1]: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html
|
486
521
|
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html
|
487
522
|
# @option options [String] :classic_link_vpc_id
|
523
|
+
# *EC2-Classic retires on August 15, 2022. This parameter is not
|
524
|
+
# supported after that date.*
|
525
|
+
#
|
488
526
|
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
489
527
|
# 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.
|
528
|
+
# Guide for Linux Instances*.
|
495
529
|
#
|
496
530
|
#
|
497
531
|
#
|
498
532
|
# [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
533
|
# @option options [Array<String>] :classic_link_vpc_security_groups
|
534
|
+
# *EC2-Classic retires on August 15, 2022. This parameter is not
|
535
|
+
# supported after that date.*
|
536
|
+
#
|
501
537
|
# The IDs of one or more security groups for the specified
|
502
538
|
# ClassicLink-enabled VPC. For more information, see [ClassicLink][1] in
|
503
|
-
# the *Amazon EC2 User Guide for Linux Instances
|
504
|
-
# EC2-Classic instances to a VPC][2] in the *Amazon EC2 Auto Scaling
|
505
|
-
# User Guide*.
|
539
|
+
# the *Amazon EC2 User Guide for Linux Instances*.
|
506
540
|
#
|
507
541
|
# If you specify the `ClassicLinkVPCId` parameter, you must specify this
|
508
542
|
# parameter.
|
@@ -510,7 +544,6 @@ module Aws::AutoScaling
|
|
510
544
|
#
|
511
545
|
#
|
512
546
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html
|
513
|
-
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-ClassicLink
|
514
547
|
# @option options [String] :user_data
|
515
548
|
# The user data to make available to the launched EC2 instances. For
|
516
549
|
# more information, see [Instance metadata and user data][1] (Linux) and
|