Interface CfnVirtualNode.ListenerTlsProperty

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

@Stability(Stable) public static interface CfnVirtualNode.ListenerTlsProperty extends software.amazon.jsii.JsiiSerializable
An object that represents the Transport Layer Security (TLS) properties for a listener.

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.*;
 ListenerTlsProperty listenerTlsProperty = 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();
 
  • Method Details

    • getCertificate

      @Stability(Stable) @NotNull Object getCertificate()
      A reference to an object that represents a listener's Transport Layer Security (TLS) certificate.
    • getMode

      @Stability(Stable) @NotNull String getMode()
      Specify one of the following modes.

      • ** STRICT – Listener only accepts connections with TLS enabled.
      • ** PERMISSIVE – Listener accepts connections with or without TLS enabled.
      • ** DISABLED – Listener only accepts connections without TLS.
    • getValidation

      @Stability(Stable) @Nullable default Object getValidation()
      A reference to an object that represents a listener's Transport Layer Security (TLS) validation context.
    • builder

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