Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssumeRoleOptions ¶
type AssumeRoleOptions struct {
DurationSeconds int
ExternalId string
Policy string
RoleArn string
RoleSessionName string
}
options for the AssumeRole function
See http://goo.gl/Ld6Dbk for details
type AssumeRoleResp ¶
type AssumeRoleResp struct {
AssumedRoleUser AssumedRoleUser `xml:"AssumeRoleResult>AssumedRoleUser"`
Credentials Credentials `xml:"AssumeRoleResult>Credentials"`
PackedPolicySize int `xml:"AssumeRoleResult>PackedPolicySize"`
}
type AssumedRoleUser ¶
type Credentials ¶
type Error ¶
type Error struct {
// HTTP status code (200, 403, ...)
StatusCode int
// STS error code
Code string
// The human-oriented error message
Message string
RequestId string `xml:"RequestID"`
}
Error encapsulates an error returned by the AWS STS API.
See http://goo.gl/zDZbuQ for more details.
type STS ¶
The STS type encapsulates operations within a specific EC2 region.
func (*STS) AssumeRole ¶
func (sts *STS) AssumeRole(options *AssumeRoleOptions) (resp *AssumeRoleResp, err error)
AssumeRole assumes the specified role
See http://goo.gl/zDZbuQ for more details.
Click to show internal directories.
Click to hide internal directories.