Interface RequestAuthorizerProps

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

@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-04-10T22:22:23.052Z") @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