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
7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 | |