Class: AWSCDK::Lambda::CfnEventSourceMapping::SelfManagedEventSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnEventSourceMapping::SelfManagedEventSourceProperty
- Defined in:
- lambda/cfn_event_source_mapping.rb
Overview
The self-managed Apache Kafka cluster for your event source.
Instance Attribute Summary collapse
-
#endpoints ⇒ AWSCDK::IResolvable, ...
readonly
The list of bootstrap servers for your Kafka brokers in the following format:
"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(endpoints: nil) ⇒ SelfManagedEventSourceProperty
constructor
A new instance of SelfManagedEventSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(endpoints: nil) ⇒ SelfManagedEventSourceProperty
Returns a new instance of SelfManagedEventSourceProperty.
1498 1499 1500 1501 |
# File 'lambda/cfn_event_source_mapping.rb', line 1498 def initialize(endpoints: nil) @endpoints = endpoints.is_a?(Hash) ? ::AWSCDK::Lambda::CfnEventSourceMapping::EndpointsProperty.new(**endpoints.transform_keys(&:to_sym)) : endpoints Jsii::Type.check_type(@endpoints, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYW1iZGEuQ2ZuRXZlbnRTb3VyY2VNYXBwaW5nLkVuZHBvaW50c1Byb3BlcnR5In1dfX0=")), "endpoints") unless @endpoints.nil? end |
Instance Attribute Details
#endpoints ⇒ AWSCDK::IResolvable, ... (readonly)
The list of bootstrap servers for your Kafka brokers in the following format: "KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"] .
1507 1508 1509 |
# File 'lambda/cfn_event_source_mapping.rb', line 1507 def endpoints @endpoints end |
Class Method Details
.jsii_properties ⇒ Object
1509 1510 1511 1512 1513 |
# File 'lambda/cfn_event_source_mapping.rb', line 1509 def self.jsii_properties { :endpoints => "endpoints", } end |
Instance Method Details
#to_jsii ⇒ Object
1515 1516 1517 1518 1519 1520 1521 |
# File 'lambda/cfn_event_source_mapping.rb', line 1515 def to_jsii result = {} result.merge!({ "endpoints" => @endpoints, }) result.compact end |