# CommitmentInfoProperty

Information about your commitment for a future-dated Capacity Reservation.

- Source: Generated at build time
- Type last changed: v2.186.0 · 27 Mar 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `commitmentEndDate`: 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.

- `committedInstanceCount`: number — The instance capacity that you committed to when you requested the future-dated Capacity Reservation.
