cfaws

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AWSConfigContextKey contextkey

Functions

func ConfigFromContextOrDefault

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

func NewAssumeRoleCredentialsCache

func NewAssumeRoleCredentialsCache(ctx context.Context, roleARN string, opts ...AssumeRoleCredentialProviderOptFunc) *aws.CredentialsCache

NewAssumeRoleCredentialsCache helps making a credential provider for an assume role arn

func SetConfigInContext

func SetConfigInContext(ctx context.Context, cfg aws.Config) context.Context

Types

type AssumeRoleCredentialProviderOptFunc

type AssumeRoleCredentialProviderOptFunc func(f *AssumeRoleCredentialProviderOpts)

func WithExternalID added in v0.14.0

func WithExternalID(externalID string) AssumeRoleCredentialProviderOptFunc

WithExternalID adds an External ID to the role assumption. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html

type AssumeRoleCredentialProviderOpts

type AssumeRoleCredentialProviderOpts struct {
	sts.AssumeRoleInput
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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