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

Modifies the specified replication task.

*

You can't modify the task endpoints. The task must be stopped before you can modify it.

*

For more information about DMS tasks, see Working with Migration Tasks in the * Database Migration Service User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, ModifyReplicationTaskCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, ModifyReplicationTaskCommand } = 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 = { // ModifyReplicationTaskMessage * ReplicationTaskArn: "STRING_VALUE", // required * ReplicationTaskIdentifier: "STRING_VALUE", * MigrationType: "full-load" || "cdc" || "full-load-and-cdc", * TableMappings: "STRING_VALUE", * ReplicationTaskSettings: "STRING_VALUE", * CdcStartTime: new Date("TIMESTAMP"), * CdcStartPosition: "STRING_VALUE", * CdcStopPosition: "STRING_VALUE", * TaskData: "STRING_VALUE", * }; * const command = new ModifyReplicationTaskCommand(input); * const response = await client.send(command); * // { // ModifyReplicationTaskResponse * // 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 ModifyReplicationTaskCommandInput - {@link ModifyReplicationTaskCommandInput} * @returns {@link ModifyReplicationTaskCommandOutput} * @see {@link ModifyReplicationTaskCommandInput} for command's `input` shape. * @see {@link ModifyReplicationTaskCommandOutput} 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 KMSKeyNotAccessibleFault} (client fault) *

DMS cannot access the KMS key.

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

The resource you are attempting to create already exists.

* * @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 ModifyReplicationTaskCommand extends ModifyReplicationTaskCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ModifyReplicationTaskMessage; output: ModifyReplicationTaskResponse; }; sdk: { input: ModifyReplicationTaskCommandInput; output: ModifyReplicationTaskCommandOutput; }; }; }