Skip to content

get_id_mapping_job

get_id_mapping_job(
    workflow_name: EntityNameOrIdMappingWorkflowArn,
    job_id: JobId,
    *,
    config_overrides: Optional[EntityResolutionClientConfig] = None,
) -> GetIdMappingJobOutput

Returns the status, metrics, and errors (if there are any) that are associated with a job.

Parameters:

Raises:

Source code in docs_src/capo_entityresolution/_services/entity_resolution.py
def get_id_mapping_job(
    self,
    workflow_name: "capo_entityresolution.types.entity_name_or_id_mapping_workflow_arn.EntityNameOrIdMappingWorkflowArn",
    job_id: "capo_entityresolution.types.job_id.JobId",
    *,
    config_overrides: Optional[EntityResolutionClientConfig] = None,
) -> "capo_entityresolution.types.get_id_mapping_job_output.GetIdMappingJobOutput":
    """<p>Returns the status, metrics, and errors (if there are any) that are associated with a job.</p>

    Args:
        workflow_name: <p>The name of the workflow.</p>
        job_id: <p>The ID of the job.</p>

    Raises:
        capo_entityresolution.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action. </p>
        capo_entityresolution.errors.internal_server_exception.InternalServerException: <p>This exception occurs when there is an internal failure in the Entity Resolution service. </p>
        capo_entityresolution.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource couldn't be found. </p>
        capo_entityresolution.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. </p>
        capo_entityresolution.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by Entity Resolution. </p>
        capo_entityresolution.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_entityresolution.types.get_id_mapping_job_input.GetIdMappingJobInput]",
    ) -> OperationResponse[
        "capo_entityresolution.types.get_id_mapping_job_output.GetIdMappingJobOutput"
    ]:
        import capo_entityresolution._operations.aws_venice_service.get_id_mapping_job

        output, http_response = (
            capo_entityresolution._operations.aws_venice_service.get_id_mapping_job.get_id_mapping_job(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetIdMappingJob")
    )
    input_: capo_entityresolution.types.get_id_mapping_job_input.GetIdMappingJobInput = {
        "workflow_name": workflow_name,
        "job_id": job_id,
    }

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