credentials

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Retrieve ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL