Interface RequestAuthorizerProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, LambdaAuthorizerProps
All Known Implementing Classes:
RequestAuthorizerProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:03.527Z") @Stability(Stable) public interface RequestAuthorizerProps extends software.amazon.jsii.JsiiSerializable, LambdaAuthorizerProps
Properties for RequestAuthorizer.

Example:

 Function authFn;
 Resource books;
 RequestAuthorizer auth = RequestAuthorizer.Builder.create(this, "booksAuthorizer")
         .handler(authFn)
         .identitySources(List.of(IdentitySource.header("Authorization")))
         .build();
 books.addMethod("GET", new HttpIntegration("http://amazon.com"), MethodOptions.builder()
         .authorizer(auth)
         .build());
 
  • Method Details