sts

package
v0.0.0-...-ab98a91 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 3

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 GetCallerIdentityRequest

type GetCallerIdentityRequest struct {
}

type GetCallerIdentityResponse

type GetCallerIdentityResponse struct {
	common.Response
	AccountId string
	UserId    string
	Arn       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 NewClientWithEndpointAndSecurityToken

func NewClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, securityToken string) *STSClient

func NewClientWithSecurityToken

func NewClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string) *STSClient

func (*STSClient) AssumeRole

func (*STSClient) GetCallerIdentity

func (c *STSClient) GetCallerIdentity() (*GetCallerIdentityResponse, error)

Jump to

Keyboard shortcuts

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