common

package
v1.4.31 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValidAwsRegions

func GetValidAwsRegions() set.Set[string]

GetValidAwsRegions returns a set of valid aws regions.

func ValidateAwsRegions

func ValidateAwsRegions(regions ...string) error

ValidateAwsRegions validates that a list of strings is valid aws regions in the default AWS partition.

Types

type AwsCredentials

type AwsCredentials struct {
	AwsAccessKeyId     *string `json:"aws_access_key_id,omitempty"`
	AwsSecretAccessKey *string `json:"aws_secret_access_key,omitempty"`
	AwsSessionToken    *string `json:"aws_session_token,omitempty"`
	AwsProfile         *string `json:"aws_profile,omitempty"`
}

AwsCredentials represents aws credentials.

func (*AwsCredentials) Validate

func (c *AwsCredentials) Validate() error

Validate validates the AwsCredentials.

Jump to

Keyboard shortcuts

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