Class: AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::TokenExchangeGrantTypeConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_o_auth2_credential_provider.rb

Overview

Configuration for RFC 8693 Token Exchange.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(actor_token_content:, actor_token_scopes: nil) ⇒ TokenExchangeGrantTypeConfigProperty

Returns a new instance of TokenExchangeGrantTypeConfigProperty.

Parameters:

  • actor_token_content (String)

    The actor token content type.

  • actor_token_scopes (Array<String>, nil) (defaults to: nil)

    The actor token scopes.



1595
1596
1597
1598
1599
1600
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1595

def initialize(actor_token_content:, actor_token_scopes: nil)
  @actor_token_content = actor_token_content
  Jsii::Type.check_type(@actor_token_content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actorTokenContent")
  @actor_token_scopes = actor_token_scopes
  Jsii::Type.check_type(@actor_token_scopes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "actorTokenScopes") unless @actor_token_scopes.nil?
end

Instance Attribute Details

#actor_token_contentString (readonly)

The actor token content type.



1606
1607
1608
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1606

def actor_token_content
  @actor_token_content
end

#actor_token_scopesArray<String>? (readonly)

The actor token scopes.

Only valid when ActorTokenContent is M2M.



1613
1614
1615
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1613

def actor_token_scopes
  @actor_token_scopes
end

Class Method Details

.jsii_propertiesObject



1615
1616
1617
1618
1619
1620
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1615

def self.jsii_properties
  {
    :actor_token_content => "actorTokenContent",
    :actor_token_scopes => "actorTokenScopes",
  }
end

Instance Method Details

#to_jsiiObject



1622
1623
1624
1625
1626
1627
1628
1629
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1622

def to_jsii
  result = {}
  result.merge!({
    "actorTokenContent" => @actor_token_content,
    "actorTokenScopes" => @actor_token_scopes,
  })
  result.compact
end