list_timeline_events
async
¶
list_timeline_events(
incident_record_arn: Arn,
*,
config_overrides: Optional[AsyncSSMIncidentsClientConfig] = None,
filters: Optional[FilterList] = None,
sort_by: Optional[TimelineEventSort] = None,
sort_order: Optional[SortOrder] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListTimelineEventsOutput
Lists timeline events for the specified incident record.
Parameters:
-
incident_record_arn(Arn) –The Amazon Resource Name (ARN) of the incident that includes the timeline event.
-
filters(Optional[FilterList], default:None) –Filters the timeline events based on the provided conditional values. You can filter timeline events with the following keys:
-
eventReference -
eventTime -
eventType
Note the following when deciding how to use Filters:
-
If you don't specify a Filter, the response includes all timeline events.
-
If you specify more than one filter in a single request, the response returns timeline events that match all filters.
-
If you specify a filter with more than one value, the response returns timeline events that match any of the values provided.
-
-
sort_by(Optional[TimelineEventSort], default:None) –Sort timeline events by the specified key value pair.
-
sort_order(Optional[SortOrder], default:None) –Sorts the order of timeline events by the value specified in the
sortByfield. -
max_results(Optional[MaxResults], default:None) –The maximum number of results per page.
-
next_token(Optional[NextToken], default:None) –The pagination token for the next set of items to return. (You received this token from a previous call.)
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
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_incidents/_services/async_ssm_incidents.py
1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 | |