Interface ConfluentSchemaRegistryProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,SchemaRegistryProps
- All Known Implementing Classes:
ConfluentSchemaRegistryProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:41.349Z")
@Stability(Stable)
public interface ConfluentSchemaRegistryProps
extends software.amazon.jsii.JsiiSerializable, SchemaRegistryProps
Properties for confluent schema registry configuration.
Example:
import software.amazon.awscdk.services.lambda.eventsources.ManagedKafkaEventSource;
import software.amazon.awscdk.services.lambda.eventsources.ConfluentSchemaRegistry;
import software.amazon.awscdk.services.secretsmanager.Secret;
// Your MSK cluster arn
String clusterArn;
Function myFunction;
// The Kafka topic you want to subscribe to
String topic = "some-cool-topic";
Secret secret = Secret.Builder.create(this, "Secret").secretName("AmazonMSK_KafkaSecret").build();
myFunction.addEventSource(ManagedKafkaEventSource.Builder.create()
.clusterArn(clusterArn)
.topic(topic)
.startingPosition(StartingPosition.TRIM_HORIZON)
.provisionedPollerConfig(ProvisionedPollerConfig.builder()
.minimumPollers(1)
.maximumPollers(3)
.build())
.schemaRegistryConfig(ConfluentSchemaRegistry.Builder.create()
.schemaRegistryUri("https://example.com")
.eventRecordFormat(EventRecordFormat.JSON)
.authenticationType(KafkaSchemaRegistryAccessConfigType.BASIC_AUTH)
.secret(secret)
.schemaValidationConfigs(List.of(KafkaSchemaValidationConfig.builder().attribute(KafkaSchemaValidationAttribute.KEY).build()))
.build())
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forConfluentSchemaRegistryPropsstatic final classAn implementation forConfluentSchemaRegistryProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The type of authentication for schema registry credentials.The URI for your schema registry.The secret with the schema registry credentials.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.lambda.SchemaRegistryProps
getEventRecordFormat, getSchemaValidationConfigs
-
Method Details
-
getAuthenticationType
The type of authentication for schema registry credentials.Default: none
-
getSchemaRegistryUri
The URI for your schema registry.Default: - none
-
getSecret
The secret with the schema registry credentials.Default: none
-
builder
-