import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DatabaseMigrationServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DatabaseMigrationServiceClient"; import type { ReloadTablesMessage, ReloadTablesResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ReloadTablesCommand}. */ export interface ReloadTablesCommandInput extends ReloadTablesMessage { } /** * @public * * The output of {@link ReloadTablesCommand}. */ export interface ReloadTablesCommandOutput extends ReloadTablesResponse, __MetadataBearer { } declare const ReloadTablesCommand_base: { new (input: ReloadTablesCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ReloadTablesCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Reloads the target database table with the source data.

*

You can only use this operation with a task in the RUNNING state, otherwise * the service will throw an InvalidResourceStateFault exception.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, ReloadTablesCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, ReloadTablesCommand } = require("@aws-sdk/client-database-migration-service"); // CommonJS import * // import type { DatabaseMigrationServiceClientConfig } from "@aws-sdk/client-database-migration-service"; * const config = {}; // type is DatabaseMigrationServiceClientConfig * const client = new DatabaseMigrationServiceClient(config); * const input = { // ReloadTablesMessage * ReplicationTaskArn: "STRING_VALUE", // required * TablesToReload: [ // TableListToReload // required * { // TableToReload * SchemaName: "STRING_VALUE", // required * TableName: "STRING_VALUE", // required * }, * ], * ReloadOption: "data-reload" || "validate-only", * }; * const command = new ReloadTablesCommand(input); * const response = await client.send(command); * // { // ReloadTablesResponse * // ReplicationTaskArn: "STRING_VALUE", * // }; * * ``` * * @param ReloadTablesCommandInput - {@link ReloadTablesCommandInput} * @returns {@link ReloadTablesCommandOutput} * @see {@link ReloadTablesCommandInput} for command's `input` shape. * @see {@link ReloadTablesCommandOutput} for command's `response` shape. * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. * * @throws {@link InvalidResourceStateFault} (client fault) *

The resource is in a state that prevents it from being used for database migration.

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

The resource could not be found.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @public */ export declare class ReloadTablesCommand extends ReloadTablesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ReloadTablesMessage; output: ReloadTablesResponse; }; sdk: { input: ReloadTablesCommandInput; output: ReloadTablesCommandOutput; }; }; }