{
 "additionalProperties": false,
 "definitions": {
  "AccessPolicyIdentity": {
   "additionalProperties": false,
   "properties": {
    "IamRole": {
     "$ref": "#/definitions/IamRole"
    },
    "IamUser": {
     "$ref": "#/definitions/IamUser"
    },
    "User": {
     "$ref": "#/definitions/User"
    }
   },
   "type": "object"
  },
  "AccessPolicyResource": {
   "additionalProperties": false,
   "properties": {
    "Portal": {
     "$ref": "#/definitions/Portal"
    },
    "Project": {
     "$ref": "#/definitions/Project"
    }
   },
   "type": "object"
  },
  "IamRole": {
   "additionalProperties": false,
   "properties": {
    "arn": {
     "maxLength": 1600,
     "minLength": 1,
     "pattern": "^arn:aws(-cn|-us-gov)?:[a-zA-Z0-9-:\\/_\\.\\+=,@]+$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "IamUser": {
   "additionalProperties": false,
   "properties": {
    "arn": {
     "maxLength": 1600,
     "minLength": 1,
     "pattern": "^arn:aws(-cn|-us-gov)?:[a-zA-Z0-9-:\\/_\\.\\+=,@]+$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "Portal": {
   "additionalProperties": false,
   "properties": {
    "id": {
     "maxLength": 36,
     "minLength": 36,
     "pattern": "^(?!00000000-0000-0000-0000-000000000000)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "Project": {
   "additionalProperties": false,
   "properties": {
    "id": {
     "maxLength": 36,
     "minLength": 36,
     "pattern": "^(?!00000000-0000-0000-0000-000000000000)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "User": {
   "additionalProperties": false,
   "properties": {
    "id": {
     "maxLength": 256,
     "minLength": 1,
     "pattern": "^\\S+$",
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/AccessPolicyId"
 ],
 "properties": {
  "AccessPolicyArn": {
   "type": "string"
  },
  "AccessPolicyId": {
   "type": "string"
  },
  "AccessPolicyIdentity": {
   "$ref": "#/definitions/AccessPolicyIdentity"
  },
  "AccessPolicyPermission": {
   "enum": [
    "ADMINISTRATOR",
    "VIEWER"
   ],
   "type": "string"
  },
  "AccessPolicyResource": {
   "$ref": "#/definitions/AccessPolicyResource"
  }
 },
 "readOnlyProperties": [
  "/properties/AccessPolicyArn",
  "/properties/AccessPolicyId"
 ],
 "required": [
  "AccessPolicyIdentity",
  "AccessPolicyPermission",
  "AccessPolicyResource"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-IoTSiteWise.git",
 "tagging": {
  "taggable": false
 },
 "typeName": "AWS::IoTSiteWise::AccessPolicy"
}
