Interface NetworkTargetProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.767Z") @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