Interface NetworkTargetProps

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-27T16:50:57.195Z") @Stability(Stable) public interface NetworkTargetProps extends software.amazon.jsii.JsiiSerializable
Properties to define a network load balancer target group.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecs.patterns.*;
 NetworkTargetProps networkTargetProps = NetworkTargetProps.builder()
         .containerPort(123)
         // the properties below are optional
         .listener("listener")
         .build();
 
  • Method Details

    • getContainerPort

      @Stability(Stable) @NotNull Number getContainerPort()
      The port number of the container.

      Only applicable when using application/network load balancers.

    • getListener

      @Stability(Stable) @Nullable default String getListener()
      Name of the listener the target group attached to.

      Default: - default listener (first added listener)

    • builder

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