Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CancelCapacityReservationFleetsCommand

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.

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);
see

CancelCapacityReservationFleetsCommandInput for command's input shape.

see

CancelCapacityReservationFleetsCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CancelCapacityReservationFleetsCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions