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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-sts/types.rb

Overview

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

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)


714
715
716
717
718
719
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 714

class GetCallerIdentityResponse < Struct.new(
  :user_id,
  :account,
  :arn)
  include Aws::Structure
end

#arnString

The AWS ARN associated with the calling entity.

Returns:

  • (String)


714
715
716
717
718
719
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 714

class GetCallerIdentityResponse < Struct.new(
  :user_id,
  :account,
  :arn)
  include Aws::Structure
end

#user_idString

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 found on the Policy Variables reference page in the IAM User Guide.

Returns:

  • (String)


714
715
716
717
718
719
# File 'gems/aws-sdk-core/lib/aws-sdk-sts/types.rb', line 714

class GetCallerIdentityResponse < Struct.new(
  :user_id,
  :account,
  :arn)
  include Aws::Structure
end