UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 40.4 kB
"use strict";var _a,_b,_c,_d;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnSolution=exports.CfnSchema=exports.CfnDatasetGroup=exports.CfnDataset=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 CfnDatasetPropsValidator(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("datasetGroupArn",cdk.requiredValidator)(properties.datasetGroupArn)),errors.collect(cdk.propertyValidator("datasetGroupArn",cdk.validateString)(properties.datasetGroupArn)),errors.collect(cdk.propertyValidator("datasetImportJob",CfnDataset_DatasetImportJobPropertyValidator)(properties.datasetImportJob)),errors.collect(cdk.propertyValidator("datasetType",cdk.requiredValidator)(properties.datasetType)),errors.collect(cdk.propertyValidator("datasetType",cdk.validateString)(properties.datasetType)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("schemaArn",cdk.requiredValidator)(properties.schemaArn)),errors.collect(cdk.propertyValidator("schemaArn",cdk.validateString)(properties.schemaArn)),errors.wrap('supplied properties not correct for "CfnDatasetProps"')}function cfnDatasetPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDatasetPropsValidator(properties).assertSuccess(),{DatasetGroupArn:cdk.stringToCloudFormation(properties.datasetGroupArn),DatasetType:cdk.stringToCloudFormation(properties.datasetType),Name:cdk.stringToCloudFormation(properties.name),SchemaArn:cdk.stringToCloudFormation(properties.schemaArn),DatasetImportJob:cfnDatasetDatasetImportJobPropertyToCloudFormation(properties.datasetImportJob)}):properties}function CfnDatasetPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("datasetGroupArn","DatasetGroupArn",cfn_parse.FromCloudFormation.getString(properties.DatasetGroupArn)),ret.addPropertyResult("datasetType","DatasetType",cfn_parse.FromCloudFormation.getString(properties.DatasetType)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("schemaArn","SchemaArn",cfn_parse.FromCloudFormation.getString(properties.SchemaArn)),ret.addPropertyResult("datasetImportJob","DatasetImportJob",properties.DatasetImportJob!=null?CfnDatasetDatasetImportJobPropertyFromCloudFormation(properties.DatasetImportJob):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDataset extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnDataset.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_personalize_CfnDatasetProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDataset),error}cdk.requireProperty(props,"datasetGroupArn",this),cdk.requireProperty(props,"datasetType",this),cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"schemaArn",this),this.attrDatasetArn=cdk.Token.asString(this.getAtt("DatasetArn",cdk.ResolutionTypeHint.STRING)),this.datasetGroupArn=props.datasetGroupArn,this.datasetType=props.datasetType,this.name=props.name,this.schemaArn=props.schemaArn,this.datasetImportJob=props.datasetImportJob}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDatasetPropsFromCloudFormation(resourceProperties),ret=new CfnDataset(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",CfnDataset.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{datasetGroupArn:this.datasetGroupArn,datasetType:this.datasetType,name:this.name,schemaArn:this.schemaArn,datasetImportJob:this.datasetImportJob}}renderProperties(props){return cfnDatasetPropsToCloudFormation(props)}}exports.CfnDataset=CfnDataset,_a=JSII_RTTI_SYMBOL_1,CfnDataset[_a]={fqn:"aws-cdk-lib.aws_personalize.CfnDataset",version:"2.70.0"},CfnDataset.CFN_RESOURCE_TYPE_NAME="AWS::Personalize::Dataset";function CfnDataset_DataSourcePropertyValidator(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("dataLocation",cdk.validateString)(properties.dataLocation)),errors.wrap('supplied properties not correct for "DataSourceProperty"')}function cfnDatasetDataSourcePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDataset_DataSourcePropertyValidator(properties).assertSuccess(),{DataLocation:cdk.stringToCloudFormation(properties.dataLocation)}):properties}function CfnDatasetDataSourcePropertyFromCloudFormation(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("dataLocation","DataLocation",properties.DataLocation!=null?cfn_parse.FromCloudFormation.getString(properties.DataLocation):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDataset_DatasetImportJobPropertyValidator(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("dataSource",cdk.validateObject)(properties.dataSource)),errors.collect(cdk.propertyValidator("datasetArn",cdk.validateString)(properties.datasetArn)),errors.collect(cdk.propertyValidator("datasetImportJobArn",cdk.validateString)(properties.datasetImportJobArn)),errors.collect(cdk.propertyValidator("jobName",cdk.validateString)(properties.jobName)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "DatasetImportJobProperty"')}function cfnDatasetDatasetImportJobPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDataset_DatasetImportJobPropertyValidator(properties).assertSuccess(),{DataSource:cdk.objectToCloudFormation(properties.dataSource),DatasetArn:cdk.stringToCloudFormation(properties.datasetArn),DatasetImportJobArn:cdk.stringToCloudFormation(properties.datasetImportJobArn),JobName:cdk.stringToCloudFormation(properties.jobName),RoleArn:cdk.stringToCloudFormation(properties.roleArn)}):properties}function CfnDatasetDatasetImportJobPropertyFromCloudFormation(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("dataSource","DataSource",properties.DataSource!=null?cfn_parse.FromCloudFormation.getAny(properties.DataSource):void 0),ret.addPropertyResult("datasetArn","DatasetArn",properties.DatasetArn!=null?cfn_parse.FromCloudFormation.getString(properties.DatasetArn):void 0),ret.addPropertyResult("datasetImportJobArn","DatasetImportJobArn",properties.DatasetImportJobArn!=null?cfn_parse.FromCloudFormation.getString(properties.DatasetImportJobArn):void 0),ret.addPropertyResult("jobName","JobName",properties.JobName!=null?cfn_parse.FromCloudFormation.getString(properties.JobName):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse.FromCloudFormation.getString(properties.RoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDatasetGroupPropsValidator(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("domain",cdk.validateString)(properties.domain)),errors.collect(cdk.propertyValidator("kmsKeyArn",cdk.validateString)(properties.kmsKeyArn)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "CfnDatasetGroupProps"')}function cfnDatasetGroupPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDatasetGroupPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Domain:cdk.stringToCloudFormation(properties.domain),KmsKeyArn:cdk.stringToCloudFormation(properties.kmsKeyArn),RoleArn:cdk.stringToCloudFormation(properties.roleArn)}):properties}function CfnDatasetGroupPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("domain","Domain",properties.Domain!=null?cfn_parse.FromCloudFormation.getString(properties.Domain):void 0),ret.addPropertyResult("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse.FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse.FromCloudFormation.getString(properties.RoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDatasetGroup extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnDatasetGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_personalize_CfnDatasetGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDatasetGroup),error}cdk.requireProperty(props,"name",this),this.attrDatasetGroupArn=cdk.Token.asString(this.getAtt("DatasetGroupArn",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.domain=props.domain,this.kmsKeyArn=props.kmsKeyArn,this.roleArn=props.roleArn}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDatasetGroupPropsFromCloudFormation(resourceProperties),ret=new CfnDatasetGroup(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",CfnDatasetGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,domain:this.domain,kmsKeyArn:this.kmsKeyArn,roleArn:this.roleArn}}renderProperties(props){return cfnDatasetGroupPropsToCloudFormation(props)}}exports.CfnDatasetGroup=CfnDatasetGroup,_b=JSII_RTTI_SYMBOL_1,CfnDatasetGroup[_b]={fqn:"aws-cdk-lib.aws_personalize.CfnDatasetGroup",version:"2.70.0"},CfnDatasetGroup.CFN_RESOURCE_TYPE_NAME="AWS::Personalize::DatasetGroup";function CfnSchemaPropsValidator(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("domain",cdk.validateString)(properties.domain)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("schema",cdk.requiredValidator)(properties.schema)),errors.collect(cdk.propertyValidator("schema",cdk.validateString)(properties.schema)),errors.wrap('supplied properties not correct for "CfnSchemaProps"')}function cfnSchemaPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchemaPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Schema:cdk.stringToCloudFormation(properties.schema),Domain:cdk.stringToCloudFormation(properties.domain)}):properties}function CfnSchemaPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("schema","Schema",cfn_parse.FromCloudFormation.getString(properties.Schema)),ret.addPropertyResult("domain","Domain",properties.Domain!=null?cfn_parse.FromCloudFormation.getString(properties.Domain):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSchema extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnSchema.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_personalize_CfnSchemaProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSchema),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"schema",this),this.attrSchemaArn=cdk.Token.asString(this.getAtt("SchemaArn",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.schema=props.schema,this.domain=props.domain}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSchemaPropsFromCloudFormation(resourceProperties),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}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)}get cfnProperties(){return{name:this.name,schema:this.schema,domain:this.domain}}renderProperties(props){return cfnSchemaPropsToCloudFormation(props)}}exports.CfnSchema=CfnSchema,_c=JSII_RTTI_SYMBOL_1,CfnSchema[_c]={fqn:"aws-cdk-lib.aws_personalize.CfnSchema",version:"2.70.0"},CfnSchema.CFN_RESOURCE_TYPE_NAME="AWS::Personalize::Schema";function CfnSolutionPropsValidator(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("datasetGroupArn",cdk.requiredValidator)(properties.datasetGroupArn)),errors.collect(cdk.propertyValidator("datasetGroupArn",cdk.validateString)(properties.datasetGroupArn)),errors.collect(cdk.propertyValidator("eventType",cdk.validateString)(properties.eventType)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("performAutoMl",cdk.validateBoolean)(properties.performAutoMl)),errors.collect(cdk.propertyValidator("performHpo",cdk.validateBoolean)(properties.performHpo)),errors.collect(cdk.propertyValidator("recipeArn",cdk.validateString)(properties.recipeArn)),errors.collect(cdk.propertyValidator("solutionConfig",CfnSolution_SolutionConfigPropertyValidator)(properties.solutionConfig)),errors.wrap('supplied properties not correct for "CfnSolutionProps"')}function cfnSolutionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolutionPropsValidator(properties).assertSuccess(),{DatasetGroupArn:cdk.stringToCloudFormation(properties.datasetGroupArn),Name:cdk.stringToCloudFormation(properties.name),EventType:cdk.stringToCloudFormation(properties.eventType),PerformAutoML:cdk.booleanToCloudFormation(properties.performAutoMl),PerformHPO:cdk.booleanToCloudFormation(properties.performHpo),RecipeArn:cdk.stringToCloudFormation(properties.recipeArn),SolutionConfig:cfnSolutionSolutionConfigPropertyToCloudFormation(properties.solutionConfig)}):properties}function CfnSolutionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("datasetGroupArn","DatasetGroupArn",cfn_parse.FromCloudFormation.getString(properties.DatasetGroupArn)),ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("eventType","EventType",properties.EventType!=null?cfn_parse.FromCloudFormation.getString(properties.EventType):void 0),ret.addPropertyResult("performAutoMl","PerformAutoML",properties.PerformAutoML!=null?cfn_parse.FromCloudFormation.getBoolean(properties.PerformAutoML):void 0),ret.addPropertyResult("performHpo","PerformHPO",properties.PerformHPO!=null?cfn_parse.FromCloudFormation.getBoolean(properties.PerformHPO):void 0),ret.addPropertyResult("recipeArn","RecipeArn",properties.RecipeArn!=null?cfn_parse.FromCloudFormation.getString(properties.RecipeArn):void 0),ret.addPropertyResult("solutionConfig","SolutionConfig",properties.SolutionConfig!=null?CfnSolutionSolutionConfigPropertyFromCloudFormation(properties.SolutionConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSolution extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnSolution.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_personalize_CfnSolutionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSolution),error}cdk.requireProperty(props,"datasetGroupArn",this),cdk.requireProperty(props,"name",this),this.attrSolutionArn=cdk.Token.asString(this.getAtt("SolutionArn",cdk.ResolutionTypeHint.STRING)),this.datasetGroupArn=props.datasetGroupArn,this.name=props.name,this.eventType=props.eventType,this.performAutoMl=props.performAutoMl,this.performHpo=props.performHpo,this.recipeArn=props.recipeArn,this.solutionConfig=props.solutionConfig}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSolutionPropsFromCloudFormation(resourceProperties),ret=new CfnSolution(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",CfnSolution.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{datasetGroupArn:this.datasetGroupArn,name:this.name,eventType:this.eventType,performAutoMl:this.performAutoMl,performHpo:this.performHpo,recipeArn:this.recipeArn,solutionConfig:this.solutionConfig}}renderProperties(props){return cfnSolutionPropsToCloudFormation(props)}}exports.CfnSolution=CfnSolution,_d=JSII_RTTI_SYMBOL_1,CfnSolution[_d]={fqn:"aws-cdk-lib.aws_personalize.CfnSolution",version:"2.70.0"},CfnSolution.CFN_RESOURCE_TYPE_NAME="AWS::Personalize::Solution";function CfnSolution_AlgorithmHyperParameterRangesPropertyValidator(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("categoricalHyperParameterRanges",cdk.listValidator(CfnSolution_CategoricalHyperParameterRangePropertyValidator))(properties.categoricalHyperParameterRanges)),errors.collect(cdk.propertyValidator("continuousHyperParameterRanges",cdk.listValidator(CfnSolution_ContinuousHyperParameterRangePropertyValidator))(properties.continuousHyperParameterRanges)),errors.collect(cdk.propertyValidator("integerHyperParameterRanges",cdk.listValidator(CfnSolution_IntegerHyperParameterRangePropertyValidator))(properties.integerHyperParameterRanges)),errors.wrap('supplied properties not correct for "AlgorithmHyperParameterRangesProperty"')}function cfnSolutionAlgorithmHyperParameterRangesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolution_AlgorithmHyperParameterRangesPropertyValidator(properties).assertSuccess(),{CategoricalHyperParameterRanges:cdk.listMapper(cfnSolutionCategoricalHyperParameterRangePropertyToCloudFormation)(properties.categoricalHyperParameterRanges),ContinuousHyperParameterRanges:cdk.listMapper(cfnSolutionContinuousHyperParameterRangePropertyToCloudFormation)(properties.continuousHyperParameterRanges),IntegerHyperParameterRanges:cdk.listMapper(cfnSolutionIntegerHyperParameterRangePropertyToCloudFormation)(properties.integerHyperParameterRanges)}):properties}function CfnSolutionAlgorithmHyperParameterRangesPropertyFromCloudFormation(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("categoricalHyperParameterRanges","CategoricalHyperParameterRanges",properties.CategoricalHyperParameterRanges!=null?cfn_parse.FromCloudFormation.getArray(CfnSolutionCategoricalHyperParameterRangePropertyFromCloudFormation)(properties.CategoricalHyperParameterRanges):void 0),ret.addPropertyResult("continuousHyperParameterRanges","ContinuousHyperParameterRanges",properties.ContinuousHyperParameterRanges!=null?cfn_parse.FromCloudFormation.getArray(CfnSolutionContinuousHyperParameterRangePropertyFromCloudFormation)(properties.ContinuousHyperParameterRanges):void 0),ret.addPropertyResult("integerHyperParameterRanges","IntegerHyperParameterRanges",properties.IntegerHyperParameterRanges!=null?cfn_parse.FromCloudFormation.getArray(CfnSolutionIntegerHyperParameterRangePropertyFromCloudFormation)(properties.IntegerHyperParameterRanges):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSolution_AutoMLConfigPropertyValidator(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("metricName",cdk.validateString)(properties.metricName)),errors.collect(cdk.propertyValidator("recipeList",cdk.listValidator(cdk.validateString))(properties.recipeList)),errors.wrap('supplied properties not correct for "AutoMLConfigProperty"')}function cfnSolutionAutoMLConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolution_AutoMLConfigPropertyValidator(properties).assertSuccess(),{MetricName:cdk.stringToCloudFormation(properties.metricName),RecipeList:cdk.listMapper(cdk.stringToCloudFormation)(properties.recipeList)}):properties}function CfnSolutionAutoMLConfigPropertyFromCloudFormation(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("metricName","MetricName",properties.MetricName!=null?cfn_parse.FromCloudFormation.getString(properties.MetricName):void 0),ret.addPropertyResult("recipeList","RecipeList",properties.RecipeList!=null?cfn_parse.FromCloudFormation.getStringArray(properties.RecipeList):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSolution_CategoricalHyperParameterRangePropertyValidator(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("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("values",cdk.listValidator(cdk.validateString))(properties.values)),errors.wrap('supplied properties not correct for "CategoricalHyperParameterRangeProperty"')}function cfnSolutionCategoricalHyperParameterRangePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolution_CategoricalHyperParameterRangePropertyValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Values:cdk.listMapper(cdk.stringToCloudFormation)(properties.values)}):properties}function CfnSolutionCategoricalHyperParameterRangePropertyFromCloudFormation(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("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("values","Values",properties.Values!=null?cfn_parse.FromCloudFormation.getStringArray(properties.Values):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSolution_ContinuousHyperParameterRangePropertyValidator(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("maxValue",cdk.validateNumber)(properties.maxValue)),errors.collect(cdk.propertyValidator("minValue",cdk.validateNumber)(properties.minValue)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.wrap('supplied properties not correct for "ContinuousHyperParameterRangeProperty"')}function cfnSolutionContinuousHyperParameterRangePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolution_ContinuousHyperParameterRangePropertyValidator(properties).assertSuccess(),{MaxValue:cdk.numberToCloudFormation(properties.maxValue),MinValue:cdk.numberToCloudFormation(properties.minValue),Name:cdk.stringToCloudFormation(properties.name)}):properties}function CfnSolutionContinuousHyperParameterRangePropertyFromCloudFormation(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("maxValue","MaxValue",properties.MaxValue!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxValue):void 0),ret.addPropertyResult("minValue","MinValue",properties.MinValue!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinValue):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSolution_HpoConfigPropertyValidator(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("algorithmHyperParameterRanges",CfnSolution_AlgorithmHyperParameterRangesPropertyValidator)(properties.algorithmHyperParameterRanges)),errors.collect(cdk.propertyValidator("hpoObjective",CfnSolution_HpoObjectivePropertyValidator)(properties.hpoObjective)),errors.collect(cdk.propertyValidator("hpoResourceConfig",CfnSolution_HpoResourceConfigPropertyValidator)(properties.hpoResourceConfig)),errors.wrap('supplied properties not correct for "HpoConfigProperty"')}function cfnSolutionHpoConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolution_HpoConfigPropertyValidator(properties).assertSuccess(),{AlgorithmHyperParameterRanges:cfnSolutionAlgorithmHyperParameterRangesPropertyToCloudFormation(properties.algorithmHyperParameterRanges),HpoObjective:cfnSolutionHpoObjectivePropertyToCloudFormation(properties.hpoObjective),HpoResourceConfig:cfnSolutionHpoResourceConfigPropertyToCloudFormation(properties.hpoResourceConfig)}):properties}function CfnSolutionHpoConfigPropertyFromCloudFormation(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("algorithmHyperParameterRanges","AlgorithmHyperParameterRanges",properties.AlgorithmHyperParameterRanges!=null?CfnSolutionAlgorithmHyperParameterRangesPropertyFromCloudFormation(properties.AlgorithmHyperParameterRanges):void 0),ret.addPropertyResult("hpoObjective","HpoObjective",properties.HpoObjective!=null?CfnSolutionHpoObjectivePropertyFromCloudFormation(properties.HpoObjective):void 0),ret.addPropertyResult("hpoResourceConfig","HpoResourceConfig",properties.HpoResourceConfig!=null?CfnSolutionHpoResourceConfigPropertyFromCloudFormation(properties.HpoResourceConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSolution_HpoObjectivePropertyValidator(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("metricName",cdk.validateString)(properties.metricName)),errors.collect(cdk.propertyValidator("metricRegex",cdk.validateString)(properties.metricRegex)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "HpoObjectiveProperty"')}function cfnSolutionHpoObjectivePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolution_HpoObjectivePropertyValidator(properties).assertSuccess(),{MetricName:cdk.stringToCloudFormation(properties.metricName),MetricRegex:cdk.stringToCloudFormation(properties.metricRegex),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnSolutionHpoObjectivePropertyFromCloudFormation(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("metricName","MetricName",properties.MetricName!=null?cfn_parse.FromCloudFormation.getString(properties.MetricName):void 0),ret.addPropertyResult("metricRegex","MetricRegex",properties.MetricRegex!=null?cfn_parse.FromCloudFormation.getString(properties.MetricRegex):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSolution_HpoResourceConfigPropertyValidator(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("maxNumberOfTrainingJobs",cdk.validateString)(properties.maxNumberOfTrainingJobs)),errors.collect(cdk.propertyValidator("maxParallelTrainingJobs",cdk.validateString)(properties.maxParallelTrainingJobs)),errors.wrap('supplied properties not correct for "HpoResourceConfigProperty"')}function cfnSolutionHpoResourceConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolution_HpoResourceConfigPropertyValidator(properties).assertSuccess(),{MaxNumberOfTrainingJobs:cdk.stringToCloudFormation(properties.maxNumberOfTrainingJobs),MaxParallelTrainingJobs:cdk.stringToCloudFormation(properties.maxParallelTrainingJobs)}):properties}function CfnSolutionHpoResourceConfigPropertyFromCloudFormation(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("maxNumberOfTrainingJobs","MaxNumberOfTrainingJobs",properties.MaxNumberOfTrainingJobs!=null?cfn_parse.FromCloudFormation.getString(properties.MaxNumberOfTrainingJobs):void 0),ret.addPropertyResult("maxParallelTrainingJobs","MaxParallelTrainingJobs",properties.MaxParallelTrainingJobs!=null?cfn_parse.FromCloudFormation.getString(properties.MaxParallelTrainingJobs):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSolution_IntegerHyperParameterRangePropertyValidator(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("maxValue",cdk.validateNumber)(properties.maxValue)),errors.collect(cdk.propertyValidator("minValue",cdk.validateNumber)(properties.minValue)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.wrap('supplied properties not correct for "IntegerHyperParameterRangeProperty"')}function cfnSolutionIntegerHyperParameterRangePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolution_IntegerHyperParameterRangePropertyValidator(properties).assertSuccess(),{MaxValue:cdk.numberToCloudFormation(properties.maxValue),MinValue:cdk.numberToCloudFormation(properties.minValue),Name:cdk.stringToCloudFormation(properties.name)}):properties}function CfnSolutionIntegerHyperParameterRangePropertyFromCloudFormation(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("maxValue","MaxValue",properties.MaxValue!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaxValue):void 0),ret.addPropertyResult("minValue","MinValue",properties.MinValue!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinValue):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSolution_SolutionConfigPropertyValidator(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("algorithmHyperParameters",cdk.hashValidator(cdk.validateString))(properties.algorithmHyperParameters)),errors.collect(cdk.propertyValidator("autoMlConfig",cdk.validateObject)(properties.autoMlConfig)),errors.collect(cdk.propertyValidator("eventValueThreshold",cdk.validateString)(properties.eventValueThreshold)),errors.collect(cdk.propertyValidator("featureTransformationParameters",cdk.hashValidator(cdk.validateString))(properties.featureTransformationParameters)),errors.collect(cdk.propertyValidator("hpoConfig",cdk.validateObject)(properties.hpoConfig)),errors.wrap('supplied properties not correct for "SolutionConfigProperty"')}function cfnSolutionSolutionConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSolution_SolutionConfigPropertyValidator(properties).assertSuccess(),{AlgorithmHyperParameters:cdk.hashMapper(cdk.stringToCloudFormation)(properties.algorithmHyperParameters),AutoMLConfig:cdk.objectToCloudFormation(properties.autoMlConfig),EventValueThreshold:cdk.stringToCloudFormation(properties.eventValueThreshold),FeatureTransformationParameters:cdk.hashMapper(cdk.stringToCloudFormation)(properties.featureTransformationParameters),HpoConfig:cdk.objectToCloudFormation(properties.hpoConfig)}):properties}function CfnSolutionSolutionConfigPropertyFromCloudFormation(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("algorithmHyperParameters","AlgorithmHyperParameters",properties.AlgorithmHyperParameters!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.AlgorithmHyperParameters):void 0),ret.addPropertyResult("autoMlConfig","AutoMLConfig",properties.AutoMLConfig!=null?cfn_parse.FromCloudFormation.getAny(properties.AutoMLConfig):void 0),ret.addPropertyResult("eventValueThreshold","EventValueThreshold",properties.EventValueThreshold!=null?cfn_parse.FromCloudFormation.getString(properties.EventValueThreshold):void 0),ret.addPropertyResult("featureTransformationParameters","FeatureTransformationParameters",properties.FeatureTransformationParameters!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.FeatureTransformationParameters):void 0),ret.addPropertyResult("hpoConfig","HpoConfig",properties.HpoConfig!=null?cfn_parse.FromCloudFormation.getAny(properties.HpoConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}