Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner
and each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only
the Capacity Reservation owner's usage.
example
Use a bare-bones client and the command you need to make an API call.
Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner's usage.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, GetCapacityReservationUsageCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, GetCapacityReservationUsageCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new GetCapacityReservationUsageCommand(input); const response = await client.send(command);
GetCapacityReservationUsageCommandInput for command's
input
shape.GetCapacityReservationUsageCommandOutput for command's
response
shape.config for EC2Client's
config
shape.