aws

package
v0.0.0-...-23a9210 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(ctx context.Context) (aws.Config, error)

func NewConfigWithRoleAssumer

func NewConfigWithRoleAssumer(assumer Assumer, roleArn string, sessionName string) aws.Config

NewConfigWithRoleAssumer uses the assumer to assume roleArn with the sessionName. The credentials of the returned config will be of the assumed role

Types

type Assumer

type Assumer interface {
	AssumeRole(ctx context.Context, roleArn string, sessionName string) (*types.Credentials, error)
}

Directories

Path Synopsis
s3
fs

Jump to

Keyboard shortcuts

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