Interface CfnRegistryProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRegistryProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:53.235Z")
@Stability(Stable)
public interface CfnRegistryProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnRegistry.
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());
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRegistryPropsstatic final classAn implementation forCfnRegistryProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRegistryProps.Builderbuilder()default StringA description of the registry.getName()The name of the registry.getTags()AWS tags that contain a key value pair and may be searched by console, command line, or API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the registry.- See Also:
-
getDescription
A description of the registry.- See Also:
-
getTags
AWS tags that contain a key value pair and may be searched by console, command line, or API.- See Also:
-
builder
- Returns:
- a
CfnRegistryProps.BuilderofCfnRegistryProps
-