{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-personalize-dataset.json",
  "title": "AWSPersonalizeDatasetProperties",
  "description": "Resource schema for AWS::Personalize::Dataset.. 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-dataset.json",
    "sourceSha256": "16523156dab4e8b56bfc685840dfc47cc8cd0d71681af42a6f6dd0974359a9f1"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9][a-zA-Z0-9\\-_]*",
          "minLength": 1,
          "maxLength": 63
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name for the dataset"
    },
    "DatasetType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "Interactions",
            "Items",
            "Users"
          ],
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of dataset"
    },
    "DatasetGroupArn": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 256,
          "pattern": "arn:([a-z0-9-]+):personalize:.*:.*:.+"
        },
        {
          "$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 the dataset group to add the dataset to"
    },
    "SchemaArn": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 256,
          "pattern": "arn:([a-z0-9-]+):personalize:.*:.*:.+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ARN of the schema to associate with the dataset. The schema defines the dataset fields."
    },
    "DatasetImportJob": {
      "$ref": "#/$defs/DatasetImportJob"
    }
  },
  "typeName": "AWS::Personalize::Dataset",
  "primaryIdentifier": [
    "/properties/DatasetArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-personalize",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/DatasetArn"
  ],
  "$defs": {
    "DatasetImportJob": {
      "description": "Initial DatasetImportJob for the created dataset",
      "type": "object",
      "properties": {
        "JobName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9\\-_]*",
              "minLength": 1,
              "maxLength": 63
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name for the dataset import job."
        },
        "DatasetImportJobArn": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "arn:([a-z0-9-]+):personalize:.*:.*:.+",
              "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 dataset import job"
        },
        "DatasetArn": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "arn:([a-z0-9-]+):personalize:.*:.*:.+",
              "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 dataset that receives the imported data"
        },
        "DataSource": {
          "type": "object",
          "description": "The Amazon S3 bucket that contains the training data to import.",
          "properties": {
            "DataLocation": {
              "oneOf": [
                {
                  "type": "string",
                  "maxLength": 256,
                  "pattern": "(s3|http|https)://.+"
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ],
              "description": "The path to the Amazon S3 bucket where the data that you want to upload to your dataset is stored."
            }
          },
          "additionalProperties": false
        },
        "RoleArn": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 256,
              "pattern": "arn:([a-z0-9-]+):iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ARN of the IAM role that has permissions to read from the Amazon S3 data source."
        }
      },
      "title": "AWSPersonalizeDatasetDatasetImportJobDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "DatasetType",
    "DatasetGroupArn",
    "SchemaArn"
  ],
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/DatasetType",
    "/properties/DatasetGroupArn",
    "/properties/SchemaArn"
  ],
  "replacementStrategy": "delete_then_create",
  "taggable": false
}
