AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::STS::Types::GetCallerIdentityResponse

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#accountString

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

Returns:

  • (String)

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

#arnString

The AWS ARN associated with the calling entity.

Returns:

  • (String)

    The AWS ARN associated with the calling entity.

#user_idString

The unique identifier of the calling entity. The exact value depends on the type of entity that is making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.

Returns:

  • (String)

    The unique identifier of the calling entity.