36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import type { IEventSourceMapping, IFunction } from '../../aws-lambda/lib';
|
|
import type { ISchemaRegistry, KafkaSchemaRegistryAccessConfigType, KafkaSchemaRegistryConfig, SchemaRegistryProps } from '../../aws-lambda/lib/schema-registry';
|
|
import type { 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;
|
|
}
|