SSMContacts / Paginator / ListRotationShifts


class SSMContacts.Paginator.ListRotationShifts#
paginator = client.get_paginator('list_rotation_shifts')

Creates an iterator that will paginate through responses from SSMContacts.Client.list_rotation_shifts().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    StartTime=datetime(2015, 1, 1),
    EndTime=datetime(2015, 1, 1),
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
  • RotationId (string) –


    The Amazon Resource Name (ARN) of the rotation to retrieve shift information about.

  • StartTime (datetime) – The date and time for the beginning of the time range to list shifts for.

  • EndTime (datetime) –


    The date and time for the end of the time range to list shifts for.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:



Response Syntax

    'RotationShifts': [
            'ContactIds': [
            'StartTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1),
            'Type': 'REGULAR'|'OVERRIDDEN',
            'ShiftDetails': {
                'OverriddenContactIds': [


Response Structure

  • (dict) –

    • RotationShifts (list) –

      Information about shifts that meet the filter criteria.

      • (dict) –

        Information about a shift that belongs to an on-call rotation.

        • ContactIds (list) –

          The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.

          • (string) –

        • StartTime (datetime) –

          The time a shift rotation begins.

        • EndTime (datetime) –

          The time a shift rotation ends.

        • Type (string) –

          The type of shift rotation.

        • ShiftDetails (dict) –

          Additional information about an on-call rotation shift.

          • OverriddenContactIds (list) –

            The Amazon Resources Names (ARNs) of the contacts who were replaced in a shift when an override was created. If the override is deleted, these contacts are restored to the shift.

            • (string) –