class Amazonite::Lambda::KafkaSchemaRegistryConfig

Overview

Specific configuration settings for a Kafka schema registry.

Included Modules

Defined in:

lambda/kafka_schema_registry_config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(schema_registry_uri : String | Nil = nil, event_record_format : SchemaRegistryEventRecordFormat | Nil = nil, access_configs : Array(KafkaSchemaRegistryAccessConfig) | Nil = nil, schema_validation_configs : Array(KafkaSchemaValidationConfig) | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def access_configs : Array(KafkaSchemaRegistryAccessConfig) | Nil #

An array of access configuration objects that tell Lambda how to authenticate with your schema registry.


[View source]
def access_configs=(access_configs : Array(KafkaSchemaRegistryAccessConfig) | Nil) #

An array of access configuration objects that tell Lambda how to authenticate with your schema registry.


[View source]
def event_record_format : SchemaRegistryEventRecordFormat | Nil #

The record format that Lambda delivers to your function after schema validation.

  • Choose JSON to have Lambda deliver the record to your function as a standard JSON object.

  • Choose SOURCE to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function.


[View source]
def event_record_format=(event_record_format : SchemaRegistryEventRecordFormat | Nil) #

The record format that Lambda delivers to your function after schema validation.

  • Choose JSON to have Lambda deliver the record to your function as a standard JSON object.

  • Choose SOURCE to have Lambda deliver the record to your function in its original source format. Lambda removes all schema metadata, such as the schema ID, before sending the record to your function.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def schema_registry_uri : String | Nil #

The URI for your schema registry. The correct URI format depends on the type of schema registry you're using.

  • For Glue schema registries, use the ARN of the registry.

  • For Confluent schema registries, use the URL of the registry.


[View source]
def schema_registry_uri=(schema_registry_uri : String | Nil) #

The URI for your schema registry. The correct URI format depends on the type of schema registry you're using.

  • For Glue schema registries, use the ARN of the registry.

  • For Confluent schema registries, use the URL of the registry.


[View source]
def schema_validation_configs : Array(KafkaSchemaValidationConfig) | Nil #

An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry.


[View source]
def schema_validation_configs=(schema_validation_configs : Array(KafkaSchemaValidationConfig) | Nil) #

An array of schema validation configuration objects, which tell Lambda the message attributes you want to validate and filter using your schema registry.


[View source]
def validate! : Nil #

[View source]