Documentation ¶
Index ¶
- func GetAwsAccountIDAndPartition(ctx context.Context, awsConfig aws.Config, ...) (string, string, error)
- func GetAwsConfig(ctx context.Context, c *Config) (aws.Config, error)
- func IsCannotAssumeRoleError(err error) bool
- func IsNoValidCredentialSourcesError(err error) bool
- func ValidateRegion(region string) error
- type CannotAssumeRoleError
- type Config
- type InvalidRegionError
- type NoValidCredentialSourcesError
- type UserAgentProduct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCannotAssumeRoleError ¶
IsCannotAssumeRoleError returns true if the error contains the CannotAssumeRoleError type.
func IsNoValidCredentialSourcesError ¶
IsNoValidCredentialSourcesError returns true if the error contains the NoValidCredentialSourcesError type.
func ValidateRegion ¶
ValidateRegion checks if the given region is a valid AWS region.
Types ¶
type CannotAssumeRoleError ¶
CannotAssumeRoleError occurs when AssumeRole cannot complete.
func (CannotAssumeRoleError) Error ¶
func (e CannotAssumeRoleError) Error() string
func (CannotAssumeRoleError) Unwrap ¶
func (e CannotAssumeRoleError) Unwrap() error
type Config ¶
type Config struct { AccessKey string AssumeRoleARN string AssumeRoleDurationSeconds int AssumeRoleExternalID string AssumeRolePolicy string AssumeRolePolicyARNs []string AssumeRoleSessionName string AssumeRoleTags map[string]string AssumeRoleTransitiveTagKeys []string CallerDocumentationURL string CallerName string DebugLogging bool IamEndpoint string Insecure bool MaxRetries int Profile string Region string SecretKey string SkipCredsValidation bool SkipMetadataApiCheck bool StsEndpoint string Token string UserAgentProducts []*UserAgentProduct }
func (*Config) NewCannotAssumeRoleError ¶
func (c *Config) NewCannotAssumeRoleError(err error) CannotAssumeRoleError
func (*Config) NewNoValidCredentialSourcesError ¶
func (c *Config) NewNoValidCredentialSourcesError(err error) NoValidCredentialSourcesError
type InvalidRegionError ¶
type InvalidRegionError struct {
// contains filtered or unexported fields
}
func (*InvalidRegionError) Error ¶
func (e *InvalidRegionError) Error() string
type NoValidCredentialSourcesError ¶
NoValidCredentialSourcesError occurs when all credential lookup methods have been exhausted without results.
func (NoValidCredentialSourcesError) Error ¶
func (e NoValidCredentialSourcesError) Error() string
func (NoValidCredentialSourcesError) Unwrap ¶
func (e NoValidCredentialSourcesError) Unwrap() error
type UserAgentProduct ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.