Class HttpNlbIntegration

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

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

Example:

 import software.amazon.awscdk.aws_apigatewayv2_integrations.HttpNlbIntegration;
 Vpc vpc = new Vpc(this, "VPC");
 NetworkLoadBalancer lb = NetworkLoadBalancer.Builder.create(this, "lb").vpc(vpc).build();
 NetworkListener listener = lb.addListener("listener", BaseNetworkListenerProps.builder().port(80).build());
 listener.addTargets("target", AddNetworkTargetsProps.builder()
         .port(80)
         .build());
 HttpApi httpEndpoint = HttpApi.Builder.create(this, "HttpProxyPrivateApi")
         .defaultIntegration(new HttpNlbIntegration("DefaultIntegration", listener))
         .build();
 
  • Constructor Details

    • HttpNlbIntegration

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

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

      @Stability(Stable) public HttpNlbIntegration(@NotNull String id, @NotNull INetworkListener listener, @Nullable HttpNlbIntegrationProps props)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      listener - the ELB network listener. This parameter is required.
      props - properties to configure the integration.
    • HttpNlbIntegration

      @Stability(Stable) public HttpNlbIntegration(@NotNull String id, @NotNull INetworkListener listener)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      listener - the ELB network 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)