import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CancelResizeMessage, ResizeProgressMessage } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CancelResizeCommand}. */ export interface CancelResizeCommandInput extends CancelResizeMessage { } /** * @public * * The output of {@link CancelResizeCommand}. */ export interface CancelResizeCommandOutput extends ResizeProgressMessage, __MetadataBearer { } declare const CancelResizeCommand_base: { new (input: CancelResizeCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CancelResizeCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Cancels a resize operation for a cluster.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, CancelResizeCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, CancelResizeCommand } = 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 = { // CancelResizeMessage * ClusterIdentifier: "STRING_VALUE", // required * }; * const command = new CancelResizeCommand(input); * const response = await client.send(command); * // { // ResizeProgressMessage * // TargetNodeType: "STRING_VALUE", * // TargetNumberOfNodes: Number("int"), * // TargetClusterType: "STRING_VALUE", * // Status: "STRING_VALUE", * // ImportTablesCompleted: [ // ImportTablesCompleted * // "STRING_VALUE", * // ], * // ImportTablesInProgress: [ // ImportTablesInProgress * // "STRING_VALUE", * // ], * // ImportTablesNotStarted: [ // ImportTablesNotStarted * // "STRING_VALUE", * // ], * // AvgResizeRateInMegaBytesPerSecond: Number("double"), * // TotalResizeDataInMegaBytes: Number("long"), * // ProgressInMegaBytes: Number("long"), * // ElapsedTimeInSeconds: Number("long"), * // EstimatedTimeToCompletionInSeconds: Number("long"), * // ResizeType: "STRING_VALUE", * // Message: "STRING_VALUE", * // TargetEncryptionType: "STRING_VALUE", * // DataTransferProgressPercent: Number("double"), * // }; * * ``` * * @param CancelResizeCommandInput - {@link CancelResizeCommandInput} * @returns {@link CancelResizeCommandOutput} * @see {@link CancelResizeCommandInput} for command's `input` shape. * @see {@link CancelResizeCommandOutput} 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 InvalidClusterStateFault} (client fault) *

The specified cluster is not in the available state.

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

A resize operation for the specified cluster is not found.

* * @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 CancelResizeCommand extends CancelResizeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelResizeMessage; output: ResizeProgressMessage; }; sdk: { input: CancelResizeCommandInput; output: CancelResizeCommandOutput; }; }; }