sts

package
v0.0.0-...-50dd056 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssumeRole

func AssumeRole(role, roleSessionName, policy string, duration int64, creds *credentials.Credentials) (*sts.AssumeRoleOutput, error)

func Federate

func Federate(c *config.Config, fc *federationuser.FedUserCache, fedUserArn, role, roleSessionName, policy string, duration int64) (*sts.AssumeRoleOutput, error)

Types

type AssumedRole

type AssumedRole struct {
	AssumedRoleUser struct {
		AssumedRoleID string `json:"AssumedRoleId"`
		Arn           string `json:"Arn"`
	} `json:"AssumedRoleUser"`
	Credentials awscredential.Credentials `json:"Credentials"`
}

Jump to

Keyboard shortcuts

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