NetworkListenerProps
- class aws_cdk.aws_ecs_patterns.NetworkListenerProps(*, name, port=None)
Bases:
object
Properties to define an network listener.
- Parameters:
name (
str
) – Name of the listener.port (
Union
[int
,float
,None
]) – The port on which the listener listens for requests. Default: 80
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ecs_patterns as ecs_patterns network_listener_props = ecs_patterns.NetworkListenerProps( name="name", # the properties below are optional port=123 )
Attributes
- name
Name of the listener.
- port
The port on which the listener listens for requests.
- Default:
80