getInsightResults method
Lists the results of the Security Hub insight specified by the insight ARN.
May throw InternalException. May throw InvalidInputException. May throw InvalidAccessException. May throw LimitExceededException. May throw ResourceNotFoundException.
Parameter insightArn
:
The ARN of the insight for which to return results.
Implementation
Future<GetInsightResultsResponse> getInsightResults({
required String insightArn,
}) async {
ArgumentError.checkNotNull(insightArn, 'insightArn');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/insights/results/${insightArn.split('/').map(Uri.encodeComponent).join('/')}',
exceptionFnMap: _exceptionFns,
);
return GetInsightResultsResponse.fromJson(response);
}