Returns a list of all instance types offered. The results can be filtered by location (Region or Availability
Zone). If no location is specified, the instance types offered in the current Region are returned.
example
Use a bare-bones client and the command you need to make an API call.
Returns a list of all instance types offered. The results can be filtered by location (Region or Availability Zone). If no location is specified, the instance types offered in the current Region are returned.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, DescribeInstanceTypeOfferingsCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, DescribeInstanceTypeOfferingsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new DescribeInstanceTypeOfferingsCommand(input); const response = await client.send(command);
DescribeInstanceTypeOfferingsCommandInput for command's
input
shape.DescribeInstanceTypeOfferingsCommandOutput for command's
response
shape.config for EC2Client's
config
shape.