Debian Codegraph @

sts/get_caller_identity.go

raw symbols SCIP
1 package sts
2
3 import "github.com/denverdino/aliyungo/common"
4
5 type GetCallerIdentityRequest struct {
6 }
7
8 type GetCallerIdentityResponse struct {
9 common.Response
10 AccountId string
11 UserId string
12 Arn string
13 }
14
15 func (c *STSClient) GetCallerIdentity() (*GetCallerIdentityResponse, error) {
16 resp := &GetCallerIdentityResponse{}
17 err := c.Invoke("GetCallerIdentity", &GetCallerIdentityRequest{}, resp)
18 if err != nil {
19 return resp, err
20 }
21 return resp, nil
22 }