aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 217 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnCapacityProvider=exports.CfnVersion=exports.CfnUrl=exports.CfnPermission=exports.CfnLayerVersionPermission=exports.CfnLayerVersion=exports.CfnFunction=exports.CfnEventSourceMapping=exports.CfnEventInvokeConfig=exports.CfnCodeSigningConfig=exports.CfnAlias=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnAlias extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnAlias",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::Alias";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAliasPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnAlias(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnAlias(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAlias.CFN_RESOURCE_TYPE_NAME}static arnForAlias(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_lambda_IAliasRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForAlias),error}return resource.aliasRef.aliasArn}_description;_functionName;_functionVersion;_name;_provisionedConcurrencyConfig;_routingConfig;constructor(scope,id,props){super(scope,id,{type:CfnAlias.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnAliasProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAlias),error}cdk().requireProperty(props,"functionName",this),cdk().requireProperty(props,"functionVersion",this),cdk().requireProperty(props,"name",this),this._description=props.description,this._functionName=cdk().getRefProperty(props.functionName?.functionRef,"functionName")??cdk().ensureStringOrUndefined(props.functionName,"functionName","lambda.IFunctionRef | string"),this._functionVersion=props.functionVersion,this._name=props.name,this._provisionedConcurrencyConfig=props.provisionedConcurrencyConfig,this._routingConfig=props.routingConfig}get aliasRef(){return{aliasArn:this.ref}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get functionName(){return this._functionName}set functionName(value){cdk().traceProperty(this.node,"FunctionName"),this._functionName=value}get functionVersion(){return this._functionVersion}set functionVersion(value){cdk().traceProperty(this.node,"FunctionVersion"),this._functionVersion=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get provisionedConcurrencyConfig(){return this._provisionedConcurrencyConfig}set provisionedConcurrencyConfig(value){cdk().traceProperty(this.node,"ProvisionedConcurrencyConfig"),this._provisionedConcurrencyConfig=value}get routingConfig(){return this._routingConfig}set routingConfig(value){cdk().traceProperty(this.node,"RoutingConfig"),this._routingConfig=value}get attrAliasArn(){return cdk().Token.asString(this.getAtt("AliasArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{description:this._description,functionName:this._functionName,functionVersion:this._functionVersion,name:this._name,provisionedConcurrencyConfig:this._provisionedConcurrencyConfig,routingConfig:this._routingConfig}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnAlias.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAliasPropsToCloudFormation(props)}}exports.CfnAlias=CfnAlias;function CfnAliasProvisionedConcurrencyConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("provisionedConcurrentExecutions",cdk().requiredValidator)(properties.provisionedConcurrentExecutions)),errors.collect(cdk().propertyValidator("provisionedConcurrentExecutions",cdk().validateNumber)(properties.provisionedConcurrentExecutions)),errors.wrap('supplied properties not correct for "ProvisionedConcurrencyConfigurationProperty"')}function convertCfnAliasProvisionedConcurrencyConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAliasProvisionedConcurrencyConfigurationPropertyValidator(properties).assertSuccess(),{ProvisionedConcurrentExecutions:cdk().numberToCloudFormation(properties.provisionedConcurrentExecutions)}):properties}function CfnAliasProvisionedConcurrencyConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("provisionedConcurrentExecutions","ProvisionedConcurrentExecutions",properties.ProvisionedConcurrentExecutions!=null?cfn_parse().FromCloudFormation.getNumber(properties.ProvisionedConcurrentExecutions):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAliasVersionWeightPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("functionVersion",cdk().requiredValidator)(properties.functionVersion)),errors.collect(cdk().propertyValidator("functionVersion",cdk().validateString)(properties.functionVersion)),errors.collect(cdk().propertyValidator("functionWeight",cdk().requiredValidator)(properties.functionWeight)),errors.collect(cdk().propertyValidator("functionWeight",cdk().validateNumber)(properties.functionWeight)),errors.wrap('supplied properties not correct for "VersionWeightProperty"')}function convertCfnAliasVersionWeightPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAliasVersionWeightPropertyValidator(properties).assertSuccess(),{FunctionVersion:cdk().stringToCloudFormation(properties.functionVersion),FunctionWeight:cdk().numberToCloudFormation(properties.functionWeight)}):properties}function CfnAliasVersionWeightPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("functionVersion","FunctionVersion",properties.FunctionVersion!=null?cfn_parse().FromCloudFormation.getString(properties.FunctionVersion):void 0),ret.addPropertyResult("functionWeight","FunctionWeight",properties.FunctionWeight!=null?cfn_parse().FromCloudFormation.getNumber(properties.FunctionWeight):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAliasAliasRoutingConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("additionalVersionWeights",cdk().listValidator(CfnAliasVersionWeightPropertyValidator))(properties.additionalVersionWeights)),errors.wrap('supplied properties not correct for "AliasRoutingConfigurationProperty"')}function convertCfnAliasAliasRoutingConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAliasAliasRoutingConfigurationPropertyValidator(properties).assertSuccess(),{AdditionalVersionWeights:cdk().listMapper(convertCfnAliasVersionWeightPropertyToCloudFormation)(properties.additionalVersionWeights)}):properties}function CfnAliasAliasRoutingConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("additionalVersionWeights","AdditionalVersionWeights",properties.AdditionalVersionWeights!=null?cfn_parse().FromCloudFormation.getArray(CfnAliasVersionWeightPropertyFromCloudFormation)(properties.AdditionalVersionWeights):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnAliasPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("functionName",cdk().requiredValidator)(properties.functionName)),errors.collect(cdk().propertyValidator("functionName",cdk().validateString)(properties.functionName)),errors.collect(cdk().propertyValidator("functionVersion",cdk().requiredValidator)(properties.functionVersion)),errors.collect(cdk().propertyValidator("functionVersion",cdk().validateString)(properties.functionVersion)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("provisionedConcurrencyConfig",CfnAliasProvisionedConcurrencyConfigurationPropertyValidator)(properties.provisionedConcurrencyConfig)),errors.collect(cdk().propertyValidator("routingConfig",CfnAliasAliasRoutingConfigurationPropertyValidator)(properties.routingConfig)),errors.wrap('supplied properties not correct for "CfnAliasProps"')}function convertCfnAliasPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAliasPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),FunctionName:cdk().stringToCloudFormation(properties.functionName),FunctionVersion:cdk().stringToCloudFormation(properties.functionVersion),Name:cdk().stringToCloudFormation(properties.name),ProvisionedConcurrencyConfig:convertCfnAliasProvisionedConcurrencyConfigurationPropertyToCloudFormation(properties.provisionedConcurrencyConfig),RoutingConfig:convertCfnAliasAliasRoutingConfigurationPropertyToCloudFormation(properties.routingConfig)}):properties}function CfnAliasPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("functionName","FunctionName",properties.FunctionName!=null?cfn_parse().FromCloudFormation.getString(properties.FunctionName):void 0),ret.addPropertyResult("functionVersion","FunctionVersion",properties.FunctionVersion!=null?cfn_parse().FromCloudFormation.getString(properties.FunctionVersion):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("provisionedConcurrencyConfig","ProvisionedConcurrencyConfig",properties.ProvisionedConcurrencyConfig!=null?CfnAliasProvisionedConcurrencyConfigurationPropertyFromCloudFormation(properties.ProvisionedConcurrencyConfig):void 0),ret.addPropertyResult("routingConfig","RoutingConfig",properties.RoutingConfig!=null?CfnAliasAliasRoutingConfigurationPropertyFromCloudFormation(properties.RoutingConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnCodeSigningConfig extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnCodeSigningConfig",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::CodeSigningConfig";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCodeSigningConfigPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnCodeSigningConfig(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnCodeSigningConfig(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnCodeSigningConfig.CFN_RESOURCE_TYPE_NAME}static arnForCodeSigningConfig(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_lambda_ICodeSigningConfigRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForCodeSigningConfig),error}return resource.codeSigningConfigRef.codeSigningConfigArn}_allowedPublishers;cdkTagManager;_codeSigningPolicies;_description;_tags;constructor(scope,id,props){super(scope,id,{type:CfnCodeSigningConfig.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnCodeSigningConfigProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCodeSigningConfig),error}cdk().requireProperty(props,"allowedPublishers",this),this._allowedPublishers=props.allowedPublishers,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Lambda::CodeSigningConfig",void 0,{tagPropertyName:"tags"}),this._codeSigningPolicies=props.codeSigningPolicies,this._description=props.description,this._tags=props.tags}get codeSigningConfigRef(){return{codeSigningConfigArn:this.ref}}get allowedPublishers(){return this._allowedPublishers}set allowedPublishers(value){cdk().traceProperty(this.node,"AllowedPublishers"),this._allowedPublishers=value}get codeSigningPolicies(){return this._codeSigningPolicies}set codeSigningPolicies(value){cdk().traceProperty(this.node,"CodeSigningPolicies"),this._codeSigningPolicies=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrCodeSigningConfigArn(){return cdk().Token.asString(this.getAtt("CodeSigningConfigArn",cdk().ResolutionTypeHint.STRING))}get attrCodeSigningConfigId(){return cdk().Token.asString(this.getAtt("CodeSigningConfigId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{allowedPublishers:this._allowedPublishers,tags:this.cdkTagManager.renderTags(this._tags),codeSigningPolicies:this._codeSigningPolicies,description:this._description}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnCodeSigningConfig.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCodeSigningConfigPropsToCloudFormation(props)}}exports.CfnCodeSigningConfig=CfnCodeSigningConfig;function CfnCodeSigningConfigAllowedPublishersPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("signingProfileVersionArns",cdk().requiredValidator)(properties.signingProfileVersionArns)),errors.collect(cdk().propertyValidator("signingProfileVersionArns",cdk().listValidator(cdk().validateString))(properties.signingProfileVersionArns)),errors.wrap('supplied properties not correct for "AllowedPublishersProperty"')}function convertCfnCodeSigningConfigAllowedPublishersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCodeSigningConfigAllowedPublishersPropertyValidator(properties).assertSuccess(),{SigningProfileVersionArns:cdk().listMapper(cdk().stringToCloudFormation)(properties.signingProfileVersionArns)}):properties}function CfnCodeSigningConfigAllowedPublishersPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("signingProfileVersionArns","SigningProfileVersionArns",properties.SigningProfileVersionArns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SigningProfileVersionArns):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCodeSigningConfigCodeSigningPoliciesPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("untrustedArtifactOnDeployment",cdk().requiredValidator)(properties.untrustedArtifactOnDeployment)),errors.collect(cdk().propertyValidator("untrustedArtifactOnDeployment",cdk().validateString)(properties.untrustedArtifactOnDeployment)),errors.wrap('supplied properties not correct for "CodeSigningPoliciesProperty"')}function convertCfnCodeSigningConfigCodeSigningPoliciesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCodeSigningConfigCodeSigningPoliciesPropertyValidator(properties).assertSuccess(),{UntrustedArtifactOnDeployment:cdk().stringToCloudFormation(properties.untrustedArtifactOnDeployment)}):properties}function CfnCodeSigningConfigCodeSigningPoliciesPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("untrustedArtifactOnDeployment","UntrustedArtifactOnDeployment",properties.UntrustedArtifactOnDeployment!=null?cfn_parse().FromCloudFormation.getString(properties.UntrustedArtifactOnDeployment):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCodeSigningConfigPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("allowedPublishers",cdk().requiredValidator)(properties.allowedPublishers)),errors.collect(cdk().propertyValidator("allowedPublishers",CfnCodeSigningConfigAllowedPublishersPropertyValidator)(properties.allowedPublishers)),errors.collect(cdk().propertyValidator("codeSigningPolicies",CfnCodeSigningConfigCodeSigningPoliciesPropertyValidator)(properties.codeSigningPolicies)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnCodeSigningConfigProps"')}function convertCfnCodeSigningConfigPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCodeSigningConfigPropsValidator(properties).assertSuccess(),{AllowedPublishers:convertCfnCodeSigningConfigAllowedPublishersPropertyToCloudFormation(properties.allowedPublishers),CodeSigningPolicies:convertCfnCodeSigningConfigCodeSigningPoliciesPropertyToCloudFormation(properties.codeSigningPolicies),Description:cdk().stringToCloudFormation(properties.description),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnCodeSigningConfigPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("allowedPublishers","AllowedPublishers",properties.AllowedPublishers!=null?CfnCodeSigningConfigAllowedPublishersPropertyFromCloudFormation(properties.AllowedPublishers):void 0),ret.addPropertyResult("codeSigningPolicies","CodeSigningPolicies",properties.CodeSigningPolicies!=null?CfnCodeSigningConfigCodeSigningPoliciesPropertyFromCloudFormation(properties.CodeSigningPolicies):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnEventInvokeConfig extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnEventInvokeConfig",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::EventInvokeConfig";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnEventInvokeConfigPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnEventInvokeConfig(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnEventInvokeConfig(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnEventInvokeConfig.CFN_RESOURCE_TYPE_NAME}_destinationConfig;_functionName;_maximumEventAgeInSeconds;_maximumRetryAttempts;_qualifier;constructor(scope,id,props){super(scope,id,{type:CfnEventInvokeConfig.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnEventInvokeConfigProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnEventInvokeConfig),error}cdk().requireProperty(props,"functionName",this),cdk().requireProperty(props,"qualifier",this),this._destinationConfig=props.destinationConfig,this._functionName=cdk().getRefProperty(props.functionName?.functionRef,"functionName")??cdk().ensureStringOrUndefined(props.functionName,"functionName","lambda.IFunctionRef | string"),this._maximumEventAgeInSeconds=props.maximumEventAgeInSeconds,this._maximumRetryAttempts=props.maximumRetryAttempts,this._qualifier=props.qualifier}get eventInvokeConfigRef(){return{functionName:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),qualifier:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get destinationConfig(){return this._destinationConfig}set destinationConfig(value){cdk().traceProperty(this.node,"DestinationConfig"),this._destinationConfig=value}get functionName(){return this._functionName}set functionName(value){cdk().traceProperty(this.node,"FunctionName"),this._functionName=value}get maximumEventAgeInSeconds(){return this._maximumEventAgeInSeconds}set maximumEventAgeInSeconds(value){cdk().traceProperty(this.node,"MaximumEventAgeInSeconds"),this._maximumEventAgeInSeconds=value}get maximumRetryAttempts(){return this._maximumRetryAttempts}set maximumRetryAttempts(value){cdk().traceProperty(this.node,"MaximumRetryAttempts"),this._maximumRetryAttempts=value}get qualifier(){return this._qualifier}set qualifier(value){cdk().traceProperty(this.node,"Qualifier"),this._qualifier=value}get cfnProperties(){return{destinationConfig:this._destinationConfig,functionName:this._functionName,maximumEventAgeInSeconds:this._maximumEventAgeInSeconds,maximumRetryAttempts:this._maximumRetryAttempts,qualifier:this._qualifier}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnEventInvokeConfig.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnEventInvokeConfigPropsToCloudFormation(props)}}exports.CfnEventInvokeConfig=CfnEventInvokeConfig;function CfnEventInvokeConfigOnSuccessPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("destination",cdk().requiredValidator)(properties.destination)),errors.collect(cdk().propertyValidator("destination",cdk().validateString)(properties.destination)),errors.wrap('supplied properties not correct for "OnSuccessProperty"')}function convertCfnEventInvokeConfigOnSuccessPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventInvokeConfigOnSuccessPropertyValidator(properties).assertSuccess(),{Destination:cdk().stringToCloudFormation(properties.destination)}):properties}function CfnEventInvokeConfigOnSuccessPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("destination","Destination",properties.Destination!=null?cfn_parse().FromCloudFormation.getString(properties.Destination):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventInvokeConfigOnFailurePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("destination",cdk().requiredValidator)(properties.destination)),errors.collect(cdk().propertyValidator("destination",cdk().validateString)(properties.destination)),errors.wrap('supplied properties not correct for "OnFailureProperty"')}function convertCfnEventInvokeConfigOnFailurePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventInvokeConfigOnFailurePropertyValidator(properties).assertSuccess(),{Destination:cdk().stringToCloudFormation(properties.destination)}):properties}function CfnEventInvokeConfigOnFailurePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("destination","Destination",properties.Destination!=null?cfn_parse().FromCloudFormation.getString(properties.Destination):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventInvokeConfigDestinationConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("onFailure",CfnEventInvokeConfigOnFailurePropertyValidator)(properties.onFailure)),errors.collect(cdk().propertyValidator("onSuccess",CfnEventInvokeConfigOnSuccessPropertyValidator)(properties.onSuccess)),errors.wrap('supplied properties not correct for "DestinationConfigProperty"')}function convertCfnEventInvokeConfigDestinationConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventInvokeConfigDestinationConfigPropertyValidator(properties).assertSuccess(),{OnFailure:convertCfnEventInvokeConfigOnFailurePropertyToCloudFormation(properties.onFailure),OnSuccess:convertCfnEventInvokeConfigOnSuccessPropertyToCloudFormation(properties.onSuccess)}):properties}function CfnEventInvokeConfigDestinationConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("onFailure","OnFailure",properties.OnFailure!=null?CfnEventInvokeConfigOnFailurePropertyFromCloudFormation(properties.OnFailure):void 0),ret.addPropertyResult("onSuccess","OnSuccess",properties.OnSuccess!=null?CfnEventInvokeConfigOnSuccessPropertyFromCloudFormation(properties.OnSuccess):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventInvokeConfigPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("destinationConfig",CfnEventInvokeConfigDestinationConfigPropertyValidator)(properties.destinationConfig)),errors.collect(cdk().propertyValidator("functionName",cdk().requiredValidator)(properties.functionName)),errors.collect(cdk().propertyValidator("functionName",cdk().validateString)(properties.functionName)),errors.collect(cdk().propertyValidator("maximumEventAgeInSeconds",cdk().validateNumber)(properties.maximumEventAgeInSeconds)),errors.collect(cdk().propertyValidator("maximumRetryAttempts",cdk().validateNumber)(properties.maximumRetryAttempts)),errors.collect(cdk().propertyValidator("qualifier",cdk().requiredValidator)(properties.qualifier)),errors.collect(cdk().propertyValidator("qualifier",cdk().validateString)(properties.qualifier)),errors.wrap('supplied properties not correct for "CfnEventInvokeConfigProps"')}function convertCfnEventInvokeConfigPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventInvokeConfigPropsValidator(properties).assertSuccess(),{DestinationConfig:convertCfnEventInvokeConfigDestinationConfigPropertyToCloudFormation(properties.destinationConfig),FunctionName:cdk().stringToCloudFormation(properties.functionName),MaximumEventAgeInSeconds:cdk().numberToCloudFormation(properties.maximumEventAgeInSeconds),MaximumRetryAttempts:cdk().numberToCloudFormation(properties.maximumRetryAttempts),Qualifier:cdk().stringToCloudFormation(properties.qualifier)}):properties}function CfnEventInvokeConfigPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("destinationConfig","DestinationConfig",properties.DestinationConfig!=null?CfnEventInvokeConfigDestinationConfigPropertyFromCloudFormation(properties.DestinationConfig):void 0),ret.addPropertyResult("functionName","FunctionName",properties.FunctionName!=null?cfn_parse().FromCloudFormation.getString(properties.FunctionName):void 0),ret.addPropertyResult("maximumEventAgeInSeconds","MaximumEventAgeInSeconds",properties.MaximumEventAgeInSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaximumEventAgeInSeconds):void 0),ret.addPropertyResult("maximumRetryAttempts","MaximumRetryAttempts",properties.MaximumRetryAttempts!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaximumRetryAttempts):void 0),ret.addPropertyResult("qualifier","Qualifier",properties.Qualifier!=null?cfn_parse().FromCloudFormation.getString(properties.Qualifier):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnEventSourceMapping extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnEventSourceMapping",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::EventSourceMapping";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnEventSourceMappingPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnEventSourceMapping(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnEventSourceMapping(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnEventSourceMapping.CFN_RESOURCE_TYPE_NAME}static arnForEventSourceMapping(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_lambda_IEventSourceMappingRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForEventSourceMapping),error}return resource.eventSourceMappingRef.eventSourceMappingArn}_amazonManagedKafkaEventSourceConfig;_batchSize;_bisectBatchOnFunctionError;cdkTagManager;_destinationConfig;_documentDbEventSourceConfig;_enabled;_eventSourceArn;_filterCriteria;_functionName;_functionResponseTypes;_kmsKeyArn;_loggingConfig;_maximumBatchingWindowInSeconds;_maximumRecordAgeInSeconds;_maximumRetryAttempts;_metricsConfig;_parallelizationFactor;_provisionedPollerConfig;_queues;_scalingConfig;_selfManagedEventSource;_selfManagedKafkaEventSourceConfig;_sourceAccessConfigurations;_startingPosition;_startingPositionTimestamp;_tags;_topics;_tumblingWindowInSeconds;constructor(scope,id,props){super(scope,id,{type:CfnEventSourceMapping.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnEventSourceMappingProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnEventSourceMapping),error}cdk().requireProperty(props,"functionName",this),this._amazonManagedKafkaEventSourceConfig=props.amazonManagedKafkaEventSourceConfig,this._batchSize=props.batchSize,this._bisectBatchOnFunctionError=props.bisectBatchOnFunctionError,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Lambda::EventSourceMapping",void 0,{tagPropertyName:"tags"}),this._destinationConfig=props.destinationConfig,this._documentDbEventSourceConfig=props.documentDbEventSourceConfig,this._enabled=props.enabled,this._eventSourceArn=cdk().getRefProperty(props.eventSourceArn?.queueRef,"queueArn")??cdk().getRefProperty(props.eventSourceArn?.streamRef,"streamArn")??cdk().getRefProperty(props.eventSourceArn?.clusterRef,"clusterArn")??cdk().ensureStringOrUndefined(props.eventSourceArn,"eventSourceArn","sqs.IQueueRef | kinesis.IStreamRef | msk.IClusterRef | string"),this._filterCriteria=props.filterCriteria,this._functionName=cdk().getRefProperty(props.functionName?.functionRef,"functionArn")??cdk().getRefProperty(props.functionName?.versionRef,"functionArn")??cdk().getRefProperty(props.functionName?.functionRef,"functionName")??cdk().ensureStringOrUndefined(props.functionName,"functionName","lambda.IFunctionRef | lambda.IVersionRef | string"),this._functionResponseTypes=props.functionResponseTypes,this._kmsKeyArn=props.kmsKeyArn,this._loggingConfig=props.loggingConfig,this._maximumBatchingWindowInSeconds=props.maximumBatchingWindowInSeconds,this._maximumRecordAgeInSeconds=props.maximumRecordAgeInSeconds,this._maximumRetryAttempts=props.maximumRetryAttempts,this._metricsConfig=props.metricsConfig,this._parallelizationFactor=props.parallelizationFactor,this._provisionedPollerConfig=props.provisionedPollerConfig,this._queues=props.queues,this._scalingConfig=props.scalingConfig,this._selfManagedEventSource=props.selfManagedEventSource,this._selfManagedKafkaEventSourceConfig=props.selfManagedKafkaEventSourceConfig,this._sourceAccessConfigurations=props.sourceAccessConfigurations,this._startingPosition=props.startingPosition,this._startingPositionTimestamp=props.startingPositionTimestamp,this._tags=props.tags,this._topics=props.topics,this._tumblingWindowInSeconds=props.tumblingWindowInSeconds}get eventSourceMappingRef(){return{eventSourceMappingId:this.ref,eventSourceMappingArn:this.attrEventSourceMappingArn}}get amazonManagedKafkaEventSourceConfig(){return this._amazonManagedKafkaEventSourceConfig}set amazonManagedKafkaEventSourceConfig(value){cdk().traceProperty(this.node,"AmazonManagedKafkaEventSourceConfig"),this._amazonManagedKafkaEventSourceConfig=value}get batchSize(){return this._batchSize}set batchSize(value){cdk().traceProperty(this.node,"BatchSize"),this._batchSize=value}get bisectBatchOnFunctionError(){return this._bisectBatchOnFunctionError}set bisectBatchOnFunctionError(value){cdk().traceProperty(this.node,"BisectBatchOnFunctionError"),this._bisectBatchOnFunctionError=value}get destinationConfig(){return this._destinationConfig}set destinationConfig(value){cdk().traceProperty(this.node,"DestinationConfig"),this._destinationConfig=value}get documentDbEventSourceConfig(){return this._documentDbEventSourceConfig}set documentDbEventSourceConfig(value){cdk().traceProperty(this.node,"DocumentDBEventSourceConfig"),this._documentDbEventSourceConfig=value}get enabled(){return this._enabled}set enabled(value){cdk().traceProperty(this.node,"Enabled"),this._enabled=value}get eventSourceArn(){return this._eventSourceArn}set eventSourceArn(value){cdk().traceProperty(this.node,"EventSourceArn"),this._eventSourceArn=value}get filterCriteria(){return this._filterCriteria}set filterCriteria(value){cdk().traceProperty(this.node,"FilterCriteria"),this._filterCriteria=value}get functionName(){return this._functionName}set functionName(value){cdk().traceProperty(this.node,"FunctionName"),this._functionName=value}get functionResponseTypes(){return this._functionResponseTypes}set functionResponseTypes(value){cdk().traceProperty(this.node,"FunctionResponseTypes"),this._functionResponseTypes=value}get kmsKeyArn(){return this._kmsKeyArn}set kmsKeyArn(value){cdk().traceProperty(this.node,"KmsKeyArn"),this._kmsKeyArn=value}get loggingConfig(){return this._loggingConfig}set loggingConfig(value){cdk().traceProperty(this.node,"LoggingConfig"),this._loggingConfig=value}get maximumBatchingWindowInSeconds(){return this._maximumBatchingWindowInSeconds}set maximumBatchingWindowInSeconds(value){cdk().traceProperty(this.node,"MaximumBatchingWindowInSeconds"),this._maximumBatchingWindowInSeconds=value}get maximumRecordAgeInSeconds(){return this._maximumRecordAgeInSeconds}set maximumRecordAgeInSeconds(value){cdk().traceProperty(this.node,"MaximumRecordAgeInSeconds"),this._maximumRecordAgeInSeconds=value}get maximumRetryAttempts(){return this._maximumRetryAttempts}set maximumRetryAttempts(value){cdk().traceProperty(this.node,"MaximumRetryAttempts"),this._maximumRetryAttempts=value}get metricsConfig(){return this._metricsConfig}set metricsConfig(value){cdk().traceProperty(this.node,"MetricsConfig"),this._metricsConfig=value}get parallelizationFactor(){return this._parallelizationFactor}set parallelizationFactor(value){cdk().traceProperty(this.node,"ParallelizationFactor"),this._parallelizationFactor=value}get provisionedPollerConfig(){return this._provisionedPollerConfig}set provisionedPollerConfig(value){cdk().traceProperty(this.node,"ProvisionedPollerConfig"),this._provisionedPollerConfig=value}get queues(){return this._queues}set queues(value){cdk().traceProperty(this.node,"Queues"),this._queues=value}get scalingConfig(){return this._scalingConfig}set scalingConfig(value){cdk().traceProperty(this.node,"ScalingConfig"),this._scalingConfig=value}get selfManagedEventSource(){return this._selfManagedEventSource}set selfManagedEventSource(value){cdk().traceProperty(this.node,"SelfManagedEventSource"),this._selfManagedEventSource=value}get selfManagedKafkaEventSourceConfig(){return this._selfManagedKafkaEventSourceConfig}set selfManagedKafkaEventSourceConfig(value){cdk().traceProperty(this.node,"SelfManagedKafkaEventSourceConfig"),this._selfManagedKafkaEventSourceConfig=value}get sourceAccessConfigurations(){return this._sourceAccessConfigurations}set sourceAccessConfigurations(value){cdk().traceProperty(this.node,"SourceAccessConfigurations"),this._sourceAccessConfigurations=value}get startingPosition(){return this._startingPosition}set startingPosition(value){cdk().traceProperty(this.node,"StartingPosition"),this._startingPosition=value}get startingPositionTimestamp(){return this._startingPositionTimestamp}set startingPositionTimestamp(value){cdk().traceProperty(this.node,"StartingPositionTimestamp"),this._startingPositionTimestamp=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get topics(){return this._topics}set topics(value){cdk().traceProperty(this.node,"Topics"),this._topics=value}get tumblingWindowInSeconds(){return this._tumblingWindowInSeconds}set tumblingWindowInSeconds(value){cdk().traceProperty(this.node,"TumblingWindowInSeconds"),this._tumblingWindowInSeconds=value}get attrEventSourceMappingArn(){return cdk().Token.asString(this.getAtt("EventSourceMappingArn",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{amazonManagedKafkaEventSourceConfig:this._amazonManagedKafkaEventSourceConfig,batchSize:this._batchSize,bisectBatchOnFunctionError:this._bisectBatchOnFunctionError,tags:this.cdkTagManager.renderTags(this._tags),destinationConfig:this._destinationConfig,documentDbEventSourceConfig:this._documentDbEventSourceConfig,enabled:this._enabled,eventSourceArn:this._eventSourceArn,filterCriteria:this._filterCriteria,functionName:this._functionName,functionResponseTypes:this._functionResponseTypes,kmsKeyArn:this._kmsKeyArn,loggingConfig:this._loggingConfig,maximumBatchingWindowInSeconds:this._maximumBatchingWindowInSeconds,maximumRecordAgeInSeconds:this._maximumRecordAgeInSeconds,maximumRetryAttempts:this._maximumRetryAttempts,metricsConfig:this._metricsConfig,parallelizationFactor:this._parallelizationFactor,provisionedPollerConfig:this._provisionedPollerConfig,queues:this._queues,scalingConfig:this._scalingConfig,selfManagedEventSource:this._selfManagedEventSource,selfManagedKafkaEventSourceConfig:this._selfManagedKafkaEventSourceConfig,sourceAccessConfigurations:this._sourceAccessConfigurations,startingPosition:this._startingPosition,startingPositionTimestamp:this._startingPositionTimestamp,topics:this._topics,tumblingWindowInSeconds:this._tumblingWindowInSeconds}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnEventSourceMapping.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnEventSourceMappingPropsToCloudFormation(props)}}exports.CfnEventSourceMapping=CfnEventSourceMapping;function CfnEventSourceMappingScalingConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("maximumConcurrency",cdk().validateNumber)(properties.maximumConcurrency)),errors.wrap('supplied properties not correct for "ScalingConfigProperty"')}function convertCfnEventSourceMappingScalingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingScalingConfigPropertyValidator(properties).assertSuccess(),{MaximumConcurrency:cdk().numberToCloudFormation(properties.maximumConcurrency)}):properties}function CfnEventSourceMappingScalingConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("maximumConcurrency","MaximumConcurrency",properties.MaximumConcurrency!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaximumConcurrency):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingEndpointsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("kafkaBootstrapServers",cdk().listValidator(cdk().validateString))(properties.kafkaBootstrapServers)),errors.wrap('supplied properties not correct for "EndpointsProperty"')}function convertCfnEventSourceMappingEndpointsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingEndpointsPropertyValidator(properties).assertSuccess(),{KafkaBootstrapServers:cdk().listMapper(cdk().stringToCloudFormation)(properties.kafkaBootstrapServers)}):properties}function CfnEventSourceMappingEndpointsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);c