Interface ApplicationLoadBalancerEndpointOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ApplicationLoadBalancerEndpointOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:17.693Z") @Stability(Stable) public interface ApplicationLoadBalancerEndpointOptions extends software.amazon.jsii.JsiiSerializable
Properties for a ApplicationLoadBalancerEndpoint.

Example:

 ApplicationLoadBalancer alb;
 Listener listener;
 listener.addEndpointGroup("Group", EndpointGroupOptions.builder()
         .endpoints(List.of(
             ApplicationLoadBalancerEndpoint.Builder.create(alb)
                     .weight(128)
                     .preserveClientIp(true)
                     .build()))
         .build());
 
  • Method Details

    • getPreserveClientIp

      @Stability(Stable) @Nullable default Boolean getPreserveClientIp()
      Forward the client IP address in an X-Forwarded-For header.

      GlobalAccelerator will create Network Interfaces in your VPC in order to preserve the client IP address.

      Client IP address preservation is supported only in specific AWS Regions. See the GlobalAccelerator Developer Guide for a list.

      Default: true if available

    • getWeight

      @Stability(Stable) @Nullable default Number getWeight()
      Endpoint weight across all endpoints in the group.

      Must be a value between 0 and 255.

      Default: 128

    • builder

      @Stability(Stable) static ApplicationLoadBalancerEndpointOptions.Builder builder()
      Returns:
      a ApplicationLoadBalancerEndpointOptions.Builder of ApplicationLoadBalancerEndpointOptions