listAnalyzedResources method
Future<ListAnalyzedResourcesResponse>
listAnalyzedResources({
- required String analyzerArn,
- int? maxResults,
- String? nextToken,
- ResourceType? resourceType,
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
May throw ResourceNotFoundException. May throw ValidationException. May throw InternalServerException. May throw ThrottlingException. May throw AccessDeniedException.
Parameter analyzerArn
:
The ARN of the analyzer to retrieve a list of analyzed resources from.
Parameter maxResults
:
The maximum number of results to return in the response.
Parameter nextToken
:
A token used for pagination of results returned.
Parameter resourceType
:
The type of resource.
Implementation
Future<ListAnalyzedResourcesResponse> listAnalyzedResources({
required String analyzerArn,
int? maxResults,
String? nextToken,
ResourceType? resourceType,
}) async {
ArgumentError.checkNotNull(analyzerArn, 'analyzerArn');
final $payload = <String, dynamic>{
'analyzerArn': analyzerArn,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
if (resourceType != null) 'resourceType': resourceType.toValue(),
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/analyzed-resource',
exceptionFnMap: _exceptionFns,
);
return ListAnalyzedResourcesResponse.fromJson(response);
}