startResourceScan method
Immediately starts a scan of the policies applied to the specified resource.
May throw ResourceNotFoundException. May throw ValidationException. May throw InternalServerException. May throw ThrottlingException. May throw AccessDeniedException.
Parameter analyzerArn
:
The ARN of the analyzer to use to scan the policies applied to the
specified resource.
Parameter resourceArn
:
The ARN of the resource to scan.
Implementation
Future<void> startResourceScan({
required String analyzerArn,
required String resourceArn,
}) async {
ArgumentError.checkNotNull(analyzerArn, 'analyzerArn');
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
final $payload = <String, dynamic>{
'analyzerArn': analyzerArn,
'resourceArn': resourceArn,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/resource/scan',
exceptionFnMap: _exceptionFns,
);
}