Class: AWSCDK::KafkaConnect::CfnConnector::ApacheKafkaClusterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KafkaConnect::CfnConnector::ApacheKafkaClusterProperty
- Defined in:
- kafka_connect/cfn_connector.rb
Overview
The details of the Apache Kafka cluster to which the connector is connected.
Instance Attribute Summary collapse
-
#bootstrap_servers ⇒ String
readonly
The bootstrap servers of the cluster.
-
#vpc ⇒ AWSCDK::IResolvable, AWSCDK::KafkaConnect::CfnConnector::VPCProperty
readonly
Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bootstrap_servers:, vpc:) ⇒ ApacheKafkaClusterProperty
constructor
A new instance of ApacheKafkaClusterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bootstrap_servers:, vpc:) ⇒ ApacheKafkaClusterProperty
Returns a new instance of ApacheKafkaClusterProperty.
693 694 695 696 697 698 |
# File 'kafka_connect/cfn_connector.rb', line 693 def initialize(bootstrap_servers:, vpc:) @bootstrap_servers = bootstrap_servers Jsii::Type.check_type(@bootstrap_servers, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bootstrapServers") @vpc = vpc.is_a?(Hash) ? ::AWSCDK::KafkaConnect::CfnConnector::VPCProperty.new(**vpc.transform_keys(&:to_sym)) : vpc Jsii::Type.check_type(@vpc, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19rYWZrYWNvbm5lY3QuQ2ZuQ29ubmVjdG9yLlZwY1Byb3BlcnR5In1dfX0=")), "vpc") end |
Instance Attribute Details
#bootstrap_servers ⇒ String (readonly)
The bootstrap servers of the cluster.
704 705 706 |
# File 'kafka_connect/cfn_connector.rb', line 704 def bootstrap_servers @bootstrap_servers end |
#vpc ⇒ AWSCDK::IResolvable, AWSCDK::KafkaConnect::CfnConnector::VPCProperty (readonly)
Details of an Amazon VPC which has network connectivity to the Apache Kafka cluster.
709 710 711 |
# File 'kafka_connect/cfn_connector.rb', line 709 def vpc @vpc end |
Class Method Details
.jsii_properties ⇒ Object
711 712 713 714 715 716 |
# File 'kafka_connect/cfn_connector.rb', line 711 def self.jsii_properties { :bootstrap_servers => "bootstrapServers", :vpc => "vpc", } end |
Instance Method Details
#to_jsii ⇒ Object
718 719 720 721 722 723 724 725 |
# File 'kafka_connect/cfn_connector.rb', line 718 def to_jsii result = {} result.merge!({ "bootstrapServers" => @bootstrap_servers, "vpc" => @vpc, }) result.compact end |