aws

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssumeRoleCredentials

func GetAssumeRoleCredentials(id, secret, token, roleArn string) (string, string, string, error)

GetAssumeRoleCredentials uses the provided credentials to assume the role specified by roleArn.

func GetCallerIdentity

func GetCallerIdentity(awsSession *session.Session) (*sts.GetCallerIdentityOutput, error)

func GetSession

func GetSession() *session.Session

func ListAccountAliases

func ListAccountAliases(awsSession *session.Session) ([]*string, error)

Types

type Credentials

type Credentials struct {
	AccessKeyId     string     `json:"AccessKeyId"`
	SecretAccessKey string     `json:"SecretAccessKey"`
	SessionToken    string     `json:"SessionToken"`
	Expiration      types.Time `json:"Expiration"`
	RoleArn         string     `json:"RoleArn"`
}

Jump to

Keyboard shortcuts

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