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 { MoveReplicationTaskMessage, MoveReplicationTaskResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link MoveReplicationTaskCommand}. */ export interface MoveReplicationTaskCommandInput extends MoveReplicationTaskMessage { } /** * @public * * The output of {@link MoveReplicationTaskCommand}. */ export interface MoveReplicationTaskCommandOutput extends MoveReplicationTaskResponse, __MetadataBearer { } declare const MoveReplicationTaskCommand_base: { new (input: MoveReplicationTaskCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: MoveReplicationTaskCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Moves a replication task from its current replication instance to a different target * replication instance using the specified parameters. The target replication instance must * be created with the same or later DMS version as the current replication instance.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, MoveReplicationTaskCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, MoveReplicationTaskCommand } = 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 = { // MoveReplicationTaskMessage * ReplicationTaskArn: "STRING_VALUE", // required * TargetReplicationInstanceArn: "STRING_VALUE", // required * }; * const command = new MoveReplicationTaskCommand(input); * const response = await client.send(command); * // { // MoveReplicationTaskResponse * // ReplicationTask: { // ReplicationTask * // ReplicationTaskIdentifier: "STRING_VALUE", * // SourceEndpointArn: "STRING_VALUE", * // TargetEndpointArn: "STRING_VALUE", * // ReplicationInstanceArn: "STRING_VALUE", * // MigrationType: "full-load" || "cdc" || "full-load-and-cdc", * // TableMappings: "STRING_VALUE", * // ReplicationTaskSettings: "STRING_VALUE", * // Status: "STRING_VALUE", * // LastFailureMessage: "STRING_VALUE", * // StopReason: "STRING_VALUE", * // ReplicationTaskCreationDate: new Date("TIMESTAMP"), * // ReplicationTaskStartDate: new Date("TIMESTAMP"), * // CdcStartPosition: "STRING_VALUE", * // CdcStopPosition: "STRING_VALUE", * // RecoveryCheckpoint: "STRING_VALUE", * // ReplicationTaskArn: "STRING_VALUE", * // ReplicationTaskStats: { // ReplicationTaskStats * // FullLoadProgressPercent: Number("int"), * // ElapsedTimeMillis: Number("long"), * // TablesLoaded: Number("int"), * // TablesLoading: Number("int"), * // TablesQueued: Number("int"), * // TablesErrored: Number("int"), * // FreshStartDate: new Date("TIMESTAMP"), * // StartDate: new Date("TIMESTAMP"), * // StopDate: new Date("TIMESTAMP"), * // FullLoadStartDate: new Date("TIMESTAMP"), * // FullLoadFinishDate: new Date("TIMESTAMP"), * // }, * // TaskData: "STRING_VALUE", * // TargetReplicationInstanceArn: "STRING_VALUE", * // }, * // }; * * ``` * * @param MoveReplicationTaskCommandInput - {@link MoveReplicationTaskCommandInput} * @returns {@link MoveReplicationTaskCommandOutput} * @see {@link MoveReplicationTaskCommandInput} for command's `input` shape. * @see {@link MoveReplicationTaskCommandOutput} for command's `response` shape. * @see {@link DatabaseMigrationServiceClientResolvedConfig | config} for DatabaseMigrationServiceClient's `config` shape. * * @throws {@link AccessDeniedFault} (client fault) *

DMS was denied access to the endpoint. Check that the * role is correctly configured.

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

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

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

DMS cannot access the KMS key.

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

The resource could not be found.

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

The quota for this resource quota has been exceeded.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @public */ export declare class MoveReplicationTaskCommand extends MoveReplicationTaskCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: MoveReplicationTaskMessage; output: MoveReplicationTaskResponse; }; sdk: { input: MoveReplicationTaskCommandInput; output: MoveReplicationTaskCommandOutput; }; }; }