getFinding method
Retrieves information about the specified finding.
May throw ResourceNotFoundException. May throw ValidationException. May throw InternalServerException. May throw ThrottlingException. May throw AccessDeniedException.
Parameter analyzerArn
:
The ARN of the analyzer that generated the finding.
Parameter id
:
The ID of the finding to retrieve.
Implementation
Future<GetFindingResponse> getFinding({
required String analyzerArn,
required String id,
}) async {
ArgumentError.checkNotNull(analyzerArn, 'analyzerArn');
ArgumentError.checkNotNull(id, 'id');
final $query = <String, List<String>>{
'analyzerArn': [analyzerArn],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/finding/${Uri.encodeComponent(id)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetFindingResponse.fromJson(response);
}