Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-cloudformation/lib/cloudformation.generated.js
2026-05-06 18:55:16 -05:00

2 lines
164 KiB
JavaScript

"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("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnCustomResource extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnCustomResource",version:"2.252.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;cfnPropertyNames={serviceTimeout:"ServiceTimeout",serviceToken:"ServiceToken"};constructor(scope,id,props){super(scope,id,{type:CfnCustomResource.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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.aws_cloudformation.CfnHookDefaultVersion",version:"2.252.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;cfnPropertyNames={typeName:"TypeName",typeVersionArn:"TypeVersionArn",versionId:"VersionId"};constructor(scope,id,props={}){super(scope,id,{type:CfnHookDefaultVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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.aws_cloudformation.CfnHookTypeConfig",version:"2.252.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;cfnPropertyNames={configuration:"Configuration",configurationAlias:"ConfigurationAlias",typeArn:"TypeArn",typeName:"TypeName"};constructor(scope,id,props){super(scope,id,{type:CfnHookTypeConfig.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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.aws_cloudformation.CfnHookVersion",version:"2.252.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;cfnPropertyNames={executionRoleArn:"ExecutionRoleArn",loggingConfig:"LoggingConfig",schemaHandlerPackage:"SchemaHandlerPackage",typeName:"TypeName"};constructor(scope,id,props){super(scope,id,{type:CfnHookVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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.aws_cloudformation.CfnMacro",version:"2.252.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;cfnPropertyNames={description:"Description",functionName:"FunctionName",logGroupName:"LogGroupName",logRoleArn:"LogRoleARN",name:"Name"};constructor(scope,id,props){super(scope,id,{type:CfnMacro.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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.aws_cloudformation.CfnModuleDefaultVersion",version:"2.252.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;cfnPropertyNames={arn:"Arn",moduleName:"ModuleName",versionId:"VersionId"};constructor(scope,id,props={}){super(scope,id,{type:CfnModuleDefaultVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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.aws_cloudformation.CfnModuleVersion",version:"2.252.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;cfnPropertyNames={moduleName:"ModuleName",modulePackage:"ModulePackage"};constructor(scope,id,props){super(scope,id,{type:CfnModuleVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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.aws_cloudformation.CfnPublicTypeVersion",version:"2.252.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;cfnPropertyNames={arn:"Arn",logDeliveryBucket:"LogDeliveryBucket",publicVersionNumber:"PublicVersionNumber",type:"Type",typeName:"TypeName"};constructor(scope,id,props={}){super(scope,id,{type:CfnPublicTypeVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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.aws_cloudformation.CfnPublisher",version:"2.252.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;cfnPropertyNames={acceptTermsAndConditions:"AcceptTermsAndConditions",connectionArn:"ConnectionArn"};constructor(scope,id,props){super(scope,id,{type:CfnPublisher.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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",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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnResourceDefaultVersion",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ResourceDefaultVersion";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnResourceDefaultVersion(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnResourceDefaultVersion.CFN_RESOURCE_TYPE_NAME}static arnForResourceDefaultVersion(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cloudformation_IResourceDefaultVersionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForResourceDefaultVersion),error}return resource.resourceDefaultVersionRef.resourceDefaultVersionArn}_typeName;_typeVersionArn;_versionId;cfnPropertyNames={typeName:"TypeName",typeVersionArn:"TypeVersionArn",versionId:"VersionId"};constructor(scope,id,props={}){super(scope,id,{type:CfnResourceDefaultVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_CfnResourceDefaultVersionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnResourceDefaultVersion),error}this._typeName=props.typeName,this._typeVersionArn=cdk().getRefProperty(props.typeVersionArn?.resourceVersionRef,"resourceVersionArn")??cdk().ensureStringOrUndefined(props.typeVersionArn,"typeVersionArn","cloudformation.IResourceVersionRef | string"),this._versionId=props.versionId}get resourceDefaultVersionRef(){return{resourceDefaultVersionArn: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",CfnResourceDefaultVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnResourceDefaultVersionPropsToCloudFormation(props)}}exports.CfnResourceDefaultVersion=CfnResourceDefaultVersion;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[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnResourceVersion",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::ResourceVersion";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(cfn_parse().lit`UnexpectedIResolvable`,"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}static isCfnResourceVersion(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnResourceVersion.CFN_RESOURCE_TYPE_NAME}static arnForResourceVersion(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cloudformation_IResourceVersionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForResourceVersion),error}return resource.resourceVersionRef.resourceVersionArn}_executionRoleArn;_loggingConfig;_schemaHandlerPackage;_typeName;cfnPropertyNames={executionRoleArn:"ExecutionRoleArn",loggingConfig:"LoggingConfig",schemaHandlerPackage:"SchemaHandlerPackage",typeName:"TypeName"};constructor(scope,id,props){super(scope,id,{type:CfnResourceVersion.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_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._executionRoleArn=props.executionRoleArn,this._loggingConfig=props.loggingConfig,this._schemaHandlerPackage=props.schemaHandlerPackage,this._typeName=props.typeName}get resourceVersionRef(){return{resourceVersionArn: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 attrProvisioningType(){return cdk().Token.asString(this.getAtt("ProvisioningType",cdk().ResolutionTypeHint.STRING))}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",CfnResourceVersion.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnResourceVersionPropsToCloudFormation(props)}}exports.CfnResourceVersion=CfnResourceVersion;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("logGroupName",cdk().validateString)(properties.logGroupName)),errors.collect(cdk().propertyValidator("logRoleArn",cdk().validateString)(properties.logRoleArn)),errors.wrap('supplied properties not correct for "LoggingConfigProperty"')}function convertCfnResourceVersionLoggingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResourceVersionLoggingConfigPropertyValidator(properties).assertSuccess(),{LogGroupName:cdk().stringToCloudFormation(properties.logGroupName),LogRoleArn:cdk().stringToCloudFormation(properties.logRoleArn)}):properties}function CfnResourceVersionLoggingConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(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 CfnResourceVersionPropsValidator(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",CfnResourceVersionLoggingConfigPropertyValidator)(properties.loggingConfig)),errors.collect(cdk().propertyValidator("schemaHandlerPackage",cdk().requiredValidator)(properties.schemaHandlerPackage)),errors.collect(cdk().propertyValidator("schemaHandlerPackage",cdk().validateString)(properties.schemaHandlerPackage)),errors.collect(cdk().propertyValidator("typeName",cdk().requiredValidator)(properties.typeName)),errors.collect(cdk().propertyValidator("typeName",cdk().validateString)(properties.typeName)),errors.wrap('supplied properties not correct for "CfnResourceVersionProps"')}function convertCfnResourceVersionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResourceVersionPropsValidator(properties).assertSuccess(),{ExecutionRoleArn:cdk().stringToCloudFormation(properties.executionRoleArn),LoggingConfig:convertCfnResourceVersionLoggingConfigPropertyToCloudFormation(properties.loggingConfig),SchemaHandlerPackage:cdk().stringToCloudFormation(properties.schemaHandlerPackage),TypeName:cdk().stringToCloudFormation(properties.typeName)}):properties}function CfnResourceVersionPropsFromCloudFormation(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?CfnResourceVersionLoggingConfigPropertyFromCloudFormation(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 CfnStack extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnStack",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::Stack";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStackPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnStack(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 isCfnStack(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnStack.CFN_RESOURCE_TYPE_NAME}_notificationArns;_parameters;tags;_tagsRaw;_templateUrl;_timeoutInMinutes;cfnPropertyNames={notificationArns:"NotificationARNs",parameters:"Parameters",tags:"Tags",templateUrl:"TemplateURL",timeoutInMinutes:"TimeoutInMinutes"};constructor(scope,id,props={}){super(scope,id,{type:CfnStack.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_CfnStackProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnStack),error}this._notificationArns=props.notificationArns,this._parameters=props.parameters,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::CloudFormation::Stack",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags,this._templateUrl=props.templateUrl,this._timeoutInMinutes=props.timeoutInMinutes,this.node.scope!=null&&cdk().Resource.isResource(this.node.scope)&&this.node.addValidation({validate:()=>this.cfnOptions.deletionPolicy===void 0?["'AWS::CloudFormation::Stack' is a stateful resource type, and you must specify a Removal Policy for it. Call 'resource.applyRemovalPolicy()'."]:[]})}get stackRef(){return{stackId:this.ref}}get notificationArns(){return this._notificationArns}set notificationArns(value){cdk().traceProperty(this.node,"NotificationARNs"),this._notificationArns=value}get parameters(){return this._parameters}set parameters(value){cdk().traceProperty(this.node,"Parameters"),this._parameters=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get templateUrl(){return this._templateUrl}set templateUrl(value){cdk().traceProperty(this.node,"TemplateURL"),this._templateUrl=value}get timeoutInMinutes(){return this._timeoutInMinutes}set timeoutInMinutes(value){cdk().traceProperty(this.node,"TimeoutInMinutes"),this._timeoutInMinutes=value}get attrChangeSetId(){return cdk().Token.asString(this.getAtt("ChangeSetId",cdk().ResolutionTypeHint.STRING))}get attrCreationTime(){return cdk().Token.asString(this.getAtt("CreationTime",cdk().ResolutionTypeHint.STRING))}get attrLastUpdateTime(){return cdk().Token.asString(this.getAtt("LastUpdateTime",cdk().ResolutionTypeHint.STRING))}get attrOutputs(){return this.getAtt("Outputs")}get attrParentId(){return cdk().Token.asString(this.getAtt("ParentId",cdk().ResolutionTypeHint.STRING))}get attrRootId(){return cdk().Token.asString(this.getAtt("RootId",cdk().ResolutionTypeHint.STRING))}get attrStackId(){return cdk().Token.asString(this.getAtt("StackId",cdk().ResolutionTypeHint.STRING))}get attrStackStatus(){return cdk().Token.asString(this.getAtt("StackStatus",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{notificationArns:this._notificationArns,parameters:this._parameters,tags:this.tags.renderTags(),templateUrl:this._templateUrl,timeoutInMinutes:this._timeoutInMinutes}}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",CfnStack.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnStackPropsToCloudFormation(props)}}exports.CfnStack=CfnStack;function CfnStackOutputPropertyValidator(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("exportName",cdk().validateString)(properties.exportName)),errors.collect(cdk().propertyValidator("outputKey",cdk().validateString)(properties.outputKey)),errors.collect(cdk().propertyValidator("outputValue",cdk().validateString)(properties.outputValue)),errors.wrap('supplied properties not correct for "OutputProperty"')}function convertCfnStackOutputPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStackOutputPropertyValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),ExportName:cdk().stringToCloudFormation(properties.exportName),OutputKey:cdk().stringToCloudFormation(properties.outputKey),OutputValue:cdk().stringToCloudFormation(properties.outputValue)}):properties}function CfnStackOutputPropertyFromCloudFormation(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("exportName","ExportName",properties.ExportName!=null?cfn_parse().FromCloudFormation.getString(properties.ExportName):void 0),ret.addPropertyResult("outputKey","OutputKey",properties.OutputKey!=null?cfn_parse().FromCloudFormation.getString(properties.OutputKey):void 0),ret.addPropertyResult("outputValue","OutputValue",properties.OutputValue!=null?cfn_parse().FromCloudFormation.getString(properties.OutputValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStackPropsValidator(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("notificationArns",cdk().listValidator(cdk().validateString))(properties.notificationArns)),errors.collect(cdk().propertyValidator("parameters",cdk().hashValidator(cdk().validateString))(properties.parameters)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("templateUrl",cdk().validateString)(properties.templateUrl)),errors.collect(cdk().propertyValidator("timeoutInMinutes",cdk().validateNumber)(properties.timeoutInMinutes)),errors.wrap('supplied properties not correct for "CfnStackProps"')}function convertCfnStackPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStackPropsValidator(properties).assertSuccess(),{NotificationARNs:cdk().listMapper(cdk().stringToCloudFormation)(properties.notificationArns),Parameters:cdk().hashMapper(cdk().stringToCloudFormation)(properties.parameters),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),TemplateURL:cdk().stringToCloudFormation(properties.templateUrl),TimeoutInMinutes:cdk().numberToCloudFormation(properties.timeoutInMinutes)}):properties}function CfnStackPropsFromCloudFormation(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("notificationArns","NotificationARNs",properties.NotificationARNs!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.NotificationARNs):void 0),ret.addPropertyResult("parameters","Parameters",properties.Parameters!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Parameters):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("templateUrl","TemplateURL",properties.TemplateURL!=null?cfn_parse().FromCloudFormation.getString(properties.TemplateURL):void 0),ret.addPropertyResult("timeoutInMinutes","TimeoutInMinutes",properties.TimeoutInMinutes!=null?cfn_parse().FromCloudFormation.getNumber(properties.TimeoutInMinutes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnStackSet extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnStackSet",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::StackSet";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStackSetPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnStackSet(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 isCfnStackSet(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnStackSet.CFN_RESOURCE_TYPE_NAME}_administrationRoleArn;_autoDeployment;_callAs;_capabilities;_description;_executionRoleName;_managedExecution;_operationPreferences;_parameters;_permissionModel;_stackInstancesGroup;_stackSetName;tags;_tagsRaw;_templateBody;_templateUrl;cfnPropertyNames={administrationRoleArn:"AdministrationRoleARN",autoDeployment:"AutoDeployment",callAs:"CallAs",capabilities:"Capabilities",description:"Description",executionRoleName:"ExecutionRoleName",managedExecution:"ManagedExecution",operationPreferences:"OperationPreferences",parameters:"Parameters",permissionModel:"PermissionModel",stackInstancesGroup:"StackInstancesGroup",stackSetName:"StackSetName",tags:"Tags",templateBody:"TemplateBody",templateUrl:"TemplateURL"};constructor(scope,id,props){super(scope,id,{type:CfnStackSet.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_CfnStackSetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnStackSet),error}cdk().requireProperty(props,"permissionModel",this),cdk().requireProperty(props,"stackSetName",this),this._administrationRoleArn=cdk().getRefProperty(props.administrationRoleArn?.roleRef,"roleArn")??cdk().ensureStringOrUndefined(props.administrationRoleArn,"administrationRoleArn","iam.IRoleRef | string"),this._autoDeployment=props.autoDeployment,this._callAs=props.callAs,this._capabilities=props.capabilities,this._description=props.description,this._executionRoleName=cdk().getRefProperty(props.executionRoleName?.roleRef,"roleName")??cdk().ensureStringOrUndefined(props.executionRoleName,"executionRoleName","iam.IRoleRef | string"),this._managedExecution=props.managedExecution,this._operationPreferences=props.operationPreferences,this._parameters=props.parameters,this._permissionModel=props.permissionModel,this._stackInstancesGroup=props.stackInstancesGroup,this._stackSetName=props.stackSetName,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::CloudFormation::StackSet",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags,this._templateBody=props.templateBody,this._templateUrl=props.templateUrl}get stackSetRef(){return{stackSetId:this.ref}}get administrationRoleArn(){return this._administrationRoleArn}set administrationRoleArn(value){cdk().traceProperty(this.node,"AdministrationRoleARN"),this._administrationRoleArn=value}get autoDeployment(){return this._autoDeployment}set autoDeployment(value){cdk().traceProperty(this.node,"AutoDeployment"),this._autoDeployment=value}get callAs(){return this._callAs}set callAs(value){cdk().traceProperty(this.node,"CallAs"),this._callAs=value}get capabilities(){return this._capabilities}set capabilities(value){cdk().traceProperty(this.node,"Capabilities"),this._capabilities=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get executionRoleName(){return this._executionRoleName}set executionRoleName(value){cdk().traceProperty(this.node,"ExecutionRoleName"),this._executionRoleName=value}get managedExecution(){return this._managedExecution}set managedExecution(value){cdk().traceProperty(this.node,"ManagedExecution"),this._managedExecution=value}get operationPreferences(){return this._operationPreferences}set operationPreferences(value){cdk().traceProperty(this.node,"OperationPreferences"),this._operationPreferences=value}get parameters(){return this._parameters}set parameters(value){cdk().traceProperty(this.node,"Parameters"),this._parameters=value}get permissionModel(){return this._permissionModel}set permissionModel(value){cdk().traceProperty(this.node,"PermissionModel"),this._permissionModel=value}get stackInstancesGroup(){return this._stackInstancesGroup}set stackInstancesGroup(value){cdk().traceProperty(this.node,"StackInstancesGroup"),this._stackInstancesGroup=value}get stackSetName(){return this._stackSetName}set stackSetName(value){cdk().traceProperty(this.node,"StackSetName"),this._stackSetName=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get templateBody(){return this._templateBody}set templateBody(value){cdk().traceProperty(this.node,"TemplateBody"),this._templateBody=value}get templateUrl(){return this._templateUrl}set templateUrl(value){cdk().traceProperty(this.node,"TemplateURL"),this._templateUrl=value}get attrStackSetId(){return cdk().Token.asString(this.getAtt("StackSetId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{administrationRoleArn:this._administrationRoleArn,autoDeployment:this._autoDeployment,callAs:this._callAs,capabilities:this._capabilities,description:this._description,executionRoleName:this._executionRoleName,managedExecution:this._managedExecution,operationPreferences:this._operationPreferences,parameters:this._parameters,permissionModel:this._permissionModel,stackInstancesGroup:this._stackInstancesGroup,stackSetName:this._stackSetName,tags:this.tags.renderTags(),templateBody:this._templateBody,templateUrl:this._templateUrl}}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",CfnStackSet.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnStackSetPropsToCloudFormation(props)}}exports.CfnStackSet=CfnStackSet;function CfnStackSetParameterPropertyValidator(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("parameterKey",cdk().requiredValidator)(properties.parameterKey)),errors.collect(cdk().propertyValidator("parameterKey",cdk().validateString)(properties.parameterKey)),errors.collect(cdk().propertyValidator("parameterValue",cdk().requiredValidator)(properties.parameterValue)),errors.collect(cdk().propertyValidator("parameterValue",cdk().validateString)(properties.parameterValue)),errors.wrap('supplied properties not correct for "ParameterProperty"')}function convertCfnStackSetParameterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStackSetParameterPropertyValidator(properties).assertSuccess(),{ParameterKey:cdk().stringToCloudFormation(properties.parameterKey),ParameterValue:cdk().stringToCloudFormation(properties.parameterValue)}):properties}function CfnStackSetParameterPropertyFromCloudFormation(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("parameterKey","ParameterKey",properties.ParameterKey!=null?cfn_parse().FromCloudFormation.getString(properties.ParameterKey):void 0),ret.addPropertyResult("parameterValue","ParameterValue",properties.ParameterValue!=null?cfn_parse().FromCloudFormation.getString(properties.ParameterValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStackSetDeploymentTargetsPropertyValidator(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("accountFilterType",cdk().validateString)(properties.accountFilterType)),errors.collect(cdk().propertyValidator("accounts",cdk().listValidator(cdk().validateString))(properties.accounts)),errors.collect(cdk().propertyValidator("accountsUrl",cdk().validateString)(properties.accountsUrl)),errors.collect(cdk().propertyValidator("organizationalUnitIds",cdk().listValidator(cdk().validateString))(properties.organizationalUnitIds)),errors.wrap('supplied properties not correct for "DeploymentTargetsProperty"')}function convertCfnStackSetDeploymentTargetsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStackSetDeploymentTargetsPropertyValidator(properties).assertSuccess(),{AccountFilterType:cdk().stringToCloudFormation(properties.accountFilterType),Accounts:cdk().listMapper(cdk().stringToCloudFormation)(properties.accounts),AccountsUrl:cdk().stringToCloudFormation(properties.accountsUrl),OrganizationalUnitIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.organizationalUnitIds)}):properties}function CfnStackSetDeploymentTargetsPropertyFromCloudFormation(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("accountFilterType","AccountFilterType",properties.AccountFilterType!=null?cfn_parse().FromCloudFormation.getString(properties.AccountFilterType):void 0),ret.addPropertyResult("accounts","Accounts",properties.Accounts!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Accounts):void 0),ret.addPropertyResult("accountsUrl","AccountsUrl",properties.AccountsUrl!=null?cfn_parse().FromCloudFormation.getString(properties.AccountsUrl):void 0),ret.addPropertyResult("organizationalUnitIds","OrganizationalUnitIds",properties.OrganizationalUnitIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.OrganizationalUnitIds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStackSetStackInstancesPropertyValidator(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("deploymentTargets",cdk().requiredValidator)(properties.deploymentTargets)),errors.collect(cdk().propertyValidator("deploymentTargets",CfnStackSetDeploymentTargetsPropertyValidator)(properties.deploymentTargets)),errors.collect(cdk().propertyValidator("parameterOverrides",cdk().listValidator(CfnStackSetParameterPropertyValidator))(properties.parameterOverrides)),errors.collect(cdk().propertyValidator("regions",cdk().requiredValidator)(properties.regions)),errors.collect(cdk().propertyValidator("regions",cdk().listValidator(cdk().validateString))(properties.regions)),errors.wrap('supplied properties not correct for "StackInstancesProperty"')}function convertCfnStackSetStackInstancesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStackSetStackInstancesPropertyValidator(properties).assertSuccess(),{DeploymentTargets:convertCfnStackSetDeploymentTargetsPropertyToCloudFormation(properties.deploymentTargets),ParameterOverrides:cdk().listMapper(convertCfnStackSetParameterPropertyToCloudFormation)(properties.parameterOverrides),Regions:cdk().listMapper(cdk().stringToCloudFormation)(properties.regions)}):properties}function CfnStackSetStackInstancesPropertyFromCloudFormation(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("deploymentTargets","DeploymentTargets",properties.DeploymentTargets!=null?CfnStackSetDeploymentTargetsPropertyFromCloudFormation(properties.DeploymentTargets):void 0),ret.addPropertyResult("parameterOverrides","ParameterOverrides",properties.ParameterOverrides!=null?cfn_parse().FromCloudFormation.getArray(CfnStackSetParameterPropertyFromCloudFormation)(properties.ParameterOverrides):void 0),ret.addPropertyResult("regions","Regions",properties.Regions!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Regions):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStackSetOperationPreferencesPropertyValidator(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("concurrencyMode",cdk().validateString)(properties.concurrencyMode)),errors.collect(cdk().propertyValidator("failureToleranceCount",cdk().validateNumber)(properties.failureToleranceCount)),errors.collect(cdk().propertyValidator("failureTolerancePercentage",cdk().validateNumber)(properties.failureTolerancePercentage)),errors.collect(cdk().propertyValidator("maxConcurrentCount",cdk().validateNumber)(properties.maxConcurrentCount)),errors.collect(cdk().propertyValidator("maxConcurrentPercentage",cdk().validateNumber)(properties.maxConcurrentPercentage)),errors.collect(cdk().propertyValidator("regionConcurrencyType",cdk().validateString)(properties.regionConcurrencyType)),errors.collect(cdk().propertyValidator("regionOrder",cdk().listValidator(cdk().validateString))(properties.regionOrder)),errors.wrap('supplied properties not correct for "OperationPreferencesProperty"')}function convertCfnStackSetOperationPreferencesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStackSetOperationPreferencesPropertyValidator(properties).assertSuccess(),{ConcurrencyMode:cdk().stringToCloudFormation(properties.concurrencyMode),FailureToleranceCount:cdk().numberToCloudFormation(properties.failureToleranceCount),FailureTolerancePercentage:cdk().numberToCloudFormation(properties.failureTolerancePercentage),MaxConcurrentCount:cdk().numberToCloudFormation(properties.maxConcurrentCount),MaxConcurrentPercentage:cdk().numberToCloudFormation(properties.maxConcurrentPercentage),RegionConcurrencyType:cdk().stringToCloudFormation(properties.regionConcurrencyType),RegionOrder:cdk().listMapper(cdk().stringToCloudFormation)(properties.regionOrder)}):properties}function CfnStackSetOperationPreferencesPropertyFromCloudFormation(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("concurrencyMode","ConcurrencyMode",properties.ConcurrencyMode!=null?cfn_parse().FromCloudFormation.getString(properties.ConcurrencyMode):void 0),ret.addPropertyResult("failureToleranceCount","FailureToleranceCount",properties.FailureToleranceCount!=null?cfn_parse().FromCloudFormation.getNumber(properties.FailureToleranceCount):void 0),ret.addPropertyResult("failureTolerancePercentage","FailureTolerancePercentage",properties.FailureTolerancePercentage!=null?cfn_parse().FromCloudFormation.getNumber(properties.FailureTolerancePercentage):void 0),ret.addPropertyResult("maxConcurrentCount","MaxConcurrentCount",properties.MaxConcurrentCount!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxConcurrentCount):void 0),ret.addPropertyResult("maxConcurrentPercentage","MaxConcurrentPercentage",properties.MaxConcurrentPercentage!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxConcurrentPercentage):void 0),ret.addPropertyResult("regionConcurrencyType","RegionConcurrencyType",properties.RegionConcurrencyType!=null?cfn_parse().FromCloudFormation.getString(properties.RegionConcurrencyType):void 0),ret.addPropertyResult("regionOrder","RegionOrder",properties.RegionOrder!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.RegionOrder):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStackSetAutoDeploymentPropertyValidator(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("dependsOn",cdk().listValidator(cdk().validateString))(properties.dependsOn)),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("retainStacksOnAccountRemoval",cdk().validateBoolean)(properties.retainStacksOnAccountRemoval)),errors.wrap('supplied properties not correct for "AutoDeploymentProperty"')}function convertCfnStackSetAutoDeploymentPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStackSetAutoDeploymentPropertyValidator(properties).assertSuccess(),{DependsOn:cdk().listMapper(cdk().stringToCloudFormation)(properties.dependsOn),Enabled:cdk().booleanToCloudFormation(properties.enabled),RetainStacksOnAccountRemoval:cdk().booleanToCloudFormation(properties.retainStacksOnAccountRemoval)}):properties}function CfnStackSetAutoDeploymentPropertyFromCloudFormation(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("dependsOn","DependsOn",properties.DependsOn!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.DependsOn):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("retainStacksOnAccountRemoval","RetainStacksOnAccountRemoval",properties.RetainStacksOnAccountRemoval!=null?cfn_parse().FromCloudFormation.getBoolean(properties.RetainStacksOnAccountRemoval):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStackSetManagedExecutionPropertyValidator(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("active",cdk().validateBoolean)(properties.active)),errors.wrap('supplied properties not correct for "ManagedExecutionProperty"')}function convertCfnStackSetManagedExecutionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStackSetManagedExecutionPropertyValidator(properties).assertSuccess(),{Active:cdk().booleanToCloudFormation(properties.active)}):properties}function CfnStackSetManagedExecutionPropertyFromCloudFormation(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("active","Active",properties.Active!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Active):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStackSetPropsValidator(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("administrationRoleArn",cdk().validateString)(properties.administrationRoleArn)),errors.collect(cdk().propertyValidator("autoDeployment",CfnStackSetAutoDeploymentPropertyValidator)(properties.autoDeployment)),errors.collect(cdk().propertyValidator("callAs",cdk().validateString)(properties.callAs)),errors.collect(cdk().propertyValidator("capabilities",cdk().listValidator(cdk().validateString))(properties.capabilities)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("executionRoleName",cdk().validateString)(properties.executionRoleName)),errors.collect(cdk().propertyValidator("managedExecution",cdk().validateObject)(properties.managedExecution)),errors.collect(cdk().propertyValidator("operationPreferences",CfnStackSetOperationPreferencesPropertyValidator)(properties.operationPreferences)),errors.collect(cdk().propertyValidator("parameters",cdk().listValidator(CfnStackSetParameterPropertyValidator))(properties.parameters)),errors.collect(cdk().propertyValidator("permissionModel",cdk().requiredValidator)(properties.permissionModel)),errors.collect(cdk().propertyValidator("permissionModel",cdk().validateString)(properties.permissionModel)),errors.collect(cdk().propertyValidator("stackInstancesGroup",cdk().listValidator(CfnStackSetStackInstancesPropertyValidator))(properties.stackInstancesGroup)),errors.collect(cdk().propertyValidator("stackSetName",cdk().requiredValidator)(properties.stackSetName)),errors.collect(cdk().propertyValidator("stackSetName",cdk().validateString)(properties.stackSetName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("templateBody",cdk().validateString)(properties.templateBody)),errors.collect(cdk().propertyValidator("templateUrl",cdk().validateString)(properties.templateUrl)),errors.wrap('supplied properties not correct for "CfnStackSetProps"')}function convertCfnStackSetPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnStackSetPropsValidator(properties).assertSuccess(),{AdministrationRoleARN:cdk().stringToCloudFormation(properties.administrationRoleArn),AutoDeployment:convertCfnStackSetAutoDeploymentPropertyToCloudFormation(properties.autoDeployment),CallAs:cdk().stringToCloudFormation(properties.callAs),Capabilities:cdk().listMapper(cdk().stringToCloudFormation)(properties.capabilities),Description:cdk().stringToCloudFormation(properties.description),ExecutionRoleName:cdk().stringToCloudFormation(properties.executionRoleName),ManagedExecution:cdk().objectToCloudFormation(properties.managedExecution),OperationPreferences:convertCfnStackSetOperationPreferencesPropertyToCloudFormation(properties.operationPreferences),Parameters:cdk().listMapper(convertCfnStackSetParameterPropertyToCloudFormation)(properties.parameters),PermissionModel:cdk().stringToCloudFormation(properties.permissionModel),StackInstancesGroup:cdk().listMapper(convertCfnStackSetStackInstancesPropertyToCloudFormation)(properties.stackInstancesGroup),StackSetName:cdk().stringToCloudFormation(properties.stackSetName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),TemplateBody:cdk().stringToCloudFormation(properties.templateBody),TemplateURL:cdk().stringToCloudFormation(properties.templateUrl)}):properties}function CfnStackSetPropsFromCloudFormation(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("administrationRoleArn","AdministrationRoleARN",properties.AdministrationRoleARN!=null?cfn_parse().FromCloudFormation.getString(properties.AdministrationRoleARN):void 0),ret.addPropertyResult("autoDeployment","AutoDeployment",properties.AutoDeployment!=null?CfnStackSetAutoDeploymentPropertyFromCloudFormation(properties.AutoDeployment):void 0),ret.addPropertyResult("callAs","CallAs",properties.CallAs!=null?cfn_parse().FromCloudFormation.getString(properties.CallAs):void 0),ret.addPropertyResult("capabilities","Capabilities",properties.Capabilities!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Capabilities):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("executionRoleName","ExecutionRoleName",properties.ExecutionRoleName!=null?cfn_parse().FromCloudFormation.getString(properties.ExecutionRoleName):void 0),ret.addPropertyResult("managedExecution","ManagedExecution",properties.ManagedExecution!=null?cfn_parse().FromCloudFormation.getAny(properties.ManagedExecution):void 0),ret.addPropertyResult("operationPreferences","OperationPreferences",properties.OperationPreferences!=null?CfnStackSetOperationPreferencesPropertyFromCloudFormation(properties.OperationPreferences):void 0),ret.addPropertyResult("parameters","Parameters",properties.Parameters!=null?cfn_parse().FromCloudFormation.getArray(CfnStackSetParameterPropertyFromCloudFormation)(properties.Parameters):void 0),ret.addPropertyResult("permissionModel","PermissionModel",properties.PermissionModel!=null?cfn_parse().FromCloudFormation.getString(properties.PermissionModel):void 0),ret.addPropertyResult("stackInstancesGroup","StackInstancesGroup",properties.StackInstancesGroup!=null?cfn_parse().FromCloudFormation.getArray(CfnStackSetStackInstancesPropertyFromCloudFormation)(properties.StackInstancesGroup):void 0),ret.addPropertyResult("stackSetName","StackSetName",properties.StackSetName!=null?cfn_parse().FromCloudFormation.getString(properties.StackSetName):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("templateBody","TemplateBody",properties.TemplateBody!=null?cfn_parse().FromCloudFormation.getString(properties.TemplateBody):void 0),ret.addPropertyResult("templateUrl","TemplateURL",properties.TemplateURL!=null?cfn_parse().FromCloudFormation.getString(properties.TemplateURL):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnTypeActivation extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnTypeActivation",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::TypeActivation";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnTypeActivationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnTypeActivation(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 isCfnTypeActivation(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnTypeActivation.CFN_RESOURCE_TYPE_NAME}static arnForTypeActivation(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cloudformation_ITypeActivationRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForTypeActivation),error}return resource.typeActivationRef.typeActivationArn}_autoUpdate;_executionRoleArn;_loggingConfig;_majorVersion;_publicTypeArn;_publisherId;_type;_typeName;_typeNameAlias;_versionBump;cfnPropertyNames={autoUpdate:"AutoUpdate",executionRoleArn:"ExecutionRoleArn",loggingConfig:"LoggingConfig",majorVersion:"MajorVersion",publicTypeArn:"PublicTypeArn",publisherId:"PublisherId",type:"Type",typeName:"TypeName",typeNameAlias:"TypeNameAlias",versionBump:"VersionBump"};constructor(scope,id,props={}){super(scope,id,{type:CfnTypeActivation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_CfnTypeActivationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnTypeActivation),error}this._autoUpdate=props.autoUpdate,this._executionRoleArn=props.executionRoleArn,this._loggingConfig=props.loggingConfig,this._majorVersion=props.majorVersion,this._publicTypeArn=props.publicTypeArn,this._publisherId=props.publisherId,this._type=props.type,this._typeName=props.typeName,this._typeNameAlias=props.typeNameAlias,this._versionBump=props.versionBump}get typeActivationRef(){return{typeActivationArn:this.ref}}get autoUpdate(){return this._autoUpdate}set autoUpdate(value){cdk().traceProperty(this.node,"AutoUpdate"),this._autoUpdate=value}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 majorVersion(){return this._majorVersion}set majorVersion(value){cdk().traceProperty(this.node,"MajorVersion"),this._majorVersion=value}get publicTypeArn(){return this._publicTypeArn}set publicTypeArn(value){cdk().traceProperty(this.node,"PublicTypeArn"),this._publicTypeArn=value}get publisherId(){return this._publisherId}set publisherId(value){cdk().traceProperty(this.node,"PublisherId"),this._publisherId=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 typeNameAlias(){return this._typeNameAlias}set typeNameAlias(value){cdk().traceProperty(this.node,"TypeNameAlias"),this._typeNameAlias=value}get versionBump(){return this._versionBump}set versionBump(value){cdk().traceProperty(this.node,"VersionBump"),this._versionBump=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{autoUpdate:this._autoUpdate,executionRoleArn:this._executionRoleArn,loggingConfig:this._loggingConfig,majorVersion:this._majorVersion,publicTypeArn:this._publicTypeArn,publisherId:this._publisherId,type:this._type,typeName:this._typeName,typeNameAlias:this._typeNameAlias,versionBump:this._versionBump}}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",CfnTypeActivation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnTypeActivationPropsToCloudFormation(props)}}exports.CfnTypeActivation=CfnTypeActivation;function CfnTypeActivationLoggingConfigPropertyValidator(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 convertCfnTypeActivationLoggingConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTypeActivationLoggingConfigPropertyValidator(properties).assertSuccess(),{LogGroupName:cdk().stringToCloudFormation(properties.logGroupName),LogRoleArn:cdk().stringToCloudFormation(properties.logRoleArn)}):properties}function CfnTypeActivationLoggingConfigPropertyFromCloudFormation(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 CfnTypeActivationPropsValidator(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("autoUpdate",cdk().validateBoolean)(properties.autoUpdate)),errors.collect(cdk().propertyValidator("executionRoleArn",cdk().validateString)(properties.executionRoleArn)),errors.collect(cdk().propertyValidator("loggingConfig",CfnTypeActivationLoggingConfigPropertyValidator)(properties.loggingConfig)),errors.collect(cdk().propertyValidator("majorVersion",cdk().validateString)(properties.majorVersion)),errors.collect(cdk().propertyValidator("publicTypeArn",cdk().validateString)(properties.publicTypeArn)),errors.collect(cdk().propertyValidator("publisherId",cdk().validateString)(properties.publisherId)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.collect(cdk().propertyValidator("typeName",cdk().validateString)(properties.typeName)),errors.collect(cdk().propertyValidator("typeNameAlias",cdk().validateString)(properties.typeNameAlias)),errors.collect(cdk().propertyValidator("versionBump",cdk().validateString)(properties.versionBump)),errors.wrap('supplied properties not correct for "CfnTypeActivationProps"')}function convertCfnTypeActivationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTypeActivationPropsValidator(properties).assertSuccess(),{AutoUpdate:cdk().booleanToCloudFormation(properties.autoUpdate),ExecutionRoleArn:cdk().stringToCloudFormation(properties.executionRoleArn),LoggingConfig:convertCfnTypeActivationLoggingConfigPropertyToCloudFormation(properties.loggingConfig),MajorVersion:cdk().stringToCloudFormation(properties.majorVersion),PublicTypeArn:cdk().stringToCloudFormation(properties.publicTypeArn),PublisherId:cdk().stringToCloudFormation(properties.publisherId),Type:cdk().stringToCloudFormation(properties.type),TypeName:cdk().stringToCloudFormation(properties.typeName),TypeNameAlias:cdk().stringToCloudFormation(properties.typeNameAlias),VersionBump:cdk().stringToCloudFormation(properties.versionBump)}):properties}function CfnTypeActivationPropsFromCloudFormation(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("autoUpdate","AutoUpdate",properties.AutoUpdate!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AutoUpdate):void 0),ret.addPropertyResult("executionRoleArn","ExecutionRoleArn",properties.ExecutionRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.ExecutionRoleArn):void 0),ret.addPropertyResult("loggingConfig","LoggingConfig",properties.LoggingConfig!=null?CfnTypeActivationLoggingConfigPropertyFromCloudFormation(properties.LoggingConfig):void 0),ret.addPropertyResult("majorVersion","MajorVersion",properties.MajorVersion!=null?cfn_parse().FromCloudFormation.getString(properties.MajorVersion):void 0),ret.addPropertyResult("publicTypeArn","PublicTypeArn",properties.PublicTypeArn!=null?cfn_parse().FromCloudFormation.getString(properties.PublicTypeArn):void 0),ret.addPropertyResult("publisherId","PublisherId",properties.PublisherId!=null?cfn_parse().FromCloudFormation.getString(properties.PublisherId):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.addPropertyResult("typeNameAlias","TypeNameAlias",properties.TypeNameAlias!=null?cfn_parse().FromCloudFormation.getString(properties.TypeNameAlias):void 0),ret.addPropertyResult("versionBump","VersionBump",properties.VersionBump!=null?cfn_parse().FromCloudFormation.getString(properties.VersionBump):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnWaitCondition extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnWaitCondition",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::WaitCondition";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnWaitConditionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnWaitCondition(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 isCfnWaitCondition(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnWaitCondition.CFN_RESOURCE_TYPE_NAME}_count;_handle;_timeout;cfnPropertyNames={count:"Count",handle:"Handle",timeout:"Timeout"};constructor(scope,id,props={}){super(scope,id,{type:CfnWaitCondition.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_CfnWaitConditionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnWaitCondition),error}this._count=props.count,this._handle=props.handle,this._timeout=props.timeout}get waitConditionRef(){return{waitConditionId:this.ref}}get count(){return this._count}set count(value){cdk().traceProperty(this.node,"Count"),this._count=value}get handle(){return this._handle}set handle(value){cdk().traceProperty(this.node,"Handle"),this._handle=value}get timeout(){return this._timeout}set timeout(value){cdk().traceProperty(this.node,"Timeout"),this._timeout=value}get attrData(){return this.getAtt("Data")}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{count:this._count,handle:this._handle,timeout:this._timeout}}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",CfnWaitCondition.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnWaitConditionPropsToCloudFormation(props)}}exports.CfnWaitCondition=CfnWaitCondition;function CfnWaitConditionPropsValidator(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("count",cdk().validateNumber)(properties.count)),errors.collect(cdk().propertyValidator("handle",cdk().validateString)(properties.handle)),errors.collect(cdk().propertyValidator("timeout",cdk().validateString)(properties.timeout)),errors.wrap('supplied properties not correct for "CfnWaitConditionProps"')}function convertCfnWaitConditionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnWaitConditionPropsValidator(properties).assertSuccess(),{Count:cdk().numberToCloudFormation(properties.count),Handle:cdk().stringToCloudFormation(properties.handle),Timeout:cdk().stringToCloudFormation(properties.timeout)}):properties}function CfnWaitConditionPropsFromCloudFormation(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("count","Count",properties.Count!=null?cfn_parse().FromCloudFormation.getNumber(properties.Count):void 0),ret.addPropertyResult("handle","Handle",properties.Handle!=null?cfn_parse().FromCloudFormation.getString(properties.Handle):void 0),ret.addPropertyResult("timeout","Timeout",properties.Timeout!=null?cfn_parse().FromCloudFormation.getString(properties.Timeout):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnWaitConditionHandle extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnWaitConditionHandle",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::WaitConditionHandle";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnWaitConditionHandlePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnWaitConditionHandle(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 isCfnWaitConditionHandle(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnWaitConditionHandle.CFN_RESOURCE_TYPE_NAME}cfnPropertyNames={};constructor(scope,id,props={}){super(scope,id,{type:CfnWaitConditionHandle.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_CfnWaitConditionHandleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnWaitConditionHandle),error}}get waitConditionHandleRef(){return{waitConditionHandleId:this.ref}}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{}}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",CfnWaitConditionHandle.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnWaitConditionHandlePropsToCloudFormation(props)}}exports.CfnWaitConditionHandle=CfnWaitConditionHandle;function CfnWaitConditionHandlePropsValidator(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.wrap('supplied properties not correct for "CfnWaitConditionHandleProps"')}function convertCfnWaitConditionHandlePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnWaitConditionHandlePropsValidator(properties).assertSuccess(),{}):properties}function CfnWaitConditionHandlePropsFromCloudFormation(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.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnGuardHook extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnGuardHook",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::GuardHook";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnGuardHookPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnGuardHook(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 isCfnGuardHook(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnGuardHook.CFN_RESOURCE_TYPE_NAME}_alias;_executionRole;_failureMode;_hookStatus;_logBucket;_options;_ruleLocation;_stackFilters;_targetFilters;_targetOperations;cfnPropertyNames={alias:"Alias",executionRole:"ExecutionRole",failureMode:"FailureMode",hookStatus:"HookStatus",logBucket:"LogBucket",options:"Options",ruleLocation:"RuleLocation",stackFilters:"StackFilters",targetFilters:"TargetFilters",targetOperations:"TargetOperations"};constructor(scope,id,props){super(scope,id,{type:CfnGuardHook.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_CfnGuardHookProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnGuardHook),error}cdk().requireProperty(props,"alias",this),cdk().requireProperty(props,"executionRole",this),cdk().requireProperty(props,"failureMode",this),cdk().requireProperty(props,"hookStatus",this),cdk().requireProperty(props,"ruleLocation",this),cdk().requireProperty(props,"targetOperations",this),this._alias=props.alias,this._executionRole=props.executionRole,this._failureMode=props.failureMode,this._hookStatus=props.hookStatus,this._logBucket=props.logBucket,this._options=props.options,this._ruleLocation=props.ruleLocation,this._stackFilters=props.stackFilters,this._targetFilters=props.targetFilters,this._targetOperations=props.targetOperations}get guardHookRef(){return{hookArn:this.ref}}get alias(){return this._alias}set alias(value){cdk().traceProperty(this.node,"Alias"),this._alias=value}get executionRole(){return this._executionRole}set executionRole(value){cdk().traceProperty(this.node,"ExecutionRole"),this._executionRole=value}get failureMode(){return this._failureMode}set failureMode(value){cdk().traceProperty(this.node,"FailureMode"),this._failureMode=value}get hookStatus(){return this._hookStatus}set hookStatus(value){cdk().traceProperty(this.node,"HookStatus"),this._hookStatus=value}get logBucket(){return this._logBucket}set logBucket(value){cdk().traceProperty(this.node,"LogBucket"),this._logBucket=value}get options(){return this._options}set options(value){cdk().traceProperty(this.node,"Options"),this._options=value}get ruleLocation(){return this._ruleLocation}set ruleLocation(value){cdk().traceProperty(this.node,"RuleLocation"),this._ruleLocation=value}get stackFilters(){return this._stackFilters}set stackFilters(value){cdk().traceProperty(this.node,"StackFilters"),this._stackFilters=value}get targetFilters(){return this._targetFilters}set targetFilters(value){cdk().traceProperty(this.node,"TargetFilters"),this._targetFilters=value}get targetOperations(){return this._targetOperations}set targetOperations(value){cdk().traceProperty(this.node,"TargetOperations"),this._targetOperations=value}get attrHookArn(){return cdk().Token.asString(this.getAtt("HookArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{alias:this._alias,executionRole:this._executionRole,failureMode:this._failureMode,hookStatus:this._hookStatus,logBucket:this._logBucket,options:this._options,ruleLocation:this._ruleLocation,stackFilters:this._stackFilters,targetFilters:this._targetFilters,targetOperations:this._targetOperations}}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",CfnGuardHook.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnGuardHookPropsToCloudFormation(props)}}exports.CfnGuardHook=CfnGuardHook;function CfnGuardHookS3LocationPropertyValidator(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("uri",cdk().requiredValidator)(properties.uri)),errors.collect(cdk().propertyValidator("uri",cdk().validateString)(properties.uri)),errors.collect(cdk().propertyValidator("versionId",cdk().validateString)(properties.versionId)),errors.wrap('supplied properties not correct for "S3LocationProperty"')}function convertCfnGuardHookS3LocationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGuardHookS3LocationPropertyValidator(properties).assertSuccess(),{Uri:cdk().stringToCloudFormation(properties.uri),VersionId:cdk().stringToCloudFormation(properties.versionId)}):properties}function CfnGuardHookS3LocationPropertyFromCloudFormation(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("uri","Uri",properties.Uri!=null?cfn_parse().FromCloudFormation.getString(properties.Uri):void 0),ret.addPropertyResult("versionId","VersionId",properties.VersionId!=null?cfn_parse().FromCloudFormation.getString(properties.VersionId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGuardHookHookTargetPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("action",cdk().requiredValidator)(properties.action)),errors.collect(cdk().propertyValidator("action",cdk().validateString)(properties.action)),errors.collect(cdk().propertyValidator("invocationPoint",cdk().requiredValidator)(properties.invocationPoint)),errors.collect(cdk().propertyValidator("invocationPoint",cdk().validateString)(properties.invocationPoint)),errors.collect(cdk().propertyValidator("targetName",cdk().requiredValidator)(properties.targetName)),errors.collect(cdk().propertyValidator("targetName",cdk().validateString)(properties.targetName)),errors.wrap('supplied properties not correct for "HookTargetProperty"')}function convertCfnGuardHookHookTargetPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGuardHookHookTargetPropertyValidator(properties).assertSuccess(),{Action:cdk().stringToCloudFormation(properties.action),InvocationPoint:cdk().stringToCloudFormation(properties.invocationPoint),TargetName:cdk().stringToCloudFormation(properties.targetName)}):properties}function CfnGuardHookHookTargetPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("action","Action",properties.Action!=null?cfn_parse().FromCloudFormation.getString(properties.Action):void 0),ret.addPropertyResult("invocationPoint","InvocationPoint",properties.InvocationPoint!=null?cfn_parse().FromCloudFormation.getString(properties.InvocationPoint):void 0),ret.addPropertyResult("targetName","TargetName",properties.TargetName!=null?cfn_parse().FromCloudFormation.getString(properties.TargetName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGuardHookTargetFiltersPropertyValidator(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("actions",cdk().listValidator(cdk().validateString))(properties.actions)),errors.collect(cdk().propertyValidator("invocationPoints",cdk().listValidator(cdk().validateString))(properties.invocationPoints)),errors.collect(cdk().propertyValidator("targetNames",cdk().listValidator(cdk().validateString))(properties.targetNames)),errors.collect(cdk().propertyValidator("targets",cdk().requiredValidator)(properties.targets)),errors.collect(cdk().propertyValidator("targets",cdk().listValidator(CfnGuardHookHookTargetPropertyValidator))(properties.targets)),errors.wrap('supplied properties not correct for "TargetFiltersProperty"')}function convertCfnGuardHookTargetFiltersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGuardHookTargetFiltersPropertyValidator(properties).assertSuccess(),{Actions:cdk().listMapper(cdk().stringToCloudFormation)(properties.actions),InvocationPoints:cdk().listMapper(cdk().stringToCloudFormation)(properties.invocationPoints),TargetNames:cdk().listMapper(cdk().stringToCloudFormation)(properties.targetNames),Targets:cdk().listMapper(convertCfnGuardHookHookTargetPropertyToCloudFormation)(properties.targets)}):properties}function CfnGuardHookTargetFiltersPropertyFromCloudFormation(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("actions","Actions",properties.Actions!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Actions):void 0),ret.addPropertyResult("invocationPoints","InvocationPoints",properties.InvocationPoints!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.InvocationPoints):void 0),ret.addPropertyResult("targetNames","TargetNames",properties.TargetNames!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.TargetNames):void 0),ret.addPropertyResult("targets","Targets",properties.Targets!=null?cfn_parse().FromCloudFormation.getArray(CfnGuardHookHookTargetPropertyFromCloudFormation)(properties.Targets):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGuardHookStackNamesPropertyValidator(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("exclude",cdk().listValidator(cdk().validateString))(properties.exclude)),errors.collect(cdk().propertyValidator("include",cdk().listValidator(cdk().validateString))(properties.include)),errors.wrap('supplied properties not correct for "StackNamesProperty"')}function convertCfnGuardHookStackNamesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGuardHookStackNamesPropertyValidator(properties).assertSuccess(),{Exclude:cdk().listMapper(cdk().stringToCloudFormation)(properties.exclude),Include:cdk().listMapper(cdk().stringToCloudFormation)(properties.include)}):properties}function CfnGuardHookStackNamesPropertyFromCloudFormation(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("exclude","Exclude",properties.Exclude!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Exclude):void 0),ret.addPropertyResult("include","Include",properties.Include!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Include):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGuardHookStackRolesPropertyValidator(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("exclude",cdk().listValidator(cdk().validateString))(properties.exclude)),errors.collect(cdk().propertyValidator("include",cdk().listValidator(cdk().validateString))(properties.include)),errors.wrap('supplied properties not correct for "StackRolesProperty"')}function convertCfnGuardHookStackRolesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGuardHookStackRolesPropertyValidator(properties).assertSuccess(),{Exclude:cdk().listMapper(cdk().stringToCloudFormation)(properties.exclude),Include:cdk().listMapper(cdk().stringToCloudFormation)(properties.include)}):properties}function CfnGuardHookStackRolesPropertyFromCloudFormation(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("exclude","Exclude",properties.Exclude!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Exclude):void 0),ret.addPropertyResult("include","Include",properties.Include!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Include):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGuardHookStackFiltersPropertyValidator(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("filteringCriteria",cdk().requiredValidator)(properties.filteringCriteria)),errors.collect(cdk().propertyValidator("filteringCriteria",cdk().validateString)(properties.filteringCriteria)),errors.collect(cdk().propertyValidator("stackNames",CfnGuardHookStackNamesPropertyValidator)(properties.stackNames)),errors.collect(cdk().propertyValidator("stackRoles",CfnGuardHookStackRolesPropertyValidator)(properties.stackRoles)),errors.wrap('supplied properties not correct for "StackFiltersProperty"')}function convertCfnGuardHookStackFiltersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGuardHookStackFiltersPropertyValidator(properties).assertSuccess(),{FilteringCriteria:cdk().stringToCloudFormation(properties.filteringCriteria),StackNames:convertCfnGuardHookStackNamesPropertyToCloudFormation(properties.stackNames),StackRoles:convertCfnGuardHookStackRolesPropertyToCloudFormation(properties.stackRoles)}):properties}function CfnGuardHookStackFiltersPropertyFromCloudFormation(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("filteringCriteria","FilteringCriteria",properties.FilteringCriteria!=null?cfn_parse().FromCloudFormation.getString(properties.FilteringCriteria):void 0),ret.addPropertyResult("stackNames","StackNames",properties.StackNames!=null?CfnGuardHookStackNamesPropertyFromCloudFormation(properties.StackNames):void 0),ret.addPropertyResult("stackRoles","StackRoles",properties.StackRoles!=null?CfnGuardHookStackRolesPropertyFromCloudFormation(properties.StackRoles):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGuardHookOptionsPropertyValidator(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("inputParams",cdk().unionValidator(cdk().listValidator(CfnGuardHookS3LocationPropertyValidator),CfnGuardHookS3LocationPropertyValidator))(properties.inputParams)),errors.wrap('supplied properties not correct for "OptionsProperty"')}function convertCfnGuardHookOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGuardHookOptionsPropertyValidator(properties).assertSuccess(),{InputParams:cdk().unionMapper([cdk().listValidator(CfnGuardHookS3LocationPropertyValidator),CfnGuardHookS3LocationPropertyValidator],[cdk().listMapper(convertCfnGuardHookS3LocationPropertyToCloudFormation),convertCfnGuardHookS3LocationPropertyToCloudFormation])(properties.inputParams)}):properties}function CfnGuardHookOptionsPropertyFromCloudFormation(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("inputParams","InputParams",properties.InputParams!=null?cfn_parse().FromCloudFormation.getTypeUnion([cdk().listValidator(CfnGuardHookS3LocationPropertyValidator),CfnGuardHookS3LocationPropertyValidator],[cfn_parse().FromCloudFormation.getArray(CfnGuardHookS3LocationPropertyFromCloudFormation),CfnGuardHookS3LocationPropertyFromCloudFormation])(properties.InputParams):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGuardHookPropsValidator(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("alias",cdk().requiredValidator)(properties.alias)),errors.collect(cdk().propertyValidator("alias",cdk().validateString)(properties.alias)),errors.collect(cdk().propertyValidator("executionRole",cdk().requiredValidator)(properties.executionRole)),errors.collect(cdk().propertyValidator("executionRole",cdk().validateString)(properties.executionRole)),errors.collect(cdk().propertyValidator("failureMode",cdk().requiredValidator)(properties.failureMode)),errors.collect(cdk().propertyValidator("failureMode",cdk().validateString)(properties.failureMode)),errors.collect(cdk().propertyValidator("hookStatus",cdk().requiredValidator)(properties.hookStatus)),errors.collect(cdk().propertyValidator("hookStatus",cdk().validateString)(properties.hookStatus)),errors.collect(cdk().propertyValidator("logBucket",cdk().validateString)(properties.logBucket)),errors.collect(cdk().propertyValidator("options",CfnGuardHookOptionsPropertyValidator)(properties.options)),errors.collect(cdk().propertyValidator("ruleLocation",cdk().requiredValidator)(properties.ruleLocation)),errors.collect(cdk().propertyValidator("ruleLocation",CfnGuardHookS3LocationPropertyValidator)(properties.ruleLocation)),errors.collect(cdk().propertyValidator("stackFilters",CfnGuardHookStackFiltersPropertyValidator)(properties.stackFilters)),errors.collect(cdk().propertyValidator("targetFilters",CfnGuardHookTargetFiltersPropertyValidator)(properties.targetFilters)),errors.collect(cdk().propertyValidator("targetOperations",cdk().requiredValidator)(properties.targetOperations)),errors.collect(cdk().propertyValidator("targetOperations",cdk().listValidator(cdk().validateString))(properties.targetOperations)),errors.wrap('supplied properties not correct for "CfnGuardHookProps"')}function convertCfnGuardHookPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGuardHookPropsValidator(properties).assertSuccess(),{Alias:cdk().stringToCloudFormation(properties.alias),ExecutionRole:cdk().stringToCloudFormation(properties.executionRole),FailureMode:cdk().stringToCloudFormation(properties.failureMode),HookStatus:cdk().stringToCloudFormation(properties.hookStatus),LogBucket:cdk().stringToCloudFormation(properties.logBucket),Options:convertCfnGuardHookOptionsPropertyToCloudFormation(properties.options),RuleLocation:convertCfnGuardHookS3LocationPropertyToCloudFormation(properties.ruleLocation),StackFilters:convertCfnGuardHookStackFiltersPropertyToCloudFormation(properties.stackFilters),TargetFilters:convertCfnGuardHookTargetFiltersPropertyToCloudFormation(properties.targetFilters),TargetOperations:cdk().listMapper(cdk().stringToCloudFormation)(properties.targetOperations)}):properties}function CfnGuardHookPropsFromCloudFormation(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("alias","Alias",properties.Alias!=null?cfn_parse().FromCloudFormation.getString(properties.Alias):void 0),ret.addPropertyResult("executionRole","ExecutionRole",properties.ExecutionRole!=null?cfn_parse().FromCloudFormation.getString(properties.ExecutionRole):void 0),ret.addPropertyResult("failureMode","FailureMode",properties.FailureMode!=null?cfn_parse().FromCloudFormation.getString(properties.FailureMode):void 0),ret.addPropertyResult("hookStatus","HookStatus",properties.HookStatus!=null?cfn_parse().FromCloudFormation.getString(properties.HookStatus):void 0),ret.addPropertyResult("logBucket","LogBucket",properties.LogBucket!=null?cfn_parse().FromCloudFormation.getString(properties.LogBucket):void 0),ret.addPropertyResult("options","Options",properties.Options!=null?CfnGuardHookOptionsPropertyFromCloudFormation(properties.Options):void 0),ret.addPropertyResult("ruleLocation","RuleLocation",properties.RuleLocation!=null?CfnGuardHookS3LocationPropertyFromCloudFormation(properties.RuleLocation):void 0),ret.addPropertyResult("stackFilters","StackFilters",properties.StackFilters!=null?CfnGuardHookStackFiltersPropertyFromCloudFormation(properties.StackFilters):void 0),ret.addPropertyResult("targetFilters","TargetFilters",properties.TargetFilters!=null?CfnGuardHookTargetFiltersPropertyFromCloudFormation(properties.TargetFilters):void 0),ret.addPropertyResult("targetOperations","TargetOperations",properties.TargetOperations!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.TargetOperations):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLambdaHook extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudformation.CfnLambdaHook",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::CloudFormation::LambdaHook";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLambdaHookPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLambdaHook(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 isCfnLambdaHook(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLambdaHook.CFN_RESOURCE_TYPE_NAME}_alias;_executionRole;_failureMode;_hookStatus;_lambdaFunction;_stackFilters;_targetFilters;_targetOperations;cfnPropertyNames={alias:"Alias",executionRole:"ExecutionRole",failureMode:"FailureMode",hookStatus:"HookStatus",lambdaFunction:"LambdaFunction",stackFilters:"StackFilters",targetFilters:"TargetFilters",targetOperations:"TargetOperations"};constructor(scope,id,props){super(scope,id,{type:CfnLambdaHook.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudformation_CfnLambdaHookProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLambdaHook),error}cdk().requireProperty(props,"alias",this),cdk().requireProperty(props,"executionRole",this),cdk().requireProperty(props,"failureMode",this),cdk().requireProperty(props,"hookStatus",this),cdk().requireProperty(props,"lambdaFunction",this),cdk().requireProperty(props,"targetOperations",this),this._alias=props.alias,this._executionRole=props.executionRole,this._failureMode=props.failureMode,this._hookStatus=props.hookStatus,this._lambdaFunction=props.lambdaFunction,this._stackFilters=props.stackFilters,this._targetFilters=props.targetFilters,this._targetOperations=props.targetOperations}get lambdaHookRef(){return{hookArn:this.ref}}get alias(){return this._alias}set alias(value){cdk().traceProperty(this.node,"Alias"),this._alias=value}get executionRole(){return this._executionRole}set executionRole(value){cdk().traceProperty(this.node,"ExecutionRole"),this._executionRole=value}get failureMode(){return this._failureMode}set failureMode(value){cdk().traceProperty(this.node,"FailureMode"),this._failureMode=value}get hookStatus(){return this._hookStatus}set hookStatus(value){cdk().traceProperty(this.node,"HookStatus"),this._hookStatus=value}get lambdaFunction(){return this._lambdaFunction}set lambdaFunction(value){cdk().traceProperty(this.node,"LambdaFunction"),this._lambdaFunction=value}get stackFilters(){return this._stackFilters}set stackFilters(value){cdk().traceProperty(this.node,"StackFilters"),this._stackFilters=value}get targetFilters(){return this._targetFilters}set targetFilters(value){cdk().traceProperty(this.node,"TargetFilters"),this._targetFilters=value}get targetOperations(){return this._targetOperations}set targetOperations(value){cdk().traceProperty(this.node,"TargetOperations"),this._targetOperations=value}get attrHookArn(){return cdk().Token.asString(this.getAtt("HookArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{alias:this._alias,executionRole:this._executionRole,failureMode:this._failureMode,hookStatus:this._hookStatus,lambdaFunction:this._lambdaFunction,stackFilters:this._stackFilters,targetFilters:this._targetFilters,targetOperations:this._targetOperations}}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",CfnLambdaHook.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLambdaHookPropsToCloudFormation(props)}}exports.CfnLambdaHook=CfnLambdaHook;function CfnLambdaHookHookTargetPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("action",cdk().requiredValidator)(properties.action)),errors.collect(cdk().propertyValidator("action",cdk().validateString)(properties.action)),errors.collect(cdk().propertyValidator("invocationPoint",cdk().requiredValidator)(properties.invocationPoint)),errors.collect(cdk().propertyValidator("invocationPoint",cdk().validateString)(properties.invocationPoint)),errors.collect(cdk().propertyValidator("targetName",cdk().requiredValidator)(properties.targetName)),errors.collect(cdk().propertyValidator("targetName",cdk().validateString)(properties.targetName)),errors.wrap('supplied properties not correct for "HookTargetProperty"')}function convertCfnLambdaHookHookTargetPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLambdaHookHookTargetPropertyValidator(properties).assertSuccess(),{Action:cdk().stringToCloudFormation(properties.action),InvocationPoint:cdk().stringToCloudFormation(properties.invocationPoint),TargetName:cdk().stringToCloudFormation(properties.targetName)}):properties}function CfnLambdaHookHookTargetPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("action","Action",properties.Action!=null?cfn_parse().FromCloudFormation.getString(properties.Action):void 0),ret.addPropertyResult("invocationPoint","InvocationPoint",properties.InvocationPoint!=null?cfn_parse().FromCloudFormation.getString(properties.InvocationPoint):void 0),ret.addPropertyResult("targetName","TargetName",properties.TargetName!=null?cfn_parse().FromCloudFormation.getString(properties.TargetName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLambdaHookTargetFiltersPropertyValidator(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("actions",cdk().listValidator(cdk().validateString))(properties.actions)),errors.collect(cdk().propertyValidator("invocationPoints",cdk().listValidator(cdk().validateString))(properties.invocationPoints)),errors.collect(cdk().propertyValidator("targetNames",cdk().listValidator(cdk().validateString))(properties.targetNames)),errors.collect(cdk().propertyValidator("targets",cdk().requiredValidator)(properties.targets)),errors.collect(cdk().propertyValidator("targets",cdk().listValidator(CfnLambdaHookHookTargetPropertyValidator))(properties.targets)),errors.wrap('supplied properties not correct for "TargetFiltersProperty"')}function convertCfnLambdaHookTargetFiltersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLambdaHookTargetFiltersPropertyValidator(properties).assertSuccess(),{Actions:cdk().listMapper(cdk().stringToCloudFormation)(properties.actions),InvocationPoints:cdk().listMapper(cdk().stringToCloudFormation)(properties.invocationPoints),TargetNames:cdk().listMapper(cdk().stringToCloudFormation)(properties.targetNames),Targets:cdk().listMapper(convertCfnLambdaHookHookTargetPropertyToCloudFormation)(properties.targets)}):properties}function CfnLambdaHookTargetFiltersPropertyFromCloudFormation(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("actions","Actions",properties.Actions!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Actions):void 0),ret.addPropertyResult("invocationPoints","InvocationPoints",properties.InvocationPoints!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.InvocationPoints):void 0),ret.addPropertyResult("targetNames","TargetNames",properties.TargetNames!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.TargetNames):void 0),ret.addPropertyResult("targets","Targets",properties.Targets!=null?cfn_parse().FromCloudFormation.getArray(CfnLambdaHookHookTargetPropertyFromCloudFormation)(properties.Targets):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLambdaHookStackNamesPropertyValidator(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("exclude",cdk().listValidator(cdk().validateString))(properties.exclude)),errors.collect(cdk().propertyValidator("include",cdk().listValidator(cdk().validateString))(properties.include)),errors.wrap('supplied properties not correct for "StackNamesProperty"')}function convertCfnLambdaHookStackNamesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLambdaHookStackNamesPropertyValidator(properties).assertSuccess(),{Exclude:cdk().listMapper(cdk().stringToCloudFormation)(properties.exclude),Include:cdk().listMapper(cdk().stringToCloudFormation)(properties.include)}):properties}function CfnLambdaHookStackNamesPropertyFromCloudFormation(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("exclude","Exclude",properties.Exclude!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Exclude):void 0),ret.addPropertyResult("include","Include",properties.Include!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Include):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLambdaHookStackRolesPropertyValidator(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("exclude",cdk().listValidator(cdk().validateString))(properties.exclude)),errors.collect(cdk().propertyValidator("include",cdk().listValidator(cdk().validateString))(properties.include)),errors.wrap('supplied properties not correct for "StackRolesProperty"')}function convertCfnLambdaHookStackRolesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLambdaHookStackRolesPropertyValidator(properties).assertSuccess(),{Exclude:cdk().listMapper(cdk().stringToCloudFormation)(properties.exclude),Include:cdk().listMapper(cdk().stringToCloudFormation)(properties.include)}):properties}function CfnLambdaHookStackRolesPropertyFromCloudFormation(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("exclude","Exclude",properties.Exclude!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Exclude):void 0),ret.addPropertyResult("include","Include",properties.Include!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Include):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLambdaHookStackFiltersPropertyValidator(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("filteringCriteria",cdk().requiredValidator)(properties.filteringCriteria)),errors.collect(cdk().propertyValidator("filteringCriteria",cdk().validateString)(properties.filteringCriteria)),errors.collect(cdk().propertyValidator("stackNames",CfnLambdaHookStackNamesPropertyValidator)(properties.stackNames)),errors.collect(cdk().propertyValidator("stackRoles",CfnLambdaHookStackRolesPropertyValidator)(properties.stackRoles)),errors.wrap('supplied properties not correct for "StackFiltersProperty"')}function convertCfnLambdaHookStackFiltersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLambdaHookStackFiltersPropertyValidator(properties).assertSuccess(),{FilteringCriteria:cdk().stringToCloudFormation(properties.filteringCriteria),StackNames:convertCfnLambdaHookStackNamesPropertyToCloudFormation(properties.stackNames),StackRoles:convertCfnLambdaHookStackRolesPropertyToCloudFormation(properties.stackRoles)}):properties}function CfnLambdaHookStackFiltersPropertyFromCloudFormation(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("filteringCriteria","FilteringCriteria",properties.FilteringCriteria!=null?cfn_parse().FromCloudFormation.getString(properties.FilteringCriteria):void 0),ret.addPropertyResult("stackNames","StackNames",properties.StackNames!=null?CfnLambdaHookStackNamesPropertyFromCloudFormation(properties.StackNames):void 0),ret.addPropertyResult("stackRoles","StackRoles",properties.StackRoles!=null?CfnLambdaHookStackRolesPropertyFromCloudFormation(properties.StackRoles):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLambdaHookPropsValidator(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("alias",cdk().requiredValidator)(properties.alias)),errors.collect(cdk().propertyValidator("alias",cdk().validateString)(properties.alias)),errors.collect(cdk().propertyValidator("executionRole",cdk().requiredValidator)(properties.executionRole)),errors.collect(cdk().propertyValidator("executionRole",cdk().validateString)(properties.executionRole)),errors.collect(cdk().propertyValidator("failureMode",cdk().requiredValidator)(properties.failureMode)),errors.collect(cdk().propertyValidator("failureMode",cdk().validateString)(properties.failureMode)),errors.collect(cdk().propertyValidator("hookStatus",cdk().requiredValidator)(properties.hookStatus)),errors.collect(cdk().propertyValidator("hookStatus",cdk().validateString)(properties.hookStatus)),errors.collect(cdk().propertyValidator("lambdaFunction",cdk().requiredValidator)(properties.lambdaFunction)),errors.collect(cdk().propertyValidator("lambdaFunction",cdk().validateString)(properties.lambdaFunction)),errors.collect(cdk().propertyValidator("stackFilters",CfnLambdaHookStackFiltersPropertyValidator)(properties.stackFilters)),errors.collect(cdk().propertyValidator("targetFilters",CfnLambdaHookTargetFiltersPropertyValidator)(properties.targetFilters)),errors.collect(cdk().propertyValidator("targetOperations",cdk().requiredValidator)(properties.targetOperations)),errors.collect(cdk().propertyValidator("targetOperations",cdk().listValidator(cdk().validateString))(properties.targetOperations)),errors.wrap('supplied properties not correct for "CfnLambdaHookProps"')}function convertCfnLambdaHookPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLambdaHookPropsValidator(properties).assertSuccess(),{Alias:cdk().stringToCloudFormation(properties.alias),ExecutionRole:cdk().stringToCloudFormation(properties.executionRole),FailureMode:cdk().stringToCloudFormation(properties.failureMode),HookStatus:cdk().stringToCloudFormation(properties.hookStatus),LambdaFunction:cdk().stringToCloudFormation(properties.lambdaFunction),StackFilters:convertCfnLambdaHookStackFiltersPropertyToCloudFormation(properties.stackFilters),TargetFilters:convertCfnLambdaHookTargetFiltersPropertyToCloudFormation(properties.targetFilters),TargetOperations:cdk().listMapper(cdk().stringToCloudFormation)(properties.targetOperations)}):properties}function CfnLambdaHookPropsFromCloudFormation(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("alias","Alias",properties.Alias!=null?cfn_parse().FromCloudFormation.getString(properties.Alias):void 0),ret.addPropertyResult("executionRole","ExecutionRole",properties.ExecutionRole!=null?cfn_parse().FromCloudFormation.getString(properties.ExecutionRole):void 0),ret.addPropertyResult("failureMode","FailureMode",properties.FailureMode!=null?cfn_parse().FromCloudFormation.getString(properties.FailureMode):void 0),ret.addPropertyResult("hookStatus","HookStatus",properties.HookStatus!=null?cfn_parse().FromCloudFormation.getString(properties.HookStatus):void 0),ret.addPropertyResult("lambdaFunction","LambdaFunction",properties.LambdaFunction!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaFunction):void 0),ret.addPropertyResult("stackFilters","StackFilters",properties.StackFilters!=null?CfnLambdaHookStackFiltersPropertyFromCloudFormation(properties.StackFilters):void 0),ret.addPropertyResult("targetFilters","TargetFilters",properties.TargetFilters!=null?CfnLambdaHookTargetFiltersPropertyFromCloudFormation(properties.TargetFilters):void 0),ret.addPropertyResult("targetOperations","TargetOperations",properties.TargetOperations!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.TargetOperations):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}