regions

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package regions provides AWS region utilities.

Index

Constants

This section is empty.

Variables

View Source
var IDs = []string{
	"us-east-2",
	"us-east-1",
	"us-west-1",
	"us-west-2",
	"ap-east-1",
	"ap-south-1",
	"ap-northeast-2",
	"ap-southeast-1",
	"ap-southeast-2",
	"ap-northeast-1",
	"ca-central-1",
	"eu-central-1",
	"eu-west-1",
	"eu-west-2",
	"eu-west-3",
	"eu-north-1",
	"sa-east-1",
}

IDs of regions.

View Source
var Names = []string{
	"US East (Ohio)",
	"US East (N. Virginia)",
	"US West (N. California)",
	"US West (Oregon)",
	"Asia Pacific (Hong Kong)",
	"Asia Pacific (Mumbai)",
	"Asia Pacific (Seoul)",
	"Asia Pacific (Singapore)",
	"Asia Pacific (Sydney)",
	"Asia Pacific (Tokyo)",
	"Canada (Central)",
	"EU (Frankfurt)",
	"EU (Ireland)",
	"EU (London)",
	"EU (Paris)",
	"EU (Stockholm)",
	"South America (São Paulo)",
}

Names of regions.

Functions

func GetHostedZoneID

func GetHostedZoneID(region string) string

GetHostedZoneID returns a hosted zone id by region.

func GetIdByName

func GetIdByName(name string) string

GetIdByName returns a region id by name.

func Match

func Match(regions []string) (v []string)

Match returns regions matching the pattern(s) provided. Patterns which are not "expanded" are returned as-is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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