Skip to content

get_bill_of_materials_import_job

get_bill_of_materials_import_job(
    instance_id: UUID,
    job_id: UUID,
    *,
    config_overrides: Optional[SupplyChainClientConfig] = None,
) -> GetBillOfMaterialsImportJobResponse

Get status and details of a BillOfMaterialsImportJob.

Parameters:

  • instance_id (UUID) –

    The AWS Supply Chain instance identifier.

  • job_id (UUID) –

    The BillOfMaterialsImportJob identifier.

Raises:

Examples:

Invoke GetBillOfMaterialsImportJob for a successful job

>>> client.get_bill_of_materials_import_job(instance_id='60f82bbd-71f7-4fcd-a941-472f574c5243', job_id='f79b359b-1515-4436-a3bf-bae7b33e47b4')
Invoke GetBillOfMaterialsImportJob for an in-progress job
>>> client.get_bill_of_materials_import_job(instance_id='60f82bbd-71f7-4fcd-a941-472f574c5243', job_id='f79b359b-1515-4436-a3bf-bae7b33e47b4')
Source code in docs_src/capo_supplychain/_services/supply_chain.py
def get_bill_of_materials_import_job(
    self,
    instance_id: "capo_supplychain.types.uuid.UUID",
    job_id: "capo_supplychain.types.uuid.UUID",
    *,
    config_overrides: Optional[SupplyChainClientConfig] = None,
) -> "capo_supplychain.types.get_bill_of_materials_import_job_response.GetBillOfMaterialsImportJobResponse":
    """<p>Get status and details of a BillOfMaterialsImportJob.</p>

    Args:
        instance_id: <p>The AWS Supply Chain instance identifier.</p>
        job_id: <p>The BillOfMaterialsImportJob identifier.</p>

    Raises:
        capo_supplychain.errors.access_denied_exception.AccessDeniedException: <p>You do not have the required privileges to perform this action.</p>
        capo_supplychain.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_supplychain.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_supplychain.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_supplychain.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Request would cause a service quota to be exceeded.</p>
        capo_supplychain.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_supplychain.errors.validation_exception.ValidationException: <p>The input does not satisfy the constraints specified by an AWS service.</p>
        capo_supplychain.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Invoke GetBillOfMaterialsImportJob for a successful job

        >>> client.get_bill_of_materials_import_job(instance_id='60f82bbd-71f7-4fcd-a941-472f574c5243', job_id='f79b359b-1515-4436-a3bf-bae7b33e47b4')
        Invoke GetBillOfMaterialsImportJob for an in-progress job

        >>> client.get_bill_of_materials_import_job(instance_id='60f82bbd-71f7-4fcd-a941-472f574c5243', job_id='f79b359b-1515-4436-a3bf-bae7b33e47b4')
    """

    def _handler(
        req: "OperationRequest[capo_supplychain.types.get_bill_of_materials_import_job_request.GetBillOfMaterialsImportJobRequest]",
    ) -> OperationResponse[
        "capo_supplychain.types.get_bill_of_materials_import_job_response.GetBillOfMaterialsImportJobResponse"
    ]:
        import capo_supplychain._operations.galaxy_public_api_gateway.get_bill_of_materials_import_job

        output, http_response = (
            capo_supplychain._operations.galaxy_public_api_gateway.get_bill_of_materials_import_job.get_bill_of_materials_import_job(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetBillOfMaterialsImportJob")
    )
    input_: capo_supplychain.types.get_bill_of_materials_import_job_request.GetBillOfMaterialsImportJobRequest = {
        "instance_id": instance_id,
        "job_id": job_id,
    }

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