Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DescribeRegionsCommand

Describes the Regions that are enabled for your account, or all Regions.

For a list of the Regions supported by Amazon EC2, see Amazon Elastic Compute Cloud endpoints and quotas.

For information about enabling and disabling Regions for your account, see Managing Amazon Web Services Regions in the Amazon Web Services General Reference.

example

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

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

DescribeRegionsCommandInput for command's input shape.

see

DescribeRegionsCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: DescribeRegionsCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DescribeRegionsCommandInput, DescribeRegionsCommandOutput>