listIncidentFindings method

Future<ListIncidentFindingsOutput> listIncidentFindings({
  1. required String incidentRecordArn,
  2. int? maxResults,
  3. String? nextToken,
})

Retrieves a list of the IDs of findings, plus their last modified times, that have been identified for a specified incident. A finding represents a recent application environment change made by an CloudFormation stack creation or update or an CodeDeploy deployment that can be investigated as a potential cause of the incident.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter incidentRecordArn : The Amazon Resource Name (ARN) of the incident for which you want to view associated findings.

Parameter maxResults : The maximum number of findings to retrieve per call.

Parameter nextToken : The pagination token for the next set of items to return. (You received this token from a previous call.)

Implementation

Future<ListIncidentFindingsOutput> listIncidentFindings({
  required String incidentRecordArn,
  int? maxResults,
  String? nextToken,
}) async {
  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: '/listIncidentFindings',
    exceptionFnMap: _exceptionFns,
  );
  return ListIncidentFindingsOutput.fromJson(response);
}