Class: AwsMfa::ProfileConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_mfa/profile_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(profile_config, profile) ⇒ ProfileConfig

Returns a new instance of ProfileConfig.



5
6
7
8
9
10
# File 'lib/aws_mfa/profile_config.rb', line 5

def initialize(profile_config, profile)
  @mfa_serial = profile_config["mfa_serial"]
  @profile = profile
  @role_arn = profile_config["role_arn"]
  @source_profile = profile_config["source_profile"]
end

Instance Attribute Details

#mfa_serialObject (readonly)

Returns the value of attribute mfa_serial.



3
4
5
# File 'lib/aws_mfa/profile_config.rb', line 3

def mfa_serial
  @mfa_serial
end

#profileObject (readonly)

Returns the value of attribute profile.



3
4
5
# File 'lib/aws_mfa/profile_config.rb', line 3

def profile
  @profile
end

#role_arnObject (readonly)

Returns the value of attribute role_arn.



3
4
5
# File 'lib/aws_mfa/profile_config.rb', line 3

def role_arn
  @role_arn
end

#source_profileObject (readonly)

Returns the value of attribute source_profile.



3
4
5
# File 'lib/aws_mfa/profile_config.rb', line 3

def source_profile
  @source_profile
end