{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-timestream-database.json",
  "title": "AWSTimestreamDatabaseProperties",
  "description": "The AWS::Timestream::Database resource creates a Timestream database.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-timestream.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-timestream-database.json",
    "sourceSha256": "e40368239a59ffd236fa0092e9f18811c2004cd1fbbaa9c9be2b861a59683aed"
  },
  "type": "object",
  "properties": {
    "DatabaseName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9_.-]{3,256}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name for the database. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the database name."
    },
    "KmsKeyId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account."
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "maxItems": 200,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Timestream::Database",
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-timestream.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/DatabaseName"
  ],
  "$defs": {
    "Tag": {
      "description": "You can use the Resource Tags property to apply tags to resources, which can help you identify and categorize those resources.",
      "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": "AWSTimestreamDatabaseTagDefinition",
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/DatabaseName"
  ]
}
