Interface RequestAuthorizerProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.054Z") @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