Class MicrosoftOAuth2CredentialProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.MicrosoftOAuth2CredentialProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MicrosoftOAuth2CredentialProviderProps>
- Enclosing interface:
MicrosoftOAuth2CredentialProviderProps
@Stability(Stable)
public static final class MicrosoftOAuth2CredentialProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<MicrosoftOAuth2CredentialProviderProps>
A builder for
MicrosoftOAuth2CredentialProviderProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofOAuth2ClientCredentials.getClientId()clientSecret(SecretValue clientSecret) Sets the value ofOAuth2ClientCredentials.getClientSecret()oAuth2CredentialProviderName(String oAuth2CredentialProviderName) Sets the value ofOAuth2CredentialProviderBaseProps.getOAuth2CredentialProviderName()Sets the value ofOAuth2CredentialProviderBaseProps.getTags()Sets the value ofMicrosoftOAuth2CredentialProviderProps.getTenantId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tenantId
Sets the value ofMicrosoftOAuth2CredentialProviderProps.getTenantId()- Parameters:
tenantId- Microsoft Entra ID tenant ID.- Returns:
this
-
oAuth2CredentialProviderName
@Stability(Stable) public MicrosoftOAuth2CredentialProviderProps.Builder oAuth2CredentialProviderName(String oAuth2CredentialProviderName) Sets the value ofOAuth2CredentialProviderBaseProps.getOAuth2CredentialProviderName()- Parameters:
oAuth2CredentialProviderName- Name of the credential provider.- Returns:
this
-
tags
@Stability(Stable) public MicrosoftOAuth2CredentialProviderProps.Builder tags(Map<String, String> 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 MicrosoftOAuth2CredentialProviderProps.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<MicrosoftOAuth2CredentialProviderProps>- Returns:
- a new instance of
MicrosoftOAuth2CredentialProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-