{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-databrew-dataset.json",
  "title": "AWSDataBrewDatasetProperties",
  "description": "Resource schema for AWS::DataBrew::Dataset.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-databrew.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-databrew-dataset.json",
    "sourceSha256": "5560172e7fd4f431ccb738339d2ca0da6708efad3acaa63eb94ab37970b945c3"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Dataset name"
    },
    "Format": {
      "oneOf": [
        {
          "enum": [
            "CSV",
            "JSON",
            "PARQUET",
            "EXCEL",
            "ORC"
          ],
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Dataset format"
    },
    "FormatOptions": {
      "description": "Format options for dataset",
      "$ref": "#/$defs/FormatOptions"
    },
    "Input": {
      "description": "Input",
      "$ref": "#/$defs/Input"
    },
    "PathOptions": {
      "description": "PathOptions",
      "$ref": "#/$defs/PathOptions"
    },
    "Tags": {
      "type": "array",
      "insertionOrder": false,
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::DataBrew::Dataset",
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Tags"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-databrew.git",
  "taggable": true,
  "primaryIdentifier": [
    "/properties/Name"
  ],
  "additionalProperties": false,
  "$defs": {
    "JsonOptions": {
      "description": "Json options",
      "type": "object",
      "properties": {
        "MultiLine": {
          "type": "boolean"
        }
      },
      "title": "AWSDataBrewDatasetJsonOptionsDefinition",
      "additionalProperties": false
    },
    "ExcelOptions": {
      "type": "object",
      "properties": {
        "SheetNames": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "maxItems": 1
        },
        "SheetIndexes": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "type": "integer"
          },
          "minItems": 1,
          "maxItems": 1
        },
        "HeaderRow": {
          "type": "boolean"
        }
      },
      "oneOf": [
        {
          "required": [
            "SheetNames"
          ]
        },
        {
          "required": [
            "SheetIndexes"
          ]
        }
      ],
      "title": "AWSDataBrewDatasetExcelOptionsDefinition",
      "additionalProperties": false
    },
    "CsvOptions": {
      "description": "Csv options",
      "type": "object",
      "properties": {
        "Delimiter": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "HeaderRow": {
          "type": "boolean"
        }
      },
      "title": "AWSDataBrewDatasetCsvOptionsDefinition",
      "additionalProperties": false
    },
    "FormatOptions": {
      "description": "Format options for dataset",
      "type": "object",
      "properties": {
        "Json": {
          "$ref": "#/$defs/JsonOptions"
        },
        "Excel": {
          "$ref": "#/$defs/ExcelOptions"
        },
        "Csv": {
          "$ref": "#/$defs/CsvOptions"
        }
      },
      "title": "AWSDataBrewDatasetFormatOptionsDefinition",
      "additionalProperties": false
    },
    "Input": {
      "description": "Input",
      "type": "object",
      "properties": {
        "S3InputDefinition": {
          "$ref": "#/$defs/S3Location"
        },
        "DataCatalogInputDefinition": {
          "$ref": "#/$defs/DataCatalogInputDefinition"
        },
        "DatabaseInputDefinition": {
          "$ref": "#/$defs/DatabaseInputDefinition"
        },
        "Metadata": {
          "$ref": "#/$defs/Metadata"
        }
      },
      "title": "AWSDataBrewDatasetInputDefinition",
      "additionalProperties": false
    },
    "S3Location": {
      "description": "Input location",
      "type": "object",
      "properties": {
        "Bucket": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSDataBrewDatasetS3LocationDefinition",
      "required": [
        "Bucket"
      ],
      "additionalProperties": false
    },
    "DataCatalogInputDefinition": {
      "type": "object",
      "properties": {
        "CatalogId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Catalog id"
        },
        "DatabaseName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Database name"
        },
        "TableName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Table name"
        },
        "TempDirectory": {
          "$ref": "#/$defs/S3Location"
        }
      },
      "title": "AWSDataBrewDatasetDataCatalogInputDefinition",
      "additionalProperties": false
    },
    "DatabaseInputDefinition": {
      "type": "object",
      "properties": {
        "GlueConnectionName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Glue connection name"
        },
        "DatabaseTableName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Database table name"
        },
        "TempDirectory": {
          "$ref": "#/$defs/S3Location"
        },
        "QueryString": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Custom SQL to run against the provided AWS Glue connection. This SQL will be used as the input for DataBrew projects and jobs."
        }
      },
      "title": "AWSDataBrewDatasetDatabaseInputDefinition",
      "required": [
        "GlueConnectionName"
      ],
      "additionalProperties": false
    },
    "Metadata": {
      "type": "object",
      "properties": {
        "SourceArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Arn of the source of the dataset. For e.g.: AppFlow Flow ARN."
        }
      },
      "title": "AWSDataBrewDatasetMetadataDefinition",
      "additionalProperties": false
    },
    "PathOptions": {
      "description": "Path options for dataset",
      "type": "object",
      "properties": {
        "FilesLimit": {
          "$ref": "#/$defs/FilesLimit"
        },
        "LastModifiedDateCondition": {
          "$ref": "#/$defs/FilterExpression"
        },
        "Parameters": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "$ref": "#/$defs/PathParameter"
          }
        }
      },
      "title": "AWSDataBrewDatasetPathOptionsDefinition",
      "additionalProperties": false
    },
    "FilesLimit": {
      "type": "object",
      "properties": {
        "MaxFiles": {
          "description": "Maximum number of files",
          "type": "integer"
        },
        "OrderedBy": {
          "oneOf": [
            {
              "enum": [
                "LAST_MODIFIED_DATE"
              ],
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Ordered by"
        },
        "Order": {
          "oneOf": [
            {
              "enum": [
                "ASCENDING",
                "DESCENDING"
              ],
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Order"
        }
      },
      "title": "AWSDataBrewDatasetFilesLimitDefinition",
      "required": [
        "MaxFiles"
      ],
      "additionalProperties": false
    },
    "PathParameter": {
      "description": "A key-value pair to associate dataset parameter name with its definition.",
      "type": "object",
      "properties": {
        "PathParameterName": {
          "$ref": "#/$defs/PathParameterName"
        },
        "DatasetParameter": {
          "$ref": "#/$defs/DatasetParameter"
        }
      },
      "title": "AWSDataBrewDatasetPathParameterDefinition",
      "required": [
        "PathParameterName",
        "DatasetParameter"
      ],
      "additionalProperties": false
    },
    "PathParameterName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Parameter name",
      "title": "AWSDataBrewDatasetPathParameterNameDefinition"
    },
    "DatasetParameter": {
      "type": "object",
      "properties": {
        "Name": {
          "$ref": "#/$defs/PathParameterName"
        },
        "Type": {
          "oneOf": [
            {
              "enum": [
                "String",
                "Number",
                "Datetime"
              ],
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Parameter type"
        },
        "DatetimeOptions": {
          "$ref": "#/$defs/DatetimeOptions"
        },
        "CreateColumn": {
          "description": "Add the value of this parameter as a column in a dataset.",
          "type": "boolean"
        },
        "Filter": {
          "$ref": "#/$defs/FilterExpression"
        }
      },
      "title": "AWSDataBrewDatasetDatasetParameterDefinition",
      "required": [
        "Name",
        "Type"
      ],
      "additionalProperties": false
    },
    "DatetimeOptions": {
      "type": "object",
      "properties": {
        "Format": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Date/time format of a date parameter"
        },
        "TimezoneOffset": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 6,
              "pattern": "^(Z|[-+](\\d|\\d{2}|\\d{2}:?\\d{2}))$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Timezone offset"
        },
        "LocaleCode": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 2,
              "maxLength": 100,
              "pattern": "^[A-Za-z0-9_\\.#@\\-]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Locale code for a date parameter"
        }
      },
      "title": "AWSDataBrewDatasetDatetimeOptionsDefinition",
      "required": [
        "Format"
      ],
      "additionalProperties": false
    },
    "FilterExpression": {
      "type": "object",
      "properties": {
        "Expression": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 4,
              "maxLength": 1024,
              "pattern": "^[><0-9A-Za-z_.,:)(!= ]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Filtering expression for a parameter"
        },
        "ValuesMap": {
          "type": "array",
          "insertionOrder": true,
          "items": {
            "$ref": "#/$defs/FilterValue"
          }
        }
      },
      "title": "AWSDataBrewDatasetFilterExpressionDefinition",
      "required": [
        "Expression",
        "ValuesMap"
      ],
      "additionalProperties": false
    },
    "FilterValue": {
      "description": "A key-value pair to associate expression variable names with their values",
      "type": "object",
      "properties": {
        "ValueReference": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 2,
              "maxLength": 128,
              "pattern": "^:[A-Za-z0-9_]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Variable name"
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 1024
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSDataBrewDatasetFilterValueDefinition",
      "required": [
        "ValueReference",
        "Value"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSDataBrewDatasetTagDefinition",
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "Input"
  ]
}
