{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-create-dataset-group-request-schema.json",
  "title": "CreateDatasetGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-personalize-dataset-group-api-openapi.yml#/components/schemas/CreateDatasetGroupRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name for the new dataset group."
    },
    "roleArn": {
      "type": "string",
      "description": "The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key."
    },
    "kmsKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets."
    },
    "domain": {
      "type": "string",
      "enum": [
        "ECOMMERCE",
        "VIDEO_ON_DEMAND"
      ],
      "description": "The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you specify determines the default schemas for datasets and the use cases available for recommenders. If you don't specify a domain, you create a Custom dataset group with solution versions that you deploy with a campaign."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to apply to the dataset group."
    }
  },
  "required": [
    "name"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "tagKey": {
          "type": "string",
          "description": "One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values."
        },
        "tagValue": {
          "type": "string",
          "description": "The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key)."
        }
      },
      "required": [
        "tagKey",
        "tagValue"
      ]
    }
  }
}