java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.authorizers.HttpIamAuthorizer
All Implemented Interfaces:
IHttpRouteAuthorizer, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.884Z") @Stability(Experimental) public class HttpIamAuthorizer extends software.amazon.jsii.JsiiObject implements IHttpRouteAuthorizer
(experimental) Authorize HTTP API Routes with IAM.

Example:

 import software.amazon.awscdk.services.apigatewayv2.authorizers.HttpIamAuthorizer;
 import software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration;
 AnyPrincipal principal;
 HttpIamAuthorizer authorizer = new HttpIamAuthorizer();
 HttpApi httpApi = HttpApi.Builder.create(this, "HttpApi")
         .defaultAuthorizer(authorizer)
         .build();
 HttpRoute[] routes = httpApi.addRoutes(AddRoutesOptions.builder()
         .integration(new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.myproxy.internal"))
         .path("/books/{book}")
         .build());
 routes[0].grantInvoke(principal);
 
  • Constructor Details

    • HttpIamAuthorizer

      protected HttpIamAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
    • HttpIamAuthorizer

      protected HttpIamAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • HttpIamAuthorizer

      @Stability(Experimental) public HttpIamAuthorizer()
  • Method Details