package credentials
import "github.com/aws/aws-sdk-go-v2/credentials"
Package credentials provides types for retrieving credentials from credentials sources.
Index ¶
Constants ¶
const ( // StaticCredentialsName provides a name of Static provider StaticCredentialsName = "StaticCredentials" )
Types ¶
type StaticCredentialsEmptyError ¶
type StaticCredentialsEmptyError struct{}
StaticCredentialsEmptyError is emitted when static credentials are empty.
func (*StaticCredentialsEmptyError) Error ¶
func (*StaticCredentialsEmptyError) Error() string
type StaticCredentialsProvider ¶
type StaticCredentialsProvider struct { Value aws.Credentials // These values are for reporting purposes and are not meant to be set up directly Source []aws.CredentialSource }
A StaticCredentialsProvider is a set of credentials which are set, and will never expire.
func NewStaticCredentialsProvider ¶
func NewStaticCredentialsProvider(key, secret, session string) StaticCredentialsProvider
NewStaticCredentialsProvider return a StaticCredentialsProvider initialized with the AWS credentials passed in.
func (StaticCredentialsProvider) ProviderSources ¶
func (s StaticCredentialsProvider) ProviderSources() []aws.CredentialSource
ProviderSources returns the credential chain that was used to construct this provider
func (StaticCredentialsProvider) Retrieve ¶
func (s StaticCredentialsProvider) Retrieve(_ context.Context) (aws.Credentials, error)
Retrieve returns the credentials or error if the credentials are invalid.
Source Files ¶
doc.go go_module_metadata.go static_provider.go
Directories ¶
Path | Synopsis |
---|---|
ec2rolecreds | Package ec2rolecreds provides the credentials provider implementation for retrieving AWS credentials from Amazon EC2 Instance Roles via Amazon EC2 IMDS. |
endpointcreds | Package endpointcreds provides support for retrieving credentials from an arbitrary HTTP endpoint. |
endpointcreds/internal | |
processcreds | Package processcreds is a credentials provider to retrieve credentials from a external CLI invoked process. |
ssocreds | Package ssocreds provides a credential provider for retrieving temporary AWS credentials using an SSO access token. |
stscreds | Package stscreds are credential Providers to retrieve STS AWS credentials. |
- Version
- v1.17.67 (latest)
- Published
- Apr 10, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 11 hours ago –
Tools for package owners.