{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iotanalytics-datastore.json",
  "title": "AWSIoTAnalyticsDatastoreProperties",
  "description": "Resource Type definition for AWS::IoTAnalytics::Datastore. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-iotanalytics-datastore.json",
    "sourceSha256": "91cc93a33337cbf7b509a23b7d62f45789cdd5004a54e4b3d855e305e3a7de34"
  },
  "type": "object",
  "properties": {
    "DatastoreStorage": {
      "$ref": "#/$defs/DatastoreStorage"
    },
    "DatastoreName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[a-zA-Z0-9_]+",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "DatastorePartitions": {
      "$ref": "#/$defs/DatastorePartitions"
    },
    "FileFormatConfiguration": {
      "$ref": "#/$defs/FileFormatConfiguration"
    },
    "RetentionPeriod": {
      "$ref": "#/$defs/RetentionPeriod"
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "minItems": 1,
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::IoTAnalytics::Datastore",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "DatastoreStorage": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreDatastoreStorageDefinition",
      "properties": {
        "ServiceManagedS3": {
          "$ref": "#/$defs/ServiceManagedS3"
        },
        "CustomerManagedS3": {
          "$ref": "#/$defs/CustomerManagedS3"
        },
        "IotSiteWiseMultiLayerStorage": {
          "$ref": "#/$defs/IotSiteWiseMultiLayerStorage"
        }
      },
      "additionalProperties": false
    },
    "SchemaDefinition": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreSchemaDefinition",
      "properties": {
        "Columns": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "minItems": 1,
          "maxItems": 100,
          "items": {
            "$ref": "#/$defs/Column"
          }
        }
      },
      "additionalProperties": false
    },
    "JsonConfiguration": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreJsonConfigurationDefinition",
      "additionalProperties": false
    },
    "ParquetConfiguration": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreParquetConfigurationDefinition",
      "properties": {
        "SchemaDefinition": {
          "$ref": "#/$defs/SchemaDefinition"
        }
      },
      "additionalProperties": false
    },
    "FileFormatConfiguration": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreFileFormatConfigurationDefinition",
      "properties": {
        "JsonConfiguration": {
          "$ref": "#/$defs/JsonConfiguration"
        },
        "ParquetConfiguration": {
          "$ref": "#/$defs/ParquetConfiguration"
        }
      },
      "additionalProperties": false
    },
    "Column": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreColumnDefinition",
      "properties": {
        "Type": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Type",
        "Name"
      ],
      "additionalProperties": false
    },
    "CustomerManagedS3": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreCustomerManagedS3Definition",
      "properties": {
        "Bucket": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z0-9.\\-_]*",
              "minLength": 3,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoleArn": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 20,
              "maxLength": 2048
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "KeyPrefix": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z0-9!_.*'()/{}:-]*/",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Bucket",
        "RoleArn"
      ],
      "additionalProperties": false
    },
    "IotSiteWiseMultiLayerStorage": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreIotSiteWiseMultiLayerStorageDefinition",
      "properties": {
        "CustomerManagedS3Storage": {
          "$ref": "#/$defs/CustomerManagedS3Storage"
        }
      },
      "additionalProperties": false
    },
    "CustomerManagedS3Storage": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreCustomerManagedS3StorageDefinition",
      "properties": {
        "Bucket": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z0-9.\\-_]*",
              "minLength": 3,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "KeyPrefix": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z0-9!_.*'()/{}:-]*/",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Bucket"
      ],
      "additionalProperties": false
    },
    "ServiceManagedS3": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreServiceManagedS3Definition",
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreTagDefinition",
      "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": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "RetentionPeriod": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreRetentionPeriodDefinition",
      "properties": {
        "NumberOfDays": {
          "type": "integer",
          "minimum": 1,
          "maximum": 2147483647
        },
        "Unlimited": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "DatastorePartitions": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreDatastorePartitionsDefinition",
      "properties": {
        "Partitions": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "minItems": 0,
          "maxItems": 25,
          "items": {
            "$ref": "#/$defs/DatastorePartition"
          }
        }
      },
      "additionalProperties": false
    },
    "DatastorePartition": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreDatastorePartitionDefinition",
      "properties": {
        "Partition": {
          "$ref": "#/$defs/Partition"
        },
        "TimestampPartition": {
          "$ref": "#/$defs/TimestampPartition"
        }
      },
      "additionalProperties": false
    },
    "Partition": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastorePartitionDefinition",
      "properties": {
        "AttributeName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z0-9_]+"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "AttributeName"
      ],
      "additionalProperties": false
    },
    "TimestampPartition": {
      "type": "object",
      "title": "AWSIoTAnalyticsDatastoreTimestampPartitionDefinition",
      "properties": {
        "AttributeName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z0-9_]+"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TimestampFormat": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z0-9\\s\\[\\]_,.'/:-]*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "AttributeName"
      ],
      "additionalProperties": false
    }
  },
  "taggable": true,
  "createOnlyProperties": [
    "/properties/DatastoreName"
  ],
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/DatastoreName"
  ]
}
