sts

package
Version: v0.0.0-...-112a489 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 AssumeRoleRequest struct {
	RoleArn         string
	RoleSessionName string
	DurationSeconds int
	Policy          string
}

type AssumeRoleResponse

type AssumeRoleResponse struct {
	common.Response
	AssumedRoleUser AssumedRoleUser
	Credentials     AssumedRoleUserCredentials
}

type AssumedRoleUser

type AssumedRoleUser struct {
	AssumedRoleId string
	Arn           string
}

type AssumedRoleUserCredentials

type AssumedRoleUserCredentials struct {
	AccessKeySecret string
	AccessKeyId     string
	Expiration      string
	SecurityToken   string
}

type STSClient

type STSClient struct {
	common.Client
}

func NewClient

func NewClient(accessKeyId string, accessKeySecret string) *STSClient

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string) *STSClient

func (*STSClient) AssumeRole

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL