{
  "typeName" : "AWS::Glue::Database",
  "description" : "Resource Type definition for AWS::Glue::Database",
  "additionalProperties" : false,
  "properties" : {
    "CatalogId" : {
      "type" : "string"
    },
    "DatabaseInput" : {
      "$ref" : "#/definitions/DatabaseInput"
    },
    "Id" : {
      "type" : "string"
    }
  },
  "definitions" : {
    "DatabaseIdentifier" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DatabaseName" : {
          "type" : "string"
        },
        "CatalogId" : {
          "type" : "string"
        }
      }
    },
    "PrincipalPrivileges" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Permissions" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "Principal" : {
          "$ref" : "#/definitions/DataLakePrincipal"
        }
      }
    },
    "DataLakePrincipal" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DataLakePrincipalIdentifier" : {
          "type" : "string"
        }
      }
    },
    "DatabaseInput" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "LocationUri" : {
          "type" : "string"
        },
        "CreateTableDefaultPermissions" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/PrincipalPrivileges"
          }
        },
        "Description" : {
          "type" : "string"
        },
        "Parameters" : {
          "type" : "object"
        },
        "TargetDatabase" : {
          "$ref" : "#/definitions/DatabaseIdentifier"
        },
        "Name" : {
          "type" : "string"
        }
      }
    }
  },
  "required" : [ "DatabaseInput", "CatalogId" ],
  "createOnlyProperties" : [ "/properties/CatalogId" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id" ]
}