Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModifyCapacityReservationCommand

Modifies a Capacity Reservation's capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation's instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes.

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, ModifyCapacityReservationCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, ModifyCapacityReservationCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new ModifyCapacityReservationCommand(input);
const response = await client.send(command);
see

ModifyCapacityReservationCommandInput for command's input shape.

see

ModifyCapacityReservationCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ModifyCapacityReservationCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions