@Stability(value=Stable) @Internal public static final class CfnEC2Fleet.SpotOptionsRequestProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnEC2Fleet.SpotOptionsRequestProperty
CfnEC2Fleet.SpotOptionsRequestPropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnEC2Fleet.SpotOptionsRequestProperty.Builder, CfnEC2Fleet.SpotOptionsRequestProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnEC2Fleet.SpotOptionsRequestProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnEC2Fleet.AcceleratorCountRequestProperty.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getAllocationStrategy()
Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet.
|
String |
getInstanceInterruptionBehavior()
The behavior when a Spot Instance is interrupted.
|
Number |
getInstancePoolsToUseCount()
The number of Spot pools across which to allocate your target Spot capacity.
|
Object |
getMaintenanceStrategies()
The strategies for managing your Spot Instances that are at an elevated risk of being interrupted.
|
String |
getMaxTotalPrice()
The maximum amount per hour for Spot Instances that you're willing to pay.
|
Number |
getMinTargetCapacity()
The minimum target capacity for Spot Instances in the fleet.
|
Object |
getSingleAvailabilityZone()
Indicates that the fleet launches all Spot Instances into a single Availability Zone.
|
Object |
getSingleInstanceType()
Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnEC2Fleet.SpotOptionsRequestProperty.Builder builder)
CfnEC2Fleet.AcceleratorCountRequestProperty.Builder.public final String getAllocationStrategy()
CfnEC2Fleet.SpotOptionsRequestProperty
If the allocation strategy is lowestPrice , EC2 Fleet launches instances from the Spot Instance pools with the lowest price. This is the default allocation strategy.
If the allocation strategy is diversified , EC2 Fleet launches instances from all the Spot Instance pools that you specify.
If the allocation strategy is capacityOptimized , EC2 Fleet launches instances from Spot Instance pools that are optimally chosen based on the available Spot Instance capacity.
Allowed Values : lowestPrice | diversified | capacityOptimized | capacityOptimizedPrioritized
getAllocationStrategy in interface CfnEC2Fleet.SpotOptionsRequestPropertypublic final String getInstanceInterruptionBehavior()
CfnEC2Fleet.SpotOptionsRequestProperty
Default: terminate
getInstanceInterruptionBehavior in interface CfnEC2Fleet.SpotOptionsRequestPropertypublic final Number getInstancePoolsToUseCount()
CfnEC2Fleet.SpotOptionsRequestProperty
Supported only when Spot AllocationStrategy is set to lowest-price . EC2 Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.
Note that EC2 Fleet attempts to draw Spot Instances from the number of pools that you specify on a best effort basis. If a pool runs out of Spot capacity before fulfilling your target capacity, EC2 Fleet will continue to fulfill your request by drawing from the next cheapest pool. To ensure that your target capacity is met, you might receive Spot Instances from more than the number of pools that you specified. Similarly, if most of the pools have no Spot capacity, you might receive your full target capacity from fewer than the number of pools that you specified.
getInstancePoolsToUseCount in interface CfnEC2Fleet.SpotOptionsRequestPropertypublic final Object getMaintenanceStrategies()
CfnEC2Fleet.SpotOptionsRequestPropertygetMaintenanceStrategies in interface CfnEC2Fleet.SpotOptionsRequestPropertypublic final String getMaxTotalPrice()
CfnEC2Fleet.SpotOptionsRequestPropertygetMaxTotalPrice in interface CfnEC2Fleet.SpotOptionsRequestPropertypublic final Number getMinTargetCapacity()
CfnEC2Fleet.SpotOptionsRequestPropertyIf the minimum target capacity is not reached, the fleet launches no instances.
Supported only for fleets of type instant .
At least one of the following must be specified: SingleAvailabilityZone | SingleInstanceType
getMinTargetCapacity in interface CfnEC2Fleet.SpotOptionsRequestPropertypublic final Object getSingleAvailabilityZone()
CfnEC2Fleet.SpotOptionsRequestProperty
Supported only for fleets of type instant .
getSingleAvailabilityZone in interface CfnEC2Fleet.SpotOptionsRequestPropertypublic final Object getSingleInstanceType()
CfnEC2Fleet.SpotOptionsRequestProperty
Supported only for fleets of type instant .
getSingleInstanceType in interface CfnEC2Fleet.SpotOptionsRequestProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.