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.
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.
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);
ModifyCapacityReservationCommandInput for command's
input
shape.ModifyCapacityReservationCommandOutput for command's
response
shape.config for EC2Client's
config
shape.