Class IncludedOauth2TenantCredentialProviderProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.IncludedOauth2TenantCredentialProviderProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IncludedOauth2TenantCredentialProviderProps>
- Enclosing interface:
IncludedOauth2TenantCredentialProviderProps
@Stability(Stable)
public static final class IncludedOauth2TenantCredentialProviderProps.Builder
extends Object
implements software.amazon.jsii.Builder<IncludedOauth2TenantCredentialProviderProps>
A builder for
IncludedOauth2TenantCredentialProviderProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationEndpoint(String authorizationEndpoint) Sets the value ofIncludedOauth2TenantEndpoints.getAuthorizationEndpoint()build()Builds the configured instance.Sets the value ofOAuth2ClientCredentials.getClientId()clientSecret(SecretValue clientSecret) Sets the value ofOAuth2ClientCredentials.getClientSecret()Sets the value ofIncludedOauth2TenantEndpoints.getIssuer()oAuth2CredentialProviderName(String oAuth2CredentialProviderName) Sets the value ofOAuth2CredentialProviderBaseProps.getOAuth2CredentialProviderName()Sets the value ofOAuth2CredentialProviderBaseProps.getTags()tokenEndpoint(String tokenEndpoint) Sets the value ofIncludedOauth2TenantEndpoints.getTokenEndpoint()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
oAuth2CredentialProviderName
@Stability(Stable) public IncludedOauth2TenantCredentialProviderProps.Builder oAuth2CredentialProviderName(String oAuth2CredentialProviderName) Sets the value ofOAuth2CredentialProviderBaseProps.getOAuth2CredentialProviderName()- Parameters:
oAuth2CredentialProviderName- Name of the credential provider.- Returns:
this
-
tags
@Stability(Stable) public IncludedOauth2TenantCredentialProviderProps.Builder tags(Map<String, String> tags) Sets the value ofOAuth2CredentialProviderBaseProps.getTags()- Parameters:
tags- Tags for this credential provider.- Returns:
this
-
clientId
@Stability(Stable) public IncludedOauth2TenantCredentialProviderProps.Builder clientId(String clientId) Sets the value ofOAuth2ClientCredentials.getClientId()- Parameters:
clientId- OAuth2 client identifier. This parameter is required.- Returns:
this
-
clientSecret
@Stability(Stable) public IncludedOauth2TenantCredentialProviderProps.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
-
authorizationEndpoint
@Stability(Stable) public IncludedOauth2TenantCredentialProviderProps.Builder authorizationEndpoint(String authorizationEndpoint) Sets the value ofIncludedOauth2TenantEndpoints.getAuthorizationEndpoint()- Parameters:
authorizationEndpoint- OAuth2 authorization endpoint for your tenant.- Returns:
this
-
issuer
Sets the value ofIncludedOauth2TenantEndpoints.getIssuer()- Parameters:
issuer- Token issuer URL for your tenant (often the IdP base or issuer URI).- Returns:
this
-
tokenEndpoint
@Stability(Stable) public IncludedOauth2TenantCredentialProviderProps.Builder tokenEndpoint(String tokenEndpoint) Sets the value ofIncludedOauth2TenantEndpoints.getTokenEndpoint()- Parameters:
tokenEndpoint- OAuth2 token endpoint for your tenant.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IncludedOauth2TenantCredentialProviderProps>- Returns:
- a new instance of
IncludedOauth2TenantCredentialProviderProps - Throws:
NullPointerException- if any required attribute was not provided
-