CapacityAllocationProperty Struct
Information about instance capacity usage for a Capacity Reservation.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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-lib';
const capacityAllocationProperty: ec2.CfnCapacityReservation.CapacityAllocationProperty = {
allocationType: 'allocationType',
count: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
capacity_allocation_property = ec2.CfnCapacityReservation.CapacityAllocationProperty(
allocation_type="allocationType",
count=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CapacityAllocationProperty capacityAllocationProperty = CapacityAllocationProperty.builder()
.allocationType("allocationType")
.count(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var capacityAllocationProperty = new CapacityAllocationProperty {
AllocationType = "allocationType",
Count = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
capacityAllocationProperty := &CapacityAllocationProperty{
AllocationType: jsii.String("allocationType"),
Count: jsii.Number(123),
}
Properties
allocationTypeoptionalstringallocation_typeoptionalstrallocationTypeoptionalStringAllocationTypeoptionalstringAllocationTypeoptional*string #The usage type.
used indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.
countoptionalnumbercountoptionalint | floatcountoptionalNumberCountoptionaldoubleCountoptional*float64 #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.