getInsightResults method

Future<GetInsightResultsResponse> getInsightResults({
  1. required String insightArn,
})

Lists the results of the Security Hub CSPM insight specified by the insight ARN.

May throw InternalException. May throw InvalidAccessException. May throw InvalidInputException. 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 {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/insights/results/${insightArn.split('/').map(Uri.encodeComponent).join('/')}',
    exceptionFnMap: _exceptionFns,
  );
  return GetInsightResultsResponse.fromJson(response);
}