Class: AWSCDK::MSK::CfnReplicator::KafkaClusterEncryptionInTransitProperty

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

Overview

Details of encryption in transit to the Apache Kafka cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encryption_type:, root_ca_certificate: nil) ⇒ KafkaClusterEncryptionInTransitProperty

Returns a new instance of KafkaClusterEncryptionInTransitProperty.

Parameters:

  • encryption_type (String)

    The type of encryption in transit to the Apache Kafka cluster.

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

    The root CA certificate.



928
929
930
931
932
933
# File 'msk/cfn_replicator.rb', line 928

def initialize(encryption_type:, root_ca_certificate: nil)
  @encryption_type = encryption_type
  Jsii::Type.check_type(@encryption_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionType")
  @root_ca_certificate = root_ca_certificate
  Jsii::Type.check_type(@root_ca_certificate, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "rootCaCertificate") unless @root_ca_certificate.nil?
end

Instance Attribute Details

#encryption_typeString (readonly)

The type of encryption in transit to the Apache Kafka cluster.



939
940
941
# File 'msk/cfn_replicator.rb', line 939

def encryption_type
  @encryption_type
end

#root_ca_certificateString? (readonly)

The root CA certificate.



944
945
946
# File 'msk/cfn_replicator.rb', line 944

def root_ca_certificate
  @root_ca_certificate
end

Class Method Details

.jsii_propertiesObject



946
947
948
949
950
951
# File 'msk/cfn_replicator.rb', line 946

def self.jsii_properties
  {
    :encryption_type => "encryptionType",
    :root_ca_certificate => "rootCaCertificate",
  }
end

Instance Method Details

#to_jsiiObject



953
954
955
956
957
958
959
960
# File 'msk/cfn_replicator.rb', line 953

def to_jsii
  result = {}
  result.merge!({
    "encryptionType" => @encryption_type,
    "rootCaCertificate" => @root_ca_certificate,
  })
  result.compact
end