ApplicationTargetProps¶
-
class
aws_cdk.aws_ecs_patterns.
ApplicationTargetProps
(*, container_port, host_header=None, listener=None, path_pattern=None, priority=None, protocol=None)¶ Bases:
object
Properties to define an application target group.
- Parameters
container_port (
Union
[int
,float
]) – The port number of the container. Only applicable when using application/network load balancers.host_header (
Optional
[str
]) – Rule applies if the requested host matches the indicated host. May contain up to three ‘*’ wildcards. Requires that priority is set. Default: No host conditionlistener (
Optional
[str
]) – Name of the listener the target group attached to. Default: - default listener (first added listener)path_pattern (
Optional
[str
]) – Rule applies if the requested path matches the given path pattern. May contain up to three ‘*’ wildcards. Requires that priority is set. Default: No path conditionpriority (
Union
[int
,float
,None
]) – Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions. Priorities must be unique. Default: Target groups are used as defaultsprotocol (
Optional
[Protocol
]) – The protocol used for the port mapping. Only applicable when using application load balancers. Default: ecs.Protocol.TCP
Attributes
-
container_port
¶ The port number of the container.
Only applicable when using application/network load balancers.
- Return type
Union
[int
,float
]
-
host_header
¶ Rule applies if the requested host matches the indicated host.
May contain up to three ‘*’ wildcards.
Requires that priority is set.
- Default
No host condition
- See
- Return type
Optional
[str
]
-
listener
¶ Name of the listener the target group attached to.
- Default
default listener (first added listener)
- Return type
Optional
[str
]
-
path_pattern
¶ Rule applies if the requested path matches the given path pattern.
May contain up to three ‘*’ wildcards.
Requires that priority is set.
- Default
No path condition
- See
- Return type
Optional
[str
]
-
priority
¶ Priority of this target group.
The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions.
Priorities must be unique.
- Default
Target groups are used as defaults
- Return type
Union
[int
,float
,None
]