Interface CfnVirtualNode.ListenerProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnVirtualNode.ListenerProperty.Jsii$Proxy
Enclosing class:
CfnVirtualNode

@Stability(Stable) public static interface CfnVirtualNode.ListenerProperty extends software.amazon.jsii.JsiiSerializable
An object that represents a listener for a virtual node.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.appmesh.*;
 ListenerProperty listenerProperty = ListenerProperty.builder()
         .portMapping(PortMappingProperty.builder()
                 .port(123)
                 .protocol("protocol")
                 .build())
         // the properties below are optional
         .connectionPool(VirtualNodeConnectionPoolProperty.builder()
                 .grpc(VirtualNodeGrpcConnectionPoolProperty.builder()
                         .maxRequests(123)
                         .build())
                 .http(VirtualNodeHttpConnectionPoolProperty.builder()
                         .maxConnections(123)
                         // the properties below are optional
                         .maxPendingRequests(123)
                         .build())
                 .http2(VirtualNodeHttp2ConnectionPoolProperty.builder()
                         .maxRequests(123)
                         .build())
                 .tcp(VirtualNodeTcpConnectionPoolProperty.builder()
                         .maxConnections(123)
                         .build())
                 .build())
         .healthCheck(HealthCheckProperty.builder()
                 .healthyThreshold(123)
                 .intervalMillis(123)
                 .protocol("protocol")
                 .timeoutMillis(123)
                 .unhealthyThreshold(123)
                 // the properties below are optional
                 .path("path")
                 .port(123)
                 .build())
         .outlierDetection(OutlierDetectionProperty.builder()
                 .baseEjectionDuration(DurationProperty.builder()
                         .unit("unit")
                         .value(123)
                         .build())
                 .interval(DurationProperty.builder()
                         .unit("unit")
                         .value(123)
                         .build())
                 .maxEjectionPercent(123)
                 .maxServerErrors(123)
                 .build())
         .timeout(ListenerTimeoutProperty.builder()
                 .grpc(GrpcTimeoutProperty.builder()
                         .idle(DurationProperty.builder()
                                 .unit("unit")
                                 .value(123)
                                 .build())
                         .perRequest(DurationProperty.builder()
                                 .unit("unit")
                                 .value(123)
                                 .build())
                         .build())
                 .http(HttpTimeoutProperty.builder()
                         .idle(DurationProperty.builder()
                                 .unit("unit")
                                 .value(123)
                                 .build())
                         .perRequest(DurationProperty.builder()
                                 .unit("unit")
                                 .value(123)
                                 .build())
                         .build())
                 .http2(HttpTimeoutProperty.builder()
                         .idle(DurationProperty.builder()
                                 .unit("unit")
                                 .value(123)
                                 .build())
                         .perRequest(DurationProperty.builder()
                                 .unit("unit")
                                 .value(123)
                                 .build())
                         .build())
                 .tcp(TcpTimeoutProperty.builder()
                         .idle(DurationProperty.builder()
                                 .unit("unit")
                                 .value(123)
                                 .build())
                         .build())
                 .build())
         .tls(ListenerTlsProperty.builder()
                 .certificate(ListenerTlsCertificateProperty.builder()
                         .acm(ListenerTlsAcmCertificateProperty.builder()
                                 .certificateArn("certificateArn")
                                 .build())
                         .file(ListenerTlsFileCertificateProperty.builder()
                                 .certificateChain("certificateChain")
                                 .privateKey("privateKey")
                                 .build())
                         .sds(ListenerTlsSdsCertificateProperty.builder()
                                 .secretName("secretName")
                                 .build())
                         .build())
                 .mode("mode")
                 // the properties below are optional
                 .validation(ListenerTlsValidationContextProperty.builder()
                         .trust(ListenerTlsValidationContextTrustProperty.builder()
                                 .file(TlsValidationContextFileTrustProperty.builder()
                                         .certificateChain("certificateChain")
                                         .build())
                                 .sds(TlsValidationContextSdsTrustProperty.builder()
                                         .secretName("secretName")
                                         .build())
                                 .build())
                         // the properties below are optional
                         .subjectAlternativeNames(SubjectAlternativeNamesProperty.builder()
                                 .match(SubjectAlternativeNameMatchersProperty.builder()
                                         .exact(List.of("exact"))
                                         .build())
                                 .build())
                         .build())
                 .build())
         .build();
 
  • Method Details

    • getPortMapping

      @Stability(Stable) @NotNull Object getPortMapping()
      The port mapping information for the listener.
    • getConnectionPool

      @Stability(Stable) @Nullable default Object getConnectionPool()
      The connection pool information for the listener.
    • getHealthCheck

      @Stability(Stable) @Nullable default Object getHealthCheck()
      The health check information for the listener.
    • getOutlierDetection

      @Stability(Stable) @Nullable default Object getOutlierDetection()
      The outlier detection information for the listener.
    • getTimeout

      @Stability(Stable) @Nullable default Object getTimeout()
      An object that represents timeouts for different protocols.
    • getTls

      @Stability(Stable) @Nullable default Object getTls()
      A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.
    • builder

      @Stability(Stable) static CfnVirtualNode.ListenerProperty.Builder builder()
      Returns:
      a CfnVirtualNode.ListenerProperty.Builder of CfnVirtualNode.ListenerProperty