aws-sdk-autoscaling 1.81.0 → 1.82.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-autoscaling/auto_scaling_group.rb +8 -3
- data/lib/aws-sdk-autoscaling/client.rb +57 -31
- data/lib/aws-sdk-autoscaling/client_api.rb +11 -0
- data/lib/aws-sdk-autoscaling/launch_configuration.rb +2 -10
- data/lib/aws-sdk-autoscaling/resource.rb +10 -23
- data/lib/aws-sdk-autoscaling/types.rb +276 -114
- 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: 790042ecc234e48a337b58238a9dbac69797666546cd5bdb196e4dfcfaac1bee
|
4
|
+
data.tar.gz: 854c0d721b133c23dcbd93bc844ba7dc75a3727920146ccf882d8344e19ef07c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db95546b1b14d8ff200f9466563a5ff430da1be04ceb812cbdad47232b7677f2843f0d04e79571e176b8a80f4fc7d839e4d56d8fc504ee6176bcaf92b00e0ad8
|
7
|
+
data.tar.gz: e6a4b56cefed30d07a9550ef3ae33325747dd1117d7945cccb805d068387a295a6551217ee2c3c42b7da0c1a6ff9092285a5400599237e09de687e5192d9de18
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.82.0 (2022-11-07)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for two new attributes for attribute-based instance type selection - NetworkBandwidthGbps and AllowedInstanceTypes.
|
8
|
+
|
4
9
|
1.81.0 (2022-10-25)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.82.0
|
@@ -1168,6 +1168,11 @@ module Aws::AutoScaling
|
|
1168
1168
|
# min: 1,
|
1169
1169
|
# max: 1,
|
1170
1170
|
# },
|
1171
|
+
# network_bandwidth_gbps: {
|
1172
|
+
# min: 1.0,
|
1173
|
+
# max: 1.0,
|
1174
|
+
# },
|
1175
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
1171
1176
|
# },
|
1172
1177
|
# },
|
1173
1178
|
# ],
|
@@ -1209,9 +1214,9 @@ module Aws::AutoScaling
|
|
1209
1214
|
# specify `LaunchTemplate` in your update request, you can't specify
|
1210
1215
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
1211
1216
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
1212
|
-
#
|
1213
|
-
#
|
1214
|
-
#
|
1217
|
+
# The mixed instances policy. For more information, see [Auto Scaling
|
1218
|
+
# groups with multiple instance types and purchase options][1] in the
|
1219
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
1215
1220
|
#
|
1216
1221
|
#
|
1217
1222
|
#
|
@@ -843,11 +843,9 @@ module Aws::AutoScaling
|
|
843
843
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
844
844
|
#
|
845
845
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
846
|
-
#
|
847
|
-
#
|
848
|
-
#
|
849
|
-
# types and purchase options][1] in the *Amazon EC2 Auto Scaling User
|
850
|
-
# Guide*.
|
846
|
+
# The mixed instances policy. For more information, see [Auto Scaling
|
847
|
+
# groups with multiple instance types and purchase options][1] in the
|
848
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
851
849
|
#
|
852
850
|
#
|
853
851
|
#
|
@@ -1256,6 +1254,11 @@ module Aws::AutoScaling
|
|
1256
1254
|
# min: 1,
|
1257
1255
|
# max: 1,
|
1258
1256
|
# },
|
1257
|
+
# network_bandwidth_gbps: {
|
1258
|
+
# min: 1.0,
|
1259
|
+
# max: 1.0,
|
1260
|
+
# },
|
1261
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
1259
1262
|
# },
|
1260
1263
|
# },
|
1261
1264
|
# ],
|
@@ -1330,10 +1333,21 @@ module Aws::AutoScaling
|
|
1330
1333
|
# For more information, see [Launch configurations][2] in the *Amazon
|
1331
1334
|
# EC2 Auto Scaling User Guide*.
|
1332
1335
|
#
|
1336
|
+
# <note markdown="1"> Amazon EC2 Auto Scaling configures instances launched as part of an
|
1337
|
+
# Auto Scaling group using either a launch template or a launch
|
1338
|
+
# configuration. We strongly recommend that you do not use launch
|
1339
|
+
# configurations. They do not provide full functionality for Amazon EC2
|
1340
|
+
# Auto Scaling or Amazon EC2. For information about using launch
|
1341
|
+
# templates, see [Launch templates][3] in the *Amazon EC2 Auto Scaling
|
1342
|
+
# User Guide*.
|
1343
|
+
#
|
1344
|
+
# </note>
|
1345
|
+
#
|
1333
1346
|
#
|
1334
1347
|
#
|
1335
1348
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html
|
1336
1349
|
# [2]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html
|
1350
|
+
# [3]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html
|
1337
1351
|
#
|
1338
1352
|
# @option params [required, String] :launch_configuration_name
|
1339
1353
|
# The name of the launch configuration. This name must be unique per
|
@@ -1370,26 +1384,10 @@ module Aws::AutoScaling
|
|
1370
1384
|
# [1]: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html
|
1371
1385
|
#
|
1372
1386
|
# @option params [String] :classic_link_vpc_id
|
1373
|
-
#
|
1374
|
-
# supported after that date.*
|
1375
|
-
#
|
1376
|
-
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
1377
|
-
# to. For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
1378
|
-
# Guide for Linux Instances*.
|
1379
|
-
#
|
1380
|
-
#
|
1381
|
-
#
|
1382
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html
|
1387
|
+
# Available for backward compatibility.
|
1383
1388
|
#
|
1384
1389
|
# @option params [Array<String>] :classic_link_vpc_security_groups
|
1385
|
-
#
|
1386
|
-
# supported after that date.*
|
1387
|
-
#
|
1388
|
-
# The IDs of one or more security groups for the specified
|
1389
|
-
# ClassicLink-enabled VPC.
|
1390
|
-
#
|
1391
|
-
# If you specify the `ClassicLinkVPCId` property, you must specify
|
1392
|
-
# `ClassicLinkVPCSecurityGroups`.
|
1390
|
+
# Available for backward compatibility.
|
1393
1391
|
#
|
1394
1392
|
# @option params [String] :user_data
|
1395
1393
|
# The user data to make available to the launched EC2 instances. For
|
@@ -1720,10 +1718,9 @@ module Aws::AutoScaling
|
|
1720
1718
|
#
|
1721
1719
|
# If the group has instances or scaling activities in progress, you must
|
1722
1720
|
# specify the option to force the deletion in order for it to succeed.
|
1723
|
-
#
|
1724
|
-
#
|
1725
|
-
#
|
1726
|
-
# associated action.
|
1721
|
+
# The force delete operation will also terminate the EC2 instances. If
|
1722
|
+
# the group has a warm pool, the force delete option also deletes the
|
1723
|
+
# warm pool.
|
1727
1724
|
#
|
1728
1725
|
# To remove instances from the Auto Scaling group before deleting it,
|
1729
1726
|
# call the DetachInstances API with the list of instances and the option
|
@@ -1734,6 +1731,17 @@ module Aws::AutoScaling
|
|
1734
1731
|
# call the UpdateAutoScalingGroup API and set the minimum size and
|
1735
1732
|
# desired capacity of the Auto Scaling group to zero.
|
1736
1733
|
#
|
1734
|
+
# If the group has scaling policies, deleting the group deletes the
|
1735
|
+
# policies, the underlying alarm actions, and any alarm that no longer
|
1736
|
+
# has an associated action.
|
1737
|
+
#
|
1738
|
+
# For more information, see [Delete your Auto Scaling infrastructure][1]
|
1739
|
+
# in the *Amazon EC2 Auto Scaling User Guide*.
|
1740
|
+
#
|
1741
|
+
#
|
1742
|
+
#
|
1743
|
+
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html
|
1744
|
+
#
|
1737
1745
|
# @option params [required, String] :auto_scaling_group_name
|
1738
1746
|
# The name of the Auto Scaling group.
|
1739
1747
|
#
|
@@ -2321,6 +2329,10 @@ module Aws::AutoScaling
|
|
2321
2329
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.accelerator_names[0] #=> String, one of "a100", "v100", "k80", "t4", "m60", "radeon-pro-v520", "vu9p"
|
2322
2330
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.accelerator_total_memory_mi_b.min #=> Integer
|
2323
2331
|
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.accelerator_total_memory_mi_b.max #=> Integer
|
2332
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.network_bandwidth_gbps.min #=> Float
|
2333
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.network_bandwidth_gbps.max #=> Float
|
2334
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.allowed_instance_types #=> Array
|
2335
|
+
# resp.auto_scaling_groups[0].mixed_instances_policy.launch_template.overrides[0].instance_requirements.allowed_instance_types[0] #=> String
|
2324
2336
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
|
2325
2337
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
|
2326
2338
|
# resp.auto_scaling_groups[0].mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
|
@@ -2690,6 +2702,10 @@ module Aws::AutoScaling
|
|
2690
2702
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.accelerator_names[0] #=> String, one of "a100", "v100", "k80", "t4", "m60", "radeon-pro-v520", "vu9p"
|
2691
2703
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.accelerator_total_memory_mi_b.min #=> Integer
|
2692
2704
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.accelerator_total_memory_mi_b.max #=> Integer
|
2705
|
+
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.network_bandwidth_gbps.min #=> Float
|
2706
|
+
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.network_bandwidth_gbps.max #=> Float
|
2707
|
+
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.allowed_instance_types #=> Array
|
2708
|
+
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.launch_template.overrides[0].instance_requirements.allowed_instance_types[0] #=> String
|
2693
2709
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.on_demand_allocation_strategy #=> String
|
2694
2710
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.on_demand_base_capacity #=> Integer
|
2695
2711
|
# resp.instance_refreshes[0].desired_configuration.mixed_instances_policy.instances_distribution.on_demand_percentage_above_base_capacity #=> Integer
|
@@ -5980,6 +5996,11 @@ module Aws::AutoScaling
|
|
5980
5996
|
# min: 1,
|
5981
5997
|
# max: 1,
|
5982
5998
|
# },
|
5999
|
+
# network_bandwidth_gbps: {
|
6000
|
+
# min: 1.0,
|
6001
|
+
# max: 1.0,
|
6002
|
+
# },
|
6003
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
5983
6004
|
# },
|
5984
6005
|
# },
|
5985
6006
|
# ],
|
@@ -6228,9 +6249,9 @@ module Aws::AutoScaling
|
|
6228
6249
|
# `LaunchConfigurationName` or `MixedInstancesPolicy`.
|
6229
6250
|
#
|
6230
6251
|
# @option params [Types::MixedInstancesPolicy] :mixed_instances_policy
|
6231
|
-
#
|
6232
|
-
#
|
6233
|
-
#
|
6252
|
+
# The mixed instances policy. For more information, see [Auto Scaling
|
6253
|
+
# groups with multiple instance types and purchase options][1] in the
|
6254
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
6234
6255
|
#
|
6235
6256
|
#
|
6236
6257
|
#
|
@@ -6502,6 +6523,11 @@ module Aws::AutoScaling
|
|
6502
6523
|
# min: 1,
|
6503
6524
|
# max: 1,
|
6504
6525
|
# },
|
6526
|
+
# network_bandwidth_gbps: {
|
6527
|
+
# min: 1.0,
|
6528
|
+
# max: 1.0,
|
6529
|
+
# },
|
6530
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
6505
6531
|
# },
|
6506
6532
|
# },
|
6507
6533
|
# ],
|
@@ -6556,7 +6582,7 @@ module Aws::AutoScaling
|
|
6556
6582
|
params: params,
|
6557
6583
|
config: config)
|
6558
6584
|
context[:gem_name] = 'aws-sdk-autoscaling'
|
6559
|
-
context[:gem_version] = '1.
|
6585
|
+
context[:gem_version] = '1.82.0'
|
6560
6586
|
Seahorse::Client::Request.new(handlers, context)
|
6561
6587
|
end
|
6562
6588
|
|
@@ -31,6 +31,8 @@ module Aws::AutoScaling
|
|
31
31
|
AdjustmentTypes = Shapes::ListShape.new(name: 'AdjustmentTypes')
|
32
32
|
Alarm = Shapes::StructureShape.new(name: 'Alarm')
|
33
33
|
Alarms = Shapes::ListShape.new(name: 'Alarms')
|
34
|
+
AllowedInstanceType = Shapes::StringShape.new(name: 'AllowedInstanceType')
|
35
|
+
AllowedInstanceTypes = Shapes::ListShape.new(name: 'AllowedInstanceTypes')
|
34
36
|
AlreadyExistsFault = Shapes::StructureShape.new(name: 'AlreadyExistsFault')
|
35
37
|
AsciiStringMaxLen255 = Shapes::StringShape.new(name: 'AsciiStringMaxLen255')
|
36
38
|
AssociatePublicIpAddress = Shapes::BooleanShape.new(name: 'AssociatePublicIpAddress')
|
@@ -239,6 +241,7 @@ module Aws::AutoScaling
|
|
239
241
|
MixedInstanceSpotPrice = Shapes::StringShape.new(name: 'MixedInstanceSpotPrice')
|
240
242
|
MixedInstancesPolicy = Shapes::StructureShape.new(name: 'MixedInstancesPolicy')
|
241
243
|
MonitoringEnabled = Shapes::BooleanShape.new(name: 'MonitoringEnabled')
|
244
|
+
NetworkBandwidthGbpsRequest = Shapes::StructureShape.new(name: 'NetworkBandwidthGbpsRequest')
|
242
245
|
NetworkInterfaceCountRequest = Shapes::StructureShape.new(name: 'NetworkInterfaceCountRequest')
|
243
246
|
NoDevice = Shapes::BooleanShape.new(name: 'NoDevice')
|
244
247
|
NonZeroIntPercent = Shapes::IntegerShape.new(name: 'NonZeroIntPercent')
|
@@ -417,6 +420,8 @@ module Aws::AutoScaling
|
|
417
420
|
|
418
421
|
Alarms.member = Shapes::ShapeRef.new(shape: Alarm)
|
419
422
|
|
423
|
+
AllowedInstanceTypes.member = Shapes::ShapeRef.new(shape: AllowedInstanceType)
|
424
|
+
|
420
425
|
AlreadyExistsFault.add_member(:message, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "message"))
|
421
426
|
AlreadyExistsFault.struct_class = Types::AlreadyExistsFault
|
422
427
|
|
@@ -928,6 +933,8 @@ module Aws::AutoScaling
|
|
928
933
|
InstanceRequirements.add_member(:accelerator_manufacturers, Shapes::ShapeRef.new(shape: AcceleratorManufacturers, location_name: "AcceleratorManufacturers"))
|
929
934
|
InstanceRequirements.add_member(:accelerator_names, Shapes::ShapeRef.new(shape: AcceleratorNames, location_name: "AcceleratorNames"))
|
930
935
|
InstanceRequirements.add_member(:accelerator_total_memory_mi_b, Shapes::ShapeRef.new(shape: AcceleratorTotalMemoryMiBRequest, location_name: "AcceleratorTotalMemoryMiB"))
|
936
|
+
InstanceRequirements.add_member(:network_bandwidth_gbps, Shapes::ShapeRef.new(shape: NetworkBandwidthGbpsRequest, location_name: "NetworkBandwidthGbps"))
|
937
|
+
InstanceRequirements.add_member(:allowed_instance_types, Shapes::ShapeRef.new(shape: AllowedInstanceTypes, location_name: "AllowedInstanceTypes"))
|
931
938
|
InstanceRequirements.struct_class = Types::InstanceRequirements
|
932
939
|
|
933
940
|
InstanceReusePolicy.add_member(:reuse_on_scale_in, Shapes::ShapeRef.new(shape: ReuseOnScaleIn, location_name: "ReuseOnScaleIn"))
|
@@ -1100,6 +1107,10 @@ module Aws::AutoScaling
|
|
1100
1107
|
MixedInstancesPolicy.add_member(:instances_distribution, Shapes::ShapeRef.new(shape: InstancesDistribution, location_name: "InstancesDistribution"))
|
1101
1108
|
MixedInstancesPolicy.struct_class = Types::MixedInstancesPolicy
|
1102
1109
|
|
1110
|
+
NetworkBandwidthGbpsRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveDouble, location_name: "Min"))
|
1111
|
+
NetworkBandwidthGbpsRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveDouble, location_name: "Max"))
|
1112
|
+
NetworkBandwidthGbpsRequest.struct_class = Types::NetworkBandwidthGbpsRequest
|
1113
|
+
|
1103
1114
|
NetworkInterfaceCountRequest.add_member(:min, Shapes::ShapeRef.new(shape: NullablePositiveInteger, location_name: "Min"))
|
1104
1115
|
NetworkInterfaceCountRequest.add_member(:max, Shapes::ShapeRef.new(shape: NullablePositiveInteger, location_name: "Max"))
|
1105
1116
|
NetworkInterfaceCountRequest.struct_class = Types::NetworkInterfaceCountRequest
|
@@ -78,21 +78,13 @@ module Aws::AutoScaling
|
|
78
78
|
data[:security_groups]
|
79
79
|
end
|
80
80
|
|
81
|
-
#
|
82
|
-
# supported after that date.*
|
83
|
-
#
|
84
|
-
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
85
|
-
# to.
|
81
|
+
# Available for backward compatibility.
|
86
82
|
# @return [String]
|
87
83
|
def classic_link_vpc_id
|
88
84
|
data[:classic_link_vpc_id]
|
89
85
|
end
|
90
86
|
|
91
|
-
#
|
92
|
-
# supported after that date.*
|
93
|
-
#
|
94
|
-
# The IDs of one or more security groups for the VPC specified in
|
95
|
-
# `ClassicLinkVPCId`.
|
87
|
+
# Available for backward compatibility.
|
96
88
|
# @return [Array<String>]
|
97
89
|
def classic_link_vpc_security_groups
|
98
90
|
data[:classic_link_vpc_security_groups]
|
@@ -107,6 +107,11 @@ module Aws::AutoScaling
|
|
107
107
|
# min: 1,
|
108
108
|
# max: 1,
|
109
109
|
# },
|
110
|
+
# network_bandwidth_gbps: {
|
111
|
+
# min: 1.0,
|
112
|
+
# max: 1.0,
|
113
|
+
# },
|
114
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
110
115
|
# },
|
111
116
|
# },
|
112
117
|
# ],
|
@@ -190,11 +195,9 @@ module Aws::AutoScaling
|
|
190
195
|
#
|
191
196
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html
|
192
197
|
# @option options [Types::MixedInstancesPolicy] :mixed_instances_policy
|
193
|
-
#
|
194
|
-
#
|
195
|
-
#
|
196
|
-
# types and purchase options][1] in the *Amazon EC2 Auto Scaling User
|
197
|
-
# Guide*.
|
198
|
+
# The mixed instances policy. For more information, see [Auto Scaling
|
199
|
+
# groups with multiple instance types and purchase options][1] in the
|
200
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
198
201
|
#
|
199
202
|
#
|
200
203
|
#
|
@@ -513,25 +516,9 @@ module Aws::AutoScaling
|
|
513
516
|
#
|
514
517
|
# [1]: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html
|
515
518
|
# @option options [String] :classic_link_vpc_id
|
516
|
-
#
|
517
|
-
# supported after that date.*
|
518
|
-
#
|
519
|
-
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances
|
520
|
-
# to. For more information, see [ClassicLink][1] in the *Amazon EC2 User
|
521
|
-
# Guide for Linux Instances*.
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html
|
519
|
+
# Available for backward compatibility.
|
526
520
|
# @option options [Array<String>] :classic_link_vpc_security_groups
|
527
|
-
#
|
528
|
-
# supported after that date.*
|
529
|
-
#
|
530
|
-
# The IDs of one or more security groups for the specified
|
531
|
-
# ClassicLink-enabled VPC.
|
532
|
-
#
|
533
|
-
# If you specify the `ClassicLinkVPCId` property, you must specify
|
534
|
-
# `ClassicLinkVPCSecurityGroups`.
|
521
|
+
# Available for backward compatibility.
|
535
522
|
# @option options [String] :user_data
|
536
523
|
# The user data to make available to the launched EC2 instances. For
|
537
524
|
# more information, see [Instance metadata and user data][1] (Linux) and
|
@@ -1051,6 +1051,11 @@ module Aws::AutoScaling
|
|
1051
1051
|
# min: 1,
|
1052
1052
|
# max: 1,
|
1053
1053
|
# },
|
1054
|
+
# network_bandwidth_gbps: {
|
1055
|
+
# min: 1.0,
|
1056
|
+
# max: 1.0,
|
1057
|
+
# },
|
1058
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
1054
1059
|
# },
|
1055
1060
|
# },
|
1056
1061
|
# ],
|
@@ -1140,11 +1145,9 @@ module Aws::AutoScaling
|
|
1140
1145
|
# @return [Types::LaunchTemplateSpecification]
|
1141
1146
|
#
|
1142
1147
|
# @!attribute [rw] mixed_instances_policy
|
1143
|
-
#
|
1144
|
-
#
|
1145
|
-
#
|
1146
|
-
# instance types and purchase options][1] in the *Amazon EC2 Auto
|
1147
|
-
# Scaling User Guide*.
|
1148
|
+
# The mixed instances policy. For more information, see [Auto Scaling
|
1149
|
+
# groups with multiple instance types and purchase options][1] in the
|
1150
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
1148
1151
|
#
|
1149
1152
|
#
|
1150
1153
|
#
|
@@ -1550,27 +1553,11 @@ module Aws::AutoScaling
|
|
1550
1553
|
# @return [Array<String>]
|
1551
1554
|
#
|
1552
1555
|
# @!attribute [rw] classic_link_vpc_id
|
1553
|
-
#
|
1554
|
-
# supported after that date.*
|
1555
|
-
#
|
1556
|
-
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic
|
1557
|
-
# instances to. For more information, see [ClassicLink][1] in the
|
1558
|
-
# *Amazon EC2 User Guide for Linux Instances*.
|
1559
|
-
#
|
1560
|
-
#
|
1561
|
-
#
|
1562
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html
|
1556
|
+
# Available for backward compatibility.
|
1563
1557
|
# @return [String]
|
1564
1558
|
#
|
1565
1559
|
# @!attribute [rw] classic_link_vpc_security_groups
|
1566
|
-
#
|
1567
|
-
# supported after that date.*
|
1568
|
-
#
|
1569
|
-
# The IDs of one or more security groups for the specified
|
1570
|
-
# ClassicLink-enabled VPC.
|
1571
|
-
#
|
1572
|
-
# If you specify the `ClassicLinkVPCId` property, you must specify
|
1573
|
-
# `ClassicLinkVPCSecurityGroups`.
|
1560
|
+
# Available for backward compatibility.
|
1574
1561
|
# @return [Array<String>]
|
1575
1562
|
#
|
1576
1563
|
# @!attribute [rw] user_data
|
@@ -2843,6 +2830,11 @@ module Aws::AutoScaling
|
|
2843
2830
|
# min: 1,
|
2844
2831
|
# max: 1,
|
2845
2832
|
# },
|
2833
|
+
# network_bandwidth_gbps: {
|
2834
|
+
# min: 1.0,
|
2835
|
+
# max: 1.0,
|
2836
|
+
# },
|
2837
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
2846
2838
|
# },
|
2847
2839
|
# },
|
2848
2840
|
# ],
|
@@ -2870,12 +2862,14 @@ module Aws::AutoScaling
|
|
2870
2862
|
# @return [Types::LaunchTemplateSpecification]
|
2871
2863
|
#
|
2872
2864
|
# @!attribute [rw] mixed_instances_policy
|
2873
|
-
#
|
2874
|
-
#
|
2875
|
-
#
|
2876
|
-
#
|
2877
|
-
#
|
2878
|
-
#
|
2865
|
+
# Use this structure to launch multiple instance types and On-Demand
|
2866
|
+
# Instances and Spot Instances within a single Auto Scaling group.
|
2867
|
+
#
|
2868
|
+
# A mixed instances policy contains information that Amazon EC2 Auto
|
2869
|
+
# Scaling can use to launch instances and help optimize your costs.
|
2870
|
+
# For more information, see [Auto Scaling groups with multiple
|
2871
|
+
# instance types and purchase options][1] in the *Amazon EC2 Auto
|
2872
|
+
# Scaling User Guide*.
|
2879
2873
|
#
|
2880
2874
|
#
|
2881
2875
|
#
|
@@ -4005,20 +3999,43 @@ module Aws::AutoScaling
|
|
4005
3999
|
include Aws::Structure
|
4006
4000
|
end
|
4007
4001
|
|
4008
|
-
#
|
4009
|
-
#
|
4010
|
-
#
|
4011
|
-
#
|
4002
|
+
# The attributes for the instance types for a mixed instances policy.
|
4003
|
+
# Amazon EC2 Auto Scaling uses your specified requirements to identify
|
4004
|
+
# instance types. Then, it uses your On-Demand and Spot allocation
|
4005
|
+
# strategies to launch instances from these instance types.
|
4006
|
+
#
|
4007
|
+
# When you specify multiple attributes, you get instance types that
|
4008
|
+
# satisfy all of the specified attributes. If you specify multiple
|
4009
|
+
# values for an attribute, you get instance types that satisfy any of
|
4010
|
+
# the specified values.
|
4011
|
+
#
|
4012
|
+
# To limit the list of instance types from which Amazon EC2 Auto Scaling
|
4013
|
+
# can identify matching instance types, you can use one of the following
|
4014
|
+
# parameters, but not both in the same request:
|
4015
|
+
#
|
4016
|
+
# * `AllowedInstanceTypes` - The instance types to include in the list.
|
4017
|
+
# All other instance types are ignored, even if they match your
|
4018
|
+
# specified attributes.
|
4019
|
+
#
|
4020
|
+
# * `ExcludedInstanceTypes` - The instance types to exclude from the
|
4021
|
+
# list, even if they match your specified attributes.
|
4022
|
+
#
|
4023
|
+
# <note markdown="1"> You must specify `VCpuCount` and `MemoryMiB`. All other attributes are
|
4024
|
+
# optional. Any unspecified optional attribute is set to its default.
|
4012
4025
|
#
|
4013
|
-
#
|
4014
|
-
#
|
4015
|
-
#
|
4016
|
-
#
|
4017
|
-
#
|
4026
|
+
# </note>
|
4027
|
+
#
|
4028
|
+
# For more information, see [Creating an Auto Scaling group using
|
4029
|
+
# attribute-based instance type selection][1] in the *Amazon EC2 Auto
|
4030
|
+
# Scaling User Guide*. For help determining which instance types match
|
4031
|
+
# your attributes before you apply them to your Auto Scaling group, see
|
4032
|
+
# [Preview instance types with specified attributes][2] in the *Amazon
|
4033
|
+
# EC2 User Guide for Linux Instances*.
|
4018
4034
|
#
|
4019
4035
|
#
|
4020
4036
|
#
|
4021
4037
|
# [1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html
|
4038
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-get-instance-types-from-instance-requirements
|
4022
4039
|
#
|
4023
4040
|
# @note When making an API call, you may pass InstanceRequirements
|
4024
4041
|
# data as a hash:
|
@@ -4069,6 +4086,11 @@ module Aws::AutoScaling
|
|
4069
4086
|
# min: 1,
|
4070
4087
|
# max: 1,
|
4071
4088
|
# },
|
4089
|
+
# network_bandwidth_gbps: {
|
4090
|
+
# min: 1.0,
|
4091
|
+
# max: 1.0,
|
4092
|
+
# },
|
4093
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
4072
4094
|
# }
|
4073
4095
|
#
|
4074
4096
|
# @!attribute [rw] v_cpu_count
|
@@ -4104,18 +4126,24 @@ module Aws::AutoScaling
|
|
4104
4126
|
# The minimum and maximum amount of memory per vCPU for an instance
|
4105
4127
|
# type, in GiB.
|
4106
4128
|
#
|
4107
|
-
# Default: No minimum or maximum
|
4129
|
+
# Default: No minimum or maximum limits
|
4108
4130
|
# @return [Types::MemoryGiBPerVCpuRequest]
|
4109
4131
|
#
|
4110
4132
|
# @!attribute [rw] excluded_instance_types
|
4111
|
-
#
|
4112
|
-
#
|
4113
|
-
#
|
4133
|
+
# The instance types to exclude. You can use strings with one or more
|
4134
|
+
# wild cards, represented by an asterisk (`*`), to exclude an instance
|
4135
|
+
# family, type, size, or generation. The following are examples:
|
4136
|
+
# `m5.8xlarge`, `c5*.*`, `m5a.*`, `r*`, `*3*`.
|
4114
4137
|
#
|
4115
4138
|
# For example, if you specify `c5*`, you are excluding the entire C5
|
4116
4139
|
# instance family, which includes all C5a and C5n instance types. If
|
4117
|
-
# you specify `m5a.*`,
|
4118
|
-
# but not the M5n instance types.
|
4140
|
+
# you specify `m5a.*`, Amazon EC2 Auto Scaling will exclude all the
|
4141
|
+
# M5a instance types, but not the M5n instance types.
|
4142
|
+
#
|
4143
|
+
# <note markdown="1"> If you specify `ExcludedInstanceTypes`, you can't specify
|
4144
|
+
# `AllowedInstanceTypes`.
|
4145
|
+
#
|
4146
|
+
# </note>
|
4119
4147
|
#
|
4120
4148
|
# Default: No excluded instance types
|
4121
4149
|
# @return [Array<String>]
|
@@ -4207,7 +4235,7 @@ module Aws::AutoScaling
|
|
4207
4235
|
# The minimum and maximum number of network interfaces for an instance
|
4208
4236
|
# type.
|
4209
4237
|
#
|
4210
|
-
# Default: No minimum or maximum
|
4238
|
+
# Default: No minimum or maximum limits
|
4211
4239
|
# @return [Types::NetworkInterfaceCountRequest]
|
4212
4240
|
#
|
4213
4241
|
# @!attribute [rw] local_storage
|
@@ -4239,7 +4267,7 @@ module Aws::AutoScaling
|
|
4239
4267
|
# The minimum and maximum total local storage size for an instance
|
4240
4268
|
# type, in GB.
|
4241
4269
|
#
|
4242
|
-
# Default: No minimum or maximum
|
4270
|
+
# Default: No minimum or maximum limits
|
4243
4271
|
# @return [Types::TotalLocalStorageGBRequest]
|
4244
4272
|
#
|
4245
4273
|
# @!attribute [rw] baseline_ebs_bandwidth_mbps
|
@@ -4248,7 +4276,7 @@ module Aws::AutoScaling
|
|
4248
4276
|
# EBS–optimized instances][1] in the *Amazon EC2 User Guide for Linux
|
4249
4277
|
# Instances*.
|
4250
4278
|
#
|
4251
|
-
# Default: No minimum or maximum
|
4279
|
+
# Default: No minimum or maximum limits
|
4252
4280
|
#
|
4253
4281
|
#
|
4254
4282
|
#
|
@@ -4274,7 +4302,7 @@ module Aws::AutoScaling
|
|
4274
4302
|
#
|
4275
4303
|
# To exclude accelerator-enabled instance types, set `Max` to `0`.
|
4276
4304
|
#
|
4277
|
-
# Default: No minimum or maximum
|
4305
|
+
# Default: No minimum or maximum limits
|
4278
4306
|
# @return [Types::AcceleratorCountRequest]
|
4279
4307
|
#
|
4280
4308
|
# @!attribute [rw] accelerator_manufacturers
|
@@ -4318,9 +4346,38 @@ module Aws::AutoScaling
|
|
4318
4346
|
# The minimum and maximum total memory size for the accelerators on an
|
4319
4347
|
# instance type, in MiB.
|
4320
4348
|
#
|
4321
|
-
# Default: No minimum or maximum
|
4349
|
+
# Default: No minimum or maximum limits
|
4322
4350
|
# @return [Types::AcceleratorTotalMemoryMiBRequest]
|
4323
4351
|
#
|
4352
|
+
# @!attribute [rw] network_bandwidth_gbps
|
4353
|
+
# The minimum and maximum amount of network bandwidth, in gigabits per
|
4354
|
+
# second (Gbps).
|
4355
|
+
#
|
4356
|
+
# Default: No minimum or maximum limits
|
4357
|
+
# @return [Types::NetworkBandwidthGbpsRequest]
|
4358
|
+
#
|
4359
|
+
# @!attribute [rw] allowed_instance_types
|
4360
|
+
# The instance types to apply your specified attributes against. All
|
4361
|
+
# other instance types are ignored, even if they match your specified
|
4362
|
+
# attributes.
|
4363
|
+
#
|
4364
|
+
# You can use strings with one or more wild cards, represented by an
|
4365
|
+
# asterisk (`*`), to allow an instance type, size, or generation. The
|
4366
|
+
# following are examples: `m5.8xlarge`, `c5*.*`, `m5a.*`, `r*`, `*3*`.
|
4367
|
+
#
|
4368
|
+
# For example, if you specify `c5*`, Amazon EC2 Auto Scaling will
|
4369
|
+
# allow the entire C5 instance family, which includes all C5a and C5n
|
4370
|
+
# instance types. If you specify `m5a.*`, Amazon EC2 Auto Scaling will
|
4371
|
+
# allow all the M5a instance types, but not the M5n instance types.
|
4372
|
+
#
|
4373
|
+
# <note markdown="1"> If you specify `AllowedInstanceTypes`, you can't specify
|
4374
|
+
# `ExcludedInstanceTypes`.
|
4375
|
+
#
|
4376
|
+
# </note>
|
4377
|
+
#
|
4378
|
+
# Default: All instance types
|
4379
|
+
# @return [Array<String>]
|
4380
|
+
#
|
4324
4381
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/InstanceRequirements AWS API Documentation
|
4325
4382
|
#
|
4326
4383
|
class InstanceRequirements < Struct.new(
|
@@ -4344,7 +4401,9 @@ module Aws::AutoScaling
|
|
4344
4401
|
:accelerator_count,
|
4345
4402
|
:accelerator_manufacturers,
|
4346
4403
|
:accelerator_names,
|
4347
|
-
:accelerator_total_memory_mi_b
|
4404
|
+
:accelerator_total_memory_mi_b,
|
4405
|
+
:network_bandwidth_gbps,
|
4406
|
+
:allowed_instance_types)
|
4348
4407
|
SENSITIVE = []
|
4349
4408
|
include Aws::Structure
|
4350
4409
|
end
|
@@ -4378,7 +4437,9 @@ module Aws::AutoScaling
|
|
4378
4437
|
include Aws::Structure
|
4379
4438
|
end
|
4380
4439
|
|
4381
|
-
#
|
4440
|
+
# Use this structure to specify the distribution of On-Demand Instances
|
4441
|
+
# and Spot Instances and the allocation strategies used to fulfill
|
4442
|
+
# On-Demand and Spot capacities for a mixed instances policy.
|
4382
4443
|
#
|
4383
4444
|
# @note When making an API call, you may pass InstancesDistribution
|
4384
4445
|
# data as a hash:
|
@@ -4471,13 +4532,16 @@ module Aws::AutoScaling
|
|
4471
4532
|
#
|
4472
4533
|
# @!attribute [rw] spot_max_price
|
4473
4534
|
# The maximum price per unit hour that you are willing to pay for a
|
4474
|
-
# Spot Instance. If
|
4475
|
-
#
|
4476
|
-
#
|
4477
|
-
#
|
4535
|
+
# Spot Instance. If your maximum price is lower than the Spot price
|
4536
|
+
# for the instance types that you selected, your Spot Instances are
|
4537
|
+
# not launched. We do not recommend specifying a maximum price because
|
4538
|
+
# it can lead to increased interruptions. When Spot Instances launch,
|
4539
|
+
# you pay the current Spot price. To remove a maximum price that you
|
4540
|
+
# previously set, include the property but specify an empty string
|
4541
|
+
# ("") for the value.
|
4478
4542
|
#
|
4479
|
-
# If
|
4480
|
-
#
|
4543
|
+
# If you specify a maximum price, your instances will be interrupted
|
4544
|
+
# more frequently than if you do not specify one.
|
4481
4545
|
#
|
4482
4546
|
# Valid Range: Minimum value of 0.001
|
4483
4547
|
# @return [String]
|
@@ -4551,19 +4615,11 @@ module Aws::AutoScaling
|
|
4551
4615
|
# @return [Array<String>]
|
4552
4616
|
#
|
4553
4617
|
# @!attribute [rw] classic_link_vpc_id
|
4554
|
-
#
|
4555
|
-
# supported after that date.*
|
4556
|
-
#
|
4557
|
-
# The ID of a ClassicLink-enabled VPC to link your EC2-Classic
|
4558
|
-
# instances to.
|
4618
|
+
# Available for backward compatibility.
|
4559
4619
|
# @return [String]
|
4560
4620
|
#
|
4561
4621
|
# @!attribute [rw] classic_link_vpc_security_groups
|
4562
|
-
#
|
4563
|
-
# supported after that date.*
|
4564
|
-
#
|
4565
|
-
# The IDs of one or more security groups for the VPC specified in
|
4566
|
-
# `ClassicLinkVPCId`.
|
4622
|
+
# Available for backward compatibility.
|
4567
4623
|
# @return [Array<String>]
|
4568
4624
|
#
|
4569
4625
|
# @!attribute [rw] user_data
|
@@ -4803,8 +4859,8 @@ module Aws::AutoScaling
|
|
4803
4859
|
include Aws::Structure
|
4804
4860
|
end
|
4805
4861
|
|
4806
|
-
#
|
4807
|
-
#
|
4862
|
+
# Use this structure to specify the launch templates and instance types
|
4863
|
+
# (overrides) for a mixed instances policy.
|
4808
4864
|
#
|
4809
4865
|
# @note When making an API call, you may pass LaunchTemplate
|
4810
4866
|
# data as a hash:
|
@@ -4870,23 +4926,23 @@ module Aws::AutoScaling
|
|
4870
4926
|
# min: 1,
|
4871
4927
|
# max: 1,
|
4872
4928
|
# },
|
4929
|
+
# network_bandwidth_gbps: {
|
4930
|
+
# min: 1.0,
|
4931
|
+
# max: 1.0,
|
4932
|
+
# },
|
4933
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
4873
4934
|
# },
|
4874
4935
|
# },
|
4875
4936
|
# ],
|
4876
4937
|
# }
|
4877
4938
|
#
|
4878
4939
|
# @!attribute [rw] launch_template_specification
|
4879
|
-
# The launch template
|
4940
|
+
# The launch template.
|
4880
4941
|
# @return [Types::LaunchTemplateSpecification]
|
4881
4942
|
#
|
4882
4943
|
# @!attribute [rw] overrides
|
4883
4944
|
# Any properties that you specify override the same properties in the
|
4884
|
-
# launch template.
|
4885
|
-
# instance type or instance type requirements specified in the launch
|
4886
|
-
# template when it launches an instance.
|
4887
|
-
#
|
4888
|
-
# The overrides can include either one or more instance types or a set
|
4889
|
-
# of instance requirements, but not both.
|
4945
|
+
# launch template.
|
4890
4946
|
# @return [Array<Types::LaunchTemplateOverrides>]
|
4891
4947
|
#
|
4892
4948
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplate AWS API Documentation
|
@@ -4898,13 +4954,26 @@ module Aws::AutoScaling
|
|
4898
4954
|
include Aws::Structure
|
4899
4955
|
end
|
4900
4956
|
|
4901
|
-
#
|
4902
|
-
#
|
4903
|
-
#
|
4957
|
+
# Use this structure to let Amazon EC2 Auto Scaling do the following
|
4958
|
+
# when the Auto Scaling group has a mixed instances policy:
|
4959
|
+
#
|
4960
|
+
# * Override the instance type that is specified in the launch template.
|
4904
4961
|
#
|
4962
|
+
# * Use multiple instance types.
|
4905
4963
|
#
|
4964
|
+
# Specify the instance types that you want, or define your instance
|
4965
|
+
# requirements instead and let Amazon EC2 Auto Scaling provision the
|
4966
|
+
# available instance types that meet your requirements. This can provide
|
4967
|
+
# Amazon EC2 Auto Scaling with a larger selection of instance types to
|
4968
|
+
# choose from when fulfilling Spot and On-Demand capacities. You can
|
4969
|
+
# view which instance types are matched before you apply the instance
|
4970
|
+
# requirements to your Auto Scaling group.
|
4906
4971
|
#
|
4907
|
-
#
|
4972
|
+
# After you define your instance requirements, you don't have to keep
|
4973
|
+
# updating these settings to get new EC2 instance types automatically.
|
4974
|
+
# Amazon EC2 Auto Scaling uses the instance requirements of the Auto
|
4975
|
+
# Scaling group to determine whether a new EC2 instance type can be
|
4976
|
+
# used.
|
4908
4977
|
#
|
4909
4978
|
# @note When making an API call, you may pass LaunchTemplateOverrides
|
4910
4979
|
# data as a hash:
|
@@ -4963,34 +5032,52 @@ module Aws::AutoScaling
|
|
4963
5032
|
# min: 1,
|
4964
5033
|
# max: 1,
|
4965
5034
|
# },
|
5035
|
+
# network_bandwidth_gbps: {
|
5036
|
+
# min: 1.0,
|
5037
|
+
# max: 1.0,
|
5038
|
+
# },
|
5039
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
4966
5040
|
# },
|
4967
5041
|
# }
|
4968
5042
|
#
|
4969
5043
|
# @!attribute [rw] instance_type
|
4970
|
-
# The instance type, such as `m3.xlarge`. You must
|
5044
|
+
# The instance type, such as `m3.xlarge`. You must specify an instance
|
4971
5045
|
# type that is supported in your requested Region and Availability
|
4972
5046
|
# Zones. For more information, see [Instance types][1] in the *Amazon
|
4973
5047
|
# Elastic Compute Cloud User Guide*.
|
4974
5048
|
#
|
5049
|
+
# You can specify up to 40 instance types per Auto Scaling group.
|
5050
|
+
#
|
4975
5051
|
#
|
4976
5052
|
#
|
4977
5053
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
4978
5054
|
# @return [String]
|
4979
5055
|
#
|
4980
5056
|
# @!attribute [rw] weighted_capacity
|
4981
|
-
#
|
4982
|
-
#
|
4983
|
-
# throughput, or other relative
|
4984
|
-
# Spot or On-Demand Instance is
|
4985
|
-
#
|
4986
|
-
#
|
4987
|
-
# this results in an overage.
|
4988
|
-
#
|
4989
|
-
# launch an instance with a
|
4990
|
-
#
|
4991
|
-
# units. For more information,
|
4992
|
-
#
|
4993
|
-
# Guide*. Value must be in the
|
5057
|
+
# If you provide a list of instance types to use, you can specify the
|
5058
|
+
# number of capacity units provided by each instance type in terms of
|
5059
|
+
# virtual CPUs, memory, storage, throughput, or other relative
|
5060
|
+
# performance characteristic. When a Spot or On-Demand Instance is
|
5061
|
+
# launched, the capacity units count toward the desired capacity.
|
5062
|
+
# Amazon EC2 Auto Scaling launches instances until the desired
|
5063
|
+
# capacity is totally fulfilled, even if this results in an overage.
|
5064
|
+
# For example, if there are two units remaining to fulfill capacity,
|
5065
|
+
# and Amazon EC2 Auto Scaling can only launch an instance with a
|
5066
|
+
# `WeightedCapacity` of five units, the instance is launched, and the
|
5067
|
+
# desired capacity is exceeded by three units. For more information,
|
5068
|
+
# see [Configuring instance weighting for Amazon EC2 Auto Scaling][1]
|
5069
|
+
# in the *Amazon EC2 Auto Scaling User Guide*. Value must be in the
|
5070
|
+
# range of 1–999.
|
5071
|
+
#
|
5072
|
+
# If you specify a value for `WeightedCapacity` for one instance type,
|
5073
|
+
# you must specify a value for `WeightedCapacity` for all of them.
|
5074
|
+
#
|
5075
|
+
# Every Auto Scaling group has three size parameters
|
5076
|
+
# (`DesiredCapacity`, `MaxSize`, and `MinSize`). Usually, you set
|
5077
|
+
# these sizes based on a specific number of instances. However, if you
|
5078
|
+
# configure a mixed instances policy that defines weights for the
|
5079
|
+
# instance types, you must specify these sizes with the same units
|
5080
|
+
# that you use for weighting instances.
|
4994
5081
|
#
|
4995
5082
|
#
|
4996
5083
|
#
|
@@ -4998,13 +5085,17 @@ module Aws::AutoScaling
|
|
4998
5085
|
# @return [String]
|
4999
5086
|
#
|
5000
5087
|
# @!attribute [rw] launch_template_specification
|
5001
|
-
# Provides a launch template for the specified instance type or
|
5088
|
+
# Provides a launch template for the specified instance type or set of
|
5002
5089
|
# instance requirements. For example, some instance types might
|
5003
5090
|
# require a launch template with a different AMI. If not provided,
|
5004
|
-
# Amazon EC2 Auto Scaling uses the launch template that's
|
5005
|
-
#
|
5006
|
-
# different launch template for an instance type][1] in
|
5007
|
-
# EC2 Auto Scaling User Guide*.
|
5091
|
+
# Amazon EC2 Auto Scaling uses the launch template that's specified
|
5092
|
+
# in the `LaunchTemplate` definition. For more information, see
|
5093
|
+
# [Specifying a different launch template for an instance type][1] in
|
5094
|
+
# the *Amazon EC2 Auto Scaling User Guide*.
|
5095
|
+
#
|
5096
|
+
# You can specify up to 20 launch templates per Auto Scaling group.
|
5097
|
+
# The launch templates specified in the overrides and in the
|
5098
|
+
# `LaunchTemplate` definition count towards this limit.
|
5008
5099
|
#
|
5009
5100
|
#
|
5010
5101
|
#
|
@@ -5012,11 +5103,22 @@ module Aws::AutoScaling
|
|
5012
5103
|
# @return [Types::LaunchTemplateSpecification]
|
5013
5104
|
#
|
5014
5105
|
# @!attribute [rw] instance_requirements
|
5015
|
-
# The instance requirements.
|
5016
|
-
#
|
5017
|
-
#
|
5018
|
-
#
|
5019
|
-
#
|
5106
|
+
# The instance requirements. Amazon EC2 Auto Scaling uses your
|
5107
|
+
# specified requirements to identify instance types. Then, it uses
|
5108
|
+
# your On-Demand and Spot allocation strategies to launch instances
|
5109
|
+
# from these instance types.
|
5110
|
+
#
|
5111
|
+
# You can specify up to four separate sets of instance requirements
|
5112
|
+
# per Auto Scaling group. This is useful for provisioning instances
|
5113
|
+
# from different Amazon Machine Images (AMIs) in the same Auto Scaling
|
5114
|
+
# group. To do this, create the AMIs and create a new launch template
|
5115
|
+
# for each AMI. Then, create a compatible set of instance requirements
|
5116
|
+
# for each launch template.
|
5117
|
+
#
|
5118
|
+
# <note markdown="1"> If you specify `InstanceRequirements`, you can't specify
|
5119
|
+
# `InstanceType`.
|
5120
|
+
#
|
5121
|
+
# </note>
|
5020
5122
|
# @return [Types::InstanceRequirements]
|
5021
5123
|
#
|
5022
5124
|
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplateOverrides AWS API Documentation
|
@@ -5764,12 +5866,14 @@ module Aws::AutoScaling
|
|
5764
5866
|
include Aws::Structure
|
5765
5867
|
end
|
5766
5868
|
|
5767
|
-
#
|
5768
|
-
#
|
5769
|
-
#
|
5770
|
-
#
|
5771
|
-
#
|
5772
|
-
#
|
5869
|
+
# Use this structure to launch multiple instance types and On-Demand
|
5870
|
+
# Instances and Spot Instances within a single Auto Scaling group.
|
5871
|
+
#
|
5872
|
+
# A mixed instances policy contains information that Amazon EC2 Auto
|
5873
|
+
# Scaling can use to launch instances and help optimize your costs. For
|
5874
|
+
# more information, see [Auto Scaling groups with multiple instance
|
5875
|
+
# types and purchase options][1] in the *Amazon EC2 Auto Scaling User
|
5876
|
+
# Guide*.
|
5773
5877
|
#
|
5774
5878
|
#
|
5775
5879
|
#
|
@@ -5840,6 +5944,11 @@ module Aws::AutoScaling
|
|
5840
5944
|
# min: 1,
|
5841
5945
|
# max: 1,
|
5842
5946
|
# },
|
5947
|
+
# network_bandwidth_gbps: {
|
5948
|
+
# min: 1.0,
|
5949
|
+
# max: 1.0,
|
5950
|
+
# },
|
5951
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
5843
5952
|
# },
|
5844
5953
|
# },
|
5845
5954
|
# ],
|
@@ -5873,6 +5982,50 @@ module Aws::AutoScaling
|
|
5873
5982
|
include Aws::Structure
|
5874
5983
|
end
|
5875
5984
|
|
5985
|
+
# Specifies the minimum and maximum for the `NetworkBandwidthGbps`
|
5986
|
+
# object when you specify InstanceRequirements for an Auto Scaling
|
5987
|
+
# group.
|
5988
|
+
#
|
5989
|
+
# <note markdown="1"> Setting the minimum bandwidth does not guarantee that your instance
|
5990
|
+
# will achieve the minimum bandwidth. Amazon EC2 will identify instance
|
5991
|
+
# types that support the specified minimum bandwidth, but the actual
|
5992
|
+
# bandwidth of your instance might go below the specified minimum at
|
5993
|
+
# times. For more information, see [Available instance bandwidth][1] in
|
5994
|
+
# the *Amazon EC2 User Guide for Linux Instances*.
|
5995
|
+
#
|
5996
|
+
# </note>
|
5997
|
+
#
|
5998
|
+
#
|
5999
|
+
#
|
6000
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html#available-instance-bandwidth
|
6001
|
+
#
|
6002
|
+
# @note When making an API call, you may pass NetworkBandwidthGbpsRequest
|
6003
|
+
# data as a hash:
|
6004
|
+
#
|
6005
|
+
# {
|
6006
|
+
# min: 1.0,
|
6007
|
+
# max: 1.0,
|
6008
|
+
# }
|
6009
|
+
#
|
6010
|
+
# @!attribute [rw] min
|
6011
|
+
# The minimum amount of network bandwidth, in gigabits per second
|
6012
|
+
# (Gbps).
|
6013
|
+
# @return [Float]
|
6014
|
+
#
|
6015
|
+
# @!attribute [rw] max
|
6016
|
+
# The maximum amount of network bandwidth, in gigabits per second
|
6017
|
+
# (Gbps).
|
6018
|
+
# @return [Float]
|
6019
|
+
#
|
6020
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/NetworkBandwidthGbpsRequest AWS API Documentation
|
6021
|
+
#
|
6022
|
+
class NetworkBandwidthGbpsRequest < Struct.new(
|
6023
|
+
:min,
|
6024
|
+
:max)
|
6025
|
+
SENSITIVE = []
|
6026
|
+
include Aws::Structure
|
6027
|
+
end
|
6028
|
+
|
5876
6029
|
# Specifies the minimum and maximum for the `NetworkInterfaceCount`
|
5877
6030
|
# object when you specify InstanceRequirements for an Auto Scaling
|
5878
6031
|
# group.
|
@@ -8174,6 +8327,11 @@ module Aws::AutoScaling
|
|
8174
8327
|
# min: 1,
|
8175
8328
|
# max: 1,
|
8176
8329
|
# },
|
8330
|
+
# network_bandwidth_gbps: {
|
8331
|
+
# min: 1.0,
|
8332
|
+
# max: 1.0,
|
8333
|
+
# },
|
8334
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
8177
8335
|
# },
|
8178
8336
|
# },
|
8179
8337
|
# ],
|
@@ -8661,6 +8819,11 @@ module Aws::AutoScaling
|
|
8661
8819
|
# min: 1,
|
8662
8820
|
# max: 1,
|
8663
8821
|
# },
|
8822
|
+
# network_bandwidth_gbps: {
|
8823
|
+
# min: 1.0,
|
8824
|
+
# max: 1.0,
|
8825
|
+
# },
|
8826
|
+
# allowed_instance_types: ["AllowedInstanceType"],
|
8664
8827
|
# },
|
8665
8828
|
# },
|
8666
8829
|
# ],
|
@@ -8710,10 +8873,9 @@ module Aws::AutoScaling
|
|
8710
8873
|
# @return [Types::LaunchTemplateSpecification]
|
8711
8874
|
#
|
8712
8875
|
# @!attribute [rw] mixed_instances_policy
|
8713
|
-
#
|
8714
|
-
#
|
8715
|
-
#
|
8716
|
-
# Guide*.
|
8876
|
+
# The mixed instances policy. For more information, see [Auto Scaling
|
8877
|
+
# groups with multiple instance types and purchase options][1] in the
|
8878
|
+
# *Amazon EC2 Auto Scaling User Guide*.
|
8717
8879
|
#
|
8718
8880
|
#
|
8719
8881
|
#
|
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.82.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: 2022-
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|