Class HttpAlbIntegration

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:13.643Z") @Stability(Stable) public class HttpAlbIntegration extends HttpRouteIntegration
The Application Load Balancer integration resource for HTTP API.

Example:

 import software.amazon.awscdk.aws_apigatewayv2_integrations.HttpAlbIntegration;
 Vpc vpc = new Vpc(this, "VPC");
 ApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, "lb").vpc(vpc).build();
 ApplicationListener listener = lb.addListener("listener", BaseApplicationListenerProps.builder().port(80).build());
 listener.addTargets("target", AddApplicationTargetsProps.builder()
         .port(80)
         .build());
 HttpApi httpEndpoint = HttpApi.Builder.create(this, "HttpProxyPrivateApi")
         .defaultIntegration(new HttpAlbIntegration("DefaultIntegration", listener))
         .build();
 
  • Constructor Details

    • HttpAlbIntegration

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

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

      @Stability(Stable) public HttpAlbIntegration(@NotNull String id, @NotNull IApplicationListener listener, @Nullable HttpAlbIntegrationProps props)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      listener - the ELB application listener. This parameter is required.
      props - properties to configure the integration.
    • HttpAlbIntegration

      @Stability(Stable) public HttpAlbIntegration(@NotNull String id, @NotNull IApplicationListener listener)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      listener - the ELB application listener. This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public HttpRouteIntegrationConfig bind(@NotNull HttpRouteIntegrationBindOptions options)
      Bind this integration to the route.

      Specified by:
      bind in class HttpRouteIntegration
      Parameters:
      options - This parameter is required.
    • getConnectionType

      @Stability(Stable) @NotNull protected HttpConnectionType getConnectionType()
    • setConnectionType

      @Stability(Stable) protected void setConnectionType(@NotNull HttpConnectionType value)
    • getHttpMethod

      @Stability(Stable) @NotNull protected HttpMethod getHttpMethod()
    • setHttpMethod

      @Stability(Stable) protected void setHttpMethod(@NotNull HttpMethod value)
    • getIntegrationType

      @Stability(Stable) @NotNull protected HttpIntegrationType getIntegrationType()
    • setIntegrationType

      @Stability(Stable) protected void setIntegrationType(@NotNull HttpIntegrationType value)
    • getPayloadFormatVersion

      @Stability(Stable) @NotNull protected PayloadFormatVersion getPayloadFormatVersion()
    • setPayloadFormatVersion

      @Stability(Stable) protected void setPayloadFormatVersion(@NotNull PayloadFormatVersion value)