@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:23.704Z") @Stability(value=Experimental) public interface HttpJwtAuthorizerProps extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.services.apigatewayv2.authorizers.HttpJwtAuthorizer;
import software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration;
String issuer = "https://test.us.auth0.com";
HttpJwtAuthorizer authorizer = HttpJwtAuthorizer.Builder.create("BooksAuthorizer", issuer)
.jwtAudience(List.of("3131231"))
.build();
HttpApi api = new HttpApi(this, "HttpApi");
api.addRoutes(AddRoutesOptions.builder()
.integration(new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.myproxy.internal"))
.path("/books")
.authorizer(authorizer)
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpJwtAuthorizerProps.Builder
A builder for
HttpJwtAuthorizerProps |
static class |
HttpJwtAuthorizerProps.Jsii$Proxy
An implementation for
HttpJwtAuthorizerProps |
| Modifier and Type | Method and Description |
|---|---|
static HttpJwtAuthorizerProps.Builder |
builder() |
default String |
getAuthorizerName()
(experimental) The name of the authorizer.
|
default List<String> |
getIdentitySource()
(experimental) The identity source for which authorization is requested.
|
List<String> |
getJwtAudience()
(experimental) A list of the intended recipients of the JWT.
|
@Stability(value=Experimental) @NotNull List<String> getJwtAudience()
A valid JWT must provide an aud that matches at least one entry in this list.
@Stability(value=Experimental) @Nullable default String getAuthorizerName()
Default: - same value as `id` passed in the constructor
@Stability(value=Experimental) @Nullable default List<String> getIdentitySource()
Default: ['$request.header.Authorization']
@Stability(value=Experimental) static HttpJwtAuthorizerProps.Builder builder()
HttpJwtAuthorizerProps.Builder of HttpJwtAuthorizerPropsCopyright © 2022. All rights reserved.