Interface NetworkTargetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkTargetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:41.119Z")
@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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forNetworkTargetPropsstatic final classAn implementation forNetworkTargetProps -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkTargetProps.Builderbuilder()The port number of the container.default StringName of the listener the target group attached to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerPort
The port number of the container.Only applicable when using application/network load balancers.
-
getListener
Name of the listener the target group attached to.Default: - default listener (first added listener)
-
builder
- Returns:
- a
NetworkTargetProps.BuilderofNetworkTargetProps
-