import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { RollbackServiceSoftwareUpdateRequest, RollbackServiceSoftwareUpdateResponse } from "../models/models_0"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RollbackServiceSoftwareUpdateCommand}. */ export interface RollbackServiceSoftwareUpdateCommandInput extends RollbackServiceSoftwareUpdateRequest { } /** * @public * * The output of {@link RollbackServiceSoftwareUpdateCommand}. */ export interface RollbackServiceSoftwareUpdateCommandOutput extends RollbackServiceSoftwareUpdateResponse, __MetadataBearer { } declare const RollbackServiceSoftwareUpdateCommand_base: { new (input: RollbackServiceSoftwareUpdateCommandInput): import("@smithy/core/client").CommandImpl; new (input: RollbackServiceSoftwareUpdateCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Rolls back a service software update for a domain to the previous version. For more * information, see Service * software updates in Amazon OpenSearch Service.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, RollbackServiceSoftwareUpdateCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, RollbackServiceSoftwareUpdateCommand } = 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 = { // RollbackServiceSoftwareUpdateRequest * DomainName: "STRING_VALUE", // required * }; * const command = new RollbackServiceSoftwareUpdateCommand(input); * const response = await client.send(command); * // { // RollbackServiceSoftwareUpdateResponse * // RollbackServiceSoftwareOptions: { // RollbackServiceSoftwareOptions * // CurrentVersion: "STRING_VALUE", * // NewVersion: "STRING_VALUE", * // RollbackAvailable: true || false, * // Description: "STRING_VALUE", * // }, * // }; * * ``` * * @param RollbackServiceSoftwareUpdateCommandInput - {@link RollbackServiceSoftwareUpdateCommandInput} * @returns {@link RollbackServiceSoftwareUpdateCommandOutput} * @see {@link RollbackServiceSoftwareUpdateCommandInput} for command's `input` shape. * @see {@link RollbackServiceSoftwareUpdateCommandOutput} for command's `response` shape. * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link BaseException} (client fault) *

An error occurred while processing the request.

* * @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 ResourceNotFoundException} (client fault) *

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

* * @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 RollbackServiceSoftwareUpdateCommand extends RollbackServiceSoftwareUpdateCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RollbackServiceSoftwareUpdateRequest; output: RollbackServiceSoftwareUpdateResponse; }; sdk: { input: RollbackServiceSoftwareUpdateCommandInput; output: RollbackServiceSoftwareUpdateCommandOutput; }; }; }