Class: Xberg::CredentialProviderConfigBedrockWebIdentity
- Inherits:
-
Data
- Object
- Data
- Xberg::CredentialProviderConfigBedrockWebIdentity
- Extended by:
- T::Sig
- Includes:
- CredentialProviderConfig
- Defined in:
- lib/xberg/native.rb
Overview
AWS STS AssumeRoleWithWebIdentity (EKS IRSA / OIDC federation) for Bedrock.
Instance Attribute Summary collapse
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#role_arn ⇒ Object
readonly
Returns the value of attribute role_arn.
-
#session_name ⇒ Object
readonly
Returns the value of attribute session_name.
-
#token_file ⇒ Object
readonly
Returns the value of attribute token_file.
Class Method Summary collapse
Instance Method Summary collapse
- #azure_ad? ⇒ Boolean
- #bedrock_web_identity? ⇒ Boolean
- #vertex_adc? ⇒ Boolean
- #vertex_oauth2? ⇒ Boolean
Instance Attribute Details
#region ⇒ Object (readonly)
Returns the value of attribute region
980 981 982 |
# File 'lib/xberg/native.rb', line 980 def region @region end |
#role_arn ⇒ Object (readonly)
Returns the value of attribute role_arn
980 981 982 |
# File 'lib/xberg/native.rb', line 980 def role_arn @role_arn end |
#session_name ⇒ Object (readonly)
Returns the value of attribute session_name
980 981 982 |
# File 'lib/xberg/native.rb', line 980 def session_name @session_name end |
#token_file ⇒ Object (readonly)
Returns the value of attribute token_file
980 981 982 |
# File 'lib/xberg/native.rb', line 980 def token_file @token_file end |
Class Method Details
.from_hash(hash) ⇒ Object
1009 1010 1011 1012 1013 1014 1015 1016 |
# File 'lib/xberg/native.rb', line 1009 def self.from_hash(hash) new( role_arn: hash[:role_arn] || hash["role_arn"], token_file: hash[:token_file] || hash["token_file"], session_name: hash[:session_name] || hash["session_name"], region: hash[:region] || hash["region"] ) end |
Instance Method Details
#azure_ad? ⇒ Boolean
999 |
# File 'lib/xberg/native.rb', line 999 def azure_ad? = false |
#bedrock_web_identity? ⇒ Boolean
1005 1006 1007 |
# File 'lib/xberg/native.rb', line 1005 def bedrock_web_identity? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#vertex_adc? ⇒ Boolean
1003 |
# File 'lib/xberg/native.rb', line 1003 def vertex_adc? = false |
#vertex_oauth2? ⇒ Boolean
1001 |
# File 'lib/xberg/native.rb', line 1001 def vertex_oauth2? = false |