updateAnalyzer method

Future<UpdateAnalyzerResponse> updateAnalyzer({
  1. required String analyzerName,
  2. AnalyzerConfiguration? configuration,
})

Modifies the configuration of an existing analyzer.

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

Parameter analyzerName : The name of the analyzer to modify.

Implementation

Future<UpdateAnalyzerResponse> updateAnalyzer({
  required String analyzerName,
  AnalyzerConfiguration? configuration,
}) async {
  final $payload = <String, dynamic>{
    if (configuration != null) 'configuration': configuration,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/analyzer/${Uri.encodeComponent(analyzerName)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateAnalyzerResponse.fromJson(response);
}