{
 "additionalProperties": false,
 "anyOf": [
  {
   "required": [
    "Users"
   ]
  },
  {
   "required": [
    "Groups"
   ]
  },
  {
   "required": [
    "Roles"
   ]
  }
 ],
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "Groups": {
   "insertionOrder": false,
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "Id": {
   "type": "string"
  },
  "PolicyDocument": {
   "maxLength": 131072,
   "minLength": 1,
   "pattern": "[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+",
   "type": [
    "object",
    "string"
   ]
  },
  "PolicyName": {
   "maxLength": 128,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9+=,.@\\-_]+$",
   "type": "string"
  },
  "Roles": {
   "insertionOrder": false,
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "Users": {
   "insertionOrder": false,
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  }
 },
 "readOnlyProperties": [
  "/properties/Id"
 ],
 "required": [
  "PolicyDocument",
  "PolicyName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iam.git",
 "taggable": false,
 "typeName": "AWS::IAM::Policy"
}
