{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-textract/json-schema/amazon-textract-create-adapter-version-request-schema.json",
  "title": "CreateAdapterVersionRequest",
  "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/CreateAdapterVersionRequest",
  "type": "object",
  "properties": {
    "AdapterId": {
      "type": "string",
      "description": "A string containing a unique ID for the adapter that will receive a new version."
    },
    "ClientRequestToken": {
      "type": "string",
      "description": "Idempotent token is used to recognize the request. If the same token is used with multiple CreateAdapterVersion requests, the same session is returned. This token is employed to avoid unintentionally creating the same session multiple times."
    },
    "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"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A set of tags (key-value pairs) that you want to attach to the adapter version."
    }
  },
  "required": [
    "AdapterId",
    "DatasetConfig",
    "OutputConfig"
  ],
  "$defs": {
    "AdapterVersionDatasetConfig": {
      "type": "object",
      "properties": {
        "ManifestS3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    },
    "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."
        }
      }
    }
  }
}