Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-opensearchserverless/lib/opensearchserverless.generated.js
2026-05-06 18:55:16 -05:00

2 lines
80 KiB
JavaScript

"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnLifecyclePolicy=exports.CfnIndex=exports.CfnCollectionGroup=exports.CfnVpcEndpoint=exports.CfnSecurityPolicy=exports.CfnSecurityConfig=exports.CfnCollection=exports.CfnAccessPolicy=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 CfnAccessPolicy extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnAccessPolicy",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::AccessPolicy";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAccessPolicyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const 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}static isCfnAccessPolicy(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAccessPolicy.CFN_RESOURCE_TYPE_NAME}_description;_name;_policy;_type;cfnPropertyNames={description:"Description",name:"Name",policy:"Policy",type:"Type"};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}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"policy",this),cdk().requireProperty(props,"type",this),this._description=props.description,this._name=props.name,this._policy=props.policy,this._type=props.type}get accessPolicyRef(){return{type:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),accessPolicyName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get policy(){return this._policy}set policy(value){cdk().traceProperty(this.node,"Policy"),this._policy=value}get type(){return this._type}set type(value){cdk().traceProperty(this.node,"Type"),this._type=value}get cfnProperties(){return{description:this._description,name:this._name,policy:this._policy,type:this._type}}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAccessPolicyPropsToCloudFormation(props)}}exports.CfnAccessPolicy=CfnAccessPolicy;function CfnAccessPolicyPropsValidator(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("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("policy",cdk().requiredValidator)(properties.policy)),errors.collect(cdk().propertyValidator("policy",cdk().validateString)(properties.policy)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnAccessPolicyProps"')}function convertCfnAccessPolicyPropsToCloudFormation(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(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("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 CfnCollection extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnCollection",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::Collection";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCollectionPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const 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}static isCfnCollection(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnCollection.CFN_RESOURCE_TYPE_NAME}static fromCollectionArn(scope,id,arn){class Import extends cdk().Resource{collectionRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:aoss:${Region}:${Account}:collection/${CollectionId}").parse(arn2);this.collectionRef={collectionId:variables.CollectionId,collectionArn:arn2}}}return new Import(scope,id,arn)}static fromCollectionId(scope,id,collectionId){class Import extends cdk().Resource{collectionRef;constructor(scope2,id2,collectionId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:aoss:${Region}:${Account}:collection/${CollectionId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,CollectionId:collectionId2});super(scope2,id2,{environmentFromArn:arn}),this.collectionRef={collectionId:collectionId2,collectionArn:arn}}}return new Import(scope,id,collectionId)}static arnForCollection(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_opensearchserverless_ICollectionRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForCollection),error}return resource.collectionRef.collectionArn}_collectionGroupName;_description;_encryptionConfig;_name;_standbyReplicas;tags;_tagsRaw;_type;_vectorOptions;cfnPropertyNames={collectionGroupName:"CollectionGroupName",description:"Description",encryptionConfig:"EncryptionConfig",name:"Name",standbyReplicas:"StandbyReplicas",tags:"Tags",type:"Type",vectorOptions:"VectorOptions"};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._collectionGroupName=props.collectionGroupName,this._description=props.description,this._encryptionConfig=props.encryptionConfig,this._name=props.name,this._standbyReplicas=props.standbyReplicas,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::OpenSearchServerless::Collection",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags,this._type=props.type,this._vectorOptions=props.vectorOptions}get collectionRef(){return{collectionId:this.ref,collectionArn:this.attrArn}}get collectionGroupName(){return this._collectionGroupName}set collectionGroupName(value){cdk().traceProperty(this.node,"CollectionGroupName"),this._collectionGroupName=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get encryptionConfig(){return this._encryptionConfig}set encryptionConfig(value){cdk().traceProperty(this.node,"EncryptionConfig"),this._encryptionConfig=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get standbyReplicas(){return this._standbyReplicas}set standbyReplicas(value){cdk().traceProperty(this.node,"StandbyReplicas"),this._standbyReplicas=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get type(){return this._type}set type(value){cdk().traceProperty(this.node,"Type"),this._type=value}get vectorOptions(){return this._vectorOptions}set vectorOptions(value){cdk().traceProperty(this.node,"VectorOptions"),this._vectorOptions=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrCollectionEndpoint(){return cdk().Token.asString(this.getAtt("CollectionEndpoint",cdk().ResolutionTypeHint.STRING))}get attrDashboardEndpoint(){return cdk().Token.asString(this.getAtt("DashboardEndpoint",cdk().ResolutionTypeHint.STRING))}get attrFipsEndpoints(){return this.getAtt("FipsEndpoints")}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get attrKmsKeyArn(){return cdk().Token.asString(this.getAtt("KmsKeyArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{collectionGroupName:this._collectionGroupName,description:this._description,encryptionConfig:this._encryptionConfig,name:this._name,standbyReplicas:this._standbyReplicas,tags:this.tags.renderTags(),type:this._type,vectorOptions:this._vectorOptions}}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCollectionPropsToCloudFormation(props)}}exports.CfnCollection=CfnCollection;function CfnCollectionEncryptionConfigPropertyValidator(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("awsOwnedKey",cdk().validateBoolean)(properties.awsOwnedKey)),errors.collect(cdk().propertyValidator("kmsKeyArn",cdk().validateString)(properties.kmsKeyArn)),errors.wrap('supplied properties not correct for "EncryptionConfigProperty"')}function convertCfnCollectionEncryptionConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCollectionEncryptionConfigPropertyValidator(properties).assertSuccess(),{AWSOwnedKey:cdk().booleanToCloudFormation(properties.awsOwnedKey),KmsKeyArn:cdk().stringToCloudFormation(properties.kmsKeyArn)}):properties}function CfnCollectionEncryptionConfigPropertyFromCloudFormation(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("awsOwnedKey","AWSOwnedKey",properties.AWSOwnedKey!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AWSOwnedKey):void 0),ret.addPropertyResult("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCollectionVectorOptionsPropertyValidator(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("serverlessVectorAcceleration",cdk().validateString)(properties.serverlessVectorAcceleration)),errors.wrap('supplied properties not correct for "VectorOptionsProperty"')}function convertCfnCollectionVectorOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCollectionVectorOptionsPropertyValidator(properties).assertSuccess(),{ServerlessVectorAcceleration:cdk().stringToCloudFormation(properties.serverlessVectorAcceleration)}):properties}function CfnCollectionVectorOptionsPropertyFromCloudFormation(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("serverlessVectorAcceleration","ServerlessVectorAcceleration",properties.ServerlessVectorAcceleration!=null?cfn_parse().FromCloudFormation.getString(properties.ServerlessVectorAcceleration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCollectionFipsEndpointsPropertyValidator(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("collectionEndpoint",cdk().validateString)(properties.collectionEndpoint)),errors.collect(cdk().propertyValidator("dashboardEndpoint",cdk().validateString)(properties.dashboardEndpoint)),errors.wrap('supplied properties not correct for "FipsEndpointsProperty"')}function convertCfnCollectionFipsEndpointsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCollectionFipsEndpointsPropertyValidator(properties).assertSuccess(),{CollectionEndpoint:cdk().stringToCloudFormation(properties.collectionEndpoint),DashboardEndpoint:cdk().stringToCloudFormation(properties.dashboardEndpoint)}):properties}function CfnCollectionFipsEndpointsPropertyFromCloudFormation(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("collectionEndpoint","CollectionEndpoint",properties.CollectionEndpoint!=null?cfn_parse().FromCloudFormation.getString(properties.CollectionEndpoint):void 0),ret.addPropertyResult("dashboardEndpoint","DashboardEndpoint",properties.DashboardEndpoint!=null?cfn_parse().FromCloudFormation.getString(properties.DashboardEndpoint):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCollectionPropsValidator(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("collectionGroupName",cdk().validateString)(properties.collectionGroupName)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("encryptionConfig",CfnCollectionEncryptionConfigPropertyValidator)(properties.encryptionConfig)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("standbyReplicas",cdk().validateString)(properties.standbyReplicas)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.collect(cdk().propertyValidator("vectorOptions",CfnCollectionVectorOptionsPropertyValidator)(properties.vectorOptions)),errors.wrap('supplied properties not correct for "CfnCollectionProps"')}function convertCfnCollectionPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCollectionPropsValidator(properties).assertSuccess(),{CollectionGroupName:cdk().stringToCloudFormation(properties.collectionGroupName),Description:cdk().stringToCloudFormation(properties.description),EncryptionConfig:convertCfnCollectionEncryptionConfigPropertyToCloudFormation(properties.encryptionConfig),Name:cdk().stringToCloudFormation(properties.name),StandbyReplicas:cdk().stringToCloudFormation(properties.standbyReplicas),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Type:cdk().stringToCloudFormation(properties.type),VectorOptions:convertCfnCollectionVectorOptionsPropertyToCloudFormation(properties.vectorOptions)}):properties}function CfnCollectionPropsFromCloudFormation(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("collectionGroupName","CollectionGroupName",properties.CollectionGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.CollectionGroupName):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("encryptionConfig","EncryptionConfig",properties.EncryptionConfig!=null?CfnCollectionEncryptionConfigPropertyFromCloudFormation(properties.EncryptionConfig):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("standbyReplicas","StandbyReplicas",properties.StandbyReplicas!=null?cfn_parse().FromCloudFormation.getString(properties.StandbyReplicas):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.addPropertyResult("vectorOptions","VectorOptions",properties.VectorOptions!=null?CfnCollectionVectorOptionsPropertyFromCloudFormation(properties.VectorOptions):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSecurityConfig extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnSecurityConfig",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::SecurityConfig";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSecurityConfigPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const 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}static isCfnSecurityConfig(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnSecurityConfig.CFN_RESOURCE_TYPE_NAME}_description;_iamFederationOptions;_iamIdentityCenterOptions;_name;_samlOptions;_type;cfnPropertyNames={description:"Description",iamFederationOptions:"IamFederationOptions",iamIdentityCenterOptions:"IamIdentityCenterOptions",name:"Name",samlOptions:"SamlOptions",type:"Type"};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._description=props.description,this._iamFederationOptions=props.iamFederationOptions,this._iamIdentityCenterOptions=props.iamIdentityCenterOptions,this._name=props.name,this._samlOptions=props.samlOptions,this._type=props.type}get securityConfigRef(){return{securityConfigId:this.ref}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get iamFederationOptions(){return this._iamFederationOptions}set iamFederationOptions(value){cdk().traceProperty(this.node,"IamFederationOptions"),this._iamFederationOptions=value}get iamIdentityCenterOptions(){return this._iamIdentityCenterOptions}set iamIdentityCenterOptions(value){cdk().traceProperty(this.node,"IamIdentityCenterOptions"),this._iamIdentityCenterOptions=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get samlOptions(){return this._samlOptions}set samlOptions(value){cdk().traceProperty(this.node,"SamlOptions"),this._samlOptions=value}get type(){return this._type}set type(value){cdk().traceProperty(this.node,"Type"),this._type=value}get attrIamIdentityCenterOptionsApplicationArn(){return cdk().Token.asString(this.getAtt("IamIdentityCenterOptions.ApplicationArn",cdk().ResolutionTypeHint.STRING))}get attrIamIdentityCenterOptionsApplicationDescription(){return cdk().Token.asString(this.getAtt("IamIdentityCenterOptions.ApplicationDescription",cdk().ResolutionTypeHint.STRING))}get attrIamIdentityCenterOptionsApplicationName(){return cdk().Token.asString(this.getAtt("IamIdentityCenterOptions.ApplicationName",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{description:this._description,iamFederationOptions:this._iamFederationOptions,iamIdentityCenterOptions:this._iamIdentityCenterOptions,name:this._name,samlOptions:this._samlOptions,type:this._type}}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnSecurityConfigPropsToCloudFormation(props)}}exports.CfnSecurityConfig=CfnSecurityConfig;function CfnSecurityConfigSamlConfigOptionsPropertyValidator(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("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("openSearchServerlessEntityId",cdk().validateString)(properties.openSearchServerlessEntityId)),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 convertCfnSecurityConfigSamlConfigOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityConfigSamlConfigOptionsPropertyValidator(properties).assertSuccess(),{GroupAttribute:cdk().stringToCloudFormation(properties.groupAttribute),Metadata:cdk().stringToCloudFormation(properties.metadata),OpenSearchServerlessEntityId:cdk().stringToCloudFormation(properties.openSearchServerlessEntityId),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??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))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",properties.Metadata!=null?cfn_parse().FromCloudFormation.getString(properties.Metadata):void 0),ret.addPropertyResult("openSearchServerlessEntityId","OpenSearchServerlessEntityId",properties.OpenSearchServerlessEntityId!=null?cfn_parse().FromCloudFormation.getString(properties.OpenSearchServerlessEntityId):void 0),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 CfnSecurityConfigIamIdentityCenterConfigOptionsPropertyValidator(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("applicationArn",cdk().validateString)(properties.applicationArn)),errors.collect(cdk().propertyValidator("applicationDescription",cdk().validateString)(properties.applicationDescription)),errors.collect(cdk().propertyValidator("applicationName",cdk().validateString)(properties.applicationName)),errors.collect(cdk().propertyValidator("groupAttribute",cdk().validateString)(properties.groupAttribute)),errors.collect(cdk().propertyValidator("instanceArn",cdk().requiredValidator)(properties.instanceArn)),errors.collect(cdk().propertyValidator("instanceArn",cdk().validateString)(properties.instanceArn)),errors.collect(cdk().propertyValidator("userAttribute",cdk().validateString)(properties.userAttribute)),errors.wrap('supplied properties not correct for "IamIdentityCenterConfigOptionsProperty"')}function convertCfnSecurityConfigIamIdentityCenterConfigOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityConfigIamIdentityCenterConfigOptionsPropertyValidator(properties).assertSuccess(),{ApplicationArn:cdk().stringToCloudFormation(properties.applicationArn),ApplicationDescription:cdk().stringToCloudFormation(properties.applicationDescription),ApplicationName:cdk().stringToCloudFormation(properties.applicationName),GroupAttribute:cdk().stringToCloudFormation(properties.groupAttribute),InstanceArn:cdk().stringToCloudFormation(properties.instanceArn),UserAttribute:cdk().stringToCloudFormation(properties.userAttribute)}):properties}function CfnSecurityConfigIamIdentityCenterConfigOptionsPropertyFromCloudFormation(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("applicationArn","ApplicationArn",properties.ApplicationArn!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationArn):void 0),ret.addPropertyResult("applicationDescription","ApplicationDescription",properties.ApplicationDescription!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationDescription):void 0),ret.addPropertyResult("applicationName","ApplicationName",properties.ApplicationName!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationName):void 0),ret.addPropertyResult("groupAttribute","GroupAttribute",properties.GroupAttribute!=null?cfn_parse().FromCloudFormation.getString(properties.GroupAttribute):void 0),ret.addPropertyResult("instanceArn","InstanceArn",properties.InstanceArn!=null?cfn_parse().FromCloudFormation.getString(properties.InstanceArn):void 0),ret.addPropertyResult("userAttribute","UserAttribute",properties.UserAttribute!=null?cfn_parse().FromCloudFormation.getString(properties.UserAttribute):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSecurityConfigIamFederationConfigOptionsPropertyValidator(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("groupAttribute",cdk().validateString)(properties.groupAttribute)),errors.collect(cdk().propertyValidator("userAttribute",cdk().validateString)(properties.userAttribute)),errors.wrap('supplied properties not correct for "IamFederationConfigOptionsProperty"')}function convertCfnSecurityConfigIamFederationConfigOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityConfigIamFederationConfigOptionsPropertyValidator(properties).assertSuccess(),{GroupAttribute:cdk().stringToCloudFormation(properties.groupAttribute),UserAttribute:cdk().stringToCloudFormation(properties.userAttribute)}):properties}function CfnSecurityConfigIamFederationConfigOptionsPropertyFromCloudFormation(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("groupAttribute","GroupAttribute",properties.GroupAttribute!=null?cfn_parse().FromCloudFormation.getString(properties.GroupAttribute):void 0),ret.addPropertyResult("userAttribute","UserAttribute",properties.UserAttribute!=null?cfn_parse().FromCloudFormation.getString(properties.UserAttribute):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSecurityConfigPropsValidator(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("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("iamFederationOptions",CfnSecurityConfigIamFederationConfigOptionsPropertyValidator)(properties.iamFederationOptions)),errors.collect(cdk().propertyValidator("iamIdentityCenterOptions",CfnSecurityConfigIamIdentityCenterConfigOptionsPropertyValidator)(properties.iamIdentityCenterOptions)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("samlOptions",CfnSecurityConfigSamlConfigOptionsPropertyValidator)(properties.samlOptions)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnSecurityConfigProps"')}function convertCfnSecurityConfigPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityConfigPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),IamFederationOptions:convertCfnSecurityConfigIamFederationConfigOptionsPropertyToCloudFormation(properties.iamFederationOptions),IamIdentityCenterOptions:convertCfnSecurityConfigIamIdentityCenterConfigOptionsPropertyToCloudFormation(properties.iamIdentityCenterOptions),Name:cdk().stringToCloudFormation(properties.name),SamlOptions:convertCfnSecurityConfigSamlConfigOptionsPropertyToCloudFormation(properties.samlOptions),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnSecurityConfigPropsFromCloudFormation(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("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("iamFederationOptions","IamFederationOptions",properties.IamFederationOptions!=null?CfnSecurityConfigIamFederationConfigOptionsPropertyFromCloudFormation(properties.IamFederationOptions):void 0),ret.addPropertyResult("iamIdentityCenterOptions","IamIdentityCenterOptions",properties.IamIdentityCenterOptions!=null?CfnSecurityConfigIamIdentityCenterConfigOptionsPropertyFromCloudFormation(properties.IamIdentityCenterOptions):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 CfnSecurityPolicy extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnSecurityPolicy",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::SecurityPolicy";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSecurityPolicyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const 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}static isCfnSecurityPolicy(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnSecurityPolicy.CFN_RESOURCE_TYPE_NAME}_description;_name;_policy;_type;cfnPropertyNames={description:"Description",name:"Name",policy:"Policy",type:"Type"};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,"name",this),cdk().requireProperty(props,"policy",this),cdk().requireProperty(props,"type",this),this._description=props.description,this._name=props.name,this._policy=props.policy,this._type=props.type}get securityPolicyRef(){return{type:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),securityPolicyName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get policy(){return this._policy}set policy(value){cdk().traceProperty(this.node,"Policy"),this._policy=value}get type(){return this._type}set type(value){cdk().traceProperty(this.node,"Type"),this._type=value}get cfnProperties(){return{description:this._description,name:this._name,policy:this._policy,type:this._type}}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:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnSecurityPolicyPropsToCloudFormation(props)}}exports.CfnSecurityPolicy=CfnSecurityPolicy;function CfnSecurityPolicyPropsValidator(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("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("policy",cdk().requiredValidator)(properties.policy)),errors.collect(cdk().propertyValidator("policy",cdk().validateString)(properties.policy)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnSecurityPolicyProps"')}function convertCfnSecurityPolicyPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnSecurityPolicyPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Policy:cdk().stringToCloudFormation(properties.policy),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnSecurityPolicyPropsFromCloudFormation(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("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 CfnVpcEndpoint extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnVpcEndpoint",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::VpcEndpoint";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnVpcEndpointPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const 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}static isCfnVpcEndpoint(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnVpcEndpoint.CFN_RESOURCE_TYPE_NAME}_name;_securityGroupIds;_subnetIds;_vpcId;cfnPropertyNames={name:"Name",securityGroupIds:"SecurityGroupIds",subnetIds:"SubnetIds",vpcId:"VpcId"};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._name=props.name,this._securityGroupIds=cdk().mapArrayInPlace(props.securityGroupIds,item=>cdk().getRefProperty(item?.securityGroupRef,"securityGroupId")??cdk().ensureStringOrUndefined(item,"securityGroupIds","ec2.ISecurityGroupRef | string")),this._subnetIds=props.subnetIds,this._vpcId=props.vpcId}get vpcEndpointRef(){return{vpcEndpointId:this.ref}}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=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 attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{name:this._name,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",CfnVpcEndpoint.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnVpcEndpointPropsToCloudFormation(props)}}exports.CfnVpcEndpoint=CfnVpcEndpoint;function CfnVpcEndpointPropsValidator(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("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 convertCfnVpcEndpointPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnVpcEndpointPropsValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),SecurityGroupIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.securityGroupIds),SubnetIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.subnetIds),VpcId:cdk().stringToCloudFormation(properties.vpcId)}):properties}function CfnVpcEndpointPropsFromCloudFormation(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("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):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}class CfnCollectionGroup extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnCollectionGroup",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::CollectionGroup";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnCollectionGroupPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnCollectionGroup(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 isCfnCollectionGroup(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnCollectionGroup.CFN_RESOURCE_TYPE_NAME}static fromCollectionGroupArn(scope,id,arn){class Import extends cdk().Resource{collectionGroupRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:aoss:${Region}:${Account}:collection-group/${CollectionGroupId}").parse(arn2);this.collectionGroupRef={collectionGroupId:variables.CollectionGroupId,collectionGroupArn:arn2}}}return new Import(scope,id,arn)}static fromCollectionGroupId(scope,id,collectionGroupId){class Import extends cdk().Resource{collectionGroupRef;constructor(scope2,id2,collectionGroupId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:aoss:${Region}:${Account}:collection-group/${CollectionGroupId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,CollectionGroupId:collectionGroupId2});super(scope2,id2,{environmentFromArn:arn}),this.collectionGroupRef={collectionGroupId:collectionGroupId2,collectionGroupArn:arn}}}return new Import(scope,id,collectionGroupId)}static arnForCollectionGroup(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_opensearchserverless_ICollectionGroupRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForCollectionGroup),error}return resource.collectionGroupRef.collectionGroupArn}_capacityLimits;cdkTagManager;_description;_name;_standbyReplicas;_tags;cfnPropertyNames={capacityLimits:"CapacityLimits",tags:"Tags",description:"Description",name:"Name",standbyReplicas:"StandbyReplicas"};constructor(scope,id,props){super(scope,id,{type:CfnCollectionGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_opensearchserverless_CfnCollectionGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnCollectionGroup),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"standbyReplicas",this),this._capacityLimits=props.capacityLimits,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::OpenSearchServerless::CollectionGroup",void 0,{tagPropertyName:"tags"}),this._description=props.description,this._name=props.name,this._standbyReplicas=props.standbyReplicas,this._tags=props.tags}get collectionGroupRef(){return{collectionGroupId:this.ref,collectionGroupArn:this.attrArn}}get capacityLimits(){return this._capacityLimits}set capacityLimits(value){cdk().traceProperty(this.node,"CapacityLimits"),this._capacityLimits=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get standbyReplicas(){return this._standbyReplicas}set standbyReplicas(value){cdk().traceProperty(this.node,"StandbyReplicas"),this._standbyReplicas=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 cfnProperties(){return{capacityLimits:this._capacityLimits,tags:this.cdkTagManager.renderTags(this._tags),description:this._description,name:this._name,standbyReplicas:this._standbyReplicas}}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",CfnCollectionGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnCollectionGroupPropsToCloudFormation(props)}}exports.CfnCollectionGroup=CfnCollectionGroup;function CfnCollectionGroupCapacityLimitsPropertyValidator(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("maxIndexingCapacityInOcu",cdk().validateNumber)(properties.maxIndexingCapacityInOcu)),errors.collect(cdk().propertyValidator("maxSearchCapacityInOcu",cdk().validateNumber)(properties.maxSearchCapacityInOcu)),errors.collect(cdk().propertyValidator("minIndexingCapacityInOcu",cdk().validateNumber)(properties.minIndexingCapacityInOcu)),errors.collect(cdk().propertyValidator("minSearchCapacityInOcu",cdk().validateNumber)(properties.minSearchCapacityInOcu)),errors.wrap('supplied properties not correct for "CapacityLimitsProperty"')}function convertCfnCollectionGroupCapacityLimitsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCollectionGroupCapacityLimitsPropertyValidator(properties).assertSuccess(),{MaxIndexingCapacityInOcu:cdk().numberToCloudFormation(properties.maxIndexingCapacityInOcu),MaxSearchCapacityInOcu:cdk().numberToCloudFormation(properties.maxSearchCapacityInOcu),MinIndexingCapacityInOcu:cdk().numberToCloudFormation(properties.minIndexingCapacityInOcu),MinSearchCapacityInOcu:cdk().numberToCloudFormation(properties.minSearchCapacityInOcu)}):properties}function CfnCollectionGroupCapacityLimitsPropertyFromCloudFormation(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("maxIndexingCapacityInOcu","MaxIndexingCapacityInOcu",properties.MaxIndexingCapacityInOcu!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxIndexingCapacityInOcu):void 0),ret.addPropertyResult("maxSearchCapacityInOcu","MaxSearchCapacityInOcu",properties.MaxSearchCapacityInOcu!=null?cfn_parse().FromCloudFormation.getNumber(properties.MaxSearchCapacityInOcu):void 0),ret.addPropertyResult("minIndexingCapacityInOcu","MinIndexingCapacityInOcu",properties.MinIndexingCapacityInOcu!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinIndexingCapacityInOcu):void 0),ret.addPropertyResult("minSearchCapacityInOcu","MinSearchCapacityInOcu",properties.MinSearchCapacityInOcu!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinSearchCapacityInOcu):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnCollectionGroupPropsValidator(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("capacityLimits",CfnCollectionGroupCapacityLimitsPropertyValidator)(properties.capacityLimits)),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("standbyReplicas",cdk().requiredValidator)(properties.standbyReplicas)),errors.collect(cdk().propertyValidator("standbyReplicas",cdk().validateString)(properties.standbyReplicas)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnCollectionGroupProps"')}function convertCfnCollectionGroupPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnCollectionGroupPropsValidator(properties).assertSuccess(),{CapacityLimits:convertCfnCollectionGroupCapacityLimitsPropertyToCloudFormation(properties.capacityLimits),Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),StandbyReplicas:cdk().stringToCloudFormation(properties.standbyReplicas),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnCollectionGroupPropsFromCloudFormation(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("capacityLimits","CapacityLimits",properties.CapacityLimits!=null?CfnCollectionGroupCapacityLimitsPropertyFromCloudFormation(properties.CapacityLimits):void 0),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("standbyReplicas","StandbyReplicas",properties.StandbyReplicas!=null?cfn_parse().FromCloudFormation.getString(properties.StandbyReplicas):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 CfnIndex extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnIndex",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::Index";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIndexPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnIndex(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 isCfnIndex(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnIndex.CFN_RESOURCE_TYPE_NAME}_collectionEndpoint;_indexName;_mappings;_settings;cfnPropertyNames={collectionEndpoint:"CollectionEndpoint",indexName:"IndexName",mappings:"Mappings",settings:"Settings"};constructor(scope,id,props){super(scope,id,{type:CfnIndex.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_opensearchserverless_CfnIndexProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIndex),error}cdk().requireProperty(props,"collectionEndpoint",this),cdk().requireProperty(props,"indexName",this),this._collectionEndpoint=props.collectionEndpoint,this._indexName=props.indexName,this._mappings=props.mappings,this._settings=props.settings}get indexRef(){return{indexName:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),collectionEndpoint:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get collectionEndpoint(){return this._collectionEndpoint}set collectionEndpoint(value){cdk().traceProperty(this.node,"CollectionEndpoint"),this._collectionEndpoint=value}get indexName(){return this._indexName}set indexName(value){cdk().traceProperty(this.node,"IndexName"),this._indexName=value}get mappings(){return this._mappings}set mappings(value){cdk().traceProperty(this.node,"Mappings"),this._mappings=value}get settings(){return this._settings}set settings(value){cdk().traceProperty(this.node,"Settings"),this._settings=value}get attrUuid(){return cdk().Token.asString(this.getAtt("Uuid",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{collectionEndpoint:this._collectionEndpoint,indexName:this._indexName,mappings:this._mappings,settings:this._settings}}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",CfnIndex.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIndexPropsToCloudFormation(props)}}exports.CfnIndex=CfnIndex;function CfnIndexIndexPropertyValidator(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("knn",cdk().validateBoolean)(properties.knn)),errors.collect(cdk().propertyValidator("knnAlgoParamEfSearch",cdk().validateNumber)(properties.knnAlgoParamEfSearch)),errors.collect(cdk().propertyValidator("refreshInterval",cdk().validateString)(properties.refreshInterval)),errors.wrap('supplied properties not correct for "IndexProperty"')}function convertCfnIndexIndexPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIndexIndexPropertyValidator(properties).assertSuccess(),{Knn:cdk().booleanToCloudFormation(properties.knn),KnnAlgoParamEfSearch:cdk().numberToCloudFormation(properties.knnAlgoParamEfSearch),RefreshInterval:cdk().stringToCloudFormation(properties.refreshInterval)}):properties}function CfnIndexIndexPropertyFromCloudFormation(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("knn","Knn",properties.Knn!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Knn):void 0),ret.addPropertyResult("knnAlgoParamEfSearch","KnnAlgoParamEfSearch",properties.KnnAlgoParamEfSearch!=null?cfn_parse().FromCloudFormation.getNumber(properties.KnnAlgoParamEfSearch):void 0),ret.addPropertyResult("refreshInterval","RefreshInterval",properties.RefreshInterval!=null?cfn_parse().FromCloudFormation.getString(properties.RefreshInterval):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIndexIndexSettingsPropertyValidator(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("index",CfnIndexIndexPropertyValidator)(properties.index)),errors.wrap('supplied properties not correct for "IndexSettingsProperty"')}function convertCfnIndexIndexSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIndexIndexSettingsPropertyValidator(properties).assertSuccess(),{Index:convertCfnIndexIndexPropertyToCloudFormation(properties.index)}):properties}function CfnIndexIndexSettingsPropertyFromCloudFormation(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("index","Index",properties.Index!=null?CfnIndexIndexPropertyFromCloudFormation(properties.Index):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIndexParametersPropertyValidator(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("efConstruction",cdk().validateNumber)(properties.efConstruction)),errors.collect(cdk().propertyValidator("m",cdk().validateNumber)(properties.m)),errors.wrap('supplied properties not correct for "ParametersProperty"')}function convertCfnIndexParametersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIndexParametersPropertyValidator(properties).assertSuccess(),{EfConstruction:cdk().numberToCloudFormation(properties.efConstruction),M:cdk().numberToCloudFormation(properties.m)}):properties}function CfnIndexParametersPropertyFromCloudFormation(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("efConstruction","EfConstruction",properties.EfConstruction!=null?cfn_parse().FromCloudFormation.getNumber(properties.EfConstruction):void 0),ret.addPropertyResult("m","M",properties.M!=null?cfn_parse().FromCloudFormation.getNumber(properties.M):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIndexMethodPropertyValidator(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("engine",cdk().validateString)(properties.engine)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("parameters",CfnIndexParametersPropertyValidator)(properties.parameters)),errors.collect(cdk().propertyValidator("spaceType",cdk().validateString)(properties.spaceType)),errors.wrap('supplied properties not correct for "MethodProperty"')}function convertCfnIndexMethodPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIndexMethodPropertyValidator(properties).assertSuccess(),{Engine:cdk().stringToCloudFormation(properties.engine),Name:cdk().stringToCloudFormation(properties.name),Parameters:convertCfnIndexParametersPropertyToCloudFormation(properties.parameters),SpaceType:cdk().stringToCloudFormation(properties.spaceType)}):properties}function CfnIndexMethodPropertyFromCloudFormation(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("engine","Engine",properties.Engine!=null?cfn_parse().FromCloudFormation.getString(properties.Engine):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("parameters","Parameters",properties.Parameters!=null?CfnIndexParametersPropertyFromCloudFormation(properties.Parameters):void 0),ret.addPropertyResult("spaceType","SpaceType",properties.SpaceType!=null?cfn_parse().FromCloudFormation.getString(properties.SpaceType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIndexPropertyMappingPropertyValidator(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("dimension",cdk().validateNumber)(properties.dimension)),errors.collect(cdk().propertyValidator("index",cdk().validateBoolean)(properties.index)),errors.collect(cdk().propertyValidator("method",CfnIndexMethodPropertyValidator)(properties.method)),errors.collect(cdk().propertyValidator("properties",cdk().hashValidator(CfnIndexPropertyMappingPropertyValidator))(properties.properties)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "PropertyMappingProperty"')}function convertCfnIndexPropertyMappingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIndexPropertyMappingPropertyValidator(properties).assertSuccess(),{Dimension:cdk().numberToCloudFormation(properties.dimension),Index:cdk().booleanToCloudFormation(properties.index),Method:convertCfnIndexMethodPropertyToCloudFormation(properties.method),Properties:cdk().hashMapper(convertCfnIndexPropertyMappingPropertyToCloudFormation)(properties.properties),Type:cdk().stringToCloudFormation(properties.type),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnIndexPropertyMappingPropertyFromCloudFormation(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("dimension","Dimension",properties.Dimension!=null?cfn_parse().FromCloudFormation.getNumber(properties.Dimension):void 0),ret.addPropertyResult("index","Index",properties.Index!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Index):void 0),ret.addPropertyResult("method","Method",properties.Method!=null?CfnIndexMethodPropertyFromCloudFormation(properties.Method):void 0),ret.addPropertyResult("properties","Properties",properties.Properties!=null?cfn_parse().FromCloudFormation.getMap(CfnIndexPropertyMappingPropertyFromCloudFormation)(properties.Properties):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIndexMappingsPropertyValidator(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("properties",cdk().hashValidator(CfnIndexPropertyMappingPropertyValidator))(properties.properties)),errors.wrap('supplied properties not correct for "MappingsProperty"')}function convertCfnIndexMappingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIndexMappingsPropertyValidator(properties).assertSuccess(),{Properties:cdk().hashMapper(convertCfnIndexPropertyMappingPropertyToCloudFormation)(properties.properties)}):properties}function CfnIndexMappingsPropertyFromCloudFormation(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("properties","Properties",properties.Properties!=null?cfn_parse().FromCloudFormation.getMap(CfnIndexPropertyMappingPropertyFromCloudFormation)(properties.Properties):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIndexPropsValidator(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("collectionEndpoint",cdk().requiredValidator)(properties.collectionEndpoint)),errors.collect(cdk().propertyValidator("collectionEndpoint",cdk().validateString)(properties.collectionEndpoint)),errors.collect(cdk().propertyValidator("indexName",cdk().requiredValidator)(properties.indexName)),errors.collect(cdk().propertyValidator("indexName",cdk().validateString)(properties.indexName)),errors.collect(cdk().propertyValidator("mappings",CfnIndexMappingsPropertyValidator)(properties.mappings)),errors.collect(cdk().propertyValidator("settings",CfnIndexIndexSettingsPropertyValidator)(properties.settings)),errors.wrap('supplied properties not correct for "CfnIndexProps"')}function convertCfnIndexPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIndexPropsValidator(properties).assertSuccess(),{CollectionEndpoint:cdk().stringToCloudFormation(properties.collectionEndpoint),IndexName:cdk().stringToCloudFormation(properties.indexName),Mappings:convertCfnIndexMappingsPropertyToCloudFormation(properties.mappings),Settings:convertCfnIndexIndexSettingsPropertyToCloudFormation(properties.settings)}):properties}function CfnIndexPropsFromCloudFormation(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("collectionEndpoint","CollectionEndpoint",properties.CollectionEndpoint!=null?cfn_parse().FromCloudFormation.getString(properties.CollectionEndpoint):void 0),ret.addPropertyResult("indexName","IndexName",properties.IndexName!=null?cfn_parse().FromCloudFormation.getString(properties.IndexName):void 0),ret.addPropertyResult("mappings","Mappings",properties.Mappings!=null?CfnIndexMappingsPropertyFromCloudFormation(properties.Mappings):void 0),ret.addPropertyResult("settings","Settings",properties.Settings!=null?CfnIndexIndexSettingsPropertyFromCloudFormation(properties.Settings):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLifecyclePolicy extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_opensearchserverless.CfnLifecyclePolicy",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::OpenSearchServerless::LifecyclePolicy";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLifecyclePolicyPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnLifecyclePolicy(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 isCfnLifecyclePolicy(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLifecyclePolicy.CFN_RESOURCE_TYPE_NAME}_description;_name;_policy;_type;cfnPropertyNames={description:"Description",name:"Name",policy:"Policy",type:"Type"};constructor(scope,id,props){super(scope,id,{type:CfnLifecyclePolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_opensearchserverless_CfnLifecyclePolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLifecyclePolicy),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"policy",this),cdk().requireProperty(props,"type",this),this._description=props.description,this._name=props.name,this._policy=props.policy,this._type=props.type}get lifecyclePolicyRef(){return{type:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),lifecyclePolicyName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get policy(){return this._policy}set policy(value){cdk().traceProperty(this.node,"Policy"),this._policy=value}get type(){return this._type}set type(value){cdk().traceProperty(this.node,"Type"),this._type=value}get cfnProperties(){return{description:this._description,name:this._name,policy:this._policy,type:this._type}}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",CfnLifecyclePolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLifecyclePolicyPropsToCloudFormation(props)}}exports.CfnLifecyclePolicy=CfnLifecyclePolicy;function CfnLifecyclePolicyPropsValidator(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("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("policy",cdk().requiredValidator)(properties.policy)),errors.collect(cdk().propertyValidator("policy",cdk().validateString)(properties.policy)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnLifecyclePolicyProps"')}function convertCfnLifecyclePolicyPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLifecyclePolicyPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Policy:cdk().stringToCloudFormation(properties.policy),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnLifecyclePolicyPropsFromCloudFormation(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("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}