{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-rds-globalcluster.json",
  "title": "AWSRDSGlobalClusterProperties",
  "description": "Resource Type definition for AWS::RDS::GlobalCluster. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-rds>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-rds-globalcluster.json",
    "sourceSha256": "1cca6f8ad959ce9895a3e9f23474ded70a3467907e9fcf4eba09ce3c5fd43228"
  },
  "type": "object",
  "properties": {
    "Engine": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "aurora",
            "aurora-mysql",
            "aurora-postgresql"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the database engine to be used for this DB cluster. Valid Values: aurora (for MySQL 5.6-compatible Aurora), aurora-mysql (for MySQL 5.7-compatible Aurora).\nIf you specify the SourceDBClusterIdentifier property, don't specify this property. The value is inherited from the cluster."
    },
    "EngineVersion": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The version number of the database engine to use. If you specify the SourceDBClusterIdentifier property, don't specify this property. The value is inherited from the cluster."
    },
    "DeletionProtection": {
      "description": "The deletion protection setting for the new global database. The global database can't be deleted when deletion protection is enabled.",
      "type": "boolean"
    },
    "GlobalClusterIdentifier": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The cluster identifier of the new global database cluster. This parameter is stored as a lowercase string."
    },
    "SourceDBClusterIdentifier": {
      "oneOf": [
        {
          "type": "string",
          "oneOf": [
            {
              "pattern": "^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$"
            },
            {
              "pattern": "^(?=.{40,128}$)arn.*"
            }
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) to use as the primary cluster of the global database. This parameter is optional. This parameter is stored as a lowercase string."
    },
    "StorageEncrypted": {
      "description": " The storage encryption setting for the new global database cluster.\nIf you specify the SourceDBClusterIdentifier property, don't specify this property. The value is inherited from the cluster.",
      "type": "boolean"
    }
  },
  "typeName": "AWS::RDS::GlobalCluster",
  "primaryIdentifier": [
    "/properties/GlobalClusterIdentifier"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-rds",
  "createOnlyProperties": [
    "/properties/GlobalClusterIdentifier",
    "/properties/SourceDBClusterIdentifier",
    "/properties/StorageEncrypted",
    "/properties/Engine"
  ],
  "oneOf": [
    {
      "required": [
        "SourceDBClusterIdentifier"
      ]
    },
    {
      "required": [
        "Engine"
      ]
    }
  ],
  "additionalProperties": false,
  "propertyTransform": {
    "/properties/GlobalClusterIdentifier": "$lowercase(GlobalClusterIdentifier)"
  }
}
