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

Returns table statistics on the database migration task, including table name, rows * inserted, rows updated, and rows deleted.

*

Note that the "last updated" column the DMS console only indicates the time that DMS * last updated the table statistics record for a table. It does not indicate the time of the * last update to the table.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DatabaseMigrationServiceClient, DescribeTableStatisticsCommand } from "@aws-sdk/client-database-migration-service"; // ES Modules import * // const { DatabaseMigrationServiceClient, DescribeTableStatisticsCommand } = 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 = { // DescribeTableStatisticsMessage * ReplicationTaskArn: "STRING_VALUE", // required * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * Filters: [ // FilterList * { // Filter * Name: "STRING_VALUE", // required * Values: [ // FilterValueList // required * "STRING_VALUE", * ], * }, * ], * }; * const command = new DescribeTableStatisticsCommand(input); * const response = await client.send(command); * // { // DescribeTableStatisticsResponse * // ReplicationTaskArn: "STRING_VALUE", * // TableStatistics: [ // TableStatisticsList * // { // TableStatistics * // SchemaName: "STRING_VALUE", * // TableName: "STRING_VALUE", * // Inserts: Number("long"), * // Deletes: Number("long"), * // Updates: Number("long"), * // Ddls: Number("long"), * // AppliedInserts: Number("long"), * // AppliedDeletes: Number("long"), * // AppliedUpdates: Number("long"), * // AppliedDdls: Number("long"), * // FullLoadRows: Number("long"), * // FullLoadCondtnlChkFailedRows: Number("long"), * // FullLoadErrorRows: Number("long"), * // FullLoadStartTime: new Date("TIMESTAMP"), * // FullLoadEndTime: new Date("TIMESTAMP"), * // FullLoadReloaded: true || false, * // LastUpdateTime: new Date("TIMESTAMP"), * // TableState: "STRING_VALUE", * // ValidationPendingRecords: Number("long"), * // ValidationFailedRecords: Number("long"), * // ValidationSuspendedRecords: Number("long"), * // ValidationState: "STRING_VALUE", * // ValidationStateDetails: "STRING_VALUE", * // ResyncState: "STRING_VALUE", * // ResyncRowsAttempted: Number("long"), * // ResyncRowsSucceeded: Number("long"), * // ResyncRowsFailed: Number("long"), * // ResyncProgress: Number("double"), * // }, * // ], * // Marker: "STRING_VALUE", * // }; * * ``` * * @param DescribeTableStatisticsCommandInput - {@link DescribeTableStatisticsCommandInput} * @returns {@link DescribeTableStatisticsCommandOutput} * @see {@link DescribeTableStatisticsCommandInput} for command's `input` shape. * @see {@link DescribeTableStatisticsCommandOutput} 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 ResourceNotFoundFault} (client fault) *

The resource could not be found.

* * @throws {@link DatabaseMigrationServiceServiceException} *

Base exception class for all service exceptions from DatabaseMigrationService service.

* * * @example Describe table statistics * ```javascript * // Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted. * const input = { * Marker: "", * MaxRecords: 123, * ReplicationTaskArn: "" * }; * const command = new DescribeTableStatisticsCommand(input); * const response = await client.send(command); * /* response is * { * Marker: "", * ReplicationTaskArn: "", * TableStatistics: [] * } * *\/ * ``` * * @public */ export declare class DescribeTableStatisticsCommand extends DescribeTableStatisticsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeTableStatisticsMessage; output: DescribeTableStatisticsResponse; }; sdk: { input: DescribeTableStatisticsCommandInput; output: DescribeTableStatisticsCommandOutput; }; }; }