Class CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty>
- Enclosing interface:
CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty
@Stability(Stable)
public static final class CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientAuthenticationMethod(String clientAuthenticationMethod) clientSecret(String clientSecret) clientSecretConfig(IResolvable clientSecretConfig) clientSecretConfig(CfnOAuth2CredentialProvider.SecretReferenceProperty clientSecretConfig) clientSecretSource(String clientSecretSource) oauthDiscovery(IResolvable oauthDiscovery) oauthDiscovery(CfnOAuth2CredentialProvider.Oauth2DiscoveryProperty oauthDiscovery) onBehalfOfTokenExchangeConfig(IResolvable onBehalfOfTokenExchangeConfig) onBehalfOfTokenExchangeConfig(CfnOAuth2CredentialProvider.OnBehalfOfTokenExchangeConfigProperty onBehalfOfTokenExchangeConfig)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
oauthDiscovery
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder oauthDiscovery(IResolvable oauthDiscovery) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getOauthDiscovery()- Parameters:
oauthDiscovery- Discovery information for an OAuth2 provider. This parameter is required.- Returns:
this
-
oauthDiscovery
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder oauthDiscovery(CfnOAuth2CredentialProvider.Oauth2DiscoveryProperty oauthDiscovery) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getOauthDiscovery()- Parameters:
oauthDiscovery- Discovery information for an OAuth2 provider. This parameter is required.- Returns:
this
-
clientAuthenticationMethod
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder clientAuthenticationMethod(String clientAuthenticationMethod) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getClientAuthenticationMethod()- Parameters:
clientAuthenticationMethod- The client authentication method to use when authenticating with the token endpoint.- Returns:
this
-
clientId
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder clientId(String clientId) - Parameters:
clientId- The client ID for the custom OAuth2 provider.- Returns:
this
-
clientSecret
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder clientSecret(String clientSecret) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getClientSecret()- Parameters:
clientSecret- The client secret for the custom OAuth2 provider.- Returns:
this
-
clientSecretConfig
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder clientSecretConfig(IResolvable clientSecretConfig) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getClientSecretConfig()- Parameters:
clientSecretConfig- A reference to a customer-provided secret stored in AWS Secrets Manager.- Returns:
this
-
clientSecretConfig
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder clientSecretConfig(CfnOAuth2CredentialProvider.SecretReferenceProperty clientSecretConfig) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getClientSecretConfig()- Parameters:
clientSecretConfig- A reference to a customer-provided secret stored in AWS Secrets Manager.- Returns:
this
-
clientSecretSource
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder clientSecretSource(String clientSecretSource) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getClientSecretSource()- Parameters:
clientSecretSource- The source of the client secret.- Returns:
this
-
onBehalfOfTokenExchangeConfig
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder onBehalfOfTokenExchangeConfig(IResolvable onBehalfOfTokenExchangeConfig) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getOnBehalfOfTokenExchangeConfig()- Parameters:
onBehalfOfTokenExchangeConfig- Configuration for on-behalf-of token exchange.- Returns:
this
-
onBehalfOfTokenExchangeConfig
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder onBehalfOfTokenExchangeConfig(CfnOAuth2CredentialProvider.OnBehalfOfTokenExchangeConfigProperty onBehalfOfTokenExchangeConfig) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getOnBehalfOfTokenExchangeConfig()- Parameters:
onBehalfOfTokenExchangeConfig- Configuration for on-behalf-of token exchange.- Returns:
this
-
build
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty>- Returns:
- a new instance of
CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty - Throws:
NullPointerException- if any required attribute was not provided
-