{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-personalize-datasetgroup.json",
  "title": "AWSPersonalizeDatasetGroupProperties",
  "description": "Resource Schema for AWS::Personalize::DatasetGroup.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-personalize>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-personalize-datasetgroup.json",
    "sourceSha256": "2d230a4fdfb99153284da92ccac64864547ec3d678d1393acd39a87f8e8ccb9d"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 63,
          "pattern": "^[a-zA-Z0-9][a-zA-Z0-9\\-_]*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name for the new dataset group."
    },
    "KmsKeyArn": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 2048,
          "pattern": "arn:aws.*:kms:.*:[0-9]{12}:key/.*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name(ARN) of a AWS Key Management Service (KMS) key used to encrypt the datasets."
    },
    "RoleArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "arn:([a-z0-9-]+):iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+",
          "minLength": 0,
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ARN of the AWS Identity and Access Management (IAM) role that has permissions to access the AWS Key Management Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key."
    },
    "Domain": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ECOMMERCE",
            "VIDEO_ON_DEMAND"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The domain of a Domain dataset group."
    }
  },
  "typeName": "AWS::Personalize::DatasetGroup",
  "primaryIdentifier": [
    "/properties/DatasetGroupArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-personalize",
  "readOnlyProperties": [
    "/properties/DatasetGroupArn"
  ],
  "additionalProperties": false,
  "required": [
    "Name"
  ],
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/RoleArn",
    "/properties/KmsKeyArn",
    "/properties/Domain"
  ]
}
