regions

package
v0.83.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegionInfo

type RegionInfo struct {
	RegionId    string   `json:"regionId"`
	RegionName  string   `json:"regionName"`
	PartitionID string   `json:"partitionId"`
	Services    []string `json:"services"`
}

RegionInfo represents detailed information about an AWS region

func ListAllRegions

func ListAllRegions() ([]RegionInfo, error)

ListAllRegions returns detailed information about all AWS regions across all partitions. This includes region metadata, partition information, and the list of services available in each region.

Returns:

  • []RegionInfo: A slice of region information containing detailed region data
  • error: An error if there's an issue reading the manifest

Example:

regions, err := regions.ListAllRegions()
if err != nil {
    log.Fatal(err)
}
for _, region := range regions {
    fmt.Printf("Region: %s (%s)\n", region.RegionId, region.RegionName)
    fmt.Printf("  Partition: %s\n", region.PartitionID)
    fmt.Printf("  Services: %d\n", len(region.Services))
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL