{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-defender/json-schema/amazon-iot-device-defender-enable-io-tlogging-params-schema.json",
  "title": "EnableIoTLoggingParams",
  "description": "Parameters used when defining a mitigation action that enable Amazon Web Services IoT Core logging.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-defender-mitigationactions-api-openapi.yml#/components/schemas/EnableIoTLoggingParams",
  "type": "object",
  "required": [
    "roleArnForLogging",
    "logLevel"
  ],
  "properties": {
    "roleArnForLogging": {
      "allOf": [
        {
          "$ref": "#/$defs/RoleArn"
        },
        {
          "description": "The Amazon Resource Name (ARN) of the IAM role used for logging."
        }
      ]
    },
    "logLevel": {
      "allOf": [
        {
          "$ref": "#/$defs/LogLevel"
        },
        {
          "description": "Specifies the type of information to be logged."
        }
      ]
    }
  },
  "$defs": {
    "LogLevel": {
      "type": "string",
      "enum": [
        "DEBUG",
        "INFO",
        "ERROR",
        "WARN",
        "DISABLED"
      ]
    },
    "RoleArn": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2048
    }
  }
}