public static final class CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
public CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.Builder availabilityZone(java.lang.String availabilityZone)
CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.getAvailabilityZone()
availabilityZone
- The Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.this
public CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.Builder availabilityZoneId(java.lang.String availabilityZoneId)
CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.getAvailabilityZoneId()
availabilityZoneId
- The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity.
A Capacity Reservation Fleet can't span Availability Zones. All instance type specifications that you specify for the Fleet must use the same Availability Zone.this
public CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.Builder ebsOptimized(java.lang.Boolean ebsOptimized)
ebsOptimized
- Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types.
This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using EBS-optimized instance types.this
public CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.Builder ebsOptimized(IResolvable ebsOptimized)
ebsOptimized
- Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types.
This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using EBS-optimized instance types.this
public CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.Builder instancePlatform(java.lang.String instancePlatform)
CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.getInstancePlatform()
instancePlatform
- The type of operating system for which the Capacity Reservation Fleet reserves capacity.this
public CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.Builder instanceType(java.lang.String instanceType)
instanceType
- The instance type for which the Capacity Reservation Fleet reserves capacity.this
public CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.Builder priority(java.lang.Number priority)
priority
- The priority to assign to the instance type.
This value is used to determine which of the instance types specified for the Fleet should be prioritized for use. A lower value indicates a high priority. For more information, see Instance type priority in the Amazon EC2 User Guide.this
public CfnCapacityReservationFleet.InstanceTypeSpecificationProperty.Builder weight(java.lang.Number weight)
weight
- The number of capacity units provided by the specified instance type.
This value, together with the total target capacity that you specify for the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see Total target capacity in the Amazon EC2 User Guide.
Valid Range: Minimum value of 0.001
. Maximum value of 99.999
.
this
public CfnCapacityReservationFleet.InstanceTypeSpecificationProperty build()
CfnCapacityReservationFleet.InstanceTypeSpecificationProperty
java.lang.NullPointerException
- if any required attribute was not provided