Documentation ¶
Overview ¶
Package sts provides primitives to simplify STS AssumeRole functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustAwsSession ¶
MustAwsSession is a helper function that creates a new AWS Session and optional configuration This function is intended to be used to create AWS Client for any service for example,
sts.New(sts.MustAwsSession(roleARN, externalID, region))
Types ¶
type AssumeRoleInRegion ¶
type AssumeRoleInRegion struct { Arn string `json:"role-arn"` ExternalID string `json:"external-id"` Region string `json:"region"` }
AssumeRoleInRegion role to assume in the region (with external ID)
type Identifier ¶
Identifier interface
func NewIdentifier ¶
func NewIdentifier(role AssumeRoleInRegion) Identifier
NewIdentifier creates a new Identifier
Click to show internal directories.
Click to hide internal directories.