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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forNetworkTargetProps
static final class
An implementation forNetworkTargetProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkTargetProps.Builder
builder()
The port number of the container.default String
Name 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.Builder
ofNetworkTargetProps
-