{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-textract/json-schema/amazon-textract-get-adapter-version-response-schema.json",
  "title": "GetAdapterVersionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-textract-adapter-version-api-openapi.yml#/components/schemas/GetAdapterVersionResponse",
  "type": "object",
  "properties": {
    "AdapterId": {
      "type": "string",
      "description": "A string containing a unique ID for the adapter version being retrieved."
    },
    "AdapterVersion": {
      "type": "string",
      "description": "A string containing the adapter version that has been retrieved."
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time that the adapter version was created."
    },
    "FeatureTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "TABLES",
          "FORMS",
          "QUERIES",
          "SIGNATURES",
          "LAYOUT"
        ]
      },
      "description": "List of the targeted feature types for the requested adapter version."
    },
    "Status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "AT_RISK",
        "DEPRECATED",
        "CREATION_ERROR",
        "CREATION_IN_PROGRESS"
      ],
      "description": "The status of the adapter version that has been requested."
    },
    "StatusMessage": {
      "type": "string",
      "description": "A message that describes the status of the requested adapter version."
    },
    "DatasetConfig": {
      "$ref": "#/$defs/AdapterVersionDatasetConfig"
    },
    "KMSKeyId": {
      "type": "string",
      "description": "The identifier for your AWS Key Management Service key (AWS KMS key). Used to encrypt your documents."
    },
    "OutputConfig": {
      "$ref": "#/$defs/OutputConfig"
    },
    "EvaluationMetrics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AdapterVersionEvaluationMetric"
      },
      "description": "The evaluation metrics (F1 score, Precision, and Recall) for the requested version, grouped by baseline metrics and adapter version."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A set of tags (key-value pairs) that are associated with the adapter version."
    }
  },
  "$defs": {
    "AdapterVersionDatasetConfig": {
      "type": "object",
      "properties": {
        "ManifestS3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    },
    "AdapterVersionEvaluationMetric": {
      "type": "object",
      "properties": {
        "Baseline": {
          "$ref": "#/$defs/EvaluationMetric"
        },
        "AdapterVersion": {
          "$ref": "#/$defs/EvaluationMetric"
        },
        "FeatureType": {
          "type": "string",
          "enum": [
            "TABLES",
            "FORMS",
            "QUERIES",
            "SIGNATURES",
            "LAYOUT"
          ],
          "description": "Indicates the feature type being analyzed by a given adapter version."
        }
      }
    },
    "EvaluationMetric": {
      "type": "object",
      "properties": {
        "F1Score": {
          "type": "number",
          "description": "The F1 score for an adapter version."
        },
        "Precision": {
          "type": "number",
          "description": "The Precision score for an adapter version."
        },
        "Recall": {
          "type": "number",
          "description": "The Recall score for an adapter version."
        }
      }
    },
    "OutputConfig": {
      "type": "object",
      "properties": {
        "S3Bucket": {
          "type": "string",
          "description": "The name of the bucket your output will go to."
        },
        "S3Prefix": {
          "type": "string",
          "description": "The prefix of the object key that the output will be saved to. When not enabled, the prefix will be “textract_output\"."
        }
      },
      "required": [
        "S3Bucket"
      ]
    },
    "S3Object": {
      "type": "object",
      "properties": {
        "Bucket": {
          "type": "string",
          "description": "The name of the S3 bucket. Note that the # character is not valid in the file name."
        },
        "Name": {
          "type": "string",
          "description": "The file name of the input document. Image files may be in PDF, TIFF, JPEG, or PNG format."
        },
        "Version": {
          "type": "string",
          "description": "If the bucket has versioning enabled, you can specify the object version."
        }
      }
    }
  }
}