Learn Data & AI Skills | 50% off
Get 50% off unlimited learning

paws.compute (version 0.1.12)

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

Description

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

For a list of the Regions supported by Amazon EC2, see Regions and Endpoints.

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

Usage

ec2_describe_regions(Filters, RegionNames, DryRun, AllRegions)

Value

A list with the following syntax:

list(
  Regions = list(
    list(
      Endpoint = "string",
      RegionName = "string",
      OptInStatus = "string"
    )
  )
)

Arguments

Filters

The filters.

  • endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com).

  • opt-in-status - The opt-in status of the Region (opt-in-not-required | opted-in | not-opted-in).

  • region-name - The name of the Region (for example, us-east-1).

RegionNames

The names of the Regions. You can specify any Regions, whether they are enabled and disabled for your account.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

AllRegions

Indicates whether to display all Regions, including Regions that are disabled for your account.

Request syntax

svc$describe_regions(
  Filters = list(
    list(
      Name = "string",
      Values = list(
        "string"
      )
    )
  ),
  RegionNames = list(
    "string"
  ),
  DryRun = TRUE|FALSE,
  AllRegions = TRUE|FALSE
)

Examples

Run this code
if (FALSE) {
# This example describes all the regions that are available to you.
svc$describe_regions()
}

Run the code above in your browser using DataLab