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.
example
Use a bare-bones client and the command you need to make an API call.
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.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, CancelCapacityReservationFleetsCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, CancelCapacityReservationFleetsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new CancelCapacityReservationFleetsCommand(input); const response = await client.send(command);
CancelCapacityReservationFleetsCommandInput for command's
input
shape.CancelCapacityReservationFleetsCommandOutput for command's
response
shape.config for EC2Client's
config
shape.