aws-sdk-autoscaling 1.77.0 → 1.78.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +1 -1
- data/lib/aws-sdk-autoscaling/client.rb +92 -71
- data/lib/aws-sdk-autoscaling/client_api.rb +7 -0
- data/lib/aws-sdk-autoscaling/lifecycle_hook.rb +6 -5
- data/lib/aws-sdk-autoscaling/resource.rb +1 -1
- data/lib/aws-sdk-autoscaling/types.rb +98 -32
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1297d3ab96d99067b36582bccd3fc98b407006a10892b0e8a7480666e02d1ec8
|
4
|
+
data.tar.gz: 8c43e827ad2ca1a5ec99bec764a5631c939528dce67dd9db8418d64c9b02ec4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 852f0d4766c849e434778eb7b965800de831c059c8e9a83db11aa30774db9a68bfb8ace9e9e89ded658249486b40a050a9f8af139a0346d454be1705bbac28c1
|
7
|
+
data.tar.gz: 2e65494c870d2e6b1deb1f97f7745bac6dc602a026eb040fdaffe74d7d848b2577b16a05bdaff66cceda7fa39249f6eadd3fb475fdcfc86e9310169e229e02d5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.78.0 (2022-02-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - You can now hibernate instances in a warm pool to stop instances without deleting their RAM contents. You can now also return instances to the warm pool on scale in, instead of always terminating capacity that you will need later.
|
8
|
+
|
4
9
|
1.77.0 (2022-02-03)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.78.0
|
@@ -1239,7 +1239,7 @@ module Aws::AutoScaling
|
|
1239
1239
|
# The default value is `0`. For more information, see [Health check
|
1240
1240
|
# grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1241
1241
|
#
|
1242
|
-
#
|
1242
|
+
# Required if you are adding an `ELB` health check.
|
1243
1243
|
#
|
1244
1244
|
#
|
1245
1245
|
#
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
32
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
@@ -75,6 +76,7 @@ module Aws::AutoScaling
|
|
75
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
76
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
77
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
78
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
79
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
80
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
@@ -678,22 +680,26 @@ module Aws::AutoScaling
|
|
678
680
|
# This step is a part of the procedure for adding a lifecycle hook to an
|
679
681
|
# Auto Scaling group:
|
680
682
|
#
|
681
|
-
# 1. (Optional) Create a
|
682
|
-
#
|
683
|
-
#
|
683
|
+
# 1. (Optional) Create a launch template or launch configuration with a
|
684
|
+
# user data script that runs while an instance is in a wait state
|
685
|
+
# due to a lifecycle hook.
|
684
686
|
#
|
685
|
-
# 2. (Optional) Create a
|
687
|
+
# 2. (Optional) Create a Lambda function and a rule that allows Amazon
|
688
|
+
# EventBridge to invoke your Lambda function when an instance is put
|
689
|
+
# into a wait state due to a lifecycle hook.
|
690
|
+
#
|
691
|
+
# 3. (Optional) Create a notification target and an IAM role. The
|
686
692
|
# target can be either an Amazon SQS queue or an Amazon SNS topic.
|
687
693
|
# The role allows Amazon EC2 Auto Scaling to publish lifecycle
|
688
694
|
# notifications to the target.
|
689
695
|
#
|
690
|
-
#
|
696
|
+
# 4. Create the lifecycle hook. Specify whether the hook is used when
|
691
697
|
# the instances launch or terminate.
|
692
698
|
#
|
693
|
-
#
|
694
|
-
# keep the instance in a
|
699
|
+
# 5. If you need more time, record the lifecycle action heartbeat to
|
700
|
+
# keep the instance in a wait state.
|
695
701
|
#
|
696
|
-
#
|
702
|
+
# 6. **If you finish before the timeout period ends, send a callback by
|
697
703
|
# using the CompleteLifecycleAction API call.**
|
698
704
|
#
|
699
705
|
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
@@ -921,7 +927,7 @@ module Aws::AutoScaling
|
|
921
927
|
# The default value is `0`. For more information, see [Health check
|
922
928
|
# grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
923
929
|
#
|
924
|
-
#
|
930
|
+
# Required if you are adding an `ELB` health check.
|
925
931
|
#
|
926
932
|
#
|
927
933
|
#
|
@@ -1055,7 +1061,7 @@ module Aws::AutoScaling
|
|
1055
1061
|
# resp = client.create_auto_scaling_group({
|
1056
1062
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
1057
1063
|
# launch_template: {
|
1058
|
-
#
|
1064
|
+
# launch_template_name: "my-template-for-auto-scaling",
|
1059
1065
|
# version: "$Latest",
|
1060
1066
|
# },
|
1061
1067
|
# max_instance_lifetime: 2592000,
|
@@ -1073,8 +1079,8 @@ module Aws::AutoScaling
|
|
1073
1079
|
# health_check_grace_period: 300,
|
1074
1080
|
# health_check_type: "ELB",
|
1075
1081
|
# launch_template: {
|
1076
|
-
#
|
1077
|
-
# version: "$
|
1082
|
+
# launch_template_name: "my-template-for-auto-scaling",
|
1083
|
+
# version: "$Latest",
|
1078
1084
|
# },
|
1079
1085
|
# max_size: 3,
|
1080
1086
|
# min_size: 1,
|
@@ -2284,7 +2290,7 @@ module Aws::AutoScaling
|
|
2284
2290
|
# resp.auto_scaling_groups[0].instances[0].instance_id #=> String
|
2285
2291
|
# resp.auto_scaling_groups[0].instances[0].instance_type #=> String
|
2286
2292
|
# resp.auto_scaling_groups[0].instances[0].availability_zone #=> String
|
2287
|
-
# resp.auto_scaling_groups[0].instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running"
|
2293
|
+
# resp.auto_scaling_groups[0].instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running", "Warmed:Hibernated"
|
2288
2294
|
# resp.auto_scaling_groups[0].instances[0].health_status #=> String
|
2289
2295
|
# resp.auto_scaling_groups[0].instances[0].launch_configuration_name #=> String
|
2290
2296
|
# resp.auto_scaling_groups[0].instances[0].launch_template.launch_template_id #=> String
|
@@ -2316,8 +2322,9 @@ module Aws::AutoScaling
|
|
2316
2322
|
# resp.auto_scaling_groups[0].capacity_rebalance #=> Boolean
|
2317
2323
|
# resp.auto_scaling_groups[0].warm_pool_configuration.max_group_prepared_capacity #=> Integer
|
2318
2324
|
# resp.auto_scaling_groups[0].warm_pool_configuration.min_size #=> Integer
|
2319
|
-
# resp.auto_scaling_groups[0].warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running"
|
2325
|
+
# resp.auto_scaling_groups[0].warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running", "Hibernated"
|
2320
2326
|
# resp.auto_scaling_groups[0].warm_pool_configuration.status #=> String, one of "PendingDelete"
|
2327
|
+
# resp.auto_scaling_groups[0].warm_pool_configuration.instance_reuse_policy.reuse_on_scale_in #=> Boolean
|
2321
2328
|
# resp.auto_scaling_groups[0].warm_pool_size #=> Integer
|
2322
2329
|
# resp.auto_scaling_groups[0].context #=> String
|
2323
2330
|
# resp.auto_scaling_groups[0].desired_capacity_type #=> String
|
@@ -3831,13 +3838,14 @@ module Aws::AutoScaling
|
|
3831
3838
|
#
|
3832
3839
|
# resp.warm_pool_configuration.max_group_prepared_capacity #=> Integer
|
3833
3840
|
# resp.warm_pool_configuration.min_size #=> Integer
|
3834
|
-
# resp.warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running"
|
3841
|
+
# resp.warm_pool_configuration.pool_state #=> String, one of "Stopped", "Running", "Hibernated"
|
3835
3842
|
# resp.warm_pool_configuration.status #=> String, one of "PendingDelete"
|
3843
|
+
# resp.warm_pool_configuration.instance_reuse_policy.reuse_on_scale_in #=> Boolean
|
3836
3844
|
# resp.instances #=> Array
|
3837
3845
|
# resp.instances[0].instance_id #=> String
|
3838
3846
|
# resp.instances[0].instance_type #=> String
|
3839
3847
|
# resp.instances[0].availability_zone #=> String
|
3840
|
-
# resp.instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running"
|
3848
|
+
# resp.instances[0].lifecycle_state #=> String, one of "Pending", "Pending:Wait", "Pending:Proceed", "Quarantined", "InService", "Terminating", "Terminating:Wait", "Terminating:Proceed", "Terminated", "Detaching", "Detached", "EnteringStandby", "Standby", "Warmed:Pending", "Warmed:Pending:Wait", "Warmed:Pending:Proceed", "Warmed:Terminating", "Warmed:Terminating:Wait", "Warmed:Terminating:Proceed", "Warmed:Terminated", "Warmed:Stopped", "Warmed:Running", "Warmed:Hibernated"
|
3841
3849
|
# resp.instances[0].health_status #=> String
|
3842
3850
|
# resp.instances[0].launch_configuration_name #=> String
|
3843
3851
|
# resp.instances[0].launch_template.launch_template_id #=> String
|
@@ -4588,30 +4596,34 @@ module Aws::AutoScaling
|
|
4588
4596
|
# Creates or updates a lifecycle hook for the specified Auto Scaling
|
4589
4597
|
# group.
|
4590
4598
|
#
|
4591
|
-
#
|
4592
|
-
#
|
4593
|
-
#
|
4599
|
+
# Lifecycle hooks let you create solutions that are aware of events in
|
4600
|
+
# the Auto Scaling instance lifecycle, and then perform a custom action
|
4601
|
+
# on instances when the corresponding lifecycle event occurs.
|
4594
4602
|
#
|
4595
4603
|
# This step is a part of the procedure for adding a lifecycle hook to an
|
4596
4604
|
# Auto Scaling group:
|
4597
4605
|
#
|
4598
|
-
# 1. (Optional) Create a
|
4599
|
-
#
|
4600
|
-
#
|
4606
|
+
# 1. (Optional) Create a launch template or launch configuration with a
|
4607
|
+
# user data script that runs while an instance is in a wait state
|
4608
|
+
# due to a lifecycle hook.
|
4601
4609
|
#
|
4602
|
-
# 2. (Optional) Create a
|
4610
|
+
# 2. (Optional) Create a Lambda function and a rule that allows Amazon
|
4611
|
+
# EventBridge to invoke your Lambda function when an instance is put
|
4612
|
+
# into a wait state due to a lifecycle hook.
|
4613
|
+
#
|
4614
|
+
# 3. (Optional) Create a notification target and an IAM role. The
|
4603
4615
|
# target can be either an Amazon SQS queue or an Amazon SNS topic.
|
4604
4616
|
# The role allows Amazon EC2 Auto Scaling to publish lifecycle
|
4605
4617
|
# notifications to the target.
|
4606
4618
|
#
|
4607
|
-
#
|
4619
|
+
# 4. **Create the lifecycle hook. Specify whether the hook is used when
|
4608
4620
|
# the instances launch or terminate.**
|
4609
4621
|
#
|
4610
|
-
#
|
4611
|
-
# keep the instance in a
|
4622
|
+
# 5. If you need more time, record the lifecycle action heartbeat to
|
4623
|
+
# keep the instance in a wait state using the
|
4612
4624
|
# RecordLifecycleActionHeartbeat API call.
|
4613
4625
|
#
|
4614
|
-
#
|
4626
|
+
# 6. If you finish before the timeout period ends, send a callback by
|
4615
4627
|
# using the CompleteLifecycleAction API call.
|
4616
4628
|
#
|
4617
4629
|
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
@@ -4648,11 +4660,11 @@ module Aws::AutoScaling
|
|
4648
4660
|
#
|
4649
4661
|
# @option params [String] :role_arn
|
4650
4662
|
# The ARN of the IAM role that allows the Auto Scaling group to publish
|
4651
|
-
# to the specified notification target
|
4652
|
-
# or an Amazon SQS queue.
|
4663
|
+
# to the specified notification target.
|
4653
4664
|
#
|
4654
|
-
#
|
4655
|
-
# hooks
|
4665
|
+
# Valid only if the notification target is an Amazon SNS topic or an
|
4666
|
+
# Amazon SQS queue. Required for new lifecycle hooks, but optional when
|
4667
|
+
# updating existing hooks.
|
4656
4668
|
#
|
4657
4669
|
# @option params [String] :notification_target_arn
|
4658
4670
|
# The ARN of the notification target that Amazon EC2 Auto Scaling uses
|
@@ -4693,16 +4705,16 @@ module Aws::AutoScaling
|
|
4693
4705
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4694
4706
|
#
|
4695
4707
|
#
|
4696
|
-
# @example Example: To create a lifecycle hook
|
4708
|
+
# @example Example: To create a launch lifecycle hook
|
4697
4709
|
#
|
4698
|
-
# # This example creates a lifecycle hook.
|
4710
|
+
# # This example creates a lifecycle hook for instance launch.
|
4699
4711
|
#
|
4700
4712
|
# resp = client.put_lifecycle_hook({
|
4701
4713
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
4702
|
-
#
|
4714
|
+
# default_result: "CONTINUE",
|
4715
|
+
# heartbeat_timeout: 300,
|
4716
|
+
# lifecycle_hook_name: "my-launch-lifecycle-hook",
|
4703
4717
|
# lifecycle_transition: "autoscaling:EC2_INSTANCE_LAUNCHING",
|
4704
|
-
# notification_target_arn: "arn:aws:sns:us-west-2:123456789012:my-sns-topic --role-arn",
|
4705
|
-
# role_arn: "arn:aws:iam::123456789012:role/my-auto-scaling-role",
|
4706
4718
|
# })
|
4707
4719
|
#
|
4708
4720
|
# @example Request syntax with placeholder values
|
@@ -5336,17 +5348,25 @@ module Aws::AutoScaling
|
|
5336
5348
|
# Sets the instance state to transition to after the lifecycle actions
|
5337
5349
|
# are complete. Default is `Stopped`.
|
5338
5350
|
#
|
5351
|
+
# @option params [Types::InstanceReusePolicy] :instance_reuse_policy
|
5352
|
+
# Indicates whether instances in the Auto Scaling group can be returned
|
5353
|
+
# to the warm pool on scale in. The default is to terminate instances in
|
5354
|
+
# the Auto Scaling group when the group scales in.
|
5355
|
+
#
|
5339
5356
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
5340
5357
|
#
|
5341
5358
|
#
|
5342
|
-
# @example Example: To
|
5359
|
+
# @example Example: To create a warm pool for an Auto Scaling group
|
5343
5360
|
#
|
5344
|
-
# # This example
|
5361
|
+
# # This example creates a warm pool for the specified Auto Scaling group.
|
5345
5362
|
#
|
5346
5363
|
# resp = client.put_warm_pool({
|
5347
5364
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
5365
|
+
# instance_reuse_policy: {
|
5366
|
+
# reuse_on_scale_in: true,
|
5367
|
+
# },
|
5348
5368
|
# min_size: 30,
|
5349
|
-
# pool_state: "
|
5369
|
+
# pool_state: "Hibernated",
|
5350
5370
|
# })
|
5351
5371
|
#
|
5352
5372
|
# @example Request syntax with placeholder values
|
@@ -5355,7 +5375,10 @@ module Aws::AutoScaling
|
|
5355
5375
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
5356
5376
|
# max_group_prepared_capacity: 1,
|
5357
5377
|
# min_size: 1,
|
5358
|
-
# pool_state: "Stopped", # accepts Stopped, Running
|
5378
|
+
# pool_state: "Stopped", # accepts Stopped, Running, Hibernated
|
5379
|
+
# instance_reuse_policy: {
|
5380
|
+
# reuse_on_scale_in: false,
|
5381
|
+
# },
|
5359
5382
|
# })
|
5360
5383
|
#
|
5361
5384
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool AWS API Documentation
|
@@ -5374,22 +5397,26 @@ module Aws::AutoScaling
|
|
5374
5397
|
# This step is a part of the procedure for adding a lifecycle hook to an
|
5375
5398
|
# Auto Scaling group:
|
5376
5399
|
#
|
5377
|
-
# 1. (Optional) Create a
|
5378
|
-
#
|
5379
|
-
#
|
5400
|
+
# 1. (Optional) Create a launch template or launch configuration with a
|
5401
|
+
# user data script that runs while an instance is in a wait state
|
5402
|
+
# due to a lifecycle hook.
|
5403
|
+
#
|
5404
|
+
# 2. (Optional) Create a Lambda function and a rule that allows Amazon
|
5405
|
+
# EventBridge to invoke your Lambda function when an instance is put
|
5406
|
+
# into a wait state due to a lifecycle hook.
|
5380
5407
|
#
|
5381
|
-
#
|
5408
|
+
# 3. (Optional) Create a notification target and an IAM role. The
|
5382
5409
|
# target can be either an Amazon SQS queue or an Amazon SNS topic.
|
5383
5410
|
# The role allows Amazon EC2 Auto Scaling to publish lifecycle
|
5384
5411
|
# notifications to the target.
|
5385
5412
|
#
|
5386
|
-
#
|
5413
|
+
# 4. Create the lifecycle hook. Specify whether the hook is used when
|
5387
5414
|
# the instances launch or terminate.
|
5388
5415
|
#
|
5389
|
-
#
|
5390
|
-
# keep the instance in a
|
5416
|
+
# 5. **If you need more time, record the lifecycle action heartbeat to
|
5417
|
+
# keep the instance in a wait state.**
|
5391
5418
|
#
|
5392
|
-
#
|
5419
|
+
# 6. If you finish before the timeout period ends, send a callback by
|
5393
5420
|
# using the CompleteLifecycleAction API call.
|
5394
5421
|
#
|
5395
5422
|
# For more information, see [Amazon EC2 Auto Scaling lifecycle hooks][1]
|
@@ -5770,9 +5797,16 @@ module Aws::AutoScaling
|
|
5770
5797
|
#
|
5771
5798
|
# resp = client.start_instance_refresh({
|
5772
5799
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
5800
|
+
# desired_configuration: {
|
5801
|
+
# launch_template: {
|
5802
|
+
# launch_template_name: "my-template-for-auto-scaling",
|
5803
|
+
# version: "$Latest",
|
5804
|
+
# },
|
5805
|
+
# },
|
5773
5806
|
# preferences: {
|
5774
5807
|
# instance_warmup: 400,
|
5775
|
-
# min_healthy_percentage:
|
5808
|
+
# min_healthy_percentage: 90,
|
5809
|
+
# skip_matching: true,
|
5776
5810
|
# },
|
5777
5811
|
# })
|
5778
5812
|
#
|
@@ -6160,7 +6194,7 @@ module Aws::AutoScaling
|
|
6160
6194
|
# The default value is `0`. For more information, see [Health check
|
6161
6195
|
# grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
6162
6196
|
#
|
6163
|
-
#
|
6197
|
+
# Required if you are adding an `ELB` health check.
|
6164
6198
|
#
|
6165
6199
|
#
|
6166
6200
|
#
|
@@ -6259,31 +6293,18 @@ module Aws::AutoScaling
|
|
6259
6293
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
6260
6294
|
#
|
6261
6295
|
#
|
6262
|
-
# @example Example: To update
|
6263
|
-
#
|
6264
|
-
# # This example updates the launch configuration of the specified Auto Scaling group.
|
6296
|
+
# @example Example: To update an Auto Scaling group
|
6265
6297
|
#
|
6266
|
-
#
|
6267
|
-
# auto_scaling_group_name: "my-auto-scaling-group",
|
6268
|
-
# launch_configuration_name: "new-launch-config",
|
6269
|
-
# })
|
6270
|
-
#
|
6271
|
-
# @example Example: To update the minimum and maximum size
|
6272
|
-
#
|
6273
|
-
# # This example updates the minimum size and maximum size of the specified Auto Scaling group.
|
6298
|
+
# # This example updates multiple properties at the same time.
|
6274
6299
|
#
|
6275
6300
|
# resp = client.update_auto_scaling_group({
|
6276
6301
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
6277
|
-
#
|
6302
|
+
# launch_template: {
|
6303
|
+
# launch_template_name: "my-template-for-auto-scaling",
|
6304
|
+
# version: "2",
|
6305
|
+
# },
|
6306
|
+
# max_size: 5,
|
6278
6307
|
# min_size: 1,
|
6279
|
-
# })
|
6280
|
-
#
|
6281
|
-
# @example Example: To enable instance protection
|
6282
|
-
#
|
6283
|
-
# # This example enables instance protection for the specified Auto Scaling group.
|
6284
|
-
#
|
6285
|
-
# resp = client.update_auto_scaling_group({
|
6286
|
-
# auto_scaling_group_name: "my-auto-scaling-group",
|
6287
6308
|
# new_instances_protected_from_scale_in: true,
|
6288
6309
|
# })
|
6289
6310
|
#
|
@@ -6412,7 +6433,7 @@ module Aws::AutoScaling
|
|
6412
6433
|
params: params,
|
6413
6434
|
config: config)
|
6414
6435
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
6415
|
-
context[:gem_version] = '1.
|
6436
|
+
context[:gem_version] = '1.78.0'
|
6416
6437
|
Seahorse::Client::Request.new(handlers, context)
|
6417
6438
|
end
|
6418
6439
|
|
@@ -171,6 +171,7 @@ module Aws::AutoScaling
|
|
171
171
|
InstanceRefreshWarmPoolProgress = Shapes::StructureShape.new(name: 'InstanceRefreshWarmPoolProgress')
|
172
172
|
InstanceRefreshes = Shapes::ListShape.new(name: 'InstanceRefreshes')
|
173
173
|
InstanceRequirements = Shapes::StructureShape.new(name: 'InstanceRequirements')
|
174
|
+
InstanceReusePolicy = Shapes::StructureShape.new(name: 'InstanceReusePolicy')
|
174
175
|
Instances = Shapes::ListShape.new(name: 'Instances')
|
175
176
|
InstancesDistribution = Shapes::StructureShape.new(name: 'InstancesDistribution')
|
176
177
|
InstancesToUpdate = Shapes::IntegerShape.new(name: 'InstancesToUpdate')
|
@@ -298,6 +299,7 @@ module Aws::AutoScaling
|
|
298
299
|
ResourceInUseFault = Shapes::StructureShape.new(name: 'ResourceInUseFault')
|
299
300
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
300
301
|
ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
|
302
|
+
ReuseOnScaleIn = Shapes::BooleanShape.new(name: 'ReuseOnScaleIn')
|
301
303
|
ScalingActivityInProgressFault = Shapes::StructureShape.new(name: 'ScalingActivityInProgressFault')
|
302
304
|
ScalingActivityStatusCode = Shapes::StringShape.new(name: 'ScalingActivityStatusCode')
|
303
305
|
ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
|
@@ -925,6 +927,9 @@ module Aws::AutoScaling
|
|
925
927
|
InstanceRequirements.add_member(:accelerator_total_memory_mi_b, Shapes::ShapeRef.new(shape: AcceleratorTotalMemoryMiBRequest, location_name: "AcceleratorTotalMemoryMiB"))
|
926
928
|
InstanceRequirements.struct_class = Types::InstanceRequirements
|
927
929
|
|
930
|
+
InstanceReusePolicy.add_member(:reuse_on_scale_in, Shapes::ShapeRef.new(shape: ReuseOnScaleIn, location_name: "ReuseOnScaleIn"))
|
931
|
+
InstanceReusePolicy.struct_class = Types::InstanceReusePolicy
|
932
|
+
|
928
933
|
Instances.member = Shapes::ShapeRef.new(shape: Instance)
|
929
934
|
|
930
935
|
InstancesDistribution.add_member(:on_demand_allocation_strategy, Shapes::ShapeRef.new(shape: XmlString, location_name: "OnDemandAllocationStrategy"))
|
@@ -1225,6 +1230,7 @@ module Aws::AutoScaling
|
|
1225
1230
|
PutWarmPoolType.add_member(:max_group_prepared_capacity, Shapes::ShapeRef.new(shape: MaxGroupPreparedCapacity, location_name: "MaxGroupPreparedCapacity"))
|
1226
1231
|
PutWarmPoolType.add_member(:min_size, Shapes::ShapeRef.new(shape: WarmPoolMinSize, location_name: "MinSize"))
|
1227
1232
|
PutWarmPoolType.add_member(:pool_state, Shapes::ShapeRef.new(shape: WarmPoolState, location_name: "PoolState"))
|
1233
|
+
PutWarmPoolType.add_member(:instance_reuse_policy, Shapes::ShapeRef.new(shape: InstanceReusePolicy, location_name: "InstanceReusePolicy"))
|
1228
1234
|
PutWarmPoolType.struct_class = Types::PutWarmPoolType
|
1229
1235
|
|
1230
1236
|
RecordLifecycleActionHeartbeatAnswer.struct_class = Types::RecordLifecycleActionHeartbeatAnswer
|
@@ -1424,6 +1430,7 @@ module Aws::AutoScaling
|
|
1424
1430
|
WarmPoolConfiguration.add_member(:min_size, Shapes::ShapeRef.new(shape: WarmPoolMinSize, location_name: "MinSize"))
|
1425
1431
|
WarmPoolConfiguration.add_member(:pool_state, Shapes::ShapeRef.new(shape: WarmPoolState, location_name: "PoolState"))
|
1426
1432
|
WarmPoolConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: WarmPoolStatus, location_name: "Status"))
|
1433
|
+
WarmPoolConfiguration.add_member(:instance_reuse_policy, Shapes::ShapeRef.new(shape: InstanceReusePolicy, location_name: "InstanceReusePolicy"))
|
1427
1434
|
WarmPoolConfiguration.struct_class = Types::WarmPoolConfiguration
|
1428
1435
|
|
1429
1436
|
|
@@ -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]
|
@@ -305,11 +306,11 @@ module Aws::AutoScaling
|
|
305
306
|
# hooks.
|
306
307
|
# @option options [String] :role_arn
|
307
308
|
# 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.
|
309
|
+
# to the specified notification target.
|
310
310
|
#
|
311
|
-
#
|
312
|
-
# hooks
|
311
|
+
# Valid only if the notification target is an Amazon SNS topic or an
|
312
|
+
# Amazon SQS queue. Required for new lifecycle hooks, but optional when
|
313
|
+
# updating existing hooks.
|
313
314
|
# @option options [String] :notification_target_arn
|
314
315
|
# The ARN of the notification target that Amazon EC2 Auto Scaling uses
|
315
316
|
# to notify you when an instance is in the transition state for the
|
@@ -282,7 +282,7 @@ module Aws::AutoScaling
|
|
282
282
|
# The default value is `0`. For more information, see [Health check
|
283
283
|
# grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
284
284
|
#
|
285
|
-
#
|
285
|
+
# Required if you are adding an `ELB` health check.
|
286
286
|
#
|
287
287
|
#
|
288
288
|
#
|
@@ -1259,7 +1259,7 @@ module Aws::AutoScaling
|
|
1259
1259
|
# The default value is `0`. For more information, see [Health check
|
1260
1260
|
# grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1261
1261
|
#
|
1262
|
-
#
|
1262
|
+
# Required if you are adding an `ELB` health check.
|
1263
1263
|
#
|
1264
1264
|
#
|
1265
1265
|
#
|
@@ -4098,6 +4098,10 @@ module Aws::AutoScaling
|
|
4098
4098
|
# To turn off price protection, specify a high value, such as
|
4099
4099
|
# `999999`.
|
4100
4100
|
#
|
4101
|
+
# If you set `DesiredCapacityType` to `vcpu` or `memory-mib`, the
|
4102
|
+
# price protection threshold is applied based on the per vCPU or per
|
4103
|
+
# memory price instead of the per instance price.
|
4104
|
+
#
|
4101
4105
|
# Default: `100`
|
4102
4106
|
# @return [Integer]
|
4103
4107
|
#
|
@@ -4112,6 +4116,10 @@ module Aws::AutoScaling
|
|
4112
4116
|
# To turn off price protection, specify a high value, such as
|
4113
4117
|
# `999999`.
|
4114
4118
|
#
|
4119
|
+
# If you set `DesiredCapacityType` to `vcpu` or `memory-mib`, the
|
4120
|
+
# price protection threshold is applied based on the per vCPU or per
|
4121
|
+
# memory price instead of the per instance price.
|
4122
|
+
#
|
4115
4123
|
# Default: `20`
|
4116
4124
|
# @return [Integer]
|
4117
4125
|
#
|
@@ -4288,6 +4296,35 @@ module Aws::AutoScaling
|
|
4288
4296
|
include Aws::Structure
|
4289
4297
|
end
|
4290
4298
|
|
4299
|
+
# Describes an instance reuse policy for a warm pool.
|
4300
|
+
#
|
4301
|
+
# For more information, see [Warm pools for Amazon EC2 Auto Scaling][1]
|
4302
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
4303
|
+
#
|
4304
|
+
#
|
4305
|
+
#
|
4306
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html
|
4307
|
+
#
|
4308
|
+
# @note When making an API call, you may pass InstanceReusePolicy
|
4309
|
+
# data as a hash:
|
4310
|
+
#
|
4311
|
+
# {
|
4312
|
+
# reuse_on_scale_in: false,
|
4313
|
+
# }
|
4314
|
+
#
|
4315
|
+
# @!attribute [rw] reuse_on_scale_in
|
4316
|
+
# Specifies whether instances in the Auto Scaling group can be
|
4317
|
+
# returned to the warm pool on scale in.
|
4318
|
+
# @return [Boolean]
|
4319
|
+
#
|
4320
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceReusePolicy AWS API Documentation
|
4321
|
+
#
|
4322
|
+
class InstanceReusePolicy < Struct.new(
|
4323
|
+
:reuse_on_scale_in)
|
4324
|
+
SENSITIVE = []
|
4325
|
+
include Aws::Structure
|
4326
|
+
end
|
4327
|
+
|
4291
4328
|
# Describes an instances distribution for an Auto Scaling group.
|
4292
4329
|
#
|
4293
4330
|
# @note When making an API call, you may pass InstancesDistribution
|
@@ -4893,23 +4930,23 @@ module Aws::AutoScaling
|
|
4893
4930
|
# remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only
|
4894
4931
|
# launch an instance with a `WeightedCapacity` of five units, the
|
4895
4932
|
# instance is launched, and the desired capacity is exceeded by three
|
4896
|
-
# units. For more information, see [
|
4897
|
-
# Auto Scaling][1] in the *Amazon EC2 Auto Scaling User
|
4898
|
-
# must be in the range of 1–999.
|
4933
|
+
# units. For more information, see [Configuring instance weighting for
|
4934
|
+
# Amazon EC2 Auto Scaling][1] in the *Amazon EC2 Auto Scaling User
|
4935
|
+
# Guide*. Value must be in the range of 1–999.
|
4899
4936
|
#
|
4900
4937
|
#
|
4901
4938
|
#
|
4902
|
-
# [1]: https://docs.aws.amazon.com/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html
|
4939
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html
|
4903
4940
|
# @return [String]
|
4904
4941
|
#
|
4905
4942
|
# @!attribute [rw] launch_template_specification
|
4906
|
-
# Provides
|
4907
|
-
#
|
4908
|
-
#
|
4909
|
-
#
|
4910
|
-
#
|
4911
|
-
#
|
4912
|
-
#
|
4943
|
+
# Provides a launch template for the specified instance type or
|
4944
|
+
# instance requirements. For example, some instance types might
|
4945
|
+
# require a launch template with a different AMI. If not provided,
|
4946
|
+
# Amazon EC2 Auto Scaling uses the launch template that's defined for
|
4947
|
+
# your mixed instances policy. For more information, see [Specifying a
|
4948
|
+
# different launch template for an instance type][1] in the *Amazon
|
4949
|
+
# EC2 Auto Scaling User Guide*.
|
4913
4950
|
#
|
4914
4951
|
#
|
4915
4952
|
#
|
@@ -5010,9 +5047,10 @@ module Aws::AutoScaling
|
|
5010
5047
|
include Aws::Structure
|
5011
5048
|
end
|
5012
5049
|
|
5013
|
-
# Describes a lifecycle hook
|
5014
|
-
# aware of events in the Auto Scaling instance lifecycle, and
|
5015
|
-
# perform a custom action when the corresponding
|
5050
|
+
# Describes a lifecycle hook. A lifecycle hook lets you create solutions
|
5051
|
+
# that are aware of events in the Auto Scaling instance lifecycle, and
|
5052
|
+
# then perform a custom action on instances when the corresponding
|
5053
|
+
# lifecycle event occurs.
|
5016
5054
|
#
|
5017
5055
|
# @!attribute [rw] lifecycle_hook_name
|
5018
5056
|
# The name of the lifecycle hook.
|
@@ -5040,7 +5078,8 @@ module Aws::AutoScaling
|
|
5040
5078
|
#
|
5041
5079
|
# @!attribute [rw] role_arn
|
5042
5080
|
# The ARN of the IAM role that allows the Auto Scaling group to
|
5043
|
-
# publish to the specified notification target
|
5081
|
+
# publish to the specified notification target (an Amazon SNS topic or
|
5082
|
+
# an Amazon SQS queue).
|
5044
5083
|
# @return [String]
|
5045
5084
|
#
|
5046
5085
|
# @!attribute [rw] notification_metadata
|
@@ -5151,8 +5190,11 @@ module Aws::AutoScaling
|
|
5151
5190
|
#
|
5152
5191
|
# @!attribute [rw] role_arn
|
5153
5192
|
# The ARN of the IAM role that allows the Auto Scaling group to
|
5154
|
-
# publish to the specified notification target
|
5155
|
-
#
|
5193
|
+
# publish to the specified notification target.
|
5194
|
+
#
|
5195
|
+
# Valid only if the notification target is an Amazon SNS topic or an
|
5196
|
+
# Amazon SQS queue. Required for new lifecycle hooks, but optional
|
5197
|
+
# when updating existing hooks.
|
5156
5198
|
# @return [String]
|
5157
5199
|
#
|
5158
5200
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LifecycleHookSpecification AWS API Documentation
|
@@ -5894,14 +5936,14 @@ module Aws::AutoScaling
|
|
5894
5936
|
# * `ASGAverageCPUUtilization` - Average CPU utilization of the Auto
|
5895
5937
|
# Scaling group.
|
5896
5938
|
#
|
5897
|
-
# * `ASGAverageNetworkIn` - Average number of bytes received
|
5898
|
-
#
|
5939
|
+
# * `ASGAverageNetworkIn` - Average number of bytes received (per
|
5940
|
+
# instance per minute) for the Auto Scaling group.
|
5899
5941
|
#
|
5900
|
-
# * `ASGAverageNetworkOut` - Average number of bytes sent out
|
5901
|
-
#
|
5942
|
+
# * `ASGAverageNetworkOut` - Average number of bytes sent out (per
|
5943
|
+
# instance per minute) for the Auto Scaling group.
|
5902
5944
|
#
|
5903
|
-
# * `ALBRequestCountPerTarget` -
|
5904
|
-
# target
|
5945
|
+
# * `ALBRequestCountPerTarget` - Average Application Load Balancer
|
5946
|
+
# request count (per target per minute) for your Auto Scaling group.
|
5905
5947
|
# @return [String]
|
5906
5948
|
#
|
5907
5949
|
# @!attribute [rw] resource_label
|
@@ -6714,11 +6756,11 @@ module Aws::AutoScaling
|
|
6714
6756
|
#
|
6715
6757
|
# @!attribute [rw] role_arn
|
6716
6758
|
# The ARN of the IAM role that allows the Auto Scaling group to
|
6717
|
-
# publish to the specified notification target
|
6718
|
-
# SNS topic or an Amazon SQS queue.
|
6759
|
+
# publish to the specified notification target.
|
6719
6760
|
#
|
6720
|
-
#
|
6721
|
-
#
|
6761
|
+
# Valid only if the notification target is an Amazon SNS topic or an
|
6762
|
+
# Amazon SQS queue. Required for new lifecycle hooks, but optional
|
6763
|
+
# when updating existing hooks.
|
6722
6764
|
# @return [String]
|
6723
6765
|
#
|
6724
6766
|
# @!attribute [rw] notification_target_arn
|
@@ -7258,7 +7300,10 @@ module Aws::AutoScaling
|
|
7258
7300
|
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
7259
7301
|
# max_group_prepared_capacity: 1,
|
7260
7302
|
# min_size: 1,
|
7261
|
-
# pool_state: "Stopped", # accepts Stopped, Running
|
7303
|
+
# pool_state: "Stopped", # accepts Stopped, Running, Hibernated
|
7304
|
+
# instance_reuse_policy: {
|
7305
|
+
# reuse_on_scale_in: false,
|
7306
|
+
# },
|
7262
7307
|
# }
|
7263
7308
|
#
|
7264
7309
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -7301,13 +7346,20 @@ module Aws::AutoScaling
|
|
7301
7346
|
# are complete. Default is `Stopped`.
|
7302
7347
|
# @return [String]
|
7303
7348
|
#
|
7349
|
+
# @!attribute [rw] instance_reuse_policy
|
7350
|
+
# Indicates whether instances in the Auto Scaling group can be
|
7351
|
+
# returned to the warm pool on scale in. The default is to terminate
|
7352
|
+
# instances in the Auto Scaling group when the group scales in.
|
7353
|
+
# @return [Types::InstanceReusePolicy]
|
7354
|
+
#
|
7304
7355
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPoolType AWS API Documentation
|
7305
7356
|
#
|
7306
7357
|
class PutWarmPoolType < Struct.new(
|
7307
7358
|
:auto_scaling_group_name,
|
7308
7359
|
:max_group_prepared_capacity,
|
7309
7360
|
:min_size,
|
7310
|
-
:pool_state
|
7361
|
+
:pool_state,
|
7362
|
+
:instance_reuse_policy)
|
7311
7363
|
SENSITIVE = []
|
7312
7364
|
include Aws::Structure
|
7313
7365
|
end
|
@@ -8367,6 +8419,15 @@ module Aws::AutoScaling
|
|
8367
8419
|
#
|
8368
8420
|
# @!attribute [rw] target_value
|
8369
8421
|
# The target value for the metric.
|
8422
|
+
#
|
8423
|
+
# <note markdown="1"> Some metrics are based on a count instead of a percentage, such as
|
8424
|
+
# the request count for an Application Load Balancer or the number of
|
8425
|
+
# messages in an SQS queue. If the scaling policy specifies one of
|
8426
|
+
# these metrics, specify the target utilization as the optimal average
|
8427
|
+
# request or message count per instance during any one-minute
|
8428
|
+
# interval.
|
8429
|
+
#
|
8430
|
+
# </note>
|
8370
8431
|
# @return [Float]
|
8371
8432
|
#
|
8372
8433
|
# @!attribute [rw] disable_scale_in
|
@@ -8629,7 +8690,7 @@ module Aws::AutoScaling
|
|
8629
8690
|
# The default value is `0`. For more information, see [Health check
|
8630
8691
|
# grace period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
8631
8692
|
#
|
8632
|
-
#
|
8693
|
+
# Required if you are adding an `ELB` health check.
|
8633
8694
|
#
|
8634
8695
|
#
|
8635
8696
|
#
|
@@ -8810,13 +8871,18 @@ module Aws::AutoScaling
|
|
8810
8871
|
# The status of a warm pool that is marked for deletion.
|
8811
8872
|
# @return [String]
|
8812
8873
|
#
|
8874
|
+
# @!attribute [rw] instance_reuse_policy
|
8875
|
+
# The instance reuse policy.
|
8876
|
+
# @return [Types::InstanceReusePolicy]
|
8877
|
+
#
|
8813
8878
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/WarmPoolConfiguration AWS API Documentation
|
8814
8879
|
#
|
8815
8880
|
class WarmPoolConfiguration < Struct.new(
|
8816
8881
|
:max_group_prepared_capacity,
|
8817
8882
|
:min_size,
|
8818
8883
|
:pool_state,
|
8819
|
-
:status
|
8884
|
+
:status,
|
8885
|
+
:instance_reuse_policy)
|
8820
8886
|
SENSITIVE = []
|
8821
8887
|
include Aws::Structure
|
8822
8888
|
end
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-autoscaling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.78.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.127.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.127.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|