Interface GlueSchemaRegistryProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,SchemaRegistryProps
- All Known Implementing Classes:
GlueSchemaRegistryProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:08.934Z")
@Stability(Stable)
public interface GlueSchemaRegistryProps
extends software.amazon.jsii.JsiiSerializable, SchemaRegistryProps
Properties for glue schema registry configuration.
Example:
import software.amazon.awscdk.services.glue.CfnRegistry;
import software.amazon.awscdk.services.lambda.eventsources.ManagedKafkaEventSource;
import software.amazon.awscdk.services.lambda.eventsources.GlueSchemaRegistry;
// Your MSK cluster arn
String clusterArn;
Function myFunction;
// The Kafka topic you want to subscribe to
String topic = "some-cool-topic";
// Your Glue Schema Registry
CfnRegistry glueRegistry = CfnRegistry.Builder.create(this, "Registry")
.name("schema-registry")
.description("Schema registry for event source")
.build();
myFunction.addEventSource(ManagedKafkaEventSource.Builder.create()
.clusterArn(clusterArn)
.topic(topic)
.startingPosition(StartingPosition.TRIM_HORIZON)
.provisionedPollerConfig(ProvisionedPollerConfig.builder()
.minimumPollers(1)
.maximumPollers(3)
.build())
.schemaRegistryConfig(GlueSchemaRegistry.Builder.create()
.schemaRegistry(glueRegistry)
.eventRecordFormat(EventRecordFormat.JSON)
.schemaValidationConfigs(List.of(KafkaSchemaValidationConfig.builder().attribute(KafkaSchemaValidationAttribute.KEY).build()))
.build())
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGlueSchemaRegistryPropsstatic final classAn implementation forGlueSchemaRegistryProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default CfnRegistryThe CfnRegistry reference of your glue schema registry.default StringThe Arn of your glue schema registry.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.lambda.SchemaRegistryProps
getEventRecordFormat, getSchemaValidationConfigs
-
Method Details
-
getSchemaRegistry
The CfnRegistry reference of your glue schema registry.If used, schemaRegistryArn will be ignored.
Default: - none
-
getSchemaRegistryArn
The Arn of your glue schema registry.Default: - none
-
builder
- Returns:
- a
GlueSchemaRegistryProps.BuilderofGlueSchemaRegistryProps
-