aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 90.9 kB
JavaScript
"use strict";var _a,_b,_c;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnTheme=exports.CfnForm=exports.CfnComponent=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnComponentPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("appId",cdk.validateString)(properties.appId)),errors.collect(cdk.propertyValidator("bindingProperties",cdk.requiredValidator)(properties.bindingProperties)),errors.collect(cdk.propertyValidator("bindingProperties",cdk.hashValidator(CfnComponent_ComponentBindingPropertiesValuePropertyValidator))(properties.bindingProperties)),errors.collect(cdk.propertyValidator("children",cdk.listValidator(CfnComponent_ComponentChildPropertyValidator))(properties.children)),errors.collect(cdk.propertyValidator("collectionProperties",cdk.hashValidator(CfnComponent_ComponentDataConfigurationPropertyValidator))(properties.collectionProperties)),errors.collect(cdk.propertyValidator("componentType",cdk.requiredValidator)(properties.componentType)),errors.collect(cdk.propertyValidator("componentType",cdk.validateString)(properties.componentType)),errors.collect(cdk.propertyValidator("environmentName",cdk.validateString)(properties.environmentName)),errors.collect(cdk.propertyValidator("events",cdk.hashValidator(CfnComponent_ComponentEventPropertyValidator))(properties.events)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("overrides",cdk.requiredValidator)(properties.overrides)),errors.collect(cdk.propertyValidator("overrides",cdk.validateObject)(properties.overrides)),errors.collect(cdk.propertyValidator("properties",cdk.requiredValidator)(properties.properties)),errors.collect(cdk.propertyValidator("properties",cdk.hashValidator(CfnComponent_ComponentPropertyPropertyValidator))(properties.properties)),errors.collect(cdk.propertyValidator("schemaVersion",cdk.validateString)(properties.schemaVersion)),errors.collect(cdk.propertyValidator("sourceId",cdk.validateString)(properties.sourceId)),errors.collect(cdk.propertyValidator("tags",cdk.hashValidator(cdk.validateString))(properties.tags)),errors.collect(cdk.propertyValidator("variants",cdk.requiredValidator)(properties.variants)),errors.collect(cdk.propertyValidator("variants",cdk.listValidator(CfnComponent_ComponentVariantPropertyValidator))(properties.variants)),errors.wrap('supplied properties not correct for "CfnComponentProps"')}function cfnComponentPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponentPropsValidator(properties).assertSuccess(),{BindingProperties:cdk.hashMapper(cfnComponentComponentBindingPropertiesValuePropertyToCloudFormation)(properties.bindingProperties),ComponentType:cdk.stringToCloudFormation(properties.componentType),Name:cdk.stringToCloudFormation(properties.name),Overrides:cdk.objectToCloudFormation(properties.overrides),Properties:cdk.hashMapper(cfnComponentComponentPropertyPropertyToCloudFormation)(properties.properties),Variants:cdk.listMapper(cfnComponentComponentVariantPropertyToCloudFormation)(properties.variants),AppId:cdk.stringToCloudFormation(properties.appId),Children:cdk.listMapper(cfnComponentComponentChildPropertyToCloudFormation)(properties.children),CollectionProperties:cdk.hashMapper(cfnComponentComponentDataConfigurationPropertyToCloudFormation)(properties.collectionProperties),EnvironmentName:cdk.stringToCloudFormation(properties.environmentName),Events:cdk.hashMapper(cfnComponentComponentEventPropertyToCloudFormation)(properties.events),SchemaVersion:cdk.stringToCloudFormation(properties.schemaVersion),SourceId:cdk.stringToCloudFormation(properties.sourceId),Tags:cdk.hashMapper(cdk.stringToCloudFormation)(properties.tags)}):properties}function CfnComponentPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("bindingProperties","BindingProperties",cfn_parse.FromCloudFormation.getMap(CfnComponentComponentBindingPropertiesValuePropertyFromCloudFormation)(properties.BindingProperties)),ret.addPropertyResult("componentType","ComponentType",cfn_parse.FromCloudFormation.getString(properties.ComponentType)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("overrides","Overrides",cfn_parse.FromCloudFormation.getAny(properties.Overrides)),ret.addPropertyResult("properties","Properties",cfn_parse.FromCloudFormation.getMap(CfnComponentComponentPropertyPropertyFromCloudFormation)(properties.Properties)),ret.addPropertyResult("variants","Variants",cfn_parse.FromCloudFormation.getArray(CfnComponentComponentVariantPropertyFromCloudFormation)(properties.Variants)),ret.addPropertyResult("appId","AppId",properties.AppId!=null?cfn_parse.FromCloudFormation.getString(properties.AppId):void 0),ret.addPropertyResult("children","Children",properties.Children!=null?cfn_parse.FromCloudFormation.getArray(CfnComponentComponentChildPropertyFromCloudFormation)(properties.Children):void 0),ret.addPropertyResult("collectionProperties","CollectionProperties",properties.CollectionProperties!=null?cfn_parse.FromCloudFormation.getMap(CfnComponentComponentDataConfigurationPropertyFromCloudFormation)(properties.CollectionProperties):void 0),ret.addPropertyResult("environmentName","EnvironmentName",properties.EnvironmentName!=null?cfn_parse.FromCloudFormation.getString(properties.EnvironmentName):void 0),ret.addPropertyResult("events","Events",properties.Events!=null?cfn_parse.FromCloudFormation.getMap(CfnComponentComponentEventPropertyFromCloudFormation)(properties.Events):void 0),ret.addPropertyResult("schemaVersion","SchemaVersion",properties.SchemaVersion!=null?cfn_parse.FromCloudFormation.getString(properties.SchemaVersion):void 0),ret.addPropertyResult("sourceId","SourceId",properties.SourceId!=null?cfn_parse.FromCloudFormation.getString(properties.SourceId):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnComponent extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnComponent.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_amplifyuibuilder_CfnComponentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnComponent),error}cdk.requireProperty(props,"bindingProperties",this),cdk.requireProperty(props,"componentType",this),cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"overrides",this),cdk.requireProperty(props,"properties",this),cdk.requireProperty(props,"variants",this),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.bindingProperties=props.bindingProperties,this.componentType=props.componentType,this.name=props.name,this.overrides=props.overrides,this.properties=props.properties,this.variants=props.variants,this.appId=props.appId,this.children=props.children,this.collectionProperties=props.collectionProperties,this.environmentName=props.environmentName,this.events=props.events,this.schemaVersion=props.schemaVersion,this.sourceId=props.sourceId,this.tags=new cdk.TagManager(cdk.TagType.MAP,"AWS::AmplifyUIBuilder::Component",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnComponentPropsFromCloudFormation(resourceProperties),ret=new CfnComponent(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnComponent.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{bindingProperties:this.bindingProperties,componentType:this.componentType,name:this.name,overrides:this.overrides,properties:this.properties,variants:this.variants,appId:this.appId,children:this.children,collectionProperties:this.collectionProperties,environmentName:this.environmentName,events:this.events,schemaVersion:this.schemaVersion,sourceId:this.sourceId,tags:this.tags.renderTags()}}renderProperties(props){return cfnComponentPropsToCloudFormation(props)}}exports.CfnComponent=CfnComponent,_a=JSII_RTTI_SYMBOL_1,CfnComponent[_a]={fqn:"aws-cdk-lib.aws_amplifyuibuilder.CfnComponent",version:"2.70.0"},CfnComponent.CFN_RESOURCE_TYPE_NAME="AWS::AmplifyUIBuilder::Component";function CfnComponent_ActionParametersPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("anchor",CfnComponent_ComponentPropertyPropertyValidator)(properties.anchor)),errors.collect(cdk.propertyValidator("fields",cdk.hashValidator(CfnComponent_ComponentPropertyPropertyValidator))(properties.fields)),errors.collect(cdk.propertyValidator("global",CfnComponent_ComponentPropertyPropertyValidator)(properties.global)),errors.collect(cdk.propertyValidator("id",CfnComponent_ComponentPropertyPropertyValidator)(properties.id)),errors.collect(cdk.propertyValidator("model",cdk.validateString)(properties.model)),errors.collect(cdk.propertyValidator("state",CfnComponent_MutationActionSetStateParameterPropertyValidator)(properties.state)),errors.collect(cdk.propertyValidator("target",CfnComponent_ComponentPropertyPropertyValidator)(properties.target)),errors.collect(cdk.propertyValidator("type",CfnComponent_ComponentPropertyPropertyValidator)(properties.type)),errors.collect(cdk.propertyValidator("url",CfnComponent_ComponentPropertyPropertyValidator)(properties.url)),errors.wrap('supplied properties not correct for "ActionParametersProperty"')}function cfnComponentActionParametersPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ActionParametersPropertyValidator(properties).assertSuccess(),{Anchor:cfnComponentComponentPropertyPropertyToCloudFormation(properties.anchor),Fields:cdk.hashMapper(cfnComponentComponentPropertyPropertyToCloudFormation)(properties.fields),Global:cfnComponentComponentPropertyPropertyToCloudFormation(properties.global),Id:cfnComponentComponentPropertyPropertyToCloudFormation(properties.id),Model:cdk.stringToCloudFormation(properties.model),State:cfnComponentMutationActionSetStateParameterPropertyToCloudFormation(properties.state),Target:cfnComponentComponentPropertyPropertyToCloudFormation(properties.target),Type:cfnComponentComponentPropertyPropertyToCloudFormation(properties.type),Url:cfnComponentComponentPropertyPropertyToCloudFormation(properties.url)}):properties}function CfnComponentActionParametersPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("anchor","Anchor",properties.Anchor!=null?CfnComponentComponentPropertyPropertyFromCloudFormation(properties.Anchor):void 0),ret.addPropertyResult("fields","Fields",properties.Fields!=null?cfn_parse.FromCloudFormation.getMap(CfnComponentComponentPropertyPropertyFromCloudFormation)(properties.Fields):void 0),ret.addPropertyResult("global","Global",properties.Global!=null?CfnComponentComponentPropertyPropertyFromCloudFormation(properties.Global):void 0),ret.addPropertyResult("id","Id",properties.Id!=null?CfnComponentComponentPropertyPropertyFromCloudFormation(properties.Id):void 0),ret.addPropertyResult("model","Model",properties.Model!=null?cfn_parse.FromCloudFormation.getString(properties.Model):void 0),ret.addPropertyResult("state","State",properties.State!=null?CfnComponentMutationActionSetStateParameterPropertyFromCloudFormation(properties.State):void 0),ret.addPropertyResult("target","Target",properties.Target!=null?CfnComponentComponentPropertyPropertyFromCloudFormation(properties.Target):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?CfnComponentComponentPropertyPropertyFromCloudFormation(properties.Type):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?CfnComponentComponentPropertyPropertyFromCloudFormation(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_ComponentBindingPropertiesValuePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("bindingProperties",CfnComponent_ComponentBindingPropertiesValuePropertiesPropertyValidator)(properties.bindingProperties)),errors.collect(cdk.propertyValidator("defaultValue",cdk.validateString)(properties.defaultValue)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "ComponentBindingPropertiesValueProperty"')}function cfnComponentComponentBindingPropertiesValuePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ComponentBindingPropertiesValuePropertyValidator(properties).assertSuccess(),{BindingProperties:cfnComponentComponentBindingPropertiesValuePropertiesPropertyToCloudFormation(properties.bindingProperties),DefaultValue:cdk.stringToCloudFormation(properties.defaultValue),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnComponentComponentBindingPropertiesValuePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("bindingProperties","BindingProperties",properties.BindingProperties!=null?CfnComponentComponentBindingPropertiesValuePropertiesPropertyFromCloudFormation(properties.BindingProperties):void 0),ret.addPropertyResult("defaultValue","DefaultValue",properties.DefaultValue!=null?cfn_parse.FromCloudFormation.getString(properties.DefaultValue):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_ComponentBindingPropertiesValuePropertiesPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("bucket",cdk.validateString)(properties.bucket)),errors.collect(cdk.propertyValidator("defaultValue",cdk.validateString)(properties.defaultValue)),errors.collect(cdk.propertyValidator("field",cdk.validateString)(properties.field)),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("model",cdk.validateString)(properties.model)),errors.collect(cdk.propertyValidator("predicates",cdk.listValidator(CfnComponent_PredicatePropertyValidator))(properties.predicates)),errors.collect(cdk.propertyValidator("userAttribute",cdk.validateString)(properties.userAttribute)),errors.wrap('supplied properties not correct for "ComponentBindingPropertiesValuePropertiesProperty"')}function cfnComponentComponentBindingPropertiesValuePropertiesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ComponentBindingPropertiesValuePropertiesPropertyValidator(properties).assertSuccess(),{Bucket:cdk.stringToCloudFormation(properties.bucket),DefaultValue:cdk.stringToCloudFormation(properties.defaultValue),Field:cdk.stringToCloudFormation(properties.field),Key:cdk.stringToCloudFormation(properties.key),Model:cdk.stringToCloudFormation(properties.model),Predicates:cdk.listMapper(cfnComponentPredicatePropertyToCloudFormation)(properties.predicates),UserAttribute:cdk.stringToCloudFormation(properties.userAttribute)}):properties}function CfnComponentComponentBindingPropertiesValuePropertiesPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("bucket","Bucket",properties.Bucket!=null?cfn_parse.FromCloudFormation.getString(properties.Bucket):void 0),ret.addPropertyResult("defaultValue","DefaultValue",properties.DefaultValue!=null?cfn_parse.FromCloudFormation.getString(properties.DefaultValue):void 0),ret.addPropertyResult("field","Field",properties.Field!=null?cfn_parse.FromCloudFormation.getString(properties.Field):void 0),ret.addPropertyResult("key","Key",properties.Key!=null?cfn_parse.FromCloudFormation.getString(properties.Key):void 0),ret.addPropertyResult("model","Model",properties.Model!=null?cfn_parse.FromCloudFormation.getString(properties.Model):void 0),ret.addPropertyResult("predicates","Predicates",properties.Predicates!=null?cfn_parse.FromCloudFormation.getArray(CfnComponentPredicatePropertyFromCloudFormation)(properties.Predicates):void 0),ret.addPropertyResult("userAttribute","UserAttribute",properties.UserAttribute!=null?cfn_parse.FromCloudFormation.getString(properties.UserAttribute):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_ComponentChildPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("children",cdk.listValidator(CfnComponent_ComponentChildPropertyValidator))(properties.children)),errors.collect(cdk.propertyValidator("componentType",cdk.requiredValidator)(properties.componentType)),errors.collect(cdk.propertyValidator("componentType",cdk.validateString)(properties.componentType)),errors.collect(cdk.propertyValidator("events",cdk.hashValidator(CfnComponent_ComponentEventPropertyValidator))(properties.events)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("properties",cdk.requiredValidator)(properties.properties)),errors.collect(cdk.propertyValidator("properties",cdk.hashValidator(CfnComponent_ComponentPropertyPropertyValidator))(properties.properties)),errors.wrap('supplied properties not correct for "ComponentChildProperty"')}function cfnComponentComponentChildPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ComponentChildPropertyValidator(properties).assertSuccess(),{Children:cdk.listMapper(cfnComponentComponentChildPropertyToCloudFormation)(properties.children),ComponentType:cdk.stringToCloudFormation(properties.componentType),Events:cdk.hashMapper(cfnComponentComponentEventPropertyToCloudFormation)(properties.events),Name:cdk.stringToCloudFormation(properties.name),Properties:cdk.hashMapper(cfnComponentComponentPropertyPropertyToCloudFormation)(properties.properties)}):properties}function CfnComponentComponentChildPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("children","Children",properties.Children!=null?cfn_parse.FromCloudFormation.getArray(CfnComponentComponentChildPropertyFromCloudFormation)(properties.Children):void 0),ret.addPropertyResult("componentType","ComponentType",cfn_parse.FromCloudFormation.getString(properties.ComponentType)),ret.addPropertyResult("events","Events",properties.Events!=null?cfn_parse.FromCloudFormation.getMap(CfnComponentComponentEventPropertyFromCloudFormation)(properties.Events):void 0),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("properties","Properties",cfn_parse.FromCloudFormation.getMap(CfnComponentComponentPropertyPropertyFromCloudFormation)(properties.Properties)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_ComponentConditionPropertyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("else",CfnComponent_ComponentPropertyPropertyValidator)(properties.else)),errors.collect(cdk.propertyValidator("field",cdk.validateString)(properties.field)),errors.collect(cdk.propertyValidator("operand",cdk.validateString)(properties.operand)),errors.collect(cdk.propertyValidator("operandType",cdk.validateString)(properties.operandType)),errors.collect(cdk.propertyValidator("operator",cdk.validateString)(properties.operator)),errors.collect(cdk.propertyValidator("property",cdk.validateString)(properties.property)),errors.collect(cdk.propertyValidator("then",CfnComponent_ComponentPropertyPropertyValidator)(properties.then)),errors.wrap('supplied properties not correct for "ComponentConditionPropertyProperty"')}function cfnComponentComponentConditionPropertyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ComponentConditionPropertyPropertyValidator(properties).assertSuccess(),{Else:cfnComponentComponentPropertyPropertyToCloudFormation(properties.else),Field:cdk.stringToCloudFormation(properties.field),Operand:cdk.stringToCloudFormation(properties.operand),OperandType:cdk.stringToCloudFormation(properties.operandType),Operator:cdk.stringToCloudFormation(properties.operator),Property:cdk.stringToCloudFormation(properties.property),Then:cfnComponentComponentPropertyPropertyToCloudFormation(properties.then)}):properties}function CfnComponentComponentConditionPropertyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("else","Else",properties.Else!=null?CfnComponentComponentPropertyPropertyFromCloudFormation(properties.Else):void 0),ret.addPropertyResult("field","Field",properties.Field!=null?cfn_parse.FromCloudFormation.getString(properties.Field):void 0),ret.addPropertyResult("operand","Operand",properties.Operand!=null?cfn_parse.FromCloudFormation.getString(properties.Operand):void 0),ret.addPropertyResult("operandType","OperandType",properties.OperandType!=null?cfn_parse.FromCloudFormation.getString(properties.OperandType):void 0),ret.addPropertyResult("operator","Operator",properties.Operator!=null?cfn_parse.FromCloudFormation.getString(properties.Operator):void 0),ret.addPropertyResult("property","Property",properties.Property!=null?cfn_parse.FromCloudFormation.getString(properties.Property):void 0),ret.addPropertyResult("then","Then",properties.Then!=null?CfnComponentComponentPropertyPropertyFromCloudFormation(properties.Then):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_ComponentDataConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("identifiers",cdk.listValidator(cdk.validateString))(properties.identifiers)),errors.collect(cdk.propertyValidator("model",cdk.requiredValidator)(properties.model)),errors.collect(cdk.propertyValidator("model",cdk.validateString)(properties.model)),errors.collect(cdk.propertyValidator("predicate",CfnComponent_PredicatePropertyValidator)(properties.predicate)),errors.collect(cdk.propertyValidator("sort",cdk.listValidator(CfnComponent_SortPropertyPropertyValidator))(properties.sort)),errors.wrap('supplied properties not correct for "ComponentDataConfigurationProperty"')}function cfnComponentComponentDataConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ComponentDataConfigurationPropertyValidator(properties).assertSuccess(),{Identifiers:cdk.listMapper(cdk.stringToCloudFormation)(properties.identifiers),Model:cdk.stringToCloudFormation(properties.model),Predicate:cfnComponentPredicatePropertyToCloudFormation(properties.predicate),Sort:cdk.listMapper(cfnComponentSortPropertyPropertyToCloudFormation)(properties.sort)}):properties}function CfnComponentComponentDataConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("identifiers","Identifiers",properties.Identifiers!=null?cfn_parse.FromCloudFormation.getStringArray(properties.Identifiers):void 0),ret.addPropertyResult("model","Model",cfn_parse.FromCloudFormation.getString(properties.Model)),ret.addPropertyResult("predicate","Predicate",properties.Predicate!=null?CfnComponentPredicatePropertyFromCloudFormation(properties.Predicate):void 0),ret.addPropertyResult("sort","Sort",properties.Sort!=null?cfn_parse.FromCloudFormation.getArray(CfnComponentSortPropertyPropertyFromCloudFormation)(properties.Sort):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_ComponentEventPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("action",cdk.validateString)(properties.action)),errors.collect(cdk.propertyValidator("parameters",CfnComponent_ActionParametersPropertyValidator)(properties.parameters)),errors.wrap('supplied properties not correct for "ComponentEventProperty"')}function cfnComponentComponentEventPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ComponentEventPropertyValidator(properties).assertSuccess(),{Action:cdk.stringToCloudFormation(properties.action),Parameters:cfnComponentActionParametersPropertyToCloudFormation(properties.parameters)}):properties}function CfnComponentComponentEventPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("action","Action",properties.Action!=null?cfn_parse.FromCloudFormation.getString(properties.Action):void 0),ret.addPropertyResult("parameters","Parameters",properties.Parameters!=null?CfnComponentActionParametersPropertyFromCloudFormation(properties.Parameters):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_ComponentPropertyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("bindingProperties",CfnComponent_ComponentPropertyBindingPropertiesPropertyValidator)(properties.bindingProperties)),errors.collect(cdk.propertyValidator("bindings",cdk.hashValidator(CfnComponent_FormBindingElementPropertyValidator))(properties.bindings)),errors.collect(cdk.propertyValidator("collectionBindingProperties",CfnComponent_ComponentPropertyBindingPropertiesPropertyValidator)(properties.collectionBindingProperties)),errors.collect(cdk.propertyValidator("componentName",cdk.validateString)(properties.componentName)),errors.collect(cdk.propertyValidator("concat",cdk.listValidator(CfnComponent_ComponentPropertyPropertyValidator))(properties.concat)),errors.collect(cdk.propertyValidator("condition",CfnComponent_ComponentConditionPropertyPropertyValidator)(properties.condition)),errors.collect(cdk.propertyValidator("configured",cdk.validateBoolean)(properties.configured)),errors.collect(cdk.propertyValidator("defaultValue",cdk.validateString)(properties.defaultValue)),errors.collect(cdk.propertyValidator("event",cdk.validateString)(properties.event)),errors.collect(cdk.propertyValidator("importedValue",cdk.validateString)(properties.importedValue)),errors.collect(cdk.propertyValidator("model",cdk.validateString)(properties.model)),errors.collect(cdk.propertyValidator("property",cdk.validateString)(properties.property)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.collect(cdk.propertyValidator("userAttribute",cdk.validateString)(properties.userAttribute)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "ComponentPropertyProperty"')}function cfnComponentComponentPropertyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ComponentPropertyPropertyValidator(properties).assertSuccess(),{BindingProperties:cfnComponentComponentPropertyBindingPropertiesPropertyToCloudFormation(properties.bindingProperties),Bindings:cdk.hashMapper(cfnComponentFormBindingElementPropertyToCloudFormation)(properties.bindings),CollectionBindingProperties:cfnComponentComponentPropertyBindingPropertiesPropertyToCloudFormation(properties.collectionBindingProperties),ComponentName:cdk.stringToCloudFormation(properties.componentName),Concat:cdk.listMapper(cfnComponentComponentPropertyPropertyToCloudFormation)(properties.concat),Condition:cfnComponentComponentConditionPropertyPropertyToCloudFormation(properties.condition),Configured:cdk.booleanToCloudFormation(properties.configured),DefaultValue:cdk.stringToCloudFormation(properties.defaultValue),Event:cdk.stringToCloudFormation(properties.event),ImportedValue:cdk.stringToCloudFormation(properties.importedValue),Model:cdk.stringToCloudFormation(properties.model),Property:cdk.stringToCloudFormation(properties.property),Type:cdk.stringToCloudFormation(properties.type),UserAttribute:cdk.stringToCloudFormation(properties.userAttribute),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnComponentComponentPropertyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("bindingProperties","BindingProperties",properties.BindingProperties!=null?CfnComponentComponentPropertyBindingPropertiesPropertyFromCloudFormation(properties.BindingProperties):void 0),ret.addPropertyResult("bindings","Bindings",properties.Bindings!=null?cfn_parse.FromCloudFormation.getMap(CfnComponentFormBindingElementPropertyFromCloudFormation)(properties.Bindings):void 0),ret.addPropertyResult("collectionBindingProperties","CollectionBindingProperties",properties.CollectionBindingProperties!=null?CfnComponentComponentPropertyBindingPropertiesPropertyFromCloudFormation(properties.CollectionBindingProperties):void 0),ret.addPropertyResult("componentName","ComponentName",properties.ComponentName!=null?cfn_parse.FromCloudFormation.getString(properties.ComponentName):void 0),ret.addPropertyResult("concat","Concat",properties.Concat!=null?cfn_parse.FromCloudFormation.getArray(CfnComponentComponentPropertyPropertyFromCloudFormation)(properties.Concat):void 0),ret.addPropertyResult("condition","Condition",properties.Condition!=null?CfnComponentComponentConditionPropertyPropertyFromCloudFormation(properties.Condition):void 0),ret.addPropertyResult("configured","Configured",properties.Configured!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Configured):void 0),ret.addPropertyResult("defaultValue","DefaultValue",properties.DefaultValue!=null?cfn_parse.FromCloudFormation.getString(properties.DefaultValue):void 0),ret.addPropertyResult("event","Event",properties.Event!=null?cfn_parse.FromCloudFormation.getString(properties.Event):void 0),ret.addPropertyResult("importedValue","ImportedValue",properties.ImportedValue!=null?cfn_parse.FromCloudFormation.getString(properties.ImportedValue):void 0),ret.addPropertyResult("model","Model",properties.Model!=null?cfn_parse.FromCloudFormation.getString(properties.Model):void 0),ret.addPropertyResult("property","Property",properties.Property!=null?cfn_parse.FromCloudFormation.getString(properties.Property):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addPropertyResult("userAttribute","UserAttribute",properties.UserAttribute!=null?cfn_parse.FromCloudFormation.getString(properties.UserAttribute):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse.FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_ComponentPropertyBindingPropertiesPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("field",cdk.validateString)(properties.field)),errors.collect(cdk.propertyValidator("property",cdk.requiredValidator)(properties.property)),errors.collect(cdk.propertyValidator("property",cdk.validateString)(properties.property)),errors.wrap('supplied properties not correct for "ComponentPropertyBindingPropertiesProperty"')}function cfnComponentComponentPropertyBindingPropertiesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ComponentPropertyBindingPropertiesPropertyValidator(properties).assertSuccess(),{Field:cdk.stringToCloudFormation(properties.field),Property:cdk.stringToCloudFormation(properties.property)}):properties}function CfnComponentComponentPropertyBindingPropertiesPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("field","Field",properties.Field!=null?cfn_parse.FromCloudFormation.getString(properties.Field):void 0),ret.addPropertyResult("property","Property",cfn_parse.FromCloudFormation.getString(properties.Property)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_ComponentVariantPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("overrides",cdk.validateObject)(properties.overrides)),errors.collect(cdk.propertyValidator("variantValues",cdk.hashValidator(cdk.validateString))(properties.variantValues)),errors.wrap('supplied properties not correct for "ComponentVariantProperty"')}function cfnComponentComponentVariantPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_ComponentVariantPropertyValidator(properties).assertSuccess(),{Overrides:cdk.objectToCloudFormation(properties.overrides),VariantValues:cdk.hashMapper(cdk.stringToCloudFormation)(properties.variantValues)}):properties}function CfnComponentComponentVariantPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("overrides","Overrides",properties.Overrides!=null?cfn_parse.FromCloudFormation.getAny(properties.Overrides):void 0),ret.addPropertyResult("variantValues","VariantValues",properties.VariantValues!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.VariantValues):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_FormBindingElementPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("element",cdk.requiredValidator)(properties.element)),errors.collect(cdk.propertyValidator("element",cdk.validateString)(properties.element)),errors.collect(cdk.propertyValidator("property",cdk.requiredValidator)(properties.property)),errors.collect(cdk.propertyValidator("property",cdk.validateString)(properties.property)),errors.wrap('supplied properties not correct for "FormBindingElementProperty"')}function cfnComponentFormBindingElementPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_FormBindingElementPropertyValidator(properties).assertSuccess(),{Element:cdk.stringToCloudFormation(properties.element),Property:cdk.stringToCloudFormation(properties.property)}):properties}function CfnComponentFormBindingElementPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("element","Element",cfn_parse.FromCloudFormation.getString(properties.Element)),ret.addPropertyResult("property","Property",cfn_parse.FromCloudFormation.getString(properties.Property)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_MutationActionSetStateParameterPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("componentName",cdk.requiredValidator)(properties.componentName)),errors.collect(cdk.propertyValidator("componentName",cdk.validateString)(properties.componentName)),errors.collect(cdk.propertyValidator("property",cdk.requiredValidator)(properties.property)),errors.collect(cdk.propertyValidator("property",cdk.validateString)(properties.property)),errors.collect(cdk.propertyValidator("set",cdk.requiredValidator)(properties.set)),errors.collect(cdk.propertyValidator("set",CfnComponent_ComponentPropertyPropertyValidator)(properties.set)),errors.wrap('supplied properties not correct for "MutationActionSetStateParameterProperty"')}function cfnComponentMutationActionSetStateParameterPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_MutationActionSetStateParameterPropertyValidator(properties).assertSuccess(),{ComponentName:cdk.stringToCloudFormation(properties.componentName),Property:cdk.stringToCloudFormation(properties.property),Set:cfnComponentComponentPropertyPropertyToCloudFormation(properties.set)}):properties}function CfnComponentMutationActionSetStateParameterPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("componentName","ComponentName",cfn_parse.FromCloudFormation.getString(properties.ComponentName)),ret.addPropertyResult("property","Property",cfn_parse.FromCloudFormation.getString(properties.Property)),ret.addPropertyResult("set","Set",CfnComponentComponentPropertyPropertyFromCloudFormation(properties.Set)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_PredicatePropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("and",cdk.listValidator(CfnComponent_PredicatePropertyValidator))(properties.and)),errors.collect(cdk.propertyValidator("field",cdk.validateString)(properties.field)),errors.collect(cdk.propertyValidator("operand",cdk.validateString)(properties.operand)),errors.collect(cdk.propertyValidator("operator",cdk.validateString)(properties.operator)),errors.collect(cdk.propertyValidator("or",cdk.listValidator(CfnComponent_PredicatePropertyValidator))(properties.or)),errors.wrap('supplied properties not correct for "PredicateProperty"')}function cfnComponentPredicatePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_PredicatePropertyValidator(properties).assertSuccess(),{And:cdk.listMapper(cfnComponentPredicatePropertyToCloudFormation)(properties.and),Field:cdk.stringToCloudFormation(properties.field),Operand:cdk.stringToCloudFormation(properties.operand),Operator:cdk.stringToCloudFormation(properties.operator),Or:cdk.listMapper(cfnComponentPredicatePropertyToCloudFormation)(properties.or)}):properties}function CfnComponentPredicatePropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("and","And",properties.And!=null?cfn_parse.FromCloudFormation.getArray(CfnComponentPredicatePropertyFromCloudFormation)(properties.And):void 0),ret.addPropertyResult("field","Field",properties.Field!=null?cfn_parse.FromCloudFormation.getString(properties.Field):void 0),ret.addPropertyResult("operand","Operand",properties.Operand!=null?cfn_parse.FromCloudFormation.getString(properties.Operand):void 0),ret.addPropertyResult("operator","Operator",properties.Operator!=null?cfn_parse.FromCloudFormation.getString(properties.Operator):void 0),ret.addPropertyResult("or","Or",properties.Or!=null?cfn_parse.FromCloudFormation.getArray(CfnComponentPredicatePropertyFromCloudFormation)(properties.Or):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnComponent_SortPropertyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("direction",cdk.requiredValidator)(properties.direction)),errors.collect(cdk.propertyValidator("direction",cdk.validateString)(properties.direction)),errors.collect(cdk.propertyValidator("field",cdk.requiredValidator)(properties.field)),errors.collect(cdk.propertyValidator("field",cdk.validateString)(properties.field)),errors.wrap('supplied properties not correct for "SortPropertyProperty"')}function cfnComponentSortPropertyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnComponent_SortPropertyPropertyValidator(properties).assertSuccess(),{Direction:cdk.stringToCloudFormation(properties.direction),Field:cdk.stringToCloudFormation(properties.field)}):properties}function CfnComponentSortPropertyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("direction","Direction",cfn_parse.FromCloudFormation.getString(properties.Direction)),ret.addPropertyResult("field","Field",cfn_parse.FromCloudFormation.getString(properties.Field)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnFormPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("appId",cdk.validateString)(properties.appId)),errors.collect(cdk.propertyValidator("cta",CfnForm_FormCTAPropertyValidator)(properties.cta)),errors.collect(cdk.propertyValidator("dataType",cdk.requiredValidator)(properties.dataType)),errors.collect(cdk.propertyValidator("dataType",CfnForm_FormDataTypeConfigPropertyValidator)(properties.dataType)),errors.collect(cdk.propertyValidator("environmentName",cdk.validateString)(properties.environmentName)),errors.collect(cdk.propertyValidator("fields",cdk.requiredValidator)(properties.fields)),errors.collect(cdk.propertyValidator("fields",cdk.hashValidator(CfnForm_FieldConfigPropertyValidator))(properties.fields)),errors.collect(cdk.propertyValidator("formActionType",cdk.requiredValidator)(properties.formActionType)),errors.collect(cdk.propertyValidator("formActionType",cdk.validateString)(properties.formActionType)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("schemaVersion",cdk.requiredValidator)(properties.schemaVersion)),errors.collect(cdk.propertyValidator("schemaVersion",cdk.validateString)(properties.schemaVersion)),errors.collect(cdk.propertyValidator("sectionalElements",cdk.requiredValidator)(properties.sectionalElements)),errors.collect(cdk.propertyValidator("sectionalElements",cdk.hashValidator(CfnForm_SectionalElementPropertyValidator))(properties.sectionalElements)),errors.collect(cdk.propertyValidator("style",cdk.requiredValidator)(properties.style)),errors.collect(cdk.propertyValidator("style",CfnForm_FormStylePropertyValidator)(properties.style)),errors.collect(cdk.propertyValidator("tags",cdk.hashValidator(cdk.validateString))(properties.tags)),errors.wrap('supplied properties not correct for "CfnFormProps"')}function cfnFormPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnFormPropsValidator(properties).assertSuccess(),{DataType:cfnFormFormDataTypeConfigPropertyToCloudFormation(properties.dataType),Fields:cdk.hashMapper(cfnFormFieldConfigPropertyToCloudFormation)(properties.fields),FormActionType:cdk.stringToCloudFormation(properties.formActionType),Name:cdk.stringToCloudFormation(properties.name),SchemaVersion:cdk.stringToCloudFormation(properties.schemaVersion),SectionalElements:cdk.hashMapper(cfnFormSectionalElementPropertyToCloudFormation)(properties.sectionalElements),Style:cfnFormFormStylePropertyToCloudFormation(properties.style),AppId:cdk.stringToCloudFormation(properties.appId),Cta:cfnFormFormCTAPropertyToCloudFormation(properties.cta),EnvironmentName:cdk.stringToCloudFormation(properties.environmentName),Tags:cdk.hashMapper(cdk.stringToCloudFormation)(properties.tags)}):properties}function CfnFormPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyOb