Skip to content

CreateCollectionRequest

Source code in docs_src/capo_opensearchserverless/types/create_collection_request.py
class CreateCollectionRequest(TypedDict, closed=True):
    name: "capo_opensearchserverless.types.collection_name.CollectionName"
    """<p>Name of the collection.</p>"""
    type: NotRequired["capo_opensearchserverless.types.collection_type.CollectionType"]
    """<p>The type of collection.</p>"""
    description: NotRequired["str"]
    """<p>Description of the collection.</p>"""
    tags: NotRequired["capo_opensearchserverless.types.tags.Tags"]
    """<p>An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.</p>"""
    standby_replicas: NotRequired[
        "capo_opensearchserverless.types.standby_replicas.StandbyReplicas"
    ]
    """<p>Indicates whether standby replicas should be used for a collection.</p>"""
    vector_options: NotRequired[
        "capo_opensearchserverless.types.vector_options.VectorOptions"
    ]
    """<p>Configuration options for vector search capabilities in the collection.</p>"""
    collection_group_name: NotRequired[
        "capo_opensearchserverless.types.collection_group_name.CollectionGroupName"
    ]
    """<p>The name of the collection group to associate with the collection.</p>"""
    encryption_config: NotRequired[
        "capo_opensearchserverless.types.encryption_config.EncryptionConfig"
    ]
    """<p>Encryption settings for the collection.</p>"""
    deletion_protection: NotRequired[
        "capo_opensearchserverless.types.deletion_protection.DeletionProtection"
    ]
    """<p>Indicates whether to enable deletion protection for the collection. When set to <code>ENABLED</code>, the collection cannot be deleted.</p>"""
    client_token: NotRequired[
        "capo_opensearchserverless.types.client_token.ClientToken"
    ]
    """<p>Unique, case-sensitive identifier to ensure idempotency of the request.</p>"""

client_token instance-attribute

client_token: NotRequired[ClientToken]

Unique, case-sensitive identifier to ensure idempotency of the request.

collection_group_name instance-attribute

collection_group_name: NotRequired[CollectionGroupName]

The name of the collection group to associate with the collection.

deletion_protection instance-attribute

deletion_protection: NotRequired[DeletionProtection]

Indicates whether to enable deletion protection for the collection. When set to ENABLED, the collection cannot be deleted.

description instance-attribute

description: NotRequired[str]

Description of the collection.

encryption_config instance-attribute

encryption_config: NotRequired[EncryptionConfig]

Encryption settings for the collection.

name instance-attribute

Name of the collection.

standby_replicas instance-attribute

standby_replicas: NotRequired[StandbyReplicas]

Indicates whether standby replicas should be used for a collection.

tags instance-attribute

tags: NotRequired[Tags]

An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.

type instance-attribute

type: NotRequired[CollectionType]

The type of collection.

vector_options instance-attribute

vector_options: NotRequired[VectorOptions]

Configuration options for vector search capabilities in the collection.