"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnProject=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/cfn-parse");function CfnProjectPropsValidator(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("projectName",cdk.requiredValidator)(properties.projectName)),errors.collect(cdk.propertyValidator("projectName",cdk.validateString)(properties.projectName)),errors.wrap('supplied properties not correct for "CfnProjectProps"')}function cfnProjectPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnProjectPropsValidator(properties).assertSuccess(),{ProjectName:cdk.stringToCloudFormation(properties.projectName)}):properties}function CfnProjectPropsFromCloudFormation(properties){if(properties=properties==null?{}:properties,typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("projectName","ProjectName",cfn_parse.FromCloudFormation.getString(properties.ProjectName)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnProject extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnProject.CFN_RESOURCE_TYPE_NAME,properties:props});jsiiDeprecationWarnings.aws_cdk_lib_aws_lookoutvision_CfnProjectProps(props),cdk.requireProperty(props,"projectName",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn")),this.projectName=props.projectName}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnProjectPropsFromCloudFormation(resourceProperties),ret=new CfnProject(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){jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector),inspector.addAttribute("aws:cdk:cloudformation:type",CfnProject.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{projectName:this.projectName}}renderProperties(props){return cfnProjectPropsToCloudFormation(props)}}exports.CfnProject=CfnProject,_a=JSII_RTTI_SYMBOL_1,CfnProject[_a]={fqn:"aws-cdk-lib.aws_lookoutvision.CfnProject",version:"2.13.0"},CfnProject.CFN_RESOURCE_TYPE_NAME="AWS::LookoutVision::Project";
//# sourceMappingURL=lookoutvision.generated.js.map
