Creates a new OpenSearch Serverless collection¶
Description¶
Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
Usage¶
opensearchserviceserverless_create_collection(name, type, description,
tags, standbyReplicas, vectorOptions, collectionGroupName,
encryptionConfig, deletionProtection, clientToken)
Arguments¶
-
name[required] Name of the collection.
-
typeThe type of collection.
-
descriptionDescription of the collection.
-
tagsAn arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
-
standbyReplicasIndicates whether standby replicas should be used for a collection.
-
vectorOptionsConfiguration options for vector search capabilities in the collection.
-
collectionGroupNameThe name of the collection group to associate with the collection.
-
encryptionConfigEncryption settings for the collection.
-
deletionProtectionIndicates whether to enable deletion protection for the collection. When set to
ENABLED, the collection cannot be deleted. -
clientTokenUnique, case-sensitive identifier to ensure idempotency of the request.
Value¶
A list with the following syntax:
list(
createCollectionDetail = list(
id = "string",
name = "string",
status = "CREATING"|"UPDATING"|"DELETING"|"ACTIVE"|"FAILED"|"UPDATE_FAILED",
type = "SEARCH"|"TIMESERIES"|"VECTORSEARCH",
description = "string",
arn = "string",
kmsKeyArn = "string",
standbyReplicas = "ENABLED"|"DISABLED",
deletionProtection = "ENABLED"|"DISABLED",
vectorOptions = list(
ServerlessVectorAcceleration = "ENABLED"|"DISABLED"|"ALLOWED"
),
createdDate = 123,
lastModifiedDate = 123,
collectionGroupName = "string"
)
)
Request syntax¶
svc$create_collection(
name = "string",
type = "SEARCH"|"TIMESERIES"|"VECTORSEARCH",
description = "string",
tags = list(
list(
key = "string",
value = "string"
)
),
standbyReplicas = "ENABLED"|"DISABLED",
vectorOptions = list(
ServerlessVectorAcceleration = "ENABLED"|"DISABLED"|"ALLOWED"
),
collectionGroupName = "string",
encryptionConfig = list(
aWSOwnedKey = TRUE|FALSE,
kmsKeyArn = "string"
),
deletionProtection = "ENABLED"|"DISABLED",
clientToken = "string"
)