Skip to content

describe_replication_table_statistics

describe_replication_table_statistics(
    replication_config_arn: String,
    *,
    config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
    max_records: Optional[IntegerOptional] = None,
    marker: Optional[String] = None,
    filters: Optional[FilterList] = None,
) -> DescribeReplicationTableStatisticsResponse

Returns table and schema statistics for one or more provisioned replications that use a given DMS Serverless replication configuration.

Parameters:

  • replication_config_arn (String) –

    The replication config to describe.

  • max_records (Optional[IntegerOptional], default: None ) –

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

  • marker (Optional[String], default: None ) –

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

  • filters (Optional[FilterList], default: None ) –

    Filters applied to the replication table statistics.

Raises:

Source code in docs_src/capo_database_migration_service/_services/database_migration_service.py
def describe_replication_table_statistics(
    self,
    replication_config_arn: "capo_database_migration_service.types.string.String",
    *,
    config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
    max_records: Optional[
        "capo_database_migration_service.types.integer_optional.IntegerOptional"
    ] = None,
    marker: Optional["capo_database_migration_service.types.string.String"] = None,
    filters: Optional[
        "capo_database_migration_service.types.filter_list.FilterList"
    ] = None,
) -> "capo_database_migration_service.types.describe_replication_table_statistics_response.DescribeReplicationTableStatisticsResponse":
    """<p>Returns table and schema statistics for one or more provisioned replications that use a given DMS Serverless replication configuration.</p>

    Args:
        replication_config_arn: <p>The replication config to describe.</p>
        max_records: <p>The maximum number of records to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. </p>
        marker: <p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p>
        filters: <p>Filters applied to the replication table statistics.</p>

    Raises:
        capo_database_migration_service.errors.invalid_resource_state_fault.InvalidResourceStateFault: <p>The resource is in a state that prevents it from being used for database migration.</p>
        capo_database_migration_service.errors.resource_not_found_fault.ResourceNotFoundFault: <p>The resource could not be found.</p>
        capo_database_migration_service.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_database_migration_service.types.describe_replication_table_statistics_message.DescribeReplicationTableStatisticsMessage]",
    ) -> OperationResponse[
        "capo_database_migration_service.types.describe_replication_table_statistics_response.DescribeReplicationTableStatisticsResponse"
    ]:
        import capo_database_migration_service._operations.amazon_dm_sv20160101.describe_replication_table_statistics

        output, http_response = (
            capo_database_migration_service._operations.amazon_dm_sv20160101.describe_replication_table_statistics.describe_replication_table_statistics(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeReplicationTableStatistics")
    )
    input_: capo_database_migration_service.types.describe_replication_table_statistics_message.DescribeReplicationTableStatisticsMessage = {
        "replication_config_arn": replication_config_arn
    }
    if max_records is not None:
        input_["max_records"] = max_records
    if marker is not None:
        input_["marker"] = marker
    if filters is not None:
        input_["filters"] = filters

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output