{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/AccountId"
 ],
 "definitions": {
  "EventConfiguration": {
   "additionalProperties": false,
   "properties": {
    "EventType": {
     "maxLength": 512,
     "minLength": 1,
     "type": "string"
    },
    "LogDestination": {
     "maxLength": 512,
     "minLength": 1,
     "pattern": "^(?!aws/)[a-zA-Z0-9_\\-/.#]+$",
     "type": "string"
    },
    "LogLevel": {
     "enum": [
      "ERROR",
      "WARN",
      "INFO",
      "DEBUG",
      "DISABLED"
     ],
     "type": "string"
    }
   },
   "required": [
    "EventType"
   ],
   "type": "object"
  }
 },
 "documentationUrl": "https://docs.aws.amazon.com/iot/latest/developerguide/configure-logging.html",
 "primaryIdentifier": [
  "/properties/AccountId"
 ],
 "properties": {
  "AccountId": {
   "maxLength": 12,
   "minLength": 12,
   "pattern": "^[0-9]{12}$",
   "type": "string"
  },
  "DefaultLogLevel": {
   "enum": [
    "ERROR",
    "WARN",
    "INFO",
    "DEBUG",
    "DISABLED"
   ],
   "type": "string"
  },
  "EventConfigurations": {
   "insertionOrder": true,
   "items": {
    "$ref": "#/definitions/EventConfiguration"
   },
   "type": "array"
  },
  "RoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 2048,
   "minLength": 20,
   "type": "string"
  }
 },
 "required": [
  "AccountId",
  "RoleArn",
  "DefaultLogLevel"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iot.git",
 "tagging": {
  "taggable": false
 },
 "typeName": "AWS::IoT::Logging"
}
