list_rotation_shifts
async
¶
list_rotation_shifts(
rotation_id: SsmContactsArn,
end_time: DateTime,
*,
config_overrides: Optional[AsyncSSMContactsClientConfig] = None,
start_time: Optional[DateTime] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListRotationShiftsResult
Returns a list of shifts generated by an existing rotation in the system.
Parameters:
-
rotation_id(SsmContactsArn) –The Amazon Resource Name (ARN) of the rotation to retrieve shift information about.
-
start_time(Optional[DateTime], default:None) –The date and time for the beginning of the time range to list shifts for.
-
end_time(DateTime) –The date and time for the end of the time range to list shifts for.
-
next_token(Optional[PaginationToken], default:None) –A token to start the list. Use this token 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 you can specify in a subsequent call to get the next set of results.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation.
-
ConflictException–Updating or deleting a resource causes an inconsistent state.
-
InternalServerException–Unexpected error occurred while processing the request.
-
ResourceNotFoundException–Request references a resource that doesn't exist.
-
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/async_ssm_contacts.py
2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 | |