Class CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty-
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.FleetLaunchTemplateOverridesRequestProperty
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder, CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.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 StringThe Availability Zone in which to launch the instances.final ObjectThe block device mappings, which define the EBS volumes and instance store volumes to attach to the instance at launch.final ObjectThe attributes for the instance types.final StringThe instance type.final StringThe maximum price per unit hour that you are willing to pay for a Spot Instance.final ObjectThe location where the instance launched, if applicable.final NumberThe priority for the launch template override.final StringThe IDs of the subnets in which to launch the instances.final NumberThe number of units provided by the specified instance type.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.FleetLaunchTemplateOverridesRequestProperty.Builder.
-
-
Method Details
-
getAvailabilityZone
Description copied from interface:CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyThe Availability Zone in which to launch the instances.- Specified by:
getAvailabilityZonein interfaceCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty- See Also:
-
getBlockDeviceMappings
Description copied from interface:CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyThe block device mappings, which define the EBS volumes and instance store volumes to attach to the instance at launch.Supported only for fleets of type
instant.For more information, see Block device mappings for volumes on Amazon EC2 instances in the Amazon EC2 User Guide .
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnEC2Fleet.BlockDeviceMappingProperty>- Specified by:
getBlockDeviceMappingsin interfaceCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty- See Also:
-
getInstanceRequirements
Description copied from interface:CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyThe attributes for the instance types.When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify
InstanceRequirements, you can't specifyInstanceType.Returns union: either
IResolvableorCfnEC2Fleet.InstanceRequirementsRequestProperty- Specified by:
getInstanceRequirementsin interfaceCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty- See Also:
-
getInstanceType
Description copied from interface:CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyThe instance type.mac1.metalis not supported as a launch template override.If you specify
InstanceType, you can't specifyInstanceRequirements.- Specified by:
getInstanceTypein interfaceCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty- See Also:
-
getMaxPrice
Description copied from interface:CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyThe maximum price per unit hour that you are willing to pay for a Spot Instance.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 instances will be interrupted more frequently than if you do not specify this parameter.
If you specify a maximum price, it must be more than USD $0.001. Specifying a value below USD $0.001 will result in an
InvalidParameterValueerror message.- Specified by:
getMaxPricein interfaceCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty- See Also:
-
getPlacement
Description copied from interface:CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyThe location where the instance launched, if applicable.Returns union: either
IResolvableorCfnEC2Fleet.PlacementProperty- Specified by:
getPlacementin interfaceCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty- See Also:
-
getPriority
Description copied from interface:CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyThe priority for the launch template override. The highest priority is launched first.If the On-Demand
AllocationStrategyis set toprioritized, EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.If the Spot
AllocationStrategyis set tocapacity-optimized-prioritized, EC2 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.- Specified by:
getPriorityin interfaceCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty- See Also:
-
getSubnetId
Description copied from interface:CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyThe IDs of the subnets in which to launch the instances.Separate multiple subnet IDs using commas (for example,
subnet-1234abcdeexample1, subnet-0987cdef6example2). A request of typeinstantcan have only one subnet ID.- Specified by:
getSubnetIdin interfaceCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty- See Also:
-
getWeightedCapacity
Description copied from interface:CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyThe number of units provided by the specified instance type.These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.
If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.
When specifying weights, the price used in the
lowest-priceandprice-capacity-optimizedallocation strategies is per unit hour (where the instance price is divided by the specified weight). However, if all the specified weights are above the requestedTargetCapacity, resulting in only 1 instance being launched, the price used is per instance hour.- Specified by:
getWeightedCapacityin interfaceCfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty- 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()
-