Class HttpJwtAuthorizer.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.authorizers.HttpJwtAuthorizer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpJwtAuthorizer>
- Enclosing class:
- HttpJwtAuthorizer
@Stability(Experimental)
public static final class HttpJwtAuthorizer.Builder
extends Object
implements software.amazon.jsii.Builder<HttpJwtAuthorizer>
(experimental) A fluent builder for
HttpJwtAuthorizer
.-
Method Summary
Modifier and TypeMethodDescriptionauthorizerName
(String authorizerName) (experimental) The name of the authorizer.build()
static HttpJwtAuthorizer.Builder
identitySource
(List<String> identitySource) (experimental) The identity source for which authorization is requested.jwtAudience
(List<String> jwtAudience) (experimental) A list of the intended recipients of the JWT.
-
Method Details
-
create
@Stability(Experimental) public static HttpJwtAuthorizer.Builder create(String id, String jwtIssuer) - Parameters:
id
- The id of the underlying construct. This parameter is required.jwtIssuer
- The base domain of the identity provider that issues JWT. This parameter is required.- Returns:
- a new instance of
HttpJwtAuthorizer.Builder
.
-
jwtAudience
(experimental) A list of the intended recipients of the JWT.A valid JWT must provide an aud that matches at least one entry in this list.
- Parameters:
jwtAudience
- A list of the intended recipients of the JWT. This parameter is required.- Returns:
this
-
authorizerName
(experimental) The name of the authorizer.Default: - same value as `id` passed in the constructor
- Parameters:
authorizerName
- The name of the authorizer. This parameter is required.- Returns:
this
-
identitySource
@Stability(Experimental) public HttpJwtAuthorizer.Builder identitySource(List<String> identitySource) (experimental) The identity source for which authorization is requested.Default: ['$request.header.Authorization']
- Parameters:
identitySource
- The identity source for which authorization is requested. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpJwtAuthorizer>
- Returns:
- a newly built instance of
HttpJwtAuthorizer
.
-