{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transcribe/json-schema/amazon-transcribe-list-language-models-response-schema.json",
  "title": "ListLanguageModelsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transcribe-language-model-api-openapi.yml#/components/schemas/ListLanguageModelsResponse",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "If NextToken is present in your response, it indicates that not all results are displayed. To view the next set of results, copy the string associated with the NextToken parameter in your results output, then run your request again including NextToken with the value of the copied string. Repeat as needed to view all your results."
    },
    "Models": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LanguageModel"
      },
      "description": "Provides information about the custom language models that match the criteria specified in your request."
    }
  },
  "$defs": {
    "EncryptionConfiguration": {
      "type": "object",
      "properties": {
        "KMSEncryptionContext": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A map of plain text, non-secret key:value pairs, known as encryption context pairs, that provide an added layer of security for your data. For more information, see KMS encryption context."
        },
        "KMSKey": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the KMS key you want to use to encrypt your resource artifacts. Only full KMS key ARN format is supported. KMS key ARNs have the format arn:partition:kms:region:account:key/key-id. For example: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. For more information, see KMS key ARNs."
        }
      },
      "required": [
        "KMSKey"
      ]
    },
    "InputDataConfig": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The Amazon S3 location (URI) of the text files you want to use to train your custom language model. Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-training-data/"
        },
        "TuningDataS3Uri": {
          "type": "string",
          "description": "The Amazon S3 location (URI) of the text files you want to use to tune your custom language model. Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-tuning-data/"
        },
        "DataAccessRoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input files. If the role that you specify doesn’t have the appropriate permissions to access the specified Amazon S3 location, your request fails. IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path. For example: arn:aws:iam::111122223333:role/Admin. For more information, see IAM ARNs."
        }
      },
      "required": [
        "S3Uri",
        "DataAccessRoleArn"
      ]
    },
    "LanguageModel": {
      "type": "object",
      "properties": {
        "ModelName": {
          "type": "string",
          "description": "A unique name, chosen by you, for your custom language model. This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account."
        },
        "CreateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the specified custom language model was created. Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM UTC-7 on May 4, 2022."
        },
        "LastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the specified custom language model was last modified. Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC. For example, 2022-05-04T12:32:58.761000-07:00 represents 12:32 PM UTC-7 on May 4, 2022."
        },
        "LanguageCode": {
          "type": "string",
          "enum": [
            "en-US",
            "hi-IN",
            "es-US",
            "en-GB",
            "en-AU",
            "de-DE",
            "ja-JP"
          ],
          "description": "The language code used to create your custom language model. Each custom language model must contain terms in only one language, and the language you select for your custom language model must match the language of your training and tuning data. For a list of supported languages and their associated language codes, refer to the Supported languages table. Note that US English (en-US) is the only language supported with Amazon Transcribe Medical."
        },
        "BaseModelName": {
          "type": "string",
          "enum": [
            "NarrowBand",
            "WideBand"
          ],
          "description": "The Amazon Transcribe standard language model, or base model, used to create your custom language model."
        },
        "ModelStatus": {
          "type": "string",
          "enum": [
            "IN_PROGRESS",
            "FAILED",
            "COMPLETED"
          ],
          "description": "The status of the specified custom language model. When the status displays as COMPLETED the model is ready for use."
        },
        "UpgradeAvailability": {
          "type": "boolean",
          "description": "Shows if a more current base model is available for use with the specified custom language model. If false, your custom language model is using the most up-to-date base model. If true, there is a newer base model available than the one your language model is using. Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported."
        },
        "FailureReason": {
          "type": "string",
          "description": "If ModelStatus is FAILED, FailureReason contains information about why the custom language model request failed. See also: Common Errors."
        },
        "InputDataConfig": {
          "$ref": "#/$defs/InputDataConfig"
        },
        "EncryptionConfiguration": {
          "$ref": "#/$defs/EncryptionConfiguration"
        }
      }
    }
  }
}