getFinding method
Retrieves information about the specified finding. GetFinding and
GetFindingV2 both use access-analyzer:GetFinding in the
Action element of an IAM policy statement. You must have
permission to perform the access-analyzer:GetFinding action.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
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 {
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);
}