VirtualRouterListener

class aws_cdk.aws_appmesh.VirtualRouterListener

Bases: object

Represents the properties needed to define listeners for a VirtualRouter.

ExampleMetadata:

infused

Example:

# mesh: appmesh.Mesh

router = mesh.add_virtual_router("router",
    listeners=[appmesh.VirtualRouterListener.http(8080)]
)

Methods

abstract bind(scope)

Called when the VirtualRouterListener type is initialized.

Can be used to enforce mutual exclusivity

Parameters:

scope (Construct) –

Return type:

VirtualRouterListenerConfig

Static Methods

classmethod grpc(port=None)

Returns a GRPC Listener for a VirtualRouter.

Parameters:

port (Union[int, float, None]) – the optional port of the listener, 8080 by default.

Return type:

VirtualRouterListener

classmethod http(port=None)

Returns an HTTP Listener for a VirtualRouter.

Parameters:

port (Union[int, float, None]) – the optional port of the listener, 8080 by default.

Return type:

VirtualRouterListener

classmethod http2(port=None)

Returns an HTTP2 Listener for a VirtualRouter.

Parameters:

port (Union[int, float, None]) – the optional port of the listener, 8080 by default.

Return type:

VirtualRouterListener

classmethod tcp(port=None)

Returns a TCP Listener for a VirtualRouter.

Parameters:

port (Union[int, float, None]) – the optional port of the listener, 8080 by default.

Return type:

VirtualRouterListener