list_model_invocation_jobs
¶
list_model_invocation_jobs(
*,
config_overrides: Optional[BedrockClientConfig] = 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/bedrock.py
7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 | |