Skip to content

batch_get_data_quality_result_v2 async

batch_get_data_quality_result_v2(
    result_ids: DataQualityResultV2IdList,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> BatchGetDataQualityResultV2Response

Retrieves a list of data quality results for the specified result IDs. You can specify up to 100 result IDs in a single request.

Parameters:

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def batch_get_data_quality_result_v2(
    self,
    result_ids: "capo_glue.types.data_quality_result_v2_id_list.DataQualityResultV2IdList",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.batch_get_data_quality_result_v2_response.BatchGetDataQualityResultV2Response":
    """<p>Retrieves a list of data quality results for the specified result IDs. You can specify up to 100 result IDs in a single request.</p>

    Args:
        result_ids: <p>A list of unique result IDs for the data quality results.</p>

    Raises:
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.batch_get_data_quality_result_v2_request.BatchGetDataQualityResultV2Request]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.batch_get_data_quality_result_v2_response.BatchGetDataQualityResultV2Response"
    ]:
        import capo_glue._operations.aws_glue.batch_get_data_quality_result_v2

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.batch_get_data_quality_result_v2.async_batch_get_data_quality_result_v2(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_glue.types.batch_get_data_quality_result_v2_response.BatchGetDataQualityResultV2Response",
    ) -> dict[str, Any]:
        import capo_glue.types.batch_get_data_quality_result_v2_response

        return capo_glue.types.batch_get_data_quality_result_v2_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "BatchGetDataQualityResultV2", redact_output=_redact_output
        ),
    )
    input_: capo_glue.types.batch_get_data_quality_result_v2_request.BatchGetDataQualityResultV2Request = {
        "result_ids": result_ids
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output