listIncidentRecords method
Lists all incident records in your account. Use this command to retrieve the Amazon Resource Name (ARN) of the incident record you want to update.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter filters :
Filters the list of incident records you want to search through. You can
filter on the following keys:
-
creationTime -
impact -
status -
createdBy
- If you don't specify a Filter, the response includes all incident records.
- If you specify more than one filter in a single request, the response returns incident records that match all filters.
- If you specify a filter with more than one value, the response returns incident records that match any of the values provided.
Parameter maxResults :
The maximum number of results per page.
Parameter nextToken :
The pagination token for the next set of items to return. (You received
this token from a previous call.)
Implementation
Future<ListIncidentRecordsOutput> listIncidentRecords({
List<Filter>? filters,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $payload = <String, dynamic>{
if (filters != null) 'filters': filters,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/listIncidentRecords',
exceptionFnMap: _exceptionFns,
);
return ListIncidentRecordsOutput.fromJson(response);
}