Class: AWSCDK::LambdaEventSources::GlueSchemaRegistry

Inherits:
Jsii::Object
  • Object
show all
Includes:
AWSCDK::Lambda::ISchemaRegistry
Defined in:
lambda_event_sources/glue_schema_registry.rb

Overview

Glue schema registry configuration for a Lambda event source.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ GlueSchemaRegistry

Returns a new instance of GlueSchemaRegistry.



10
11
12
13
14
# File 'lambda_event_sources/glue_schema_registry.rb', line 10

def initialize(props)
  props = props.is_a?(Hash) ? ::AWSCDK::LambdaEventSources::GlueSchemaRegistryProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhX2V2ZW50X3NvdXJjZXMuR2x1ZVNjaGVtYVJlZ2lzdHJ5UHJvcHMifQ==")), "props")
  Jsii::Object.instance_method(:initialize).bind(self).call(props)
end

Class Method Details

.jsii_overridable_methodsObject



16
17
18
19
20
# File 'lambda_event_sources/glue_schema_registry.rb', line 16

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(_target, target_handler) ⇒ AWSCDK::Lambda::KafkaSchemaRegistryConfig

Returns a schema registry configuration.



27
28
29
30
31
# File 'lambda_event_sources/glue_schema_registry.rb', line 27

def bind(_target, target_handler)
  Jsii::Type.check_type(_target, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLklFdmVudFNvdXJjZU1hcHBpbmcifQ==")), "_target")
  Jsii::Type.check_type(target_handler, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLklGdW5jdGlvbiJ9")), "targetHandler")
  jsii_call_method("bind", [_target, target_handler])
end