interface CapacityAllocationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EC2.CfnCapacityReservationPropsMixin.CapacityAllocationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsec2#CfnCapacityReservationPropsMixin_CapacityAllocationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnCapacityReservationPropsMixin.CapacityAllocationProperty |
Python | aws_cdk.cfn_property_mixins.aws_ec2.CfnCapacityReservationPropsMixin.CapacityAllocationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ec2 » 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 { aws_ec2 as ec2 } from '@aws-cdk/cfn-property-mixins';
const capacityAllocationProperty: ec2.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