Class CfnEC2Fleet.SpotOptionsRequestProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnEC2Fleet.SpotOptionsRequestProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnEC2Fleet.SpotOptionsRequestProperty
CfnEC2Fleet.SpotOptionsRequestProperty-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.CfnEC2Fleet.SpotOptionsRequestProperty
CfnEC2Fleet.SpotOptionsRequestProperty.Builder, CfnEC2Fleet.SpotOptionsRequestProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnEC2Fleet.SpotOptionsRequestProperty.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringIndicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet.final StringThe behavior when a Spot Instance is interrupted.final NumberThe number of Spot pools across which to allocate your target Spot capacity.final ObjectThe strategies for managing your Spot Instances that are at an elevated risk of being interrupted.final StringThe maximum amount per hour for Spot Instances that you're willing to pay.final NumberThe minimum target capacity for Spot Instances in the fleet.final ObjectIndicates that the fleet launches all Spot Instances into a single Availability Zone.final ObjectIndicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnEC2Fleet.SpotOptionsRequestProperty.Builder.
-
-
Method Details
-
getAllocationStrategy
Description copied from interface:CfnEC2Fleet.SpotOptionsRequestPropertyIndicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet.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- Specified by:
getAllocationStrategyin interfaceCfnEC2Fleet.SpotOptionsRequestProperty- See Also:
-
getInstanceInterruptionBehavior
Description copied from interface:CfnEC2Fleet.SpotOptionsRequestPropertyThe behavior when a Spot Instance is interrupted.Default:
terminate- Specified by:
getInstanceInterruptionBehaviorin interfaceCfnEC2Fleet.SpotOptionsRequestProperty- See Also:
-
getInstancePoolsToUseCount
Description copied from interface:CfnEC2Fleet.SpotOptionsRequestPropertyThe number of Spot pools across which to allocate your target Spot capacity.Supported only when Spot
AllocationStrategyis set tolowest-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.
- Specified by:
getInstancePoolsToUseCountin interfaceCfnEC2Fleet.SpotOptionsRequestProperty- See Also:
-
getMaintenanceStrategies
Description copied from interface:CfnEC2Fleet.SpotOptionsRequestPropertyThe strategies for managing your Spot Instances that are at an elevated risk of being interrupted.Returns union: either
IResolvableorCfnEC2Fleet.MaintenanceStrategiesProperty- Specified by:
getMaintenanceStrategiesin interfaceCfnEC2Fleet.SpotOptionsRequestProperty- See Also:
-
getMaxTotalPrice
Description copied from interface:CfnEC2Fleet.SpotOptionsRequestPropertyThe maximum amount per hour for Spot Instances that you're willing to pay.We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.
If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter. > If your fleet includes T instances that are configured as
unlimited, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. TheMaxTotalPricedoes not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified forMaxTotalPrice. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .- Specified by:
getMaxTotalPricein interfaceCfnEC2Fleet.SpotOptionsRequestProperty- See Also:
-
getMinTargetCapacity
Description copied from interface:CfnEC2Fleet.SpotOptionsRequestPropertyThe minimum target capacity for Spot Instances in the fleet.If this minimum capacity isn't reached, no instances are launched.
Constraints: Maximum value of
1000. Supported only for fleets of typeinstant.At least one of the following must be specified:
SingleAvailabilityZone|SingleInstanceType- Specified by:
getMinTargetCapacityin interfaceCfnEC2Fleet.SpotOptionsRequestProperty- See Also:
-
getSingleAvailabilityZone
Description copied from interface:CfnEC2Fleet.SpotOptionsRequestPropertyIndicates that the fleet launches all Spot Instances into a single Availability Zone.Supported only for fleets of type
instant.Returns union: either
BooleanorIResolvable- Specified by:
getSingleAvailabilityZonein interfaceCfnEC2Fleet.SpotOptionsRequestProperty- See Also:
-
getSingleInstanceType
Description copied from interface:CfnEC2Fleet.SpotOptionsRequestPropertyIndicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.Supported only for fleets of type
instant.Returns union: either
BooleanorIResolvable- Specified by:
getSingleInstanceTypein interfaceCfnEC2Fleet.SpotOptionsRequestProperty- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-