AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

GetCallerIdentityOutput

import "github.com/aws/aws-sdk-go/service/sts"

type GetCallerIdentityOutput struct { Account *string `type:"string"` Arn *string `min:"20" type:"string"` UserId *string `type:"string"` }

Contains the response to a successful GetCallerIdentity request, including information about the entity making the request.

Account

Type: *string

The AWS account ID number of the account that owns or contains the calling entity.

Arn

Type: *string

The AWS ARN associated with the calling entity.

UserId

Type: *string

The unique identifier of the calling entity. The exact value depends on the type of entity making the call. The values returned are those listed in the aws:userid column in the Principal table (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable) found on the Policy Variables reference page in the IAM User Guide.

Method

GoString

func (s GetCallerIdentityOutput) GoString() string

GoString returns the string representation

SetAccount

func (s *GetCallerIdentityOutput) SetAccount(v string) *GetCallerIdentityOutput

SetAccount sets the Account field's value.

SetArn

func (s *GetCallerIdentityOutput) SetArn(v string) *GetCallerIdentityOutput

SetArn sets the Arn field's value.

SetUserId

func (s *GetCallerIdentityOutput) SetUserId(v string) *GetCallerIdentityOutput

SetUserId sets the UserId field's value.

String

func (s GetCallerIdentityOutput) String() string

String returns the string representation

On this page: