Class: Aptible::Auth::ExternalAwsOidcToken

Inherits:
Object
  • Object
show all
Defined in:
lib/aptible/auth/external_aws_oidc_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ExternalAwsOidcToken

Returns a new instance of ExternalAwsOidcToken.



6
7
8
9
10
11
12
13
# File 'lib/aptible/auth/external_aws_oidc_token.rb', line 6

def initialize(attributes = {})
  @aws_web_identity_token_file_content =
    attributes['aws_web_identity_token_file_content'] ||
    attributes[:aws_web_identity_token_file_content]
  @aws_role_arn =
    attributes['aws_role_arn'] ||
    attributes[:aws_role_arn]
end

Instance Attribute Details

#aws_role_arnObject (readonly)

Returns the value of attribute aws_role_arn.



4
5
6
# File 'lib/aptible/auth/external_aws_oidc_token.rb', line 4

def aws_role_arn
  @aws_role_arn
end

#aws_web_identity_token_file_contentObject (readonly)

Returns the value of attribute aws_web_identity_token_file_content.



4
5
6
# File 'lib/aptible/auth/external_aws_oidc_token.rb', line 4

def aws_web_identity_token_file_content
  @aws_web_identity_token_file_content
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/aptible/auth/external_aws_oidc_token.rb', line 15

def to_s
  aws_web_identity_token_file_content.to_s
end

#tokenObject



19
20
21
# File 'lib/aptible/auth/external_aws_oidc_token.rb', line 19

def token
  aws_web_identity_token_file_content
end