{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-list-model-packages-input-schema.json",
  "title": "ListModelPackagesInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-model-package-api-openapi.yml#/components/schemas/ListModelPackagesInput",
  "type": "object",
  "properties": {
    "CreationTimeAfter": {
      "type": "string",
      "format": "date-time",
      "description": "A filter that returns only model packages created after the specified time (timestamp)."
    },
    "CreationTimeBefore": {
      "type": "string",
      "format": "date-time",
      "description": "A filter that returns only model packages created before the specified time (timestamp)."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of model packages to return in the response."
    },
    "NameContains": {
      "type": "string",
      "description": "A string in the model package name. This filter returns only model packages whose name contains the specified string."
    },
    "ModelApprovalStatus": {
      "type": "string",
      "enum": [
        "Approved",
        "Rejected",
        "PendingManualApproval"
      ],
      "description": "A filter that returns only the model packages with the specified approval status."
    },
    "ModelPackageGroupName": {
      "type": "string",
      "description": "A filter that returns only model versions that belong to the specified model group."
    },
    "ModelPackageType": {
      "type": "string",
      "enum": [
        "Versioned",
        "Unversioned",
        "Both"
      ],
      "description": "A filter that returns only the model packages of the specified type. This can be one of the following values. UNVERSIONED - List only unversioined models. This is the default value if no ModelPackageType is specified. VERSIONED - List only versioned models. BOTH - List both versioned and unversioned models."
    },
    "NextToken": {
      "type": "string",
      "description": "If the response to a previous ListModelPackages request was truncated, the response includes a NextToken. To retrieve the next set of model packages, use the token in the next request."
    },
    "SortBy": {
      "type": "string",
      "enum": [
        "Name",
        "CreationTime"
      ],
      "description": "The parameter by which to sort the results. The default is CreationTime."
    },
    "SortOrder": {
      "type": "string",
      "enum": [
        "Ascending",
        "Descending"
      ],
      "description": "The sort order for the results. The default is Ascending."
    }
  }
}