{
  "typeName" : "AWS::RDS::GlobalCluster",
  "description" : "Resource Type definition for AWS::RDS::GlobalCluster",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-rds",
  "properties" : {
    "Engine" : {
      "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.",
      "type" : "string",
      "enum" : [ "aurora", "aurora-mysql", "aurora-postgresql" ]
    },
    "EngineVersion" : {
      "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.",
      "type" : "string"
    },
    "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" : {
      "description" : "The cluster identifier of the new global database cluster. This parameter is stored as a lowercase string.",
      "type" : "string",
      "pattern" : "^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$"
    },
    "SourceDBClusterIdentifier" : {
      "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.",
      "type" : "string",
      "oneOf" : [ {
        "pattern" : "^[a-zA-Z]{1}(?:-?[a-zA-Z0-9]){0,62}$"
      }, {
        "pattern" : "^(?=.{40,128}$)arn.*"
      } ]
    },
    "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"
    }
  },
  "oneOf" : [ {
    "required" : [ "SourceDBClusterIdentifier" ]
  }, {
    "required" : [ "Engine" ]
  } ],
  "additionalProperties" : false,
  "createOnlyProperties" : [ "/properties/GlobalClusterIdentifier", "/properties/SourceDBClusterIdentifier", "/properties/StorageEncrypted", "/properties/Engine", "/properties/EngineVersion" ],
  "primaryIdentifier" : [ "/properties/GlobalClusterIdentifier" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "rds:CreateGlobalCluster", "rds:DescribeDBClusters", "rds:DescribeGlobalClusters" ]
    },
    "read" : {
      "permissions" : [ "rds:DescribeGlobalClusters" ]
    },
    "update" : {
      "permissions" : [ "rds:ModifyGlobalCluster", "rds:DescribeGlobalClusters" ]
    },
    "delete" : {
      "permissions" : [ "rds:DescribeGlobalClusters", "rds:DeleteGlobalCluster", "rds:RemoveFromGlobalCluster", "rds:DescribeDBClusters" ]
    },
    "list" : {
      "permissions" : [ "rds:DescribeGlobalClusters" ]
    }
  }
}