Class: Stax::Aws::Sts

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

Constant Summary

Constants inherited from Sdk

Stax::Aws::Sdk::RETRY_LIMIT

Class Method Summary collapse

Methods inherited from Sdk

paginate

Class Method Details

.account_idObject



17
18
19
# File 'lib/stax/aws/sts.rb', line 17

def 
  id.
end

.clientObject



9
10
11
# File 'lib/stax/aws/sts.rb', line 9

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

.idObject



13
14
15
# File 'lib/stax/aws/sts.rb', line 13

def id
  @_id ||= client.get_caller_identity
end

.user_arnObject



25
26
27
# File 'lib/stax/aws/sts.rb', line 25

def user_arn
  id.arn
end

.user_idObject



21
22
23
# File 'lib/stax/aws/sts.rb', line 21

def user_id
  id.user_id
end