Skip to content
v2.278.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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearchserverless as opensearchserverless

cfn_collection_index_props = opensearchserverless.CfnCollectionIndexProps(
    id="id",
    index_name="indexName",

    # the properties below are optional
    index_schema="indexSchema"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchserverless.*;

CfnCollectionIndexProps cfnCollectionIndexProps = CfnCollectionIndexProps.builder()
        .id("id")
        .indexName("indexName")

        // the properties below are optional
        .indexSchema("indexSchema")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearchServerless;

var cfnCollectionIndexProps = new CfnCollectionIndexProps {
    Id = "id",
    IndexName = "indexName",

    // the properties below are optional
    IndexSchema = "indexSchema"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnCollectionIndexProps := &CfnCollectionIndexProps{
	Id: jsii.String("id"),
	IndexName: jsii.String("indexName"),

	// the properties below are optional
	IndexSchema: jsii.String("indexSchema"),
}

Properties ​

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