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

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-sts/types.rb

Overview

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Method Summary

Methods included from Aws::Structure

#empty?, included, #initialize, #key?, new, #to_h, #to_s

Instance Attribute Details

#accountString

The Amazon Web Services account ID number of the account that owns or contains the calling entity.

Returns:

  • (String)

1144
1145
1146
1147
1148
1149
1150
# File 'lib/aws-sdk-sts/types.rb', line 1144

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

#arnString

The Amazon Web Services ARN associated with the calling entity.

Returns:

  • (String)

1144
1145
1146
1147
1148
1149
1150
# File 'lib/aws-sdk-sts/types.rb', line 1144

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

#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*.

[1]: docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_variables.html#principaltable

Returns:

  • (String)

1144
1145
1146
1147
1148
1149
1150
# File 'lib/aws-sdk-sts/types.rb', line 1144

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