Interface NetworkTargetGroupProps

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.92.0 (build db7f27d)", date="2023-12-06T04:49:38.658Z") @Stability(Stable) public interface NetworkTargetGroupProps extends, BaseTargetGroupProps
Properties for a new Network Target Group.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 INetworkLoadBalancerTarget networkLoadBalancerTarget;
 Vpc vpc;
 NetworkTargetGroupProps networkTargetGroupProps = NetworkTargetGroupProps.builder()
         // the properties below are optional
  • Method Details

    • getPort

      @Stability(Stable) @NotNull Number getPort()
      The port on which the target receives traffic.
    • getConnectionTermination

      @Stability(Stable) @Nullable default Boolean getConnectionTermination()
      Indicates whether the load balancer terminates connections at the end of the deregistration timeout.

      Default: false

    • getPreserveClientIp

      @Stability(Stable) @Nullable default Boolean getPreserveClientIp()
      Indicates whether client IP preservation is enabled.

      Default: false if the target group type is IP address and the target group protocol is TCP or TLS. Otherwise, true.

    • getProtocol

      @Stability(Stable) @Nullable default Protocol getProtocol()
      Protocol for target group, expects TCP, TLS, UDP, or TCP_UDP.

      Default: - TCP

    • getProxyProtocolV2

      @Stability(Stable) @Nullable default Boolean getProxyProtocolV2()
      Indicates whether Proxy Protocol version 2 is enabled.

      Default: false

    • getTargets

      @Stability(Stable) @Nullable default List<INetworkLoadBalancerTarget> getTargets()
      The targets to add to this target group.

      Can be Instance, IPAddress, or any self-registering load balancing target. If you use either Instance or IPAddress as targets, all target must be of the same type.

      Default: - No targets.

    • builder

      @Stability(Stable) static NetworkTargetGroupProps.Builder builder()
      a NetworkTargetGroupProps.Builder of NetworkTargetGroupProps