Interface HttpJwtAuthorizerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpJwtAuthorizerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:30.608Z")
@Stability(Stable)
public interface HttpJwtAuthorizerProps
extends software.amazon.jsii.JsiiSerializable
Properties to initialize HttpJwtAuthorizer.
Example:
import software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpJwtAuthorizer;
import software.amazon.awscdk.aws_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.example.com"))
.path("/books")
.authorizer(authorizer)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttpJwtAuthorizerPropsstatic final classAn implementation forHttpJwtAuthorizerProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getJwtAudience
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.
-
getAuthorizerName
The name of the authorizer.Default: - same value as `id` passed in the constructor
-
getIdentitySource
The identity source for which authorization is requested.Default: ['$request.header.Authorization']
-
builder
- Returns:
- a
HttpJwtAuthorizerProps.BuilderofHttpJwtAuthorizerProps
-