deleteAnalyzer method

Future<void> deleteAnalyzer({
  1. required String analyzerName,
  2. String? clientToken,
})

Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the account in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.

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

Parameter analyzerName : The name of the analyzer to delete.

Parameter clientToken : A client token.

Implementation

Future<void> deleteAnalyzer({
  required String analyzerName,
  String? clientToken,
}) async {
  ArgumentError.checkNotNull(analyzerName, 'analyzerName');
  _s.validateStringLength(
    'analyzerName',
    analyzerName,
    1,
    255,
    isRequired: true,
  );
  final $query = <String, List<String>>{
    if (clientToken != null) 'clientToken': [clientToken],
  };
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/analyzer/${Uri.encodeComponent(analyzerName)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}