2 lines
216 KiB
JavaScript
2 lines
216 KiB
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.252.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;cfnPropertyNames={description:"Description",functionName:"FunctionName",functionVersion:"FunctionVersion",name:"Name",provisionedConcurrencyConfig:"ProvisionedConcurrencyConfig",routingConfig:"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.252.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;cfnPropertyNames={allowedPublishers:"AllowedPublishers",tags:"Tags",codeSigningPolicies:"CodeSigningPolicies",description:"Description"};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.252.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;cfnPropertyNames={destinationConfig:"DestinationConfig",functionName:"FunctionName",maximumEventAgeInSeconds:"MaximumEventAgeInSeconds",maximumRetryAttempts:"MaximumRetryAttempts",qualifier:"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.252.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;cfnPropertyNames={amazonManagedKafkaEventSourceConfig:"AmazonManagedKafkaEventSourceConfig",batchSize:"BatchSize",bisectBatchOnFunctionError:"BisectBatchOnFunctionError",tags:"Tags",destinationConfig:"DestinationConfig",documentDbEventSourceConfig:"DocumentDBEventSourceConfig",enabled:"Enabled",eventSourceArn:"EventSourceArn",filterCriteria:"FilterCriteria",functionName:"FunctionName",functionResponseTypes:"FunctionResponseTypes",kmsKeyArn:"KmsKeyArn",loggingConfig:"LoggingConfig",maximumBatchingWindowInSeconds:"MaximumBatchingWindowInSeconds",maximumRecordAgeInSeconds:"MaximumRecordAgeInSeconds",maximumRetryAttempts:"MaximumRetryAttempts",metricsConfig:"MetricsConfig",parallelizationFactor:"ParallelizationFactor",provisionedPollerConfig:"ProvisionedPollerConfig",queues:"Queues",scalingConfig:"ScalingConfig",selfManagedEventSource:"SelfManagedEventSource",selfManagedKafkaEventSourceConfig:"SelfManagedKafkaEventSourceConfig",sourceAccessConfigurations:"SourceAccessConfigurations",startingPosition:"StartingPosition",startingPositionTimestamp:"StartingPositionTimestamp",topics:"Topics",tumblingWindowInSeconds:"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);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("kafkaBootstrapServers","KafkaBootstrapServers",properties.KafkaBootstrapServers!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.KafkaBootstrapServers):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingSelfManagedEventSourcePropertyValidator(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("endpoints",CfnEventSourceMappingEndpointsPropertyValidator)(properties.endpoints)),errors.wrap('supplied properties not correct for "SelfManagedEventSourceProperty"')}function convertCfnEventSourceMappingSelfManagedEventSourcePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingSelfManagedEventSourcePropertyValidator(properties).assertSuccess(),{Endpoints:convertCfnEventSourceMappingEndpointsPropertyToCloudFormation(properties.endpoints)}):properties}function CfnEventSourceMappingSelfManagedEventSourcePropertyFromCloudFormation(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("endpoints","Endpoints",properties.Endpoints!=null?CfnEventSourceMappingEndpointsPropertyFromCloudFormation(properties.Endpoints):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingFilterPropertyValidator(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("pattern",cdk().validateString)(properties.pattern)),errors.wrap('supplied properties not correct for "FilterProperty"')}function convertCfnEventSourceMappingFilterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingFilterPropertyValidator(properties).assertSuccess(),{Pattern:cdk().stringToCloudFormation(properties.pattern)}):properties}function CfnEventSourceMappingFilterPropertyFromCloudFormation(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("pattern","Pattern",properties.Pattern!=null?cfn_parse().FromCloudFormation.getString(properties.Pattern):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingFilterCriteriaPropertyValidator(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("filters",cdk().listValidator(CfnEventSourceMappingFilterPropertyValidator))(properties.filters)),errors.wrap('supplied properties not correct for "FilterCriteriaProperty"')}function convertCfnEventSourceMappingFilterCriteriaPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingFilterCriteriaPropertyValidator(properties).assertSuccess(),{Filters:cdk().listMapper(convertCfnEventSourceMappingFilterPropertyToCloudFormation)(properties.filters)}):properties}function CfnEventSourceMappingFilterCriteriaPropertyFromCloudFormation(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("filters","Filters",properties.Filters!=null?cfn_parse().FromCloudFormation.getArray(CfnEventSourceMappingFilterPropertyFromCloudFormation)(properties.Filters):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingSchemaRegistryAccessConfigPropertyValidator(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("type",cdk().validateString)(properties.type)),errors.collect(cdk().propertyValidator("uri",cdk().validateString)(properties.uri)),errors.wrap('supplied properties not correct for "SchemaRegistryAccessConfigProperty"')}function convertCfnEventSourceMappingSchemaRegistryAccessConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingSchemaRegistryAccessConfigPropertyValidator(properties).assertSuccess(),{Type:cdk().stringToCloudFormation(properties.type),URI:cdk().stringToCloudFormation(properties.uri)}):properties}function CfnEventSourceMappingSchemaRegistryAccessConfigPropertyFromCloudFormation(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("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addPropertyResult("uri","URI",properties.URI!=null?cfn_parse().FromCloudFormation.getString(properties.URI):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingSchemaValidationConfigPropertyValidator(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("attribute",cdk().validateString)(properties.attribute)),errors.wrap('supplied properties not correct for "SchemaValidationConfigProperty"')}function convertCfnEventSourceMappingSchemaValidationConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingSchemaValidationConfigPropertyValidator(properties).assertSuccess(),{Attribute:cdk().stringToCloudFormation(properties.attribute)}):properties}function CfnEventSourceMappingSchemaValidationConfigPropertyFromCloudFormation(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("attribute","Attribute",properties.Attribute!=null?cfn_parse().FromCloudFormation.getString(properties.Attribute):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingSchemaRegistryConfigPropertyValidator(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("accessConfigs",cdk().listValidator(CfnEventSourceMappingSchemaRegistryAccessConfigPropertyValidator))(properties.accessConfigs)),errors.collect(cdk().propertyValidator("eventRecordFormat",cdk().validateString)(properties.eventRecordFormat)),errors.collect(cdk().propertyValidator("schemaRegistryUri",cdk().validateString)(properties.schemaRegistryUri)),errors.collect(cdk().propertyValidator("schemaValidationConfigs",cdk().listValidator(CfnEventSourceMappingSchemaValidationConfigPropertyValidator))(properties.schemaValidationConfigs)),errors.wrap('supplied properties not correct for "SchemaRegistryConfigProperty"')}function convertCfnEventSourceMappingSchemaRegistryConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingSchemaRegistryConfigPropertyValidator(properties).assertSuccess(),{AccessConfigs:cdk().listMapper(convertCfnEventSourceMappingSchemaRegistryAccessConfigPropertyToCloudFormation)(properties.accessConfigs),EventRecordFormat:cdk().stringToCloudFormation(properties.eventRecordFormat),SchemaRegistryURI:cdk().stringToCloudFormation(properties.schemaRegistryUri),SchemaValidationConfigs:cdk().listMapper(convertCfnEventSourceMappingSchemaValidationConfigPropertyToCloudFormation)(properties.schemaValidationConfigs)}):properties}function CfnEventSourceMappingSchemaRegistryConfigPropertyFromCloudFormation(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("accessConfigs","AccessConfigs",properties.AccessConfigs!=null?cfn_parse().FromCloudFormation.getArray(CfnEventSourceMappingSchemaRegistryAccessConfigPropertyFromCloudFormation)(properties.AccessConfigs):void 0),ret.addPropertyResult("eventRecordFormat","EventRecordFormat",properties.EventRecordFormat!=null?cfn_parse().FromCloudFormation.getString(properties.EventRecordFormat):void 0),ret.addPropertyResult("schemaRegistryUri","SchemaRegistryURI",properties.SchemaRegistryURI!=null?cfn_parse().FromCloudFormation.getString(properties.SchemaRegistryURI):void 0),ret.addPropertyResult("schemaValidationConfigs","SchemaValidationConfigs",properties.SchemaValidationConfigs!=null?cfn_parse().FromCloudFormation.getArray(CfnEventSourceMappingSchemaValidationConfigPropertyFromCloudFormation)(properties.SchemaValidationConfigs):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingSelfManagedKafkaEventSourceConfigPropertyValidator(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("consumerGroupId",cdk().validateString)(properties.consumerGroupId)),errors.collect(cdk().propertyValidator("schemaRegistryConfig",CfnEventSourceMappingSchemaRegistryConfigPropertyValidator)(properties.schemaRegistryConfig)),errors.wrap('supplied properties not correct for "SelfManagedKafkaEventSourceConfigProperty"')}function convertCfnEventSourceMappingSelfManagedKafkaEventSourceConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingSelfManagedKafkaEventSourceConfigPropertyValidator(properties).assertSuccess(),{ConsumerGroupId:cdk().stringToCloudFormation(properties.consumerGroupId),SchemaRegistryConfig:convertCfnEventSourceMappingSchemaRegistryConfigPropertyToCloudFormation(properties.schemaRegistryConfig)}):properties}function CfnEventSourceMappingSelfManagedKafkaEventSourceConfigPropertyFromCloudFormation(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("consumerGroupId","ConsumerGroupId",properties.ConsumerGroupId!=null?cfn_parse().FromCloudFormation.getString(properties.ConsumerGroupId):void 0),ret.addPropertyResult("schemaRegistryConfig","SchemaRegistryConfig",properties.SchemaRegistryConfig!=null?CfnEventSourceMappingSchemaRegistryConfigPropertyFromCloudFormation(properties.SchemaRegistryConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingDocumentDBEventSourceConfigPropertyValidator(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("collectionName",cdk().validateString)(properties.collectionName)),errors.collect(cdk().propertyValidator("databaseName",cdk().validateString)(properties.databaseName)),errors.collect(cdk().propertyValidator("fullDocument",cdk().validateString)(properties.fullDocument)),errors.wrap('supplied properties not correct for "DocumentDBEventSourceConfigProperty"')}function convertCfnEventSourceMappingDocumentDBEventSourceConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingDocumentDBEventSourceConfigPropertyValidator(properties).assertSuccess(),{CollectionName:cdk().stringToCloudFormation(properties.collectionName),DatabaseName:cdk().stringToCloudFormation(properties.databaseName),FullDocument:cdk().stringToCloudFormation(properties.fullDocument)}):properties}function CfnEventSourceMappingDocumentDBEventSourceConfigPropertyFromCloudFormation(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("collectionName","CollectionName",properties.CollectionName!=null?cfn_parse().FromCloudFormation.getString(properties.CollectionName):void 0),ret.addPropertyResult("databaseName","DatabaseName",properties.DatabaseName!=null?cfn_parse().FromCloudFormation.getString(properties.DatabaseName):void 0),ret.addPropertyResult("fullDocument","FullDocument",properties.FullDocument!=null?cfn_parse().FromCloudFormation.getString(properties.FullDocument):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingOnFailurePropertyValidator(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().validateString)(properties.destination)),errors.wrap('supplied properties not correct for "OnFailureProperty"')}function convertCfnEventSourceMappingOnFailurePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingOnFailurePropertyValidator(properties).assertSuccess(),{Destination:cdk().stringToCloudFormation(properties.destination)}):properties}function CfnEventSourceMappingOnFailurePropertyFromCloudFormation(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 CfnEventSourceMappingDestinationConfigPropertyValidator(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",CfnEventSourceMappingOnFailurePropertyValidator)(properties.onFailure)),errors.wrap('supplied properties not correct for "DestinationConfigProperty"')}function convertCfnEventSourceMappingDestinationConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingDestinationConfigPropertyValidator(properties).assertSuccess(),{OnFailure:convertCfnEventSourceMappingOnFailurePropertyToCloudFormation(properties.onFailure)}):properties}function CfnEventSourceMappingDestinationConfigPropertyFromCloudFormation(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?CfnEventSourceMappingOnFailurePropertyFromCloudFormation(properties.OnFailure):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingAmazonManagedKafkaEventSourceConfigPropertyValidator(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("consumerGroupId",cdk().validateString)(properties.consumerGroupId)),errors.collect(cdk().propertyValidator("schemaRegistryConfig",CfnEventSourceMappingSchemaRegistryConfigPropertyValidator)(properties.schemaRegistryConfig)),errors.wrap('supplied properties not correct for "AmazonManagedKafkaEventSourceConfigProperty"')}function convertCfnEventSourceMappingAmazonManagedKafkaEventSourceConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingAmazonManagedKafkaEventSourceConfigPropertyValidator(properties).assertSuccess(),{ConsumerGroupId:cdk().stringToCloudFormation(properties.consumerGroupId),SchemaRegistryConfig:convertCfnEventSourceMappingSchemaRegistryConfigPropertyToCloudFormation(properties.schemaRegistryConfig)}):properties}function CfnEventSourceMappingAmazonManagedKafkaEventSourceConfigPropertyFromCloudFormation(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("consumerGroupId","ConsumerGroupId",properties.ConsumerGroupId!=null?cfn_parse().FromCloudFormation.getString(properties.ConsumerGroupId):void 0),ret.addPropertyResult("schemaRegistryConfig","SchemaRegistryConfig",properties.SchemaRegistryConfig!=null?CfnEventSourceMappingSchemaRegistryConfigPropertyFromCloudFormation(properties.SchemaRegistryConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingSourceAccessConfigurationPropertyValidator(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("type",cdk().validateString)(properties.type)),errors.collect(cdk().propertyValidator("uri",cdk().validateString)(properties.uri)),errors.wrap('supplied properties not correct for "SourceAccessConfigurationProperty"')}function convertCfnEventSourceMappingSourceAccessConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingSourceAccessConfigurationPropertyValidator(properties).assertSuccess(),{Type:cdk().stringToCloudFormation(properties.type),URI:cdk().stringToCloudFormation(properties.uri)}):properties}function CfnEventSourceMappingSourceAccessConfigurationPropertyFromCloudFormation(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("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addPropertyResult("uri","URI",properties.URI!=null?cfn_parse().FromCloudFormation.getString(properties.URI):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingProvisionedPollerConfigPropertyValidator(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("maximumPollers",cdk().validateNumber)(properties.maximumPollers)),errors.collect(cdk().propertyValidator("minimumPollers",cdk().validateNumber)(properties.minimumPollers)),errors.collect(cdk().propertyValidator("pollerGroupName",cdk().validateString)(properties.pollerGroupName)),errors.wrap('supplied properties not correct for "ProvisionedPollerConfigProperty"')}function convertCfnEventSourceMappingProvisionedPollerConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingProvisionedPollerConfigPropertyValidator(properties).assertSuccess(),{MaximumPollers:cdk().numberToCloudFormation(properties.maximumPollers),MinimumPollers:cdk().numberToCloudFormation(properties.minimumPollers),PollerGroupName:cdk().stringToCloudFormation(properties.pollerGroupName)}):properties}function CfnEventSourceMappingProvisionedPollerConfigPropertyFromCloudFormation(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("maximumPollers","MaximumPollers",properties.MaximumPollers!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaximumPollers):void 0),ret.addPropertyResult("minimumPollers","MinimumPollers",properties.MinimumPollers!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinimumPollers):void 0),ret.addPropertyResult("pollerGroupName","PollerGroupName",properties.PollerGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.PollerGroupName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingMetricsConfigPropertyValidator(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("metrics",cdk().listValidator(cdk().validateString))(properties.metrics)),errors.wrap('supplied properties not correct for "MetricsConfigProperty"')}function convertCfnEventSourceMappingMetricsConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingMetricsConfigPropertyValidator(properties).assertSuccess(),{Metrics:cdk().listMapper(cdk().stringToCloudFormation)(properties.metrics)}):properties}function CfnEventSourceMappingMetricsConfigPropertyFromCloudFormation(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("metrics","Metrics",properties.Metrics!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Metrics):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingLoggingConfigPropertyValidator(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("systemLogLevel",cdk().validateString)(properties.systemLogLevel)),errors.wrap('supplied properties not correct for "LoggingConfigProperty"')}function convertCfnEventSourceMappingLoggingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingLoggingConfigPropertyValidator(properties).assertSuccess(),{SystemLogLevel:cdk().stringToCloudFormation(properties.systemLogLevel)}):properties}function CfnEventSourceMappingLoggingConfigPropertyFromCloudFormation(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("systemLogLevel","SystemLogLevel",properties.SystemLogLevel!=null?cfn_parse().FromCloudFormation.getString(properties.SystemLogLevel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventSourceMappingPropsValidator(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("amazonManagedKafkaEventSourceConfig",CfnEventSourceMappingAmazonManagedKafkaEventSourceConfigPropertyValidator)(properties.amazonManagedKafkaEventSourceConfig)),errors.collect(cdk().propertyValidator("batchSize",cdk().validateNumber)(properties.batchSize)),errors.collect(cdk().propertyValidator("bisectBatchOnFunctionError",cdk().validateBoolean)(properties.bisectBatchOnFunctionError)),errors.collect(cdk().propertyValidator("destinationConfig",CfnEventSourceMappingDestinationConfigPropertyValidator)(properties.destinationConfig)),errors.collect(cdk().propertyValidator("documentDbEventSourceConfig",CfnEventSourceMappingDocumentDBEventSourceConfigPropertyValidator)(properties.documentDbEventSourceConfig)),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("eventSourceArn",cdk().validateString)(properties.eventSourceArn)),errors.collect(cdk().propertyValidator("filterCriteria",CfnEventSourceMappingFilterCriteriaPropertyValidator)(properties.filterCriteria)),errors.collect(cdk().propertyValidator("functionName",cdk().requiredValidator)(properties.functionName)),errors.collect(cdk().propertyValidator("functionName",cdk().validateString)(properties.functionName)),errors.collect(cdk().propertyValidator("functionResponseTypes",cdk().listValidator(cdk().validateString))(properties.functionResponseTypes)),errors.collect(cdk().propertyValidator("kmsKeyArn",cdk().validateString)(properties.kmsKeyArn)),errors.collect(cdk().propertyValidator("loggingConfig",CfnEventSourceMappingLoggingConfigPropertyValidator)(properties.loggingConfig)),errors.collect(cdk().propertyValidator("maximumBatchingWindowInSeconds",cdk().validateNumber)(properties.maximumBatchingWindowInSeconds)),errors.collect(cdk().propertyValidator("maximumRecordAgeInSeconds",cdk().validateNumber)(properties.maximumRecordAgeInSeconds)),errors.collect(cdk().propertyValidator("maximumRetryAttempts",cdk().validateNumber)(properties.maximumRetryAttempts)),errors.collect(cdk().propertyValidator("metricsConfig",CfnEventSourceMappingMetricsConfigPropertyValidator)(properties.metricsConfig)),errors.collect(cdk().propertyValidator("parallelizationFactor",cdk().validateNumber)(properties.parallelizationFactor)),errors.collect(cdk().propertyValidator("provisionedPollerConfig",CfnEventSourceMappingProvisionedPollerConfigPropertyValidator)(properties.provisionedPollerConfig)),errors.collect(cdk().propertyValidator("queues",cdk().listValidator(cdk().validateString))(properties.queues)),errors.collect(cdk().propertyValidator("scalingConfig",CfnEventSourceMappingScalingConfigPropertyValidator)(properties.scalingConfig)),errors.collect(cdk().propertyValidator("selfManagedEventSource",CfnEventSourceMappingSelfManagedEventSourcePropertyValidator)(properties.selfManagedEventSource)),errors.collect(cdk().propertyValidator("selfManagedKafkaEventSourceConfig",CfnEventSourceMappingSelfManagedKafkaEventSourceConfigPropertyValidator)(properties.selfManagedKafkaEventSourceConfig)),errors.collect(cdk().propertyValidator("sourceAccessConfigurations",cdk().listValidator(CfnEventSourceMappingSourceAccessConfigurationPropertyValidator))(properties.sourceAccessConfigurations)),errors.collect(cdk().propertyValidator("startingPosition",cdk().validateString)(properties.startingPosition)),errors.collect(cdk().propertyValidator("startingPositionTimestamp",cdk().validateNumber)(properties.startingPositionTimestamp)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("topics",cdk().listValidator(cdk().validateString))(properties.topics)),errors.collect(cdk().propertyValidator("tumblingWindowInSeconds",cdk().validateNumber)(properties.tumblingWindowInSeconds)),errors.wrap('supplied properties not correct for "CfnEventSourceMappingProps"')}function convertCfnEventSourceMappingPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventSourceMappingPropsValidator(properties).assertSuccess(),{AmazonManagedKafkaEventSourceConfig:convertCfnEventSourceMappingAmazonManagedKafkaEventSourceConfigPropertyToCloudFormation(properties.amazonManagedKafkaEventSourceConfig),BatchSize:cdk().numberToCloudFormation(properties.batchSize),BisectBatchOnFunctionError:cdk().booleanToCloudFormation(properties.bisectBatchOnFunctionError),DestinationConfig:convertCfnEventSourceMappingDestinationConfigPropertyToCloudFormation(properties.destinationConfig),DocumentDBEventSourceConfig:convertCfnEventSourceMappingDocumentDBEventSourceConfigPropertyToCloudFormation(properties.documentDbEventSourceConfig),Enabled:cdk().booleanToCloudFormation(properties.enabled),EventSourceArn:cdk().stringToCloudFormation(properties.eventSourceArn),FilterCriteria:convertCfnEventSourceMappingFilterCriteriaPropertyToCloudFormation(properties.filterCriteria),FunctionName:cdk().stringToCloudFormation(properties.functionName),FunctionResponseTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.functionResponseTypes),KmsKeyArn:cdk().stringToCloudFormation(properties.kmsKeyArn),LoggingConfig:convertCfnEventSourceMappingLoggingConfigPropertyToCloudFormation(properties.loggingConfig),MaximumBatchingWindowInSeconds:cdk().numberToCloudFormation(properties.maximumBatchingWindowInSeconds),MaximumRecordAgeInSeconds:cdk().numberToCloudFormation(properties.maximumRecordAgeInSeconds),MaximumRetryAttempts:cdk().numberToCloudFormation(properties.maximumRetryAttempts),MetricsConfig:convertCfnEventSourceMappingMetricsConfigPropertyToCloudFormation(properties.metricsConfig),ParallelizationFactor:cdk().numberToCloudFormation(properties.parallelizationFactor),ProvisionedPollerConfig:convertCfnEventSourceMappingProvisionedPollerConfigPropertyToCloudFormation(properties.provisionedPollerConfig),Queues:cdk().listMapper(cdk().stringToCloudFormation)(properties.queues),ScalingConfig:convertCfnEventSourceMappingScalingConfigPropertyToCloudFormation(properties.scalingConfig),SelfManagedEventSource:convertCfnEventSourceMappingSelfManagedEventSourcePropertyToCloudFormation(properties.selfManagedEventSource),SelfManagedKafkaEventSourceConfig:convertCfnEventSourceMappingSelfManagedKafkaEventSourceConfigPropertyToCloudFormation(properties.selfManagedKafkaEventSourceConfig),SourceAccessConfigurations:cdk().listMapper(convertCfnEventSourceMappingSourceAccessConfigurationPropertyToCloudFormation)(properties.sourceAccessConfigurations),StartingPosition:cdk().stringToCloudFormation(properties.startingPosition),StartingPositionTimestamp:cdk().numberToCloudFormation(properties.startingPositionTimestamp),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Topics:cdk().listMapper(cdk().stringToCloudFormation)(properties.topics),TumblingWindowInSeconds:cdk().numberToCloudFormation(properties.tumblingWindowInSeconds)}):properties}function CfnEventSourceMappingPropsFromCloudFormation(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("amazonManagedKafkaEventSourceConfig","AmazonManagedKafkaEventSourceConfig",properties.AmazonManagedKafkaEventSourceConfig!=null?CfnEventSourceMappingAmazonManagedKafkaEventSourceConfigPropertyFromCloudFormation(properties.AmazonManagedKafkaEventSourceConfig):void 0),ret.addPropertyResult("batchSize","BatchSize",properties.BatchSize!=null?cfn_parse().FromCloudFormation.getNumber(properties.BatchSize):void 0),ret.addPropertyResult("bisectBatchOnFunctionError","BisectBatchOnFunctionError",properties.BisectBatchOnFunctionError!=null?cfn_parse().FromCloudFormation.getBoolean(properties.BisectBatchOnFunctionError):void 0),ret.addPropertyResult("destinationConfig","DestinationConfig",properties.DestinationConfig!=null?CfnEventSourceMappingDestinationConfigPropertyFromCloudFormation(properties.DestinationConfig):void 0),ret.addPropertyResult("documentDbEventSourceConfig","DocumentDBEventSourceConfig",properties.DocumentDBEventSourceConfig!=null?CfnEventSourceMappingDocumentDBEventSourceConfigPropertyFromCloudFormation(properties.DocumentDBEventSourceConfig):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("eventSourceArn","EventSourceArn",properties.EventSourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.EventSourceArn):void 0),ret.addPropertyResult("filterCriteria","FilterCriteria",properties.FilterCriteria!=null?CfnEventSourceMappingFilterCriteriaPropertyFromCloudFormation(properties.FilterCriteria):void 0),ret.addPropertyResult("functionName","FunctionName",properties.FunctionName!=null?cfn_parse().FromCloudFormation.getString(properties.FunctionName):void 0),ret.addPropertyResult("functionResponseTypes","FunctionResponseTypes",properties.FunctionResponseTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.FunctionResponseTypes):void 0),ret.addPropertyResult("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addPropertyResult("loggingConfig","LoggingConfig",properties.LoggingConfig!=null?CfnEventSourceMappingLoggingConfigPropertyFromCloudFormation(properties.LoggingConfig):void 0),ret.addPropertyResult("maximumBatchingWindowInSeconds","MaximumBatchingWindowInSeconds",properties.MaximumBatchingWindowInSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaximumBatchingWindowInSeconds):void 0),ret.addPropertyResult("maximumRecordAgeInSeconds","MaximumRecordAgeInSeconds",properties.MaximumRecordAgeInSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaximumRecordAgeInSeconds):void 0),ret.addPropertyResult("maximumRetryAttempts","MaximumRetryAttempts",properties.MaximumRetryAttempts!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaximumRetryAttempts):void 0),ret.addPropertyResult("metricsConfig","MetricsConfig",properties.MetricsConfig!=null?CfnEventSourceMappingMetricsConfigPropertyFromCloudFormation(properties.MetricsConfig):void 0),ret.addPropertyResult("parallelizationFactor","ParallelizationFactor",properties.ParallelizationFactor!=null?cfn_parse().FromCloudFormation.getNumber(properties.ParallelizationFactor):void 0),ret.addPropertyResult("provisionedPollerConfig","ProvisionedPollerConfig",properties.ProvisionedPollerConfig!=null?CfnEventSourceMappingProvisionedPollerConfigPropertyFromCloudFormation(properties.ProvisionedPollerConfig):void 0),ret.addPropertyResult("queues","Queues",properties.Queues!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Queues):void 0),ret.addPropertyResult("scalingConfig","ScalingConfig",properties.ScalingConfig!=null?CfnEventSourceMappingScalingConfigPropertyFromCloudFormation(properties.ScalingConfig):void 0),ret.addPropertyResult("selfManagedEventSource","SelfManagedEventSource",properties.SelfManagedEventSource!=null?CfnEventSourceMappingSelfManagedEventSourcePropertyFromCloudFormation(properties.SelfManagedEventSource):void 0),ret.addPropertyResult("selfManagedKafkaEventSourceConfig","SelfManagedKafkaEventSourceConfig",properties.SelfManagedKafkaEventSourceConfig!=null?CfnEventSourceMappingSelfManagedKafkaEventSourceConfigPropertyFromCloudFormation(properties.SelfManagedKafkaEventSourceConfig):void 0),ret.addPropertyResult("sourceAccessConfigurations","SourceAccessConfigurations",properties.SourceAccessConfigurations!=null?cfn_parse().FromCloudFormation.getArray(CfnEventSourceMappingSourceAccessConfigurationPropertyFromCloudFormation)(properties.SourceAccessConfigurations):void 0),ret.addPropertyResult("startingPosition","StartingPosition",properties.StartingPosition!=null?cfn_parse().FromCloudFormation.getString(properties.StartingPosition):void 0),ret.addPropertyResult("startingPositionTimestamp","StartingPositionTimestamp",properties.StartingPositionTimestamp!=null?cfn_parse().FromCloudFormation.getNumber(properties.StartingPositionTimestamp):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("topics","Topics",properties.Topics!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Topics):void 0),ret.addPropertyResult("tumblingWindowInSeconds","TumblingWindowInSeconds",properties.TumblingWindowInSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.TumblingWindowInSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnFunction extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnFunction",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::Function";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnFunctionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnFunction(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 isCfnFunction(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnFunction.CFN_RESOURCE_TYPE_NAME}static fromFunctionArn(scope,id,arn){class Import extends cdk().Resource{functionRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName}").parse(arn2);this.functionRef={functionName:variables.FunctionName,functionArn:arn2}}}return new Import(scope,id,arn)}static fromFunctionName(scope,id,functionName){class Import extends cdk().Resource{functionRef;constructor(scope2,id2,functionName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:lambda:${Region}:${Account}:function:${FunctionName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,FunctionName:functionName2});super(scope2,id2,{environmentFromArn:arn}),this.functionRef={functionName:functionName2,functionArn:arn}}}return new Import(scope,id,functionName)}static arnForFunction(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_lambda_IFunctionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForFunction),error}return resource.functionRef.functionArn}_architectures;_capacityProviderConfig;_code;_codeSigningConfigArn;_deadLetterConfig;_description;_durableConfig;_environment;_ephemeralStorage;_fileSystemConfigs;_functionName;_functionScalingConfig;_handler;_imageConfig;_kmsKeyArn;_layers;_loggingConfig;_memorySize;_packageType;_publishToLatestPublished;_recursiveLoop;_reservedConcurrentExecutions;_role;_runtime;_runtimeManagementConfig;_snapStart;tags;_tagsRaw;_tenancyConfig;_timeout;_tracingConfig;_vpcConfig;cfnPropertyNames={architectures:"Architectures",capacityProviderConfig:"CapacityProviderConfig",code:"Code",codeSigningConfigArn:"CodeSigningConfigArn",deadLetterConfig:"DeadLetterConfig",description:"Description",durableConfig:"DurableConfig",environment:"Environment",ephemeralStorage:"EphemeralStorage",fileSystemConfigs:"FileSystemConfigs",functionName:"FunctionName",functionScalingConfig:"FunctionScalingConfig",handler:"Handler",imageConfig:"ImageConfig",kmsKeyArn:"KmsKeyArn",layers:"Layers",loggingConfig:"LoggingConfig",memorySize:"MemorySize",packageType:"PackageType",publishToLatestPublished:"PublishToLatestPublished",recursiveLoop:"RecursiveLoop",reservedConcurrentExecutions:"ReservedConcurrentExecutions",role:"Role",runtime:"Runtime",runtimeManagementConfig:"RuntimeManagementConfig",snapStart:"SnapStart",tags:"Tags",tenancyConfig:"TenancyConfig",timeout:"Timeout",tracingConfig:"TracingConfig",vpcConfig:"VpcConfig"};constructor(scope,id,props){super(scope,id,{type:CfnFunction.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnFunctionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnFunction),error}cdk().requireProperty(props,"code",this),cdk().requireProperty(props,"role",this),this._architectures=props.architectures,this._capacityProviderConfig=props.capacityProviderConfig,this._code=props.code,this._codeSigningConfigArn=cdk().getRefProperty(props.codeSigningConfigArn?.codeSigningConfigRef,"codeSigningConfigArn")??cdk().ensureStringOrUndefined(props.codeSigningConfigArn,"codeSigningConfigArn","lambda.ICodeSigningConfigRef | string"),this._deadLetterConfig=props.deadLetterConfig,this._description=props.description,this._durableConfig=props.durableConfig,this._environment=props.environment,this._ephemeralStorage=props.ephemeralStorage,this._fileSystemConfigs=props.fileSystemConfigs,this._functionName=props.functionName,this._functionScalingConfig=props.functionScalingConfig,this._handler=props.handler,this._imageConfig=props.imageConfig,this._kmsKeyArn=cdk().getRefProperty(props.kmsKeyArn?.keyRef,"keyArn")??cdk().ensureStringOrUndefined(props.kmsKeyArn,"kmsKeyArn","kms.IKeyRef | string"),this._layers=cdk().mapArrayInPlace(props.layers,item=>cdk().getRefProperty(item?.layerVersionRef,"layerVersionArn")??cdk().ensureStringOrUndefined(item,"layers","lambda.ILayerVersionRef | string")),this._loggingConfig=props.loggingConfig,this._memorySize=props.memorySize,this._packageType=props.packageType,this._publishToLatestPublished=props.publishToLatestPublished,this._recursiveLoop=props.recursiveLoop,this._reservedConcurrentExecutions=props.reservedConcurrentExecutions,this._role=cdk().getRefProperty(props.role?.roleRef,"roleArn")??cdk().ensureStringOrUndefined(props.role,"role","iam.IRoleRef | string"),this._runtime=props.runtime,this._runtimeManagementConfig=props.runtimeManagementConfig,this._snapStart=props.snapStart,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Lambda::Function",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags,this._tenancyConfig=props.tenancyConfig,this._timeout=props.timeout,this._tracingConfig=props.tracingConfig,this._vpcConfig=props.vpcConfig}get functionRef(){return{functionName:this.ref,functionArn:this.attrArn}}get architectures(){return this._architectures}set architectures(value){cdk().traceProperty(this.node,"Architectures"),this._architectures=value}get capacityProviderConfig(){return this._capacityProviderConfig}set capacityProviderConfig(value){cdk().traceProperty(this.node,"CapacityProviderConfig"),this._capacityProviderConfig=value}get code(){return this._code}set code(value){cdk().traceProperty(this.node,"Code"),this._code=value}get codeSigningConfigArn(){return this._codeSigningConfigArn}set codeSigningConfigArn(value){cdk().traceProperty(this.node,"CodeSigningConfigArn"),this._codeSigningConfigArn=value}get deadLetterConfig(){return this._deadLetterConfig}set deadLetterConfig(value){cdk().traceProperty(this.node,"DeadLetterConfig"),this._deadLetterConfig=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get durableConfig(){return this._durableConfig}set durableConfig(value){cdk().traceProperty(this.node,"DurableConfig"),this._durableConfig=value}get environment(){return this._environment}set environment(value){cdk().traceProperty(this.node,"Environment"),this._environment=value}get ephemeralStorage(){return this._ephemeralStorage}set ephemeralStorage(value){cdk().traceProperty(this.node,"EphemeralStorage"),this._ephemeralStorage=value}get fileSystemConfigs(){return this._fileSystemConfigs}set fileSystemConfigs(value){cdk().traceProperty(this.node,"FileSystemConfigs"),this._fileSystemConfigs=value}get functionName(){return this._functionName}set functionName(value){cdk().traceProperty(this.node,"FunctionName"),this._functionName=value}get functionScalingConfig(){return this._functionScalingConfig}set functionScalingConfig(value){cdk().traceProperty(this.node,"FunctionScalingConfig"),this._functionScalingConfig=value}get handler(){return this._handler}set handler(value){cdk().traceProperty(this.node,"Handler"),this._handler=value}get imageConfig(){return this._imageConfig}set imageConfig(value){cdk().traceProperty(this.node,"ImageConfig"),this._imageConfig=value}get kmsKeyArn(){return this._kmsKeyArn}set kmsKeyArn(value){cdk().traceProperty(this.node,"KmsKeyArn"),this._kmsKeyArn=value}get layers(){return this._layers}set layers(value){cdk().traceProperty(this.node,"Layers"),this._layers=value}get loggingConfig(){return this._loggingConfig}set loggingConfig(value){cdk().traceProperty(this.node,"LoggingConfig"),this._loggingConfig=value}get memorySize(){return this._memorySize}set memorySize(value){cdk().traceProperty(this.node,"MemorySize"),this._memorySize=value}get packageType(){return this._packageType}set packageType(value){cdk().traceProperty(this.node,"PackageType"),this._packageType=value}get publishToLatestPublished(){return this._publishToLatestPublished}set publishToLatestPublished(value){cdk().traceProperty(this.node,"PublishToLatestPublished"),this._publishToLatestPublished=value}get recursiveLoop(){return this._recursiveLoop}set recursiveLoop(value){cdk().traceProperty(this.node,"RecursiveLoop"),this._recursiveLoop=value}get reservedConcurrentExecutions(){return this._reservedConcurrentExecutions}set reservedConcurrentExecutions(value){cdk().traceProperty(this.node,"ReservedConcurrentExecutions"),this._reservedConcurrentExecutions=value}get role(){return this._role}set role(value){cdk().traceProperty(this.node,"Role"),this._role=value}get runtime(){return this._runtime}set runtime(value){cdk().traceProperty(this.node,"Runtime"),this._runtime=value}get runtimeManagementConfig(){return this._runtimeManagementConfig}set runtimeManagementConfig(value){cdk().traceProperty(this.node,"RuntimeManagementConfig"),this._runtimeManagementConfig=value}get snapStart(){return this._snapStart}set snapStart(value){cdk().traceProperty(this.node,"SnapStart"),this._snapStart=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get tenancyConfig(){return this._tenancyConfig}set tenancyConfig(value){cdk().traceProperty(this.node,"TenancyConfig"),this._tenancyConfig=value}get timeout(){return this._timeout}set timeout(value){cdk().traceProperty(this.node,"Timeout"),this._timeout=value}get tracingConfig(){return this._tracingConfig}set tracingConfig(value){cdk().traceProperty(this.node,"TracingConfig"),this._tracingConfig=value}get vpcConfig(){return this._vpcConfig}set vpcConfig(value){cdk().traceProperty(this.node,"VpcConfig"),this._vpcConfig=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrSnapStartResponse(){return this.getAtt("SnapStartResponse")}get attrSnapStartResponseApplyOn(){return cdk().Token.asString(this.getAtt("SnapStartResponse.ApplyOn",cdk().ResolutionTypeHint.STRING))}get attrSnapStartResponseOptimizationStatus(){return cdk().Token.asString(this.getAtt("SnapStartResponse.OptimizationStatus",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{architectures:this._architectures,capacityProviderConfig:this._capacityProviderConfig,code:this._code,codeSigningConfigArn:this._codeSigningConfigArn,deadLetterConfig:this._deadLetterConfig,description:this._description,durableConfig:this._durableConfig,environment:this._environment,ephemeralStorage:this._ephemeralStorage,fileSystemConfigs:this._fileSystemConfigs,functionName:this._functionName,functionScalingConfig:this._functionScalingConfig,handler:this._handler,imageConfig:this._imageConfig,kmsKeyArn:this._kmsKeyArn,layers:this._layers,loggingConfig:this._loggingConfig,memorySize:this._memorySize,packageType:this._packageType,publishToLatestPublished:this._publishToLatestPublished,recursiveLoop:this._recursiveLoop,reservedConcurrentExecutions:this._reservedConcurrentExecutions,role:this._role,runtime:this._runtime,runtimeManagementConfig:this._runtimeManagementConfig,snapStart:this._snapStart,tags:this.tags.renderTags(),tenancyConfig:this._tenancyConfig,timeout:this._timeout,tracingConfig:this._tracingConfig,vpcConfig:this._vpcConfig}}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",CfnFunction.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnFunctionPropsToCloudFormation(props)}}exports.CfnFunction=CfnFunction;function CfnFunctionImageConfigPropertyValidator(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("command",cdk().listValidator(cdk().validateString))(properties.command)),errors.collect(cdk().propertyValidator("entryPoint",cdk().listValidator(cdk().validateString))(properties.entryPoint)),errors.collect(cdk().propertyValidator("workingDirectory",cdk().validateString)(properties.workingDirectory)),errors.wrap('supplied properties not correct for "ImageConfigProperty"')}function convertCfnFunctionImageConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionImageConfigPropertyValidator(properties).assertSuccess(),{Command:cdk().listMapper(cdk().stringToCloudFormation)(properties.command),EntryPoint:cdk().listMapper(cdk().stringToCloudFormation)(properties.entryPoint),WorkingDirectory:cdk().stringToCloudFormation(properties.workingDirectory)}):properties}function CfnFunctionImageConfigPropertyFromCloudFormation(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("command","Command",properties.Command!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Command):void 0),ret.addPropertyResult("entryPoint","EntryPoint",properties.EntryPoint!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EntryPoint):void 0),ret.addPropertyResult("workingDirectory","WorkingDirectory",properties.WorkingDirectory!=null?cfn_parse().FromCloudFormation.getString(properties.WorkingDirectory):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionTracingConfigPropertyValidator(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("mode",cdk().validateString)(properties.mode)),errors.wrap('supplied properties not correct for "TracingConfigProperty"')}function convertCfnFunctionTracingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionTracingConfigPropertyValidator(properties).assertSuccess(),{Mode:cdk().stringToCloudFormation(properties.mode)}):properties}function CfnFunctionTracingConfigPropertyFromCloudFormation(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("mode","Mode",properties.Mode!=null?cfn_parse().FromCloudFormation.getString(properties.Mode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionVpcConfigPropertyValidator(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("ipv6AllowedForDualStack",cdk().validateBoolean)(properties.ipv6AllowedForDualStack)),errors.collect(cdk().propertyValidator("securityGroupIds",cdk().listValidator(cdk().validateString))(properties.securityGroupIds)),errors.collect(cdk().propertyValidator("subnetIds",cdk().listValidator(cdk().validateString))(properties.subnetIds)),errors.wrap('supplied properties not correct for "VpcConfigProperty"')}function convertCfnFunctionVpcConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionVpcConfigPropertyValidator(properties).assertSuccess(),{Ipv6AllowedForDualStack:cdk().booleanToCloudFormation(properties.ipv6AllowedForDualStack),SecurityGroupIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroupIds),SubnetIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.subnetIds)}):properties}function CfnFunctionVpcConfigPropertyFromCloudFormation(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("ipv6AllowedForDualStack","Ipv6AllowedForDualStack",properties.Ipv6AllowedForDualStack!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Ipv6AllowedForDualStack):void 0),ret.addPropertyResult("securityGroupIds","SecurityGroupIds",properties.SecurityGroupIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SecurityGroupIds):void 0),ret.addPropertyResult("subnetIds","SubnetIds",properties.SubnetIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SubnetIds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionDeadLetterConfigPropertyValidator(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("targetArn",cdk().validateString)(properties.targetArn)),errors.wrap('supplied properties not correct for "DeadLetterConfigProperty"')}function convertCfnFunctionDeadLetterConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionDeadLetterConfigPropertyValidator(properties).assertSuccess(),{TargetArn:cdk().stringToCloudFormation(properties.targetArn)}):properties}function CfnFunctionDeadLetterConfigPropertyFromCloudFormation(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("targetArn","TargetArn",properties.TargetArn!=null?cfn_parse().FromCloudFormation.getString(properties.TargetArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionRuntimeManagementConfigPropertyValidator(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("runtimeVersionArn",cdk().validateString)(properties.runtimeVersionArn)),errors.collect(cdk().propertyValidator("updateRuntimeOn",cdk().requiredValidator)(properties.updateRuntimeOn)),errors.collect(cdk().propertyValidator("updateRuntimeOn",cdk().validateString)(properties.updateRuntimeOn)),errors.wrap('supplied properties not correct for "RuntimeManagementConfigProperty"')}function convertCfnFunctionRuntimeManagementConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionRuntimeManagementConfigPropertyValidator(properties).assertSuccess(),{RuntimeVersionArn:cdk().stringToCloudFormation(properties.runtimeVersionArn),UpdateRuntimeOn:cdk().stringToCloudFormation(properties.updateRuntimeOn)}):properties}function CfnFunctionRuntimeManagementConfigPropertyFromCloudFormation(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("runtimeVersionArn","RuntimeVersionArn",properties.RuntimeVersionArn!=null?cfn_parse().FromCloudFormation.getString(properties.RuntimeVersionArn):void 0),ret.addPropertyResult("updateRuntimeOn","UpdateRuntimeOn",properties.UpdateRuntimeOn!=null?cfn_parse().FromCloudFormation.getString(properties.UpdateRuntimeOn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionSnapStartPropertyValidator(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("applyOn",cdk().requiredValidator)(properties.applyOn)),errors.collect(cdk().propertyValidator("applyOn",cdk().validateString)(properties.applyOn)),errors.wrap('supplied properties not correct for "SnapStartProperty"')}function convertCfnFunctionSnapStartPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionSnapStartPropertyValidator(properties).assertSuccess(),{ApplyOn:cdk().stringToCloudFormation(properties.applyOn)}):properties}function CfnFunctionSnapStartPropertyFromCloudFormation(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("applyOn","ApplyOn",properties.ApplyOn!=null?cfn_parse().FromCloudFormation.getString(properties.ApplyOn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionCodePropertyValidator(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("imageUri",cdk().validateString)(properties.imageUri)),errors.collect(cdk().propertyValidator("s3Bucket",cdk().validateString)(properties.s3Bucket)),errors.collect(cdk().propertyValidator("s3Key",cdk().validateString)(properties.s3Key)),errors.collect(cdk().propertyValidator("s3ObjectStorageMode",cdk().validateString)(properties.s3ObjectStorageMode)),errors.collect(cdk().propertyValidator("s3ObjectVersion",cdk().validateString)(properties.s3ObjectVersion)),errors.collect(cdk().propertyValidator("sourceKmsKeyArn",cdk().validateString)(properties.sourceKmsKeyArn)),errors.collect(cdk().propertyValidator("zipFile",cdk().validateString)(properties.zipFile)),errors.wrap('supplied properties not correct for "CodeProperty"')}function convertCfnFunctionCodePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionCodePropertyValidator(properties).assertSuccess(),{ImageUri:cdk().stringToCloudFormation(properties.imageUri),S3Bucket:cdk().stringToCloudFormation(properties.s3Bucket),S3Key:cdk().stringToCloudFormation(properties.s3Key),S3ObjectStorageMode:cdk().stringToCloudFormation(properties.s3ObjectStorageMode),S3ObjectVersion:cdk().stringToCloudFormation(properties.s3ObjectVersion),SourceKMSKeyArn:cdk().stringToCloudFormation(properties.sourceKmsKeyArn),ZipFile:cdk().stringToCloudFormation(properties.zipFile)}):properties}function CfnFunctionCodePropertyFromCloudFormation(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("imageUri","ImageUri",properties.ImageUri!=null?cfn_parse().FromCloudFormation.getString(properties.ImageUri):void 0),ret.addPropertyResult("s3Bucket","S3Bucket",properties.S3Bucket!=null?cfn_parse().FromCloudFormation.getString(properties.S3Bucket):void 0),ret.addPropertyResult("s3Key","S3Key",properties.S3Key!=null?cfn_parse().FromCloudFormation.getString(properties.S3Key):void 0),ret.addPropertyResult("s3ObjectStorageMode","S3ObjectStorageMode",properties.S3ObjectStorageMode!=null?cfn_parse().FromCloudFormation.getString(properties.S3ObjectStorageMode):void 0),ret.addPropertyResult("s3ObjectVersion","S3ObjectVersion",properties.S3ObjectVersion!=null?cfn_parse().FromCloudFormation.getString(properties.S3ObjectVersion):void 0),ret.addPropertyResult("sourceKmsKeyArn","SourceKMSKeyArn",properties.SourceKMSKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceKMSKeyArn):void 0),ret.addPropertyResult("zipFile","ZipFile",properties.ZipFile!=null?cfn_parse().FromCloudFormation.getString(properties.ZipFile):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionFileSystemConfigPropertyValidator(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("arn",cdk().requiredValidator)(properties.arn)),errors.collect(cdk().propertyValidator("arn",cdk().validateString)(properties.arn)),errors.collect(cdk().propertyValidator("localMountPath",cdk().requiredValidator)(properties.localMountPath)),errors.collect(cdk().propertyValidator("localMountPath",cdk().validateString)(properties.localMountPath)),errors.wrap('supplied properties not correct for "FileSystemConfigProperty"')}function convertCfnFunctionFileSystemConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionFileSystemConfigPropertyValidator(properties).assertSuccess(),{Arn:cdk().stringToCloudFormation(properties.arn),LocalMountPath:cdk().stringToCloudFormation(properties.localMountPath)}):properties}function CfnFunctionFileSystemConfigPropertyFromCloudFormation(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("arn","Arn",properties.Arn!=null?cfn_parse().FromCloudFormation.getString(properties.Arn):void 0),ret.addPropertyResult("localMountPath","LocalMountPath",properties.LocalMountPath!=null?cfn_parse().FromCloudFormation.getString(properties.LocalMountPath):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionEnvironmentPropertyValidator(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("variables",cdk().hashValidator(cdk().validateString))(properties.variables)),errors.wrap('supplied properties not correct for "EnvironmentProperty"')}function convertCfnFunctionEnvironmentPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionEnvironmentPropertyValidator(properties).assertSuccess(),{Variables:cdk().hashMapper(cdk().stringToCloudFormation)(properties.variables)}):properties}function CfnFunctionEnvironmentPropertyFromCloudFormation(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("variables","Variables",properties.Variables!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Variables):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionEphemeralStoragePropertyValidator(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("size",cdk().requiredValidator)(properties.size)),errors.collect(cdk().propertyValidator("size",cdk().validateNumber)(properties.size)),errors.wrap('supplied properties not correct for "EphemeralStorageProperty"')}function convertCfnFunctionEphemeralStoragePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionEphemeralStoragePropertyValidator(properties).assertSuccess(),{Size:cdk().numberToCloudFormation(properties.size)}):properties}function CfnFunctionEphemeralStoragePropertyFromCloudFormation(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("size","Size",properties.Size!=null?cfn_parse().FromCloudFormation.getNumber(properties.Size):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionFunctionScalingConfigPropertyValidator(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("maxExecutionEnvironments",cdk().validateNumber)(properties.maxExecutionEnvironments)),errors.collect(cdk().propertyValidator("minExecutionEnvironments",cdk().validateNumber)(properties.minExecutionEnvironments)),errors.wrap('supplied properties not correct for "FunctionScalingConfigProperty"')}function convertCfnFunctionFunctionScalingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionFunctionScalingConfigPropertyValidator(properties).assertSuccess(),{MaxExecutionEnvironments:cdk().numberToCloudFormation(properties.maxExecutionEnvironments),MinExecutionEnvironments:cdk().numberToCloudFormation(properties.minExecutionEnvironments)}):properties}function CfnFunctionFunctionScalingConfigPropertyFromCloudFormation(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("maxExecutionEnvironments","MaxExecutionEnvironments",properties.MaxExecutionEnvironments!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxExecutionEnvironments):void 0),ret.addPropertyResult("minExecutionEnvironments","MinExecutionEnvironments",properties.MinExecutionEnvironments!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinExecutionEnvironments):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionDurableConfigPropertyValidator(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("executionTimeout",cdk().requiredValidator)(properties.executionTimeout)),errors.collect(cdk().propertyValidator("executionTimeout",cdk().validateNumber)(properties.executionTimeout)),errors.collect(cdk().propertyValidator("retentionPeriodInDays",cdk().validateNumber)(properties.retentionPeriodInDays)),errors.wrap('supplied properties not correct for "DurableConfigProperty"')}function convertCfnFunctionDurableConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionDurableConfigPropertyValidator(properties).assertSuccess(),{ExecutionTimeout:cdk().numberToCloudFormation(properties.executionTimeout),RetentionPeriodInDays:cdk().numberToCloudFormation(properties.retentionPeriodInDays)}):properties}function CfnFunctionDurableConfigPropertyFromCloudFormation(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("executionTimeout","ExecutionTimeout",properties.ExecutionTimeout!=null?cfn_parse().FromCloudFormation.getNumber(properties.ExecutionTimeout):void 0),ret.addPropertyResult("retentionPeriodInDays","RetentionPeriodInDays",properties.RetentionPeriodInDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.RetentionPeriodInDays):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionTenancyConfigPropertyValidator(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("tenantIsolationMode",cdk().requiredValidator)(properties.tenantIsolationMode)),errors.collect(cdk().propertyValidator("tenantIsolationMode",cdk().validateString)(properties.tenantIsolationMode)),errors.wrap('supplied properties not correct for "TenancyConfigProperty"')}function convertCfnFunctionTenancyConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionTenancyConfigPropertyValidator(properties).assertSuccess(),{TenantIsolationMode:cdk().stringToCloudFormation(properties.tenantIsolationMode)}):properties}function CfnFunctionTenancyConfigPropertyFromCloudFormation(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("tenantIsolationMode","TenantIsolationMode",properties.TenantIsolationMode!=null?cfn_parse().FromCloudFormation.getString(properties.TenantIsolationMode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionLambdaManagedInstancesCapacityProviderConfigPropertyValidator(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("capacityProviderArn",cdk().requiredValidator)(properties.capacityProviderArn)),errors.collect(cdk().propertyValidator("capacityProviderArn",cdk().validateString)(properties.capacityProviderArn)),errors.collect(cdk().propertyValidator("executionEnvironmentMemoryGiBPerVCpu",cdk().validateNumber)(properties.executionEnvironmentMemoryGiBPerVCpu)),errors.collect(cdk().propertyValidator("perExecutionEnvironmentMaxConcurrency",cdk().validateNumber)(properties.perExecutionEnvironmentMaxConcurrency)),errors.wrap('supplied properties not correct for "LambdaManagedInstancesCapacityProviderConfigProperty"')}function convertCfnFunctionLambdaManagedInstancesCapacityProviderConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionLambdaManagedInstancesCapacityProviderConfigPropertyValidator(properties).assertSuccess(),{CapacityProviderArn:cdk().stringToCloudFormation(properties.capacityProviderArn),ExecutionEnvironmentMemoryGiBPerVCpu:cdk().numberToCloudFormation(properties.executionEnvironmentMemoryGiBPerVCpu),PerExecutionEnvironmentMaxConcurrency:cdk().numberToCloudFormation(properties.perExecutionEnvironmentMaxConcurrency)}):properties}function CfnFunctionLambdaManagedInstancesCapacityProviderConfigPropertyFromCloudFormation(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("capacityProviderArn","CapacityProviderArn",properties.CapacityProviderArn!=null?cfn_parse().FromCloudFormation.getString(properties.CapacityProviderArn):void 0),ret.addPropertyResult("executionEnvironmentMemoryGiBPerVCpu","ExecutionEnvironmentMemoryGiBPerVCpu",properties.ExecutionEnvironmentMemoryGiBPerVCpu!=null?cfn_parse().FromCloudFormation.getNumber(properties.ExecutionEnvironmentMemoryGiBPerVCpu):void 0),ret.addPropertyResult("perExecutionEnvironmentMaxConcurrency","PerExecutionEnvironmentMaxConcurrency",properties.PerExecutionEnvironmentMaxConcurrency!=null?cfn_parse().FromCloudFormation.getNumber(properties.PerExecutionEnvironmentMaxConcurrency):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionCapacityProviderConfigPropertyValidator(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("lambdaManagedInstancesCapacityProviderConfig",cdk().requiredValidator)(properties.lambdaManagedInstancesCapacityProviderConfig)),errors.collect(cdk().propertyValidator("lambdaManagedInstancesCapacityProviderConfig",CfnFunctionLambdaManagedInstancesCapacityProviderConfigPropertyValidator)(properties.lambdaManagedInstancesCapacityProviderConfig)),errors.wrap('supplied properties not correct for "CapacityProviderConfigProperty"')}function convertCfnFunctionCapacityProviderConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionCapacityProviderConfigPropertyValidator(properties).assertSuccess(),{LambdaManagedInstancesCapacityProviderConfig:convertCfnFunctionLambdaManagedInstancesCapacityProviderConfigPropertyToCloudFormation(properties.lambdaManagedInstancesCapacityProviderConfig)}):properties}function CfnFunctionCapacityProviderConfigPropertyFromCloudFormation(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("lambdaManagedInstancesCapacityProviderConfig","LambdaManagedInstancesCapacityProviderConfig",properties.LambdaManagedInstancesCapacityProviderConfig!=null?CfnFunctionLambdaManagedInstancesCapacityProviderConfigPropertyFromCloudFormation(properties.LambdaManagedInstancesCapacityProviderConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionLoggingConfigPropertyValidator(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("applicationLogLevel",cdk().validateString)(properties.applicationLogLevel)),errors.collect(cdk().propertyValidator("logFormat",cdk().validateString)(properties.logFormat)),errors.collect(cdk().propertyValidator("logGroup",cdk().validateString)(properties.logGroup)),errors.collect(cdk().propertyValidator("systemLogLevel",cdk().validateString)(properties.systemLogLevel)),errors.wrap('supplied properties not correct for "LoggingConfigProperty"')}function convertCfnFunctionLoggingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionLoggingConfigPropertyValidator(properties).assertSuccess(),{ApplicationLogLevel:cdk().stringToCloudFormation(properties.applicationLogLevel),LogFormat:cdk().stringToCloudFormation(properties.logFormat),LogGroup:cdk().stringToCloudFormation(properties.logGroup),SystemLogLevel:cdk().stringToCloudFormation(properties.systemLogLevel)}):properties}function CfnFunctionLoggingConfigPropertyFromCloudFormation(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("applicationLogLevel","ApplicationLogLevel",properties.ApplicationLogLevel!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationLogLevel):void 0),ret.addPropertyResult("logFormat","LogFormat",properties.LogFormat!=null?cfn_parse().FromCloudFormation.getString(properties.LogFormat):void 0),ret.addPropertyResult("logGroup","LogGroup",properties.LogGroup!=null?cfn_parse().FromCloudFormation.getString(properties.LogGroup):void 0),ret.addPropertyResult("systemLogLevel","SystemLogLevel",properties.SystemLogLevel!=null?cfn_parse().FromCloudFormation.getString(properties.SystemLogLevel):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionSnapStartResponsePropertyValidator(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("applyOn",cdk().validateString)(properties.applyOn)),errors.collect(cdk().propertyValidator("optimizationStatus",cdk().validateString)(properties.optimizationStatus)),errors.wrap('supplied properties not correct for "SnapStartResponseProperty"')}function convertCfnFunctionSnapStartResponsePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionSnapStartResponsePropertyValidator(properties).assertSuccess(),{ApplyOn:cdk().stringToCloudFormation(properties.applyOn),OptimizationStatus:cdk().stringToCloudFormation(properties.optimizationStatus)}):properties}function CfnFunctionSnapStartResponsePropertyFromCloudFormation(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("applyOn","ApplyOn",properties.ApplyOn!=null?cfn_parse().FromCloudFormation.getString(properties.ApplyOn):void 0),ret.addPropertyResult("optimizationStatus","OptimizationStatus",properties.OptimizationStatus!=null?cfn_parse().FromCloudFormation.getString(properties.OptimizationStatus):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFunctionPropsValidator(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("architectures",cdk().listValidator(cdk().validateString))(properties.architectures)),errors.collect(cdk().propertyValidator("capacityProviderConfig",CfnFunctionCapacityProviderConfigPropertyValidator)(properties.capacityProviderConfig)),errors.collect(cdk().propertyValidator("code",cdk().requiredValidator)(properties.code)),errors.collect(cdk().propertyValidator("code",CfnFunctionCodePropertyValidator)(properties.code)),errors.collect(cdk().propertyValidator("codeSigningConfigArn",cdk().validateString)(properties.codeSigningConfigArn)),errors.collect(cdk().propertyValidator("deadLetterConfig",CfnFunctionDeadLetterConfigPropertyValidator)(properties.deadLetterConfig)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("durableConfig",CfnFunctionDurableConfigPropertyValidator)(properties.durableConfig)),errors.collect(cdk().propertyValidator("environment",CfnFunctionEnvironmentPropertyValidator)(properties.environment)),errors.collect(cdk().propertyValidator("ephemeralStorage",CfnFunctionEphemeralStoragePropertyValidator)(properties.ephemeralStorage)),errors.collect(cdk().propertyValidator("fileSystemConfigs",cdk().listValidator(CfnFunctionFileSystemConfigPropertyValidator))(properties.fileSystemConfigs)),errors.collect(cdk().propertyValidator("functionName",cdk().validateString)(properties.functionName)),errors.collect(cdk().propertyValidator("functionScalingConfig",CfnFunctionFunctionScalingConfigPropertyValidator)(properties.functionScalingConfig)),errors.collect(cdk().propertyValidator("handler",cdk().validateString)(properties.handler)),errors.collect(cdk().propertyValidator("imageConfig",CfnFunctionImageConfigPropertyValidator)(properties.imageConfig)),errors.collect(cdk().propertyValidator("kmsKeyArn",cdk().validateString)(properties.kmsKeyArn)),errors.collect(cdk().propertyValidator("layers",cdk().listValidator(cdk().validateString))(properties.layers)),errors.collect(cdk().propertyValidator("loggingConfig",CfnFunctionLoggingConfigPropertyValidator)(properties.loggingConfig)),errors.collect(cdk().propertyValidator("memorySize",cdk().validateNumber)(properties.memorySize)),errors.collect(cdk().propertyValidator("packageType",cdk().validateString)(properties.packageType)),errors.collect(cdk().propertyValidator("publishToLatestPublished",cdk().validateBoolean)(properties.publishToLatestPublished)),errors.collect(cdk().propertyValidator("recursiveLoop",cdk().validateString)(properties.recursiveLoop)),errors.collect(cdk().propertyValidator("reservedConcurrentExecutions",cdk().validateNumber)(properties.reservedConcurrentExecutions)),errors.collect(cdk().propertyValidator("role",cdk().requiredValidator)(properties.role)),errors.collect(cdk().propertyValidator("role",cdk().validateString)(properties.role)),errors.collect(cdk().propertyValidator("runtime",cdk().validateString)(properties.runtime)),errors.collect(cdk().propertyValidator("runtimeManagementConfig",CfnFunctionRuntimeManagementConfigPropertyValidator)(properties.runtimeManagementConfig)),errors.collect(cdk().propertyValidator("snapStart",CfnFunctionSnapStartPropertyValidator)(properties.snapStart)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("tenancyConfig",CfnFunctionTenancyConfigPropertyValidator)(properties.tenancyConfig)),errors.collect(cdk().propertyValidator("timeout",cdk().validateNumber)(properties.timeout)),errors.collect(cdk().propertyValidator("tracingConfig",CfnFunctionTracingConfigPropertyValidator)(properties.tracingConfig)),errors.collect(cdk().propertyValidator("vpcConfig",CfnFunctionVpcConfigPropertyValidator)(properties.vpcConfig)),errors.wrap('supplied properties not correct for "CfnFunctionProps"')}function convertCfnFunctionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnFunctionPropsValidator(properties).assertSuccess(),{Architectures:cdk().listMapper(cdk().stringToCloudFormation)(properties.architectures),CapacityProviderConfig:convertCfnFunctionCapacityProviderConfigPropertyToCloudFormation(properties.capacityProviderConfig),Code:convertCfnFunctionCodePropertyToCloudFormation(properties.code),CodeSigningConfigArn:cdk().stringToCloudFormation(properties.codeSigningConfigArn),DeadLetterConfig:convertCfnFunctionDeadLetterConfigPropertyToCloudFormation(properties.deadLetterConfig),Description:cdk().stringToCloudFormation(properties.description),DurableConfig:convertCfnFunctionDurableConfigPropertyToCloudFormation(properties.durableConfig),Environment:convertCfnFunctionEnvironmentPropertyToCloudFormation(properties.environment),EphemeralStorage:convertCfnFunctionEphemeralStoragePropertyToCloudFormation(properties.ephemeralStorage),FileSystemConfigs:cdk().listMapper(convertCfnFunctionFileSystemConfigPropertyToCloudFormation)(properties.fileSystemConfigs),FunctionName:cdk().stringToCloudFormation(properties.functionName),FunctionScalingConfig:convertCfnFunctionFunctionScalingConfigPropertyToCloudFormation(properties.functionScalingConfig),Handler:cdk().stringToCloudFormation(properties.handler),ImageConfig:convertCfnFunctionImageConfigPropertyToCloudFormation(properties.imageConfig),KmsKeyArn:cdk().stringToCloudFormation(properties.kmsKeyArn),Layers:cdk().listMapper(cdk().stringToCloudFormation)(properties.layers),LoggingConfig:convertCfnFunctionLoggingConfigPropertyToCloudFormation(properties.loggingConfig),MemorySize:cdk().numberToCloudFormation(properties.memorySize),PackageType:cdk().stringToCloudFormation(properties.packageType),PublishToLatestPublished:cdk().booleanToCloudFormation(properties.publishToLatestPublished),RecursiveLoop:cdk().stringToCloudFormation(properties.recursiveLoop),ReservedConcurrentExecutions:cdk().numberToCloudFormation(properties.reservedConcurrentExecutions),Role:cdk().stringToCloudFormation(properties.role),Runtime:cdk().stringToCloudFormation(properties.runtime),RuntimeManagementConfig:convertCfnFunctionRuntimeManagementConfigPropertyToCloudFormation(properties.runtimeManagementConfig),SnapStart:convertCfnFunctionSnapStartPropertyToCloudFormation(properties.snapStart),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),TenancyConfig:convertCfnFunctionTenancyConfigPropertyToCloudFormation(properties.tenancyConfig),Timeout:cdk().numberToCloudFormation(properties.timeout),TracingConfig:convertCfnFunctionTracingConfigPropertyToCloudFormation(properties.tracingConfig),VpcConfig:convertCfnFunctionVpcConfigPropertyToCloudFormation(properties.vpcConfig)}):properties}function CfnFunctionPropsFromCloudFormation(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("architectures","Architectures",properties.Architectures!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Architectures):void 0),ret.addPropertyResult("capacityProviderConfig","CapacityProviderConfig",properties.CapacityProviderConfig!=null?CfnFunctionCapacityProviderConfigPropertyFromCloudFormation(properties.CapacityProviderConfig):void 0),ret.addPropertyResult("code","Code",properties.Code!=null?CfnFunctionCodePropertyFromCloudFormation(properties.Code):void 0),ret.addPropertyResult("codeSigningConfigArn","CodeSigningConfigArn",properties.CodeSigningConfigArn!=null?cfn_parse().FromCloudFormation.getString(properties.CodeSigningConfigArn):void 0),ret.addPropertyResult("deadLetterConfig","DeadLetterConfig",properties.DeadLetterConfig!=null?CfnFunctionDeadLetterConfigPropertyFromCloudFormation(properties.DeadLetterConfig):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("durableConfig","DurableConfig",properties.DurableConfig!=null?CfnFunctionDurableConfigPropertyFromCloudFormation(properties.DurableConfig):void 0),ret.addPropertyResult("environment","Environment",properties.Environment!=null?CfnFunctionEnvironmentPropertyFromCloudFormation(properties.Environment):void 0),ret.addPropertyResult("ephemeralStorage","EphemeralStorage",properties.EphemeralStorage!=null?CfnFunctionEphemeralStoragePropertyFromCloudFormation(properties.EphemeralStorage):void 0),ret.addPropertyResult("fileSystemConfigs","FileSystemConfigs",properties.FileSystemConfigs!=null?cfn_parse().FromCloudFormation.getArray(CfnFunctionFileSystemConfigPropertyFromCloudFormation)(properties.FileSystemConfigs):void 0),ret.addPropertyResult("functionName","FunctionName",properties.FunctionName!=null?cfn_parse().FromCloudFormation.getString(properties.FunctionName):void 0),ret.addPropertyResult("functionScalingConfig","FunctionScalingConfig",properties.FunctionScalingConfig!=null?CfnFunctionFunctionScalingConfigPropertyFromCloudFormation(properties.FunctionScalingConfig):void 0),ret.addPropertyResult("handler","Handler",properties.Handler!=null?cfn_parse().FromCloudFormation.getString(properties.Handler):void 0),ret.addPropertyResult("imageConfig","ImageConfig",properties.ImageConfig!=null?CfnFunctionImageConfigPropertyFromCloudFormation(properties.ImageConfig):void 0),ret.addPropertyResult("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addPropertyResult("layers","Layers",properties.Layers!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Layers):void 0),ret.addPropertyResult("loggingConfig","LoggingConfig",properties.LoggingConfig!=null?CfnFunctionLoggingConfigPropertyFromCloudFormation(properties.LoggingConfig):void 0),ret.addPropertyResult("memorySize","MemorySize",properties.MemorySize!=null?cfn_parse().FromCloudFormation.getNumber(properties.MemorySize):void 0),ret.addPropertyResult("packageType","PackageType",properties.PackageType!=null?cfn_parse().FromCloudFormation.getString(properties.PackageType):void 0),ret.addPropertyResult("publishToLatestPublished","PublishToLatestPublished",properties.PublishToLatestPublished!=null?cfn_parse().FromCloudFormation.getBoolean(properties.PublishToLatestPublished):void 0),ret.addPropertyResult("recursiveLoop","RecursiveLoop",properties.RecursiveLoop!=null?cfn_parse().FromCloudFormation.getString(properties.RecursiveLoop):void 0),ret.addPropertyResult("reservedConcurrentExecutions","ReservedConcurrentExecutions",properties.ReservedConcurrentExecutions!=null?cfn_parse().FromCloudFormation.getNumber(properties.ReservedConcurrentExecutions):void 0),ret.addPropertyResult("role","Role",properties.Role!=null?cfn_parse().FromCloudFormation.getString(properties.Role):void 0),ret.addPropertyResult("runtime","Runtime",properties.Runtime!=null?cfn_parse().FromCloudFormation.getString(properties.Runtime):void 0),ret.addPropertyResult("runtimeManagementConfig","RuntimeManagementConfig",properties.RuntimeManagementConfig!=null?CfnFunctionRuntimeManagementConfigPropertyFromCloudFormation(properties.RuntimeManagementConfig):void 0),ret.addPropertyResult("snapStart","SnapStart",properties.SnapStart!=null?CfnFunctionSnapStartPropertyFromCloudFormation(properties.SnapStart):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("tenancyConfig","TenancyConfig",properties.TenancyConfig!=null?CfnFunctionTenancyConfigPropertyFromCloudFormation(properties.TenancyConfig):void 0),ret.addPropertyResult("timeout","Timeout",properties.Timeout!=null?cfn_parse().FromCloudFormation.getNumber(properties.Timeout):void 0),ret.addPropertyResult("tracingConfig","TracingConfig",properties.TracingConfig!=null?CfnFunctionTracingConfigPropertyFromCloudFormation(properties.TracingConfig):void 0),ret.addPropertyResult("vpcConfig","VpcConfig",properties.VpcConfig!=null?CfnFunctionVpcConfigPropertyFromCloudFormation(properties.VpcConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLayerVersion extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnLayerVersion",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::LayerVersion";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLayerVersionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLayerVersion(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 isCfnLayerVersion(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLayerVersion.CFN_RESOURCE_TYPE_NAME}static arnForLayerVersion(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_lambda_ILayerVersionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForLayerVersion),error}return resource.layerVersionRef.layerVersionArn}_compatibleArchitectures;_compatibleRuntimes;_content;_description;_layerName;_licenseInfo;cfnPropertyNames={compatibleArchitectures:"CompatibleArchitectures",compatibleRuntimes:"CompatibleRuntimes",content:"Content",description:"Description",layerName:"LayerName",licenseInfo:"LicenseInfo"};constructor(scope,id,props){super(scope,id,{type:CfnLayerVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnLayerVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLayerVersion),error}cdk().requireProperty(props,"content",this),this._compatibleArchitectures=props.compatibleArchitectures,this._compatibleRuntimes=props.compatibleRuntimes,this._content=props.content,this._description=props.description,this._layerName=props.layerName,this._licenseInfo=props.licenseInfo}get layerVersionRef(){return{layerVersionArn:this.ref}}get compatibleArchitectures(){return this._compatibleArchitectures}set compatibleArchitectures(value){cdk().traceProperty(this.node,"CompatibleArchitectures"),this._compatibleArchitectures=value}get compatibleRuntimes(){return this._compatibleRuntimes}set compatibleRuntimes(value){cdk().traceProperty(this.node,"CompatibleRuntimes"),this._compatibleRuntimes=value}get content(){return this._content}set content(value){cdk().traceProperty(this.node,"Content"),this._content=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get layerName(){return this._layerName}set layerName(value){cdk().traceProperty(this.node,"LayerName"),this._layerName=value}get licenseInfo(){return this._licenseInfo}set licenseInfo(value){cdk().traceProperty(this.node,"LicenseInfo"),this._licenseInfo=value}get attrLayerVersionArn(){return cdk().Token.asString(this.getAtt("LayerVersionArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{compatibleArchitectures:this._compatibleArchitectures,compatibleRuntimes:this._compatibleRuntimes,content:this._content,description:this._description,layerName:this._layerName,licenseInfo:this._licenseInfo}}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",CfnLayerVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLayerVersionPropsToCloudFormation(props)}}exports.CfnLayerVersion=CfnLayerVersion;function CfnLayerVersionContentPropertyValidator(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("s3Bucket",cdk().requiredValidator)(properties.s3Bucket)),errors.collect(cdk().propertyValidator("s3Bucket",cdk().validateString)(properties.s3Bucket)),errors.collect(cdk().propertyValidator("s3Key",cdk().requiredValidator)(properties.s3Key)),errors.collect(cdk().propertyValidator("s3Key",cdk().validateString)(properties.s3Key)),errors.collect(cdk().propertyValidator("s3ObjectVersion",cdk().validateString)(properties.s3ObjectVersion)),errors.wrap('supplied properties not correct for "ContentProperty"')}function convertCfnLayerVersionContentPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayerVersionContentPropertyValidator(properties).assertSuccess(),{S3Bucket:cdk().stringToCloudFormation(properties.s3Bucket),S3Key:cdk().stringToCloudFormation(properties.s3Key),S3ObjectVersion:cdk().stringToCloudFormation(properties.s3ObjectVersion)}):properties}function CfnLayerVersionContentPropertyFromCloudFormation(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("s3Bucket","S3Bucket",properties.S3Bucket!=null?cfn_parse().FromCloudFormation.getString(properties.S3Bucket):void 0),ret.addPropertyResult("s3Key","S3Key",properties.S3Key!=null?cfn_parse().FromCloudFormation.getString(properties.S3Key):void 0),ret.addPropertyResult("s3ObjectVersion","S3ObjectVersion",properties.S3ObjectVersion!=null?cfn_parse().FromCloudFormation.getString(properties.S3ObjectVersion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLayerVersionPropsValidator(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("compatibleArchitectures",cdk().listValidator(cdk().validateString))(properties.compatibleArchitectures)),errors.collect(cdk().propertyValidator("compatibleRuntimes",cdk().listValidator(cdk().validateString))(properties.compatibleRuntimes)),errors.collect(cdk().propertyValidator("content",cdk().requiredValidator)(properties.content)),errors.collect(cdk().propertyValidator("content",CfnLayerVersionContentPropertyValidator)(properties.content)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("layerName",cdk().validateString)(properties.layerName)),errors.collect(cdk().propertyValidator("licenseInfo",cdk().validateString)(properties.licenseInfo)),errors.wrap('supplied properties not correct for "CfnLayerVersionProps"')}function convertCfnLayerVersionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayerVersionPropsValidator(properties).assertSuccess(),{CompatibleArchitectures:cdk().listMapper(cdk().stringToCloudFormation)(properties.compatibleArchitectures),CompatibleRuntimes:cdk().listMapper(cdk().stringToCloudFormation)(properties.compatibleRuntimes),Content:convertCfnLayerVersionContentPropertyToCloudFormation(properties.content),Description:cdk().stringToCloudFormation(properties.description),LayerName:cdk().stringToCloudFormation(properties.layerName),LicenseInfo:cdk().stringToCloudFormation(properties.licenseInfo)}):properties}function CfnLayerVersionPropsFromCloudFormation(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("compatibleArchitectures","CompatibleArchitectures",properties.CompatibleArchitectures!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.CompatibleArchitectures):void 0),ret.addPropertyResult("compatibleRuntimes","CompatibleRuntimes",properties.CompatibleRuntimes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.CompatibleRuntimes):void 0),ret.addPropertyResult("content","Content",properties.Content!=null?CfnLayerVersionContentPropertyFromCloudFormation(properties.Content):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("layerName","LayerName",properties.LayerName!=null?cfn_parse().FromCloudFormation.getString(properties.LayerName):void 0),ret.addPropertyResult("licenseInfo","LicenseInfo",properties.LicenseInfo!=null?cfn_parse().FromCloudFormation.getString(properties.LicenseInfo):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLayerVersionPermission extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnLayerVersionPermission",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::LayerVersionPermission";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLayerVersionPermissionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLayerVersionPermission(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 isCfnLayerVersionPermission(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLayerVersionPermission.CFN_RESOURCE_TYPE_NAME}_action;_layerVersionArn;_organizationId;_principal;cfnPropertyNames={action:"Action",layerVersionArn:"LayerVersionArn",organizationId:"OrganizationId",principal:"Principal"};constructor(scope,id,props){super(scope,id,{type:CfnLayerVersionPermission.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnLayerVersionPermissionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLayerVersionPermission),error}cdk().requireProperty(props,"action",this),cdk().requireProperty(props,"layerVersionArn",this),cdk().requireProperty(props,"principal",this),this._action=props.action,this._layerVersionArn=cdk().getRefProperty(props.layerVersionArn?.layerVersionRef,"layerVersionArn")??cdk().ensureStringOrUndefined(props.layerVersionArn,"layerVersionArn","lambda.ILayerVersionRef | string"),this._organizationId=props.organizationId,this._principal=props.principal}get layerVersionPermissionRef(){return{layerVersionPermissionId:this.ref}}get action(){return this._action}set action(value){cdk().traceProperty(this.node,"Action"),this._action=value}get layerVersionArn(){return this._layerVersionArn}set layerVersionArn(value){cdk().traceProperty(this.node,"LayerVersionArn"),this._layerVersionArn=value}get organizationId(){return this._organizationId}set organizationId(value){cdk().traceProperty(this.node,"OrganizationId"),this._organizationId=value}get principal(){return this._principal}set principal(value){cdk().traceProperty(this.node,"Principal"),this._principal=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{action:this._action,layerVersionArn:this._layerVersionArn,organizationId:this._organizationId,principal:this._principal}}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",CfnLayerVersionPermission.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLayerVersionPermissionPropsToCloudFormation(props)}}exports.CfnLayerVersionPermission=CfnLayerVersionPermission;function CfnLayerVersionPermissionPropsValidator(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("action",cdk().requiredValidator)(properties.action)),errors.collect(cdk().propertyValidator("action",cdk().validateString)(properties.action)),errors.collect(cdk().propertyValidator("layerVersionArn",cdk().requiredValidator)(properties.layerVersionArn)),errors.collect(cdk().propertyValidator("layerVersionArn",cdk().validateString)(properties.layerVersionArn)),errors.collect(cdk().propertyValidator("organizationId",cdk().validateString)(properties.organizationId)),errors.collect(cdk().propertyValidator("principal",cdk().requiredValidator)(properties.principal)),errors.collect(cdk().propertyValidator("principal",cdk().validateString)(properties.principal)),errors.wrap('supplied properties not correct for "CfnLayerVersionPermissionProps"')}function convertCfnLayerVersionPermissionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLayerVersionPermissionPropsValidator(properties).assertSuccess(),{Action:cdk().stringToCloudFormation(properties.action),LayerVersionArn:cdk().stringToCloudFormation(properties.layerVersionArn),OrganizationId:cdk().stringToCloudFormation(properties.organizationId),Principal:cdk().stringToCloudFormation(properties.principal)}):properties}function CfnLayerVersionPermissionPropsFromCloudFormation(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("action","Action",properties.Action!=null?cfn_parse().FromCloudFormation.getString(properties.Action):void 0),ret.addPropertyResult("layerVersionArn","LayerVersionArn",properties.LayerVersionArn!=null?cfn_parse().FromCloudFormation.getString(properties.LayerVersionArn):void 0),ret.addPropertyResult("organizationId","OrganizationId",properties.OrganizationId!=null?cfn_parse().FromCloudFormation.getString(properties.OrganizationId):void 0),ret.addPropertyResult("principal","Principal",properties.Principal!=null?cfn_parse().FromCloudFormation.getString(properties.Principal):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnPermission extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnPermission",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::Permission";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPermissionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnPermission(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 isCfnPermission(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPermission.CFN_RESOURCE_TYPE_NAME}_action;_eventSourceToken;_functionName;_functionUrlAuthType;_invokedViaFunctionUrl;_principal;_principalOrgId;_sourceAccount;_sourceArn;cfnPropertyNames={action:"Action",eventSourceToken:"EventSourceToken",functionName:"FunctionName",functionUrlAuthType:"FunctionUrlAuthType",invokedViaFunctionUrl:"InvokedViaFunctionUrl",principal:"Principal",principalOrgId:"PrincipalOrgID",sourceAccount:"SourceAccount",sourceArn:"SourceArn"};constructor(scope,id,props){super(scope,id,{type:CfnPermission.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnPermissionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPermission),error}cdk().requireProperty(props,"action",this),cdk().requireProperty(props,"functionName",this),cdk().requireProperty(props,"principal",this),this._action=props.action,this._eventSourceToken=props.eventSourceToken,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._functionUrlAuthType=props.functionUrlAuthType,this._invokedViaFunctionUrl=props.invokedViaFunctionUrl,this._principal=cdk().getRefProperty(props.principal?.roleRef,"roleArn")??cdk().getRefProperty(props.principal?.userRef,"userArn")??cdk().ensureStringOrUndefined(props.principal,"principal","iam.IRoleRef | iam.IUserRef | string"),this._principalOrgId=props.principalOrgId,this._sourceAccount=props.sourceAccount,this._sourceArn=cdk().getRefProperty(props.sourceArn?.ruleRef,"ruleArn")??cdk().getRefProperty(props.sourceArn?.bucketRef,"bucketArn")??cdk().getRefProperty(props.sourceArn?.queueRef,"queueArn")??cdk().getRefProperty(props.sourceArn?.topicRef,"topicArn")??cdk().getRefProperty(props.sourceArn?.topicRuleRef,"topicRuleArn")??cdk().getRefProperty(props.sourceArn?.logGroupRef,"logGroupArn")??cdk().getRefProperty(props.sourceArn?.userPoolRef,"userPoolArn")??cdk().getRefProperty(props.sourceArn?.functionRef,"functionArn")??cdk().getRefProperty(props.sourceArn?.deliveryStreamRef,"deliveryStreamArn")??cdk().getRefProperty(props.sourceArn?.roleRef,"roleArn")??cdk().ensureStringOrUndefined(props.sourceArn,"sourceArn","events.IRuleRef | s3.IBucketRef | sqs.IQueueRef | sns.ITopicRef | iot.ITopicRuleRef | logs.ILogGroupRef | cognito.IUserPoolRef | lambda.IFunctionRef | kinesisfirehose.IDeliveryStreamRef | iam.IRoleRef | string")}get permissionRef(){return{functionName:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),permissionId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get action(){return this._action}set action(value){cdk().traceProperty(this.node,"Action"),this._action=value}get eventSourceToken(){return this._eventSourceToken}set eventSourceToken(value){cdk().traceProperty(this.node,"EventSourceToken"),this._eventSourceToken=value}get functionName(){return this._functionName}set functionName(value){cdk().traceProperty(this.node,"FunctionName"),this._functionName=value}get functionUrlAuthType(){return this._functionUrlAuthType}set functionUrlAuthType(value){cdk().traceProperty(this.node,"FunctionUrlAuthType"),this._functionUrlAuthType=value}get invokedViaFunctionUrl(){return this._invokedViaFunctionUrl}set invokedViaFunctionUrl(value){cdk().traceProperty(this.node,"InvokedViaFunctionUrl"),this._invokedViaFunctionUrl=value}get principal(){return this._principal}set principal(value){cdk().traceProperty(this.node,"Principal"),this._principal=value}get principalOrgId(){return this._principalOrgId}set principalOrgId(value){cdk().traceProperty(this.node,"PrincipalOrgID"),this._principalOrgId=value}get sourceAccount(){return this._sourceAccount}set sourceAccount(value){cdk().traceProperty(this.node,"SourceAccount"),this._sourceAccount=value}get sourceArn(){return this._sourceArn}set sourceArn(value){cdk().traceProperty(this.node,"SourceArn"),this._sourceArn=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{action:this._action,eventSourceToken:this._eventSourceToken,functionName:this._functionName,functionUrlAuthType:this._functionUrlAuthType,invokedViaFunctionUrl:this._invokedViaFunctionUrl,principal:this._principal,principalOrgId:this._principalOrgId,sourceAccount:this._sourceAccount,sourceArn:this._sourceArn}}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",CfnPermission.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPermissionPropsToCloudFormation(props)}}exports.CfnPermission=CfnPermission;function CfnPermissionPropsValidator(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("action",cdk().requiredValidator)(properties.action)),errors.collect(cdk().propertyValidator("action",cdk().validateString)(properties.action)),errors.collect(cdk().propertyValidator("eventSourceToken",cdk().validateString)(properties.eventSourceToken)),errors.collect(cdk().propertyValidator("functionName",cdk().requiredValidator)(properties.functionName)),errors.collect(cdk().propertyValidator("functionName",cdk().validateString)(properties.functionName)),errors.collect(cdk().propertyValidator("functionUrlAuthType",cdk().validateString)(properties.functionUrlAuthType)),errors.collect(cdk().propertyValidator("invokedViaFunctionUrl",cdk().validateBoolean)(properties.invokedViaFunctionUrl)),errors.collect(cdk().propertyValidator("principal",cdk().requiredValidator)(properties.principal)),errors.collect(cdk().propertyValidator("principal",cdk().validateString)(properties.principal)),errors.collect(cdk().propertyValidator("principalOrgId",cdk().validateString)(properties.principalOrgId)),errors.collect(cdk().propertyValidator("sourceAccount",cdk().validateString)(properties.sourceAccount)),errors.collect(cdk().propertyValidator("sourceArn",cdk().validateString)(properties.sourceArn)),errors.wrap('supplied properties not correct for "CfnPermissionProps"')}function convertCfnPermissionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPermissionPropsValidator(properties).assertSuccess(),{Action:cdk().stringToCloudFormation(properties.action),EventSourceToken:cdk().stringToCloudFormation(properties.eventSourceToken),FunctionName:cdk().stringToCloudFormation(properties.functionName),FunctionUrlAuthType:cdk().stringToCloudFormation(properties.functionUrlAuthType),InvokedViaFunctionUrl:cdk().booleanToCloudFormation(properties.invokedViaFunctionUrl),Principal:cdk().stringToCloudFormation(properties.principal),PrincipalOrgID:cdk().stringToCloudFormation(properties.principalOrgId),SourceAccount:cdk().stringToCloudFormation(properties.sourceAccount),SourceArn:cdk().stringToCloudFormation(properties.sourceArn)}):properties}function CfnPermissionPropsFromCloudFormation(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("action","Action",properties.Action!=null?cfn_parse().FromCloudFormation.getString(properties.Action):void 0),ret.addPropertyResult("eventSourceToken","EventSourceToken",properties.EventSourceToken!=null?cfn_parse().FromCloudFormation.getString(properties.EventSourceToken):void 0),ret.addPropertyResult("functionName","FunctionName",properties.FunctionName!=null?cfn_parse().FromCloudFormation.getString(properties.FunctionName):void 0),ret.addPropertyResult("functionUrlAuthType","FunctionUrlAuthType",properties.FunctionUrlAuthType!=null?cfn_parse().FromCloudFormation.getString(properties.FunctionUrlAuthType):void 0),ret.addPropertyResult("invokedViaFunctionUrl","InvokedViaFunctionUrl",properties.InvokedViaFunctionUrl!=null?cfn_parse().FromCloudFormation.getBoolean(properties.InvokedViaFunctionUrl):void 0),ret.addPropertyResult("principal","Principal",properties.Principal!=null?cfn_parse().FromCloudFormation.getString(properties.Principal):void 0),ret.addPropertyResult("principalOrgId","PrincipalOrgID",properties.PrincipalOrgID!=null?cfn_parse().FromCloudFormation.getString(properties.PrincipalOrgID):void 0),ret.addPropertyResult("sourceAccount","SourceAccount",properties.SourceAccount!=null?cfn_parse().FromCloudFormation.getString(properties.SourceAccount):void 0),ret.addPropertyResult("sourceArn","SourceArn",properties.SourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUrl extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnUrl",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::Url";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUrlPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnUrl(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 isCfnUrl(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUrl.CFN_RESOURCE_TYPE_NAME}_authType;_cors;_invokeMode;_qualifier;_targetFunctionArn;cfnPropertyNames={authType:"AuthType",cors:"Cors",invokeMode:"InvokeMode",qualifier:"Qualifier",targetFunctionArn:"TargetFunctionArn"};constructor(scope,id,props){super(scope,id,{type:CfnUrl.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnUrlProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUrl),error}cdk().requireProperty(props,"authType",this),cdk().requireProperty(props,"targetFunctionArn",this),this._authType=props.authType,this._cors=props.cors,this._invokeMode=props.invokeMode,this._qualifier=props.qualifier,this._targetFunctionArn=cdk().getRefProperty(props.targetFunctionArn?.functionRef,"functionArn")??cdk().ensureStringOrUndefined(props.targetFunctionArn,"targetFunctionArn","lambda.IFunctionRef | string")}get urlRef(){return{functionArn:this.ref}}get authType(){return this._authType}set authType(value){cdk().traceProperty(this.node,"AuthType"),this._authType=value}get cors(){return this._cors}set cors(value){cdk().traceProperty(this.node,"Cors"),this._cors=value}get invokeMode(){return this._invokeMode}set invokeMode(value){cdk().traceProperty(this.node,"InvokeMode"),this._invokeMode=value}get qualifier(){return this._qualifier}set qualifier(value){cdk().traceProperty(this.node,"Qualifier"),this._qualifier=value}get targetFunctionArn(){return this._targetFunctionArn}set targetFunctionArn(value){cdk().traceProperty(this.node,"TargetFunctionArn"),this._targetFunctionArn=value}get attrFunctionArn(){return cdk().Token.asString(this.getAtt("FunctionArn",cdk().ResolutionTypeHint.STRING))}get attrFunctionUrl(){return cdk().Token.asString(this.getAtt("FunctionUrl",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{authType:this._authType,cors:this._cors,invokeMode:this._invokeMode,qualifier:this._qualifier,targetFunctionArn:this._targetFunctionArn}}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",CfnUrl.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUrlPropsToCloudFormation(props)}}exports.CfnUrl=CfnUrl;function CfnUrlCorsPropertyValidator(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("allowCredentials",cdk().validateBoolean)(properties.allowCredentials)),errors.collect(cdk().propertyValidator("allowHeaders",cdk().listValidator(cdk().validateString))(properties.allowHeaders)),errors.collect(cdk().propertyValidator("allowMethods",cdk().listValidator(cdk().validateString))(properties.allowMethods)),errors.collect(cdk().propertyValidator("allowOrigins",cdk().listValidator(cdk().validateString))(properties.allowOrigins)),errors.collect(cdk().propertyValidator("exposeHeaders",cdk().listValidator(cdk().validateString))(properties.exposeHeaders)),errors.collect(cdk().propertyValidator("maxAge",cdk().validateNumber)(properties.maxAge)),errors.wrap('supplied properties not correct for "CorsProperty"')}function convertCfnUrlCorsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUrlCorsPropertyValidator(properties).assertSuccess(),{AllowCredentials:cdk().booleanToCloudFormation(properties.allowCredentials),AllowHeaders:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowHeaders),AllowMethods:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowMethods),AllowOrigins:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowOrigins),ExposeHeaders:cdk().listMapper(cdk().stringToCloudFormation)(properties.exposeHeaders),MaxAge:cdk().numberToCloudFormation(properties.maxAge)}):properties}function CfnUrlCorsPropertyFromCloudFormation(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("allowCredentials","AllowCredentials",properties.AllowCredentials!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AllowCredentials):void 0),ret.addPropertyResult("allowHeaders","AllowHeaders",properties.AllowHeaders!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowHeaders):void 0),ret.addPropertyResult("allowMethods","AllowMethods",properties.AllowMethods!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowMethods):void 0),ret.addPropertyResult("allowOrigins","AllowOrigins",properties.AllowOrigins!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowOrigins):void 0),ret.addPropertyResult("exposeHeaders","ExposeHeaders",properties.ExposeHeaders!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ExposeHeaders):void 0),ret.addPropertyResult("maxAge","MaxAge",properties.MaxAge!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxAge):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUrlPropsValidator(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("authType",cdk().requiredValidator)(properties.authType)),errors.collect(cdk().propertyValidator("authType",cdk().validateString)(properties.authType)),errors.collect(cdk().propertyValidator("cors",CfnUrlCorsPropertyValidator)(properties.cors)),errors.collect(cdk().propertyValidator("invokeMode",cdk().validateString)(properties.invokeMode)),errors.collect(cdk().propertyValidator("qualifier",cdk().validateString)(properties.qualifier)),errors.collect(cdk().propertyValidator("targetFunctionArn",cdk().requiredValidator)(properties.targetFunctionArn)),errors.collect(cdk().propertyValidator("targetFunctionArn",cdk().validateString)(properties.targetFunctionArn)),errors.wrap('supplied properties not correct for "CfnUrlProps"')}function convertCfnUrlPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUrlPropsValidator(properties).assertSuccess(),{AuthType:cdk().stringToCloudFormation(properties.authType),Cors:convertCfnUrlCorsPropertyToCloudFormation(properties.cors),InvokeMode:cdk().stringToCloudFormation(properties.invokeMode),Qualifier:cdk().stringToCloudFormation(properties.qualifier),TargetFunctionArn:cdk().stringToCloudFormation(properties.targetFunctionArn)}):properties}function CfnUrlPropsFromCloudFormation(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("authType","AuthType",properties.AuthType!=null?cfn_parse().FromCloudFormation.getString(properties.AuthType):void 0),ret.addPropertyResult("cors","Cors",properties.Cors!=null?CfnUrlCorsPropertyFromCloudFormation(properties.Cors):void 0),ret.addPropertyResult("invokeMode","InvokeMode",properties.InvokeMode!=null?cfn_parse().FromCloudFormation.getString(properties.InvokeMode):void 0),ret.addPropertyResult("qualifier","Qualifier",properties.Qualifier!=null?cfn_parse().FromCloudFormation.getString(properties.Qualifier):void 0),ret.addPropertyResult("targetFunctionArn","TargetFunctionArn",properties.TargetFunctionArn!=null?cfn_parse().FromCloudFormation.getString(properties.TargetFunctionArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnVersion extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnVersion",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::Version";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnVersionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnVersion(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 isCfnVersion(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnVersion.CFN_RESOURCE_TYPE_NAME}_codeSha256;_description;_functionName;_functionScalingConfig;_provisionedConcurrencyConfig;_runtimePolicy;cfnPropertyNames={codeSha256:"CodeSha256",description:"Description",functionName:"FunctionName",functionScalingConfig:"FunctionScalingConfig",provisionedConcurrencyConfig:"ProvisionedConcurrencyConfig",runtimePolicy:"RuntimePolicy"};constructor(scope,id,props){super(scope,id,{type:CfnVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnVersion),error}cdk().requireProperty(props,"functionName",this),this._codeSha256=props.codeSha256,this._description=props.description,this._functionName=cdk().getRefProperty(props.functionName?.functionRef,"functionArn")??cdk().getRefProperty(props.functionName?.functionRef,"functionName")??cdk().ensureStringOrUndefined(props.functionName,"functionName","lambda.IFunctionRef | string"),this._functionScalingConfig=props.functionScalingConfig,this._provisionedConcurrencyConfig=props.provisionedConcurrencyConfig,this._runtimePolicy=props.runtimePolicy}get versionRef(){return{functionArn:this.ref}}get codeSha256(){return this._codeSha256}set codeSha256(value){cdk().traceProperty(this.node,"CodeSha256"),this._codeSha256=value}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 functionScalingConfig(){return this._functionScalingConfig}set functionScalingConfig(value){cdk().traceProperty(this.node,"FunctionScalingConfig"),this._functionScalingConfig=value}get provisionedConcurrencyConfig(){return this._provisionedConcurrencyConfig}set provisionedConcurrencyConfig(value){cdk().traceProperty(this.node,"ProvisionedConcurrencyConfig"),this._provisionedConcurrencyConfig=value}get runtimePolicy(){return this._runtimePolicy}set runtimePolicy(value){cdk().traceProperty(this.node,"RuntimePolicy"),this._runtimePolicy=value}get attrFunctionArn(){return cdk().Token.asString(this.getAtt("FunctionArn",cdk().ResolutionTypeHint.STRING))}get attrVersion(){return cdk().Token.asString(this.getAtt("Version",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{codeSha256:this._codeSha256,description:this._description,functionName:this._functionName,functionScalingConfig:this._functionScalingConfig,provisionedConcurrencyConfig:this._provisionedConcurrencyConfig,runtimePolicy:this._runtimePolicy}}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",CfnVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnVersionPropsToCloudFormation(props)}}exports.CfnVersion=CfnVersion;function CfnVersionProvisionedConcurrencyConfigurationPropertyValidator(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 convertCfnVersionProvisionedConcurrencyConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVersionProvisionedConcurrencyConfigurationPropertyValidator(properties).assertSuccess(),{ProvisionedConcurrentExecutions:cdk().numberToCloudFormation(properties.provisionedConcurrentExecutions)}):properties}function CfnVersionProvisionedConcurrencyConfigurationPropertyFromCloudFormation(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 CfnVersionRuntimePolicyPropertyValidator(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("runtimeVersionArn",cdk().validateString)(properties.runtimeVersionArn)),errors.collect(cdk().propertyValidator("updateRuntimeOn",cdk().requiredValidator)(properties.updateRuntimeOn)),errors.collect(cdk().propertyValidator("updateRuntimeOn",cdk().validateString)(properties.updateRuntimeOn)),errors.wrap('supplied properties not correct for "RuntimePolicyProperty"')}function convertCfnVersionRuntimePolicyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVersionRuntimePolicyPropertyValidator(properties).assertSuccess(),{RuntimeVersionArn:cdk().stringToCloudFormation(properties.runtimeVersionArn),UpdateRuntimeOn:cdk().stringToCloudFormation(properties.updateRuntimeOn)}):properties}function CfnVersionRuntimePolicyPropertyFromCloudFormation(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("runtimeVersionArn","RuntimeVersionArn",properties.RuntimeVersionArn!=null?cfn_parse().FromCloudFormation.getString(properties.RuntimeVersionArn):void 0),ret.addPropertyResult("updateRuntimeOn","UpdateRuntimeOn",properties.UpdateRuntimeOn!=null?cfn_parse().FromCloudFormation.getString(properties.UpdateRuntimeOn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnVersionFunctionScalingConfigPropertyValidator(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("maxExecutionEnvironments",cdk().validateNumber)(properties.maxExecutionEnvironments)),errors.collect(cdk().propertyValidator("minExecutionEnvironments",cdk().validateNumber)(properties.minExecutionEnvironments)),errors.wrap('supplied properties not correct for "FunctionScalingConfigProperty"')}function convertCfnVersionFunctionScalingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVersionFunctionScalingConfigPropertyValidator(properties).assertSuccess(),{MaxExecutionEnvironments:cdk().numberToCloudFormation(properties.maxExecutionEnvironments),MinExecutionEnvironments:cdk().numberToCloudFormation(properties.minExecutionEnvironments)}):properties}function CfnVersionFunctionScalingConfigPropertyFromCloudFormation(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("maxExecutionEnvironments","MaxExecutionEnvironments",properties.MaxExecutionEnvironments!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxExecutionEnvironments):void 0),ret.addPropertyResult("minExecutionEnvironments","MinExecutionEnvironments",properties.MinExecutionEnvironments!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinExecutionEnvironments):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnVersionPropsValidator(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("codeSha256",cdk().validateString)(properties.codeSha256)),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("functionScalingConfig",CfnVersionFunctionScalingConfigPropertyValidator)(properties.functionScalingConfig)),errors.collect(cdk().propertyValidator("provisionedConcurrencyConfig",CfnVersionProvisionedConcurrencyConfigurationPropertyValidator)(properties.provisionedConcurrencyConfig)),errors.collect(cdk().propertyValidator("runtimePolicy",CfnVersionRuntimePolicyPropertyValidator)(properties.runtimePolicy)),errors.wrap('supplied properties not correct for "CfnVersionProps"')}function convertCfnVersionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVersionPropsValidator(properties).assertSuccess(),{CodeSha256:cdk().stringToCloudFormation(properties.codeSha256),Description:cdk().stringToCloudFormation(properties.description),FunctionName:cdk().stringToCloudFormation(properties.functionName),FunctionScalingConfig:convertCfnVersionFunctionScalingConfigPropertyToCloudFormation(properties.functionScalingConfig),ProvisionedConcurrencyConfig:convertCfnVersionProvisionedConcurrencyConfigurationPropertyToCloudFormation(properties.provisionedConcurrencyConfig),RuntimePolicy:convertCfnVersionRuntimePolicyPropertyToCloudFormation(properties.runtimePolicy)}):properties}function CfnVersionPropsFromCloudFormation(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("codeSha256","CodeSha256",properties.CodeSha256!=null?cfn_parse().FromCloudFormation.getString(properties.CodeSha256):void 0),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("functionScalingConfig","FunctionScalingConfig",properties.FunctionScalingConfig!=null?CfnVersionFunctionScalingConfigPropertyFromCloudFormation(properties.FunctionScalingConfig):void 0),ret.addPropertyResult("provisionedConcurrencyConfig","ProvisionedConcurrencyConfig",properties.ProvisionedConcurrencyConfig!=null?CfnVersionProvisionedConcurrencyConfigurationPropertyFromCloudFormation(properties.ProvisionedConcurrencyConfig):void 0),ret.addPropertyResult("runtimePolicy","RuntimePolicy",properties.RuntimePolicy!=null?CfnVersionRuntimePolicyPropertyFromCloudFormation(properties.RuntimePolicy):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnCapacityProvider extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_lambda.CfnCapacityProvider",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Lambda::CapacityProvider";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCapacityProviderPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnCapacityProvider(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 isCfnCapacityProvider(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnCapacityProvider.CFN_RESOURCE_TYPE_NAME}static fromCapacityProviderArn(scope,id,arn){class Import extends cdk().Resource{capacityProviderRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:lambda:${Region}:${Account}:capacity-provider:${CapacityProviderName}").parse(arn2);this.capacityProviderRef={capacityProviderName:variables.CapacityProviderName,capacityProviderArn:arn2}}}return new Import(scope,id,arn)}static fromCapacityProviderName(scope,id,capacityProviderName){class Import extends cdk().Resource{capacityProviderRef;constructor(scope2,id2,capacityProviderName2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:lambda:${Region}:${Account}:capacity-provider:${CapacityProviderName}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,CapacityProviderName:capacityProviderName2});super(scope2,id2,{environmentFromArn:arn}),this.capacityProviderRef={capacityProviderName:capacityProviderName2,capacityProviderArn:arn}}}return new Import(scope,id,capacityProviderName)}static arnForCapacityProvider(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_lambda_ICapacityProviderRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForCapacityProvider),error}return resource.capacityProviderRef.capacityProviderArn}_capacityProviderName;_capacityProviderScalingConfig;cdkTagManager;_instanceRequirements;_kmsKeyArn;_permissionsConfig;_tags;_vpcConfig;cfnPropertyNames={capacityProviderName:"CapacityProviderName",capacityProviderScalingConfig:"CapacityProviderScalingConfig",tags:"Tags",instanceRequirements:"InstanceRequirements",kmsKeyArn:"KmsKeyArn",permissionsConfig:"PermissionsConfig",vpcConfig:"VpcConfig"};constructor(scope,id,props){super(scope,id,{type:CfnCapacityProvider.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_CfnCapacityProviderProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCapacityProvider),error}cdk().requireProperty(props,"permissionsConfig",this),cdk().requireProperty(props,"vpcConfig",this),this._capacityProviderName=props.capacityProviderName,this._capacityProviderScalingConfig=props.capacityProviderScalingConfig,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Lambda::CapacityProvider",void 0,{tagPropertyName:"tags"}),this._instanceRequirements=props.instanceRequirements,this._kmsKeyArn=props.kmsKeyArn,this._permissionsConfig=props.permissionsConfig,this._tags=props.tags,this._vpcConfig=props.vpcConfig}get capacityProviderRef(){return{capacityProviderName:this.ref,capacityProviderArn:this.attrArn}}get capacityProviderName(){return this._capacityProviderName}set capacityProviderName(value){cdk().traceProperty(this.node,"CapacityProviderName"),this._capacityProviderName=value}get capacityProviderScalingConfig(){return this._capacityProviderScalingConfig}set capacityProviderScalingConfig(value){cdk().traceProperty(this.node,"CapacityProviderScalingConfig"),this._capacityProviderScalingConfig=value}get instanceRequirements(){return this._instanceRequirements}set instanceRequirements(value){cdk().traceProperty(this.node,"InstanceRequirements"),this._instanceRequirements=value}get kmsKeyArn(){return this._kmsKeyArn}set kmsKeyArn(value){cdk().traceProperty(this.node,"KmsKeyArn"),this._kmsKeyArn=value}get permissionsConfig(){return this._permissionsConfig}set permissionsConfig(value){cdk().traceProperty(this.node,"PermissionsConfig"),this._permissionsConfig=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get vpcConfig(){return this._vpcConfig}set vpcConfig(value){cdk().traceProperty(this.node,"VpcConfig"),this._vpcConfig=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrState(){return cdk().Token.asString(this.getAtt("State",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{capacityProviderName:this._capacityProviderName,capacityProviderScalingConfig:this._capacityProviderScalingConfig,tags:this.cdkTagManager.renderTags(this._tags),instanceRequirements:this._instanceRequirements,kmsKeyArn:this._kmsKeyArn,permissionsConfig:this._permissionsConfig,vpcConfig:this._vpcConfig}}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",CfnCapacityProvider.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCapacityProviderPropsToCloudFormation(props)}}exports.CfnCapacityProvider=CfnCapacityProvider;function CfnCapacityProviderTargetTrackingScalingPolicyPropertyValidator(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("predefinedMetricType",cdk().requiredValidator)(properties.predefinedMetricType)),errors.collect(cdk().propertyValidator("predefinedMetricType",cdk().validateString)(properties.predefinedMetricType)),errors.collect(cdk().propertyValidator("targetValue",cdk().requiredValidator)(properties.targetValue)),errors.collect(cdk().propertyValidator("targetValue",cdk().validateNumber)(properties.targetValue)),errors.wrap('supplied properties not correct for "TargetTrackingScalingPolicyProperty"')}function convertCfnCapacityProviderTargetTrackingScalingPolicyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCapacityProviderTargetTrackingScalingPolicyPropertyValidator(properties).assertSuccess(),{PredefinedMetricType:cdk().stringToCloudFormation(properties.predefinedMetricType),TargetValue:cdk().numberToCloudFormation(properties.targetValue)}):properties}function CfnCapacityProviderTargetTrackingScalingPolicyPropertyFromCloudFormation(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("predefinedMetricType","PredefinedMetricType",properties.PredefinedMetricType!=null?cfn_parse().FromCloudFormation.getString(properties.PredefinedMetricType):void 0),ret.addPropertyResult("targetValue","TargetValue",properties.TargetValue!=null?cfn_parse().FromCloudFormation.getNumber(properties.TargetValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCapacityProviderCapacityProviderScalingConfigPropertyValidator(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("maxVCpuCount",cdk().validateNumber)(properties.maxVCpuCount)),errors.collect(cdk().propertyValidator("scalingMode",cdk().validateString)(properties.scalingMode)),errors.collect(cdk().propertyValidator("scalingPolicies",cdk().listValidator(CfnCapacityProviderTargetTrackingScalingPolicyPropertyValidator))(properties.scalingPolicies)),errors.wrap('supplied properties not correct for "CapacityProviderScalingConfigProperty"')}function convertCfnCapacityProviderCapacityProviderScalingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCapacityProviderCapacityProviderScalingConfigPropertyValidator(properties).assertSuccess(),{MaxVCpuCount:cdk().numberToCloudFormation(properties.maxVCpuCount),ScalingMode:cdk().stringToCloudFormation(properties.scalingMode),ScalingPolicies:cdk().listMapper(convertCfnCapacityProviderTargetTrackingScalingPolicyPropertyToCloudFormation)(properties.scalingPolicies)}):properties}function CfnCapacityProviderCapacityProviderScalingConfigPropertyFromCloudFormation(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("maxVCpuCount","MaxVCpuCount",properties.MaxVCpuCount!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxVCpuCount):void 0),ret.addPropertyResult("scalingMode","ScalingMode",properties.ScalingMode!=null?cfn_parse().FromCloudFormation.getString(properties.ScalingMode):void 0),ret.addPropertyResult("scalingPolicies","ScalingPolicies",properties.ScalingPolicies!=null?cfn_parse().FromCloudFormation.getArray(CfnCapacityProviderTargetTrackingScalingPolicyPropertyFromCloudFormation)(properties.ScalingPolicies):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCapacityProviderInstanceRequirementsPropertyValidator(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("allowedInstanceTypes",cdk().listValidator(cdk().validateString))(properties.allowedInstanceTypes)),errors.collect(cdk().propertyValidator("architectures",cdk().listValidator(cdk().validateString))(properties.architectures)),errors.collect(cdk().propertyValidator("excludedInstanceTypes",cdk().listValidator(cdk().validateString))(properties.excludedInstanceTypes)),errors.wrap('supplied properties not correct for "InstanceRequirementsProperty"')}function convertCfnCapacityProviderInstanceRequirementsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCapacityProviderInstanceRequirementsPropertyValidator(properties).assertSuccess(),{AllowedInstanceTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedInstanceTypes),Architectures:cdk().listMapper(cdk().stringToCloudFormation)(properties.architectures),ExcludedInstanceTypes:cdk().listMapper(cdk().stringToCloudFormation)(properties.excludedInstanceTypes)}):properties}function CfnCapacityProviderInstanceRequirementsPropertyFromCloudFormation(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("allowedInstanceTypes","AllowedInstanceTypes",properties.AllowedInstanceTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedInstanceTypes):void 0),ret.addPropertyResult("architectures","Architectures",properties.Architectures!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Architectures):void 0),ret.addPropertyResult("excludedInstanceTypes","ExcludedInstanceTypes",properties.ExcludedInstanceTypes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ExcludedInstanceTypes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCapacityProviderCapacityProviderPermissionsConfigPropertyValidator(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("capacityProviderOperatorRoleArn",cdk().requiredValidator)(properties.capacityProviderOperatorRoleArn)),errors.collect(cdk().propertyValidator("capacityProviderOperatorRoleArn",cdk().validateString)(properties.capacityProviderOperatorRoleArn)),errors.wrap('supplied properties not correct for "CapacityProviderPermissionsConfigProperty"')}function convertCfnCapacityProviderCapacityProviderPermissionsConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCapacityProviderCapacityProviderPermissionsConfigPropertyValidator(properties).assertSuccess(),{CapacityProviderOperatorRoleArn:cdk().stringToCloudFormation(properties.capacityProviderOperatorRoleArn)}):properties}function CfnCapacityProviderCapacityProviderPermissionsConfigPropertyFromCloudFormation(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("capacityProviderOperatorRoleArn","CapacityProviderOperatorRoleArn",properties.CapacityProviderOperatorRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.CapacityProviderOperatorRoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCapacityProviderCapacityProviderVpcConfigPropertyValidator(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("securityGroupIds",cdk().requiredValidator)(properties.securityGroupIds)),errors.collect(cdk().propertyValidator("securityGroupIds",cdk().listValidator(cdk().validateString))(properties.securityGroupIds)),errors.collect(cdk().propertyValidator("subnetIds",cdk().requiredValidator)(properties.subnetIds)),errors.collect(cdk().propertyValidator("subnetIds",cdk().listValidator(cdk().validateString))(properties.subnetIds)),errors.wrap('supplied properties not correct for "CapacityProviderVpcConfigProperty"')}function convertCfnCapacityProviderCapacityProviderVpcConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCapacityProviderCapacityProviderVpcConfigPropertyValidator(properties).assertSuccess(),{SecurityGroupIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroupIds),SubnetIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.subnetIds)}):properties}function CfnCapacityProviderCapacityProviderVpcConfigPropertyFromCloudFormation(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("securityGroupIds","SecurityGroupIds",properties.SecurityGroupIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SecurityGroupIds):void 0),ret.addPropertyResult("subnetIds","SubnetIds",properties.SubnetIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SubnetIds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCapacityProviderPropsValidator(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("capacityProviderName",cdk().validateString)(properties.capacityProviderName)),errors.collect(cdk().propertyValidator("capacityProviderScalingConfig",CfnCapacityProviderCapacityProviderScalingConfigPropertyValidator)(properties.capacityProviderScalingConfig)),errors.collect(cdk().propertyValidator("instanceRequirements",CfnCapacityProviderInstanceRequirementsPropertyValidator)(properties.instanceRequirements)),errors.collect(cdk().propertyValidator("kmsKeyArn",cdk().validateString)(properties.kmsKeyArn)),errors.collect(cdk().propertyValidator("permissionsConfig",cdk().requiredValidator)(properties.permissionsConfig)),errors.collect(cdk().propertyValidator("permissionsConfig",CfnCapacityProviderCapacityProviderPermissionsConfigPropertyValidator)(properties.permissionsConfig)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("vpcConfig",cdk().requiredValidator)(properties.vpcConfig)),errors.collect(cdk().propertyValidator("vpcConfig",CfnCapacityProviderCapacityProviderVpcConfigPropertyValidator)(properties.vpcConfig)),errors.wrap('supplied properties not correct for "CfnCapacityProviderProps"')}function convertCfnCapacityProviderPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCapacityProviderPropsValidator(properties).assertSuccess(),{CapacityProviderName:cdk().stringToCloudFormation(properties.capacityProviderName),CapacityProviderScalingConfig:convertCfnCapacityProviderCapacityProviderScalingConfigPropertyToCloudFormation(properties.capacityProviderScalingConfig),InstanceRequirements:convertCfnCapacityProviderInstanceRequirementsPropertyToCloudFormation(properties.instanceRequirements),KmsKeyArn:cdk().stringToCloudFormation(properties.kmsKeyArn),PermissionsConfig:convertCfnCapacityProviderCapacityProviderPermissionsConfigPropertyToCloudFormation(properties.permissionsConfig),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),VpcConfig:convertCfnCapacityProviderCapacityProviderVpcConfigPropertyToCloudFormation(properties.vpcConfig)}):properties}function CfnCapacityProviderPropsFromCloudFormation(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("capacityProviderName","CapacityProviderName",properties.CapacityProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.CapacityProviderName):void 0),ret.addPropertyResult("capacityProviderScalingConfig","CapacityProviderScalingConfig",properties.CapacityProviderScalingConfig!=null?CfnCapacityProviderCapacityProviderScalingConfigPropertyFromCloudFormation(properties.CapacityProviderScalingConfig):void 0),ret.addPropertyResult("instanceRequirements","InstanceRequirements",properties.InstanceRequirements!=null?CfnCapacityProviderInstanceRequirementsPropertyFromCloudFormation(properties.InstanceRequirements):void 0),ret.addPropertyResult("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addPropertyResult("permissionsConfig","PermissionsConfig",properties.PermissionsConfig!=null?CfnCapacityProviderCapacityProviderPermissionsConfigPropertyFromCloudFormation(properties.PermissionsConfig):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("vpcConfig","VpcConfig",properties.VpcConfig!=null?CfnCapacityProviderCapacityProviderVpcConfigPropertyFromCloudFormation(properties.VpcConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}
|