Skip to content

describe_data_ingestion_job async

describe_data_ingestion_job(
    job_id: IngestionJobId,
    *,
    config_overrides: Optional[AsyncLookoutEquipmentClientConfig] = None,
) -> DescribeDataIngestionJobResponse

Provides information on a specific data ingestion job such as creation time, dataset ARN, and status.

Parameters:

Raises:

  • AccessDeniedException –

    The request could not be completed because you do not have access to the resource.

  • InternalServerException –

    Processing of the request has failed because of an unknown error, exception or failure.

  • ResourceNotFoundException –

    The resource requested could not be found. Verify the resource ID and retry your request.

  • ThrottlingException –

    The request was denied due to request throttling.

  • ValidationException –

    The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_lookoutequipment/_services/async_lookout_equipment.py
async def describe_data_ingestion_job(
    self,
    job_id: "capo_lookoutequipment.types.ingestion_job_id.IngestionJobId",
    *,
    config_overrides: Optional[AsyncLookoutEquipmentClientConfig] = None,
) -> "capo_lookoutequipment.types.describe_data_ingestion_job_response.DescribeDataIngestionJobResponse":
    """<p>Provides information on a specific data ingestion job such as creation time, dataset ARN, and status.</p>

    Args:
        job_id: <p>The job ID of the data ingestion job. </p>

    Raises:
        capo_lookoutequipment.errors.access_denied_exception.AccessDeniedException: <p>The request could not be completed because you do not have access to the resource. </p>
        capo_lookoutequipment.errors.internal_server_exception.InternalServerException: <p> Processing of the request has failed because of an unknown error, exception or failure. </p>
        capo_lookoutequipment.errors.resource_not_found_exception.ResourceNotFoundException: <p> The resource requested could not be found. Verify the resource ID and retry your request. </p>
        capo_lookoutequipment.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_lookoutequipment.errors.validation_exception.ValidationException: <p> The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized. </p>
        capo_lookoutequipment.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_lookoutequipment.types.describe_data_ingestion_job_request.DescribeDataIngestionJobRequest]",
    ) -> AsyncOperationResponse[
        "capo_lookoutequipment.types.describe_data_ingestion_job_response.DescribeDataIngestionJobResponse"
    ]:
        import capo_lookoutequipment._operations.aws_lookout_equipment_frontend_service.describe_data_ingestion_job

        (
            output,
            http_response,
        ) = await capo_lookoutequipment._operations.aws_lookout_equipment_frontend_service.describe_data_ingestion_job.async_describe_data_ingestion_job(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeDataIngestionJob")
    )
    input_: capo_lookoutequipment.types.describe_data_ingestion_job_request.DescribeDataIngestionJobRequest = {
        "job_id": job_id
    }

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