Documentation ¶
Overview ¶
Package credentials providers helper functions for dealing with AWS credentials passed in to resource providers from CloudFormation.
Index ¶
Constants ¶
View Source
const CloudFormationCredentialsProviderName = "CloudFormationCredentialsProvider"
CloudFormationCredentialsProviderName ...
View Source
const InvalidSessionError = "InvalidSession"
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(accessKeyID string, secretAccessKey string, sessionToken string) credentials.Provider
NewProvider ...
func SessionFromCredentialsProvider ¶
func SessionFromCredentialsProvider(provider credentials.Provider) *session.Session
SessionFromCredentialsProvider creates a new AWS SDK session from a credentials provider
A credentials provider is an interface in the AWS SDK's credentials package (aws/credentials) We transform it into a session for later use in the RPDK
Types ¶
type CloudFormationCredentialsProvider ¶
type CloudFormationCredentialsProvider struct { // AccessKeyID ... AccessKeyID string `json:"accessKeyId"` // SecretAccessKey ... SecretAccessKey string `json:"secretAccessKey"` // SessionToken ... SessionToken string `json:"sessionToken"` // contains filtered or unexported fields }
CloudFormationCredentialsProvider ...
func (*CloudFormationCredentialsProvider) IsExpired ¶
func (c *CloudFormationCredentialsProvider) IsExpired() bool
IsExpired ...
func (*CloudFormationCredentialsProvider) Retrieve ¶
func (c *CloudFormationCredentialsProvider) Retrieve() (credentials.Value, error)
Retrieve ...
Click to show internal directories.
Click to hide internal directories.