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