Interface CfnRegistryProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRegistryProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-08-06T18:14:38.247Z")
@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 class
A builder forCfnRegistryProps
static final class
An implementation forCfnRegistryProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRegistryProps.Builder
builder()
default String
A 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.Builder
ofCfnRegistryProps
-