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

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

Example:

 import software.amazon.awscdk.services.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(Experimental) 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(Experimental) 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(Experimental) @NotNull public HttpRouteIntegrationConfig bind(@NotNull HttpRouteIntegrationBindOptions options)
      (experimental) Bind this integration to the route.

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

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

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

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

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

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

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

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

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