Class CustomJwtConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CustomJwtConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomJwtConfiguration>
- Enclosing interface:
CustomJwtConfiguration
@Stability(Stable)
public static final class CustomJwtConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<CustomJwtConfiguration>
A builder for
CustomJwtConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedAudience(List<String> allowedAudience) Sets the value ofCustomJwtConfiguration.getAllowedAudience()allowedClients(List<String> allowedClients) Sets the value ofCustomJwtConfiguration.getAllowedClients()allowedScopes(List<String> allowedScopes) Sets the value ofCustomJwtConfiguration.getAllowedScopes()build()Builds the configured instance.customClaims(List<? extends GatewayCustomClaim> customClaims) Sets the value ofCustomJwtConfiguration.getCustomClaims()discoveryUrl(String discoveryUrl) Sets the value ofCustomJwtConfiguration.getDiscoveryUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
discoveryUrl
Sets the value ofCustomJwtConfiguration.getDiscoveryUrl()- Parameters:
discoveryUrl- This URL is used to fetch OpenID Connect configuration or authorization server metadata for validating incoming tokens. This parameter is required. Pattern: .+/.well-known/openid-configuration Required: Yes- Returns:
this
-
allowedAudience
@Stability(Stable) public CustomJwtConfiguration.Builder allowedAudience(List<String> allowedAudience) Sets the value ofCustomJwtConfiguration.getAllowedAudience()- Parameters:
allowedAudience- Represents individual audience values that are validated in the incoming JWT token validation process.- Returns:
this
-
allowedClients
@Stability(Stable) public CustomJwtConfiguration.Builder allowedClients(List<String> allowedClients) Sets the value ofCustomJwtConfiguration.getAllowedClients()- Parameters:
allowedClients- Represents individual client IDs that are validated in the incoming JWT token validation process.- Returns:
this
-
allowedScopes
Sets the value ofCustomJwtConfiguration.getAllowedScopes()- Parameters:
allowedScopes- Represents individual scopes that are validated in the incoming JWT token validation process.- Returns:
this
-
customClaims
@Stability(Stable) public CustomJwtConfiguration.Builder customClaims(List<? extends GatewayCustomClaim> customClaims) Sets the value ofCustomJwtConfiguration.getCustomClaims()- Parameters:
customClaims- Custom claims for additional JWT token validation. Allows you to validate additional fields in JWT tokens beyond the standard audience, client, and scope validations.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CustomJwtConfiguration>- Returns:
- a new instance of
CustomJwtConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-