import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateIndexRequest, CreateIndexResponse } from "../models/models_0"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @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/core/client").CommandImpl; new (input: CreateIndexCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates an OpenSearch index with optional automatic semantic enrichment for specified text fields. Automatic semantic enrichment enables semantic search capabilities without requiring machine learning expertise, improving search relevance by up to 20% by understanding search intent and contextual meaning beyond keyword matching. The semantic enrichment process has zero impact on search latency as sparse encodings are stored directly within the index during indexing. For more information, see Automatic semantic enrichment.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, CreateIndexCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, CreateIndexCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch"; * const config = {}; // type is OpenSearchClientConfig * const client = new OpenSearchClient(config); * const input = { // CreateIndexRequest * DomainName: "STRING_VALUE", // required * IndexName: "STRING_VALUE", // required * IndexSchema: "DOCUMENT_VALUE", // required * }; * const command = new CreateIndexCommand(input); * const response = await client.send(command); * // { // CreateIndexResponse * // Status: "CREATED" || "UPDATED" || "DELETED", // required * // }; * * ``` * * @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 OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

An error occurred because you don't have permissions to access the resource.

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

An exception for when a failure in one of the dependencies results in the service being unable to fetch details about the resource.

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

An error occured because the client wanted to access an unsupported operation.

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

Request processing failed because of an unknown error, exception, or internal failure.

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

An exception for creating a resource that already exists.

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

An exception for accessing or deleting a resource that doesn't exist.

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

The request was denied due to request throttling. Reduce the frequency of your requests and try again.

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

An exception for accessing or deleting a resource that doesn't exist.

* * @throws {@link OpenSearchServiceException} *

Base exception class for all service exceptions from OpenSearch service.

* * * @public */ export declare class CreateIndexCommand extends CreateIndexCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateIndexRequest; output: CreateIndexResponse; }; sdk: { input: CreateIndexCommandInput; output: CreateIndexCommandOutput; }; }; }