Documentation
¶
Index ¶
- Variables
- func ConfigFromContextOrDefault(ctx context.Context) (aws.Config, error)
- func NewAssumeRoleCredentialsCache(ctx context.Context, roleARN string, ...) *aws.CredentialsCache
- func SetConfigInContext(ctx context.Context, cfg aws.Config) context.Context
- type AssumeRoleCredentialProviderOptFunc
- type AssumeRoleCredentialProviderOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var AWSConfigContextKey contextkey
Functions ¶
func NewAssumeRoleCredentialsCache ¶
func NewAssumeRoleCredentialsCache(ctx context.Context, roleARN string, opts ...AssumeRoleCredentialProviderOptFunc) *aws.CredentialsCache
NewAssumeRoleCredentialsCache helps making a credential provider for an assume role arn
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
func WithRoleSessionName ¶
func WithRoleSessionName(rsn string) AssumeRoleCredentialProviderOptFunc
type AssumeRoleCredentialProviderOpts ¶
type AssumeRoleCredentialProviderOpts struct {
sts.AssumeRoleInput
}
Click to show internal directories.
Click to hide internal directories.