Class: Aptible::Auth::ExternalAwsOidcToken
- Inherits:
-
Object
- Object
- Aptible::Auth::ExternalAwsOidcToken
- Defined in:
- lib/aptible/auth/external_aws_oidc_token.rb
Instance Attribute Summary collapse
-
#aws_role_arn ⇒ Object
readonly
Returns the value of attribute aws_role_arn.
-
#aws_web_identity_token_file_content ⇒ Object
readonly
Returns the value of attribute aws_web_identity_token_file_content.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ExternalAwsOidcToken
constructor
A new instance of ExternalAwsOidcToken.
- #to_s ⇒ Object
- #token ⇒ Object
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_arn ⇒ Object (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_content ⇒ Object (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_s ⇒ Object
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 |
#token ⇒ Object
19 20 21 |
# File 'lib/aptible/auth/external_aws_oidc_token.rb', line 19 def token aws_web_identity_token_file_content end |