UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 87.2 kB
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnWaitConditionHandle=exports.CfnWaitCondition=exports.CfnTypeActivation=exports.CfnStackSet=exports.CfnStack=exports.CfnResourceVersion=exports.CfnResourceDefaultVersion=exports.CfnPublisher=exports.CfnPublicTypeVersion=exports.CfnModuleVersion=exports.CfnModuleDefaultVersion=exports.CfnMacro=exports.CfnHookVersion=exports.CfnHookTypeConfig=exports.CfnHookDefaultVersion=exports.CfnCustomResource=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("."),cfn_parse=require("./helpers-internal");function CfnCustomResourcePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("serviceToken",cdk.requiredValidator)(properties.serviceToken)),errors.collect(cdk.propertyValidator("serviceToken",cdk.validateString)(properties.serviceToken)),errors.wrap('supplied properties not correct for "CfnCustomResourceProps"')}function cfnCustomResourcePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCustomResourcePropsValidator(properties).assertSuccess(),{ServiceToken:cdk.stringToCloudFormation(properties.serviceToken)}):properties}function CfnCustomResourcePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("serviceToken","ServiceToken",cfn_parse.FromCloudFormation.getString(properties.ServiceToken)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnCustomResource extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnCustomResource.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnCustomResourceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCustomResource),error}cdk.requireProperty(props,"serviceToken",this),this.serviceToken=props.serviceToken}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCustomResourcePropsFromCloudFormation(resourceProperties),ret=new CfnCustomResource(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}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",CfnCustomResource.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{serviceToken:this.serviceToken}}renderProperties(props){return cfnCustomResourcePropsToCloudFormation(props)}}exports.CfnCustomResource=CfnCustomResource,_a=JSII_RTTI_SYMBOL_1,CfnCustomResource[_a]={fqn:"aws-cdk-lib.CfnCustomResource",version:"2.70.0"},CfnCustomResource.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::CustomResource";function CfnHookDefaultVersionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("typeName",cdk.validateString)(properties.typeName)),errors.collect(cdk.propertyValidator("typeVersionArn",cdk.validateString)(properties.typeVersionArn)),errors.collect(cdk.propertyValidator("versionId",cdk.validateString)(properties.versionId)),errors.wrap('supplied properties not correct for "CfnHookDefaultVersionProps"')}function cfnHookDefaultVersionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHookDefaultVersionPropsValidator(properties).assertSuccess(),{TypeName:cdk.stringToCloudFormation(properties.typeName),TypeVersionArn:cdk.stringToCloudFormation(properties.typeVersionArn),VersionId:cdk.stringToCloudFormation(properties.versionId)}):properties}function CfnHookDefaultVersionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("typeName","TypeName",properties.TypeName!=null?cfn_parse.FromCloudFormation.getString(properties.TypeName):void 0),ret.addPropertyResult("typeVersionArn","TypeVersionArn",properties.TypeVersionArn!=null?cfn_parse.FromCloudFormation.getString(properties.TypeVersionArn):void 0),ret.addPropertyResult("versionId","VersionId",properties.VersionId!=null?cfn_parse.FromCloudFormation.getString(properties.VersionId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnHookDefaultVersion extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnHookDefaultVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnHookDefaultVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnHookDefaultVersion),error}this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.typeName=props.typeName,this.typeVersionArn=props.typeVersionArn,this.versionId=props.versionId}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHookDefaultVersionPropsFromCloudFormation(resourceProperties),ret=new CfnHookDefaultVersion(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}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",CfnHookDefaultVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{typeName:this.typeName,typeVersionArn:this.typeVersionArn,versionId:this.versionId}}renderProperties(props){return cfnHookDefaultVersionPropsToCloudFormation(props)}}exports.CfnHookDefaultVersion=CfnHookDefaultVersion,_b=JSII_RTTI_SYMBOL_1,CfnHookDefaultVersion[_b]={fqn:"aws-cdk-lib.CfnHookDefaultVersion",version:"2.70.0"},CfnHookDefaultVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::HookDefaultVersion";function CfnHookTypeConfigPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("configuration",cdk.requiredValidator)(properties.configuration)),errors.collect(cdk.propertyValidator("configuration",cdk.validateString)(properties.configuration)),errors.collect(cdk.propertyValidator("configurationAlias",cdk.validateString)(properties.configurationAlias)),errors.collect(cdk.propertyValidator("typeArn",cdk.validateString)(properties.typeArn)),errors.collect(cdk.propertyValidator("typeName",cdk.validateString)(properties.typeName)),errors.wrap('supplied properties not correct for "CfnHookTypeConfigProps"')}function cfnHookTypeConfigPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHookTypeConfigPropsValidator(properties).assertSuccess(),{Configuration:cdk.stringToCloudFormation(properties.configuration),ConfigurationAlias:cdk.stringToCloudFormation(properties.configurationAlias),TypeArn:cdk.stringToCloudFormation(properties.typeArn),TypeName:cdk.stringToCloudFormation(properties.typeName)}):properties}function CfnHookTypeConfigPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("configuration","Configuration",cfn_parse.FromCloudFormation.getString(properties.Configuration)),ret.addPropertyResult("configurationAlias","ConfigurationAlias",properties.ConfigurationAlias!=null?cfn_parse.FromCloudFormation.getString(properties.ConfigurationAlias):void 0),ret.addPropertyResult("typeArn","TypeArn",properties.TypeArn!=null?cfn_parse.FromCloudFormation.getString(properties.TypeArn):void 0),ret.addPropertyResult("typeName","TypeName",properties.TypeName!=null?cfn_parse.FromCloudFormation.getString(properties.TypeName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnHookTypeConfig extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnHookTypeConfig.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnHookTypeConfigProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnHookTypeConfig),error}cdk.requireProperty(props,"configuration",this),this.attrConfigurationArn=cdk.Token.asString(this.getAtt("ConfigurationArn",cdk.ResolutionTypeHint.STRING)),this.configuration=props.configuration,this.configurationAlias=props.configurationAlias,this.typeArn=props.typeArn,this.typeName=props.typeName}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHookTypeConfigPropsFromCloudFormation(resourceProperties),ret=new CfnHookTypeConfig(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}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",CfnHookTypeConfig.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{configuration:this.configuration,configurationAlias:this.configurationAlias,typeArn:this.typeArn,typeName:this.typeName}}renderProperties(props){return cfnHookTypeConfigPropsToCloudFormation(props)}}exports.CfnHookTypeConfig=CfnHookTypeConfig,_c=JSII_RTTI_SYMBOL_1,CfnHookTypeConfig[_c]={fqn:"aws-cdk-lib.CfnHookTypeConfig",version:"2.70.0"},CfnHookTypeConfig.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::HookTypeConfig";function CfnHookVersionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("executionRoleArn",cdk.validateString)(properties.executionRoleArn)),errors.collect(cdk.propertyValidator("loggingConfig",CfnHookVersion_LoggingConfigPropertyValidator)(properties.loggingConfig)),errors.collect(cdk.propertyValidator("schemaHandlerPackage",cdk.requiredValidator)(properties.schemaHandlerPackage)),errors.collect(cdk.propertyValidator("schemaHandlerPackage",cdk.validateString)(properties.schemaHandlerPackage)),errors.collect(cdk.propertyValidator("typeName",cdk.requiredValidator)(properties.typeName)),errors.collect(cdk.propertyValidator("typeName",cdk.validateString)(properties.typeName)),errors.wrap('supplied properties not correct for "CfnHookVersionProps"')}function cfnHookVersionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHookVersionPropsValidator(properties).assertSuccess(),{SchemaHandlerPackage:cdk.stringToCloudFormation(properties.schemaHandlerPackage),TypeName:cdk.stringToCloudFormation(properties.typeName),ExecutionRoleArn:cdk.stringToCloudFormation(properties.executionRoleArn),LoggingConfig:cfnHookVersionLoggingConfigPropertyToCloudFormation(properties.loggingConfig)}):properties}function CfnHookVersionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("schemaHandlerPackage","SchemaHandlerPackage",cfn_parse.FromCloudFormation.getString(properties.SchemaHandlerPackage)),ret.addPropertyResult("typeName","TypeName",cfn_parse.FromCloudFormation.getString(properties.TypeName)),ret.addPropertyResult("executionRoleArn","ExecutionRoleArn",properties.ExecutionRoleArn!=null?cfn_parse.FromCloudFormation.getString(properties.ExecutionRoleArn):void 0),ret.addPropertyResult("loggingConfig","LoggingConfig",properties.LoggingConfig!=null?CfnHookVersionLoggingConfigPropertyFromCloudFormation(properties.LoggingConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnHookVersion extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnHookVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnHookVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnHookVersion),error}cdk.requireProperty(props,"schemaHandlerPackage",this),cdk.requireProperty(props,"typeName",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrIsDefaultVersion=this.getAtt("IsDefaultVersion",cdk.ResolutionTypeHint.STRING),this.attrTypeArn=cdk.Token.asString(this.getAtt("TypeArn",cdk.ResolutionTypeHint.STRING)),this.attrVersionId=cdk.Token.asString(this.getAtt("VersionId",cdk.ResolutionTypeHint.STRING)),this.attrVisibility=cdk.Token.asString(this.getAtt("Visibility",cdk.ResolutionTypeHint.STRING)),this.schemaHandlerPackage=props.schemaHandlerPackage,this.typeName=props.typeName,this.executionRoleArn=props.executionRoleArn,this.loggingConfig=props.loggingConfig}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHookVersionPropsFromCloudFormation(resourceProperties),ret=new CfnHookVersion(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}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",CfnHookVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{schemaHandlerPackage:this.schemaHandlerPackage,typeName:this.typeName,executionRoleArn:this.executionRoleArn,loggingConfig:this.loggingConfig}}renderProperties(props){return cfnHookVersionPropsToCloudFormation(props)}}exports.CfnHookVersion=CfnHookVersion,_d=JSII_RTTI_SYMBOL_1,CfnHookVersion[_d]={fqn:"aws-cdk-lib.CfnHookVersion",version:"2.70.0"},CfnHookVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::HookVersion";function CfnHookVersion_LoggingConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("logGroupName",cdk.validateString)(properties.logGroupName)),errors.collect(cdk.propertyValidator("logRoleArn",cdk.validateString)(properties.logRoleArn)),errors.wrap('supplied properties not correct for "LoggingConfigProperty"')}function cfnHookVersionLoggingConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnHookVersion_LoggingConfigPropertyValidator(properties).assertSuccess(),{LogGroupName:cdk.stringToCloudFormation(properties.logGroupName),LogRoleArn:cdk.stringToCloudFormation(properties.logRoleArn)}):properties}function CfnHookVersionLoggingConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("logGroupName","LogGroupName",properties.LogGroupName!=null?cfn_parse.FromCloudFormation.getString(properties.LogGroupName):void 0),ret.addPropertyResult("logRoleArn","LogRoleArn",properties.LogRoleArn!=null?cfn_parse.FromCloudFormation.getString(properties.LogRoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnMacroPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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("logGroupName",cdk.validateString)(properties.logGroupName)),errors.collect(cdk.propertyValidator("logRoleArn",cdk.validateString)(properties.logRoleArn)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.wrap('supplied properties not correct for "CfnMacroProps"')}function cfnMacroPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnMacroPropsValidator(properties).assertSuccess(),{FunctionName:cdk.stringToCloudFormation(properties.functionName),Name:cdk.stringToCloudFormation(properties.name),Description:cdk.stringToCloudFormation(properties.description),LogGroupName:cdk.stringToCloudFormation(properties.logGroupName),LogRoleARN:cdk.stringToCloudFormation(properties.logRoleArn)}):properties}function CfnMacroPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("functionName","FunctionName",cfn_parse.FromCloudFormation.getString(properties.FunctionName)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("logGroupName","LogGroupName",properties.LogGroupName!=null?cfn_parse.FromCloudFormation.getString(properties.LogGroupName):void 0),ret.addPropertyResult("logRoleArn","LogRoleARN",properties.LogRoleARN!=null?cfn_parse.FromCloudFormation.getString(properties.LogRoleARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnMacro extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnMacro.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnMacroProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnMacro),error}cdk.requireProperty(props,"functionName",this),cdk.requireProperty(props,"name",this),this.functionName=props.functionName,this.name=props.name,this.description=props.description,this.logGroupName=props.logGroupName,this.logRoleArn=props.logRoleArn}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnMacroPropsFromCloudFormation(resourceProperties),ret=new CfnMacro(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}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",CfnMacro.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{functionName:this.functionName,name:this.name,description:this.description,logGroupName:this.logGroupName,logRoleArn:this.logRoleArn}}renderProperties(props){return cfnMacroPropsToCloudFormation(props)}}exports.CfnMacro=CfnMacro,_e=JSII_RTTI_SYMBOL_1,CfnMacro[_e]={fqn:"aws-cdk-lib.CfnMacro",version:"2.70.0"},CfnMacro.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::Macro";function CfnModuleDefaultVersionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("arn",cdk.validateString)(properties.arn)),errors.collect(cdk.propertyValidator("moduleName",cdk.validateString)(properties.moduleName)),errors.collect(cdk.propertyValidator("versionId",cdk.validateString)(properties.versionId)),errors.wrap('supplied properties not correct for "CfnModuleDefaultVersionProps"')}function cfnModuleDefaultVersionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnModuleDefaultVersionPropsValidator(properties).assertSuccess(),{Arn:cdk.stringToCloudFormation(properties.arn),ModuleName:cdk.stringToCloudFormation(properties.moduleName),VersionId:cdk.stringToCloudFormation(properties.versionId)}):properties}function CfnModuleDefaultVersionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")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("moduleName","ModuleName",properties.ModuleName!=null?cfn_parse.FromCloudFormation.getString(properties.ModuleName):void 0),ret.addPropertyResult("versionId","VersionId",properties.VersionId!=null?cfn_parse.FromCloudFormation.getString(properties.VersionId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnModuleDefaultVersion extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnModuleDefaultVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnModuleDefaultVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnModuleDefaultVersion),error}this.arn=props.arn,this.moduleName=props.moduleName,this.versionId=props.versionId}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnModuleDefaultVersionPropsFromCloudFormation(resourceProperties),ret=new CfnModuleDefaultVersion(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}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",CfnModuleDefaultVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{arn:this.arn,moduleName:this.moduleName,versionId:this.versionId}}renderProperties(props){return cfnModuleDefaultVersionPropsToCloudFormation(props)}}exports.CfnModuleDefaultVersion=CfnModuleDefaultVersion,_f=JSII_RTTI_SYMBOL_1,CfnModuleDefaultVersion[_f]={fqn:"aws-cdk-lib.CfnModuleDefaultVersion",version:"2.70.0"},CfnModuleDefaultVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ModuleDefaultVersion";function CfnModuleVersionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("moduleName",cdk.requiredValidator)(properties.moduleName)),errors.collect(cdk.propertyValidator("moduleName",cdk.validateString)(properties.moduleName)),errors.collect(cdk.propertyValidator("modulePackage",cdk.requiredValidator)(properties.modulePackage)),errors.collect(cdk.propertyValidator("modulePackage",cdk.validateString)(properties.modulePackage)),errors.wrap('supplied properties not correct for "CfnModuleVersionProps"')}function cfnModuleVersionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnModuleVersionPropsValidator(properties).assertSuccess(),{ModuleName:cdk.stringToCloudFormation(properties.moduleName),ModulePackage:cdk.stringToCloudFormation(properties.modulePackage)}):properties}function CfnModuleVersionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("moduleName","ModuleName",cfn_parse.FromCloudFormation.getString(properties.ModuleName)),ret.addPropertyResult("modulePackage","ModulePackage",cfn_parse.FromCloudFormation.getString(properties.ModulePackage)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnModuleVersion extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnModuleVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnModuleVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnModuleVersion),error}cdk.requireProperty(props,"moduleName",this),cdk.requireProperty(props,"modulePackage",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrDescription=cdk.Token.asString(this.getAtt("Description",cdk.ResolutionTypeHint.STRING)),this.attrDocumentationUrl=cdk.Token.asString(this.getAtt("DocumentationUrl",cdk.ResolutionTypeHint.STRING)),this.attrIsDefaultVersion=this.getAtt("IsDefaultVersion",cdk.ResolutionTypeHint.STRING),this.attrSchema=cdk.Token.asString(this.getAtt("Schema",cdk.ResolutionTypeHint.STRING)),this.attrTimeCreated=cdk.Token.asString(this.getAtt("TimeCreated",cdk.ResolutionTypeHint.STRING)),this.attrVersionId=cdk.Token.asString(this.getAtt("VersionId",cdk.ResolutionTypeHint.STRING)),this.attrVisibility=cdk.Token.asString(this.getAtt("Visibility",cdk.ResolutionTypeHint.STRING)),this.moduleName=props.moduleName,this.modulePackage=props.modulePackage}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnModuleVersionPropsFromCloudFormation(resourceProperties),ret=new CfnModuleVersion(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}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",CfnModuleVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{moduleName:this.moduleName,modulePackage:this.modulePackage}}renderProperties(props){return cfnModuleVersionPropsToCloudFormation(props)}}exports.CfnModuleVersion=CfnModuleVersion,_g=JSII_RTTI_SYMBOL_1,CfnModuleVersion[_g]={fqn:"aws-cdk-lib.CfnModuleVersion",version:"2.70.0"},CfnModuleVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ModuleVersion";function CfnPublicTypeVersionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("arn",cdk.validateString)(properties.arn)),errors.collect(cdk.propertyValidator("logDeliveryBucket",cdk.validateString)(properties.logDeliveryBucket)),errors.collect(cdk.propertyValidator("publicVersionNumber",cdk.validateString)(properties.publicVersionNumber)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.collect(cdk.propertyValidator("typeName",cdk.validateString)(properties.typeName)),errors.wrap('supplied properties not correct for "CfnPublicTypeVersionProps"')}function cfnPublicTypeVersionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPublicTypeVersionPropsValidator(properties).assertSuccess(),{Arn:cdk.stringToCloudFormation(properties.arn),LogDeliveryBucket:cdk.stringToCloudFormation(properties.logDeliveryBucket),PublicVersionNumber:cdk.stringToCloudFormation(properties.publicVersionNumber),Type:cdk.stringToCloudFormation(properties.type),TypeName:cdk.stringToCloudFormation(properties.typeName)}):properties}function CfnPublicTypeVersionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")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("logDeliveryBucket","LogDeliveryBucket",properties.LogDeliveryBucket!=null?cfn_parse.FromCloudFormation.getString(properties.LogDeliveryBucket):void 0),ret.addPropertyResult("publicVersionNumber","PublicVersionNumber",properties.PublicVersionNumber!=null?cfn_parse.FromCloudFormation.getString(properties.PublicVersionNumber):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addPropertyResult("typeName","TypeName",properties.TypeName!=null?cfn_parse.FromCloudFormation.getString(properties.TypeName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnPublicTypeVersion extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnPublicTypeVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnPublicTypeVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPublicTypeVersion),error}this.attrPublicTypeArn=cdk.Token.asString(this.getAtt("PublicTypeArn",cdk.ResolutionTypeHint.STRING)),this.attrPublisherId=cdk.Token.asString(this.getAtt("PublisherId",cdk.ResolutionTypeHint.STRING)),this.attrTypeVersionArn=cdk.Token.asString(this.getAtt("TypeVersionArn",cdk.ResolutionTypeHint.STRING)),this.arn=props.arn,this.logDeliveryBucket=props.logDeliveryBucket,this.publicVersionNumber=props.publicVersionNumber,this.type=props.type,this.typeName=props.typeName}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPublicTypeVersionPropsFromCloudFormation(resourceProperties),ret=new CfnPublicTypeVersion(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}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",CfnPublicTypeVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{arn:this.arn,logDeliveryBucket:this.logDeliveryBucket,publicVersionNumber:this.publicVersionNumber,type:this.type,typeName:this.typeName}}renderProperties(props){return cfnPublicTypeVersionPropsToCloudFormation(props)}}exports.CfnPublicTypeVersion=CfnPublicTypeVersion,_h=JSII_RTTI_SYMBOL_1,CfnPublicTypeVersion[_h]={fqn:"aws-cdk-lib.CfnPublicTypeVersion",version:"2.70.0"},CfnPublicTypeVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::PublicTypeVersion";function CfnPublisherPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("acceptTermsAndConditions",cdk.requiredValidator)(properties.acceptTermsAndConditions)),errors.collect(cdk.propertyValidator("acceptTermsAndConditions",cdk.validateBoolean)(properties.acceptTermsAndConditions)),errors.collect(cdk.propertyValidator("connectionArn",cdk.validateString)(properties.connectionArn)),errors.wrap('supplied properties not correct for "CfnPublisherProps"')}function cfnPublisherPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPublisherPropsValidator(properties).assertSuccess(),{AcceptTermsAndConditions:cdk.booleanToCloudFormation(properties.acceptTermsAndConditions),ConnectionArn:cdk.stringToCloudFormation(properties.connectionArn)}):properties}function CfnPublisherPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("acceptTermsAndConditions","AcceptTermsAndConditions",cfn_parse.FromCloudFormation.getBoolean(properties.AcceptTermsAndConditions)),ret.addPropertyResult("connectionArn","ConnectionArn",properties.ConnectionArn!=null?cfn_parse.FromCloudFormation.getString(properties.ConnectionArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnPublisher extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnPublisher.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnPublisherProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPublisher),error}cdk.requireProperty(props,"acceptTermsAndConditions",this),this.attrIdentityProvider=cdk.Token.asString(this.getAtt("IdentityProvider",cdk.ResolutionTypeHint.STRING)),this.attrPublisherId=cdk.Token.asString(this.getAtt("PublisherId",cdk.ResolutionTypeHint.STRING)),this.attrPublisherProfile=cdk.Token.asString(this.getAtt("PublisherProfile",cdk.ResolutionTypeHint.STRING)),this.attrPublisherStatus=cdk.Token.asString(this.getAtt("PublisherStatus",cdk.ResolutionTypeHint.STRING)),this.acceptTermsAndConditions=props.acceptTermsAndConditions,this.connectionArn=props.connectionArn}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPublisherPropsFromCloudFormation(resourceProperties),ret=new CfnPublisher(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}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",CfnPublisher.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{acceptTermsAndConditions:this.acceptTermsAndConditions,connectionArn:this.connectionArn}}renderProperties(props){return cfnPublisherPropsToCloudFormation(props)}}exports.CfnPublisher=CfnPublisher,_j=JSII_RTTI_SYMBOL_1,CfnPublisher[_j]={fqn:"aws-cdk-lib.CfnPublisher",version:"2.70.0"},CfnPublisher.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::Publisher";function CfnResourceDefaultVersionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("typeName",cdk.validateString)(properties.typeName)),errors.collect(cdk.propertyValidator("typeVersionArn",cdk.validateString)(properties.typeVersionArn)),errors.collect(cdk.propertyValidator("versionId",cdk.validateString)(properties.versionId)),errors.wrap('supplied properties not correct for "CfnResourceDefaultVersionProps"')}function cfnResourceDefaultVersionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnResourceDefaultVersionPropsValidator(properties).assertSuccess(),{TypeName:cdk.stringToCloudFormation(properties.typeName),TypeVersionArn:cdk.stringToCloudFormation(properties.typeVersionArn),VersionId:cdk.stringToCloudFormation(properties.versionId)}):properties}function CfnResourceDefaultVersionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("typeName","TypeName",properties.TypeName!=null?cfn_parse.FromCloudFormation.getString(properties.TypeName):void 0),ret.addPropertyResult("typeVersionArn","TypeVersionArn",properties.TypeVersionArn!=null?cfn_parse.FromCloudFormation.getString(properties.TypeVersionArn):void 0),ret.addPropertyResult("versionId","VersionId",properties.VersionId!=null?cfn_parse.FromCloudFormation.getString(properties.VersionId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnResourceDefaultVersion extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnResourceDefaultVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnResourceDefaultVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnResourceDefaultVersion),error}this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.typeName=props.typeName,this.typeVersionArn=props.typeVersionArn,this.versionId=props.versionId}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResourceDefaultVersionPropsFromCloudFormation(resourceProperties),ret=new CfnResourceDefaultVersion(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}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",CfnResourceDefaultVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{typeName:this.typeName,typeVersionArn:this.typeVersionArn,versionId:this.versionId}}renderProperties(props){return cfnResourceDefaultVersionPropsToCloudFormation(props)}}exports.CfnResourceDefaultVersion=CfnResourceDefaultVersion,_k=JSII_RTTI_SYMBOL_1,CfnResourceDefaultVersion[_k]={fqn:"aws-cdk-lib.CfnResourceDefaultVersion",version:"2.70.0"},CfnResourceDefaultVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ResourceDefaultVersion";function CfnResourceVersionPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("executionRoleArn",cdk.validateString)(properties.executionRoleArn)),errors.collect(cdk.propertyValidator("loggingConfig",CfnResourceVersion_LoggingConfigPropertyValidator)(properties.loggingConfig)),errors.collect(cdk.propertyValidator("schemaHandlerPackage",cdk.requiredValidator)(properties.schemaHandlerPackage)),errors.collect(cdk.propertyValidator("schemaHandlerPackage",cdk.validateString)(properties.schemaHandlerPackage)),errors.collect(cdk.propertyValidator("typeName",cdk.requiredValidator)(properties.typeName)),errors.collect(cdk.propertyValidator("typeName",cdk.validateString)(properties.typeName)),errors.wrap('supplied properties not correct for "CfnResourceVersionProps"')}function cfnResourceVersionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnResourceVersionPropsValidator(properties).assertSuccess(),{SchemaHandlerPackage:cdk.stringToCloudFormation(properties.schemaHandlerPackage),TypeName:cdk.stringToCloudFormation(properties.typeName),ExecutionRoleArn:cdk.stringToCloudFormation(properties.executionRoleArn),LoggingConfig:cfnResourceVersionLoggingConfigPropertyToCloudFormation(properties.loggingConfig)}):properties}function CfnResourceVersionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("schemaHandlerPackage","SchemaHandlerPackage",cfn_parse.FromCloudFormation.getString(properties.SchemaHandlerPackage)),ret.addPropertyResult("typeName","TypeName",cfn_parse.FromCloudFormation.getString(properties.TypeName)),ret.addPropertyResult("executionRoleArn","ExecutionRoleArn",properties.ExecutionRoleArn!=null?cfn_parse.FromCloudFormation.getString(properties.ExecutionRoleArn):void 0),ret.addPropertyResult("loggingConfig","LoggingConfig",properties.LoggingConfig!=null?CfnResourceVersionLoggingConfigPropertyFromCloudFormation(properties.LoggingConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnResourceVersion extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnResourceVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_CfnResourceVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnResourceVersion),error}cdk.requireProperty(props,"schemaHandlerPackage",this),cdk.requireProperty(props,"typeName",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrIsDefaultVersion=this.getAtt("IsDefaultVersion",cdk.ResolutionTypeHint.STRING),this.attrProvisioningType=cdk.Token.asString(this.getAtt("ProvisioningType",cdk.ResolutionTypeHint.STRING)),this.attrTypeArn=cdk.Token.asString(this.getAtt("TypeArn",cdk.ResolutionTypeHint.STRING)),this.attrVersionId=cdk.Token.asString(this.getAtt("VersionId",cdk.ResolutionTypeHint.STRING)),this.attrVisibility=cdk.Token.asString(this.getAtt("Visibility",cdk.ResolutionTypeHint.STRING)),this.schemaHandlerPackage=props.schemaHandlerPackage,this.typeName=props.typeName,this.executionRoleArn=props.executionRoleArn,this.loggingConfig=props.loggingConfig}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResourceVersionPropsFromCloudFormation(resourceProperties),ret=new CfnResourceVersion(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}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",CfnResourceVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{schemaHandlerPackage:this.schemaHandlerPackage,typeName:this.typeName,executionRoleArn:this.executionRoleArn,loggingConfig:this.loggingConfig}}renderProperties(props){return cfnResourceVersionPropsToCloudFormation(props)}}exports.CfnResourceVersion=CfnResourceVersion,_l=JSII_RTTI_SYMBOL_1,CfnResourceVersion[_l]={fqn:"aws-cdk-lib.CfnResourceVersion",version:"2.70.0"},CfnResourceVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ResourceVersion";function CfnResourceVersion_LoggingConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("logGroupName",cdk.validateString)(properties.logGroupName)),errors.collect(cdk.propertyValidator("logRoleArn",cdk.validateString)(properties.logRoleArn)),errors.wrap('supplied properties not correct for "LoggingConfigProperty"')}function cfnResourceVersionLoggingConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnResourceVersion_LoggingConfigPropertyValidator(properties).assertSuccess(),{LogGroupName:cdk.stringToCloudFormation(properties.logGroupName),LogRoleArn:cdk.stringToCloudFormation(properties.logRoleArn)}):properties}function CfnResourceVersionLoggingConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("logGroupName","LogGroupName",properties.LogGroupName!=null?cfn_parse.FromCloudFormation.getString(properties.LogGroupName):void 0),ret.addPropertyResult("logRoleArn","LogRoleArn",properties.LogRoleArn!=null?cfn_parse.FromCloudFormation.getString(properties.LogRoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStackPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("notificationArns",cdk.listValidator(cdk.validateString))(properties.notificationArns)),errors.collect(cdk.propertyValidator("parameters",cdk.hashValidator(cdk.validateString))(properties.parameters)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("templateUrl",cdk.requiredValidator)(properties.templateUrl)),errors.collect(cdk.propertyValidator("templateUrl",cdk.validateString)(properties.templateUrl)),errors.collect(cdk.propertyValidator("timeoutInMinutes",cdk.validateNumber)(properties.timeoutInMinutes)),errors.wrap('supplied properties not correct for "CfnStackProps"')}function cfnStackPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStackPropsValidator(properties).assertSuccess(),{TemplateURL:cdk.stringToCloudFormation(properties.templateUrl),NotificationARNs:cdk.listMapper(cdk.stringToCloudFormation)(properties.notificationArns),Parameters:cdk.hashMapper(cdk.stringToCloudFormation)(properties.parameters),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),TimeoutInMinutes:cdk.numberToCloudFormation(properties.timeoutInMinutes)}):properties}function CfnStackPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResul