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) privateEndpoint(IResolvable privateEndpoint) privateEndpoint(CfnOAuth2CredentialProvider.PrivateEndpointProperty privateEndpoint) privateEndpointOverrides(List<? extends Object> privateEndpointOverrides) privateEndpointOverrides(IResolvable privateEndpointOverrides) privateKeyJwtConfig(IResolvable privateKeyJwtConfig) privateKeyJwtConfig(CfnOAuth2CredentialProvider.PrivateKeyJwtConfigProperty privateKeyJwtConfig)
-
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
-
privateEndpoint
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder privateEndpoint(IResolvable privateEndpoint) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getPrivateEndpoint()- Parameters:
privateEndpoint- The private endpoint configuration for connecting to private resources in your VPC.- Returns:
this
-
privateEndpoint
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder privateEndpoint(CfnOAuth2CredentialProvider.PrivateEndpointProperty privateEndpoint) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getPrivateEndpoint()- Parameters:
privateEndpoint- The private endpoint configuration for connecting to private resources in your VPC.- Returns:
this
-
privateEndpointOverrides
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder privateEndpointOverrides(IResolvable privateEndpointOverrides) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getPrivateEndpointOverrides()- Parameters:
privateEndpointOverrides- A list of private endpoint overrides. Each override maps a specific domain to a private endpoint, enabling secure connectivity through VPC Lattice resource configurations.- Returns:
this
-
privateEndpointOverrides
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder privateEndpointOverrides(List<? extends Object> privateEndpointOverrides) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getPrivateEndpointOverrides()- Parameters:
privateEndpointOverrides- A list of private endpoint overrides. Each override maps a specific domain to a private endpoint, enabling secure connectivity through VPC Lattice resource configurations.- Returns:
this
-
privateKeyJwtConfig
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder privateKeyJwtConfig(IResolvable privateKeyJwtConfig) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getPrivateKeyJwtConfig()- Parameters:
privateKeyJwtConfig- Configuration for private_key_jwt client authentication (RFC 7523).- Returns:
this
-
privateKeyJwtConfig
@Stability(Stable) public CfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.Builder privateKeyJwtConfig(CfnOAuth2CredentialProvider.PrivateKeyJwtConfigProperty privateKeyJwtConfig) Sets the value ofCfnOAuth2CredentialProvider.CustomOauth2ProviderConfigInputProperty.getPrivateKeyJwtConfig()- Parameters:
privateKeyJwtConfig- Configuration for private_key_jwt client authentication (RFC 7523).- 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
-