{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-describe-scheduled-audit-response-schema.json",
  "title": "DescribeScheduledAuditResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-management-audit-api-openapi.yml#/components/schemas/DescribeScheduledAuditResponse",
  "type": "object",
  "properties": {
    "frequency": {
      "allOf": [
        {
          "$ref": "#/$defs/AuditFrequency"
        },
        {
          "description": "How often the scheduled audit takes place, either one of <code>DAILY</code>, <code>WEEKLY</code>, <code>BIWEEKLY</code>, or <code>MONTHLY</code>. The start time of each audit is determined by the system."
        }
      ]
    },
    "dayOfMonth": {
      "allOf": [
        {
          "$ref": "#/$defs/DayOfMonth"
        },
        {
          "description": "The day of the month on which the scheduled audit takes place. This is will be <code>1</code> through <code>31</code> or <code>LAST</code>. If days <code>29</code>-<code>31</code> are specified, and the month does not have that many days, the audit takes place on the <code>LAST</code> day of the month."
        }
      ]
    },
    "dayOfWeek": {
      "allOf": [
        {
          "$ref": "#/$defs/DayOfWeek"
        },
        {
          "description": "The day of the week on which the scheduled audit takes place, either one of <code>SUN</code>, <code>MON</code>, <code>TUE</code>, <code>WED</code>, <code>THU</code>, <code>FRI</code>, or <code>SAT</code>."
        }
      ]
    },
    "targetCheckNames": {
      "allOf": [
        {
          "$ref": "#/$defs/TargetAuditCheckNames"
        },
        {
          "description": "Which checks are performed during the scheduled audit. Checks must be enabled for your account. (Use <code>DescribeAccountAuditConfiguration</code> to see the list of all checks, including those that are enabled or use <code>UpdateAccountAuditConfiguration</code> to select which checks are enabled.)"
        }
      ]
    },
    "scheduledAuditName": {
      "allOf": [
        {
          "$ref": "#/$defs/ScheduledAuditName"
        },
        {
          "description": "The name of the scheduled audit."
        }
      ]
    },
    "scheduledAuditArn": {
      "allOf": [
        {
          "$ref": "#/$defs/ScheduledAuditArn"
        },
        {
          "description": "The ARN of the scheduled audit."
        }
      ]
    }
  },
  "$defs": {
    "AuditCheckName": {
      "type": "string",
      "description": "An audit check name. Checks must be enabled for your account. (Use <code>DescribeAccountAuditConfiguration</code> to see the list of all checks, including those that are enabled or use <code>UpdateAccountAuditConfiguration</code> to select which checks are enabled.)"
    },
    "AuditFrequency": {
      "type": "string",
      "enum": [
        "DAILY",
        "WEEKLY",
        "BIWEEKLY",
        "MONTHLY"
      ]
    },
    "DayOfMonth": {
      "type": "string",
      "pattern": "^([1-9]|[12][0-9]|3[01])$|^LAST$"
    },
    "DayOfWeek": {
      "type": "string",
      "enum": [
        "SUN",
        "MON",
        "TUE",
        "WED",
        "THU",
        "FRI",
        "SAT"
      ]
    },
    "ScheduledAuditArn": {
      "type": "string"
    },
    "ScheduledAuditName": {
      "type": "string",
      "pattern": "[a-zA-Z0-9_-]+",
      "minLength": 1,
      "maxLength": 128
    },
    "TargetAuditCheckNames": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AuditCheckName"
      }
    }
  }
}