aws-sdk-autoscaling 1.164.0 → 1.165.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/client.rb +71 -4
- data/lib/aws-sdk-autoscaling/client_api.rb +12 -1
- data/lib/aws-sdk-autoscaling/errors.rb +19 -0
- data/lib/aws-sdk-autoscaling/instance.rb +8 -0
- data/lib/aws-sdk-autoscaling/types.rb +47 -1
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/sig/client.rbs +4 -1
- data/sig/errors.rbs +3 -0
- data/sig/instance.rbs +2 -0
- data/sig/types.rbs +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45954173752d04e01a0fcf7a4eb89ee79d22ffff23a5df13316db834f91ac644
|
|
4
|
+
data.tar.gz: efd8195df24f22eb337ff32965066e98967fc2f05ef63650722371319a55ef23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf76465d98e07a4b0f757861735f0ea89c752550f71f70a2f92e94bf500f9a3fedd5aa4df6698e89ffb146f71adea4d595d4c692523590eaf69f26b32d2a4f22
|
|
7
|
+
data.tar.gz: 4282235553b70c3b9ed7716407a48e6ac066a7610bc473d16f810691e669eb98261dc512fafd6ed1406fbf77974cef988c7e7d1f519a3cd083881808c46505b7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.165.0 (2026-08-13)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Amazon EC2 Auto Scaling now supports terminating multiple instances in a single TerminateInstanceInAutoScalingGroup call via the new InstanceIds parameter, returning an Activities list. LaunchInstances now returns IdempotentCallInProgressFault for duplicate client tokens.
|
|
8
|
+
|
|
4
9
|
1.164.0 (2026-08-06)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.165.0
|
|
@@ -7153,7 +7153,7 @@ module Aws::AutoScaling
|
|
|
7153
7153
|
# group size. This operation cannot be called on instances in a warm
|
|
7154
7154
|
# pool.
|
|
7155
7155
|
#
|
|
7156
|
-
# This call simply makes a termination request. The
|
|
7156
|
+
# This call simply makes a termination request. The instances are not
|
|
7157
7157
|
# terminated immediately. When an instance is terminated, the instance
|
|
7158
7158
|
# status changes to `terminated`. You can't connect to or start an
|
|
7159
7159
|
# instance after you've terminated it.
|
|
@@ -7162,6 +7162,11 @@ module Aws::AutoScaling
|
|
|
7162
7162
|
# Amazon EC2 Auto Scaling launches instances to replace the ones that
|
|
7163
7163
|
# are terminated.
|
|
7164
7164
|
#
|
|
7165
|
+
# To terminate multiple instances in a single call, use the
|
|
7166
|
+
# `InstanceIds` and `AutoScalingGroupName` parameters instead of
|
|
7167
|
+
# `InstanceId`. When terminating multiple instances, the response
|
|
7168
|
+
# populates `Activities` instead of `Activity`.
|
|
7169
|
+
#
|
|
7165
7170
|
# By default, Amazon EC2 Auto Scaling balances instances across all
|
|
7166
7171
|
# Availability Zones. If you decrement the desired capacity, your Auto
|
|
7167
7172
|
# Scaling group can become unbalanced between Availability Zones. Amazon
|
|
@@ -7173,9 +7178,17 @@ module Aws::AutoScaling
|
|
|
7173
7178
|
#
|
|
7174
7179
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-scaling-manually.html
|
|
7175
7180
|
#
|
|
7176
|
-
# @option params [
|
|
7181
|
+
# @option params [String] :instance_id
|
|
7177
7182
|
# The ID of the instance.
|
|
7178
7183
|
#
|
|
7184
|
+
# @option params [Array<String>] :instance_ids
|
|
7185
|
+
# The IDs of the instances. You can specify up to 100 instances.
|
|
7186
|
+
#
|
|
7187
|
+
# This parameter requires that you also specify `AutoScalingGroupName`.
|
|
7188
|
+
#
|
|
7189
|
+
# @option params [String] :auto_scaling_group_name
|
|
7190
|
+
# The name of the Auto Scaling group. Required when using `InstanceIds`.
|
|
7191
|
+
#
|
|
7179
7192
|
# @option params [required, Boolean] :should_decrement_desired_capacity
|
|
7180
7193
|
# Indicates whether terminating the instance also decrements the size of
|
|
7181
7194
|
# the Auto Scaling group.
|
|
@@ -7183,6 +7196,7 @@ module Aws::AutoScaling
|
|
|
7183
7196
|
# @return [Types::ActivityType] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
7184
7197
|
#
|
|
7185
7198
|
# * {Types::ActivityType#activity #activity} => Types::Activity
|
|
7199
|
+
# * {Types::ActivityType#activities #activities} => Array<Types::Activity>
|
|
7186
7200
|
#
|
|
7187
7201
|
#
|
|
7188
7202
|
# @example Example: To terminate an instance in an Auto Scaling group
|
|
@@ -7195,10 +7209,50 @@ module Aws::AutoScaling
|
|
|
7195
7209
|
# should_decrement_desired_capacity: false,
|
|
7196
7210
|
# })
|
|
7197
7211
|
#
|
|
7212
|
+
# @example Example: To terminate multiple instances in an Auto Scaling group
|
|
7213
|
+
#
|
|
7214
|
+
# # This example terminates multiple instances from the specified Auto Scaling group without updating the size of the group.
|
|
7215
|
+
# # Auto Scaling launches replacement instances after the specified instances terminate.
|
|
7216
|
+
#
|
|
7217
|
+
# resp = client.terminate_instance_in_auto_scaling_group({
|
|
7218
|
+
# auto_scaling_group_name: "my-asg",
|
|
7219
|
+
# instance_ids: [
|
|
7220
|
+
# "i-93633f9b",
|
|
7221
|
+
# "i-ab4d5e6f7",
|
|
7222
|
+
# ],
|
|
7223
|
+
# should_decrement_desired_capacity: false,
|
|
7224
|
+
# })
|
|
7225
|
+
#
|
|
7226
|
+
# resp.to_h outputs the following:
|
|
7227
|
+
# {
|
|
7228
|
+
# activities: [
|
|
7229
|
+
# {
|
|
7230
|
+
# activity_id: "12345678-1234-1234-1234-123456789012",
|
|
7231
|
+
# auto_scaling_group_name: "my-asg",
|
|
7232
|
+
# cause: "At 2024-03-14T00:07:30Z instance i-93633f9b was taken out of service in response to a user request.",
|
|
7233
|
+
# description: "Terminating EC2 instance: i-93633f9b",
|
|
7234
|
+
# progress: 0,
|
|
7235
|
+
# start_time: Time.parse("2024-03-14T00:07:30.280Z"),
|
|
7236
|
+
# status_code: "InProgress",
|
|
7237
|
+
# },
|
|
7238
|
+
# {
|
|
7239
|
+
# activity_id: "12345678-1234-1234-1234-123456789013",
|
|
7240
|
+
# auto_scaling_group_name: "my-asg",
|
|
7241
|
+
# cause: "At 2024-03-14T00:07:30Z instance i-ab4d5e6f7 was taken out of service in response to a user request.",
|
|
7242
|
+
# description: "Terminating EC2 instance: i-ab4d5e6f7",
|
|
7243
|
+
# progress: 0,
|
|
7244
|
+
# start_time: Time.parse("2024-03-14T00:07:30.280Z"),
|
|
7245
|
+
# status_code: "InProgress",
|
|
7246
|
+
# },
|
|
7247
|
+
# ],
|
|
7248
|
+
# }
|
|
7249
|
+
#
|
|
7198
7250
|
# @example Request syntax with placeholder values
|
|
7199
7251
|
#
|
|
7200
7252
|
# resp = client.terminate_instance_in_auto_scaling_group({
|
|
7201
|
-
# instance_id: "XmlStringMaxLen19",
|
|
7253
|
+
# instance_id: "XmlStringMaxLen19",
|
|
7254
|
+
# instance_ids: ["XmlStringMaxLen19"],
|
|
7255
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
|
7202
7256
|
# should_decrement_desired_capacity: false, # required
|
|
7203
7257
|
# })
|
|
7204
7258
|
#
|
|
@@ -7216,6 +7270,19 @@ module Aws::AutoScaling
|
|
|
7216
7270
|
# resp.activity.details #=> String
|
|
7217
7271
|
# resp.activity.auto_scaling_group_state #=> String
|
|
7218
7272
|
# resp.activity.auto_scaling_group_arn #=> String
|
|
7273
|
+
# resp.activities #=> Array
|
|
7274
|
+
# resp.activities[0].activity_id #=> String
|
|
7275
|
+
# resp.activities[0].auto_scaling_group_name #=> String
|
|
7276
|
+
# resp.activities[0].description #=> String
|
|
7277
|
+
# resp.activities[0].cause #=> String
|
|
7278
|
+
# resp.activities[0].start_time #=> Time
|
|
7279
|
+
# resp.activities[0].end_time #=> Time
|
|
7280
|
+
# resp.activities[0].status_code #=> String, one of "PendingSpotBidPlacement", "WaitingForSpotInstanceRequestId", "WaitingForSpotInstanceId", "WaitingForInstanceId", "PreInService", "InProgress", "WaitingForELBConnectionDraining", "MidLifecycleAction", "WaitingForInstanceWarmup", "Successful", "Failed", "Cancelled", "WaitingForConnectionDraining", "WaitingForInPlaceUpdateToStart", "WaitingForInPlaceUpdateToFinalize", "InPlaceUpdateInProgress"
|
|
7281
|
+
# resp.activities[0].status_message #=> String
|
|
7282
|
+
# resp.activities[0].progress #=> Integer
|
|
7283
|
+
# resp.activities[0].details #=> String
|
|
7284
|
+
# resp.activities[0].auto_scaling_group_state #=> String
|
|
7285
|
+
# resp.activities[0].auto_scaling_group_arn #=> String
|
|
7219
7286
|
#
|
|
7220
7287
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup AWS API Documentation
|
|
7221
7288
|
#
|
|
@@ -7758,7 +7825,7 @@ module Aws::AutoScaling
|
|
|
7758
7825
|
tracer: tracer
|
|
7759
7826
|
)
|
|
7760
7827
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
|
7761
|
-
context[:gem_version] = '1.
|
|
7828
|
+
context[:gem_version] = '1.165.0'
|
|
7762
7829
|
Seahorse::Client::Request.new(handlers, context)
|
|
7763
7830
|
end
|
|
7764
7831
|
|
|
@@ -182,6 +182,7 @@ module Aws::AutoScaling
|
|
|
182
182
|
HealthCheckGracePeriod = Shapes::IntegerShape.new(name: 'HealthCheckGracePeriod')
|
|
183
183
|
HeartbeatTimeout = Shapes::IntegerShape.new(name: 'HeartbeatTimeout')
|
|
184
184
|
HonorCooldown = Shapes::BooleanShape.new(name: 'HonorCooldown')
|
|
185
|
+
IdempotentCallInProgressFault = Shapes::StructureShape.new(name: 'IdempotentCallInProgressFault', error: {"code" => "IdempotentCallInProgress", "httpStatusCode" => 500, "senderFault" => true})
|
|
185
186
|
IdempotentParameterMismatchError = Shapes::StructureShape.new(name: 'IdempotentParameterMismatchError', error: {"code" => "IdempotentParameterMismatch", "httpStatusCode" => 400, "senderFault" => true})
|
|
186
187
|
ImageId = Shapes::StringShape.new(name: 'ImageId')
|
|
187
188
|
ImpairedZoneHealthCheckBehavior = Shapes::StringShape.new(name: 'ImpairedZoneHealthCheckBehavior')
|
|
@@ -407,6 +408,7 @@ module Aws::AutoScaling
|
|
|
407
408
|
TargetTrackingMetricDataQuery = Shapes::StructureShape.new(name: 'TargetTrackingMetricDataQuery')
|
|
408
409
|
TargetTrackingMetricStat = Shapes::StructureShape.new(name: 'TargetTrackingMetricStat')
|
|
409
410
|
TerminateInstanceInAutoScalingGroupType = Shapes::StructureShape.new(name: 'TerminateInstanceInAutoScalingGroupType')
|
|
411
|
+
TerminationInstanceIds = Shapes::ListShape.new(name: 'TerminationInstanceIds')
|
|
410
412
|
TerminationPolicies = Shapes::ListShape.new(name: 'TerminationPolicies')
|
|
411
413
|
TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
|
|
412
414
|
TotalLocalStorageGBRequest = Shapes::StructureShape.new(name: 'TotalLocalStorageGBRequest')
|
|
@@ -478,6 +480,7 @@ module Aws::AutoScaling
|
|
|
478
480
|
ActivityIds.member = Shapes::ShapeRef.new(shape: XmlString)
|
|
479
481
|
|
|
480
482
|
ActivityType.add_member(:activity, Shapes::ShapeRef.new(shape: Activity, location_name: "Activity"))
|
|
483
|
+
ActivityType.add_member(:activities, Shapes::ShapeRef.new(shape: Activities, location_name: "Activities"))
|
|
481
484
|
ActivityType.struct_class = Types::ActivityType
|
|
482
485
|
|
|
483
486
|
AdjustmentType.add_member(:adjustment_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "AdjustmentType"))
|
|
@@ -1013,6 +1016,9 @@ module Aws::AutoScaling
|
|
|
1013
1016
|
GetPredictiveScalingForecastType.add_member(:end_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "EndTime"))
|
|
1014
1017
|
GetPredictiveScalingForecastType.struct_class = Types::GetPredictiveScalingForecastType
|
|
1015
1018
|
|
|
1019
|
+
IdempotentCallInProgressFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "Message"))
|
|
1020
|
+
IdempotentCallInProgressFault.struct_class = Types::IdempotentCallInProgressFault
|
|
1021
|
+
|
|
1016
1022
|
IdempotentParameterMismatchError.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "Message"))
|
|
1017
1023
|
IdempotentParameterMismatchError.struct_class = Types::IdempotentParameterMismatchError
|
|
1018
1024
|
|
|
@@ -1662,10 +1668,14 @@ module Aws::AutoScaling
|
|
|
1662
1668
|
TargetTrackingMetricStat.add_member(:period, Shapes::ShapeRef.new(shape: MetricGranularityInSeconds, location_name: "Period"))
|
|
1663
1669
|
TargetTrackingMetricStat.struct_class = Types::TargetTrackingMetricStat
|
|
1664
1670
|
|
|
1665
|
-
TerminateInstanceInAutoScalingGroupType.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19,
|
|
1671
|
+
TerminateInstanceInAutoScalingGroupType.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19, location_name: "InstanceId"))
|
|
1672
|
+
TerminateInstanceInAutoScalingGroupType.add_member(:instance_ids, Shapes::ShapeRef.new(shape: TerminationInstanceIds, location_name: "InstanceIds"))
|
|
1673
|
+
TerminateInstanceInAutoScalingGroupType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "AutoScalingGroupName"))
|
|
1666
1674
|
TerminateInstanceInAutoScalingGroupType.add_member(:should_decrement_desired_capacity, Shapes::ShapeRef.new(shape: ShouldDecrementDesiredCapacity, required: true, location_name: "ShouldDecrementDesiredCapacity"))
|
|
1667
1675
|
TerminateInstanceInAutoScalingGroupType.struct_class = Types::TerminateInstanceInAutoScalingGroupType
|
|
1668
1676
|
|
|
1677
|
+
TerminationInstanceIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen19)
|
|
1678
|
+
|
|
1669
1679
|
TerminationPolicies.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen1600)
|
|
1670
1680
|
|
|
1671
1681
|
TotalLocalStorageGBRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveDouble, location_name: "Min"))
|
|
@@ -2328,6 +2338,7 @@ module Aws::AutoScaling
|
|
|
2328
2338
|
o.output = Shapes::ShapeRef.new(shape: LaunchInstancesResult)
|
|
2329
2339
|
o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
|
|
2330
2340
|
o.errors << Shapes::ShapeRef.new(shape: IdempotentParameterMismatchError)
|
|
2341
|
+
o.errors << Shapes::ShapeRef.new(shape: IdempotentCallInProgressFault)
|
|
2331
2342
|
end)
|
|
2332
2343
|
|
|
2333
2344
|
api.add_operation(:put_lifecycle_hook, Seahorse::Model::Operation.new.tap do |o|
|
|
@@ -31,6 +31,8 @@ module Aws::AutoScaling
|
|
|
31
31
|
# * This error class is not used. `ActiveInstanceRefreshNotFound` is used during parsing instead.
|
|
32
32
|
# * {AlreadyExistsFault}
|
|
33
33
|
# * This error class is not used. `AlreadyExists` is used during parsing instead.
|
|
34
|
+
# * {IdempotentCallInProgressFault}
|
|
35
|
+
# * This error class is not used. `IdempotentCallInProgress` is used during parsing instead.
|
|
34
36
|
# * {IdempotentParameterMismatchError}
|
|
35
37
|
# * This error class is not used. `IdempotentParameterMismatch` is used during parsing instead.
|
|
36
38
|
# * {InstanceRefreshInProgressFault}
|
|
@@ -88,6 +90,23 @@ module Aws::AutoScaling
|
|
|
88
90
|
end
|
|
89
91
|
end
|
|
90
92
|
|
|
93
|
+
# @deprecated This error class is not used during parsing.
|
|
94
|
+
# Please use `IdempotentCallInProgress` instead.
|
|
95
|
+
class IdempotentCallInProgressFault < ServiceError
|
|
96
|
+
|
|
97
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
98
|
+
# @param [String] message
|
|
99
|
+
# @param [Aws::AutoScaling::Types::IdempotentCallInProgressFault] data
|
|
100
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
101
|
+
super(context, message, data)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @return [String]
|
|
105
|
+
def message
|
|
106
|
+
@message || @data[:message]
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
91
110
|
# @deprecated This error class is not used during parsing.
|
|
92
111
|
# Please use `IdempotentParameterMismatch` instead.
|
|
93
112
|
class IdempotentParameterMismatchError < ServiceError
|
|
@@ -419,9 +419,17 @@ module Aws::AutoScaling
|
|
|
419
419
|
# @example Request syntax with placeholder values
|
|
420
420
|
#
|
|
421
421
|
# activity = instance.terminate({
|
|
422
|
+
# instance_ids: ["XmlStringMaxLen19"],
|
|
423
|
+
# auto_scaling_group_name: "XmlStringMaxLen255",
|
|
422
424
|
# should_decrement_desired_capacity: false, # required
|
|
423
425
|
# })
|
|
424
426
|
# @param [Hash] options ({})
|
|
427
|
+
# @option options [Array<String>] :instance_ids
|
|
428
|
+
# The IDs of the instances. You can specify up to 100 instances.
|
|
429
|
+
#
|
|
430
|
+
# This parameter requires that you also specify `AutoScalingGroupName`.
|
|
431
|
+
# @option options [String] :auto_scaling_group_name
|
|
432
|
+
# The name of the Auto Scaling group. Required when using `InstanceIds`.
|
|
425
433
|
# @option options [required, Boolean] :should_decrement_desired_capacity
|
|
426
434
|
# Indicates whether terminating the instance also decrements the size of
|
|
427
435
|
# the Auto Scaling group.
|
|
@@ -172,10 +172,16 @@ module Aws::AutoScaling
|
|
|
172
172
|
# A scaling activity.
|
|
173
173
|
# @return [Types::Activity]
|
|
174
174
|
#
|
|
175
|
+
# @!attribute [rw] activities
|
|
176
|
+
# The scaling activities related to terminating the instances from the
|
|
177
|
+
# Auto Scaling group.
|
|
178
|
+
# @return [Array<Types::Activity>]
|
|
179
|
+
#
|
|
175
180
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ActivityType AWS API Documentation
|
|
176
181
|
#
|
|
177
182
|
class ActivityType < Struct.new(
|
|
178
|
-
:activity
|
|
183
|
+
:activity,
|
|
184
|
+
:activities)
|
|
179
185
|
SENSITIVE = []
|
|
180
186
|
include Aws::Structure
|
|
181
187
|
end
|
|
@@ -3601,6 +3607,21 @@ module Aws::AutoScaling
|
|
|
3601
3607
|
include Aws::Structure
|
|
3602
3608
|
end
|
|
3603
3609
|
|
|
3610
|
+
# The service is currently processing another request with the same
|
|
3611
|
+
# client token. Retry the request with the same client token—the
|
|
3612
|
+
# in-flight operation will complete and return its result.
|
|
3613
|
+
#
|
|
3614
|
+
# @!attribute [rw] message
|
|
3615
|
+
# @return [String]
|
|
3616
|
+
#
|
|
3617
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/IdempotentCallInProgressFault AWS API Documentation
|
|
3618
|
+
#
|
|
3619
|
+
class IdempotentCallInProgressFault < Struct.new(
|
|
3620
|
+
:message)
|
|
3621
|
+
SENSITIVE = []
|
|
3622
|
+
include Aws::Structure
|
|
3623
|
+
end
|
|
3624
|
+
|
|
3604
3625
|
# Indicates that the parameters in the current request do not match the
|
|
3605
3626
|
# parameters from a previous request with the same client token within
|
|
3606
3627
|
# the idempotency window.
|
|
@@ -7317,6 +7338,17 @@ module Aws::AutoScaling
|
|
|
7317
7338
|
# If you do not specify this property, the default is 100 percent, or
|
|
7318
7339
|
# the percentage set in the instance maintenance policy for the Auto
|
|
7319
7340
|
# Scaling group, if defined.
|
|
7341
|
+
#
|
|
7342
|
+
# Explicitly setting `MaxHealthyPercentage` to 100 is not equivalent
|
|
7343
|
+
# to omitting it. When `MaxHealthyPercentage` is explicitly set and it
|
|
7344
|
+
# is mathematically impossible to replace instances while honoring
|
|
7345
|
+
# both `MinHealthyPercentage` and `MaxHealthyPercentage` bounds
|
|
7346
|
+
# simultaneously, Auto Scaling launches a new instance before
|
|
7347
|
+
# terminating an old one (temporarily exceeding the desired capacity).
|
|
7348
|
+
# When `MaxHealthyPercentage` is omitted, Auto Scaling terminates an
|
|
7349
|
+
# instance and launches its replacement simultaneously. This
|
|
7350
|
+
# behavioral difference can affect workflows that depend on instance
|
|
7351
|
+
# replacement ordering.
|
|
7320
7352
|
# @return [Integer]
|
|
7321
7353
|
#
|
|
7322
7354
|
# @!attribute [rw] bake_time
|
|
@@ -8362,6 +8394,18 @@ module Aws::AutoScaling
|
|
|
8362
8394
|
# The ID of the instance.
|
|
8363
8395
|
# @return [String]
|
|
8364
8396
|
#
|
|
8397
|
+
# @!attribute [rw] instance_ids
|
|
8398
|
+
# The IDs of the instances. You can specify up to 100 instances.
|
|
8399
|
+
#
|
|
8400
|
+
# This parameter requires that you also specify
|
|
8401
|
+
# `AutoScalingGroupName`.
|
|
8402
|
+
# @return [Array<String>]
|
|
8403
|
+
#
|
|
8404
|
+
# @!attribute [rw] auto_scaling_group_name
|
|
8405
|
+
# The name of the Auto Scaling group. Required when using
|
|
8406
|
+
# `InstanceIds`.
|
|
8407
|
+
# @return [String]
|
|
8408
|
+
#
|
|
8365
8409
|
# @!attribute [rw] should_decrement_desired_capacity
|
|
8366
8410
|
# Indicates whether terminating the instance also decrements the size
|
|
8367
8411
|
# of the Auto Scaling group.
|
|
@@ -8371,6 +8415,8 @@ module Aws::AutoScaling
|
|
|
8371
8415
|
#
|
|
8372
8416
|
class TerminateInstanceInAutoScalingGroupType < Struct.new(
|
|
8373
8417
|
:instance_id,
|
|
8418
|
+
:instance_ids,
|
|
8419
|
+
:auto_scaling_group_name,
|
|
8374
8420
|
:should_decrement_desired_capacity)
|
|
8375
8421
|
SENSITIVE = []
|
|
8376
8422
|
include Aws::Structure
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -1046,10 +1046,13 @@ module Aws
|
|
|
1046
1046
|
interface _TerminateInstanceInAutoScalingGroupResponseSuccess
|
|
1047
1047
|
include ::Seahorse::Client::_ResponseSuccess[Types::ActivityType]
|
|
1048
1048
|
def activity: () -> Types::Activity
|
|
1049
|
+
def activities: () -> ::Array[Types::Activity]
|
|
1049
1050
|
end
|
|
1050
1051
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/Client.html#terminate_instance_in_auto_scaling_group-instance_method
|
|
1051
1052
|
def terminate_instance_in_auto_scaling_group: (
|
|
1052
|
-
instance_id: ::String,
|
|
1053
|
+
?instance_id: ::String,
|
|
1054
|
+
?instance_ids: Array[::String],
|
|
1055
|
+
?auto_scaling_group_name: ::String,
|
|
1053
1056
|
should_decrement_desired_capacity: bool
|
|
1054
1057
|
) -> _TerminateInstanceInAutoScalingGroupResponseSuccess
|
|
1055
1058
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TerminateInstanceInAutoScalingGroupResponseSuccess
|
data/sig/errors.rbs
CHANGED
|
@@ -17,6 +17,9 @@ module Aws
|
|
|
17
17
|
class AlreadyExistsFault < ::Aws::Errors::ServiceError
|
|
18
18
|
def message: () -> ::String
|
|
19
19
|
end
|
|
20
|
+
class IdempotentCallInProgressFault < ::Aws::Errors::ServiceError
|
|
21
|
+
def message: () -> ::String
|
|
22
|
+
end
|
|
20
23
|
class IdempotentParameterMismatchError < ::Aws::Errors::ServiceError
|
|
21
24
|
def message: () -> ::String
|
|
22
25
|
end
|
data/sig/instance.rbs
CHANGED
|
@@ -96,6 +96,8 @@ module Aws
|
|
|
96
96
|
|
|
97
97
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/AutoScaling/Instance.html#terminate-instance_method
|
|
98
98
|
def terminate: (
|
|
99
|
+
?instance_ids: Array[::String],
|
|
100
|
+
?auto_scaling_group_name: ::String,
|
|
99
101
|
should_decrement_desired_capacity: bool
|
|
100
102
|
) -> Activity
|
|
101
103
|
| (?Hash[Symbol, untyped]) -> Activity
|
data/sig/types.rbs
CHANGED
|
@@ -49,6 +49,7 @@ module Aws::AutoScaling
|
|
|
49
49
|
|
|
50
50
|
class ActivityType
|
|
51
51
|
attr_accessor activity: Types::Activity
|
|
52
|
+
attr_accessor activities: ::Array[Types::Activity]
|
|
52
53
|
SENSITIVE: []
|
|
53
54
|
end
|
|
54
55
|
|
|
@@ -718,6 +719,11 @@ module Aws::AutoScaling
|
|
|
718
719
|
SENSITIVE: []
|
|
719
720
|
end
|
|
720
721
|
|
|
722
|
+
class IdempotentCallInProgressFault
|
|
723
|
+
attr_accessor message: ::String
|
|
724
|
+
SENSITIVE: []
|
|
725
|
+
end
|
|
726
|
+
|
|
721
727
|
class IdempotentParameterMismatchError
|
|
722
728
|
attr_accessor message: ::String
|
|
723
729
|
SENSITIVE: []
|
|
@@ -1471,6 +1477,8 @@ module Aws::AutoScaling
|
|
|
1471
1477
|
|
|
1472
1478
|
class TerminateInstanceInAutoScalingGroupType
|
|
1473
1479
|
attr_accessor instance_id: ::String
|
|
1480
|
+
attr_accessor instance_ids: ::Array[::String]
|
|
1481
|
+
attr_accessor auto_scaling_group_name: ::String
|
|
1474
1482
|
attr_accessor should_decrement_desired_capacity: bool
|
|
1475
1483
|
SENSITIVE: []
|
|
1476
1484
|
end
|