@Stability(value=Stable) public static final class CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty>
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder availabilityZone(String availabilityZone)
availabilityZone - The Availability Zone in which to launch the instances.this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder instanceRequirements(CfnEC2Fleet.InstanceRequirementsRequestProperty instanceRequirements)
instanceRequirements - The 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 specifyInstanceTypes.
this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder instanceRequirements(IResolvable instanceRequirements)
instanceRequirements - The 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 specifyInstanceTypes.
this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder instanceType(String instanceType)
instanceType - The instance type.
If you specify
InstanceTypes, you can't specifyInstanceRequirements.
this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder maxPrice(String maxPrice)
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.getMaxPrice()maxPrice - The maximum price per unit hour that you are willing to pay for a Spot Instance.this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder placement(CfnEC2Fleet.PlacementProperty placement)
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.getPlacement()placement - The location where the instance launched, if applicable.this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder placement(IResolvable placement)
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.getPlacement()placement - The location where the instance launched, if applicable.this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder priority(Number priority)
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.getPriority()priority - The priority for the launch template override. The highest priority is launched first.
If the On-Demand AllocationStrategy is set to prioritized , EC2 Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.
If the Spot AllocationStrategy is set to capacity-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.
this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder subnetId(String subnetId)
CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.getSubnetId()subnetId - The 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 type instant can have only one subnet ID.this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty.Builder weightedCapacity(Number weightedCapacity)
weightedCapacity - The number of units provided by the specified instance type.this@Stability(value=Stable) public CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty build()
build in interface software.amazon.jsii.Builder<CfnEC2Fleet.FleetLaunchTemplateOverridesRequestProperty>CfnEC2Fleet.FleetLaunchTemplateOverridesRequestPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.