Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GetCapacityReservationUsageCommand

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.

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

GetCapacityReservationUsageCommandInput for command's input shape.

see

GetCapacityReservationUsageCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: GetCapacityReservationUsageCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions