Class: AWSCDK::MSK::CfnReplicator::ApacheKafkaClusterProperty

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

Overview

Details of an Apache Kafka cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(apache_kafka_cluster_id:, bootstrap_broker_string:) ⇒ ApacheKafkaClusterProperty

Returns a new instance of ApacheKafkaClusterProperty.

Parameters:

  • apache_kafka_cluster_id (String)

    The ID of the Apache Kafka cluster.

  • bootstrap_broker_string (String)

    The bootstrap broker string of the Apache Kafka cluster.



638
639
640
641
642
643
# File 'msk/cfn_replicator.rb', line 638

def initialize(apache_kafka_cluster_id:, bootstrap_broker_string:)
  @apache_kafka_cluster_id = apache_kafka_cluster_id
  Jsii::Type.check_type(@apache_kafka_cluster_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apacheKafkaClusterId")
  @bootstrap_broker_string = bootstrap_broker_string
  Jsii::Type.check_type(@bootstrap_broker_string, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bootstrapBrokerString")
end

Instance Attribute Details

#apache_kafka_cluster_idString (readonly)

The ID of the Apache Kafka cluster.



649
650
651
# File 'msk/cfn_replicator.rb', line 649

def apache_kafka_cluster_id
  @apache_kafka_cluster_id
end

#bootstrap_broker_stringString (readonly)

The bootstrap broker string of the Apache Kafka cluster.



654
655
656
# File 'msk/cfn_replicator.rb', line 654

def bootstrap_broker_string
  @bootstrap_broker_string
end

Class Method Details

.jsii_propertiesObject



656
657
658
659
660
661
# File 'msk/cfn_replicator.rb', line 656

def self.jsii_properties
  {
    :apache_kafka_cluster_id => "apacheKafkaClusterId",
    :bootstrap_broker_string => "bootstrapBrokerString",
  }
end

Instance Method Details

#to_jsiiObject



663
664
665
666
667
668
669
670
# File 'msk/cfn_replicator.rb', line 663

def to_jsii
  result = {}
  result.merge!({
    "apacheKafkaClusterId" => @apache_kafka_cluster_id,
    "bootstrapBrokerString" => @bootstrap_broker_string,
  })
  result.compact
end