getFindingV2 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.
Parameter maxResults :
The maximum number of results to return in the response.
Parameter nextToken :
A token used for pagination of results returned.
Implementation
Future<GetFindingV2Response> getFindingV2({
required String analyzerArn,
required String id,
int? maxResults,
String? nextToken,
}) async {
final $query = <String, List<String>>{
'analyzerArn': [analyzerArn],
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/findingv2/${Uri.encodeComponent(id)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetFindingV2Response.fromJson(response);
}