Skip to content

EC2  >  Structures  >  CancellationTerms

CancellationTerms

Structure Class

CancellationTerms dataclass

Bases: _SerdeShape

Describes the cancellation terms for cancelling a future-dated Capacity Reservation during its commitment duration.

Attributes

cancellation_type class-attribute instance-attribute
cancellation_type: str | None = ...

The type of cancellation charge. Possible values include commitment-wind-down.

charge_commitment_duration_hours class-attribute instance-attribute
charge_commitment_duration_hours: int | None = ...

The number of hours for which cancellation charges will apply.

charge_end_date class-attribute instance-attribute
charge_end_date: datetime | None = ...

The date and time at which cancellation charges will stop.

committed_instance_count class-attribute instance-attribute
committed_instance_count: int | None = ...

The number of instances under commitment after cancellation.

reservation_state class-attribute instance-attribute
reservation_state: str | None = ...

The state that the Capacity Reservation will transition to after cancellation.