import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeTableRestoreStatusMessage, TableRestoreStatusMessage } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeTableRestoreStatusCommand}. */ export interface DescribeTableRestoreStatusCommandInput extends DescribeTableRestoreStatusMessage { } /** * @public * * The output of {@link DescribeTableRestoreStatusCommand}. */ export interface DescribeTableRestoreStatusCommandOutput extends TableRestoreStatusMessage, __MetadataBearer { } declare const DescribeTableRestoreStatusCommand_base: { new (input: DescribeTableRestoreStatusCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeTableRestoreStatusCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Lists the status of one or more table restore requests made using the RestoreTableFromClusterSnapshot API action. If you don't specify a value * for the TableRestoreRequestId parameter, then * DescribeTableRestoreStatus returns the status of all table restore * requests ordered by the date and time of the request in ascending order. Otherwise * DescribeTableRestoreStatus returns the status of the table specified by * TableRestoreRequestId.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, DescribeTableRestoreStatusCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, DescribeTableRestoreStatusCommand } = 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 = { // DescribeTableRestoreStatusMessage * ClusterIdentifier: "STRING_VALUE", * TableRestoreRequestId: "STRING_VALUE", * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * }; * const command = new DescribeTableRestoreStatusCommand(input); * const response = await client.send(command); * // { // TableRestoreStatusMessage * // TableRestoreStatusDetails: [ // TableRestoreStatusList * // { // TableRestoreStatus * // TableRestoreRequestId: "STRING_VALUE", * // Status: "PENDING" || "IN_PROGRESS" || "SUCCEEDED" || "FAILED" || "CANCELED", * // Message: "STRING_VALUE", * // RequestTime: new Date("TIMESTAMP"), * // ProgressInMegaBytes: Number("long"), * // TotalDataInMegaBytes: Number("long"), * // ClusterIdentifier: "STRING_VALUE", * // SnapshotIdentifier: "STRING_VALUE", * // SourceDatabaseName: "STRING_VALUE", * // SourceSchemaName: "STRING_VALUE", * // SourceTableName: "STRING_VALUE", * // TargetDatabaseName: "STRING_VALUE", * // TargetSchemaName: "STRING_VALUE", * // NewTableName: "STRING_VALUE", * // }, * // ], * // Marker: "STRING_VALUE", * // }; * * ``` * * @param DescribeTableRestoreStatusCommandInput - {@link DescribeTableRestoreStatusCommandInput} * @returns {@link DescribeTableRestoreStatusCommandOutput} * @see {@link DescribeTableRestoreStatusCommandInput} for command's `input` shape. * @see {@link DescribeTableRestoreStatusCommandOutput} 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 TableRestoreNotFoundFault} (client fault) *

The specified TableRestoreRequestId value was not found.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class DescribeTableRestoreStatusCommand extends DescribeTableRestoreStatusCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeTableRestoreStatusMessage; output: TableRestoreStatusMessage; }; sdk: { input: DescribeTableRestoreStatusCommandInput; output: DescribeTableRestoreStatusCommandOutput; }; }; }