EcsTarget¶
-
class
aws_cdk.aws_ecs.
EcsTarget
(*, container_name, listener, new_target_group_id, container_port=None, protocol=None)¶ Bases:
object
- Parameters
container_name (
str
) – The name of the container.listener (
ListenerConfig
) – Listener and properties for adding target group to the listener.new_target_group_id (
str
) – ID for a target group to be created.container_port (
Union
[int
,float
,None
]) – The port number of the container. Only applicable when using application/network load balancers. Default: - Container port of the first added port mapping.protocol (
Optional
[Protocol
]) – The protocol used for the port mapping. Only applicable when using application load balancers. Default: Protocol.TCP
Attributes
-
container_name
¶ The name of the container.
- Return type
str
-
container_port
¶ The port number of the container.
Only applicable when using application/network load balancers.
- Default
Container port of the first added port mapping.
- Return type
Union
[int
,float
,None
]
-
listener
¶ Listener and properties for adding target group to the listener.
- Return type
-
new_target_group_id
¶ ID for a target group to be created.
- Return type
str