Enum ClientBrokerEncryption

java.lang.Object
java.lang.Enum<ClientBrokerEncryption>
software.amazon.awscdk.services.msk.alpha.ClientBrokerEncryption
All Implemented Interfaces:
Serializable, Comparable<ClientBrokerEncryption>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:15.905Z") @Stability(Experimental) public enum ClientBrokerEncryption extends Enum<ClientBrokerEncryption>
(experimental) Indicates the encryption setting for data in transit between clients and brokers.

Example:

 import software.amazon.awscdk.services.acmpca.*;
 Vpc vpc;
 Cluster cluster = Cluster.Builder.create(this, "Cluster")
         .clusterName("myCluster")
         .kafkaVersion(KafkaVersion.V2_8_1)
         .vpc(vpc)
         .encryptionInTransit(EncryptionInTransitConfig.builder()
                 .clientBroker(ClientBrokerEncryption.TLS)
                 .build())
         .clientAuthentication(ClientAuthentication.tls(TlsAuthProps.builder()
                 .certificateAuthorities(List.of(CertificateAuthority.fromCertificateAuthorityArn(this, "CertificateAuthority", "arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111")))
                 .build()))
         .build();
 
  • Enum Constant Details

    • TLS

      @Stability(Experimental) public static final ClientBrokerEncryption TLS
      (experimental) TLS means that client-broker communication is enabled with TLS only.
    • TLS_PLAINTEXT

      @Stability(Experimental) public static final ClientBrokerEncryption TLS_PLAINTEXT
      (experimental) TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext data.
    • PLAINTEXT

      @Stability(Experimental) public static final ClientBrokerEncryption PLAINTEXT
      (experimental) PLAINTEXT means that client-broker communication is enabled in plaintext only.
  • Method Details

    • values

      public static ClientBrokerEncryption[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ClientBrokerEncryption valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null