java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegration
software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.690Z") @Stability(Experimental) public class HttpUrlIntegration extends HttpRouteIntegration
(experimental) The HTTP Proxy integration resource for HTTP API.

Example:

 import software.amazon.awscdk.services.apigatewayv2.authorizers.HttpLambdaAuthorizer;
 import software.amazon.awscdk.services.apigatewayv2.authorizers.HttpLambdaResponseType;
 import software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration;
 // This function handles your auth logic
 Function authHandler;
 HttpLambdaAuthorizer authorizer = HttpLambdaAuthorizer.Builder.create("BooksAuthorizer", authHandler)
         .responseTypes(List.of(HttpLambdaResponseType.SIMPLE))
         .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());
 
  • Constructor Details

    • HttpUrlIntegration

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

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

      @Stability(Experimental) public HttpUrlIntegration(@NotNull String id, @NotNull String url, @Nullable HttpUrlIntegrationProps props)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      url - the URL to proxy to. This parameter is required.
      props - properties to configure the integration.
    • HttpUrlIntegration

      @Stability(Experimental) public HttpUrlIntegration(@NotNull String id, @NotNull String url)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      url - the URL to proxy to. This parameter is required.
  • Method Details