{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-incident-manager/json-schema/amazon-incident-manager-list-rotations-result-schema.json",
  "title": "ListRotationsResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-incident-manager-rotation-api-openapi.yml#/components/schemas/ListRotationsResult",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "The token for the next set of items to return. Use this token to get the next set of results."
    },
    "Rotations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Rotation"
      },
      "description": "Information about rotations that meet the filter criteria."
    }
  },
  "required": [
    "Rotations"
  ],
  "$defs": {
    "CoverageTime": {
      "type": "object",
      "properties": {
        "Start": {
          "$ref": "#/$defs/HandOffTime"
        },
        "End": {
          "$ref": "#/$defs/HandOffTime"
        }
      }
    },
    "HandOffTime": {
      "type": "object",
      "properties": {
        "HourOfDay": {
          "type": "integer",
          "description": "The hour when an on-call rotation shift begins or ends."
        },
        "MinuteOfHour": {
          "type": "integer",
          "description": "The minute when an on-call rotation shift begins or ends."
        }
      },
      "required": [
        "HourOfDay",
        "MinuteOfHour"
      ]
    },
    "MonthlySetting": {
      "type": "object",
      "properties": {
        "DayOfMonth": {
          "type": "integer",
          "description": "The day of the month when monthly recurring on-call rotations begin."
        },
        "HandOffTime": {
          "$ref": "#/$defs/HandOffTime"
        }
      },
      "required": [
        "DayOfMonth",
        "HandOffTime"
      ]
    },
    "RecurrenceSettings": {
      "type": "object",
      "properties": {
        "MonthlySettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MonthlySetting"
          },
          "description": "Information about on-call rotations that recur monthly."
        },
        "WeeklySettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WeeklySetting"
          },
          "description": "Information about on-call rotations that recur weekly."
        },
        "DailySettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HandOffTime"
          },
          "description": "Information about on-call rotations that recur daily."
        },
        "NumberOfOnCalls": {
          "type": "integer",
          "description": "The number of contacts, or shift team members designated to be on call concurrently during a shift. For example, in an on-call schedule that contains ten contacts, a value of 2 designates that two of them are on call at any given time."
        },
        "ShiftCoverages": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/CoverageTime"
            }
          },
          "description": "Information about the days of the week that the on-call rotation coverage includes."
        },
        "RecurrenceMultiplier": {
          "type": "integer",
          "description": "The number of days, weeks, or months a single rotation lasts."
        }
      },
      "required": [
        "NumberOfOnCalls",
        "RecurrenceMultiplier"
      ]
    },
    "Rotation": {
      "type": "object",
      "properties": {
        "RotationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the rotation."
        },
        "Name": {
          "type": "string",
          "description": "The name of the rotation."
        },
        "ContactIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Resource Names (ARNs) of the contacts assigned to the rotation team."
        },
        "StartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the rotation becomes active."
        },
        "TimeZoneId": {
          "type": "string",
          "description": "The time zone the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\"."
        },
        "Recurrence": {
          "$ref": "#/$defs/RecurrenceSettings"
        }
      },
      "required": [
        "RotationArn",
        "Name"
      ]
    },
    "WeeklySetting": {
      "type": "object",
      "properties": {
        "DayOfWeek": {
          "type": "string",
          "enum": [
            "MON",
            "TUE",
            "WED",
            "THU",
            "FRI",
            "SAT",
            "SUN"
          ],
          "description": "The day of the week when weekly recurring on-call shift rotations begins."
        },
        "HandOffTime": {
          "$ref": "#/$defs/HandOffTime"
        }
      },
      "required": [
        "DayOfWeek",
        "HandOffTime"
      ]
    }
  }
}