aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 23 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnPrivateGraphEndpoint=exports.CfnGraphSnapshot=exports.CfnGraph=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnGraph extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_neptunegraph.CfnGraph",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::NeptuneGraph::Graph";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnGraphPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnGraph(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}static isCfnGraph(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnGraph.CFN_RESOURCE_TYPE_NAME}static arnForGraph(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_neptunegraph_IGraphRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForGraph),error}return resource.graphRef.graphArn}cdkTagManager;_deletionProtection;_graphName;_kmsKeyIdentifier;_provisionedMemory;_publicConnectivity;_replicaCount;_tags;_vectorSearchConfiguration;constructor(scope,id,props){super(scope,id,{type:CfnGraph.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_neptunegraph_CfnGraphProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnGraph),error}cdk().requireProperty(props,"provisionedMemory",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::NeptuneGraph::Graph",void 0,{tagPropertyName:"tags"}),this._deletionProtection=props.deletionProtection,this._graphName=props.graphName,this._kmsKeyIdentifier=props.kmsKeyIdentifier,this._provisionedMemory=props.provisionedMemory,this._publicConnectivity=props.publicConnectivity,this._replicaCount=props.replicaCount,this._tags=props.tags,this._vectorSearchConfiguration=props.vectorSearchConfiguration}get graphRef(){return{graphId:this.ref,graphArn:this.attrGraphArn}}get deletionProtection(){return this._deletionProtection}set deletionProtection(value){cdk().traceProperty(this.node,"DeletionProtection"),this._deletionProtection=value}get graphName(){return this._graphName}set graphName(value){cdk().traceProperty(this.node,"GraphName"),this._graphName=value}get kmsKeyIdentifier(){return this._kmsKeyIdentifier}set kmsKeyIdentifier(value){cdk().traceProperty(this.node,"KmsKeyIdentifier"),this._kmsKeyIdentifier=value}get provisionedMemory(){return this._provisionedMemory}set provisionedMemory(value){cdk().traceProperty(this.node,"ProvisionedMemory"),this._provisionedMemory=value}get publicConnectivity(){return this._publicConnectivity}set publicConnectivity(value){cdk().traceProperty(this.node,"PublicConnectivity"),this._publicConnectivity=value}get replicaCount(){return this._replicaCount}set replicaCount(value){cdk().traceProperty(this.node,"ReplicaCount"),this._replicaCount=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get vectorSearchConfiguration(){return this._vectorSearchConfiguration}set vectorSearchConfiguration(value){cdk().traceProperty(this.node,"VectorSearchConfiguration"),this._vectorSearchConfiguration=value}get attrEndpoint(){return cdk().Token.asString(this.getAtt("Endpoint",cdk().ResolutionTypeHint.STRING))}get attrGraphArn(){return cdk().Token.asString(this.getAtt("GraphArn",cdk().ResolutionTypeHint.STRING))}get attrGraphId(){return cdk().Token.asString(this.getAtt("GraphId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),deletionProtection:this._deletionProtection,graphName:this._graphName,kmsKeyIdentifier:this._kmsKeyIdentifier,provisionedMemory:this._provisionedMemory,publicConnectivity:this._publicConnectivity,replicaCount:this._replicaCount,vectorSearchConfiguration:this._vectorSearchConfiguration}}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",CfnGraph.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnGraphPropsToCloudFormation(props)}}exports.CfnGraph=CfnGraph;function CfnGraphVectorSearchConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("vectorSearchDimension",cdk().requiredValidator)(properties.vectorSearchDimension)),errors.collect(cdk().propertyValidator("vectorSearchDimension",cdk().validateNumber)(properties.vectorSearchDimension)),errors.wrap('supplied properties not correct for "VectorSearchConfigurationProperty"')}function convertCfnGraphVectorSearchConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGraphVectorSearchConfigurationPropertyValidator(properties).assertSuccess(),{VectorSearchDimension:cdk().numberToCloudFormation(properties.vectorSearchDimension)}):properties}function CfnGraphVectorSearchConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("vectorSearchDimension","VectorSearchDimension",properties.VectorSearchDimension!=null?cfn_parse().FromCloudFormation.getNumber(properties.VectorSearchDimension):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnGraphPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("deletionProtection",cdk().validateBoolean)(properties.deletionProtection)),errors.collect(cdk().propertyValidator("graphName",cdk().validateString)(properties.graphName)),errors.collect(cdk().propertyValidator("kmsKeyIdentifier",cdk().validateString)(properties.kmsKeyIdentifier)),errors.collect(cdk().propertyValidator("provisionedMemory",cdk().requiredValidator)(properties.provisionedMemory)),errors.collect(cdk().propertyValidator("provisionedMemory",cdk().validateNumber)(properties.provisionedMemory)),errors.collect(cdk().propertyValidator("publicConnectivity",cdk().validateBoolean)(properties.publicConnectivity)),errors.collect(cdk().propertyValidator("replicaCount",cdk().validateNumber)(properties.replicaCount)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("vectorSearchConfiguration",CfnGraphVectorSearchConfigurationPropertyValidator)(properties.vectorSearchConfiguration)),errors.wrap('supplied properties not correct for "CfnGraphProps"')}function convertCfnGraphPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGraphPropsValidator(properties).assertSuccess(),{DeletionProtection:cdk().booleanToCloudFormation(properties.deletionProtection),GraphName:cdk().stringToCloudFormation(properties.graphName),KmsKeyIdentifier:cdk().stringToCloudFormation(properties.kmsKeyIdentifier),ProvisionedMemory:cdk().numberToCloudFormation(properties.provisionedMemory),PublicConnectivity:cdk().booleanToCloudFormation(properties.publicConnectivity),ReplicaCount:cdk().numberToCloudFormation(properties.replicaCount),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),VectorSearchConfiguration:convertCfnGraphVectorSearchConfigurationPropertyToCloudFormation(properties.vectorSearchConfiguration)}):properties}function CfnGraphPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("deletionProtection","DeletionProtection",properties.DeletionProtection!=null?cfn_parse().FromCloudFormation.getBoolean(properties.DeletionProtection):void 0),ret.addPropertyResult("graphName","GraphName",properties.GraphName!=null?cfn_parse().FromCloudFormation.getString(properties.GraphName):void 0),ret.addPropertyResult("kmsKeyIdentifier","KmsKeyIdentifier",properties.KmsKeyIdentifier!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyIdentifier):void 0),ret.addPropertyResult("provisionedMemory","ProvisionedMemory",properties.ProvisionedMemory!=null?cfn_parse().FromCloudFormation.getNumber(properties.ProvisionedMemory):void 0),ret.addPropertyResult("publicConnectivity","PublicConnectivity",properties.PublicConnectivity!=null?cfn_parse().FromCloudFormation.getBoolean(properties.PublicConnectivity):void 0),ret.addPropertyResult("replicaCount","ReplicaCount",properties.ReplicaCount!=null?cfn_parse().FromCloudFormation.getNumber(properties.ReplicaCount):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("vectorSearchConfiguration","VectorSearchConfiguration",properties.VectorSearchConfiguration!=null?CfnGraphVectorSearchConfigurationPropertyFromCloudFormation(properties.VectorSearchConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnGraphSnapshot extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_neptunegraph.CfnGraphSnapshot",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::NeptuneGraph::GraphSnapshot";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnGraphSnapshotPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnGraphSnapshot(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}static isCfnGraphSnapshot(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnGraphSnapshot.CFN_RESOURCE_TYPE_NAME}static arnForGraphSnapshot(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_neptunegraph_IGraphSnapshotRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForGraphSnapshot),error}return resource.graphSnapshotRef.graphSnapshotArn}cdkTagManager;_graphIdentifier;_snapshotName;_tags;constructor(scope,id,props){super(scope,id,{type:CfnGraphSnapshot.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_neptunegraph_CfnGraphSnapshotProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnGraphSnapshot),error}cdk().requireProperty(props,"snapshotName",this),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::NeptuneGraph::GraphSnapshot",void 0,{tagPropertyName:"tags"}),this._graphIdentifier=props.graphIdentifier,this._snapshotName=props.snapshotName,this._tags=props.tags}get graphSnapshotRef(){return{graphSnapshotArn:this.ref}}get graphIdentifier(){return this._graphIdentifier}set graphIdentifier(value){cdk().traceProperty(this.node,"GraphIdentifier"),this._graphIdentifier=value}get snapshotName(){return this._snapshotName}set snapshotName(value){cdk().traceProperty(this.node,"SnapshotName"),this._snapshotName=value}get tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get attrKmsKeyIdentifier(){return cdk().Token.asString(this.getAtt("KmsKeyIdentifier",cdk().ResolutionTypeHint.STRING))}get attrSnapshotCreateTime(){return cdk().Token.asString(this.getAtt("SnapshotCreateTime",cdk().ResolutionTypeHint.STRING))}get attrStatus(){return cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this._tags),graphIdentifier:this._graphIdentifier,snapshotName:this._snapshotName}}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",CfnGraphSnapshot.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnGraphSnapshotPropsToCloudFormation(props)}}exports.CfnGraphSnapshot=CfnGraphSnapshot;function CfnGraphSnapshotPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("graphIdentifier",cdk().validateString)(properties.graphIdentifier)),errors.collect(cdk().propertyValidator("snapshotName",cdk().requiredValidator)(properties.snapshotName)),errors.collect(cdk().propertyValidator("snapshotName",cdk().validateString)(properties.snapshotName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnGraphSnapshotProps"')}function convertCfnGraphSnapshotPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnGraphSnapshotPropsValidator(properties).assertSuccess(),{GraphIdentifier:cdk().stringToCloudFormation(properties.graphIdentifier),SnapshotName:cdk().stringToCloudFormation(properties.snapshotName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnGraphSnapshotPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("graphIdentifier","GraphIdentifier",properties.GraphIdentifier!=null?cfn_parse().FromCloudFormation.getString(properties.GraphIdentifier):void 0),ret.addPropertyResult("snapshotName","SnapshotName",properties.SnapshotName!=null?cfn_parse().FromCloudFormation.getString(properties.SnapshotName):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 CfnPrivateGraphEndpoint extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_neptunegraph.CfnPrivateGraphEndpoint",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::NeptuneGraph::PrivateGraphEndpoint";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPrivateGraphEndpointPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnPrivateGraphEndpoint(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}static isCfnPrivateGraphEndpoint(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnPrivateGraphEndpoint.CFN_RESOURCE_TYPE_NAME}_graphIdentifier;_securityGroupIds;_subnetIds;_vpcId;constructor(scope,id,props){super(scope,id,{type:CfnPrivateGraphEndpoint.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_neptunegraph_CfnPrivateGraphEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPrivateGraphEndpoint),error}cdk().requireProperty(props,"graphIdentifier",this),cdk().requireProperty(props,"vpcId",this),this._graphIdentifier=props.graphIdentifier,this._securityGroupIds=props.securityGroupIds,this._subnetIds=props.subnetIds,this._vpcId=props.vpcId}get privateGraphEndpointRef(){return{privateGraphEndpointIdentifier:this.ref}}get graphIdentifier(){return this._graphIdentifier}set graphIdentifier(value){cdk().traceProperty(this.node,"GraphIdentifier"),this._graphIdentifier=value}get securityGroupIds(){return this._securityGroupIds}set securityGroupIds(value){cdk().traceProperty(this.node,"SecurityGroupIds"),this._securityGroupIds=value}get subnetIds(){return this._subnetIds}set subnetIds(value){cdk().traceProperty(this.node,"SubnetIds"),this._subnetIds=value}get vpcId(){return this._vpcId}set vpcId(value){cdk().traceProperty(this.node,"VpcId"),this._vpcId=value}get attrPrivateGraphEndpointIdentifier(){return cdk().Token.asString(this.getAtt("PrivateGraphEndpointIdentifier",cdk().ResolutionTypeHint.STRING))}get attrVpcEndpointId(){return cdk().Token.asString(this.getAtt("VpcEndpointId",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{graphIdentifier:this._graphIdentifier,securityGroupIds:this._securityGroupIds,subnetIds:this._subnetIds,vpcId:this._vpcId}}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",CfnPrivateGraphEndpoint.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnPrivateGraphEndpointPropsToCloudFormation(props)}}exports.CfnPrivateGraphEndpoint=CfnPrivateGraphEndpoint;function CfnPrivateGraphEndpointPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("graphIdentifier",cdk().requiredValidator)(properties.graphIdentifier)),errors.collect(cdk().propertyValidator("graphIdentifier",cdk().validateString)(properties.graphIdentifier)),errors.collect(cdk().propertyValidator("securityGroupIds",cdk().listValidator(cdk().validateString))(properties.securityGroupIds)),errors.collect(cdk().propertyValidator("subnetIds",cdk().listValidator(cdk().validateString))(properties.subnetIds)),errors.collect(cdk().propertyValidator("vpcId",cdk().requiredValidator)(properties.vpcId)),errors.collect(cdk().propertyValidator("vpcId",cdk().validateString)(properties.vpcId)),errors.wrap('supplied properties not correct for "CfnPrivateGraphEndpointProps"')}function convertCfnPrivateGraphEndpointPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnPrivateGraphEndpointPropsValidator(properties).assertSuccess(),{GraphIdentifier:cdk().stringToCloudFormation(properties.graphIdentifier),SecurityGroupIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroupIds),SubnetIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.subnetIds),VpcId:cdk().stringToCloudFormation(properties.vpcId)}):properties}function CfnPrivateGraphEndpointPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("graphIdentifier","GraphIdentifier",properties.GraphIdentifier!=null?cfn_parse().FromCloudFormation.getString(properties.GraphIdentifier):void 0),ret.addPropertyResult("securityGroupIds","SecurityGroupIds",properties.SecurityGroupIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SecurityGroupIds):void 0),ret.addPropertyResult("subnetIds","SubnetIds",properties.SubnetIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SubnetIds):void 0),ret.addPropertyResult("vpcId","VpcId",properties.VpcId!=null?cfn_parse().FromCloudFormation.getString(properties.VpcId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}