Documentation ¶
Index ¶
- func GetAWSSession(options session.Options) *session.Session
- func GetS3Client(sesh *session.Session, region string) *s3.S3
- func GetSTSClient(sesh *session.Session, region string) *sts.STS
- func GetSessionName(roleArn string) (string, error)
- func HandleAWSError(err error, handler func(arr awserr.Error) string) string
- func PrettyPrint(unformattedJSON interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAWSSession ¶
GetAWSSession instantiates a AWS session
func GetS3Client ¶
GetS3Client instantiates a AWS S3 client given a session and region
func GetSTSClient ¶
GetSTSClient instantiates a AWS STS client given a session and region
func GetSessionName ¶
GetSessionName generates the session name based off of the username and role
func HandleAWSError ¶
HandleAWSError handles any AWS error
func PrettyPrint ¶
func PrettyPrint(unformattedJSON interface{}) string
PrettyPrint prints out something that looks like JSON prettily
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.