Class HttpJwtAuthorizerProps.Builder
java.lang.Object
software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpJwtAuthorizerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpJwtAuthorizerProps>
- Enclosing interface:
HttpJwtAuthorizerProps
@Stability(Stable)
public static final class HttpJwtAuthorizerProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpJwtAuthorizerProps>
A builder for
HttpJwtAuthorizerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizerName(String authorizerName) Sets the value ofHttpJwtAuthorizerProps.getAuthorizerName()build()Builds the configured instance.identitySource(List<String> identitySource) Sets the value ofHttpJwtAuthorizerProps.getIdentitySource()jwtAudience(List<String> jwtAudience) Sets the value ofHttpJwtAuthorizerProps.getJwtAudience()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jwtAudience
Sets the value ofHttpJwtAuthorizerProps.getJwtAudience()- Parameters:
jwtAudience- A list of the intended recipients of the JWT. This parameter is required. A valid JWT must provide an aud that matches at least one entry in this list.- Returns:
this
-
authorizerName
Sets the value ofHttpJwtAuthorizerProps.getAuthorizerName()- Parameters:
authorizerName- The name of the authorizer.- Returns:
this
-
identitySource
@Stability(Stable) public HttpJwtAuthorizerProps.Builder identitySource(List<String> identitySource) Sets the value ofHttpJwtAuthorizerProps.getIdentitySource()- Parameters:
identitySource- The identity source for which authorization is requested.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpJwtAuthorizerProps>- Returns:
- a new instance of
HttpJwtAuthorizerProps - Throws:
NullPointerException- if any required attribute was not provided
-