Class: AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::OnBehalfOfTokenExchangeConfigProperty

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

Overview

Configuration for on-behalf-of token exchange.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(grant_type:, token_exchange_grant_type_config: nil) ⇒ OnBehalfOfTokenExchangeConfigProperty

Returns a new instance of OnBehalfOfTokenExchangeConfigProperty.

Parameters:



1395
1396
1397
1398
1399
1400
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1395

def initialize(grant_type:, token_exchange_grant_type_config: nil)
  @grant_type = grant_type
  Jsii::Type.check_type(@grant_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "grantType")
  @token_exchange_grant_type_config = token_exchange_grant_type_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::TokenExchangeGrantTypeConfigProperty.new(**token_exchange_grant_type_config.transform_keys(&:to_sym)) : token_exchange_grant_type_config
  Jsii::Type.check_type(@token_exchange_grant_type_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk9BdXRoMkNyZWRlbnRpYWxQcm92aWRlci5Ub2tlbkV4Y2hhbmdlR3JhbnRUeXBlQ29uZmlnUHJvcGVydHkifV19fQ==")), "tokenExchangeGrantTypeConfig") unless @token_exchange_grant_type_config.nil?
end

Instance Attribute Details

#grant_typeString (readonly)

The grant type for on-behalf-of token exchange.



1406
1407
1408
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1406

def grant_type
  @grant_type
end

#token_exchange_grant_type_configAWSCDK::IResolvable, ... (readonly)

Configuration for RFC 8693 Token Exchange.



1411
1412
1413
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1411

def token_exchange_grant_type_config
  @token_exchange_grant_type_config
end

Class Method Details

.jsii_propertiesObject



1413
1414
1415
1416
1417
1418
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1413

def self.jsii_properties
  {
    :grant_type => "grantType",
    :token_exchange_grant_type_config => "tokenExchangeGrantTypeConfig",
  }
end

Instance Method Details

#to_jsiiObject



1420
1421
1422
1423
1424
1425
1426
1427
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1420

def to_jsii
  result = {}
  result.merge!({
    "grantType" => @grant_type,
    "tokenExchangeGrantTypeConfig" => @token_exchange_grant_type_config,
  })
  result.compact
end