public static final class CfnCapacityReservation.Builder
extends java.lang.Object
CfnCapacityReservation
.Modifier and Type | Method and Description |
---|---|
CfnCapacityReservation.Builder |
availabilityZone(java.lang.String availabilityZone)
The Availability Zone in which to create the Capacity Reservation.
|
CfnCapacityReservation |
build() |
static CfnCapacityReservation.Builder |
create(Construct scope,
java.lang.String id) |
CfnCapacityReservation.Builder |
ebsOptimized(java.lang.Boolean ebsOptimized)
Indicates whether the Capacity Reservation supports EBS-optimized instances.
|
CfnCapacityReservation.Builder |
ebsOptimized(IResolvable ebsOptimized)
Indicates whether the Capacity Reservation supports EBS-optimized instances.
|
CfnCapacityReservation.Builder |
endDate(java.lang.String endDate)
The date and time at which the Capacity Reservation expires.
|
CfnCapacityReservation.Builder |
endDateType(java.lang.String endDateType)
Indicates the way in which the Capacity Reservation ends.
|
CfnCapacityReservation.Builder |
ephemeralStorage(java.lang.Boolean ephemeralStorage)
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
|
CfnCapacityReservation.Builder |
ephemeralStorage(IResolvable ephemeralStorage)
Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.
|
CfnCapacityReservation.Builder |
instanceCount(java.lang.Number instanceCount)
The number of instances for which to reserve capacity.
|
CfnCapacityReservation.Builder |
instanceMatchCriteria(java.lang.String instanceMatchCriteria)
Indicates the type of instance launches that the Capacity Reservation accepts.
|
CfnCapacityReservation.Builder |
instancePlatform(java.lang.String instancePlatform)
The type of operating system for which to reserve capacity.
|
CfnCapacityReservation.Builder |
instanceType(java.lang.String instanceType)
The instance type for which to reserve capacity.
|
CfnCapacityReservation.Builder |
outPostArn(java.lang.String outPostArn)
The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation.
|
CfnCapacityReservation.Builder |
placementGroupArn(java.lang.String placementGroupArn)
The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation.
|
CfnCapacityReservation.Builder |
tagSpecifications(IResolvable tagSpecifications)
The tags to apply to the Capacity Reservation during launch.
|
CfnCapacityReservation.Builder |
tagSpecifications(java.util.List<? extends java.lang.Object> tagSpecifications)
The tags to apply to the Capacity Reservation during launch.
|
CfnCapacityReservation.Builder |
tenancy(java.lang.String tenancy)
Indicates the tenancy of the Capacity Reservation.
|
public static CfnCapacityReservation.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnCapacityReservation.TagSpecificationProperty.Builder
.public CfnCapacityReservation.Builder availabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone in which to create the Capacity Reservation. This parameter is required.this
public CfnCapacityReservation.Builder instanceCount(java.lang.Number instanceCount)
Valid range: 1 - 1000
instanceCount
- The number of instances for which to reserve capacity. This parameter is required.this
public CfnCapacityReservation.Builder instancePlatform(java.lang.String instancePlatform)
instancePlatform
- The type of operating system for which to reserve capacity. This parameter is required.this
public CfnCapacityReservation.Builder instanceType(java.lang.String instanceType)
For more information, see Instance types in the Amazon EC2 User Guide .
instanceType
- The instance type for which to reserve capacity. This parameter is required.this
public CfnCapacityReservation.Builder ebsOptimized(java.lang.Boolean ebsOptimized)
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 an EBS- optimized instance.
ebsOptimized
- Indicates whether the Capacity Reservation supports EBS-optimized instances. This parameter is required.this
public CfnCapacityReservation.Builder ebsOptimized(IResolvable ebsOptimized)
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 an EBS- optimized instance.
ebsOptimized
- Indicates whether the Capacity Reservation supports EBS-optimized instances. This parameter is required.this
public CfnCapacityReservation.Builder endDate(java.lang.String endDate)
When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired
when it reaches its end date and time.
You must provide an EndDate
value if EndDateType
is limited
. Omit EndDate
if EndDateType
is unlimited
.
If the EndDateType
is limited
, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
endDate
- The date and time at which the Capacity Reservation expires. This parameter is required.this
public CfnCapacityReservation.Builder endDateType(java.lang.String endDateType)
A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide an EndDate
if the EndDateType
is unlimited
.limited
- The Capacity Reservation expires automatically at a specified date and time. You must provide an EndDate
value if the EndDateType
value is limited
.endDateType
- Indicates the way in which the Capacity Reservation ends. This parameter is required.this
public CfnCapacityReservation.Builder ephemeralStorage(java.lang.Boolean ephemeralStorage)
ephemeralStorage
- Indicates whether the Capacity Reservation supports instances with temporary, block-level storage. This parameter is required.this
public CfnCapacityReservation.Builder ephemeralStorage(IResolvable ephemeralStorage)
ephemeralStorage
- Indicates whether the Capacity Reservation supports instances with temporary, block-level storage. This parameter is required.this
public CfnCapacityReservation.Builder instanceMatchCriteria(java.lang.String instanceMatchCriteria)
open
- The Capacity Reservation automatically matches all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity Reservation automatically without specifying any additional parameters.targeted
- The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.
Default: open
instanceMatchCriteria
- Indicates the type of instance launches that the Capacity Reservation accepts. The options include:. This parameter is required.this
public CfnCapacityReservation.Builder outPostArn(java.lang.String outPostArn)
outPostArn
- The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity Reservation. This parameter is required.this
public CfnCapacityReservation.Builder placementGroupArn(java.lang.String placementGroupArn)
For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide .
placementGroupArn
- The Amazon Resource Name (ARN) of the cluster placement group in which to create the Capacity Reservation. This parameter is required.this
public CfnCapacityReservation.Builder tagSpecifications(IResolvable tagSpecifications)
tagSpecifications
- The tags to apply to the Capacity Reservation during launch. This parameter is required.this
public CfnCapacityReservation.Builder tagSpecifications(java.util.List<? extends java.lang.Object> tagSpecifications)
tagSpecifications
- The tags to apply to the Capacity Reservation during launch. This parameter is required.this
public CfnCapacityReservation.Builder tenancy(java.lang.String tenancy)
default
- The Capacity Reservation is created on hardware that is shared with other AWS accounts .dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a single AWS account .tenancy
- Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:. This parameter is required.this
public CfnCapacityReservation build()