VirtualNodeListener

class aws_cdk.aws_appmesh.VirtualNodeListener

Bases: object

Defines listener for a VirtualNode.

Methods

abstract bind(scope)

Binds the current object when adding Listener to a VirtualNode.

Parameters

scope (Construct) –

Return type

VirtualNodeListenerConfig

Static Methods

classmethod grpc(*, connection_pool=None, health_check=None, outlier_detection=None, port=None, timeout=None, tls=None)

Returns an GRPC Listener for a VirtualNode.

Parameters
  • connection_pool (Optional[GrpcConnectionPool]) – Connection pool for http listeners. Default: - None

  • health_check (Optional[HealthCheck]) – The health check information for the listener. Default: - no healthcheck

  • outlier_detection (Optional[OutlierDetection]) – Represents the configuration for enabling outlier detection. Default: - none

  • port (Union[int, float, None]) – Port to listen for connections on. Default: - 8080

  • timeout (Optional[GrpcTimeout]) – Timeout for GRPC protocol. Default: - None

  • tls (Optional[ListenerTlsOptions]) – Represents the configuration for enabling TLS on a listener. Default: - none

Return type

VirtualNodeListener

classmethod http(*, connection_pool=None, health_check=None, outlier_detection=None, port=None, timeout=None, tls=None)

Returns an HTTP Listener for a VirtualNode.

Parameters
  • connection_pool (Optional[HttpConnectionPool]) – Connection pool for http listeners. Default: - None

  • health_check (Optional[HealthCheck]) – The health check information for the listener. Default: - no healthcheck

  • outlier_detection (Optional[OutlierDetection]) – Represents the configuration for enabling outlier detection. Default: - none

  • port (Union[int, float, None]) – Port to listen for connections on. Default: - 8080

  • timeout (Optional[HttpTimeout]) – Timeout for HTTP protocol. Default: - None

  • tls (Optional[ListenerTlsOptions]) – Represents the configuration for enabling TLS on a listener. Default: - none

Return type

VirtualNodeListener

classmethod http2(*, connection_pool=None, health_check=None, outlier_detection=None, port=None, timeout=None, tls=None)

Returns an HTTP2 Listener for a VirtualNode.

Parameters
  • connection_pool (Optional[Http2ConnectionPool]) – Connection pool for http2 listeners. Default: - None

  • health_check (Optional[HealthCheck]) – The health check information for the listener. Default: - no healthcheck

  • outlier_detection (Optional[OutlierDetection]) – Represents the configuration for enabling outlier detection. Default: - none

  • port (Union[int, float, None]) – Port to listen for connections on. Default: - 8080

  • timeout (Optional[HttpTimeout]) – Timeout for HTTP protocol. Default: - None

  • tls (Optional[ListenerTlsOptions]) – Represents the configuration for enabling TLS on a listener. Default: - none

Return type

VirtualNodeListener

classmethod tcp(*, connection_pool=None, health_check=None, outlier_detection=None, port=None, timeout=None, tls=None)

Returns an TCP Listener for a VirtualNode.

Parameters
  • connection_pool (Optional[TcpConnectionPool]) – Connection pool for http listeners. Default: - None

  • health_check (Optional[HealthCheck]) – The health check information for the listener. Default: - no healthcheck

  • outlier_detection (Optional[OutlierDetection]) – Represents the configuration for enabling outlier detection. Default: - none

  • port (Union[int, float, None]) – Port to listen for connections on. Default: - 8080

  • timeout (Optional[TcpTimeout]) – Timeout for TCP protocol. Default: - None

  • tls (Optional[ListenerTlsOptions]) – Represents the configuration for enabling TLS on a listener. Default: - none

Return type

VirtualNodeListener