interface ReservedCapacityOptionsRequestProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnEC2Fleet.ReservedCapacityOptionsRequestProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnEC2Fleet_ReservedCapacityOptionsRequestProperty |
Java | software.amazon.awscdk.services.ec2.CfnEC2Fleet.ReservedCapacityOptionsRequestProperty |
Python | aws_cdk.aws_ec2.CfnEC2Fleet.ReservedCapacityOptionsRequestProperty |
TypeScript | aws-cdk-lib » aws_ec2 » CfnEC2Fleet » ReservedCapacityOptionsRequestProperty |
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-lib';
const reservedCapacityOptionsRequestProperty: ec2.CfnEC2Fleet.ReservedCapacityOptionsRequestProperty = {
allocationStrategy: 'allocationStrategy',
capacityReservationTarget: {
capacityReservationIds: ['capacityReservationIds'],
capacityReservationResourceGroupArns: ['capacityReservationResourceGroupArns'],
},
reservationTypes: ['reservationTypes'],
reservedCapacityFallbackOptions: {
marketTypes: ['marketTypes'],
},
};
Properties
| Name | Type | Description |
|---|---|---|
| allocation | string | |
| capacity | IResolvable | Capacity | |
| reservation | string[] | |
| reserved | IResolvable | Reserved |
allocationStrategy?
Type:
string
(optional)
capacityReservationTarget?
Type:
IResolvable | Capacity
(optional)
reservationTypes?
Type:
string[]
(optional)
reservedCapacityFallbackOptions?
Type:
IResolvable | Reserved
(optional)

.NET
Go
Java
Python
TypeScript