Cancel Capacity Reservation Fleets
ec2_cancel_capacity_reservation_fleets | R Documentation |
Cancels one or more Capacity Reservation Fleets¶
Description¶
Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity Reservation Fleet, the following happens:
-
The Capacity Reservation Fleet's status changes to
cancelled
. -
The individual Capacity Reservations in the Fleet are cancelled. Instances running in the Capacity Reservations at the time of cancelling the Fleet continue to run in shared capacity.
-
The Fleet stops creating new Capacity Reservations.
Usage¶
Arguments¶
DryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.CapacityReservationFleetIds
[required] The IDs of the Capacity Reservation Fleets to cancel.
Value¶
A list with the following syntax:
list(
SuccessfulFleetCancellations = list(
list(
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 = list(
list(
CapacityReservationFleetId = "string",
CancelCapacityReservationFleetError = list(
Code = "string",
Message = "string"
)
)
)
)