CommitmentInfoProperty Struct
Information about your commitment for a future-dated 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 commitmentInfoProperty: ec2.CfnCapacityReservation.CommitmentInfoProperty = {
commitmentEndDate: 'commitmentEndDate',
committedInstanceCount: 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
commitment_info_property = ec2.CfnCapacityReservation.CommitmentInfoProperty(
commitment_end_date="commitmentEndDate",
committed_instance_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.*;
CommitmentInfoProperty commitmentInfoProperty = CommitmentInfoProperty.builder()
.commitmentEndDate("commitmentEndDate")
.committedInstanceCount(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 commitmentInfoProperty = new CommitmentInfoProperty {
CommitmentEndDate = "commitmentEndDate",
CommittedInstanceCount = 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"
commitmentInfoProperty := &CommitmentInfoProperty{
CommitmentEndDate: jsii.String("commitmentEndDate"),
CommittedInstanceCount: jsii.Number(123),
}
Properties
commitmentEndDateoptionalstringcommitment_end_dateoptionalstrcommitmentEndDateoptionalStringCommitmentEndDateoptionalstringCommitmentEndDateoptional*string #The date and time at which the commitment duration expires, in the ISO8601 format in the UTC time zone ( `YYYY-MM-DDThh:mm:ss.sssZ` ). You can't decrease the instance count or cancel the Capacity Reservation before this date and time.
committedInstanceCountoptionalnumbercommitted_instance_countoptionalint | floatcommittedInstanceCountoptionalNumberCommittedInstanceCountoptionaldoubleCommittedInstanceCountoptional*float64 #The instance capacity that you committed to when you requested the future-dated Capacity Reservation.