interface CapacityAllocationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnCapacityReservationPropsMixin.CapacityAllocationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnCapacityReservationPropsMixin_CapacityAllocationProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnCapacityReservationPropsMixin.CapacityAllocationProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnCapacityReservationPropsMixin.CapacityAllocationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » CfnCapacityReservationPropsMixin » CapacityAllocationProperty |
Information about instance capacity usage for a Capacity Reservation.
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 capacityAllocationProperty: ec2_mixins.CfnCapacityReservationPropsMixin.CapacityAllocationProperty = {
allocationType: 'allocationType',
count: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| allocation | string | The usage type. |
| count? | number | The amount of instance capacity associated with the usage. |
allocationType?
Type:
string
(optional)
The usage type.
used indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.
count?
Type:
number
(optional)
The amount of instance capacity associated with the usage.
For example a value of 4 indicates that instance capacity for 4 instances is currently in use.

.NET
Go
Java
Python
TypeScript