Documentation ¶
Index ¶
- Constants
- type AssumeRoleRequest
- type AssumeRoleResponse
- type AssumedRoleUser
- type AssumedRoleUserCredentials
- type GetCallerIdentityRequest
- type GetCallerIdentityResponse
- type STSClient
- func NewClient(accessKeyId string, accessKeySecret string) *STSClient
- func NewClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string) *STSClient
- func NewClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, ...) *STSClient
- func NewClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string) *STSClient
Constants ¶
View Source
const ( // STSDefaultEndpoint is the default API endpoint of STS services STSDefaultEndpoint = "https://sts.aliyuncs.com" STSAPIVersion = "2015-04-01" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssumeRoleRequest ¶
type AssumeRoleResponse ¶
type AssumeRoleResponse struct { common.Response AssumedRoleUser AssumedRoleUser Credentials AssumedRoleUserCredentials }
type AssumedRoleUser ¶
type GetCallerIdentityRequest ¶
type GetCallerIdentityRequest struct { }
type STSClient ¶
func NewClientWithEndpoint ¶
func (*STSClient) AssumeRole ¶
func (c *STSClient) AssumeRole(r AssumeRoleRequest) (AssumeRoleResponse, error)
func (*STSClient) GetCallerIdentity ¶
func (c *STSClient) GetCallerIdentity() (*GetCallerIdentityResponse, error)
Click to show internal directories.
Click to hide internal directories.