import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateScheduledActionRequest, UpdateScheduledActionResponse } from "../models/models_1"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateScheduledActionCommand}. */ export interface UpdateScheduledActionCommandInput extends UpdateScheduledActionRequest { } /** * @public * * The output of {@link UpdateScheduledActionCommand}. */ export interface UpdateScheduledActionCommandOutput extends UpdateScheduledActionResponse, __MetadataBearer { } declare const UpdateScheduledActionCommand_base: { new (input: UpdateScheduledActionCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateScheduledActionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Reschedules a planned domain configuration change for a later time. This change can be * a scheduled service * software update or a blue/green Auto-Tune enhancement.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, UpdateScheduledActionCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, UpdateScheduledActionCommand } = 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 = { // UpdateScheduledActionRequest * DomainName: "STRING_VALUE", // required * ActionID: "STRING_VALUE", // required * ActionType: "SERVICE_SOFTWARE_UPDATE" || "JVM_HEAP_SIZE_TUNING" || "JVM_YOUNG_GEN_TUNING", // required * ScheduleAt: "NOW" || "TIMESTAMP" || "OFF_PEAK_WINDOW", // required * DesiredStartTime: Number("long"), * }; * const command = new UpdateScheduledActionCommand(input); * const response = await client.send(command); * // { // UpdateScheduledActionResponse * // ScheduledAction: { // ScheduledAction * // Id: "STRING_VALUE", // required * // Type: "SERVICE_SOFTWARE_UPDATE" || "JVM_HEAP_SIZE_TUNING" || "JVM_YOUNG_GEN_TUNING", // required * // Severity: "HIGH" || "MEDIUM" || "LOW", // required * // ScheduledTime: Number("long"), // required * // Description: "STRING_VALUE", * // ScheduledBy: "CUSTOMER" || "SYSTEM", * // Status: "PENDING_UPDATE" || "IN_PROGRESS" || "FAILED" || "COMPLETED" || "NOT_ELIGIBLE" || "ELIGIBLE", * // Mandatory: true || false, * // Cancellable: true || false, * // }, * // }; * * ``` * * @param UpdateScheduledActionCommandInput - {@link UpdateScheduledActionCommandInput} * @returns {@link UpdateScheduledActionCommandOutput} * @see {@link UpdateScheduledActionCommandInput} for command's `input` shape. * @see {@link UpdateScheduledActionCommandOutput} 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 ConflictException} (client fault) *

An error occurred because the client attempts to remove a resource that is currently in use.

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

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

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

An exception for trying to create more than the allowed number of resources or sub-resources.

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

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

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

An exception for attempting to schedule a domain action during an unavailable time slot.

* * @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 UpdateScheduledActionCommand extends UpdateScheduledActionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateScheduledActionRequest; output: UpdateScheduledActionResponse; }; sdk: { input: UpdateScheduledActionCommandInput; output: UpdateScheduledActionCommandOutput; }; }; }