Interface CfnEC2Fleet.SpotOptionsRequestProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnEC2Fleet.SpotOptionsRequestProperty.Jsii$Proxy
Enclosing class:
CfnEC2Fleet

@Stability(Stable) public static interface CfnEC2Fleet.SpotOptionsRequestProperty extends software.amazon.jsii.JsiiSerializable
Specifies the configuration of Spot Instances for an EC2 Fleet.

SpotOptionsRequest is a property of the AWS::EC2::EC2Fleet resource.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 SpotOptionsRequestProperty spotOptionsRequestProperty = SpotOptionsRequestProperty.builder()
         .allocationStrategy("allocationStrategy")
         .instanceInterruptionBehavior("instanceInterruptionBehavior")
         .instancePoolsToUseCount(123)
         .maintenanceStrategies(MaintenanceStrategiesProperty.builder()
                 .capacityRebalance(CapacityRebalanceProperty.builder()
                         .replacementStrategy("replacementStrategy")
                         .terminationDelay(123)
                         .build())
                 .build())
         .maxTotalPrice("maxTotalPrice")
         .minTargetCapacity(123)
         .singleAvailabilityZone(false)
         .singleInstanceType(false)
         .build();
 

See Also: