aws-sdk-autoscaling 1.47.0 → 1.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-autoscaling.rb +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +21 -0
- data/lib/aws-sdk-autoscaling/client.rb +45 -5
- data/lib/aws-sdk-autoscaling/client_api.rb +4 -0
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +4 -4
- data/lib/aws-sdk-autoscaling/resource.rb +20 -4
- data/lib/aws-sdk-autoscaling/types.rb +69 -22
- 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: 2733052946fdae41ba318a15526e6c1a721f9a9030746b47dbfc5b3dfed62726
|
4
|
+
data.tar.gz: add416cedb67d8d8f93cbf23dc135806e3f2fad6e157563f4a30fbb28766341f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0762332cc703ebe4b886c870b565d3f7e4b7648a9c75a4ecb48a7ac010313d2b4197d13dcfc4503fd6b4104e98a797fa7791764f7b639d29b9ff90a4d5d1e313
|
7
|
+
data.tar.gz: 6ca77c2aa42babfe0b944e5d56b42dcb7902db8e8544c509697aefcec764fd8eebb6aeaa94d91d3e44c01a5ee1c5b436f35136fd955b683279cbeea5e84e80d6
|
data/lib/aws-sdk-autoscaling.rb
CHANGED
@@ -186,6 +186,12 @@ module Aws::AutoScaling
|
|
186
186
|
data[:max_instance_lifetime]
|
187
187
|
end
|
188
188
|
|
189
|
+
# Indicates whether capacity rebalance is enabled.
|
190
|
+
# @return [Boolean]
|
191
|
+
def capacity_rebalance
|
192
|
+
data[:capacity_rebalance]
|
193
|
+
end
|
194
|
+
|
189
195
|
# @!endgroup
|
190
196
|
|
191
197
|
# @return [Client]
|
@@ -915,6 +921,7 @@ module Aws::AutoScaling
|
|
915
921
|
# new_instances_protected_from_scale_in: false,
|
916
922
|
# service_linked_role_arn: "ResourceName",
|
917
923
|
# max_instance_lifetime: 1,
|
924
|
+
# capacity_rebalance: false,
|
918
925
|
# })
|
919
926
|
# @param [Hash] options ({})
|
920
927
|
# @option options [String] :launch_configuration_name
|
@@ -1065,6 +1072,20 @@ module Aws::AutoScaling
|
|
1065
1072
|
#
|
1066
1073
|
#
|
1067
1074
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
1075
|
+
# @option options [Boolean] :capacity_rebalance
|
1076
|
+
# Enables or disables capacity rebalance.
|
1077
|
+
#
|
1078
|
+
# You can enable capacity rebalancing for your Auto Scaling groups when
|
1079
|
+
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
1080
|
+
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
1081
|
+
# EC2 predicts that a Spot Instance is at an elevated risk of
|
1082
|
+
# interruption. After launching a new instance, it then terminates an
|
1083
|
+
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
1084
|
+
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
1085
|
+
#
|
1086
|
+
#
|
1087
|
+
#
|
1088
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
1068
1089
|
# @return [AutoScalingGroup]
|
1069
1090
|
def update(options = {})
|
1070
1091
|
options = options.merge(auto_scaling_group_name: @name)
|
@@ -963,6 +963,22 @@ module Aws::AutoScaling
|
|
963
963
|
#
|
964
964
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
965
965
|
#
|
966
|
+
# @option params [Boolean] :capacity_rebalance
|
967
|
+
# Indicates whether capacity rebalance is enabled. Otherwise, capacity
|
968
|
+
# rebalance is disabled.
|
969
|
+
#
|
970
|
+
# You can enable capacity rebalancing for your Auto Scaling groups when
|
971
|
+
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
972
|
+
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
973
|
+
# EC2 predicts that a Spot Instance is at an elevated risk of
|
974
|
+
# interruption. After launching a new instance, it then terminates an
|
975
|
+
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
976
|
+
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
977
|
+
#
|
978
|
+
#
|
979
|
+
#
|
980
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
981
|
+
#
|
966
982
|
# @option params [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
|
967
983
|
# One or more lifecycle hooks.
|
968
984
|
#
|
@@ -1116,6 +1132,7 @@ module Aws::AutoScaling
|
|
1116
1132
|
# vpc_zone_identifier: "XmlStringMaxLen2047",
|
1117
1133
|
# termination_policies: ["XmlStringMaxLen1600"],
|
1118
1134
|
# new_instances_protected_from_scale_in: false,
|
1135
|
+
# capacity_rebalance: false,
|
1119
1136
|
# lifecycle_hook_specification_list: [
|
1120
1137
|
# {
|
1121
1138
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
@@ -1303,7 +1320,7 @@ module Aws::AutoScaling
|
|
1303
1320
|
#
|
1304
1321
|
#
|
1305
1322
|
#
|
1306
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/
|
1323
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
|
1307
1324
|
#
|
1308
1325
|
# @option params [String] :spot_price
|
1309
1326
|
# The maximum hourly price to be paid for any Spot Instance launched to
|
@@ -1398,12 +1415,12 @@ module Aws::AutoScaling
|
|
1398
1415
|
#
|
1399
1416
|
# @option params [Types::InstanceMetadataOptions] :metadata_options
|
1400
1417
|
# The metadata options for the instances. For more information, see
|
1401
|
-
# [Instance Metadata
|
1402
|
-
#
|
1418
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
|
1419
|
+
# Scaling User Guide*.
|
1403
1420
|
#
|
1404
1421
|
#
|
1405
1422
|
#
|
1406
|
-
# [1]: https://docs.aws.amazon.com/
|
1423
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
1407
1424
|
#
|
1408
1425
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1409
1426
|
#
|
@@ -2101,6 +2118,7 @@ module Aws::AutoScaling
|
|
2101
2118
|
# resp.auto_scaling_groups[0].new_instances_protected_from_scale_in #=> Boolean
|
2102
2119
|
# resp.auto_scaling_groups[0].service_linked_role_arn #=> String
|
2103
2120
|
# resp.auto_scaling_groups[0].max_instance_lifetime #=> Integer
|
2121
|
+
# resp.auto_scaling_groups[0].capacity_rebalance #=> Boolean
|
2104
2122
|
# resp.next_token #=> String
|
2105
2123
|
#
|
2106
2124
|
#
|
@@ -4082,6 +4100,9 @@ module Aws::AutoScaling
|
|
4082
4100
|
# Auto Scaling Group Scales][1] in the *Amazon EC2 Auto Scaling User
|
4083
4101
|
# Guide*.
|
4084
4102
|
#
|
4103
|
+
# If you exceed your maximum limit of SNS topics, which is 10 per Auto
|
4104
|
+
# Scaling group, the call fails.
|
4105
|
+
#
|
4085
4106
|
#
|
4086
4107
|
#
|
4087
4108
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html
|
@@ -4748,6 +4769,9 @@ module Aws::AutoScaling
|
|
4748
4769
|
# Auto Scaling group from terminating on scale in, see [Instance
|
4749
4770
|
# Protection][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
4750
4771
|
#
|
4772
|
+
# If you exceed your maximum limit of instance IDs, which is 50 per Auto
|
4773
|
+
# Scaling group, the call fails.
|
4774
|
+
#
|
4751
4775
|
#
|
4752
4776
|
#
|
4753
4777
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
@@ -5257,6 +5281,21 @@ module Aws::AutoScaling
|
|
5257
5281
|
#
|
5258
5282
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
5259
5283
|
#
|
5284
|
+
# @option params [Boolean] :capacity_rebalance
|
5285
|
+
# Enables or disables capacity rebalance.
|
5286
|
+
#
|
5287
|
+
# You can enable capacity rebalancing for your Auto Scaling groups when
|
5288
|
+
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
5289
|
+
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
5290
|
+
# EC2 predicts that a Spot Instance is at an elevated risk of
|
5291
|
+
# interruption. After launching a new instance, it then terminates an
|
5292
|
+
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
5293
|
+
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
5294
|
+
#
|
5295
|
+
#
|
5296
|
+
#
|
5297
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
5298
|
+
#
|
5260
5299
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
5261
5300
|
#
|
5262
5301
|
#
|
@@ -5334,6 +5373,7 @@ module Aws::AutoScaling
|
|
5334
5373
|
# new_instances_protected_from_scale_in: false,
|
5335
5374
|
# service_linked_role_arn: "ResourceName",
|
5336
5375
|
# max_instance_lifetime: 1,
|
5376
|
+
# capacity_rebalance: false,
|
5337
5377
|
# })
|
5338
5378
|
#
|
5339
5379
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup AWS API Documentation
|
@@ -5358,7 +5398,7 @@ module Aws::AutoScaling
|
|
5358
5398
|
params: params,
|
5359
5399
|
config: config)
|
5360
5400
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
5361
|
-
context[:gem_version] = '1.
|
5401
|
+
context[:gem_version] = '1.48.0'
|
5362
5402
|
Seahorse::Client::Request.new(handlers, context)
|
5363
5403
|
end
|
5364
5404
|
|
@@ -57,6 +57,7 @@ module Aws::AutoScaling
|
|
57
57
|
BlockDeviceMappings = Shapes::ListShape.new(name: 'BlockDeviceMappings')
|
58
58
|
CancelInstanceRefreshAnswer = Shapes::StructureShape.new(name: 'CancelInstanceRefreshAnswer')
|
59
59
|
CancelInstanceRefreshType = Shapes::StructureShape.new(name: 'CancelInstanceRefreshType')
|
60
|
+
CapacityRebalanceEnabled = Shapes::BooleanShape.new(name: 'CapacityRebalanceEnabled')
|
60
61
|
ClassicLinkVPCSecurityGroups = Shapes::ListShape.new(name: 'ClassicLinkVPCSecurityGroups')
|
61
62
|
CompleteLifecycleActionAnswer = Shapes::StructureShape.new(name: 'CompleteLifecycleActionAnswer')
|
62
63
|
CompleteLifecycleActionType = Shapes::StructureShape.new(name: 'CompleteLifecycleActionType')
|
@@ -358,6 +359,7 @@ module Aws::AutoScaling
|
|
358
359
|
AutoScalingGroup.add_member(:new_instances_protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, location_name: "NewInstancesProtectedFromScaleIn"))
|
359
360
|
AutoScalingGroup.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
|
360
361
|
AutoScalingGroup.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
|
362
|
+
AutoScalingGroup.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
|
361
363
|
AutoScalingGroup.struct_class = Types::AutoScalingGroup
|
362
364
|
|
363
365
|
AutoScalingGroupNames.member = Shapes::ShapeRef.new(shape: ResourceName)
|
@@ -452,6 +454,7 @@ module Aws::AutoScaling
|
|
452
454
|
CreateAutoScalingGroupType.add_member(:vpc_zone_identifier, Shapes::ShapeRef.new(shape: XmlStringMaxLen2047, location_name: "VPCZoneIdentifier"))
|
453
455
|
CreateAutoScalingGroupType.add_member(:termination_policies, Shapes::ShapeRef.new(shape: TerminationPolicies, location_name: "TerminationPolicies"))
|
454
456
|
CreateAutoScalingGroupType.add_member(:new_instances_protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, location_name: "NewInstancesProtectedFromScaleIn"))
|
457
|
+
CreateAutoScalingGroupType.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
|
455
458
|
CreateAutoScalingGroupType.add_member(:lifecycle_hook_specification_list, Shapes::ShapeRef.new(shape: LifecycleHookSpecifications, location_name: "LifecycleHookSpecificationList"))
|
456
459
|
CreateAutoScalingGroupType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
457
460
|
CreateAutoScalingGroupType.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
|
@@ -1105,6 +1108,7 @@ module Aws::AutoScaling
|
|
1105
1108
|
UpdateAutoScalingGroupType.add_member(:new_instances_protected_from_scale_in, Shapes::ShapeRef.new(shape: InstanceProtected, location_name: "NewInstancesProtectedFromScaleIn"))
|
1106
1109
|
UpdateAutoScalingGroupType.add_member(:service_linked_role_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "ServiceLinkedRoleARN"))
|
1107
1110
|
UpdateAutoScalingGroupType.add_member(:max_instance_lifetime, Shapes::ShapeRef.new(shape: MaxInstanceLifetime, location_name: "MaxInstanceLifetime"))
|
1111
|
+
UpdateAutoScalingGroupType.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: CapacityRebalanceEnabled, location_name: "CapacityRebalance"))
|
1108
1112
|
UpdateAutoScalingGroupType.struct_class = Types::UpdateAutoScalingGroupType
|
1109
1113
|
|
1110
1114
|
Values.member = Shapes::ShapeRef.new(shape: XmlString)
|
@@ -175,7 +175,7 @@ module Aws::AutoScaling
|
|
175
175
|
#
|
176
176
|
#
|
177
177
|
#
|
178
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/
|
178
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
|
179
179
|
# @return [Types::InstanceMonitoring]
|
180
180
|
def instance_monitoring
|
181
181
|
data[:instance_monitoring]
|
@@ -261,12 +261,12 @@ module Aws::AutoScaling
|
|
261
261
|
end
|
262
262
|
|
263
263
|
# The metadata options for the instances. For more information, see
|
264
|
-
# [Instance Metadata
|
265
|
-
#
|
264
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
|
265
|
+
# Scaling User Guide*.
|
266
266
|
#
|
267
267
|
#
|
268
268
|
#
|
269
|
-
# [1]: https://docs.aws.amazon.com/
|
269
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
270
270
|
# @return [Types::InstanceMetadataOptions]
|
271
271
|
def metadata_options
|
272
272
|
data[:metadata_options]
|
@@ -82,6 +82,7 @@ module Aws::AutoScaling
|
|
82
82
|
# vpc_zone_identifier: "XmlStringMaxLen2047",
|
83
83
|
# termination_policies: ["XmlStringMaxLen1600"],
|
84
84
|
# new_instances_protected_from_scale_in: false,
|
85
|
+
# capacity_rebalance: false,
|
85
86
|
# lifecycle_hook_specification_list: [
|
86
87
|
# {
|
87
88
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
@@ -310,6 +311,21 @@ module Aws::AutoScaling
|
|
310
311
|
#
|
311
312
|
#
|
312
313
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
314
|
+
# @option options [Boolean] :capacity_rebalance
|
315
|
+
# Indicates whether capacity rebalance is enabled. Otherwise, capacity
|
316
|
+
# rebalance is disabled.
|
317
|
+
#
|
318
|
+
# You can enable capacity rebalancing for your Auto Scaling groups when
|
319
|
+
# using Spot Instances. When you turn on capacity rebalancing, Amazon
|
320
|
+
# EC2 Auto Scaling attempts to launch a Spot Instance whenever Amazon
|
321
|
+
# EC2 predicts that a Spot Instance is at an elevated risk of
|
322
|
+
# interruption. After launching a new instance, it then terminates an
|
323
|
+
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
324
|
+
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User Guide*.
|
325
|
+
#
|
326
|
+
#
|
327
|
+
#
|
328
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
313
329
|
# @option options [Array<Types::LifecycleHookSpecification>] :lifecycle_hook_specification_list
|
314
330
|
# One or more lifecycle hooks.
|
315
331
|
# @option options [Array<Types::Tag>] :tags
|
@@ -537,7 +553,7 @@ module Aws::AutoScaling
|
|
537
553
|
#
|
538
554
|
#
|
539
555
|
#
|
540
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/
|
556
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
|
541
557
|
# @option options [String] :spot_price
|
542
558
|
# The maximum hourly price to be paid for any Spot Instance launched to
|
543
559
|
# fulfill the request. Spot Instances are launched when the price you
|
@@ -626,12 +642,12 @@ module Aws::AutoScaling
|
|
626
642
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-in-vpc.html#as-vpc-tenancy
|
627
643
|
# @option options [Types::InstanceMetadataOptions] :metadata_options
|
628
644
|
# The metadata options for the instances. For more information, see
|
629
|
-
# [Instance Metadata
|
630
|
-
#
|
645
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
|
646
|
+
# Scaling User Guide*.
|
631
647
|
#
|
632
648
|
#
|
633
649
|
#
|
634
|
-
# [1]: https://docs.aws.amazon.com/
|
650
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
635
651
|
# @return [LaunchConfiguration]
|
636
652
|
def create_launch_configuration(options = {})
|
637
653
|
@client.create_launch_configuration(options)
|
@@ -372,6 +372,10 @@ module Aws::AutoScaling
|
|
372
372
|
# Valid Range: Minimum value of 0.
|
373
373
|
# @return [Integer]
|
374
374
|
#
|
375
|
+
# @!attribute [rw] capacity_rebalance
|
376
|
+
# Indicates whether capacity rebalance is enabled.
|
377
|
+
# @return [Boolean]
|
378
|
+
#
|
375
379
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AutoScalingGroup AWS API Documentation
|
376
380
|
#
|
377
381
|
class AutoScalingGroup < Struct.new(
|
@@ -400,7 +404,8 @@ module Aws::AutoScaling
|
|
400
404
|
:termination_policies,
|
401
405
|
:new_instances_protected_from_scale_in,
|
402
406
|
:service_linked_role_arn,
|
403
|
-
:max_instance_lifetime
|
407
|
+
:max_instance_lifetime,
|
408
|
+
:capacity_rebalance)
|
404
409
|
SENSITIVE = []
|
405
410
|
include Aws::Structure
|
406
411
|
end
|
@@ -834,6 +839,7 @@ module Aws::AutoScaling
|
|
834
839
|
# vpc_zone_identifier: "XmlStringMaxLen2047",
|
835
840
|
# termination_policies: ["XmlStringMaxLen1600"],
|
836
841
|
# new_instances_protected_from_scale_in: false,
|
842
|
+
# capacity_rebalance: false,
|
837
843
|
# lifecycle_hook_specification_list: [
|
838
844
|
# {
|
839
845
|
# lifecycle_hook_name: "AsciiStringMaxLen255", # required
|
@@ -1101,6 +1107,24 @@ module Aws::AutoScaling
|
|
1101
1107
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection
|
1102
1108
|
# @return [Boolean]
|
1103
1109
|
#
|
1110
|
+
# @!attribute [rw] capacity_rebalance
|
1111
|
+
# Indicates whether capacity rebalance is enabled. Otherwise, capacity
|
1112
|
+
# rebalance is disabled.
|
1113
|
+
#
|
1114
|
+
# You can enable capacity rebalancing for your Auto Scaling groups
|
1115
|
+
# when using Spot Instances. When you turn on capacity rebalancing,
|
1116
|
+
# Amazon EC2 Auto Scaling attempts to launch a Spot Instance whenever
|
1117
|
+
# Amazon EC2 predicts that a Spot Instance is at an elevated risk of
|
1118
|
+
# interruption. After launching a new instance, it then terminates an
|
1119
|
+
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
1120
|
+
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User
|
1121
|
+
# Guide*.
|
1122
|
+
#
|
1123
|
+
#
|
1124
|
+
#
|
1125
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
1126
|
+
# @return [Boolean]
|
1127
|
+
#
|
1104
1128
|
# @!attribute [rw] lifecycle_hook_specification_list
|
1105
1129
|
# One or more lifecycle hooks.
|
1106
1130
|
# @return [Array<Types::LifecycleHookSpecification>]
|
@@ -1177,6 +1201,7 @@ module Aws::AutoScaling
|
|
1177
1201
|
:vpc_zone_identifier,
|
1178
1202
|
:termination_policies,
|
1179
1203
|
:new_instances_protected_from_scale_in,
|
1204
|
+
:capacity_rebalance,
|
1180
1205
|
:lifecycle_hook_specification_list,
|
1181
1206
|
:tags,
|
1182
1207
|
:service_linked_role_arn,
|
@@ -1382,7 +1407,7 @@ module Aws::AutoScaling
|
|
1382
1407
|
#
|
1383
1408
|
#
|
1384
1409
|
#
|
1385
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/
|
1410
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
|
1386
1411
|
# @return [Types::InstanceMonitoring]
|
1387
1412
|
#
|
1388
1413
|
# @!attribute [rw] spot_price
|
@@ -1485,12 +1510,12 @@ module Aws::AutoScaling
|
|
1485
1510
|
#
|
1486
1511
|
# @!attribute [rw] metadata_options
|
1487
1512
|
# The metadata options for the instances. For more information, see
|
1488
|
-
# [Instance Metadata
|
1489
|
-
#
|
1513
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2
|
1514
|
+
# Auto Scaling User Guide*.
|
1490
1515
|
#
|
1491
1516
|
#
|
1492
1517
|
#
|
1493
|
-
# [1]: https://docs.aws.amazon.com/
|
1518
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
1494
1519
|
# @return [Types::InstanceMetadataOptions]
|
1495
1520
|
#
|
1496
1521
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfigurationType AWS API Documentation
|
@@ -3019,12 +3044,12 @@ module Aws::AutoScaling
|
|
3019
3044
|
end
|
3020
3045
|
|
3021
3046
|
# The metadata options for the instances. For more information, see
|
3022
|
-
# [Instance Metadata
|
3023
|
-
#
|
3047
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2 Auto
|
3048
|
+
# Scaling User Guide*.
|
3024
3049
|
#
|
3025
3050
|
#
|
3026
3051
|
#
|
3027
|
-
# [1]: https://docs.aws.amazon.com/
|
3052
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
3028
3053
|
#
|
3029
3054
|
# @note When making an API call, you may pass InstanceMetadataOptions
|
3030
3055
|
# data as a hash:
|
@@ -3464,7 +3489,7 @@ module Aws::AutoScaling
|
|
3464
3489
|
#
|
3465
3490
|
#
|
3466
3491
|
#
|
3467
|
-
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/
|
3492
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/latest/userguide/enable-as-instance-metrics.html
|
3468
3493
|
# @return [Types::InstanceMonitoring]
|
3469
3494
|
#
|
3470
3495
|
# @!attribute [rw] spot_price
|
@@ -3537,12 +3562,12 @@ module Aws::AutoScaling
|
|
3537
3562
|
#
|
3538
3563
|
# @!attribute [rw] metadata_options
|
3539
3564
|
# The metadata options for the instances. For more information, see
|
3540
|
-
# [Instance Metadata
|
3541
|
-
#
|
3565
|
+
# [Configuring the Instance Metadata Options][1] in the *Amazon EC2
|
3566
|
+
# Auto Scaling User Guide*.
|
3542
3567
|
#
|
3543
3568
|
#
|
3544
3569
|
#
|
3545
|
-
# [1]: https://docs.aws.amazon.com/
|
3570
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-config.html#launch-configurations-imds
|
3546
3571
|
# @return [Types::InstanceMetadataOptions]
|
3547
3572
|
#
|
3548
3573
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchConfiguration AWS API Documentation
|
@@ -4380,17 +4405,20 @@ module Aws::AutoScaling
|
|
4380
4405
|
# `ALBRequestCountPerTarget` and there is a target group attached to
|
4381
4406
|
# the Auto Scaling group.
|
4382
4407
|
#
|
4383
|
-
#
|
4384
|
-
#
|
4385
|
-
#
|
4386
|
-
#
|
4387
|
-
#
|
4408
|
+
# You create the resource label by appending the final portion of the
|
4409
|
+
# load balancer ARN and the final portion of the target group ARN into
|
4410
|
+
# a single value, separated by a forward slash (/). The format is
|
4411
|
+
# app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>,
|
4412
|
+
# where:
|
4413
|
+
#
|
4414
|
+
# * app/<load-balancer-name>/<load-balancer-id> is the
|
4415
|
+
# final portion of the load balancer ARN
|
4388
4416
|
#
|
4389
|
-
# *
|
4390
|
-
# the
|
4417
|
+
# * targetgroup/<target-group-name>/<target-group-id> is
|
4418
|
+
# the final portion of the target group ARN.
|
4391
4419
|
#
|
4392
|
-
#
|
4393
|
-
#
|
4420
|
+
# This is an example:
|
4421
|
+
# app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d.
|
4394
4422
|
#
|
4395
4423
|
# To find the ARN for an Application Load Balancer, use the
|
4396
4424
|
# [DescribeLoadBalancers][1] API operation. To find the ARN for the
|
@@ -5892,6 +5920,7 @@ module Aws::AutoScaling
|
|
5892
5920
|
# new_instances_protected_from_scale_in: false,
|
5893
5921
|
# service_linked_role_arn: "ResourceName",
|
5894
5922
|
# max_instance_lifetime: 1,
|
5923
|
+
# capacity_rebalance: false,
|
5895
5924
|
# }
|
5896
5925
|
#
|
5897
5926
|
# @!attribute [rw] auto_scaling_group_name
|
@@ -6080,6 +6109,23 @@ module Aws::AutoScaling
|
|
6080
6109
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html
|
6081
6110
|
# @return [Integer]
|
6082
6111
|
#
|
6112
|
+
# @!attribute [rw] capacity_rebalance
|
6113
|
+
# Enables or disables capacity rebalance.
|
6114
|
+
#
|
6115
|
+
# You can enable capacity rebalancing for your Auto Scaling groups
|
6116
|
+
# when using Spot Instances. When you turn on capacity rebalancing,
|
6117
|
+
# Amazon EC2 Auto Scaling attempts to launch a Spot Instance whenever
|
6118
|
+
# Amazon EC2 predicts that a Spot Instance is at an elevated risk of
|
6119
|
+
# interruption. After launching a new instance, it then terminates an
|
6120
|
+
# old instance. For more information, see [Amazon EC2 Auto Scaling
|
6121
|
+
# capacity rebalancing][1] in the *Amazon EC2 Auto Scaling User
|
6122
|
+
# Guide*.
|
6123
|
+
#
|
6124
|
+
#
|
6125
|
+
#
|
6126
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/capacity-rebalance.html
|
6127
|
+
# @return [Boolean]
|
6128
|
+
#
|
6083
6129
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroupType AWS API Documentation
|
6084
6130
|
#
|
6085
6131
|
class UpdateAutoScalingGroupType < Struct.new(
|
@@ -6099,7 +6145,8 @@ module Aws::AutoScaling
|
|
6099
6145
|
:termination_policies,
|
6100
6146
|
:new_instances_protected_from_scale_in,
|
6101
6147
|
:service_linked_role_arn,
|
6102
|
-
:max_instance_lifetime
|
6148
|
+
:max_instance_lifetime,
|
6149
|
+
:capacity_rebalance)
|
6103
6150
|
SENSITIVE = []
|
6104
6151
|
include Aws::Structure
|
6105
6152
|
end
|
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.48.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: 2020-
|
11
|
+
date: 2020-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|