public static final class CfnSpotFleet.LaunchTemplateOverridesProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnSpotFleet.LaunchTemplateOverridesProperty
CfnSpotFleet.LaunchTemplateOverridesProperty
CfnSpotFleet.LaunchTemplateOverridesProperty.Builder, CfnSpotFleet.LaunchTemplateOverridesProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
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(java.lang.Object o) |
java.lang.String |
getAvailabilityZone()
The Availability Zone in which to launch the instances.
|
java.lang.Object |
getInstanceRequirements()
The instance requirements.
|
java.lang.String |
getInstanceType()
The instance type.
|
java.lang.Number |
getPriority()
The priority for the launch template override.
|
java.lang.String |
getSpotPrice()
The maximum price per unit hour that you are willing to pay for a Spot Instance.
|
java.lang.String |
getSubnetId()
The ID of the subnet in which to launch the instances.
|
java.lang.Number |
getWeightedCapacity()
The number of units provided by the specified instance type.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.String getAvailabilityZone()
CfnSpotFleet.LaunchTemplateOverridesProperty
getAvailabilityZone
in interface CfnSpotFleet.LaunchTemplateOverridesProperty
public final java.lang.Object getInstanceRequirements()
CfnSpotFleet.LaunchTemplateOverridesProperty
When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify
InstanceRequirements
, you can't specifyInstanceTypes
.
getInstanceRequirements
in interface CfnSpotFleet.LaunchTemplateOverridesProperty
public final java.lang.String getInstanceType()
CfnSpotFleet.LaunchTemplateOverridesProperty
getInstanceType
in interface CfnSpotFleet.LaunchTemplateOverridesProperty
public final java.lang.Number getPriority()
CfnSpotFleet.LaunchTemplateOverridesProperty
If OnDemandAllocationStrategy
is set to prioritized
, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.
If the Spot AllocationStrategy
is set to capacityOptimizedPrioritized
, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.
Valid values are whole numbers starting at 0
. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.
getPriority
in interface CfnSpotFleet.LaunchTemplateOverridesProperty
public final java.lang.String getSpotPrice()
CfnSpotFleet.LaunchTemplateOverridesProperty
getSpotPrice
in interface CfnSpotFleet.LaunchTemplateOverridesProperty
public final java.lang.String getSubnetId()
CfnSpotFleet.LaunchTemplateOverridesProperty
getSubnetId
in interface CfnSpotFleet.LaunchTemplateOverridesProperty
public final java.lang.Number getWeightedCapacity()
CfnSpotFleet.LaunchTemplateOverridesProperty
getWeightedCapacity
in interface CfnSpotFleet.LaunchTemplateOverridesProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()