NetworkTargetProps

class aws_cdk.aws_ecs_patterns.NetworkTargetProps(*, container_port, listener=None)

Bases: object

__init__(*, container_port, listener=None)

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)

Return type

None

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: - default listener (first added listener)

Return type

Optional[str]