interface TargetCapacitySpecificationRequestProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnEC2FleetPropsMixin.TargetCapacitySpecificationRequestProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnEC2FleetPropsMixin_TargetCapacitySpecificationRequestProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnEC2FleetPropsMixin.TargetCapacitySpecificationRequestProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnEC2FleetPropsMixin.TargetCapacitySpecificationRequestProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnEC2FleetPropsMixin » TargetCapacitySpecificationRequestProperty |
Specifies the number of units to request for an EC2 Fleet.
You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain , you can specify a target capacity of 0 and add capacity later.
TargetCapacitySpecificationRequest is a property of the AWS::EC2::EC2Fleet resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const targetCapacitySpecificationRequestProperty: ec2_mixins.CfnEC2FleetPropsMixin.TargetCapacitySpecificationRequestProperty = {
defaultTargetCapacityType: 'defaultTargetCapacityType',
onDemandTargetCapacity: 123,
spotTargetCapacity: 123,
targetCapacityUnitType: 'targetCapacityUnitType',
totalTargetCapacity: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| default | string | The default target capacity type. |
| on | number | The number of On-Demand units to request. |
| spot | number | The number of Spot units to request. |
| target | string | The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection. |
| total | number | The number of units to request, filled using the default target capacity type. |
defaultTargetCapacityType?
Type:
string
(optional)
The default target capacity type.
onDemandTargetCapacity?
Type:
number
(optional)
The number of On-Demand units to request.
spotTargetCapacity?
Type:
number
(optional)
The number of Spot units to request.
targetCapacityUnitType?
Type:
string
(optional)
The unit for the target capacity. You can specify this parameter only when using attributed-based instance type selection.
Default: units (the number of instances)
totalTargetCapacity?
Type:
number
(optional)
The number of units to request, filled using the default target capacity type.

.NET
Go
Java
Python
TypeScript