aws-sdk-autoscaling 1.94.0 → 1.96.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +1 -1
- data/lib/aws-sdk-autoscaling/client.rb +85 -103
- data/lib/aws-sdk-autoscaling/client_api.rb +15 -1
- data/lib/aws-sdk-autoscaling/types.rb +38 -11
- data/lib/aws-sdk-autoscaling.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 676b2383ae209c855ce2a5e7d2b87ca9c34e30de771c781a604374fb2258f383
|
4
|
+
data.tar.gz: 585d1e8e238c326a6eea9d22d04fef80c05fc4046d007245d44f52d9c41b4bd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91a658aa26d95f697890c82b51c16c02ca04bfdfbf3243b9366490cf362cc0b8a9ee23ba9979133c152aae02862b0441754d164a3e0a09dc78c11faabae719c6
|
7
|
+
data.tar.gz: b3dadc542249cd06b0de3baefb1ce5601171e1786aace132c3068437d251ba947dc6d335a0aef9f48c1da65886c0d7596144b6a0c0c63b5adb959af982b99d55
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.96.0 (2023-07-31)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - You can now configure an instance refresh to set its status to 'failed' when it detects that a specified CloudWatch alarm has gone into the ALARM state. You can also choose to roll back the instance refresh automatically when the alarm threshold is met.
|
8
|
+
|
9
|
+
1.95.0 (2023-07-27)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release updates validation for instance types used in the AllowedInstanceTypes and ExcludedInstanceTypes parameters of the InstanceRequirements property of a MixedInstancesPolicy.
|
13
|
+
|
4
14
|
1.94.0 (2023-07-11)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.96.0
|
@@ -861,7 +861,7 @@ module Aws::AutoScaling
|
|
861
861
|
# The amount by which to scale, based on the specified adjustment type.
|
862
862
|
# A positive value adds to the current capacity while a negative number
|
863
863
|
# removes from the current capacity. For exact capacity, you must
|
864
|
-
# specify a
|
864
|
+
# specify a non-negative value.
|
865
865
|
#
|
866
866
|
# Required if the policy type is `SimpleScaling`. (Not used with any
|
867
867
|
# other policy type.)
|
@@ -829,12 +829,12 @@ module Aws::AutoScaling
|
|
829
829
|
# 6. **If you finish before the timeout period ends, send a callback by
|
830
830
|
# using the CompleteLifecycleAction API call.**
|
831
831
|
#
|
832
|
-
# For more information, see [
|
833
|
-
#
|
832
|
+
# For more information, see [Complete a lifecycle action][1] in the
|
833
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
834
834
|
#
|
835
835
|
#
|
836
836
|
#
|
837
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html
|
837
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/completing-lifecycle-hooks.html
|
838
838
|
#
|
839
839
|
# @option params [required, String] :lifecycle_hook_name
|
840
840
|
# The name of the lifecycle hook.
|
@@ -1229,84 +1229,6 @@ module Aws::AutoScaling
|
|
1229
1229
|
#
|
1230
1230
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1231
1231
|
#
|
1232
|
-
#
|
1233
|
-
# @example Example: To create an Auto Scaling group
|
1234
|
-
#
|
1235
|
-
# # This example creates an Auto Scaling group.
|
1236
|
-
#
|
1237
|
-
# resp = client.create_auto_scaling_group({
|
1238
|
-
# auto_scaling_group_name: "my-auto-scaling-group",
|
1239
|
-
# launch_template: {
|
1240
|
-
# launch_template_name: "my-template-for-auto-scaling",
|
1241
|
-
# version: "$Latest",
|
1242
|
-
# },
|
1243
|
-
# max_instance_lifetime: 2592000,
|
1244
|
-
# max_size: 3,
|
1245
|
-
# min_size: 1,
|
1246
|
-
# vpc_zone_identifier: "subnet-057fa0918fEXAMPLE",
|
1247
|
-
# })
|
1248
|
-
#
|
1249
|
-
# @example Example: To create an Auto Scaling group with an attached target group
|
1250
|
-
#
|
1251
|
-
# # This example creates an Auto Scaling group and attaches the specified target group.
|
1252
|
-
#
|
1253
|
-
# resp = client.create_auto_scaling_group({
|
1254
|
-
# auto_scaling_group_name: "my-auto-scaling-group",
|
1255
|
-
# health_check_grace_period: 300,
|
1256
|
-
# health_check_type: "ELB",
|
1257
|
-
# launch_template: {
|
1258
|
-
# launch_template_name: "my-template-for-auto-scaling",
|
1259
|
-
# version: "$Latest",
|
1260
|
-
# },
|
1261
|
-
# max_size: 3,
|
1262
|
-
# min_size: 1,
|
1263
|
-
# target_group_arns: [
|
1264
|
-
# "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
|
1265
|
-
# ],
|
1266
|
-
# vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
|
1267
|
-
# })
|
1268
|
-
#
|
1269
|
-
# @example Example: To create an Auto Scaling group with a mixed instances policy
|
1270
|
-
#
|
1271
|
-
# # This example creates an Auto Scaling group with a mixed instances policy. It specifies the c5.large, c5a.large, and
|
1272
|
-
# # c6g.large instance types and defines a different launch template for the c6g.large instance type.
|
1273
|
-
#
|
1274
|
-
# resp = client.create_auto_scaling_group({
|
1275
|
-
# auto_scaling_group_name: "my-asg",
|
1276
|
-
# desired_capacity: 3,
|
1277
|
-
# max_size: 5,
|
1278
|
-
# min_size: 1,
|
1279
|
-
# mixed_instances_policy: {
|
1280
|
-
# instances_distribution: {
|
1281
|
-
# on_demand_base_capacity: 1,
|
1282
|
-
# on_demand_percentage_above_base_capacity: 50,
|
1283
|
-
# spot_allocation_strategy: "capacity-optimized",
|
1284
|
-
# },
|
1285
|
-
# launch_template: {
|
1286
|
-
# launch_template_specification: {
|
1287
|
-
# launch_template_name: "my-launch-template-for-x86",
|
1288
|
-
# version: "$Latest",
|
1289
|
-
# },
|
1290
|
-
# overrides: [
|
1291
|
-
# {
|
1292
|
-
# instance_type: "c6g.large",
|
1293
|
-
# launch_template_specification: {
|
1294
|
-
# launch_template_name: "my-launch-template-for-arm",
|
1295
|
-
# version: "$Latest",
|
1296
|
-
# },
|
1297
|
-
# },
|
1298
|
-
# {
|
1299
|
-
# instance_type: "c5.large",
|
1300
|
-
# },
|
1301
|
-
# {
|
1302
|
-
# instance_type: "c5a.large",
|
1303
|
-
# },
|
1304
|
-
# ],
|
1305
|
-
# },
|
1306
|
-
# },
|
1307
|
-
# vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
|
1308
|
-
# })
|
1309
|
-
#
|
1310
1232
|
# @example Request syntax with placeholder values
|
1311
1233
|
#
|
1312
1234
|
# resp = client.create_auto_scaling_group({
|
@@ -2352,14 +2274,16 @@ module Aws::AutoScaling
|
|
2352
2274
|
# {
|
2353
2275
|
# auto_scaling_groups: [
|
2354
2276
|
# {
|
2355
|
-
# auto_scaling_group_arn: "arn:aws:autoscaling:us-west-
|
2277
|
+
# auto_scaling_group_arn: "arn:aws:autoscaling:us-west-1:123456789012:autoScalingGroup:12345678-1234-1234-1234-123456789012:autoScalingGroupName/my-auto-scaling-group",
|
2356
2278
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
2357
2279
|
# availability_zones: [
|
2280
|
+
# "us-west-2a",
|
2281
|
+
# "us-west-2b",
|
2358
2282
|
# "us-west-2c",
|
2359
2283
|
# ],
|
2360
|
-
# created_time: Time.parse("
|
2284
|
+
# created_time: Time.parse("2023-03-09T22:15:11.611Z"),
|
2361
2285
|
# default_cooldown: 300,
|
2362
|
-
# desired_capacity:
|
2286
|
+
# desired_capacity: 2,
|
2363
2287
|
# enabled_metrics: [
|
2364
2288
|
# ],
|
2365
2289
|
# health_check_grace_period: 300,
|
@@ -2368,7 +2292,17 @@ module Aws::AutoScaling
|
|
2368
2292
|
# {
|
2369
2293
|
# availability_zone: "us-west-2c",
|
2370
2294
|
# health_status: "Healthy",
|
2371
|
-
# instance_id: "i-
|
2295
|
+
# instance_id: "i-05b4f7d5be44822a6",
|
2296
|
+
# instance_type: "t3.micro",
|
2297
|
+
# launch_configuration_name: "my-launch-config",
|
2298
|
+
# lifecycle_state: "InService",
|
2299
|
+
# protected_from_scale_in: false,
|
2300
|
+
# },
|
2301
|
+
# {
|
2302
|
+
# availability_zone: "us-west-2b",
|
2303
|
+
# health_status: "Healthy",
|
2304
|
+
# instance_id: "i-0c20ac468fa3049e8",
|
2305
|
+
# instance_type: "t3.micro",
|
2372
2306
|
# launch_configuration_name: "my-launch-config",
|
2373
2307
|
# lifecycle_state: "InService",
|
2374
2308
|
# protected_from_scale_in: false,
|
@@ -2377,17 +2311,22 @@ module Aws::AutoScaling
|
|
2377
2311
|
# launch_configuration_name: "my-launch-config",
|
2378
2312
|
# load_balancer_names: [
|
2379
2313
|
# ],
|
2380
|
-
# max_size:
|
2381
|
-
# min_size:
|
2314
|
+
# max_size: 5,
|
2315
|
+
# min_size: 1,
|
2382
2316
|
# new_instances_protected_from_scale_in: false,
|
2317
|
+
# service_linked_role_arn: "arn:aws:iam::123456789012:role/aws-service-role/autoscaling.amazonaws.com/AWSServiceRoleForAutoScaling",
|
2383
2318
|
# suspended_processes: [
|
2384
2319
|
# ],
|
2385
2320
|
# tags: [
|
2386
2321
|
# ],
|
2322
|
+
# target_group_arns: [
|
2323
|
+
# ],
|
2387
2324
|
# termination_policies: [
|
2388
2325
|
# "Default",
|
2389
2326
|
# ],
|
2390
|
-
#
|
2327
|
+
# traffic_sources: [
|
2328
|
+
# ],
|
2329
|
+
# vpc_zone_identifier: "subnet-5ea0c127,subnet-6194ea3b,subnet-c934b782",
|
2391
2330
|
# },
|
2392
2331
|
# ],
|
2393
2332
|
# }
|
@@ -2579,7 +2518,7 @@ module Aws::AutoScaling
|
|
2579
2518
|
#
|
2580
2519
|
# resp = client.describe_auto_scaling_instances({
|
2581
2520
|
# instance_ids: [
|
2582
|
-
# "i-
|
2521
|
+
# "i-05b4f7d5be44822a6",
|
2583
2522
|
# ],
|
2584
2523
|
# })
|
2585
2524
|
#
|
@@ -2590,7 +2529,8 @@ module Aws::AutoScaling
|
|
2590
2529
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
2591
2530
|
# availability_zone: "us-west-2c",
|
2592
2531
|
# health_status: "HEALTHY",
|
2593
|
-
# instance_id: "i-
|
2532
|
+
# instance_id: "i-05b4f7d5be44822a6",
|
2533
|
+
# instance_type: "t3.micro",
|
2594
2534
|
# launch_configuration_name: "my-launch-config",
|
2595
2535
|
# lifecycle_state: "InService",
|
2596
2536
|
# protected_from_scale_in: false,
|
@@ -2726,18 +2666,45 @@ module Aws::AutoScaling
|
|
2726
2666
|
# {
|
2727
2667
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
2728
2668
|
# instance_refresh_id: "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b",
|
2729
|
-
# instances_to_update:
|
2730
|
-
# percentage_complete:
|
2731
|
-
#
|
2669
|
+
# instances_to_update: 0,
|
2670
|
+
# percentage_complete: 50,
|
2671
|
+
# preferences: {
|
2672
|
+
# alarm_specification: {
|
2673
|
+
# alarms: [
|
2674
|
+
# "my-alarm",
|
2675
|
+
# ],
|
2676
|
+
# },
|
2677
|
+
# auto_rollback: true,
|
2678
|
+
# instance_warmup: 200,
|
2679
|
+
# min_healthy_percentage: 90,
|
2680
|
+
# scale_in_protected_instances: "Ignore",
|
2681
|
+
# skip_matching: false,
|
2682
|
+
# standby_instances: "Ignore",
|
2683
|
+
# },
|
2684
|
+
# start_time: Time.parse("2023-06-13T16:46:52+00:00"),
|
2732
2685
|
# status: "InProgress",
|
2686
|
+
# status_reason: "Waiting for instances to warm up before continuing. For example: i-0645704820a8e83ff is warming up.",
|
2733
2687
|
# },
|
2734
2688
|
# {
|
2735
2689
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
2736
|
-
# end_time: Time.parse("
|
2737
|
-
# instance_refresh_id: "
|
2690
|
+
# end_time: Time.parse("2023-06-02T13:59:45+00:00"),
|
2691
|
+
# instance_refresh_id: "0e151305-1e57-4a32-a256-1fd14157c5ec",
|
2738
2692
|
# instances_to_update: 0,
|
2739
2693
|
# percentage_complete: 100,
|
2740
|
-
#
|
2694
|
+
# preferences: {
|
2695
|
+
# alarm_specification: {
|
2696
|
+
# alarms: [
|
2697
|
+
# "my-alarm",
|
2698
|
+
# ],
|
2699
|
+
# },
|
2700
|
+
# auto_rollback: true,
|
2701
|
+
# instance_warmup: 200,
|
2702
|
+
# min_healthy_percentage: 90,
|
2703
|
+
# scale_in_protected_instances: "Ignore",
|
2704
|
+
# skip_matching: false,
|
2705
|
+
# standby_instances: "Ignore",
|
2706
|
+
# },
|
2707
|
+
# start_time: Time.parse("2023-06-02T13:53:37+00:00"),
|
2741
2708
|
# status: "Successful",
|
2742
2709
|
# },
|
2743
2710
|
# ],
|
@@ -2776,6 +2743,8 @@ module Aws::AutoScaling
|
|
2776
2743
|
# resp.instance_refreshes[0].preferences.auto_rollback #=> Boolean
|
2777
2744
|
# resp.instance_refreshes[0].preferences.scale_in_protected_instances #=> String, one of "Refresh", "Ignore", "Wait"
|
2778
2745
|
# resp.instance_refreshes[0].preferences.standby_instances #=> String, one of "Terminate", "Ignore", "Wait"
|
2746
|
+
# resp.instance_refreshes[0].preferences.alarm_specification.alarms #=> Array
|
2747
|
+
# resp.instance_refreshes[0].preferences.alarm_specification.alarms[0] #=> String
|
2779
2748
|
# resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_id #=> String
|
2780
2749
|
# resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_name #=> String
|
2781
2750
|
# resp.instance_refreshes[0].desired_configuration.launch_template.version #=> String
|
@@ -3674,6 +3643,7 @@ module Aws::AutoScaling
|
|
3674
3643
|
# activities: [
|
3675
3644
|
# {
|
3676
3645
|
# activity_id: "f9f2d65b-f1f2-43e7-b46d-d86756459699",
|
3646
|
+
# auto_scaling_group_arn: "arn:aws:autoscaling:us-east-1:123456789012:autoScalingGroup:12345678-1234-1234-1234-123456789012:autoScalingGroupName/my-auto-scaling-group",
|
3677
3647
|
# auto_scaling_group_name: "my-auto-scaling-group",
|
3678
3648
|
# cause: "At 2013-08-19T20:53:25Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 1. At 2013-08-19T20:53:29Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1.",
|
3679
3649
|
# description: "Launching a new EC2 instance: i-4ba0837f",
|
@@ -4148,6 +4118,8 @@ module Aws::AutoScaling
|
|
4148
4118
|
# * {Types::DescribeWarmPoolAnswer#instances #instances} => Array<Types::Instance>
|
4149
4119
|
# * {Types::DescribeWarmPoolAnswer#next_token #next_token} => String
|
4150
4120
|
#
|
4121
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4122
|
+
#
|
4151
4123
|
# @example Request syntax with placeholder values
|
4152
4124
|
#
|
4153
4125
|
# resp = client.describe_warm_pool({
|
@@ -4405,7 +4377,7 @@ module Aws::AutoScaling
|
|
4405
4377
|
# Detaches one or more traffic sources from the specified Auto Scaling
|
4406
4378
|
# group.
|
4407
4379
|
#
|
4408
|
-
# When you detach a
|
4380
|
+
# When you detach a traffic source, it enters the `Removing` state while
|
4409
4381
|
# deregistering the instances in the group. When all instances are
|
4410
4382
|
# deregistered, then you can no longer describe the traffic source using
|
4411
4383
|
# the DescribeTrafficSources API call. The instances continue to run.
|
@@ -5309,7 +5281,7 @@ module Aws::AutoScaling
|
|
5309
5281
|
# The amount by which to scale, based on the specified adjustment type.
|
5310
5282
|
# A positive value adds to the current capacity while a negative number
|
5311
5283
|
# removes from the current capacity. For exact capacity, you must
|
5312
|
-
# specify a
|
5284
|
+
# specify a non-negative value.
|
5313
5285
|
#
|
5314
5286
|
# Required if the policy type is `SimpleScaling`. (Not used with any
|
5315
5287
|
# other policy type.)
|
@@ -6033,7 +6005,7 @@ module Aws::AutoScaling
|
|
6033
6005
|
#
|
6034
6006
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html
|
6035
6007
|
#
|
6036
|
-
# @option params [String] :auto_scaling_group_name
|
6008
|
+
# @option params [required, String] :auto_scaling_group_name
|
6037
6009
|
# The name of the Auto Scaling group.
|
6038
6010
|
#
|
6039
6011
|
# @return [Types::RollbackInstanceRefreshAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -6043,7 +6015,7 @@ module Aws::AutoScaling
|
|
6043
6015
|
# @example Request syntax with placeholder values
|
6044
6016
|
#
|
6045
6017
|
# resp = client.rollback_instance_refresh({
|
6046
|
-
# auto_scaling_group_name: "XmlStringMaxLen255",
|
6018
|
+
# auto_scaling_group_name: "XmlStringMaxLen255", # required
|
6047
6019
|
# })
|
6048
6020
|
#
|
6049
6021
|
# @example Response structure
|
@@ -6323,6 +6295,8 @@ module Aws::AutoScaling
|
|
6323
6295
|
#
|
6324
6296
|
# * Checkpoints
|
6325
6297
|
#
|
6298
|
+
# * CloudWatch alarms
|
6299
|
+
#
|
6326
6300
|
# * Skip matching
|
6327
6301
|
#
|
6328
6302
|
# @return [Types::StartInstanceRefreshAnswer] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -6343,9 +6317,14 @@ module Aws::AutoScaling
|
|
6343
6317
|
# },
|
6344
6318
|
# },
|
6345
6319
|
# preferences: {
|
6346
|
-
#
|
6320
|
+
# alarm_specification: {
|
6321
|
+
# alarms: [
|
6322
|
+
# "my-alarm",
|
6323
|
+
# ],
|
6324
|
+
# },
|
6325
|
+
# auto_rollback: true,
|
6326
|
+
# instance_warmup: 200,
|
6347
6327
|
# min_healthy_percentage: 90,
|
6348
|
-
# skip_matching: true,
|
6349
6328
|
# },
|
6350
6329
|
# })
|
6351
6330
|
#
|
@@ -6455,6 +6434,9 @@ module Aws::AutoScaling
|
|
6455
6434
|
# auto_rollback: false,
|
6456
6435
|
# scale_in_protected_instances: "Refresh", # accepts Refresh, Ignore, Wait
|
6457
6436
|
# standby_instances: "Terminate", # accepts Terminate, Ignore, Wait
|
6437
|
+
# alarm_specification: {
|
6438
|
+
# alarms: ["XmlStringMaxLen255"],
|
6439
|
+
# },
|
6458
6440
|
# },
|
6459
6441
|
# })
|
6460
6442
|
#
|
@@ -7025,7 +7007,7 @@ module Aws::AutoScaling
|
|
7025
7007
|
params: params,
|
7026
7008
|
config: config)
|
7027
7009
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
7028
|
-
context[:gem_version] = '1.
|
7010
|
+
context[:gem_version] = '1.96.0'
|
7029
7011
|
Seahorse::Client::Request.new(handlers, context)
|
7030
7012
|
end
|
7031
7013
|
|
@@ -30,6 +30,8 @@ module Aws::AutoScaling
|
|
30
30
|
AdjustmentType = Shapes::StructureShape.new(name: 'AdjustmentType')
|
31
31
|
AdjustmentTypes = Shapes::ListShape.new(name: 'AdjustmentTypes')
|
32
32
|
Alarm = Shapes::StructureShape.new(name: 'Alarm')
|
33
|
+
AlarmList = Shapes::ListShape.new(name: 'AlarmList')
|
34
|
+
AlarmSpecification = Shapes::StructureShape.new(name: 'AlarmSpecification')
|
33
35
|
Alarms = Shapes::ListShape.new(name: 'Alarms')
|
34
36
|
AllowedInstanceType = Shapes::StringShape.new(name: 'AllowedInstanceType')
|
35
37
|
AllowedInstanceTypes = Shapes::ListShape.new(name: 'AllowedInstanceTypes')
|
@@ -438,6 +440,11 @@ module Aws::AutoScaling
|
|
438
440
|
Alarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "AlarmARN"))
|
439
441
|
Alarm.struct_class = Types::Alarm
|
440
442
|
|
443
|
+
AlarmList.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
|
444
|
+
|
445
|
+
AlarmSpecification.add_member(:alarms, Shapes::ShapeRef.new(shape: AlarmList, location_name: "Alarms"))
|
446
|
+
AlarmSpecification.struct_class = Types::AlarmSpecification
|
447
|
+
|
441
448
|
Alarms.member = Shapes::ShapeRef.new(shape: Alarm)
|
442
449
|
|
443
450
|
AllowedInstanceTypes.member = Shapes::ShapeRef.new(shape: AllowedInstanceType)
|
@@ -1312,6 +1319,7 @@ module Aws::AutoScaling
|
|
1312
1319
|
RefreshPreferences.add_member(:auto_rollback, Shapes::ShapeRef.new(shape: AutoRollback, location_name: "AutoRollback"))
|
1313
1320
|
RefreshPreferences.add_member(:scale_in_protected_instances, Shapes::ShapeRef.new(shape: ScaleInProtectedInstances, location_name: "ScaleInProtectedInstances"))
|
1314
1321
|
RefreshPreferences.add_member(:standby_instances, Shapes::ShapeRef.new(shape: StandbyInstances, location_name: "StandbyInstances"))
|
1322
|
+
RefreshPreferences.add_member(:alarm_specification, Shapes::ShapeRef.new(shape: AlarmSpecification, location_name: "AlarmSpecification"))
|
1315
1323
|
RefreshPreferences.struct_class = Types::RefreshPreferences
|
1316
1324
|
|
1317
1325
|
ResourceContentionFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
|
@@ -1330,7 +1338,7 @@ module Aws::AutoScaling
|
|
1330
1338
|
RollbackInstanceRefreshAnswer.add_member(:instance_refresh_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "InstanceRefreshId"))
|
1331
1339
|
RollbackInstanceRefreshAnswer.struct_class = Types::RollbackInstanceRefreshAnswer
|
1332
1340
|
|
1333
|
-
RollbackInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "AutoScalingGroupName"))
|
1341
|
+
RollbackInstanceRefreshType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AutoScalingGroupName"))
|
1334
1342
|
RollbackInstanceRefreshType.struct_class = Types::RollbackInstanceRefreshType
|
1335
1343
|
|
1336
1344
|
ScalingActivityInProgressFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
|
@@ -2009,6 +2017,12 @@ module Aws::AutoScaling
|
|
2009
2017
|
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
2010
2018
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
|
2011
2019
|
o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
|
2020
|
+
o[:pager] = Aws::Pager.new(
|
2021
|
+
limit_key: "max_records",
|
2022
|
+
tokens: {
|
2023
|
+
"next_token" => "next_token"
|
2024
|
+
}
|
2025
|
+
)
|
2012
2026
|
end)
|
2013
2027
|
|
2014
2028
|
api.add_operation(:detach_instances, Seahorse::Model::Operation.new.tap do |o|
|
@@ -206,6 +206,22 @@ module Aws::AutoScaling
|
|
206
206
|
include Aws::Structure
|
207
207
|
end
|
208
208
|
|
209
|
+
# Specifies the CloudWatch alarm specification to use in an instance
|
210
|
+
# refresh.
|
211
|
+
#
|
212
|
+
# @!attribute [rw] alarms
|
213
|
+
# The names of one or more CloudWatch alarms to monitor for the
|
214
|
+
# instance refresh.
|
215
|
+
# @return [Array<String>]
|
216
|
+
#
|
217
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AlarmSpecification AWS API Documentation
|
218
|
+
#
|
219
|
+
class AlarmSpecification < Struct.new(
|
220
|
+
:alarms)
|
221
|
+
SENSITIVE = []
|
222
|
+
include Aws::Structure
|
223
|
+
end
|
224
|
+
|
209
225
|
# You already have an Auto Scaling group or launch configuration with
|
210
226
|
# this name.
|
211
227
|
#
|
@@ -5842,7 +5858,7 @@ module Aws::AutoScaling
|
|
5842
5858
|
# The amount by which to scale, based on the specified adjustment
|
5843
5859
|
# type. A positive value adds to the current capacity while a negative
|
5844
5860
|
# number removes from the current capacity. For exact capacity, you
|
5845
|
-
# must specify a
|
5861
|
+
# must specify a non-negative value.
|
5846
5862
|
#
|
5847
5863
|
# Required if the policy type is `SimpleScaling`. (Not used with any
|
5848
5864
|
# other policy type.)
|
@@ -6242,8 +6258,8 @@ module Aws::AutoScaling
|
|
6242
6258
|
#
|
6243
6259
|
# @!attribute [rw] auto_rollback
|
6244
6260
|
# (Optional) Indicates whether to roll back the Auto Scaling group to
|
6245
|
-
# its previous configuration if the instance refresh fails
|
6246
|
-
# default is `false`.
|
6261
|
+
# its previous configuration if the instance refresh fails or a
|
6262
|
+
# CloudWatch alarm threshold is met. The default is `false`.
|
6247
6263
|
#
|
6248
6264
|
# A rollback is not supported in the following situations:
|
6249
6265
|
#
|
@@ -6256,6 +6272,13 @@ module Aws::AutoScaling
|
|
6256
6272
|
#
|
6257
6273
|
# * The Auto Scaling group uses the launch template's `$Latest` or
|
6258
6274
|
# `$Default` version.
|
6275
|
+
#
|
6276
|
+
# For more information, see [Undo changes with a rollback][1] in the
|
6277
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
6278
|
+
#
|
6279
|
+
#
|
6280
|
+
#
|
6281
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/instance-refresh-rollback.html
|
6259
6282
|
# @return [Boolean]
|
6260
6283
|
#
|
6261
6284
|
# @!attribute [rw] scale_in_protected_instances
|
@@ -6304,6 +6327,12 @@ module Aws::AutoScaling
|
|
6304
6327
|
# instances to service. Otherwise, the instance refresh will fail.
|
6305
6328
|
# @return [String]
|
6306
6329
|
#
|
6330
|
+
# @!attribute [rw] alarm_specification
|
6331
|
+
# (Optional) The CloudWatch alarm specification. CloudWatch alarms can
|
6332
|
+
# be used to identify any issues and fail the operation if an alarm
|
6333
|
+
# threshold is met.
|
6334
|
+
# @return [Types::AlarmSpecification]
|
6335
|
+
#
|
6307
6336
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RefreshPreferences AWS API Documentation
|
6308
6337
|
#
|
6309
6338
|
class RefreshPreferences < Struct.new(
|
@@ -6314,7 +6343,8 @@ module Aws::AutoScaling
|
|
6314
6343
|
:skip_matching,
|
6315
6344
|
:auto_rollback,
|
6316
6345
|
:scale_in_protected_instances,
|
6317
|
-
:standby_instances
|
6346
|
+
:standby_instances,
|
6347
|
+
:alarm_specification)
|
6318
6348
|
SENSITIVE = []
|
6319
6349
|
include Aws::Structure
|
6320
6350
|
end
|
@@ -6913,6 +6943,8 @@ module Aws::AutoScaling
|
|
6913
6943
|
#
|
6914
6944
|
# * Checkpoints
|
6915
6945
|
#
|
6946
|
+
# * CloudWatch alarms
|
6947
|
+
#
|
6916
6948
|
# * Skip matching
|
6917
6949
|
# @return [Types::RefreshPreferences]
|
6918
6950
|
#
|
@@ -6986,13 +7018,8 @@ module Aws::AutoScaling
|
|
6986
7018
|
# @!attribute [rw] scaling_adjustment
|
6987
7019
|
# The amount by which to scale, based on the specified adjustment
|
6988
7020
|
# type. A positive value adds to the current capacity while a negative
|
6989
|
-
# number removes from the current capacity.
|
6990
|
-
#
|
6991
|
-
# The amount by which to scale. The adjustment is based on the value
|
6992
|
-
# that you specified in the `AdjustmentType` property (either an
|
6993
|
-
# absolute number or a percentage). A positive value adds to the
|
6994
|
-
# current capacity and a negative number subtracts from the current
|
6995
|
-
# capacity.
|
7021
|
+
# number removes from the current capacity. For exact capacity, you
|
7022
|
+
# must specify a non-negative value.
|
6996
7023
|
# @return [Integer]
|
6997
7024
|
#
|
6998
7025
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StepAdjustment AWS API Documentation
|
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.96.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: 2023-07-
|
11
|
+
date: 2023-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|