import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ScheduledAction } from "../models/models_0"; import type { ModifyScheduledActionMessage } from "../models/models_1"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ModifyScheduledActionCommand}. */ export interface ModifyScheduledActionCommandInput extends ModifyScheduledActionMessage { } /** * @public * * The output of {@link ModifyScheduledActionCommand}. */ export interface ModifyScheduledActionCommandOutput extends ScheduledAction, __MetadataBearer { } declare const ModifyScheduledActionCommand_base: { new (input: ModifyScheduledActionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ModifyScheduledActionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Modifies a scheduled action. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, ModifyScheduledActionCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, ModifyScheduledActionCommand } = require("@aws-sdk/client-redshift"); // CommonJS import * // import type { RedshiftClientConfig } from "@aws-sdk/client-redshift"; * const config = {}; // type is RedshiftClientConfig * const client = new RedshiftClient(config); * const input = { // ModifyScheduledActionMessage * ScheduledActionName: "STRING_VALUE", // required * TargetAction: { // ScheduledActionType * ResizeCluster: { // ResizeClusterMessage * ClusterIdentifier: "STRING_VALUE", // required * ClusterType: "STRING_VALUE", * NodeType: "STRING_VALUE", * NumberOfNodes: Number("int"), * Classic: true || false, * ReservedNodeId: "STRING_VALUE", * TargetReservedNodeOfferingId: "STRING_VALUE", * }, * PauseCluster: { // PauseClusterMessage * ClusterIdentifier: "STRING_VALUE", // required * }, * ResumeCluster: { // ResumeClusterMessage * ClusterIdentifier: "STRING_VALUE", // required * }, * }, * Schedule: "STRING_VALUE", * IamRole: "STRING_VALUE", * ScheduledActionDescription: "STRING_VALUE", * StartTime: new Date("TIMESTAMP"), * EndTime: new Date("TIMESTAMP"), * Enable: true || false, * }; * const command = new ModifyScheduledActionCommand(input); * const response = await client.send(command); * // { // ScheduledAction * // ScheduledActionName: "STRING_VALUE", * // TargetAction: { // ScheduledActionType * // ResizeCluster: { // ResizeClusterMessage * // ClusterIdentifier: "STRING_VALUE", // required * // ClusterType: "STRING_VALUE", * // NodeType: "STRING_VALUE", * // NumberOfNodes: Number("int"), * // Classic: true || false, * // ReservedNodeId: "STRING_VALUE", * // TargetReservedNodeOfferingId: "STRING_VALUE", * // }, * // PauseCluster: { // PauseClusterMessage * // ClusterIdentifier: "STRING_VALUE", // required * // }, * // ResumeCluster: { // ResumeClusterMessage * // ClusterIdentifier: "STRING_VALUE", // required * // }, * // }, * // Schedule: "STRING_VALUE", * // IamRole: "STRING_VALUE", * // ScheduledActionDescription: "STRING_VALUE", * // State: "ACTIVE" || "DISABLED", * // NextInvocations: [ // ScheduledActionTimeList * // new Date("TIMESTAMP"), * // ], * // StartTime: new Date("TIMESTAMP"), * // EndTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param ModifyScheduledActionCommandInput - {@link ModifyScheduledActionCommandInput} * @returns {@link ModifyScheduledActionCommandOutput} * @see {@link ModifyScheduledActionCommandInput} for command's `input` shape. * @see {@link ModifyScheduledActionCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link ClusterNotFoundFault} (client fault) *

The ClusterIdentifier parameter does not refer to an existing cluster. *

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

The scheduled action is not valid.

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

The schedule you submitted isn't valid.

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

The scheduled action cannot be found.

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

The action type specified for a scheduled action is not supported.

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

Your account is not authorized to perform the requested operation.

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

The requested operation isn't supported.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class ModifyScheduledActionCommand extends ModifyScheduledActionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyScheduledActionMessage; output: ScheduledAction; }; sdk: { input: ModifyScheduledActionCommandInput; output: ModifyScheduledActionCommandOutput; }; }; }