Versions in this module Expand all Collapse all v1 v1.0.1 Jul 4, 2024 v1.0.0 Jul 4, 2024 Changes in this version + const ErrCodeWebIdentity + const ProviderName + const WebIdentityProviderName + var DefaultDuration = time.Duration(15) * time.Minute + func NewCredentials(c client.ConfigProvider, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials + func NewCredentialsWithClient(svc AssumeRoler, roleARN string, options ...func(*AssumeRoleProvider)) *credentials.Credentials + func NewWebIdentityCredentials(c client.ConfigProvider, roleARN, roleSessionName, path string) *credentials.Credentials + func StdinTokenProvider() (string, error) + type AssumeRoleProvider struct + Client AssumeRoler + Duration time.Duration + ExpiryWindow time.Duration + ExternalID *string + MaxJitterFrac float64 + Policy *string + PolicyArns []*sts.PolicyDescriptorType + RoleARN string + RoleSessionName string + SerialNumber *string + SourceIdentity *string + Tags []*sts.Tag + TokenCode *string + TokenProvider func() (string, error) + TransitiveTagKeys []*string + func (p *AssumeRoleProvider) Retrieve() (credentials.Value, error) + func (p *AssumeRoleProvider) RetrieveWithContext(ctx credentials.Context) (credentials.Value, error) + type AssumeRoler interface + AssumeRole func(input *sts.AssumeRoleInput) (*sts.AssumeRoleOutput, error) + type FetchTokenPath string + func (f FetchTokenPath) FetchToken(ctx credentials.Context) ([]byte, error) + type TokenFetcher interface + FetchToken func(credentials.Context) ([]byte, error) + type WebIdentityRoleProvider struct + Duration time.Duration + ExpiryWindow time.Duration + PolicyArns []*sts.PolicyDescriptorType + func NewWebIdentityRoleProvider(svc stsiface.STSAPI, roleARN, roleSessionName, path string) *WebIdentityRoleProvider + func NewWebIdentityRoleProviderWithOptions(svc stsiface.STSAPI, roleARN, roleSessionName string, ...) *WebIdentityRoleProvider + func NewWebIdentityRoleProviderWithToken(svc stsiface.STSAPI, roleARN, roleSessionName string, ...) *WebIdentityRoleProvider + func (p *WebIdentityRoleProvider) Retrieve() (credentials.Value, error) + func (p *WebIdentityRoleProvider) RetrieveWithContext(ctx credentials.Context) (credentials.Value, error)