Bedrock / Client / list_model_import_jobs

list_model_import_jobs#

Bedrock.Client.list_model_import_jobs(**kwargs)#

Returns a list of import jobs you’ve submitted. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.

See also: AWS API Documentation

Request Syntax

response = client.list_model_import_jobs(
    creationTimeAfter=datetime(2015, 1, 1),
    creationTimeBefore=datetime(2015, 1, 1),
    statusEquals='InProgress'|'Completed'|'Failed',
    nameContains='string',
    maxResults=123,
    nextToken='string',
    sortBy='CreationTime',
    sortOrder='Ascending'|'Descending'
)
Parameters:
  • creationTimeAfter (datetime) – Return import jobs that were created after the specified time.

  • creationTimeBefore (datetime) – Return import jobs that were created before the specified time.

  • statusEquals (string) – Return imported jobs with the specified status.

  • nameContains (string) – Return imported jobs only if the job name contains these characters.

  • maxResults (integer) – The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

  • nextToken (string) – If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

  • sortBy (string) – The field to sort by in the returned list of imported jobs.

  • sortOrder (string) – Specifies whether to sort the results in ascending or descending order.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'modelImportJobSummaries': [
        {
            'jobArn': 'string',
            'jobName': 'string',
            'status': 'InProgress'|'Completed'|'Failed',
            'lastModifiedTime': datetime(2015, 1, 1),
            'creationTime': datetime(2015, 1, 1),
            'endTime': datetime(2015, 1, 1),
            'importedModelArn': 'string',
            'importedModelName': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

    • modelImportJobSummaries (list) –

      Import job summaries.

      • (dict) –

        Information about the import job.

        • jobArn (string) –

          The Amazon Resource Name (ARN) of the import job.

        • jobName (string) –

          The name of the import job.

        • status (string) –

          The status of the imported job.

        • lastModifiedTime (datetime) –

          The time when the import job was last modified.

        • creationTime (datetime) –

          The time import job was created.

        • endTime (datetime) –

          The time when import job ended.

        • importedModelArn (string) –

          The Amazon resource Name (ARN) of the imported model.

        • importedModelName (string) –

          The name of the imported model.

Exceptions