{
  "typeName" : "AWS::Neptune::GlobalCluster",
  "description" : "Resource Type definition for AWS::Neptune::GlobalCluster",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-neptune",
  "properties" : {
    "GlobalClusterIdentifier" : {
      "description" : "The cluster identifier of the global database cluster.",
      "type" : "string",
      "pattern" : "^[A-Za-z][0-9A-Za-z-:._]*$",
      "minLength" : 1,
      "maxLength" : 255
    },
    "SourceDBClusterIdentifier" : {
      "description" : "The Amazon Resource Name (ARN) of an existing Neptune DB cluster to use as the primary cluster of the new global database.",
      "type" : "string"
    },
    "Engine" : {
      "description" : "The name of the database engine.",
      "type" : "string",
      "enum" : [ "neptune" ]
    },
    "EngineVersion" : {
      "description" : "The version number of the database engine.",
      "type" : "string"
    },
    "DeletionProtection" : {
      "description" : "Whether deletion protection is enabled.",
      "type" : "boolean"
    },
    "StorageEncrypted" : {
      "description" : "Whether the global database cluster is storage encrypted.",
      "type" : "boolean"
    },
    "Tags" : {
      "type" : "array",
      "maxItems" : 50,
      "uniqueItems" : true,
      "insertionOrder" : false,
      "description" : "An array of key-value pairs to apply to this resource.",
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "definitions" : {
    "Tag" : {
      "description" : "A key-value pair to associate with a resource.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Key" : {
          "type" : "string",
          "description" : "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "description" : "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ",
          "minLength" : 0,
          "maxLength" : 256
        }
      },
      "required" : [ "Key" ]
    }
  },
  "additionalProperties" : false,
  "createOnlyProperties" : [ "/properties/GlobalClusterIdentifier", "/properties/SourceDBClusterIdentifier", "/properties/Engine", "/properties/StorageEncrypted" ],
  "primaryIdentifier" : [ "/properties/GlobalClusterIdentifier" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "rds:CreateGlobalCluster", "rds:DescribeDBClusters", "rds:DescribeGlobalClusters", "rds:AddTagsToResource", "rds:ListTagsForResource" ]
    },
    "read" : {
      "permissions" : [ "rds:DescribeGlobalClusters", "rds:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "rds:ModifyGlobalCluster", "rds:DescribeGlobalClusters", "rds:AddTagsToResource", "rds:RemoveTagsFromResource", "rds:ListTagsForResource" ]
    },
    "delete" : {
      "permissions" : [ "rds:DescribeGlobalClusters", "rds:DeleteGlobalCluster", "rds:RemoveFromGlobalCluster", "rds:DescribeDBClusters" ]
    },
    "list" : {
      "permissions" : [ "rds:DescribeGlobalClusters" ]
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "rds:AddTagsToResource", "rds:ListTagsForResource", "rds:RemoveTagsFromResource" ]
  }
}