Class: Xberg::CredentialProviderConfigBedrockWebIdentity

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#regionObject (readonly)

Returns the value of attribute region

Returns:

  • (Object)

    the current value of region



980
981
982
# File 'lib/xberg/native.rb', line 980

def region
  @region
end

#role_arnObject (readonly)

Returns the value of attribute role_arn

Returns:

  • (Object)

    the current value of role_arn



980
981
982
# File 'lib/xberg/native.rb', line 980

def role_arn
  @role_arn
end

#session_nameObject (readonly)

Returns the value of attribute session_name

Returns:

  • (Object)

    the current value of session_name



980
981
982
# File 'lib/xberg/native.rb', line 980

def session_name
  @session_name
end

#token_fileObject (readonly)

Returns the value of attribute token_file

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


999
# File 'lib/xberg/native.rb', line 999

def azure_ad? = false

#bedrock_web_identity?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


1003
# File 'lib/xberg/native.rb', line 1003

def vertex_adc? = false

#vertex_oauth2?Boolean

Returns:

  • (Boolean)


1001
# File 'lib/xberg/native.rb', line 1001

def vertex_oauth2? = false