Class OAuth2ClientCredentials.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.OAuth2ClientCredentials.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OAuth2ClientCredentials>
- Enclosing interface:
OAuth2ClientCredentials
@Stability(Stable)
public static final class OAuth2ClientCredentials.Builder
extends Object
implements software.amazon.jsii.Builder<OAuth2ClientCredentials>
A builder for
OAuth2ClientCredentials-
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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientId
Sets the value ofOAuth2ClientCredentials.getClientId()- Parameters:
clientId- OAuth2 client identifier. This parameter is required.- Returns:
this
-
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<OAuth2ClientCredentials>- Returns:
- a new instance of
OAuth2ClientCredentials - Throws:
NullPointerException- if any required attribute was not provided
-