Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssumeRole ¶
Assume role uses the current server role to call STS and assume a different role if permitted Params:
roleArn - the requested role ARN (example: arn:aws:iam::11111111111:role/myrole ) sessionName - a name to associate with the current session. Use the service name + unique idenfitifier preferebly. duration - the duration of the session in seconds. Must be between 900 and 3600
Returns aws.Auth object that can be used with any of the existing goamz APIs
Check http://goo.gl/M6uCu5 for more information
Types ¶
type STSConnectionManager ¶
func NewSTSConnectionManager ¶
func NewSTSConnectionManager() *STSConnectionManager
func (*STSConnectionManager) Delete ¶
func (m *STSConnectionManager) Delete(key string)
func (*STSConnectionManager) GetRoleAuth ¶
GetRoleAuth - Returns an (existing) authentication token for assuming an STS role
roleArn - the requested role ARN (example: arn:aws:iam::11111111111:role/myrole ) renew - explicitely request session renewing
Returns aws.Auth object that can be used with any of the existing goamz APIs
Click to show internal directories.
Click to hide internal directories.