Skip to content

Commit 3c0b7c7

Browse files
committed
Update EC2 per 2021-11-04 changes
1 parent ab35c86 commit 3c0b7c7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

troposphere/ec2.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,7 @@ class LoadBalancersConfig(AWSProperty):
10981098
class SpotCapacityRebalance(AWSProperty):
10991099
props = {
11001100
"ReplacementStrategy": (str, False),
1101+
"TerminationDelay": (integer, False),
11011102
}
11021103

11031104

@@ -1491,11 +1492,29 @@ class OnDemandOptionsRequest(AWSProperty):
14911492
}
14921493

14931494

1495+
class CapacityRebalance(AWSProperty):
1496+
props = {
1497+
"ReplacementStrategy": (str, False),
1498+
"TerminationDelay": (integer, False),
1499+
}
1500+
1501+
1502+
class MaintenanceStrategies(AWSProperty):
1503+
props = {
1504+
"CapacityRebalance": (CapacityRebalance, False),
1505+
}
1506+
1507+
14941508
class SpotOptionsRequest(AWSProperty):
14951509
props = {
14961510
"AllocationStrategy": (str, False),
14971511
"InstanceInterruptionBehavior": (str, False),
14981512
"InstancePoolsToUseCount": (integer, False),
1513+
"MaintenanceStrategies": (MaintenanceStrategies, False),
1514+
"MaxTotalPrice": (str, False),
1515+
"MinTargetCapacity": (integer, False),
1516+
"SingleAvailabilityZone": (boolean, False),
1517+
"SingleInstanceType": (boolean, False),
14991518
}
15001519

15011520

0 commit comments

Comments
 (0)