import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateCollectionRequest, CreateCollectionResponse } from "../models/models_0"; import type { OpenSearchServerlessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchServerlessClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateCollectionCommand}. */ export interface CreateCollectionCommandInput extends CreateCollectionRequest { } /** * @public * * The output of {@link CreateCollectionCommand}. */ export interface CreateCollectionCommandOutput extends CreateCollectionResponse, __MetadataBearer { } declare const CreateCollectionCommand_base: { new (input: CreateCollectionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateCollectionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchServerlessClient, CreateCollectionCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import * // const { OpenSearchServerlessClient, CreateCollectionCommand } = require("@aws-sdk/client-opensearchserverless"); // CommonJS import * // import type { OpenSearchServerlessClientConfig } from "@aws-sdk/client-opensearchserverless"; * const config = {}; // type is OpenSearchServerlessClientConfig * const client = new OpenSearchServerlessClient(config); * const input = { // CreateCollectionRequest * name: "STRING_VALUE", // required * type: "STRING_VALUE", * description: "STRING_VALUE", * tags: [ // Tags * { // Tag * key: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * standbyReplicas: "STRING_VALUE", * vectorOptions: { // VectorOptions * ServerlessVectorAcceleration: "STRING_VALUE", // required * }, * collectionGroupName: "STRING_VALUE", * encryptionConfig: { // EncryptionConfig * aWSOwnedKey: true || false, * kmsKeyArn: "STRING_VALUE", * }, * clientToken: "STRING_VALUE", * }; * const command = new CreateCollectionCommand(input); * const response = await client.send(command); * // { // CreateCollectionResponse * // createCollectionDetail: { // CreateCollectionDetail * // id: "STRING_VALUE", * // name: "STRING_VALUE", * // status: "STRING_VALUE", * // type: "STRING_VALUE", * // description: "STRING_VALUE", * // arn: "STRING_VALUE", * // kmsKeyArn: "STRING_VALUE", * // standbyReplicas: "STRING_VALUE", * // vectorOptions: { // VectorOptions * // ServerlessVectorAcceleration: "STRING_VALUE", // required * // }, * // createdDate: Number("long"), * // lastModifiedDate: Number("long"), * // collectionGroupName: "STRING_VALUE", * // }, * // }; * * ``` * * @param CreateCollectionCommandInput - {@link CreateCollectionCommandInput} * @returns {@link CreateCollectionCommandOutput} * @see {@link CreateCollectionCommandInput} for command's `input` shape. * @see {@link CreateCollectionCommandOutput} for command's `response` shape. * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.

* * @throws {@link InternalServerException} (server fault) *

Thrown when an error internal to the service occurs while processing a request.

* * @throws {@link OcuLimitExceededException} (client fault) *

Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.

* * @throws {@link ServiceQuotaExceededException} (client fault) *

Thrown when you attempt to create more resources than the service allows based on service quotas.

* * @throws {@link ValidationException} (client fault) *

Thrown when the HTTP request contains invalid input or is missing required input.

* * @throws {@link OpenSearchServerlessServiceException} *

Base exception class for all service exceptions from OpenSearchServerless service.

* * * @public */ export declare class CreateCollectionCommand extends CreateCollectionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateCollectionRequest; output: CreateCollectionResponse; }; sdk: { input: CreateCollectionCommandInput; output: CreateCollectionCommandOutput; }; }; }