{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/PolicyName",
  "/properties/PolicyDocument"
 ],
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "Id": {
   "type": "string"
  },
  "PolicyDocument": {
   "format": "json",
   "pattern": "^[\\s\\S]*$",
   "type": [
    "object",
    "string"
   ]
  },
  "PolicyName": {
   "maxLength": 128,
   "minLength": 1,
   "pattern": "^[\\w+=,.@-]+$",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn",
  "/properties/Id"
 ],
 "required": [
  "PolicyDocument"
 ],
 "typeName": "AWS::IoT::Policy"
}
