Skip to content

get_data_quality_result_v2

get_data_quality_result_v2(
    result_id: HashString, *, config_overrides: Optional[GlueClientConfig] = None
) -> GetDataQualityResultV2Response

Retrieves the result of a data quality rule evaluation published from any supported data platform.

Parameters:

  • result_id (HashString) –

    A unique result ID for the data quality result.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def get_data_quality_result_v2(
    self,
    result_id: "capo_glue.types.hash_string.HashString",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.get_data_quality_result_v2_response.GetDataQualityResultV2Response":
    """<p>Retrieves the result of a data quality rule evaluation published from any supported data platform.</p>

    Args:
        result_id: <p>A unique result ID for the data quality result.</p>

    Raises:
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        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.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.get_data_quality_result_v2_request.GetDataQualityResultV2Request]",
    ) -> OperationResponse[
        "capo_glue.types.get_data_quality_result_v2_response.GetDataQualityResultV2Response"
    ]:
        import capo_glue._operations.aws_glue.get_data_quality_result_v2

        output, http_response = (
            capo_glue._operations.aws_glue.get_data_quality_result_v2.get_data_quality_result_v2(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

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

        return capo_glue.types.get_data_quality_result_v2_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetDataQualityResultV2", redact_output=_redact_output),
    )
    input_: capo_glue.types.get_data_quality_result_v2_request.GetDataQualityResultV2Request = {
        "result_id": result_id
    }

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