@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:23.702Z") @Stability(value=Experimental) public class HttpJwtAuthorizer extends software.amazon.jsii.JsiiObject implements IHttpRouteAuthorizer
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 | Class and Description |
|---|---|
static class |
HttpJwtAuthorizer.Builder
(experimental) A fluent builder for
HttpJwtAuthorizer. |
software.amazon.jsii.JsiiObject.InitializationModeIHttpRouteAuthorizer.Jsii$Default, IHttpRouteAuthorizer.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
HttpJwtAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpJwtAuthorizer(software.amazon.jsii.JsiiObjectRef objRef) |
|
HttpJwtAuthorizer(String id,
String jwtIssuer,
HttpJwtAuthorizerProps props)
(experimental) Initialize a JWT authorizer to be bound with HTTP route.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRouteAuthorizerConfig |
bind(HttpRouteAuthorizerBindOptions options)
(experimental) Bind this authorizer to a specified Http route.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected HttpJwtAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpJwtAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public HttpJwtAuthorizer(@NotNull
String id,
@NotNull
String jwtIssuer,
@NotNull
HttpJwtAuthorizerProps props)
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.props - Properties to configure the authorizer. This parameter is required.@Stability(value=Experimental) @NotNull public HttpRouteAuthorizerConfig bind(@NotNull HttpRouteAuthorizerBindOptions options)
bind in interface IHttpRouteAuthorizeroptions - This parameter is required.Copyright © 2022. All rights reserved.