Class: AWSCDK::Lambda::CfnEventSourceMapping::SelfManagedEventSourceProperty

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

Overview

The self-managed Apache Kafka cluster for your event source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoints: nil) ⇒ SelfManagedEventSourceProperty

Returns a new instance of SelfManagedEventSourceProperty.

Parameters:



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

#endpointsAWSCDK::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_propertiesObject



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_jsiiObject



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