UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 28.9 kB
"use strict";var _a,_b,_c;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnStreamProcessor=exports.CfnProject=exports.CfnCollection=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 CfnCollectionPropsValidator(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("collectionId",cdk.requiredValidator)(properties.collectionId)),errors.collect(cdk.propertyValidator("collectionId",cdk.validateString)(properties.collectionId)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnCollectionProps"')}function cfnCollectionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCollectionPropsValidator(properties).assertSuccess(),{CollectionId:cdk.stringToCloudFormation(properties.collectionId),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnCollectionPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("collectionId","CollectionId",cfn_parse.FromCloudFormation.getString(properties.CollectionId)),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnCollection extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnCollection.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_rekognition_CfnCollectionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCollection),error}cdk.requireProperty(props,"collectionId",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.collectionId=props.collectionId,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Rekognition::Collection",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCollectionPropsFromCloudFormation(resourceProperties),ret=new CfnCollection(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",CfnCollection.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{collectionId:this.collectionId,tags:this.tags.renderTags()}}renderProperties(props){return cfnCollectionPropsToCloudFormation(props)}}exports.CfnCollection=CfnCollection,_a=JSII_RTTI_SYMBOL_1,CfnCollection[_a]={fqn:"aws-cdk-lib.aws_rekognition.CfnCollection",version:"2.70.0"},CfnCollection.CFN_RESOURCE_TYPE_NAME="AWS::Rekognition::Collection";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??{},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});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_rekognition_CfnProjectProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnProject),error}cdk.requireProperty(props,"projectName",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),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){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",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,_b=JSII_RTTI_SYMBOL_1,CfnProject[_b]={fqn:"aws-cdk-lib.aws_rekognition.CfnProject",version:"2.70.0"},CfnProject.CFN_RESOURCE_TYPE_NAME="AWS::Rekognition::Project";function CfnStreamProcessorPropsValidator(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("boundingBoxRegionsOfInterest",cdk.listValidator(CfnStreamProcessor_BoundingBoxPropertyValidator))(properties.boundingBoxRegionsOfInterest)),errors.collect(cdk.propertyValidator("connectedHomeSettings",CfnStreamProcessor_ConnectedHomeSettingsPropertyValidator)(properties.connectedHomeSettings)),errors.collect(cdk.propertyValidator("dataSharingPreference",CfnStreamProcessor_DataSharingPreferencePropertyValidator)(properties.dataSharingPreference)),errors.collect(cdk.propertyValidator("faceSearchSettings",CfnStreamProcessor_FaceSearchSettingsPropertyValidator)(properties.faceSearchSettings)),errors.collect(cdk.propertyValidator("kinesisDataStream",CfnStreamProcessor_KinesisDataStreamPropertyValidator)(properties.kinesisDataStream)),errors.collect(cdk.propertyValidator("kinesisVideoStream",cdk.requiredValidator)(properties.kinesisVideoStream)),errors.collect(cdk.propertyValidator("kinesisVideoStream",CfnStreamProcessor_KinesisVideoStreamPropertyValidator)(properties.kinesisVideoStream)),errors.collect(cdk.propertyValidator("kmsKeyId",cdk.validateString)(properties.kmsKeyId)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("notificationChannel",CfnStreamProcessor_NotificationChannelPropertyValidator)(properties.notificationChannel)),errors.collect(cdk.propertyValidator("polygonRegionsOfInterest",cdk.validateObject)(properties.polygonRegionsOfInterest)),errors.collect(cdk.propertyValidator("roleArn",cdk.requiredValidator)(properties.roleArn)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.collect(cdk.propertyValidator("s3Destination",CfnStreamProcessor_S3DestinationPropertyValidator)(properties.s3Destination)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnStreamProcessorProps"')}function cfnStreamProcessorPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamProcessorPropsValidator(properties).assertSuccess(),{KinesisVideoStream:cfnStreamProcessorKinesisVideoStreamPropertyToCloudFormation(properties.kinesisVideoStream),RoleArn:cdk.stringToCloudFormation(properties.roleArn),BoundingBoxRegionsOfInterest:cdk.listMapper(cfnStreamProcessorBoundingBoxPropertyToCloudFormation)(properties.boundingBoxRegionsOfInterest),ConnectedHomeSettings:cfnStreamProcessorConnectedHomeSettingsPropertyToCloudFormation(properties.connectedHomeSettings),DataSharingPreference:cfnStreamProcessorDataSharingPreferencePropertyToCloudFormation(properties.dataSharingPreference),FaceSearchSettings:cfnStreamProcessorFaceSearchSettingsPropertyToCloudFormation(properties.faceSearchSettings),KinesisDataStream:cfnStreamProcessorKinesisDataStreamPropertyToCloudFormation(properties.kinesisDataStream),KmsKeyId:cdk.stringToCloudFormation(properties.kmsKeyId),Name:cdk.stringToCloudFormation(properties.name),NotificationChannel:cfnStreamProcessorNotificationChannelPropertyToCloudFormation(properties.notificationChannel),PolygonRegionsOfInterest:cdk.objectToCloudFormation(properties.polygonRegionsOfInterest),S3Destination:cfnStreamProcessorS3DestinationPropertyToCloudFormation(properties.s3Destination),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnStreamProcessorPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("kinesisVideoStream","KinesisVideoStream",CfnStreamProcessorKinesisVideoStreamPropertyFromCloudFormation(properties.KinesisVideoStream)),ret.addPropertyResult("roleArn","RoleArn",cfn_parse.FromCloudFormation.getString(properties.RoleArn)),ret.addPropertyResult("boundingBoxRegionsOfInterest","BoundingBoxRegionsOfInterest",properties.BoundingBoxRegionsOfInterest!=null?cfn_parse.FromCloudFormation.getArray(CfnStreamProcessorBoundingBoxPropertyFromCloudFormation)(properties.BoundingBoxRegionsOfInterest):void 0),ret.addPropertyResult("connectedHomeSettings","ConnectedHomeSettings",properties.ConnectedHomeSettings!=null?CfnStreamProcessorConnectedHomeSettingsPropertyFromCloudFormation(properties.ConnectedHomeSettings):void 0),ret.addPropertyResult("dataSharingPreference","DataSharingPreference",properties.DataSharingPreference!=null?CfnStreamProcessorDataSharingPreferencePropertyFromCloudFormation(properties.DataSharingPreference):void 0),ret.addPropertyResult("faceSearchSettings","FaceSearchSettings",properties.FaceSearchSettings!=null?CfnStreamProcessorFaceSearchSettingsPropertyFromCloudFormation(properties.FaceSearchSettings):void 0),ret.addPropertyResult("kinesisDataStream","KinesisDataStream",properties.KinesisDataStream!=null?CfnStreamProcessorKinesisDataStreamPropertyFromCloudFormation(properties.KinesisDataStream):void 0),ret.addPropertyResult("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse.FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("notificationChannel","NotificationChannel",properties.NotificationChannel!=null?CfnStreamProcessorNotificationChannelPropertyFromCloudFormation(properties.NotificationChannel):void 0),ret.addPropertyResult("polygonRegionsOfInterest","PolygonRegionsOfInterest",properties.PolygonRegionsOfInterest!=null?cfn_parse.FromCloudFormation.getAny(properties.PolygonRegionsOfInterest):void 0),ret.addPropertyResult("s3Destination","S3Destination",properties.S3Destination!=null?CfnStreamProcessorS3DestinationPropertyFromCloudFormation(properties.S3Destination):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnStreamProcessor extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnStreamProcessor.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_rekognition_CfnStreamProcessorProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnStreamProcessor),error}cdk.requireProperty(props,"kinesisVideoStream",this),cdk.requireProperty(props,"roleArn",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrStatus=cdk.Token.asString(this.getAtt("Status",cdk.ResolutionTypeHint.STRING)),this.attrStatusMessage=cdk.Token.asString(this.getAtt("StatusMessage",cdk.ResolutionTypeHint.STRING)),this.kinesisVideoStream=props.kinesisVideoStream,this.roleArn=props.roleArn,this.boundingBoxRegionsOfInterest=props.boundingBoxRegionsOfInterest,this.connectedHomeSettings=props.connectedHomeSettings,this.dataSharingPreference=props.dataSharingPreference,this.faceSearchSettings=props.faceSearchSettings,this.kinesisDataStream=props.kinesisDataStream,this.kmsKeyId=props.kmsKeyId,this.name=props.name,this.notificationChannel=props.notificationChannel,this.polygonRegionsOfInterest=props.polygonRegionsOfInterest,this.s3Destination=props.s3Destination,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Rekognition::StreamProcessor",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStreamProcessorPropsFromCloudFormation(resourceProperties),ret=new CfnStreamProcessor(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",CfnStreamProcessor.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{kinesisVideoStream:this.kinesisVideoStream,roleArn:this.roleArn,boundingBoxRegionsOfInterest:this.boundingBoxRegionsOfInterest,connectedHomeSettings:this.connectedHomeSettings,dataSharingPreference:this.dataSharingPreference,faceSearchSettings:this.faceSearchSettings,kinesisDataStream:this.kinesisDataStream,kmsKeyId:this.kmsKeyId,name:this.name,notificationChannel:this.notificationChannel,polygonRegionsOfInterest:this.polygonRegionsOfInterest,s3Destination:this.s3Destination,tags:this.tags.renderTags()}}renderProperties(props){return cfnStreamProcessorPropsToCloudFormation(props)}}exports.CfnStreamProcessor=CfnStreamProcessor,_c=JSII_RTTI_SYMBOL_1,CfnStreamProcessor[_c]={fqn:"aws-cdk-lib.aws_rekognition.CfnStreamProcessor",version:"2.70.0"},CfnStreamProcessor.CFN_RESOURCE_TYPE_NAME="AWS::Rekognition::StreamProcessor";function CfnStreamProcessor_BoundingBoxPropertyValidator(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("height",cdk.requiredValidator)(properties.height)),errors.collect(cdk.propertyValidator("height",cdk.validateNumber)(properties.height)),errors.collect(cdk.propertyValidator("left",cdk.requiredValidator)(properties.left)),errors.collect(cdk.propertyValidator("left",cdk.validateNumber)(properties.left)),errors.collect(cdk.propertyValidator("top",cdk.requiredValidator)(properties.top)),errors.collect(cdk.propertyValidator("top",cdk.validateNumber)(properties.top)),errors.collect(cdk.propertyValidator("width",cdk.requiredValidator)(properties.width)),errors.collect(cdk.propertyValidator("width",cdk.validateNumber)(properties.width)),errors.wrap('supplied properties not correct for "BoundingBoxProperty"')}function cfnStreamProcessorBoundingBoxPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamProcessor_BoundingBoxPropertyValidator(properties).assertSuccess(),{Height:cdk.numberToCloudFormation(properties.height),Left:cdk.numberToCloudFormation(properties.left),Top:cdk.numberToCloudFormation(properties.top),Width:cdk.numberToCloudFormation(properties.width)}):properties}function CfnStreamProcessorBoundingBoxPropertyFromCloudFormation(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("height","Height",cfn_parse.FromCloudFormation.getNumber(properties.Height)),ret.addPropertyResult("left","Left",cfn_parse.FromCloudFormation.getNumber(properties.Left)),ret.addPropertyResult("top","Top",cfn_parse.FromCloudFormation.getNumber(properties.Top)),ret.addPropertyResult("width","Width",cfn_parse.FromCloudFormation.getNumber(properties.Width)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStreamProcessor_ConnectedHomeSettingsPropertyValidator(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("labels",cdk.requiredValidator)(properties.labels)),errors.collect(cdk.propertyValidator("labels",cdk.listValidator(cdk.validateString))(properties.labels)),errors.collect(cdk.propertyValidator("minConfidence",cdk.validateNumber)(properties.minConfidence)),errors.wrap('supplied properties not correct for "ConnectedHomeSettingsProperty"')}function cfnStreamProcessorConnectedHomeSettingsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamProcessor_ConnectedHomeSettingsPropertyValidator(properties).assertSuccess(),{Labels:cdk.listMapper(cdk.stringToCloudFormation)(properties.labels),MinConfidence:cdk.numberToCloudFormation(properties.minConfidence)}):properties}function CfnStreamProcessorConnectedHomeSettingsPropertyFromCloudFormation(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("labels","Labels",cfn_parse.FromCloudFormation.getStringArray(properties.Labels)),ret.addPropertyResult("minConfidence","MinConfidence",properties.MinConfidence!=null?cfn_parse.FromCloudFormation.getNumber(properties.MinConfidence):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStreamProcessor_DataSharingPreferencePropertyValidator(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("optIn",cdk.requiredValidator)(properties.optIn)),errors.collect(cdk.propertyValidator("optIn",cdk.validateBoolean)(properties.optIn)),errors.wrap('supplied properties not correct for "DataSharingPreferenceProperty"')}function cfnStreamProcessorDataSharingPreferencePropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamProcessor_DataSharingPreferencePropertyValidator(properties).assertSuccess(),{OptIn:cdk.booleanToCloudFormation(properties.optIn)}):properties}function CfnStreamProcessorDataSharingPreferencePropertyFromCloudFormation(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("optIn","OptIn",cfn_parse.FromCloudFormation.getBoolean(properties.OptIn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStreamProcessor_FaceSearchSettingsPropertyValidator(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("collectionId",cdk.requiredValidator)(properties.collectionId)),errors.collect(cdk.propertyValidator("collectionId",cdk.validateString)(properties.collectionId)),errors.collect(cdk.propertyValidator("faceMatchThreshold",cdk.validateNumber)(properties.faceMatchThreshold)),errors.wrap('supplied properties not correct for "FaceSearchSettingsProperty"')}function cfnStreamProcessorFaceSearchSettingsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamProcessor_FaceSearchSettingsPropertyValidator(properties).assertSuccess(),{CollectionId:cdk.stringToCloudFormation(properties.collectionId),FaceMatchThreshold:cdk.numberToCloudFormation(properties.faceMatchThreshold)}):properties}function CfnStreamProcessorFaceSearchSettingsPropertyFromCloudFormation(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("collectionId","CollectionId",cfn_parse.FromCloudFormation.getString(properties.CollectionId)),ret.addPropertyResult("faceMatchThreshold","FaceMatchThreshold",properties.FaceMatchThreshold!=null?cfn_parse.FromCloudFormation.getNumber(properties.FaceMatchThreshold):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStreamProcessor_KinesisDataStreamPropertyValidator(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("arn",cdk.requiredValidator)(properties.arn)),errors.collect(cdk.propertyValidator("arn",cdk.validateString)(properties.arn)),errors.wrap('supplied properties not correct for "KinesisDataStreamProperty"')}function cfnStreamProcessorKinesisDataStreamPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamProcessor_KinesisDataStreamPropertyValidator(properties).assertSuccess(),{Arn:cdk.stringToCloudFormation(properties.arn)}):properties}function CfnStreamProcessorKinesisDataStreamPropertyFromCloudFormation(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("arn","Arn",cfn_parse.FromCloudFormation.getString(properties.Arn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStreamProcessor_KinesisVideoStreamPropertyValidator(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("arn",cdk.requiredValidator)(properties.arn)),errors.collect(cdk.propertyValidator("arn",cdk.validateString)(properties.arn)),errors.wrap('supplied properties not correct for "KinesisVideoStreamProperty"')}function cfnStreamProcessorKinesisVideoStreamPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamProcessor_KinesisVideoStreamPropertyValidator(properties).assertSuccess(),{Arn:cdk.stringToCloudFormation(properties.arn)}):properties}function CfnStreamProcessorKinesisVideoStreamPropertyFromCloudFormation(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("arn","Arn",cfn_parse.FromCloudFormation.getString(properties.Arn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStreamProcessor_NotificationChannelPropertyValidator(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("arn",cdk.requiredValidator)(properties.arn)),errors.collect(cdk.propertyValidator("arn",cdk.validateString)(properties.arn)),errors.wrap('supplied properties not correct for "NotificationChannelProperty"')}function cfnStreamProcessorNotificationChannelPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamProcessor_NotificationChannelPropertyValidator(properties).assertSuccess(),{Arn:cdk.stringToCloudFormation(properties.arn)}):properties}function CfnStreamProcessorNotificationChannelPropertyFromCloudFormation(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("arn","Arn",cfn_parse.FromCloudFormation.getString(properties.Arn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStreamProcessor_S3DestinationPropertyValidator(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("bucketName",cdk.requiredValidator)(properties.bucketName)),errors.collect(cdk.propertyValidator("bucketName",cdk.validateString)(properties.bucketName)),errors.collect(cdk.propertyValidator("objectKeyPrefix",cdk.validateString)(properties.objectKeyPrefix)),errors.wrap('supplied properties not correct for "S3DestinationProperty"')}function cfnStreamProcessorS3DestinationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamProcessor_S3DestinationPropertyValidator(properties).assertSuccess(),{BucketName:cdk.stringToCloudFormation(properties.bucketName),ObjectKeyPrefix:cdk.stringToCloudFormation(properties.objectKeyPrefix)}):properties}function CfnStreamProcessorS3DestinationPropertyFromCloudFormation(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("bucketName","BucketName",cfn_parse.FromCloudFormation.getString(properties.BucketName)),ret.addPropertyResult("objectKeyPrefix","ObjectKeyPrefix",properties.ObjectKeyPrefix!=null?cfn_parse.FromCloudFormation.getString(properties.ObjectKeyPrefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}