Versions in this module Expand all Collapse all v1 v1.16.12 Dec 15, 2023 Changes in this version + const ProviderName + const WebIdentityProviderName + var DefaultDuration = time.Duration(15) * time.Minute + func StdinTokenProvider() (string, error) + type AssumeRoleAPIClient interface + AssumeRole func(ctx context.Context, params *sts.AssumeRoleInput, optFns ...func(*sts.Options)) (*sts.AssumeRoleOutput, error) + type AssumeRoleOptions struct + Client AssumeRoleAPIClient + Duration time.Duration + ExternalID *string + Policy *string + PolicyARNs []types.PolicyDescriptorType + RoleARN string + RoleSessionName string + SerialNumber *string + SourceIdentity *string + Tags []types.Tag + TokenProvider func() (string, error) + TransitiveTagKeys []string + type AssumeRoleProvider struct + func NewAssumeRoleProvider(client AssumeRoleAPIClient, roleARN string, optFns ...func(*AssumeRoleOptions)) *AssumeRoleProvider + func (p *AssumeRoleProvider) Retrieve(ctx context.Context) (aws.Credentials, error) + type AssumeRoleWithWebIdentityAPIClient interface + AssumeRoleWithWebIdentity func(ctx context.Context, params *sts.AssumeRoleWithWebIdentityInput, ...) (*sts.AssumeRoleWithWebIdentityOutput, error) + type IdentityTokenFile string + func (j IdentityTokenFile) GetIdentityToken() ([]byte, error) + type IdentityTokenRetriever interface + GetIdentityToken func() ([]byte, error) + type WebIdentityRoleOptions struct + Client AssumeRoleWithWebIdentityAPIClient + Duration time.Duration + Policy *string + PolicyARNs []types.PolicyDescriptorType + RoleARN string + RoleSessionName string + TokenRetriever IdentityTokenRetriever + type WebIdentityRoleProvider struct + func NewWebIdentityRoleProvider(client AssumeRoleWithWebIdentityAPIClient, roleARN string, ...) *WebIdentityRoleProvider + func (p *WebIdentityRoleProvider) Retrieve(ctx context.Context) (aws.Credentials, error)