interface InstanceTypeSpecificationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.CfnCapacityReservationFleet.InstanceTypeSpecificationProperty |
![]() | software.amazon.awscdk.services.ec2.CfnCapacityReservationFleet.InstanceTypeSpecificationProperty |
![]() | aws_cdk.aws_ec2.CfnCapacityReservationFleet.InstanceTypeSpecificationProperty |
![]() | @aws-cdk/aws-ec2 » CfnCapacityReservationFleet » InstanceTypeSpecificationProperty |
Specifies information about an instance type to use in a Capacity Reservation Fleet.
InstanceTypeSpecification
is a property of the AWS::EC2::CapacityReservationFleet resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
const instanceTypeSpecificationProperty: ec2.CfnCapacityReservationFleet.InstanceTypeSpecificationProperty = {
availabilityZone: 'availabilityZone',
availabilityZoneId: 'availabilityZoneId',
ebsOptimized: false,
instancePlatform: 'instancePlatform',
instanceType: 'instanceType',
priority: 123,
weight: 123,
};
Properties
Name | Type | Description |
---|---|---|
availability | string | The Availability Zone in which the Capacity Reservation Fleet reserves the capacity. |
availability | string | The ID of the Availability Zone in which the Capacity Reservation Fleet reserves the capacity. |
ebs | boolean | IResolvable | Indicates whether the Capacity Reservation Fleet supports EBS-optimized instances types. |
instance | string | The type of operating system for which the Capacity Reservation Fleet reserves capacity. |
instance | string | The instance type for which the Capacity Reservation Fleet reserves capacity. |
priority? | number | The priority to assign to the instance type. |
weight? | number | The number of capacity units provided by the specified instance type. |
availabilityZone?
Type:
string
(optional)
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.
availabilityZoneId?
Type:
string
(optional)
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.
ebsOptimized?
Type:
boolean |
IResolvable
(optional)
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.
instancePlatform?
Type:
string
(optional)
The type of operating system for which the Capacity Reservation Fleet reserves capacity.
instanceType?
Type:
string
(optional)
The instance type for which the Capacity Reservation Fleet reserves capacity.
priority?
Type:
number
(optional)
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.
weight?
Type:
number
(optional)
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
.