Class CognitoAuthorizerProps.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.agentcore.alpha.CognitoAuthorizerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CognitoAuthorizerProps>
- Enclosing interface:
CognitoAuthorizerProps
@Stability(Deprecated)
@Deprecated
public static final class CognitoAuthorizerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CognitoAuthorizerProps>
Deprecated.
A builder for
CognitoAuthorizerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedAudiences(List<String> allowedAudiences) Deprecated.allowedClients(List<? extends IUserPoolClient> allowedClients) Deprecated.allowedScopes(List<String> allowedScopes) Deprecated.build()Deprecated.customClaims(List<? extends GatewayCustomClaim> customClaims) Deprecated.Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
userPool
@Stability(Deprecated) @Deprecated public CognitoAuthorizerProps.Builder userPool(IUserPool userPool) Deprecated.Sets the value ofCognitoAuthorizerProps.getUserPool()- Parameters:
userPool- The Cognito User Pool to use for authentication. This parameter is required.- Returns:
this
-
allowedAudiences
@Stability(Deprecated) @Deprecated public CognitoAuthorizerProps.Builder allowedAudiences(List<String> allowedAudiences) Deprecated.Sets the value ofCognitoAuthorizerProps.getAllowedAudiences()- Parameters:
allowedAudiences- The allowed audiences for JWT validation.- Returns:
this
-
allowedClients
@Stability(Deprecated) @Deprecated public CognitoAuthorizerProps.Builder allowedClients(List<? extends IUserPoolClient> allowedClients) Deprecated.Sets the value ofCognitoAuthorizerProps.getAllowedClients()- Parameters:
allowedClients- The allowed User Pool clients.- Returns:
this
-
allowedScopes
@Stability(Deprecated) @Deprecated public CognitoAuthorizerProps.Builder allowedScopes(List<String> allowedScopes) Deprecated.Sets the value ofCognitoAuthorizerProps.getAllowedScopes()- Parameters:
allowedScopes- The allowed scopes for JWT validation.- Returns:
this
-
customClaims
@Stability(Deprecated) @Deprecated public CognitoAuthorizerProps.Builder customClaims(List<? extends GatewayCustomClaim> customClaims) Deprecated.Sets the value ofCognitoAuthorizerProps.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
Deprecated.Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CognitoAuthorizerProps>- Returns:
- a new instance of
CognitoAuthorizerProps - Throws:
NullPointerException- if any required attribute was not provided
-