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

Updates an existing index in an OpenSearch Serverless collection. This operation allows you to modify the index schema, including adding new fields or changing field mappings. You can also enable automatic semantic enrichment ingestion and search. For more information, see About automatic semantic enrichment.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchServerlessClient, UpdateIndexCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import * // const { OpenSearchServerlessClient, UpdateIndexCommand } = 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 = { // UpdateIndexRequest * id: "STRING_VALUE", // required * indexName: "STRING_VALUE", // required * indexSchema: "DOCUMENT_VALUE", * }; * const command = new UpdateIndexCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param UpdateIndexCommandInput - {@link UpdateIndexCommandInput} * @returns {@link UpdateIndexCommandOutput} * @see {@link UpdateIndexCommandInput} for command's `input` shape. * @see {@link UpdateIndexCommandOutput} for command's `response` shape. * @see {@link OpenSearchServerlessClientResolvedConfig | config} for OpenSearchServerlessClient's `config` shape. * * @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 UpdateIndexCommand extends UpdateIndexCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateIndexRequest; output: {}; }; sdk: { input: UpdateIndexCommandInput; output: UpdateIndexCommandOutput; }; }; }