sts

package
v0.0.0-...-0b043e4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Product = "Sts"
	Style   = "RPC"
	Version = "2015-04-01"
)

Variables

This section is empty.

Functions

func NewParams

func NewParams() openapi.Params

Types

type API

type API struct {
	openapi.Service
}

func New

func New(accessKeyId, accessKeySecret string) API

func (API) AssumeRole

func (api API) AssumeRole(RoleArn, RoleSessionName string, optional openapi.M) (*AssumeRoleResponse, error)

AssumeRole version 2015-04-01

required parameters:

name: RoleArn, type: string
name: RoleSessionName, type: string

optional parameters:

name: DurationSeconds, type: int64
name: Policy, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string

func (API) AssumeRoleWithServiceIdentity

func (api API) AssumeRoleWithServiceIdentity(AssumeRoleFor, RoleArn, RoleSessionName string, optional openapi.M) (*AssumeRoleWithServiceIdentityResponse, error)

AssumeRoleWithServiceIdentity version 2015-04-01

required parameters:

name: AssumeRoleFor, type: string
name: RoleArn, type: string
name: RoleSessionName, type: string

optional parameters:

name: DurationSeconds, type: int64
name: Policy, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string

type AssumeRoleResponse

type AssumeRoleResponse struct {
	AssumedRoleUser struct {
		Arn           string
		AssumedRoleId string
	}
	Credentials struct {
		AccessKeyId     string
		AccessKeySecret string
		Expiration      string
		SecurityToken   string
	}
}

AssumeRoleResponse represents the response of the api AssumeRole.

type AssumeRoleWithServiceIdentityResponse

type AssumeRoleWithServiceIdentityResponse struct {
	AssumedRoleUser struct {
		Arn           string
		AssumedRoleId string
	}
	Credentials struct {
		AccessKeyId     string
		AccessKeySecret string
		Expiration      string
		SecurityToken   string
	}
}

AssumeRoleWithServiceIdentityResponse represents the response of the api AssumeRoleWithServiceIdentity.

Jump to

Keyboard shortcuts

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