awsregion

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSRegion

type AWSRegion int
const (
	UNKNOWN AWSRegion = 0

	AWS_us_west_2_oregon         AWSRegion = 1
	AWS_us_east_1_nvirginia      AWSRegion = 2
	AWS_eu_west_2_london         AWSRegion = 3
	AWS_eu_central_1_frankfurt   AWSRegion = 4
	AWS_ap_southeast_1_singapore AWSRegion = 5
	AWS_ap_east_1_hongkong       AWSRegion = 6
	AWS_ap_northeast_1_tokyo     AWSRegion = 7
	AWS_ap_southeast_2_sydney    AWSRegion = 8
)

func GetAwsRegion

func GetAwsRegion(regionStr string) AWSRegion

func (AWSRegion) Caption

func (i AWSRegion) Caption() string

Caption retrieves a AWSRegion enum string caption

func (AWSRegion) CaptionMap

func (i AWSRegion) CaptionMap() map[AWSRegion]string

CaptionMap returns all captions of the enum AWSRegion in a K:AWSRegion,V:caption map

func (AWSRegion) Description

func (i AWSRegion) Description() string

Description retrieves a AWSRegion enum string description

func (AWSRegion) DescriptionMap

func (i AWSRegion) DescriptionMap() map[AWSRegion]string

DescriptionMap returns all descriptions of the enum AWSRegion in a K:AWSRegion,V:description map

func (AWSRegion) IntString

func (i AWSRegion) IntString() string

IntString gets the intrinsic enum integer value represented in string format

func (AWSRegion) IntValue

func (i AWSRegion) IntValue() int

IntValue gets the intrinsic enum integer value

func (AWSRegion) Key

func (i AWSRegion) Key() string

Key retrieves a AWSRegion enum string key

func (AWSRegion) KeyMap

func (i AWSRegion) KeyMap() map[AWSRegion]string

KeyMap returns all keys of the enum AWSRegion in a K:AWSRegion,V:key map

func (AWSRegion) NameMap

func (i AWSRegion) NameMap() map[string]AWSRegion

NameMap returns all names of the enum AWSRegion in a K:name,V:AWSRegion map

func (AWSRegion) ParseByKey

func (i AWSRegion) ParseByKey(s string) (AWSRegion, error)

ParseByKey retrieves a AWSRegion enum value from the enum string key, throws an error if the param is not part of the enum

func (AWSRegion) ParseByName

func (i AWSRegion) ParseByName(s string) (AWSRegion, error)

ParseByName retrieves a AWSRegion enum value from the enum string name, throws an error if the param is not part of the enum

func (AWSRegion) String

func (i AWSRegion) String() string

func (AWSRegion) Valid

func (i AWSRegion) Valid() bool

Valid returns 'true' if the value is listed in the AWSRegion enum map definition, 'false' otherwise

func (AWSRegion) ValueSlice

func (i AWSRegion) ValueSlice() []AWSRegion

ValueSlice returns all values of the enum AWSRegion in a slice

Jump to

Keyboard shortcuts

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