UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 22.8 kB
"use strict";var _a,_b,_c,_d,_e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnVpcEndpoint=exports.CfnSecurityPolicy=exports.CfnSecurityConfig=exports.CfnCollection=exports.CfnAccessPolicy=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 CfnAccessPolicyPropsValidator(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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("policy",cdk.validateString)(properties.policy)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnAccessPolicyProps"')}function cfnAccessPolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnAccessPolicyPropsValidator(properties).assertSuccess(),{Description:cdk.stringToCloudFormation(properties.description),Name:cdk.stringToCloudFormation(properties.name),Policy:cdk.stringToCloudFormation(properties.policy),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnAccessPolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("policy","Policy",properties.Policy!=null?cfn_parse.FromCloudFormation.getString(properties.Policy):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAccessPolicy extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnAccessPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_opensearchserverless_CfnAccessPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAccessPolicy),error}this.description=props.description,this.name=props.name,this.policy=props.policy,this.type=props.type}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAccessPolicyPropsFromCloudFormation(resourceProperties),ret=new CfnAccessPolicy(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",CfnAccessPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{description:this.description,name:this.name,policy:this.policy,type:this.type}}renderProperties(props){return cfnAccessPolicyPropsToCloudFormation(props)}}exports.CfnAccessPolicy=CfnAccessPolicy,_a=JSII_RTTI_SYMBOL_1,CfnAccessPolicy[_a]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnAccessPolicy",version:"2.70.0"},CfnAccessPolicy.CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::AccessPolicy";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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnCollectionProps"')}function cfnCollectionPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnCollectionPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Description:cdk.stringToCloudFormation(properties.description),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),Type:cdk.stringToCloudFormation(properties.type)}):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("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):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_opensearchserverless_CfnCollectionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCollection),error}cdk.requireProperty(props,"name",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrCollectionEndpoint=cdk.Token.asString(this.getAtt("CollectionEndpoint",cdk.ResolutionTypeHint.STRING)),this.attrDashboardEndpoint=cdk.Token.asString(this.getAtt("DashboardEndpoint",cdk.ResolutionTypeHint.STRING)),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.description=props.description,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::OpenSearchServerless::Collection",props.tags,{tagPropertyName:"tags"}),this.type=props.type}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{name:this.name,description:this.description,tags:this.tags.renderTags(),type:this.type}}renderProperties(props){return cfnCollectionPropsToCloudFormation(props)}}exports.CfnCollection=CfnCollection,_b=JSII_RTTI_SYMBOL_1,CfnCollection[_b]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnCollection",version:"2.70.0"},CfnCollection.CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::Collection";function CfnSecurityConfigPropsValidator(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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("samlOptions",CfnSecurityConfig_SamlConfigOptionsPropertyValidator)(properties.samlOptions)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnSecurityConfigProps"')}function cfnSecurityConfigPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSecurityConfigPropsValidator(properties).assertSuccess(),{Description:cdk.stringToCloudFormation(properties.description),Name:cdk.stringToCloudFormation(properties.name),SamlOptions:cfnSecurityConfigSamlConfigOptionsPropertyToCloudFormation(properties.samlOptions),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnSecurityConfigPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("samlOptions","SamlOptions",properties.SamlOptions!=null?CfnSecurityConfigSamlConfigOptionsPropertyFromCloudFormation(properties.SamlOptions):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSecurityConfig extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnSecurityConfig.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_opensearchserverless_CfnSecurityConfigProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSecurityConfig),error}this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.description=props.description,this.name=props.name,this.samlOptions=props.samlOptions,this.type=props.type}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSecurityConfigPropsFromCloudFormation(resourceProperties),ret=new CfnSecurityConfig(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",CfnSecurityConfig.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{description:this.description,name:this.name,samlOptions:this.samlOptions,type:this.type}}renderProperties(props){return cfnSecurityConfigPropsToCloudFormation(props)}}exports.CfnSecurityConfig=CfnSecurityConfig,_c=JSII_RTTI_SYMBOL_1,CfnSecurityConfig[_c]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnSecurityConfig",version:"2.70.0"},CfnSecurityConfig.CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::SecurityConfig";function CfnSecurityConfig_SamlConfigOptionsPropertyValidator(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("groupAttribute",cdk.validateString)(properties.groupAttribute)),errors.collect(cdk.propertyValidator("metadata",cdk.requiredValidator)(properties.metadata)),errors.collect(cdk.propertyValidator("metadata",cdk.validateString)(properties.metadata)),errors.collect(cdk.propertyValidator("sessionTimeout",cdk.validateNumber)(properties.sessionTimeout)),errors.collect(cdk.propertyValidator("userAttribute",cdk.validateString)(properties.userAttribute)),errors.wrap('supplied properties not correct for "SamlConfigOptionsProperty"')}function cfnSecurityConfigSamlConfigOptionsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSecurityConfig_SamlConfigOptionsPropertyValidator(properties).assertSuccess(),{GroupAttribute:cdk.stringToCloudFormation(properties.groupAttribute),Metadata:cdk.stringToCloudFormation(properties.metadata),SessionTimeout:cdk.numberToCloudFormation(properties.sessionTimeout),UserAttribute:cdk.stringToCloudFormation(properties.userAttribute)}):properties}function CfnSecurityConfigSamlConfigOptionsPropertyFromCloudFormation(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("groupAttribute","GroupAttribute",properties.GroupAttribute!=null?cfn_parse.FromCloudFormation.getString(properties.GroupAttribute):void 0),ret.addPropertyResult("metadata","Metadata",cfn_parse.FromCloudFormation.getString(properties.Metadata)),ret.addPropertyResult("sessionTimeout","SessionTimeout",properties.SessionTimeout!=null?cfn_parse.FromCloudFormation.getNumber(properties.SessionTimeout):void 0),ret.addPropertyResult("userAttribute","UserAttribute",properties.UserAttribute!=null?cfn_parse.FromCloudFormation.getString(properties.UserAttribute):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSecurityPolicyPropsValidator(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("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("policy",cdk.requiredValidator)(properties.policy)),errors.collect(cdk.propertyValidator("policy",cdk.validateString)(properties.policy)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnSecurityPolicyProps"')}function cfnSecurityPolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSecurityPolicyPropsValidator(properties).assertSuccess(),{Policy:cdk.stringToCloudFormation(properties.policy),Description:cdk.stringToCloudFormation(properties.description),Name:cdk.stringToCloudFormation(properties.name),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnSecurityPolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("policy","Policy",cfn_parse.FromCloudFormation.getString(properties.Policy)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSecurityPolicy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnSecurityPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_opensearchserverless_CfnSecurityPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSecurityPolicy),error}cdk.requireProperty(props,"policy",this),this.policy=props.policy,this.description=props.description,this.name=props.name,this.type=props.type}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSecurityPolicyPropsFromCloudFormation(resourceProperties),ret=new CfnSecurityPolicy(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",CfnSecurityPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{policy:this.policy,description:this.description,name:this.name,type:this.type}}renderProperties(props){return cfnSecurityPolicyPropsToCloudFormation(props)}}exports.CfnSecurityPolicy=CfnSecurityPolicy,_d=JSII_RTTI_SYMBOL_1,CfnSecurityPolicy[_d]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnSecurityPolicy",version:"2.70.0"},CfnSecurityPolicy.CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::SecurityPolicy";function CfnVpcEndpointPropsValidator(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.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("securityGroupIds",cdk.listValidator(cdk.validateString))(properties.securityGroupIds)),errors.collect(cdk.propertyValidator("subnetIds",cdk.requiredValidator)(properties.subnetIds)),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 "CfnVpcEndpointProps"')}function cfnVpcEndpointPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnVpcEndpointPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),SubnetIds:cdk.listMapper(cdk.stringToCloudFormation)(properties.subnetIds),VpcId:cdk.stringToCloudFormation(properties.vpcId),SecurityGroupIds:cdk.listMapper(cdk.stringToCloudFormation)(properties.securityGroupIds)}):properties}function CfnVpcEndpointPropsFromCloudFormation(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("subnetIds","SubnetIds",cfn_parse.FromCloudFormation.getStringArray(properties.SubnetIds)),ret.addPropertyResult("vpcId","VpcId",cfn_parse.FromCloudFormation.getString(properties.VpcId)),ret.addPropertyResult("securityGroupIds","SecurityGroupIds",properties.SecurityGroupIds!=null?cfn_parse.FromCloudFormation.getStringArray(properties.SecurityGroupIds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnVpcEndpoint extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnVpcEndpoint.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_opensearchserverless_CfnVpcEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnVpcEndpoint),error}cdk.requireProperty(props,"name",this),cdk.requireProperty(props,"subnetIds",this),cdk.requireProperty(props,"vpcId",this),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.subnetIds=props.subnetIds,this.vpcId=props.vpcId,this.securityGroupIds=props.securityGroupIds}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnVpcEndpointPropsFromCloudFormation(resourceProperties),ret=new CfnVpcEndpoint(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",CfnVpcEndpoint.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,subnetIds:this.subnetIds,vpcId:this.vpcId,securityGroupIds:this.securityGroupIds}}renderProperties(props){return cfnVpcEndpointPropsToCloudFormation(props)}}exports.CfnVpcEndpoint=CfnVpcEndpoint,_e=JSII_RTTI_SYMBOL_1,CfnVpcEndpoint[_e]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnVpcEndpoint",version:"2.70.0"},CfnVpcEndpoint.CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::VpcEndpoint";