getAnalyzedResource method

Future<GetAnalyzedResourceResponse> getAnalyzedResource({
  1. required String analyzerArn,
  2. required String resourceArn,
})

Retrieves information about a resource that was analyzed.

May throw ResourceNotFoundException. May throw ValidationException. May throw InternalServerException. May throw ThrottlingException. May throw AccessDeniedException.

Parameter analyzerArn : The ARN of the analyzer to retrieve information from.

Parameter resourceArn : The ARN of the resource to retrieve information about.

Implementation

Future<GetAnalyzedResourceResponse> getAnalyzedResource({
  required String analyzerArn,
  required String resourceArn,
}) async {
  ArgumentError.checkNotNull(analyzerArn, 'analyzerArn');
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  final $query = <String, List<String>>{
    'analyzerArn': [analyzerArn],
    'resourceArn': [resourceArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/analyzed-resource',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetAnalyzedResourceResponse.fromJson(response);
}