list_preview_rotation_shifts
¶
list_preview_rotation_shifts(
end_time: DateTime,
members: RotationPreviewMemberList,
time_zone_id: TimeZoneId,
recurrence: RecurrenceSettings,
*,
config_overrides: Optional[SSMContactsClientConfig] = None,
rotation_start_time: Optional[DateTime] = None,
start_time: Optional[DateTime] = None,
overrides: Optional[OverrideList] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListPreviewRotationShiftsResult
Returns a list of shifts based on rotation configuration parameters.
The Incident Manager primarily uses this operation to populate the Preview calendar. It is not typically run by end users.
Parameters:
-
rotation_start_time(Optional[DateTime], default:None) –The date and time a rotation would begin. The first shift is calculated from this date and time.
-
start_time(Optional[DateTime], default:None) –Used to filter the range of calculated shifts before sending the response back to the user.
-
end_time(DateTime) –The date and time a rotation shift would end.
-
members(RotationPreviewMemberList) –The contacts that would be assigned to a rotation.
-
time_zone_id(TimeZoneId) –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(RecurrenceSettings) –Information about how long a rotation would last before restarting at the beginning of the shift order.
-
overrides(Optional[OverrideList], default:None) –Information about changes that would be made in a rotation override.
-
next_token(Optional[PaginationToken], default:None) –A token to start the list. This token is used to get the next set of results.
-
max_results(Optional[MaxResults], default:None) –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.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation.
-
InternalServerException–Unexpected error occurred while processing the request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm_contacts/_services/ssm_contacts.py
1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 | |