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

Deletes an index from an OpenSearch Serverless collection. Be aware that the index might be configured to conduct 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, DeleteIndexCommand } from "@aws-sdk/client-opensearchserverless"; // ES Modules import * // const { OpenSearchServerlessClient, DeleteIndexCommand } = 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 = { // DeleteIndexRequest * id: "STRING_VALUE", // required * indexName: "STRING_VALUE", // required * }; * const command = new DeleteIndexCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteIndexCommandInput - {@link DeleteIndexCommandInput} * @returns {@link DeleteIndexCommandOutput} * @see {@link DeleteIndexCommandInput} for command's `input` shape. * @see {@link DeleteIndexCommandOutput} 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 DeleteIndexCommand extends DeleteIndexCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteIndexRequest; output: {}; }; sdk: { input: DeleteIndexCommandInput; output: DeleteIndexCommandOutput; }; }; }