Class: Stax::Aws::Sts
- Inherits:
-
Sdk
- Object
- Sdk
- Stax::Aws::Sts
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_id ⇒ Object
17
18
19
|
# File 'lib/stax/aws/sts.rb', line 17
def account_id
id.account
end
|
.client ⇒ Object
9
10
11
|
# File 'lib/stax/aws/sts.rb', line 9
def client
@_client ||= ::Aws::STS::Client.new
end
|
.id ⇒ Object
13
14
15
|
# File 'lib/stax/aws/sts.rb', line 13
def id
@_id ||= client.get_caller_identity
end
|
.user_arn ⇒ Object
25
26
27
|
# File 'lib/stax/aws/sts.rb', line 25
def user_arn
id.arn
end
|
.user_id ⇒ Object
21
22
23
|
# File 'lib/stax/aws/sts.rb', line 21
def user_id
id.user_id
end
|