"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfluentSchemaRegistry=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class ConfluentSchemaRegistry{props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda_event_sources.ConfluentSchemaRegistry",version:"2.256.1"};constructor(props){this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_event_sources_ConfluentSchemaRegistryProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,ConfluentSchemaRegistry),error}}bind(_target,targetHandler){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_IEventSourceMapping(_target),jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_IFunction(targetHandler)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return this.props.secret.grantRead(targetHandler),{schemaRegistryUri:this.props.schemaRegistryUri,eventRecordFormat:this.props.eventRecordFormat,accessConfigs:[{type:this.props.authenticationType,uri:this.props.secret.secretArn}],schemaValidationConfigs:this.props.schemaValidationConfigs}}}exports.ConfluentSchemaRegistry=ConfluentSchemaRegistry;
