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
15
16
17
|
# File 'lib/stax/aws/sts.rb', line 15
def account_id
id.account
end
|
.client ⇒ Object
7
8
9
|
# File 'lib/stax/aws/sts.rb', line 7
def client
@_client ||= ::Aws::STS::Client.new
end
|
.id ⇒ Object
11
12
13
|
# File 'lib/stax/aws/sts.rb', line 11
def id
@_id ||= client.get_caller_identity
end
|
.user_arn ⇒ Object
23
24
25
|
# File 'lib/stax/aws/sts.rb', line 23
def user_arn
id.arn
end
|
.user_id ⇒ Object
19
20
21
|
# File 'lib/stax/aws/sts.rb', line 19
def user_id
id.user_id
end
|