Returns a paginated list of individual assessments based on filter settings.
These filter settings can specify a combination of premigration assessment runs, migration tasks, and assessment status values.
Parameters:
-
filters
(Optional[FilterList], default:
None
)
–
Filters applied to the individual assessments described in the form of key-value pairs.
Valid filter names: replication-task-assessment-run-arn, replication-task-arn, status
-
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.
Raises:
Source code in docs_src/capo_database_migration_service/_services/database_migration_service.py
| def describe_replication_task_individual_assessments(
self,
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = None,
filters: Optional[
"capo_database_migration_service.types.filter_list.FilterList"
] = None,
max_records: Optional[
"capo_database_migration_service.types.integer_optional.IntegerOptional"
] = None,
marker: Optional["capo_database_migration_service.types.string.String"] = None,
) -> "capo_database_migration_service.types.describe_replication_task_individual_assessments_response.DescribeReplicationTaskIndividualAssessmentsResponse":
"""<p>Returns a paginated list of individual assessments based on filter settings.</p> <p>These filter settings can specify a combination of premigration assessment runs, migration tasks, and assessment status values.</p>
Args:
filters: <p>Filters applied to the individual assessments described in the form of key-value pairs.</p> <p>Valid filter names: <code>replication-task-assessment-run-arn</code>, <code>replication-task-arn</code>, <code>status</code> </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>
Raises:
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_task_individual_assessments_message.DescribeReplicationTaskIndividualAssessmentsMessage]",
) -> OperationResponse[
"capo_database_migration_service.types.describe_replication_task_individual_assessments_response.DescribeReplicationTaskIndividualAssessmentsResponse"
]:
import capo_database_migration_service._operations.amazon_dm_sv20160101.describe_replication_task_individual_assessments
output, http_response = (
capo_database_migration_service._operations.amazon_dm_sv20160101.describe_replication_task_individual_assessments.describe_replication_task_individual_assessments(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DescribeReplicationTaskIndividualAssessments"),
)
input_: capo_database_migration_service.types.describe_replication_task_individual_assessments_message.DescribeReplicationTaskIndividualAssessmentsMessage = {}
if filters is not None:
input_["filters"] = filters
if max_records is not None:
input_["max_records"] = max_records
if marker is not None:
input_["marker"] = marker
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|