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

Creates an index within an OpenSearch Serverless collection. Unlike other OpenSearch indexes, indexes created by this API are automatically configured to conduct automatic semantic enrichment ingestion and search. For more information, see About automatic semantic enrichment in the OpenSearch User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchServerlessClient, CreateIndexCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import * // const { OpenSearchServerlessClient, CreateIndexCommand } = 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 = { // CreateIndexRequest * id: "STRING_VALUE", // required * indexName: "STRING_VALUE", // required * indexSchema: "DOCUMENT_VALUE", * }; * const command = new CreateIndexCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param CreateIndexCommandInput - {@link CreateIndexCommandInput} * @returns {@link CreateIndexCommandOutput} * @see {@link CreateIndexCommandInput} for command's `input` shape. * @see {@link CreateIndexCommandOutput} 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 ResourceNotFoundException} (client fault) *

Thrown when accessing or deleting a resource that does not exist.

* * @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 CreateIndexCommand extends CreateIndexCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateIndexRequest; output: {}; }; sdk: { input: CreateIndexCommandInput; output: CreateIndexCommandOutput; }; }; }