NetworkTargetProps¶
-
class
aws_cdk.aws_ecs_patterns.
NetworkTargetProps
(*, container_port, listener=None)¶ Bases:
object
Properties to define a network load balancer target group.
- Parameters
container_port (
Union
[int
,float
]) – The port number of the container. Only applicable when using application/network load balancers.listener (
Optional
[str
]) – Name of the listener the target group attached to. Default: - default listener (first added listener)
Attributes
-
container_port
¶ The port number of the container.
Only applicable when using application/network load balancers.
- Return type
Union
[int
,float
]
-
listener
¶ Name of the listener the target group attached to.
- Default
default listener (first added listener)
- Return type
Optional
[str
]