{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-incident-manager/json-schema/amazon-incident-manager-list-preview-rotation-shifts-request-schema.json",
  "title": "ListPreviewRotationShiftsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-incident-manager-operations-api-openapi.yml#/components/schemas/ListPreviewRotationShiftsRequest",
  "type": "object",
  "properties": {
    "RotationStartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time a rotation would begin. The first shift is calculated from this date and time."
    },
    "StartTime": {
      "type": "string",
      "format": "date-time",
      "description": "Used to filter the range of calculated shifts before sending the response back to the user."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time a rotation shift would end."
    },
    "Members": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The contacts that would be assigned to a rotation."
    },
    "TimeZoneId": {
      "type": "string",
      "description": "The time zone the rotation’s activity would be based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"UTC\", or \"Asia/Seoul\"."
    },
    "Recurrence": {
      "$ref": "#/$defs/RecurrenceSettings"
    },
    "Overrides": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PreviewOverride"
      },
      "description": "Information about changes that would be made in a rotation override."
    },
    "NextToken": {
      "type": "string",
      "description": "A token to start the list. This token is used to get the next set of results."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of items to return for this call. The call also returns a token that can be specified in a subsequent call to get the next set of results."
    }
  },
  "required": [
    "EndTime",
    "Members",
    "TimeZoneId",
    "Recurrence"
  ],
  "$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"
      ]
    },
    "PreviewOverride": {
      "type": "object",
      "properties": {
        "NewMembers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Information about contacts to add to an on-call rotation override."
        },
        "StartTime": {
          "type": "string",
          "format": "date-time",
          "description": "Information about the time a rotation override would begin."
        },
        "EndTime": {
          "type": "string",
          "format": "date-time",
          "description": "Information about the time a rotation override would end."
        }
      }
    },
    "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"
      ]
    },
    "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"
      ]
    }
  }
}