Class: AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::Oauth2ProviderConfigOutputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::Oauth2ProviderConfigOutputProperty
- Defined in:
- bedrock_agent_core/cfn_o_auth2_credential_provider.rb
Overview
Output configuration for an OAuth2 provider.
Instance Attribute Summary collapse
-
#client_authentication_method ⇒ String?
readonly
The client authentication method used when authenticating with the token endpoint.
- #client_id ⇒ String? readonly
-
#oauth_discovery ⇒ AWSCDK::IResolvable, ...
readonly
Discovery information for an OAuth2 provider.
-
#on_behalf_of_token_exchange_config ⇒ AWSCDK::IResolvable, ...
readonly
Configuration for on-behalf-of token exchange.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client_authentication_method: nil, client_id: nil, oauth_discovery: nil, on_behalf_of_token_exchange_config: nil) ⇒ Oauth2ProviderConfigOutputProperty
constructor
A new instance of Oauth2ProviderConfigOutputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(client_authentication_method: nil, client_id: nil, oauth_discovery: nil, on_behalf_of_token_exchange_config: nil) ⇒ Oauth2ProviderConfigOutputProperty
Returns a new instance of Oauth2ProviderConfigOutputProperty.
1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 |
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1336 def initialize(client_authentication_method: nil, client_id: nil, oauth_discovery: nil, on_behalf_of_token_exchange_config: nil) @client_authentication_method = client_authentication_method Jsii::Type.check_type(@client_authentication_method, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientAuthenticationMethod") unless @client_authentication_method.nil? @client_id = client_id Jsii::Type.check_type(@client_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientId") unless @client_id.nil? @oauth_discovery = oauth_discovery.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::Oauth2DiscoveryProperty.new(**oauth_discovery.transform_keys(&:to_sym)) : oauth_discovery Jsii::Type.check_type(@oauth_discovery, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk9BdXRoMkNyZWRlbnRpYWxQcm92aWRlci5PYXV0aDJEaXNjb3ZlcnlQcm9wZXJ0eSJ9XX19")), "oauthDiscovery") unless @oauth_discovery.nil? @on_behalf_of_token_exchange_config = on_behalf_of_token_exchange_config.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnOAuth2CredentialProvider::OnBehalfOfTokenExchangeConfigProperty.new(**on_behalf_of_token_exchange_config.transform_keys(&:to_sym)) : on_behalf_of_token_exchange_config Jsii::Type.check_type(@on_behalf_of_token_exchange_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbk9BdXRoMkNyZWRlbnRpYWxQcm92aWRlci5PbkJlaGFsZk9mVG9rZW5FeGNoYW5nZUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "onBehalfOfTokenExchangeConfig") unless @on_behalf_of_token_exchange_config.nil? end |
Instance Attribute Details
#client_authentication_method ⇒ String? (readonly)
The client authentication method used when authenticating with the token endpoint.
1351 1352 1353 |
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1351 def client_authentication_method @client_authentication_method end |
#client_id ⇒ String? (readonly)
1354 1355 1356 |
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1354 def client_id @client_id end |
#oauth_discovery ⇒ AWSCDK::IResolvable, ... (readonly)
Discovery information for an OAuth2 provider.
1359 1360 1361 |
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1359 def oauth_discovery @oauth_discovery end |
#on_behalf_of_token_exchange_config ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration for on-behalf-of token exchange.
1364 1365 1366 |
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1364 def on_behalf_of_token_exchange_config @on_behalf_of_token_exchange_config end |
Class Method Details
.jsii_properties ⇒ Object
1366 1367 1368 1369 1370 1371 1372 1373 |
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1366 def self.jsii_properties { :client_authentication_method => "clientAuthenticationMethod", :client_id => "clientId", :oauth_discovery => "oauthDiscovery", :on_behalf_of_token_exchange_config => "onBehalfOfTokenExchangeConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 |
# File 'bedrock_agent_core/cfn_o_auth2_credential_provider.rb', line 1375 def to_jsii result = {} result.merge!({ "clientAuthenticationMethod" => @client_authentication_method, "clientId" => @client_id, "oauthDiscovery" => @oauth_discovery, "onBehalfOfTokenExchangeConfig" => @on_behalf_of_token_exchange_config, }) result.compact end |