{
  "typeName" : "AWS::LakeFormation::Permissions",
  "description" : "Resource Type definition for AWS::LakeFormation::Permissions",
  "additionalProperties" : false,
  "properties" : {
    "Resource" : {
      "$ref" : "#/definitions/Resource"
    },
    "Permissions" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "type" : "string"
      }
    },
    "Id" : {
      "type" : "string"
    },
    "DataLakePrincipal" : {
      "$ref" : "#/definitions/DataLakePrincipal"
    },
    "PermissionsWithGrantOption" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "type" : "string"
      }
    }
  },
  "definitions" : {
    "DataLakePrincipal" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DataLakePrincipalIdentifier" : {
          "type" : "string"
        }
      }
    },
    "TableResource" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DatabaseName" : {
          "type" : "string"
        },
        "CatalogId" : {
          "type" : "string"
        },
        "TableWildcard" : {
          "$ref" : "#/definitions/TableWildcard"
        },
        "Name" : {
          "type" : "string"
        }
      }
    },
    "Resource" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DatabaseResource" : {
          "$ref" : "#/definitions/DatabaseResource"
        },
        "DataLocationResource" : {
          "$ref" : "#/definitions/DataLocationResource"
        },
        "TableWithColumnsResource" : {
          "$ref" : "#/definitions/TableWithColumnsResource"
        },
        "TableResource" : {
          "$ref" : "#/definitions/TableResource"
        }
      }
    },
    "DatabaseResource" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "CatalogId" : {
          "type" : "string"
        },
        "Name" : {
          "type" : "string"
        }
      }
    },
    "DataLocationResource" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "S3Resource" : {
          "type" : "string"
        },
        "CatalogId" : {
          "type" : "string"
        }
      }
    },
    "TableWildcard" : {
      "type" : "object",
      "additionalProperties" : false
    },
    "TableWithColumnsResource" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DatabaseName" : {
          "type" : "string"
        },
        "ColumnNames" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "CatalogId" : {
          "type" : "string"
        },
        "Name" : {
          "type" : "string"
        },
        "ColumnWildcard" : {
          "$ref" : "#/definitions/ColumnWildcard"
        }
      }
    },
    "ColumnWildcard" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ExcludedColumnNames" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        }
      }
    }
  },
  "required" : [ "DataLakePrincipal", "Resource" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id" ]
}