cancel_capacity_reservation_fleets(**kwargs)¶Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity Reservation Fleet, the following happens:
cancelled .See also: AWS API Documentation
Request Syntax
response = client.cancel_capacity_reservation_fleets(
    DryRun=True|False,
    CapacityReservationFleetIds=[
        'string',
    ]
)
DryRunOperation . Otherwise, it is UnauthorizedOperation .[REQUIRED]
The IDs of the Capacity Reservation Fleets to cancel.
dict
Response Syntax
{
    'SuccessfulFleetCancellations': [
        {
            'CurrentFleetState': 'submitted'|'modifying'|'active'|'partially_fulfilled'|'expiring'|'expired'|'cancelling'|'cancelled'|'failed',
            'PreviousFleetState': 'submitted'|'modifying'|'active'|'partially_fulfilled'|'expiring'|'expired'|'cancelling'|'cancelled'|'failed',
            'CapacityReservationFleetId': 'string'
        },
    ],
    'FailedFleetCancellations': [
        {
            'CapacityReservationFleetId': 'string',
            'CancelCapacityReservationFleetError': {
                'Code': 'string',
                'Message': 'string'
            }
        },
    ]
}
Response Structure
(dict) --
SuccessfulFleetCancellations (list) --
Information about the Capacity Reservation Fleets that were successfully cancelled.
(dict) --
Describes a Capacity Reservation Fleet that was successfully cancelled.
CurrentFleetState (string) --
The current state of the Capacity Reservation Fleet.
PreviousFleetState (string) --
The previous state of the Capacity Reservation Fleet.
CapacityReservationFleetId (string) --
The ID of the Capacity Reservation Fleet that was successfully cancelled.
FailedFleetCancellations (list) --
Information about the Capacity Reservation Fleets that could not be cancelled.
(dict) --
Describes a Capacity Reservation Fleet that could not be cancelled.
CapacityReservationFleetId (string) --
The ID of the Capacity Reservation Fleet that could not be cancelled.
CancelCapacityReservationFleetError (dict) --
Information about the Capacity Reservation Fleet cancellation error.
Code (string) --
The error code.
Message (string) --
The error message.