Class HttpUrlIntegration

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:02.258Z") @Stability(Stable) public class HttpUrlIntegration extends HttpRouteIntegration
The HTTP Proxy integration resource for HTTP API.

Example:

 import software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpLambdaAuthorizer;
 import software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpLambdaResponseType;
 import software.amazon.awscdk.aws_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.example.com"))
         .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(Stable) 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(Stable) 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