Class CustomOAuth2CredentialProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CustomOAuth2CredentialProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomOAuth2CredentialProviderProps>
- Enclosing interface:
CustomOAuth2CredentialProviderProps
@Stability(Stable)
public static final class CustomOAuth2CredentialProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<CustomOAuth2CredentialProviderProps>
A builder for
CustomOAuth2CredentialProviderProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationServerMetadata(OAuth2AuthorizationServerMetadata authorizationServerMetadata) Sets the value ofCustomOAuth2CredentialProviderProps.getAuthorizationServerMetadata()build()Builds the configured instance.Sets the value ofOAuth2ClientCredentials.getClientId()clientSecret(SecretValue clientSecret) Sets the value ofOAuth2ClientCredentials.getClientSecret()discoveryUrl(String discoveryUrl) Sets the value ofCustomOAuth2CredentialProviderProps.getDiscoveryUrl()oAuth2CredentialProviderName(String oAuth2CredentialProviderName) Sets the value ofOAuth2CredentialProviderBaseProps.getOAuth2CredentialProviderName()Sets the value ofOAuth2CredentialProviderBaseProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationServerMetadata
@Stability(Stable) public CustomOAuth2CredentialProviderProps.Builder authorizationServerMetadata(OAuth2AuthorizationServerMetadata authorizationServerMetadata) Sets the value ofCustomOAuth2CredentialProviderProps.getAuthorizationServerMetadata()- Parameters:
authorizationServerMetadata- Authorization server metadata (issuer, authorization and token endpoints) when not using a discovery URL.- Returns:
this
-
discoveryUrl
@Stability(Stable) public CustomOAuth2CredentialProviderProps.Builder discoveryUrl(String discoveryUrl) Sets the value ofCustomOAuth2CredentialProviderProps.getDiscoveryUrl()- Parameters:
discoveryUrl- OIDC/OAuth2 discovery document URL for dynamic integration with the identity provider.- Returns:
this
-
oAuth2CredentialProviderName
@Stability(Stable) public CustomOAuth2CredentialProviderProps.Builder oAuth2CredentialProviderName(String oAuth2CredentialProviderName) Sets the value ofOAuth2CredentialProviderBaseProps.getOAuth2CredentialProviderName()- Parameters:
oAuth2CredentialProviderName- Name of the credential provider.- Returns:
this
-
tags
Sets the value ofOAuth2CredentialProviderBaseProps.getTags()- Parameters:
tags- Tags for this credential provider.- Returns:
this
-
clientId
Sets the value ofOAuth2ClientCredentials.getClientId()- Parameters:
clientId- OAuth2 client identifier. This parameter is required.- Returns:
this
-
clientSecret
@Stability(Stable) public CustomOAuth2CredentialProviderProps.Builder clientSecret(SecretValue clientSecret) Sets the value ofOAuth2ClientCredentials.getClientSecret()- Parameters:
clientSecret- OAuth2 client secret. This parameter is required. NOTE: The client secret will be included in the CloudFormation template as part of synthesis. The service stores the secret in Secrets Manager after creation, but the value is visible in the template and deployment history. UseSecretValue.unsafePlainText()to explicitly acknowledge plaintext, or pass a reference from another construct to avoid embedding the literal value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CustomOAuth2CredentialProviderProps>- Returns:
- a new instance of
CustomOAuth2CredentialProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-