{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-create-dataset-request-schema.json",
  "title": "CreateDatasetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-dataset-api-openapi.yml#/components/schemas/CreateDatasetRequest",
  "type": "object",
  "properties": {
    "DatasetSource": {
      "$ref": "#/$defs/DatasetSource"
    },
    "DatasetType": {
      "type": "string",
      "enum": [
        "TRAIN",
        "TEST"
      ],
      "description": "The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset."
    },
    "ProjectArn": {
      "type": "string",
      "description": "The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A set of tags (key-value pairs) that you want to attach to the dataset."
    }
  },
  "required": [
    "DatasetType",
    "ProjectArn"
  ],
  "$defs": {
    "DatasetSource": {
      "type": "object",
      "properties": {
        "GroundTruthManifest": {
          "$ref": "#/$defs/GroundTruthManifest"
        },
        "DatasetArn": {
          "type": "string",
          "description": "The ARN of an Amazon Rekognition Custom Labels dataset that you want to copy."
        }
      }
    },
    "GroundTruthManifest": {
      "type": "object",
      "properties": {
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    },
    "S3Object": {
      "type": "object",
      "properties": {
        "Bucket": {
          "type": "string",
          "description": "Name of the S3 bucket."
        },
        "Name": {
          "type": "string",
          "description": "S3 object key name."
        },
        "Version": {
          "type": "string",
          "description": "If the bucket is versioning enabled, you can specify the object version."
        }
      }
    }
  }
}