aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
36 lines (35 loc) • 1.24 kB
TypeScript
import { IEventSourceMapping, IFunction } from '../../aws-lambda/lib';
import { ISchemaRegistry, KafkaSchemaRegistryAccessConfigType, KafkaSchemaRegistryConfig, SchemaRegistryProps } from '../../aws-lambda/lib/schema-registry';
import { ISecret } from '../../aws-secretsmanager';
/**
* Properties for confluent schema registry configuration.
*/
export interface ConfluentSchemaRegistryProps extends SchemaRegistryProps {
/**
* The URI for your schema registry.
*
* @default - none
*/
readonly schemaRegistryUri: string;
/**
* The type of authentication for schema registry credentials.
* @default none
*/
readonly authenticationType: KafkaSchemaRegistryAccessConfigType;
/**
* The secret with the schema registry credentials.
* @default none
*/
readonly secret: ISecret;
}
/**
* Confluent schema registry configuration for a Lambda event source.
*/
export declare class ConfluentSchemaRegistry implements ISchemaRegistry {
private readonly props;
constructor(props: ConfluentSchemaRegistryProps);
/**
* Returns a schema registry configuration.
*/
bind(_target: IEventSourceMapping, targetHandler: IFunction): KafkaSchemaRegistryConfig;
}