Class: Stax::Aws::Sts

Inherits:
Sdk
  • Object
show all
Defined in:
lib/stax/aws/sts.rb

Class Method Summary collapse

Methods inherited from Sdk

paginate

Class Method Details

.account_idObject



15
16
17
# File 'lib/stax/aws/sts.rb', line 15

def 
  id.
end

.clientObject



7
8
9
# File 'lib/stax/aws/sts.rb', line 7

def client
  @_client ||= ::Aws::STS::Client.new
end

.idObject



11
12
13
# File 'lib/stax/aws/sts.rb', line 11

def id
  @_id ||= client.get_caller_identity
end

.user_arnObject



23
24
25
# File 'lib/stax/aws/sts.rb', line 23

def user_arn
  id.arn
end

.user_idObject



19
20
21
# File 'lib/stax/aws/sts.rb', line 19

def user_id
  id.user_id
end