Class: AWSCDK::MSK::CfnCluster::EncryptionInTransitProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
msk/cfn_cluster.rb

Overview

The settings for encrypting data in transit.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_broker: nil, in_cluster: nil) ⇒ EncryptionInTransitProperty

Returns a new instance of EncryptionInTransitProperty.

Parameters:

  • client_broker (String, nil) (defaults to: nil)

    Indicates the encryption setting for data in transit between clients and brokers.

  • in_cluster (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted.



1140
1141
1142
1143
1144
1145
# File 'msk/cfn_cluster.rb', line 1140

def initialize(client_broker: nil, in_cluster: nil)
  @client_broker = client_broker
  Jsii::Type.check_type(@client_broker, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientBroker") unless @client_broker.nil?
  @in_cluster = in_cluster
  Jsii::Type.check_type(@in_cluster, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "inCluster") unless @in_cluster.nil?
end

Instance Attribute Details

#client_brokerString? (readonly)

Indicates the encryption setting for data in transit between clients and brokers.

You must set it to one of the following values.

  • TLS : Indicates that client-broker communication is enabled with TLS only.
  • TLS_PLAINTEXT : Indicates that client-broker communication is enabled for both TLS-encrypted, as well as plaintext data.
  • PLAINTEXT : Indicates that client-broker communication is enabled in plaintext only.

The default value is TLS .



1159
1160
1161
# File 'msk/cfn_cluster.rb', line 1159

def client_broker
  @client_broker
end

#in_clusterBoolean, ... (readonly)

When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted.

When set to false, the communication happens in plaintext.

The default value is true.



1168
1169
1170
# File 'msk/cfn_cluster.rb', line 1168

def in_cluster
  @in_cluster
end

Class Method Details

.jsii_propertiesObject



1170
1171
1172
1173
1174
1175
# File 'msk/cfn_cluster.rb', line 1170

def self.jsii_properties
  {
    :client_broker => "clientBroker",
    :in_cluster => "inCluster",
  }
end

Instance Method Details

#to_jsiiObject



1177
1178
1179
1180
1181
1182
1183
1184
# File 'msk/cfn_cluster.rb', line 1177

def to_jsii
  result = {}
  result.merge!({
    "clientBroker" => @client_broker,
    "inCluster" => @in_cluster,
  })
  result.compact
end