Interface HttpJwtAuthorizerProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
HttpJwtAuthorizerProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.886Z") @Stability(Experimental) public interface HttpJwtAuthorizerProps extends software.amazon.jsii.JsiiSerializable
(experimental) Properties to initialize HttpJwtAuthorizer.

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());
 
  • Method Details

    • getJwtAudience

      @Stability(Experimental) @NotNull List<String> getJwtAudience()
      (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.

    • getAuthorizerName

      @Stability(Experimental) @Nullable default String getAuthorizerName()
      (experimental) The name of the authorizer.

      Default: - same value as `id` passed in the constructor

    • getIdentitySource

      @Stability(Experimental) @Nullable default List<String> getIdentitySource()
      (experimental) The identity source for which authorization is requested.

      Default: ['$request.header.Authorization']

    • builder

      @Stability(Experimental) static HttpJwtAuthorizerProps.Builder builder()
      Returns:
      a HttpJwtAuthorizerProps.Builder of HttpJwtAuthorizerProps