{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-create-project-version-request-schema.json",
  "title": "CreateProjectVersionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-project-version-api-openapi.yml#/components/schemas/CreateProjectVersionRequest",
  "type": "object",
  "properties": {
    "ProjectArn": {
      "type": "string",
      "description": "The ARN of the Amazon Rekognition project that will manage the project version you want to train."
    },
    "VersionName": {
      "type": "string",
      "description": "A name for the version of the project version. This value must be unique."
    },
    "OutputConfig": {
      "$ref": "#/$defs/OutputConfig"
    },
    "TrainingData": {
      "$ref": "#/$defs/TrainingData"
    },
    "TestingData": {
      "$ref": "#/$defs/TestingData"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A set of tags (key-value pairs) that you want to attach to the project version."
    },
    "KmsKeyId": {
      "type": "string",
      "description": "The identifier for your AWS Key Management Service key (AWS KMS key). You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt training images, test images, and manifest files copied into the service for the project version. Your source images are unaffected. The key is also used to encrypt training results and manifest files written to the output Amazon S3 bucket (OutputConfig). If you choose to use your own KMS key, you need the following permissions on the KMS key. kms:CreateGrant kms:Descri"
    },
    "VersionDescription": {
      "type": "string",
      "description": "A description applied to the project version being created."
    },
    "FeatureConfig": {
      "$ref": "#/$defs/CustomizationFeatureConfig"
    }
  },
  "required": [
    "ProjectArn",
    "VersionName",
    "OutputConfig"
  ],
  "$defs": {
    "Asset": {
      "type": "object",
      "properties": {
        "GroundTruthManifest": {
          "$ref": "#/$defs/GroundTruthManifest"
        }
      }
    },
    "CustomizationFeatureConfig": {
      "type": "object",
      "properties": {
        "ContentModeration": {
          "$ref": "#/$defs/CustomizationFeatureContentModerationConfig"
        }
      }
    },
    "CustomizationFeatureContentModerationConfig": {
      "type": "object",
      "properties": {
        "ConfidenceThreshold": {
          "type": "number",
          "description": "The confidence level you plan to use to identify if unsafe content is present during inference."
        }
      }
    },
    "GroundTruthManifest": {
      "type": "object",
      "properties": {
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    },
    "OutputConfig": {
      "type": "object",
      "properties": {
        "S3Bucket": {
          "type": "string",
          "description": "The S3 bucket where training output is placed."
        },
        "S3KeyPrefix": {
          "type": "string",
          "description": "The prefix applied to the training output files."
        }
      }
    },
    "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."
        }
      }
    },
    "TestingData": {
      "type": "object",
      "properties": {
        "Assets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Asset"
          },
          "description": "The assets used for testing."
        },
        "AutoCreate": {
          "type": "boolean",
          "description": "If specified, Rekognition splits training dataset to create a test dataset for the training job."
        }
      }
    },
    "TrainingData": {
      "type": "object",
      "properties": {
        "Assets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Asset"
          },
          "description": "A manifest file that contains references to the training images and ground-truth annotations."
        }
      }
    }
  }
}