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 { StartReplicationTaskAssessmentMessage, StartReplicationTaskAssessmentResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link StartReplicationTaskAssessmentCommand}. */ export interface StartReplicationTaskAssessmentCommandInput extends StartReplicationTaskAssessmentMessage { } /** * @public * * The output of {@link StartReplicationTaskAssessmentCommand}. */ export interface StartReplicationTaskAssessmentCommandOutput extends StartReplicationTaskAssessmentResponse, __MetadataBearer { } declare const StartReplicationTaskAssessmentCommand_base: { new (input: StartReplicationTaskAssessmentCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: StartReplicationTaskAssessmentCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Starts the replication task assessment for unsupported data types in the source * database.

*

You can only use this operation for a task if the following conditions are true:

* *

If either of these conditions are not met, an InvalidResourceStateFault * error will result.

*

For information about DMS task assessments, see Creating a task assessment report 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, StartReplicationTaskAssessmentCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, StartReplicationTaskAssessmentCommand } = 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 = { // StartReplicationTaskAssessmentMessage * ReplicationTaskArn: "STRING_VALUE", // required * }; * const command = new StartReplicationTaskAssessmentCommand(input); * const response = await client.send(command); * // { // StartReplicationTaskAssessmentResponse * // 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 StartReplicationTaskAssessmentCommandInput - {@link StartReplicationTaskAssessmentCommandInput} * @returns {@link StartReplicationTaskAssessmentCommandOutput} * @see {@link StartReplicationTaskAssessmentCommandInput} for command's `input` shape. * @see {@link StartReplicationTaskAssessmentCommandOutput} 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 StartReplicationTaskAssessmentCommand extends StartReplicationTaskAssessmentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartReplicationTaskAssessmentMessage; output: StartReplicationTaskAssessmentResponse; }; sdk: { input: StartReplicationTaskAssessmentCommandInput; output: StartReplicationTaskAssessmentCommandOutput; }; }; }