Bedrock / Client / list_model_customization_jobs

list_model_customization_jobs#

Bedrock.Client.list_model_customization_jobs(**kwargs)#

Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria.

For more information, see Custom models in the Bedrock User Guide.

See also: AWS API Documentation

Request Syntax

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

  • creationTimeBefore (datetime) – Return customization jobs created before the specified time.

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

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

  • maxResults (integer) – Maximum number of results to return in the response.

  • nextToken (string) – Continuation token from the previous response, for Amazon Bedrock to list the next set of results.

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

  • sortOrder (string) – The sort order of the results.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'modelCustomizationJobSummaries': [
        {
            'jobArn': 'string',
            'baseModelArn': 'string',
            'jobName': 'string',
            'status': 'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
            'lastModifiedTime': datetime(2015, 1, 1),
            'creationTime': datetime(2015, 1, 1),
            'endTime': datetime(2015, 1, 1),
            'customModelArn': 'string',
            'customModelName': 'string',
            'customizationType': 'FINE_TUNING'|'CONTINUED_PRE_TRAINING'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      Page continuation token to use in the next request.

    • modelCustomizationJobSummaries (list) –

      Job summaries.

      • (dict) –

        Information about one customization job

        • jobArn (string) –

          ARN of the customization job.

        • baseModelArn (string) –

          ARN of the base model.

        • jobName (string) –

          Name of the customization job.

        • status (string) –

          Status of the customization job.

        • lastModifiedTime (datetime) –

          Time that the customization job was last modified.

        • creationTime (datetime) –

          Creation time of the custom model.

        • endTime (datetime) –

          Time that the customization job ended.

        • customModelArn (string) –

          ARN of the custom model.

        • customModelName (string) –

          Name of the custom model.

        • customizationType (string) –

          Specifies whether to carry out continued pre-training of a model or whether to fine-tune it. For more information, see Custom models.

Exceptions

  • Bedrock.Client.exceptions.AccessDeniedException

  • Bedrock.Client.exceptions.ValidationException

  • Bedrock.Client.exceptions.InternalServerException

  • Bedrock.Client.exceptions.ThrottlingException