Class: Awshark::Sts::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/awshark/sts/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject



13
14
15
# File 'lib/awshark/sts/configuration.rb', line 13

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

Instance Method Details

#aws_account_idObject



6
7
8
9
10
11
# File 'lib/awshark/sts/configuration.rb', line 6

def 
  @aws_account_id ||= begin
                        response = client.get_caller_identity
                        response.
                      end
end