Class ConfluentSchemaRegistry
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.eventsources.ConfluentSchemaRegistry
- All Implemented Interfaces:
ISchemaRegistry,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:55.016Z")
@Stability(Stable)
public class ConfluentSchemaRegistry
extends software.amazon.jsii.JsiiObject
implements ISchemaRegistry
Confluent schema registry configuration for a Lambda event source.
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 TypeClassDescriptionstatic final classA fluent builder forConfluentSchemaRegistry.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.ISchemaRegistry
ISchemaRegistry.Jsii$Default, ISchemaRegistry.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConfluentSchemaRegistry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedConfluentSchemaRegistry(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind(IEventSourceMapping _target, IFunction targetHandler) Returns a schema registry configuration.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ConfluentSchemaRegistry
protected ConfluentSchemaRegistry(software.amazon.jsii.JsiiObjectRef objRef) -
ConfluentSchemaRegistry
protected ConfluentSchemaRegistry(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ConfluentSchemaRegistry
- Parameters:
props- This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public KafkaSchemaRegistryConfig bind(@NotNull IEventSourceMapping _target, @NotNull IFunction targetHandler) Returns a schema registry configuration.- Specified by:
bindin interfaceISchemaRegistry- Parameters:
_target- This parameter is required.targetHandler- This parameter is required.
-