aws-sdk-autoscaling 1.76.0 → 1.79.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 +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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb6018b6a3f686dd00f1295d3ff6c2120a567430889669197cdff253bc18129a
|
4
|
+
data.tar.gz: b2f324f7e8bbefae715151f02b6ac7bb1fb5e97b11b840ace0b482ec950d9a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4cd35fd4b3454a3c43430a11a90e9215c8fb48d6357bf3db514e46324f405c0fddc2a113b491109a5d2f54f74cc4ce642066e98bc062614e539c8958ba5db85
|
7
|
+
data.tar.gz: d804d1d96266479c42d4ea89b4c8ca075011d8ed4b95bc6b3b2d0008eed8df5f516db0c6c1be97994b1ed0d2cb61ec665b141fadcf1824e888d28190268404e0
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.79.0 (2022-04-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - EC2 Auto Scaling now adds default instance warm-up times for all scaling activities, health check replacements, and other replacement events in the Auto Scaling instance lifecycle.
|
8
|
+
|
9
|
+
1.78.0 (2022-02-24)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* 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.
|
13
|
+
|
14
|
+
1.77.0 (2022-02-03)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.76.0 (2021-12-21)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.79.0
|
@@ -118,9 +118,7 @@ module Aws::AutoScaling
|
|
118
118
|
data[:health_check_type]
|
119
119
|
end
|
120
120
|
|
121
|
-
# The
|
122
|
-
# before checking the health status of an EC2 instance that has come
|
123
|
-
# into service and marking it unhealthy due to a failed health check.
|
121
|
+
# The duration of the health check grace period, in seconds.
|
124
122
|
# @return [Integer]
|
125
123
|
def health_check_grace_period
|
126
124
|
data[:health_check_grace_period]
|
@@ -220,23 +218,18 @@ module Aws::AutoScaling
|
|
220
218
|
|
221
219
|
# The unit of measurement for the value specified for desired capacity.
|
222
220
|
# Amazon EC2 Auto Scaling supports `DesiredCapacityType` for
|
223
|
-
# attribute-based instance type selection only.
|
224
|
-
# see [Creating an Auto Scaling group using attribute-based instance
|
225
|
-
# type selection][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
226
|
-
#
|
227
|
-
# By default, Amazon EC2 Auto Scaling specifies `units`, which
|
228
|
-
# translates into number of instances.
|
229
|
-
#
|
230
|
-
# Valid values: `units` \| `vcpu` \| `memory-mib`
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
|
221
|
+
# attribute-based instance type selection only.
|
235
222
|
# @return [String]
|
236
223
|
def desired_capacity_type
|
237
224
|
data[:desired_capacity_type]
|
238
225
|
end
|
239
226
|
|
227
|
+
# The duration of the default instance warmup, in seconds.
|
228
|
+
# @return [Integer]
|
229
|
+
def default_instance_warmup
|
230
|
+
data[:default_instance_warmup]
|
231
|
+
end
|
232
|
+
|
240
233
|
# @!endgroup
|
241
234
|
|
242
235
|
# @return [Client]
|
@@ -815,14 +808,16 @@ module Aws::AutoScaling
|
|
815
808
|
# Required if the policy type is `SimpleScaling`. (Not used with any
|
816
809
|
# other policy type.)
|
817
810
|
# @option options [Integer] :cooldown
|
818
|
-
#
|
819
|
-
# cooldown period is specified here, it overrides
|
820
|
-
#
|
811
|
+
# A cooldown period, in seconds, that applies to a specific simple
|
812
|
+
# scaling policy. When a cooldown period is specified here, it overrides
|
813
|
+
# the default cooldown.
|
821
814
|
#
|
822
815
|
# Valid only if the policy type is `SimpleScaling`. For more
|
823
816
|
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
824
817
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
825
818
|
#
|
819
|
+
# Default: None
|
820
|
+
#
|
826
821
|
#
|
827
822
|
#
|
828
823
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html
|
@@ -839,13 +834,22 @@ module Aws::AutoScaling
|
|
839
834
|
# Required if the policy type is `StepScaling`. (Not used with any other
|
840
835
|
# policy type.)
|
841
836
|
# @option options [Integer] :estimated_instance_warmup
|
837
|
+
# *Not needed if the default instance warmup is defined for the group.*
|
838
|
+
#
|
842
839
|
# The estimated time, in seconds, until a newly launched instance can
|
843
|
-
# contribute to the CloudWatch metrics.
|
844
|
-
#
|
845
|
-
#
|
840
|
+
# contribute to the CloudWatch metrics. This warm-up period applies to
|
841
|
+
# instances launched due to a specific target tracking or step scaling
|
842
|
+
# policy. When a warm-up period is specified here, it overrides the
|
843
|
+
# default instance warmup.
|
846
844
|
#
|
847
845
|
# Valid only if the policy type is `TargetTrackingScaling` or
|
848
846
|
# `StepScaling`.
|
847
|
+
#
|
848
|
+
# <note markdown="1"> The default is to use the value for the default instance warmup
|
849
|
+
# defined for the group. If default instance warmup is null, then
|
850
|
+
# `EstimatedInstanceWarmup` falls back to the value of default cooldown.
|
851
|
+
#
|
852
|
+
# </note>
|
849
853
|
# @option options [Types::TargetTrackingConfiguration] :target_tracking_configuration
|
850
854
|
# A target tracking scaling policy. Provides support for predefined or
|
851
855
|
# custom metrics.
|
@@ -1177,6 +1181,7 @@ module Aws::AutoScaling
|
|
1177
1181
|
# capacity_rebalance: false,
|
1178
1182
|
# context: "Context",
|
1179
1183
|
# desired_capacity_type: "XmlStringMaxLen255",
|
1184
|
+
# default_instance_warmup: 1,
|
1180
1185
|
# })
|
1181
1186
|
# @param [Hash] options ({})
|
1182
1187
|
# @option options [String] :launch_configuration_name
|
@@ -1215,10 +1220,10 @@ module Aws::AutoScaling
|
|
1215
1220
|
# size of the group and less than or equal to the maximum size of the
|
1216
1221
|
# group.
|
1217
1222
|
# @option options [Integer] :default_cooldown
|
1218
|
-
#
|
1219
|
-
#
|
1220
|
-
#
|
1221
|
-
#
|
1223
|
+
# *Only needed if you use simple scaling policies.*
|
1224
|
+
#
|
1225
|
+
# The amount of time, in seconds, between one scaling activity ending
|
1226
|
+
# and another one starting due to simple scaling policies. For more
|
1222
1227
|
# information, see [Scaling cooldowns for Amazon EC2 Auto Scaling][1] in
|
1223
1228
|
# the *Amazon EC2 Auto Scaling User Guide*.
|
1224
1229
|
#
|
@@ -1235,22 +1240,25 @@ module Aws::AutoScaling
|
|
1235
1240
|
# @option options [Integer] :health_check_grace_period
|
1236
1241
|
# The amount of time, in seconds, that Amazon EC2 Auto Scaling waits
|
1237
1242
|
# before checking the health status of an EC2 instance that has come
|
1238
|
-
# into service and marking it unhealthy due to a failed
|
1239
|
-
#
|
1240
|
-
#
|
1241
|
-
#
|
1242
|
-
#
|
1243
|
+
# into service and marking it unhealthy due to a failed Elastic Load
|
1244
|
+
# Balancing or custom health check. This is useful if your instances do
|
1245
|
+
# not immediately pass these health checks after they enter the
|
1246
|
+
# `InService` state. For more information, see [Health check grace
|
1247
|
+
# period][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1243
1248
|
#
|
1244
1249
|
#
|
1245
1250
|
#
|
1246
1251
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period
|
1247
1252
|
# @option options [String] :placement_group
|
1248
1253
|
# The name of an existing placement group into which to launch your
|
1249
|
-
# instances
|
1250
|
-
#
|
1251
|
-
#
|
1252
|
-
#
|
1253
|
-
#
|
1254
|
+
# instances. For more information, see [Placement groups][1] in the
|
1255
|
+
# *Amazon EC2 User Guide for Linux Instances*.
|
1256
|
+
#
|
1257
|
+
# <note markdown="1"> A *cluster* placement group is a logical grouping of instances within
|
1258
|
+
# a single Availability Zone. You cannot specify multiple Availability
|
1259
|
+
# Zones and a cluster placement group.
|
1260
|
+
#
|
1261
|
+
# </note>
|
1254
1262
|
#
|
1255
1263
|
#
|
1256
1264
|
#
|
@@ -1325,6 +1333,29 @@ module Aws::AutoScaling
|
|
1325
1333
|
#
|
1326
1334
|
#
|
1327
1335
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
|
1336
|
+
# @option options [Integer] :default_instance_warmup
|
1337
|
+
# The amount of time, in seconds, until a newly launched instance can
|
1338
|
+
# contribute to the Amazon CloudWatch metrics. This delay lets an
|
1339
|
+
# instance finish initializing before Amazon EC2 Auto Scaling aggregates
|
1340
|
+
# instance metrics, resulting in more reliable usage data. Set this
|
1341
|
+
# value equal to the amount of time that it takes for resource
|
1342
|
+
# consumption to become stable after an instance reaches the `InService`
|
1343
|
+
# state. For more information, see [Set the default instance warmup for
|
1344
|
+
# an Auto Scaling group][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1345
|
+
#
|
1346
|
+
# To manage your warm-up settings at the group level, we recommend that
|
1347
|
+
# you set the default instance warmup, *even if its value is set to 0
|
1348
|
+
# seconds*. This also optimizes the performance of scaling policies that
|
1349
|
+
# scale continuously, such as target tracking and step scaling policies.
|
1350
|
+
#
|
1351
|
+
# If you need to remove a value that you previously set, include the
|
1352
|
+
# property but specify `-1` for the value. However, we strongly
|
1353
|
+
# recommend keeping the default instance warmup enabled by specifying a
|
1354
|
+
# minimum value of `0`.
|
1355
|
+
#
|
1356
|
+
#
|
1357
|
+
#
|
1358
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
1328
1359
|
# @return [AutoScalingGroup]
|
1329
1360
|
def update(options = {})
|
1330
1361
|
options = options.merge(auto_scaling_group_name: @name)
|