aws-sdk-autoscaling 1.99.0 → 1.100.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/auto_scaling_group.rb +18 -0
- data/lib/aws-sdk-autoscaling/client.rb +39 -10
- data/lib/aws-sdk-autoscaling/client_api.rb +12 -0
- data/lib/aws-sdk-autoscaling/endpoint_provider.rb +2 -2
- data/lib/aws-sdk-autoscaling/resource.rb +12 -0
- data/lib/aws-sdk-autoscaling/types.rb +101 -18
- 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: d9ac5c5f2f8a4fc1bf643b1c385e265d602cf43fc7ba686e87362eb53e6fd5b0
|
4
|
+
data.tar.gz: 5daa72f1da1522423c421d79b61792c68191357f7a31bdae7febbc0dc60c3709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc3d63ca389b6ca956f3993520128737333fbab2c178c61f369ee873f71b23e715139e66bc7828c6aab64b62b3ba600ae491732d1771bf4aac87d671b3f54e8
|
7
|
+
data.tar.gz: 0c3ef237e1c7fd295f18969a10f237c88b47cfb7794c741b3e2c3132548a4f821407c3b49abf99ce1a0cda019202649f7c885ebe05bd517bb2dbaa35fe9bb234
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.100.0 (2023-11-15)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release introduces Instance Maintenance Policy, a new EC2 Auto Scaling capability that allows customers to define whether instances are launched before or after existing instances are terminated during instance replacement operations.
|
8
|
+
|
4
9
|
1.99.0 (2023-10-12)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.100.0
|
@@ -233,6 +233,12 @@ module Aws::AutoScaling
|
|
233
233
|
data[:traffic_sources]
|
234
234
|
end
|
235
235
|
|
236
|
+
# An instance maintenance policy.
|
237
|
+
# @return [Types::InstanceMaintenancePolicy]
|
238
|
+
def instance_maintenance_policy
|
239
|
+
data[:instance_maintenance_policy]
|
240
|
+
end
|
241
|
+
|
236
242
|
# @!endgroup
|
237
243
|
|
238
244
|
# @return [Client]
|
@@ -1258,6 +1264,10 @@ module Aws::AutoScaling
|
|
1258
1264
|
# context: "Context",
|
1259
1265
|
# desired_capacity_type: "XmlStringMaxLen255",
|
1260
1266
|
# default_instance_warmup: 1,
|
1267
|
+
# instance_maintenance_policy: {
|
1268
|
+
# min_healthy_percentage: 1,
|
1269
|
+
# max_healthy_percentage: 1,
|
1270
|
+
# },
|
1261
1271
|
# })
|
1262
1272
|
# @param [Hash] options ({})
|
1263
1273
|
# @option options [String] :launch_configuration_name
|
@@ -1444,6 +1454,14 @@ module Aws::AutoScaling
|
|
1444
1454
|
#
|
1445
1455
|
#
|
1446
1456
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
1457
|
+
# @option options [Types::InstanceMaintenancePolicy] :instance_maintenance_policy
|
1458
|
+
# An instance maintenance policy. For more information, see [Set
|
1459
|
+
# instance maintenance policy][1] in the *Amazon EC2 Auto Scaling User
|
1460
|
+
# Guide*.
|
1461
|
+
#
|
1462
|
+
#
|
1463
|
+
#
|
1464
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
|
1447
1465
|
# @return [AutoScalingGroup]
|
1448
1466
|
def update(options = {})
|
1449
1467
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -1227,6 +1227,15 @@ module Aws::AutoScaling
|
|
1227
1227
|
# group: Classic Load Balancer, Application Load Balancer, Gateway Load
|
1228
1228
|
# Balancer, Network Load Balancer, and VPC Lattice.
|
1229
1229
|
#
|
1230
|
+
# @option params [Types::InstanceMaintenancePolicy] :instance_maintenance_policy
|
1231
|
+
# An instance maintenance policy. For more information, see [Set
|
1232
|
+
# instance maintenance policy][1] in the *Amazon EC2 Auto Scaling User
|
1233
|
+
# Guide*.
|
1234
|
+
#
|
1235
|
+
#
|
1236
|
+
#
|
1237
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
|
1238
|
+
#
|
1230
1239
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1231
1240
|
#
|
1232
1241
|
#
|
@@ -1487,6 +1496,10 @@ module Aws::AutoScaling
|
|
1487
1496
|
# type: "XmlStringMaxLen511",
|
1488
1497
|
# },
|
1489
1498
|
# ],
|
1499
|
+
# instance_maintenance_policy: {
|
1500
|
+
# min_healthy_percentage: 1,
|
1501
|
+
# max_healthy_percentage: 1,
|
1502
|
+
# },
|
1490
1503
|
# })
|
1491
1504
|
#
|
1492
1505
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup AWS API Documentation
|
@@ -2590,6 +2603,8 @@ module Aws::AutoScaling
|
|
2590
2603
|
# resp.auto_scaling_groups[0].traffic_sources #=> Array
|
2591
2604
|
# resp.auto_scaling_groups[0].traffic_sources[0].identifier #=> String
|
2592
2605
|
# resp.auto_scaling_groups[0].traffic_sources[0].type #=> String
|
2606
|
+
# resp.auto_scaling_groups[0].instance_maintenance_policy.min_healthy_percentage #=> Integer
|
2607
|
+
# resp.auto_scaling_groups[0].instance_maintenance_policy.max_healthy_percentage #=> Integer
|
2593
2608
|
# resp.next_token #=> String
|
2594
2609
|
#
|
2595
2610
|
#
|
@@ -2800,6 +2815,7 @@ module Aws::AutoScaling
|
|
2800
2815
|
# },
|
2801
2816
|
# auto_rollback: true,
|
2802
2817
|
# instance_warmup: 200,
|
2818
|
+
# max_healthy_percentage: 120,
|
2803
2819
|
# min_healthy_percentage: 90,
|
2804
2820
|
# scale_in_protected_instances: "Ignore",
|
2805
2821
|
# skip_matching: false,
|
@@ -2823,6 +2839,7 @@ module Aws::AutoScaling
|
|
2823
2839
|
# },
|
2824
2840
|
# auto_rollback: true,
|
2825
2841
|
# instance_warmup: 200,
|
2842
|
+
# max_healthy_percentage: 120,
|
2826
2843
|
# min_healthy_percentage: 90,
|
2827
2844
|
# scale_in_protected_instances: "Ignore",
|
2828
2845
|
# skip_matching: false,
|
@@ -2869,6 +2886,7 @@ module Aws::AutoScaling
|
|
2869
2886
|
# resp.instance_refreshes[0].preferences.standby_instances #=> String, one of "Terminate", "Ignore", "Wait"
|
2870
2887
|
# resp.instance_refreshes[0].preferences.alarm_specification.alarms #=> Array
|
2871
2888
|
# resp.instance_refreshes[0].preferences.alarm_specification.alarms[0] #=> String
|
2889
|
+
# resp.instance_refreshes[0].preferences.max_healthy_percentage #=> Integer
|
2872
2890
|
# resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_id #=> String
|
2873
2891
|
# resp.instance_refreshes[0].desired_configuration.launch_template.launch_template_name #=> String
|
2874
2892
|
# resp.instance_refreshes[0].desired_configuration.launch_template.version #=> String
|
@@ -6347,11 +6365,7 @@ module Aws::AutoScaling
|
|
6347
6365
|
req.send_request(options)
|
6348
6366
|
end
|
6349
6367
|
|
6350
|
-
# Starts an instance refresh.
|
6351
|
-
# Auto Scaling performs a rolling update of instances in an Auto Scaling
|
6352
|
-
# group. Instances are terminated first and then replaced, which
|
6353
|
-
# temporarily reduces the capacity available within your Auto Scaling
|
6354
|
-
# group.
|
6368
|
+
# Starts an instance refresh.
|
6355
6369
|
#
|
6356
6370
|
# This operation is part of the [instance refresh feature][1] in Amazon
|
6357
6371
|
# EC2 Auto Scaling, which helps you update instances in your Auto
|
@@ -6414,10 +6428,10 @@ module Aws::AutoScaling
|
|
6414
6428
|
# @option params [Types::RefreshPreferences] :preferences
|
6415
6429
|
# Sets your preferences for the instance refresh so that it performs as
|
6416
6430
|
# expected when you start it. Includes the instance warmup time, the
|
6417
|
-
# minimum healthy
|
6418
|
-
# Auto Scaling to use if instances that are in `Standby`
|
6419
|
-
# protected from scale in are found. You can also choose to
|
6420
|
-
# additional features, such as the following:
|
6431
|
+
# minimum and maximum healthy percentages, and the behaviors that you
|
6432
|
+
# want Amazon EC2 Auto Scaling to use if instances that are in `Standby`
|
6433
|
+
# state or protected from scale in are found. You can also choose to
|
6434
|
+
# enable additional features, such as the following:
|
6421
6435
|
#
|
6422
6436
|
# * Auto rollback
|
6423
6437
|
#
|
@@ -6452,6 +6466,7 @@ module Aws::AutoScaling
|
|
6452
6466
|
# },
|
6453
6467
|
# auto_rollback: true,
|
6454
6468
|
# instance_warmup: 200,
|
6469
|
+
# max_healthy_percentage: 120,
|
6455
6470
|
# min_healthy_percentage: 90,
|
6456
6471
|
# },
|
6457
6472
|
# })
|
@@ -6565,6 +6580,7 @@ module Aws::AutoScaling
|
|
6565
6580
|
# alarm_specification: {
|
6566
6581
|
# alarms: ["XmlStringMaxLen255"],
|
6567
6582
|
# },
|
6583
|
+
# max_healthy_percentage: 1,
|
6568
6584
|
# },
|
6569
6585
|
# })
|
6570
6586
|
#
|
@@ -6986,6 +7002,15 @@ module Aws::AutoScaling
|
|
6986
7002
|
#
|
6987
7003
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
6988
7004
|
#
|
7005
|
+
# @option params [Types::InstanceMaintenancePolicy] :instance_maintenance_policy
|
7006
|
+
# An instance maintenance policy. For more information, see [Set
|
7007
|
+
# instance maintenance policy][1] in the *Amazon EC2 Auto Scaling User
|
7008
|
+
# Guide*.
|
7009
|
+
#
|
7010
|
+
#
|
7011
|
+
#
|
7012
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
|
7013
|
+
#
|
6989
7014
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
6990
7015
|
#
|
6991
7016
|
#
|
@@ -7111,6 +7136,10 @@ module Aws::AutoScaling
|
|
7111
7136
|
# context: "Context",
|
7112
7137
|
# desired_capacity_type: "XmlStringMaxLen255",
|
7113
7138
|
# default_instance_warmup: 1,
|
7139
|
+
# instance_maintenance_policy: {
|
7140
|
+
# min_healthy_percentage: 1,
|
7141
|
+
# max_healthy_percentage: 1,
|
7142
|
+
# },
|
7114
7143
|
# })
|
7115
7144
|
#
|
7116
7145
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation
|
@@ -7135,7 +7164,7 @@ module Aws::AutoScaling
|
|
7135
7164
|
params: params,
|
7136
7165
|
config: config)
|
7137
7166
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
7138
|
-
context[:gem_version] = '1.
|
7167
|
+
context[:gem_version] = '1.100.0'
|
7139
7168
|
Seahorse::Client::Request.new(handlers, context)
|
7140
7169
|
end
|
7141
7170
|
|
@@ -169,6 +169,7 @@ module Aws::AutoScaling
|
|
169
169
|
InstanceGeneration = Shapes::StringShape.new(name: 'InstanceGeneration')
|
170
170
|
InstanceGenerations = Shapes::ListShape.new(name: 'InstanceGenerations')
|
171
171
|
InstanceIds = Shapes::ListShape.new(name: 'InstanceIds')
|
172
|
+
InstanceMaintenancePolicy = Shapes::StructureShape.new(name: 'InstanceMaintenancePolicy')
|
172
173
|
InstanceMetadataEndpointState = Shapes::StringShape.new(name: 'InstanceMetadataEndpointState')
|
173
174
|
InstanceMetadataHttpPutResponseHopLimit = Shapes::IntegerShape.new(name: 'InstanceMetadataHttpPutResponseHopLimit')
|
174
175
|
InstanceMetadataHttpTokensState = Shapes::StringShape.new(name: 'InstanceMetadataHttpTokensState')
|
@@ -189,6 +190,9 @@ module Aws::AutoScaling
|
|
189
190
|
InstancesDistribution = Shapes::StructureShape.new(name: 'InstancesDistribution')
|
190
191
|
InstancesToUpdate = Shapes::IntegerShape.new(name: 'InstancesToUpdate')
|
191
192
|
IntPercent = Shapes::IntegerShape.new(name: 'IntPercent')
|
193
|
+
IntPercent100To200 = Shapes::IntegerShape.new(name: 'IntPercent100To200')
|
194
|
+
IntPercent100To200Resettable = Shapes::IntegerShape.new(name: 'IntPercent100To200Resettable')
|
195
|
+
IntPercentResettable = Shapes::IntegerShape.new(name: 'IntPercentResettable')
|
192
196
|
InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
|
193
197
|
IrreversibleInstanceRefreshFault = Shapes::StructureShape.new(name: 'IrreversibleInstanceRefreshFault')
|
194
198
|
LaunchConfiguration = Shapes::StructureShape.new(name: 'LaunchConfiguration')
|
@@ -509,6 +513,7 @@ module Aws::AutoScaling
|
|
509
513
|
AutoScalingGroup.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
|
510
514
|
AutoScalingGroup.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
|
511
515
|
AutoScalingGroup.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, location_name: "TrafficSources"))
|
516
|
+
AutoScalingGroup.add_member(:instance_maintenance_policy, Shapes::ShapeRef.new(shape: InstanceMaintenancePolicy, location_name: "InstanceMaintenancePolicy"))
|
512
517
|
AutoScalingGroup.struct_class = Types::AutoScalingGroup
|
513
518
|
|
514
519
|
AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
|
@@ -625,6 +630,7 @@ module Aws::AutoScaling
|
|
625
630
|
CreateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
|
626
631
|
CreateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
|
627
632
|
CreateAutoScalingGroupType.add_member(:traffic_sources, Shapes::ShapeRef.new(shape: TrafficSources, location_name: "TrafficSources"))
|
633
|
+
CreateAutoScalingGroupType.add_member(:instance_maintenance_policy, Shapes::ShapeRef.new(shape: InstanceMaintenancePolicy, location_name: "InstanceMaintenancePolicy"))
|
628
634
|
CreateAutoScalingGroupType.struct_class = Types::CreateAutoScalingGroupType
|
629
635
|
|
630
636
|
CreateLaunchConfigurationType.add_member(:launch_configuration_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "LaunchConfigurationName"))
|
@@ -925,6 +931,10 @@ module Aws::AutoScaling
|
|
925
931
|
|
926
932
|
InstanceIds.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen19)
|
927
933
|
|
934
|
+
InstanceMaintenancePolicy.add_member(:min_healthy_percentage, Shapes::ShapeRef.new(shape: IntPercentResettable, location_name: "MinHealthyPercentage"))
|
935
|
+
InstanceMaintenancePolicy.add_member(:max_healthy_percentage, Shapes::ShapeRef.new(shape: IntPercent100To200Resettable, location_name: "MaxHealthyPercentage"))
|
936
|
+
InstanceMaintenancePolicy.struct_class = Types::InstanceMaintenancePolicy
|
937
|
+
|
928
938
|
InstanceMetadataOptions.add_member(:http_tokens, Shapes::ShapeRef.new(shape: InstanceMetadataHttpTokensState, location_name: "HttpTokens"))
|
929
939
|
InstanceMetadataOptions.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: InstanceMetadataHttpPutResponseHopLimit, location_name: "HttpPutResponseHopLimit"))
|
930
940
|
InstanceMetadataOptions.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "HttpEndpoint"))
|
@@ -1321,6 +1331,7 @@ module Aws::AutoScaling
|
|
1321
1331
|
RefreshPreferences.add_member(:scale_in_protected_instances, Shapes::ShapeRef.new(shape: ScaleInProtectedInstances, location_name: "ScaleInProtectedInstances"))
|
1322
1332
|
RefreshPreferences.add_member(:standby_instances, Shapes::ShapeRef.new(shape: StandbyInstances, location_name: "StandbyInstances"))
|
1323
1333
|
RefreshPreferences.add_member(:alarm_specification, Shapes::ShapeRef.new(shape: AlarmSpecification, location_name: "AlarmSpecification"))
|
1334
|
+
RefreshPreferences.add_member(:max_healthy_percentage, Shapes::ShapeRef.new(shape: IntPercent100To200, location_name: "MaxHealthyPercentage"))
|
1324
1335
|
RefreshPreferences.struct_class = Types::RefreshPreferences
|
1325
1336
|
|
1326
1337
|
ResourceContentionFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
|
@@ -1535,6 +1546,7 @@ module Aws::AutoScaling
|
|
1535
1546
|
UpdateAutoScalingGroupType.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "Context"))
|
1536
1547
|
UpdateAutoScalingGroupType.add_member(:desired_capacity_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "DesiredCapacityType"))
|
1537
1548
|
UpdateAutoScalingGroupType.add_member(:default_instance_warmup, Shapes::ShapeRef.new(shape: DefaultInstanceWarmup, location_name: "DefaultInstanceWarmup"))
|
1549
|
+
UpdateAutoScalingGroupType.add_member(:instance_maintenance_policy, Shapes::ShapeRef.new(shape: InstanceMaintenancePolicy, location_name: "InstanceMaintenancePolicy"))
|
1538
1550
|
UpdateAutoScalingGroupType.struct_class = Types::UpdateAutoScalingGroupType
|
1539
1551
|
|
1540
1552
|
VCpuCountRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, required: true, location_name: "Min"))
|
@@ -32,8 +32,8 @@ module Aws::AutoScaling
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
36
|
-
if Aws::Endpoints::Matchers.string_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
37
37
|
return Aws::Endpoints::Endpoint.new(url: "https://autoscaling.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
38
|
end
|
39
39
|
return Aws::Endpoints::Endpoint.new(url: "https://autoscaling-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
@@ -171,6 +171,10 @@ module Aws::AutoScaling
|
|
171
171
|
# type: "XmlStringMaxLen511",
|
172
172
|
# },
|
173
173
|
# ],
|
174
|
+
# instance_maintenance_policy: {
|
175
|
+
# min_healthy_percentage: 1,
|
176
|
+
# max_healthy_percentage: 1,
|
177
|
+
# },
|
174
178
|
# })
|
175
179
|
# @param [Hash] options ({})
|
176
180
|
# @option options [required, String] :auto_scaling_group_name
|
@@ -453,6 +457,14 @@ module Aws::AutoScaling
|
|
453
457
|
# can use any of the following as traffic sources for an Auto Scaling
|
454
458
|
# group: Classic Load Balancer, Application Load Balancer, Gateway Load
|
455
459
|
# Balancer, Network Load Balancer, and VPC Lattice.
|
460
|
+
# @option options [Types::InstanceMaintenancePolicy] :instance_maintenance_policy
|
461
|
+
# An instance maintenance policy. For more information, see [Set
|
462
|
+
# instance maintenance policy][1] in the *Amazon EC2 Auto Scaling User
|
463
|
+
# Guide*.
|
464
|
+
#
|
465
|
+
#
|
466
|
+
#
|
467
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
|
456
468
|
# @return [AutoScalingGroup]
|
457
469
|
def create_group(options = {})
|
458
470
|
Aws::Plugins::UserAgent.feature('resource') do
|
@@ -475,6 +475,10 @@ module Aws::AutoScaling
|
|
475
475
|
# The traffic sources associated with this Auto Scaling group.
|
476
476
|
# @return [Array<Types::TrafficSourceIdentifier>]
|
477
477
|
#
|
478
|
+
# @!attribute [rw] instance_maintenance_policy
|
479
|
+
# An instance maintenance policy.
|
480
|
+
# @return [Types::InstanceMaintenancePolicy]
|
481
|
+
#
|
478
482
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
|
479
483
|
#
|
480
484
|
class AutoScalingGroup < Struct.new(
|
@@ -511,7 +515,8 @@ module Aws::AutoScaling
|
|
511
515
|
:context,
|
512
516
|
:desired_capacity_type,
|
513
517
|
:default_instance_warmup,
|
514
|
-
:traffic_sources
|
518
|
+
:traffic_sources,
|
519
|
+
:instance_maintenance_policy)
|
515
520
|
SENSITIVE = []
|
516
521
|
include Aws::Structure
|
517
522
|
end
|
@@ -1232,6 +1237,16 @@ module Aws::AutoScaling
|
|
1232
1237
|
# Gateway Load Balancer, Network Load Balancer, and VPC Lattice.
|
1233
1238
|
# @return [Array<Types::TrafficSourceIdentifier>]
|
1234
1239
|
#
|
1240
|
+
# @!attribute [rw] instance_maintenance_policy
|
1241
|
+
# An instance maintenance policy. For more information, see [Set
|
1242
|
+
# instance maintenance policy][1] in the *Amazon EC2 Auto Scaling User
|
1243
|
+
# Guide*.
|
1244
|
+
#
|
1245
|
+
#
|
1246
|
+
#
|
1247
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
|
1248
|
+
# @return [Types::InstanceMaintenancePolicy]
|
1249
|
+
#
|
1235
1250
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroupType AWS API Documentation
|
1236
1251
|
#
|
1237
1252
|
class CreateAutoScalingGroupType < Struct.new(
|
@@ -1261,7 +1276,8 @@ module Aws::AutoScaling
|
|
1261
1276
|
:context,
|
1262
1277
|
:desired_capacity_type,
|
1263
1278
|
:default_instance_warmup,
|
1264
|
-
:traffic_sources
|
1279
|
+
:traffic_sources,
|
1280
|
+
:instance_maintenance_policy)
|
1265
1281
|
SENSITIVE = []
|
1266
1282
|
include Aws::Structure
|
1267
1283
|
end
|
@@ -3182,6 +3198,47 @@ module Aws::AutoScaling
|
|
3182
3198
|
include Aws::Structure
|
3183
3199
|
end
|
3184
3200
|
|
3201
|
+
# Describes an instance maintenance policy.
|
3202
|
+
#
|
3203
|
+
# For more information, see [Set instance maintenance policy][1] in the
|
3204
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
3205
|
+
#
|
3206
|
+
#
|
3207
|
+
#
|
3208
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
|
3209
|
+
#
|
3210
|
+
# @!attribute [rw] min_healthy_percentage
|
3211
|
+
# Specifies the lower threshold as a percentage of the desired
|
3212
|
+
# capacity of the Auto Scaling group. It represents the minimum
|
3213
|
+
# percentage of the group to keep in service, healthy, and ready to
|
3214
|
+
# use to support your workload when replacing instances. Value range
|
3215
|
+
# is 0 to 100. After it's set, a value of `-1` will clear the
|
3216
|
+
# previously set value.
|
3217
|
+
# @return [Integer]
|
3218
|
+
#
|
3219
|
+
# @!attribute [rw] max_healthy_percentage
|
3220
|
+
# Specifies the upper threshold as a percentage of the desired
|
3221
|
+
# capacity of the Auto Scaling group. It represents the maximum
|
3222
|
+
# percentage of the group that can be in service and healthy, or
|
3223
|
+
# pending, to support your workload when replacing instances. Value
|
3224
|
+
# range is 100 to 200. After it's set, a value of `-1` will clear the
|
3225
|
+
# previously set value.
|
3226
|
+
#
|
3227
|
+
# Both `MinHealthyPercentage` and `MaxHealthyPercentage` must be
|
3228
|
+
# specified, and the difference between them cannot be greater than
|
3229
|
+
# 100. A large range increases the number of instances that can be
|
3230
|
+
# replaced at the same time.
|
3231
|
+
# @return [Integer]
|
3232
|
+
#
|
3233
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceMaintenancePolicy AWS API Documentation
|
3234
|
+
#
|
3235
|
+
class InstanceMaintenancePolicy < Struct.new(
|
3236
|
+
:min_healthy_percentage,
|
3237
|
+
:max_healthy_percentage)
|
3238
|
+
SENSITIVE = []
|
3239
|
+
include Aws::Structure
|
3240
|
+
end
|
3241
|
+
|
3185
3242
|
# The metadata options for the instances. For more information, see
|
3186
3243
|
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
|
3187
3244
|
# Scaling User Guide*.
|
@@ -6188,16 +6245,14 @@ module Aws::AutoScaling
|
|
6188
6245
|
# Describes the preferences for an instance refresh.
|
6189
6246
|
#
|
6190
6247
|
# @!attribute [rw] min_healthy_percentage
|
6191
|
-
#
|
6192
|
-
#
|
6193
|
-
# is expressed as a percentage of the
|
6194
|
-
#
|
6195
|
-
#
|
6196
|
-
#
|
6197
|
-
#
|
6198
|
-
#
|
6199
|
-
# it to 0 percent has the effect of replacing all instances at the
|
6200
|
-
# same time.
|
6248
|
+
# Specifies the minimum percentage of the group to keep in service,
|
6249
|
+
# healthy, and ready to use to support your workload to allow the
|
6250
|
+
# operation to continue. The value is expressed as a percentage of the
|
6251
|
+
# desired capacity of the Auto Scaling group. Value range is 0 to 100.
|
6252
|
+
#
|
6253
|
+
# If you do not specify this property, the default is 90 percent, or
|
6254
|
+
# the percentage set in the instance maintenance policy for the Auto
|
6255
|
+
# Scaling group, if defined.
|
6201
6256
|
# @return [Integer]
|
6202
6257
|
#
|
6203
6258
|
# @!attribute [rw] instance_warmup
|
@@ -6333,6 +6388,22 @@ module Aws::AutoScaling
|
|
6333
6388
|
# threshold is met.
|
6334
6389
|
# @return [Types::AlarmSpecification]
|
6335
6390
|
#
|
6391
|
+
# @!attribute [rw] max_healthy_percentage
|
6392
|
+
# Specifies the maximum percentage of the group that can be in service
|
6393
|
+
# and healthy, or pending, to support your workload when replacing
|
6394
|
+
# instances. The value is expressed as a percentage of the desired
|
6395
|
+
# capacity of the Auto Scaling group. Value range is 100 to 200.
|
6396
|
+
#
|
6397
|
+
# If you specify `MaxHealthyPercentage`, you must also specify
|
6398
|
+
# `MinHealthyPercentage`, and the difference between them cannot be
|
6399
|
+
# greater than 100. A larger range increases the number of instances
|
6400
|
+
# that can be replaced at the same time.
|
6401
|
+
#
|
6402
|
+
# If you do not specify this property, the default is 100 percent, or
|
6403
|
+
# the percentage set in the instance maintenance policy for the Auto
|
6404
|
+
# Scaling group, if defined.
|
6405
|
+
# @return [Integer]
|
6406
|
+
#
|
6336
6407
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RefreshPreferences AWS API Documentation
|
6337
6408
|
#
|
6338
6409
|
class RefreshPreferences < Struct.new(
|
@@ -6344,7 +6415,8 @@ module Aws::AutoScaling
|
|
6344
6415
|
:auto_rollback,
|
6345
6416
|
:scale_in_protected_instances,
|
6346
6417
|
:standby_instances,
|
6347
|
-
:alarm_specification
|
6418
|
+
:alarm_specification,
|
6419
|
+
:max_healthy_percentage)
|
6348
6420
|
SENSITIVE = []
|
6349
6421
|
include Aws::Structure
|
6350
6422
|
end
|
@@ -6934,10 +7006,10 @@ module Aws::AutoScaling
|
|
6934
7006
|
# @!attribute [rw] preferences
|
6935
7007
|
# Sets your preferences for the instance refresh so that it performs
|
6936
7008
|
# as expected when you start it. Includes the instance warmup time,
|
6937
|
-
# the minimum healthy
|
6938
|
-
# Amazon EC2 Auto Scaling to use if instances that are in
|
6939
|
-
# state or protected from scale in are found. You can also
|
6940
|
-
# enable additional features, such as the following:
|
7009
|
+
# the minimum and maximum healthy percentages, and the behaviors that
|
7010
|
+
# you want Amazon EC2 Auto Scaling to use if instances that are in
|
7011
|
+
# `Standby` state or protected from scale in are found. You can also
|
7012
|
+
# choose to enable additional features, such as the following:
|
6941
7013
|
#
|
6942
7014
|
# * Auto rollback
|
6943
7015
|
#
|
@@ -7703,6 +7775,16 @@ module Aws::AutoScaling
|
|
7703
7775
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html
|
7704
7776
|
# @return [Integer]
|
7705
7777
|
#
|
7778
|
+
# @!attribute [rw] instance_maintenance_policy
|
7779
|
+
# An instance maintenance policy. For more information, see [Set
|
7780
|
+
# instance maintenance policy][1] in the *Amazon EC2 Auto Scaling User
|
7781
|
+
# Guide*.
|
7782
|
+
#
|
7783
|
+
#
|
7784
|
+
#
|
7785
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html
|
7786
|
+
# @return [Types::InstanceMaintenancePolicy]
|
7787
|
+
#
|
7706
7788
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation
|
7707
7789
|
#
|
7708
7790
|
class UpdateAutoScalingGroupType < Struct.new(
|
@@ -7726,7 +7808,8 @@ module Aws::AutoScaling
|
|
7726
7808
|
:capacity_rebalance,
|
7727
7809
|
:context,
|
7728
7810
|
:desired_capacity_type,
|
7729
|
-
:default_instance_warmup
|
7811
|
+
:default_instance_warmup,
|
7812
|
+
:instance_maintenance_policy)
|
7730
7813
|
SENSITIVE = []
|
7731
7814
|
include Aws::Structure
|
7732
7815
|
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.100.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-
|
11
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|