aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 142 kB
JavaScript
"use strict";var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnLambdaHook=exports.CfnGuardHook=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;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(".");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("./helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("./errors");return cdk_errors=()=>tmp,tmp};class CfnCustomResource extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCustomResourcePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.serviceTimeout=props.serviceTimeout,this.serviceToken=props.serviceToken}get cfnProperties(){return{serviceTimeout:this.serviceTimeout,serviceToken:this.serviceToken}}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)}renderProperties(props){return convertCfnCustomResourcePropsToCloudFormation(props)}}exports.CfnCustomResource=CfnCustomResource,_a=JSII_RTTI_SYMBOL_1,CfnCustomResource[_a]={fqn:"aws-cdk-lib.CfnCustomResource",version:"2.185.0"},CfnCustomResource.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::CustomResource";function CfnCustomResourcePropsValidator(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("serviceTimeout",cdk().validateNumber)(properties.serviceTimeout)),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 convertCfnCustomResourcePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCustomResourcePropsValidator(properties).assertSuccess(),{ServiceTimeout:cdk().numberToCloudFormation(properties.serviceTimeout),ServiceToken:cdk().stringToCloudFormation(properties.serviceToken)}):properties}function CfnCustomResourcePropsFromCloudFormation(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("serviceTimeout","ServiceTimeout",properties.ServiceTimeout!=null?cfn_parse().FromCloudFormation.getNumber(properties.ServiceTimeout):void 0),ret.addPropertyResult("serviceToken","ServiceToken",properties.ServiceToken!=null?cfn_parse().FromCloudFormation.getString(properties.ServiceToken):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnHookDefaultVersion extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHookDefaultVersionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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}get cfnProperties(){return{typeName:this.typeName,typeVersionArn:this.typeVersionArn,versionId:this.versionId}}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)}renderProperties(props){return convertCfnHookDefaultVersionPropsToCloudFormation(props)}}exports.CfnHookDefaultVersion=CfnHookDefaultVersion,_b=JSII_RTTI_SYMBOL_1,CfnHookDefaultVersion[_b]={fqn:"aws-cdk-lib.CfnHookDefaultVersion",version:"2.185.0"},CfnHookDefaultVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::HookDefaultVersion";function CfnHookDefaultVersionPropsValidator(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("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 convertCfnHookDefaultVersionPropsToCloudFormation(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(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("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 CfnHookTypeConfig extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHookTypeConfigPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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}get cfnProperties(){return{configuration:this.configuration,configurationAlias:this.configurationAlias,typeArn:this.typeArn,typeName:this.typeName}}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)}renderProperties(props){return convertCfnHookTypeConfigPropsToCloudFormation(props)}}exports.CfnHookTypeConfig=CfnHookTypeConfig,_c=JSII_RTTI_SYMBOL_1,CfnHookTypeConfig[_c]={fqn:"aws-cdk-lib.CfnHookTypeConfig",version:"2.185.0"},CfnHookTypeConfig.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::HookTypeConfig";function CfnHookTypeConfigPropsValidator(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("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 convertCfnHookTypeConfigPropsToCloudFormation(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(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("configuration","Configuration",properties.Configuration!=null?cfn_parse().FromCloudFormation.getString(properties.Configuration):void 0),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 CfnHookVersion extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnHookVersionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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"),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.executionRoleArn=props.executionRoleArn,this.loggingConfig=props.loggingConfig,this.schemaHandlerPackage=props.schemaHandlerPackage,this.typeName=props.typeName}get cfnProperties(){return{executionRoleArn:this.executionRoleArn,loggingConfig:this.loggingConfig,schemaHandlerPackage:this.schemaHandlerPackage,typeName:this.typeName}}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)}renderProperties(props){return convertCfnHookVersionPropsToCloudFormation(props)}}exports.CfnHookVersion=CfnHookVersion,_d=JSII_RTTI_SYMBOL_1,CfnHookVersion[_d]={fqn:"aws-cdk-lib.CfnHookVersion",version:"2.185.0"},CfnHookVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::HookVersion";function CfnHookVersionLoggingConfigPropertyValidator(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("logGroupName",cdk().validateString)(properties.logGroupName)),errors.collect(cdk().propertyValidator("logRoleArn",cdk().validateString)(properties.logRoleArn)),errors.wrap('supplied properties not correct for "LoggingConfigProperty"')}function convertCfnHookVersionLoggingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnHookVersionLoggingConfigPropertyValidator(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??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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 CfnHookVersionPropsValidator(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("executionRoleArn",cdk().validateString)(properties.executionRoleArn)),errors.collect(cdk().propertyValidator("loggingConfig",CfnHookVersionLoggingConfigPropertyValidator)(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 convertCfnHookVersionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnHookVersionPropsValidator(properties).assertSuccess(),{ExecutionRoleArn:cdk().stringToCloudFormation(properties.executionRoleArn),LoggingConfig:convertCfnHookVersionLoggingConfigPropertyToCloudFormation(properties.loggingConfig),SchemaHandlerPackage:cdk().stringToCloudFormation(properties.schemaHandlerPackage),TypeName:cdk().stringToCloudFormation(properties.typeName)}):properties}function CfnHookVersionPropsFromCloudFormation(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("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.addPropertyResult("schemaHandlerPackage","SchemaHandlerPackage",properties.SchemaHandlerPackage!=null?cfn_parse().FromCloudFormation.getString(properties.SchemaHandlerPackage):void 0),ret.addPropertyResult("typeName","TypeName",properties.TypeName!=null?cfn_parse().FromCloudFormation.getString(properties.TypeName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnMacro extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnMacroPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.description=props.description,this.functionName=props.functionName,this.logGroupName=props.logGroupName,this.logRoleArn=props.logRoleArn,this.name=props.name}get cfnProperties(){return{description:this.description,functionName:this.functionName,logGroupName:this.logGroupName,logRoleArn:this.logRoleArn,name:this.name}}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)}renderProperties(props){return convertCfnMacroPropsToCloudFormation(props)}}exports.CfnMacro=CfnMacro,_e=JSII_RTTI_SYMBOL_1,CfnMacro[_e]={fqn:"aws-cdk-lib.CfnMacro",version:"2.185.0"},CfnMacro.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::Macro";function CfnMacroPropsValidator(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("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 convertCfnMacroPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnMacroPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),FunctionName:cdk().stringToCloudFormation(properties.functionName),LogGroupName:cdk().stringToCloudFormation(properties.logGroupName),LogRoleARN:cdk().stringToCloudFormation(properties.logRoleArn),Name:cdk().stringToCloudFormation(properties.name)}):properties}function CfnMacroPropsFromCloudFormation(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("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.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnModuleDefaultVersion extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnModuleDefaultVersionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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}get cfnProperties(){return{arn:this.arn,moduleName:this.moduleName,versionId:this.versionId}}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)}renderProperties(props){return convertCfnModuleDefaultVersionPropsToCloudFormation(props)}}exports.CfnModuleDefaultVersion=CfnModuleDefaultVersion,_f=JSII_RTTI_SYMBOL_1,CfnModuleDefaultVersion[_f]={fqn:"aws-cdk-lib.CfnModuleDefaultVersion",version:"2.185.0"},CfnModuleDefaultVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ModuleDefaultVersion";function CfnModuleDefaultVersionPropsValidator(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().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 convertCfnModuleDefaultVersionPropsToCloudFormation(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(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("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 CfnModuleVersion extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnModuleVersionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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"),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}get cfnProperties(){return{moduleName:this.moduleName,modulePackage:this.modulePackage}}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)}renderProperties(props){return convertCfnModuleVersionPropsToCloudFormation(props)}}exports.CfnModuleVersion=CfnModuleVersion,_g=JSII_RTTI_SYMBOL_1,CfnModuleVersion[_g]={fqn:"aws-cdk-lib.CfnModuleVersion",version:"2.185.0"},CfnModuleVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ModuleVersion";function CfnModuleVersionPropsValidator(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("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 convertCfnModuleVersionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnModuleVersionPropsValidator(properties).assertSuccess(),{ModuleName:cdk().stringToCloudFormation(properties.moduleName),ModulePackage:cdk().stringToCloudFormation(properties.modulePackage)}):properties}function CfnModuleVersionPropsFromCloudFormation(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("moduleName","ModuleName",properties.ModuleName!=null?cfn_parse().FromCloudFormation.getString(properties.ModuleName):void 0),ret.addPropertyResult("modulePackage","ModulePackage",properties.ModulePackage!=null?cfn_parse().FromCloudFormation.getString(properties.ModulePackage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnPublicTypeVersion extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPublicTypeVersionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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}get cfnProperties(){return{arn:this.arn,logDeliveryBucket:this.logDeliveryBucket,publicVersionNumber:this.publicVersionNumber,type:this.type,typeName:this.typeName}}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)}renderProperties(props){return convertCfnPublicTypeVersionPropsToCloudFormation(props)}}exports.CfnPublicTypeVersion=CfnPublicTypeVersion,_h=JSII_RTTI_SYMBOL_1,CfnPublicTypeVersion[_h]={fqn:"aws-cdk-lib.CfnPublicTypeVersion",version:"2.185.0"},CfnPublicTypeVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::PublicTypeVersion";function CfnPublicTypeVersionPropsValidator(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().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 convertCfnPublicTypeVersionPropsToCloudFormation(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(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("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 CfnPublisher extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPublisherPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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}get cfnProperties(){return{acceptTermsAndConditions:this.acceptTermsAndConditions,connectionArn:this.connectionArn}}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)}renderProperties(props){return convertCfnPublisherPropsToCloudFormation(props)}}exports.CfnPublisher=CfnPublisher,_j=JSII_RTTI_SYMBOL_1,CfnPublisher[_j]={fqn:"aws-cdk-lib.CfnPublisher",version:"2.185.0"},CfnPublisher.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::Publisher";function CfnPublisherPropsValidator(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("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 convertCfnPublisherPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPublisherPropsValidator(properties).assertSuccess(),{AcceptTermsAndConditions:cdk().booleanToCloudFormation(properties.acceptTermsAndConditions),ConnectionArn:cdk().stringToCloudFormation(properties.connectionArn)}):properties}function CfnPublisherPropsFromCloudFormation(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("acceptTermsAndConditions","AcceptTermsAndConditions",properties.AcceptTermsAndConditions!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AcceptTermsAndConditions):void 0),ret.addPropertyResult("connectionArn","ConnectionArn",properties.ConnectionArn!=null?cfn_parse().FromCloudFormation.getString(properties.ConnectionArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnResourceDefaultVersion extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResourceDefaultVersionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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}get cfnProperties(){return{typeName:this.typeName,typeVersionArn:this.typeVersionArn,versionId:this.versionId}}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)}renderProperties(props){return convertCfnResourceDefaultVersionPropsToCloudFormation(props)}}exports.CfnResourceDefaultVersion=CfnResourceDefaultVersion,_k=JSII_RTTI_SYMBOL_1,CfnResourceDefaultVersion[_k]={fqn:"aws-cdk-lib.CfnResourceDefaultVersion",version:"2.185.0"},CfnResourceDefaultVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ResourceDefaultVersion";function CfnResourceDefaultVersionPropsValidator(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("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 convertCfnResourceDefaultVersionPropsToCloudFormation(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(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("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 CfnResourceVersion extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResourceVersionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const 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}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"),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.executionRoleArn=props.executionRoleArn,this.loggingConfig=props.loggingConfig,this.schemaHandlerPackage=props.schemaHandlerPackage,this.typeName=props.typeName}get cfnProperties(){return{executionRoleArn:this.executionRoleArn,loggingConfig:this.loggingConfig,schemaHandlerPackage:this.schemaHandlerPackage,typeName:this.typeName}}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)}renderProperties(props){return convertCfnResourceVersionPropsToCloudFormation(props)}}exports.CfnResourceVersion=CfnResourceVersion,_l=JSII_RTTI_SYMBOL_1,CfnResourceVersion[_l]={fqn:"aws-cdk-lib.CfnResourceVersion",version:"2.185.0"},CfnResourceVersion.CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ResourceVersion";function CfnResourceVersionLoggingConfigPropertyValidator(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("l