region

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code string

Code represents an AWS region code.

func NewFromName

func NewFromName(name string) Code

NewFromName returns the region code from its name or empty string if invalid.

func NewFromZone

func NewFromZone(zone string) Code

NewFromZone returns the region code of the given zone or empty string if invalid.

func (Code) String

func (c Code) String() string

String returns the code of the region as a string.

func (Code) Valid

func (c Code) Valid() bool

Valid returns true if the region exists and is supported, false otherwise.

Jump to

Keyboard shortcuts

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