Skip to content

list_data_automation_library_ingestion_jobs

list_data_automation_library_ingestion_jobs(
    library_arn: DataAutomationLibraryArn,
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> ListDataAutomationLibraryIngestionJobsResponse

Lists all data automation library ingestion jobs

Parameters:

  • library_arn (DataAutomationLibraryArn) –

    ARN generated at the server side when a DataAutomationLibrary is created

  • next_token (Optional[NextToken], default: None ) –

    Pagination token for retrieving the next set of results

Raises:

Source code in docs_src/capo_bedrock_data_automation/_services/bedrock_data_automation.py
def list_data_automation_library_ingestion_jobs(
    self,
    library_arn: "capo_bedrock_data_automation.types.data_automation_library_arn.DataAutomationLibraryArn",
    *,
    config_overrides: Optional[BedrockDataAutomationClientConfig] = None,
    max_results: Optional[
        "capo_bedrock_data_automation.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_bedrock_data_automation.types.next_token.NextToken"
    ] = None,
) -> "capo_bedrock_data_automation.types.list_data_automation_library_ingestion_jobs_response.ListDataAutomationLibraryIngestionJobsResponse":
    """Lists all data automation library ingestion jobs

    Args:
        library_arn: ARN generated at the server side when a DataAutomationLibrary is created
        next_token: Pagination token for retrieving the next set of results

    Raises:
        capo_bedrock_data_automation.errors.access_denied_exception.AccessDeniedException: This exception is thrown when a request is denied per access permissions
        capo_bedrock_data_automation.errors.internal_server_exception.InternalServerException: This exception is thrown if there was an unexpected error during processing of request
        capo_bedrock_data_automation.errors.resource_not_found_exception.ResourceNotFoundException: This exception is thrown when a resource referenced by the operation does not exist
        capo_bedrock_data_automation.errors.throttling_exception.ThrottlingException: This exception is thrown when the number of requests exceeds the limit
        capo_bedrock_data_automation.errors.validation_exception.ValidationException: This exception is thrown when the request's input validation fails
        capo_bedrock_data_automation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_bedrock_data_automation.types.list_data_automation_library_ingestion_jobs_request.ListDataAutomationLibraryIngestionJobsRequest]",
    ) -> OperationResponse[
        "capo_bedrock_data_automation.types.list_data_automation_library_ingestion_jobs_response.ListDataAutomationLibraryIngestionJobsResponse"
    ]:
        import capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.list_data_automation_library_ingestion_jobs

        output, http_response = (
            capo_bedrock_data_automation._operations.amazon_bedrock_keystone_build_time_service.list_data_automation_library_ingestion_jobs.list_data_automation_library_ingestion_jobs(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListDataAutomationLibraryIngestionJobs")
    )
    input_: capo_bedrock_data_automation.types.list_data_automation_library_ingestion_jobs_request.ListDataAutomationLibraryIngestionJobsRequest = {
        "library_arn": library_arn
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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