UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 164 kB
"use strict";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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.CfnCustomResource",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::CustomResource";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnCustomResource(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnCustomResource.CFN_RESOURCE_TYPE_NAME}_serviceTimeout;_serviceToken;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._serviceTimeout=props.serviceTimeout,this._serviceToken=props.serviceToken}get customResourceRef(){return{customResourceId:this.ref}}get serviceTimeout(){return this._serviceTimeout}set serviceTimeout(value){cdk().traceProperty(this.node,"ServiceTimeout"),this._serviceTimeout=value}get serviceToken(){return this._serviceToken}set serviceToken(value){cdk().traceProperty(this.node,"ServiceToken"),this._serviceToken=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCustomResourcePropsToCloudFormation(props)}}exports.CfnCustomResource=CfnCustomResource;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.CfnHookDefaultVersion",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::HookDefaultVersion";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnHookDefaultVersion(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnHookDefaultVersion.CFN_RESOURCE_TYPE_NAME}static arnForHookDefaultVersion(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cloudformation_IHookDefaultVersionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForHookDefaultVersion),error}return resource.hookDefaultVersionRef.hookDefaultVersionArn}_typeName;_typeVersionArn;_versionId;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._typeName=props.typeName,this._typeVersionArn=props.typeVersionArn,this._versionId=props.versionId}get hookDefaultVersionRef(){return{hookDefaultVersionArn:this.ref}}get typeName(){return this._typeName}set typeName(value){cdk().traceProperty(this.node,"TypeName"),this._typeName=value}get typeVersionArn(){return this._typeVersionArn}set typeVersionArn(value){cdk().traceProperty(this.node,"TypeVersionArn"),this._typeVersionArn=value}get versionId(){return this._versionId}set versionId(value){cdk().traceProperty(this.node,"VersionId"),this._versionId=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnHookDefaultVersionPropsToCloudFormation(props)}}exports.CfnHookDefaultVersion=CfnHookDefaultVersion;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.CfnHookTypeConfig",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::HookTypeConfig";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnHookTypeConfig(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnHookTypeConfig.CFN_RESOURCE_TYPE_NAME}_configuration;_configurationAlias;_typeArn;_typeName;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._configuration=props.configuration,this._configurationAlias=props.configurationAlias,this._typeArn=props.typeArn,this._typeName=props.typeName}get hookTypeConfigRef(){return{configurationArn:this.ref}}get configuration(){return this._configuration}set configuration(value){cdk().traceProperty(this.node,"Configuration"),this._configuration=value}get configurationAlias(){return this._configurationAlias}set configurationAlias(value){cdk().traceProperty(this.node,"ConfigurationAlias"),this._configurationAlias=value}get typeArn(){return this._typeArn}set typeArn(value){cdk().traceProperty(this.node,"TypeArn"),this._typeArn=value}get typeName(){return this._typeName}set typeName(value){cdk().traceProperty(this.node,"TypeName"),this._typeName=value}get attrConfigurationArn(){return cdk().Token.asString(this.getAtt("ConfigurationArn",cdk().ResolutionTypeHint.STRING))}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnHookTypeConfigPropsToCloudFormation(props)}}exports.CfnHookTypeConfig=CfnHookTypeConfig;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.CfnHookVersion",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::HookVersion";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnHookVersion(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnHookVersion.CFN_RESOURCE_TYPE_NAME}static arnForHookVersion(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cloudformation_IHookVersionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForHookVersion),error}return resource.hookVersionRef.hookVersionArn}_executionRoleArn;_loggingConfig;_schemaHandlerPackage;_typeName;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._executionRoleArn=props.executionRoleArn,this._loggingConfig=props.loggingConfig,this._schemaHandlerPackage=props.schemaHandlerPackage,this._typeName=props.typeName}get hookVersionRef(){return{hookVersionArn:this.ref}}get executionRoleArn(){return this._executionRoleArn}set executionRoleArn(value){cdk().traceProperty(this.node,"ExecutionRoleArn"),this._executionRoleArn=value}get loggingConfig(){return this._loggingConfig}set loggingConfig(value){cdk().traceProperty(this.node,"LoggingConfig"),this._loggingConfig=value}get schemaHandlerPackage(){return this._schemaHandlerPackage}set schemaHandlerPackage(value){cdk().traceProperty(this.node,"SchemaHandlerPackage"),this._schemaHandlerPackage=value}get typeName(){return this._typeName}set typeName(value){cdk().traceProperty(this.node,"TypeName"),this._typeName=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrIsDefaultVersion(){return this.getAtt("IsDefaultVersion")}get attrTypeArn(){return cdk().Token.asString(this.getAtt("TypeArn",cdk().ResolutionTypeHint.STRING))}get attrVersionId(){return cdk().Token.asString(this.getAtt("VersionId",cdk().ResolutionTypeHint.STRING))}get attrVisibility(){return cdk().Token.asString(this.getAtt("Visibility",cdk().ResolutionTypeHint.STRING))}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnHookVersionPropsToCloudFormation(props)}}exports.CfnHookVersion=CfnHookVersion;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.CfnMacro",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::Macro";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnMacro(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnMacro.CFN_RESOURCE_TYPE_NAME}_description;_functionName;_logGroupName;_logRoleArn;_name;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._description=props.description,this._functionName=props.functionName,this._logGroupName=props.logGroupName,this._logRoleArn=props.logRoleArn,this._name=props.name}get macroRef(){return{macroId:this.ref}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get functionName(){return this._functionName}set functionName(value){cdk().traceProperty(this.node,"FunctionName"),this._functionName=value}get logGroupName(){return this._logGroupName}set logGroupName(value){cdk().traceProperty(this.node,"LogGroupName"),this._logGroupName=value}get logRoleArn(){return this._logRoleArn}set logRoleArn(value){cdk().traceProperty(this.node,"LogRoleARN"),this._logRoleArn=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnMacroPropsToCloudFormation(props)}}exports.CfnMacro=CfnMacro;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.CfnModuleDefaultVersion",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ModuleDefaultVersion";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnModuleDefaultVersion(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnModuleDefaultVersion.CFN_RESOURCE_TYPE_NAME}_arn;_moduleName;_versionId;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=cdk().getRefProperty(props.arn?.moduleVersionRef,"moduleVersionArn")??cdk().ensureStringOrUndefined(props.arn,"arn","cloudformation.IModuleVersionRef | string"),this._moduleName=props.moduleName,this._versionId=props.versionId}get moduleDefaultVersionRef(){return{moduleDefaultVersionArn:this.ref}}get arn(){return this._arn}set arn(value){cdk().traceProperty(this.node,"Arn"),this._arn=value}get moduleName(){return this._moduleName}set moduleName(value){cdk().traceProperty(this.node,"ModuleName"),this._moduleName=value}get versionId(){return this._versionId}set versionId(value){cdk().traceProperty(this.node,"VersionId"),this._versionId=value}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnModuleDefaultVersionPropsToCloudFormation(props)}}exports.CfnModuleDefaultVersion=CfnModuleDefaultVersion;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.CfnModuleVersion",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ModuleVersion";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnModuleVersion(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnModuleVersion.CFN_RESOURCE_TYPE_NAME}static arnForModuleVersion(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cloudformation_IModuleVersionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForModuleVersion),error}return resource.moduleVersionRef.moduleVersionArn}_moduleName;_modulePackage;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._moduleName=props.moduleName,this._modulePackage=props.modulePackage}get moduleVersionRef(){return{moduleVersionArn:this.ref}}get moduleName(){return this._moduleName}set moduleName(value){cdk().traceProperty(this.node,"ModuleName"),this._moduleName=value}get modulePackage(){return this._modulePackage}set modulePackage(value){cdk().traceProperty(this.node,"ModulePackage"),this._modulePackage=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrDescription(){return cdk().Token.asString(this.getAtt("Description",cdk().ResolutionTypeHint.STRING))}get attrDocumentationUrl(){return cdk().Token.asString(this.getAtt("DocumentationUrl",cdk().ResolutionTypeHint.STRING))}get attrIsDefaultVersion(){return this.getAtt("IsDefaultVersion")}get attrSchema(){return cdk().Token.asString(this.getAtt("Schema",cdk().ResolutionTypeHint.STRING))}get attrTimeCreated(){return cdk().Token.asString(this.getAtt("TimeCreated",cdk().ResolutionTypeHint.STRING))}get attrVersionId(){return cdk().Token.asString(this.getAtt("VersionId",cdk().ResolutionTypeHint.STRING))}get attrVisibility(){return cdk().Token.asString(this.getAtt("Visibility",cdk().ResolutionTypeHint.STRING))}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnModuleVersionPropsToCloudFormation(props)}}exports.CfnModuleVersion=CfnModuleVersion;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.CfnPublicTypeVersion",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::PublicTypeVersion";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnPublicTypeVersion(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPublicTypeVersion.CFN_RESOURCE_TYPE_NAME}_arn;_logDeliveryBucket;_publicVersionNumber;_type;_typeName;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._arn=props.arn,this._logDeliveryBucket=props.logDeliveryBucket,this._publicVersionNumber=props.publicVersionNumber,this._type=props.type,this._typeName=props.typeName}get publicTypeVersionRef(){return{publicTypeArn:this.ref}}get arn(){return this._arn}set arn(value){cdk().traceProperty(this.node,"Arn"),this._arn=value}get logDeliveryBucket(){return this._logDeliveryBucket}set logDeliveryBucket(value){cdk().traceProperty(this.node,"LogDeliveryBucket"),this._logDeliveryBucket=value}get publicVersionNumber(){return this._publicVersionNumber}set publicVersionNumber(value){cdk().traceProperty(this.node,"PublicVersionNumber"),this._publicVersionNumber=value}get type(){return this._type}set type(value){cdk().traceProperty(this.node,"Type"),this._type=value}get typeName(){return this._typeName}set typeName(value){cdk().traceProperty(this.node,"TypeName"),this._typeName=value}get attrPublicTypeArn(){return cdk().Token.asString(this.getAtt("PublicTypeArn",cdk().ResolutionTypeHint.STRING))}get attrPublisherId(){return cdk().Token.asString(this.getAtt("PublisherId",cdk().ResolutionTypeHint.STRING))}get attrTypeVersionArn(){return cdk().Token.asString(this.getAtt("TypeVersionArn",cdk().ResolutionTypeHint.STRING))}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPublicTypeVersionPropsToCloudFormation(props)}}exports.CfnPublicTypeVersion=CfnPublicTypeVersion;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.CfnPublisher",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::Publisher";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnPublisher(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPublisher.CFN_RESOURCE_TYPE_NAME}_acceptTermsAndConditions;_connectionArn;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._acceptTermsAndConditions=props.acceptTermsAndConditions,this._connectionArn=props.connectionArn}get publisherRef(){return{publisherId:this.ref}}get acceptTermsAndConditions(){return this._acceptTermsAndConditions}set acceptTermsAndConditions(value){cdk().traceProperty(this.node,"AcceptTermsAndConditions"),this._acceptTermsAndConditions=value}get connectionArn(){return this._connectionArn}set connectionArn(value){cdk().traceProperty(this.node,"ConnectionArn"),this._connectionArn=value}get attrIdentityProvider(){return cdk().Token.asString(this.getAtt("IdentityProvider",cdk().ResolutionTypeHint.STRING))}get attrPublisherId(){return cdk().Token.asString(this.getAtt("PublisherId",cdk().ResolutionTypeHint.STRING))}get attrPublisherProfile(){return cdk().Token.asString(this.getAtt("PublisherProfile",cdk().ResolutionTypeHint.STRING))}get attrPublisherStatus(){return cdk().Token.asString(this.getAtt("PublisherStatus",cdk().ResolutionTypeHint.STRING))}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPublisherPropsToCloudFormation(props)}}exports.CfnPublisher=CfnPublisher;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