Class: AWSCDK::Lambda::CfnEventSourceMapping::EndpointsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/cfn_event_source_mapping.rb

Overview

The list of bootstrap servers for your Kafka brokers in the following format: "KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"] .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kafka_bootstrap_servers: nil) ⇒ EndpointsProperty

Returns a new instance of EndpointsProperty.

Parameters:

  • kafka_bootstrap_servers (Array<String>, nil) (defaults to: nil)

    The list of bootstrap servers for your Kafka brokers in the following format: "KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"] .



1039
1040
1041
1042
# File 'lambda/cfn_event_source_mapping.rb', line 1039

def initialize(kafka_bootstrap_servers: nil)
  @kafka_bootstrap_servers = kafka_bootstrap_servers
  Jsii::Type.check_type(@kafka_bootstrap_servers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "kafkaBootstrapServers") unless @kafka_bootstrap_servers.nil?
end

Instance Attribute Details

#kafka_bootstrap_serversArray<String>? (readonly)

The list of bootstrap servers for your Kafka brokers in the following format: "KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"] .



1048
1049
1050
# File 'lambda/cfn_event_source_mapping.rb', line 1048

def kafka_bootstrap_servers
  @kafka_bootstrap_servers
end

Class Method Details

.jsii_propertiesObject



1050
1051
1052
1053
1054
# File 'lambda/cfn_event_source_mapping.rb', line 1050

def self.jsii_properties
  {
    :kafka_bootstrap_servers => "kafkaBootstrapServers",
  }
end

Instance Method Details

#to_jsiiObject



1056
1057
1058
1059
1060
1061
1062
# File 'lambda/cfn_event_source_mapping.rb', line 1056

def to_jsii
  result = {}
  result.merge!({
    "kafkaBootstrapServers" => @kafka_bootstrap_servers,
  })
  result.compact
end