Documentation
¶
Index ¶
- Variables
- type NamingAws
- func (n *NamingAws) Default(shortName string) (string, error)
- func (n *NamingAws) Name(prefixSegments []string, shortName string, separator string) (string, error)
- func (n *NamingAws) S3Bucket(shortName string) (string, error)
- func (n *NamingAws) SSMParameter(shortName string) (string, error)
- func (n *NamingAws) WithRegionDefault(shortName string, region string) (string, error)
- func (n *NamingAws) WithRegionName(shortName string, separator string, region string) (string, error)
- func (n *NamingAws) WithRegionS3Bucket(shortName string, region string) (string, error)
- func (n *NamingAws) WithRegionSSMParameter(shortName string, region string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ShortRegions = map[string]string{
"af-south-1": "afs1",
"ap-east-1": "ape1",
"ap-northeast-1": "apne1",
"ap-northeast-2": "apne2",
"ap-northeast-3": "apne3",
"ap-south-1": "aps1",
"ap-south-2": "aps2",
"ap-southeast-1": "apse1",
"ap-southeast-2": "apse2",
"ap-southeast-3": "apse3",
"ap-southeast-4": "apse4",
"ca-central-1": "cac1",
"ca-west-1": "caw1",
"cn-north-1": "cnn1",
"cn-northwest-1": "cnnw1",
"eu-central-1": "euc1",
"eu-central-2": "euc2",
"eu-north-1": "eun1",
"eu-south-1": "eus1",
"eu-south-2": "eus2",
"eu-west-1": "euw1",
"eu-west-2": "euw2",
"eu-west-3": "euw3",
"il-central-1": "ilc1",
"me-central-1": "mec1",
"me-south-1": "mes1",
"sa-east-1": "sae1",
"us-east-1": "use1",
"us-east-2": "use2",
"us-gov-east-1": "usge1",
"us-gov-west-1": "usgw1",
"us-west-1": "usw1",
"us-west-2": "usw2",
}
Functions ¶
This section is empty.
Types ¶
type NamingAws ¶
type NamingAws struct { DefaultDelimiter string SSMDelimiter string PrefixSegments []string SuffixLength int UseShortRegion bool }
func NewNamingAws ¶
func NewNamingAws() *NamingAws
func (*NamingAws) WithRegionDefault ¶
func (*NamingAws) WithRegionName ¶
func (*NamingAws) WithRegionS3Bucket ¶
Click to show internal directories.
Click to hide internal directories.