listRelatedItems method
List all related items for an incident record.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter incidentRecordArn :
The Amazon Resource Name (ARN) of the incident record containing the
listed related items.
Parameter maxResults :
The maximum number of related items 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<ListRelatedItemsOutput> listRelatedItems({
required String incidentRecordArn,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $payload = <String, dynamic>{
'incidentRecordArn': incidentRecordArn,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/listRelatedItems',
exceptionFnMap: _exceptionFns,
);
return ListRelatedItemsOutput.fromJson(response);
}