Http2VirtualNodeListenerOptions

class aws_cdk.aws_appmesh.Http2VirtualNodeListenerOptions(*, connection_pool=None, health_check=None, outlier_detection=None, port=None, timeout=None, tls=None)

Bases: object

Represent the HTTP2 Node Listener property.

Parameters:
  • connection_pool (Union[Http2ConnectionPool, Dict[str, Any], None]) – Connection pool for http2 listeners. Default: - None

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

  • outlier_detection (Union[OutlierDetection, Dict[str, Any], None]) – Represents the configuration for enabling outlier detection. Default: - none

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

  • timeout (Union[HttpTimeout, Dict[str, Any], None]) – Timeout for HTTP protocol. Default: - None

  • tls (Union[ListenerTlsOptions, Dict[str, Any], None]) – Represents the configuration for enabling TLS on a listener. Default: - none

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 as cdk
from aws_cdk import aws_appmesh as appmesh

# health_check: appmesh.HealthCheck
# mutual_tls_validation_trust: appmesh.MutualTlsValidationTrust
# subject_alternative_names: appmesh.SubjectAlternativeNames
# tls_certificate: appmesh.TlsCertificate

http2_virtual_node_listener_options = appmesh.Http2VirtualNodeListenerOptions(
    connection_pool=appmesh.Http2ConnectionPool(
        max_requests=123
    ),
    health_check=health_check,
    outlier_detection=appmesh.OutlierDetection(
        base_ejection_duration=cdk.Duration.minutes(30),
        interval=cdk.Duration.minutes(30),
        max_ejection_percent=123,
        max_server_errors=123
    ),
    port=123,
    timeout=appmesh.HttpTimeout(
        idle=cdk.Duration.minutes(30),
        per_request=cdk.Duration.minutes(30)
    ),
    tls=appmesh.ListenerTlsOptions(
        certificate=tls_certificate,
        mode=appmesh.TlsMode.STRICT,

        # the properties below are optional
        mutual_tls_validation=appmesh.MutualTlsValidation(
            trust=mutual_tls_validation_trust,

            # the properties below are optional
            subject_alternative_names=subject_alternative_names
        )
    )
)

Attributes

connection_pool

Connection pool for http2 listeners.

Default:
  • None

health_check

The health check information for the listener.

Default:
  • no healthcheck

outlier_detection

Represents the configuration for enabling outlier detection.

Default:
  • none

port

Port to listen for connections on.

Default:
  • 8080

timeout

Timeout for HTTP protocol.

Default:
  • None

tls

Represents the configuration for enabling TLS on a listener.

Default:
  • none