Skip to content

Create Collection

opensearchserviceserverless_create_collection R Documentation

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(clientToken, description,
  name, standbyReplicas, tags, type)

Arguments

clientToken

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

description

Description of the collection.

name

[required] Name of the collection.

standbyReplicas

Indicates whether standby replicas should be used for a collection.

tags

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

type

The type of collection.

Value

A list with the following syntax:

list(
  createCollectionDetail = list(
    arn = "string",
    createdDate = 123,
    description = "string",
    id = "string",
    kmsKeyArn = "string",
    lastModifiedDate = 123,
    name = "string",
    standbyReplicas = "ENABLED"|"DISABLED",
    status = "CREATING"|"DELETING"|"ACTIVE"|"FAILED",
    type = "SEARCH"|"TIMESERIES"|"VECTORSEARCH"
  )
)

Request syntax

svc$create_collection(
  clientToken = "string",
  description = "string",
  name = "string",
  standbyReplicas = "ENABLED"|"DISABLED",
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  ),
  type = "SEARCH"|"TIMESERIES"|"VECTORSEARCH"
)