{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-create-cis-scan-configuration-request-schema.json",
  "title": "CreateCisScanConfigurationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-cis-api-openapi.yml#/components/schemas/CreateCisScanConfigurationRequest",
  "type": "object",
  "properties": {
    "scanName": {
      "type": "string",
      "description": "The scan name for the CIS scan configuration."
    },
    "securityLevel": {
      "type": "string",
      "enum": [
        "LEVEL_1",
        "LEVEL_2"
      ],
      "description": "The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile."
    },
    "schedule": {
      "$ref": "#/$defs/Schedule"
    },
    "targets": {
      "$ref": "#/$defs/CreateCisTargets"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags for the CIS scan configuration."
    }
  },
  "required": [
    "scanName",
    "securityLevel",
    "schedule",
    "targets"
  ],
  "$defs": {
    "CreateCisTargets": {
      "type": "object",
      "properties": {
        "accountIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The CIS target account ids."
        },
        "targetResourceTags": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "The CIS target resource tags."
        }
      },
      "required": [
        "accountIds",
        "targetResourceTags"
      ]
    },
    "DailySchedule": {
      "type": "object",
      "properties": {
        "startTime": {
          "$ref": "#/$defs/Time"
        }
      },
      "required": [
        "startTime"
      ]
    },
    "MonthlySchedule": {
      "type": "object",
      "properties": {
        "startTime": {
          "$ref": "#/$defs/Time"
        },
        "day": {
          "type": "string",
          "enum": [
            "SUN",
            "MON",
            "TUE",
            "WED",
            "THU",
            "FRI",
            "SAT"
          ],
          "description": "The monthly schedule's day."
        }
      },
      "required": [
        "startTime",
        "day"
      ]
    },
    "OneTimeSchedule": {
      "type": "object",
      "properties": {}
    },
    "Schedule": {
      "type": "object",
      "properties": {
        "oneTime": {
          "$ref": "#/$defs/OneTimeSchedule"
        },
        "daily": {
          "$ref": "#/$defs/DailySchedule"
        },
        "weekly": {
          "$ref": "#/$defs/WeeklySchedule"
        },
        "monthly": {
          "$ref": "#/$defs/MonthlySchedule"
        }
      },
      "description": "Exactly one member is set."
    },
    "Time": {
      "type": "object",
      "properties": {
        "timeOfDay": {
          "type": "string",
          "description": "The time of day in 24-hour format (00:00)."
        },
        "timezone": {
          "type": "string",
          "description": "The timezone."
        }
      },
      "required": [
        "timeOfDay",
        "timezone"
      ]
    },
    "WeeklySchedule": {
      "type": "object",
      "properties": {
        "startTime": {
          "$ref": "#/$defs/Time"
        },
        "days": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SUN",
              "MON",
              "TUE",
              "WED",
              "THU",
              "FRI",
              "SAT"
            ]
          },
          "description": "The weekly schedule's days."
        }
      },
      "required": [
        "startTime",
        "days"
      ]
    }
  }
}