list_model_invocation_jobs
async
¶
list_model_invocation_jobs(
*,
config_overrides: Optional[AsyncBedrockClientConfig] = None,
submit_time_after: Optional[Timestamp] = None,
submit_time_before: Optional[Timestamp] = None,
status_equals: Optional[ModelInvocationJobStatus] = None,
name_contains: Optional[ModelInvocationJobName] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
sort_by: Optional[SortJobsBy] = None,
sort_order: Optional[SortOrder] = None,
) -> ListModelInvocationJobsResponse
Lists all batch inference jobs in the account. For more information, see View details about a batch inference job.
Parameters:
-
submit_time_after(Optional[Timestamp], default:None) –Specify a time to filter for batch inference jobs that were submitted after the time you specify.
-
submit_time_before(Optional[Timestamp], default:None) –Specify a time to filter for batch inference jobs that were submitted before the time you specify.
-
status_equals(Optional[ModelInvocationJobStatus], default:None) –Specify a status to filter for batch inference jobs whose statuses match the string you specify.
The following statuses are possible:
-
Submitted – This job has been submitted to a queue for validation.
-
Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following:
-
Your IAM service role has access to the Amazon S3 buckets containing your files.
-
Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the
modelInputvalue matches the request body for the model. -
Your files fulfill the requirements for file size and number of records. For more information, see Quotas for Amazon Bedrock.
-
-
Scheduled – This job has been validated and is now in a queue. The job will automatically start when it reaches its turn.
-
Expired – This job timed out because it was scheduled but didn't begin before the set timeout duration. Submit a new job request.
-
InProgress – This job has begun. You can start viewing the results in the output S3 location.
-
Completed – This job has successfully completed. View the output files in the output S3 location.
-
PartiallyCompleted – This job has partially completed. Not all of your records could be processed in time. View the output files in the output S3 location.
-
Failed – This job has failed. Check the failure message for any further details. For further assistance, reach out to the Amazon Web Services Support Center.
-
Stopped – This job was stopped by a user.
-
Stopping – This job is being stopped by a user.
-
-
name_contains(Optional[ModelInvocationJobName], default:None) –Specify a string to filter for batch inference jobs whose names contain the string.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return. If there are more results than the number that you specify, a
nextTokenvalue is returned. Use thenextTokenin a request to return the next batch of results. -
next_token(Optional[PaginationToken], default:None) –If there were more results than the value you specified in the
maxResultsfield in a previousListModelInvocationJobsrequest, the response would have returned anextTokenvalue. To see the next batch of results, send thenextTokenvalue in another request. -
sort_by(Optional[SortJobsBy], default:None) –An attribute by which to sort the results.
-
sort_order(Optional[SortOrder], default:None) –Specifies whether to sort the results by ascending or descending order.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/async_bedrock.py
6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 | |