aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 25.2 kB
JavaScript
"use strict";var _a,_b,_c,_d;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnSchema=exports.CfnRegistryPolicy=exports.CfnRegistry=exports.CfnDiscoverer=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");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 CfnDiscoverer extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDiscovererPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnDiscoverer(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}constructor(scope,id,props){super(scope,id,{type:CfnDiscoverer.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_eventschemas_CfnDiscovererProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDiscoverer),error}cdk().requireProperty(props,"sourceArn",this),this.attrCrossAccount=this.getAtt("CrossAccount"),this.attrDiscovererArn=cdk().Token.asString(this.getAtt("DiscovererArn",cdk().ResolutionTypeHint.STRING)),this.attrDiscovererId=cdk().Token.asString(this.getAtt("DiscovererId",cdk().ResolutionTypeHint.STRING)),this.attrState=cdk().Token.asString(this.getAtt("State",cdk().ResolutionTypeHint.STRING)),this.crossAccount=props.crossAccount,this.description=props.description,this.sourceArn=props.sourceArn,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::EventSchemas::Discoverer",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{crossAccount:this.crossAccount,description:this.description,sourceArn:this.sourceArn,tags:this.tags.renderTags()}}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",CfnDiscoverer.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnDiscovererPropsToCloudFormation(props)}}exports.CfnDiscoverer=CfnDiscoverer,_a=JSII_RTTI_SYMBOL_1,CfnDiscoverer[_a]={fqn:"aws-cdk-lib.aws_eventschemas.CfnDiscoverer",version:"2.185.0"},CfnDiscoverer.CFN_RESOURCE_TYPE_NAME="AWS::EventSchemas::Discoverer";function CfnDiscovererTagsEntryPropertyValidator(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("key",cdk().requiredValidator)(properties.key)),errors.collect(cdk().propertyValidator("key",cdk().validateString)(properties.key)),errors.collect(cdk().propertyValidator("value",cdk().requiredValidator)(properties.value)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsEntryProperty"')}function convertCfnDiscovererTagsEntryPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDiscovererTagsEntryPropertyValidator(properties).assertSuccess(),{Key:cdk().stringToCloudFormation(properties.key),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnDiscovererTagsEntryPropertyFromCloudFormation(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("key","Key",properties.Key!=null?cfn_parse().FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDiscovererPropsValidator(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("crossAccount",cdk().validateBoolean)(properties.crossAccount)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("sourceArn",cdk().requiredValidator)(properties.sourceArn)),errors.collect(cdk().propertyValidator("sourceArn",cdk().validateString)(properties.sourceArn)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(CfnDiscovererTagsEntryPropertyValidator))(properties.tags)),errors.wrap('supplied properties not correct for "CfnDiscovererProps"')}function convertCfnDiscovererPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDiscovererPropsValidator(properties).assertSuccess(),{CrossAccount:cdk().booleanToCloudFormation(properties.crossAccount),Description:cdk().stringToCloudFormation(properties.description),SourceArn:cdk().stringToCloudFormation(properties.sourceArn),Tags:cdk().listMapper(convertCfnDiscovererTagsEntryPropertyToCloudFormation)(properties.tags)}):properties}function CfnDiscovererPropsFromCloudFormation(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("crossAccount","CrossAccount",properties.CrossAccount!=null?cfn_parse().FromCloudFormation.getBoolean(properties.CrossAccount):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("sourceArn","SourceArn",properties.SourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceArn):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(CfnDiscovererTagsEntryPropertyFromCloudFormation)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRegistry extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRegistryPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnRegistry(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}constructor(scope,id,props={}){super(scope,id,{type:CfnRegistry.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_eventschemas_CfnRegistryProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRegistry),error}this.attrRegistryArn=cdk().Token.asString(this.getAtt("RegistryArn",cdk().ResolutionTypeHint.STRING)),this.attrRegistryName=cdk().Token.asString(this.getAtt("RegistryName",cdk().ResolutionTypeHint.STRING)),this.description=props.description,this.registryName=props.registryName,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::EventSchemas::Registry",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{description:this.description,registryName:this.registryName,tags:this.tags.renderTags()}}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",CfnRegistry.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnRegistryPropsToCloudFormation(props)}}exports.CfnRegistry=CfnRegistry,_b=JSII_RTTI_SYMBOL_1,CfnRegistry[_b]={fqn:"aws-cdk-lib.aws_eventschemas.CfnRegistry",version:"2.185.0"},CfnRegistry.CFN_RESOURCE_TYPE_NAME="AWS::EventSchemas::Registry";function CfnRegistryTagsEntryPropertyValidator(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("key",cdk().requiredValidator)(properties.key)),errors.collect(cdk().propertyValidator("key",cdk().validateString)(properties.key)),errors.collect(cdk().propertyValidator("value",cdk().requiredValidator)(properties.value)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsEntryProperty"')}function convertCfnRegistryTagsEntryPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRegistryTagsEntryPropertyValidator(properties).assertSuccess(),{Key:cdk().stringToCloudFormation(properties.key),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnRegistryTagsEntryPropertyFromCloudFormation(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("key","Key",properties.Key!=null?cfn_parse().FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRegistryPropsValidator(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("registryName",cdk().validateString)(properties.registryName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(CfnRegistryTagsEntryPropertyValidator))(properties.tags)),errors.wrap('supplied properties not correct for "CfnRegistryProps"')}function convertCfnRegistryPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRegistryPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),RegistryName:cdk().stringToCloudFormation(properties.registryName),Tags:cdk().listMapper(convertCfnRegistryTagsEntryPropertyToCloudFormation)(properties.tags)}):properties}function CfnRegistryPropsFromCloudFormation(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("registryName","RegistryName",properties.RegistryName!=null?cfn_parse().FromCloudFormation.getString(properties.RegistryName):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(CfnRegistryTagsEntryPropertyFromCloudFormation)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRegistryPolicy extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRegistryPolicyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnRegistryPolicy(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}constructor(scope,id,props){super(scope,id,{type:CfnRegistryPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_eventschemas_CfnRegistryPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRegistryPolicy),error}cdk().requireProperty(props,"policy",this),cdk().requireProperty(props,"registryName",this),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.policy=props.policy,this.registryName=props.registryName,this.revisionId=props.revisionId}get cfnProperties(){return{policy:this.policy,registryName:this.registryName,revisionId:this.revisionId}}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",CfnRegistryPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnRegistryPolicyPropsToCloudFormation(props)}}exports.CfnRegistryPolicy=CfnRegistryPolicy,_c=JSII_RTTI_SYMBOL_1,CfnRegistryPolicy[_c]={fqn:"aws-cdk-lib.aws_eventschemas.CfnRegistryPolicy",version:"2.185.0"},CfnRegistryPolicy.CFN_RESOURCE_TYPE_NAME="AWS::EventSchemas::RegistryPolicy";function CfnRegistryPolicyPropsValidator(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("policy",cdk().requiredValidator)(properties.policy)),errors.collect(cdk().propertyValidator("policy",cdk().validateObject)(properties.policy)),errors.collect(cdk().propertyValidator("registryName",cdk().requiredValidator)(properties.registryName)),errors.collect(cdk().propertyValidator("registryName",cdk().validateString)(properties.registryName)),errors.collect(cdk().propertyValidator("revisionId",cdk().validateString)(properties.revisionId)),errors.wrap('supplied properties not correct for "CfnRegistryPolicyProps"')}function convertCfnRegistryPolicyPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnRegistryPolicyPropsValidator(properties).assertSuccess(),{Policy:cdk().objectToCloudFormation(properties.policy),RegistryName:cdk().stringToCloudFormation(properties.registryName),RevisionId:cdk().stringToCloudFormation(properties.revisionId)}):properties}function CfnRegistryPolicyPropsFromCloudFormation(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("policy","Policy",properties.Policy!=null?cfn_parse().FromCloudFormation.getAny(properties.Policy):void 0),ret.addPropertyResult("registryName","RegistryName",properties.RegistryName!=null?cfn_parse().FromCloudFormation.getString(properties.RegistryName):void 0),ret.addPropertyResult("revisionId","RevisionId",properties.RevisionId!=null?cfn_parse().FromCloudFormation.getString(properties.RevisionId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSchema extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSchemaPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnSchema(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}constructor(scope,id,props){super(scope,id,{type:CfnSchema.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_eventschemas_CfnSchemaProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSchema),error}cdk().requireProperty(props,"content",this),cdk().requireProperty(props,"registryName",this),cdk().requireProperty(props,"type",this),this.attrLastModified=cdk().Token.asString(this.getAtt("LastModified",cdk().ResolutionTypeHint.STRING)),this.attrSchemaArn=cdk().Token.asString(this.getAtt("SchemaArn",cdk().ResolutionTypeHint.STRING)),this.attrSchemaName=cdk().Token.asString(this.getAtt("SchemaName",cdk().ResolutionTypeHint.STRING)),this.attrSchemaVersion=cdk().Token.asString(this.getAtt("SchemaVersion",cdk().ResolutionTypeHint.STRING)),this.attrVersionCreatedDate=cdk().Token.asString(this.getAtt("VersionCreatedDate",cdk().ResolutionTypeHint.STRING)),this.content=props.content,this.description=props.description,this.registryName=props.registryName,this.schemaName=props.schemaName,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::EventSchemas::Schema",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.type=props.type}get cfnProperties(){return{content:this.content,description:this.description,registryName:this.registryName,schemaName:this.schemaName,tags:this.tags.renderTags(),type:this.type}}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",CfnSchema.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnSchemaPropsToCloudFormation(props)}}exports.CfnSchema=CfnSchema,_d=JSII_RTTI_SYMBOL_1,CfnSchema[_d]={fqn:"aws-cdk-lib.aws_eventschemas.CfnSchema",version:"2.185.0"},CfnSchema.CFN_RESOURCE_TYPE_NAME="AWS::EventSchemas::Schema";function CfnSchemaTagsEntryPropertyValidator(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("key",cdk().requiredValidator)(properties.key)),errors.collect(cdk().propertyValidator("key",cdk().validateString)(properties.key)),errors.collect(cdk().propertyValidator("value",cdk().requiredValidator)(properties.value)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsEntryProperty"')}function convertCfnSchemaTagsEntryPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSchemaTagsEntryPropertyValidator(properties).assertSuccess(),{Key:cdk().stringToCloudFormation(properties.key),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnSchemaTagsEntryPropertyFromCloudFormation(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("key","Key",properties.Key!=null?cfn_parse().FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchemaPropsValidator(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("content",cdk().requiredValidator)(properties.content)),errors.collect(cdk().propertyValidator("content",cdk().validateString)(properties.content)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("registryName",cdk().requiredValidator)(properties.registryName)),errors.collect(cdk().propertyValidator("registryName",cdk().validateString)(properties.registryName)),errors.collect(cdk().propertyValidator("schemaName",cdk().validateString)(properties.schemaName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(CfnSchemaTagsEntryPropertyValidator))(properties.tags)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnSchemaProps"')}function convertCfnSchemaPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSchemaPropsValidator(properties).assertSuccess(),{Content:cdk().stringToCloudFormation(properties.content),Description:cdk().stringToCloudFormation(properties.description),RegistryName:cdk().stringToCloudFormation(properties.registryName),SchemaName:cdk().stringToCloudFormation(properties.schemaName),Tags:cdk().listMapper(convertCfnSchemaTagsEntryPropertyToCloudFormation)(properties.tags),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnSchemaPropsFromCloudFormation(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("content","Content",properties.Content!=null?cfn_parse().FromCloudFormation.getString(properties.Content):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("registryName","RegistryName",properties.RegistryName!=null?cfn_parse().FromCloudFormation.getString(properties.RegistryName):void 0),ret.addPropertyResult("schemaName","SchemaName",properties.SchemaName!=null?cfn_parse().FromCloudFormation.getString(properties.SchemaName):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(CfnSchemaTagsEntryPropertyFromCloudFormation)(properties.Tags):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}