Skip to content
v2.274.0

CfnCollectionIndexProps Struct ​

Properties for defining a CfnCollectionIndex.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const cfnCollectionIndexProps: opensearchserverless.CfnCollectionIndexProps = {
  id: 'id',
  indexName: 'indexName',

  // the properties below are optional
  indexSchema: 'indexSchema',
};

Properties ​

idstringidstridStringIdstringId*stringrequired#
The identifier of the collection.
indexNamestringindex_namestrindexNameStringIndexNamestringIndexName*stringrequired#
The name of the collection index.
indexSchemaoptionalstringindex_schemaoptionalstrindexSchemaoptionalStringIndexSchemaoptionalstringIndexSchemaoptional*string#
The Mappings for the collection index.