Documentation
¶
Index ¶
- type AssumeRoleParams
- type AssumeRoleResult
- type AssumedRoleUser
- type Credentials
- type Error
- type FederatedUser
- type GetFederationTokenResult
- type GetSessionTokenResult
- type STS
- func (sts *STS) AssumeRole(options *AssumeRoleParams) (resp *AssumeRoleResult, err error)
- func (sts *STS) GetFederationToken(name, policy string, durationSeconds int) (resp *GetFederationTokenResult, err error)
- func (sts *STS) GetSessionToken(durationSeconds int, serialnNumber, tokenCode string) (resp *GetSessionTokenResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssumeRoleParams ¶
type AssumeRoleParams struct {
DurationSeconds int
ExternalId string
Policy string
RoleArn string
RoleSessionName string
}
options for the AssumeRole function
See http://goo.gl/Ld6Dbk for details
type AssumeRoleResult ¶
type AssumeRoleResult struct {
AssumedRoleUser AssumedRoleUser `xml:"AssumeRoleResult>AssumedRoleUser"`
Credentials Credentials `xml:"AssumeRoleResult>Credentials"`
PackedPolicySize int `xml:"AssumeRoleResult>PackedPolicySize"`
RequestId string `xml:"ResponseMetadata>RequestId"`
}
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 FederatedUser ¶
FederatedUser presents dentifiers for the federated user that is associated with the credentials.
See http://goo.gl/uPtr7V for more details
type GetFederationTokenResult ¶
type GetFederationTokenResult struct {
Credentials Credentials `xml:"GetFederationTokenResult>Credentials"`
FederatedUser FederatedUser `xml:"GetFederationTokenResult>FederatedUser"`
PackedPolicySize int `xml:"GetFederationTokenResult>PackedPolicySize"`
RequestId string `xml:"ResponseMetadata>RequestId"`
}
GetFederationToken wraps GetFederationToken response
See http://goo.gl/Iujjeg for more details
type GetSessionTokenResult ¶
type GetSessionTokenResult struct {
Credentials Credentials `xml:"GetSessionTokenResult>Credentials"`
RequestId string `xml:"ResponseMetadata>RequestId"`
}
GetSessionToken wraps GetSessionToken response
See http://goo.gl/v8s5Y for more details
type STS ¶
The STS type encapsulates operations within a specific EC2 region.
func (*STS) AssumeRole ¶
func (sts *STS) AssumeRole(options *AssumeRoleParams) (resp *AssumeRoleResult, err error)
AssumeRole assumes the specified role
See http://goo.gl/zDZbuQ for more details.
func (*STS) GetFederationToken ¶
func (sts *STS) GetFederationToken(name, policy string, durationSeconds int) ( resp *GetFederationTokenResult, err error)
GetFederationToken returns a set of temporary credentials for an AWS account or IAM user
See http://goo.gl/Iujjeg for more details
func (*STS) GetSessionToken ¶
func (sts *STS) GetSessionToken(durationSeconds int, serialnNumber, tokenCode string) ( resp *GetSessionTokenResult, err error)
GetSessionToken returns a set of temporary credentials for an AWS account or IAM user
See http://goo.gl/v8s5Y for more details