updateClassifier method
Future<void>
updateClassifier({
- UpdateCsvClassifierRequest? csvClassifier,
- UpdateGrokClassifierRequest? grokClassifier,
- UpdateJsonClassifierRequest? jsonClassifier,
- UpdateXMLClassifierRequest? xMLClassifier,
Modifies an existing classifier (a GrokClassifier
, an
XMLClassifier
, a JsonClassifier
, or a
CsvClassifier
, depending on which field is present).
May throw InvalidInputException. May throw VersionMismatchException. May throw EntityNotFoundException. May throw OperationTimeoutException.
Parameter csvClassifier
:
A CsvClassifier
object with updated fields.
Parameter grokClassifier
:
A GrokClassifier
object with updated fields.
Parameter jsonClassifier
:
A JsonClassifier
object with updated fields.
Parameter xMLClassifier
:
An XMLClassifier
object with updated fields.
Implementation
Future<void> updateClassifier({
UpdateCsvClassifierRequest? csvClassifier,
UpdateGrokClassifierRequest? grokClassifier,
UpdateJsonClassifierRequest? jsonClassifier,
UpdateXMLClassifierRequest? xMLClassifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.UpdateClassifier'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (csvClassifier != null) 'CsvClassifier': csvClassifier,
if (grokClassifier != null) 'GrokClassifier': grokClassifier,
if (jsonClassifier != null) 'JsonClassifier': jsonClassifier,
if (xMLClassifier != null) 'XMLClassifier': xMLClassifier,
},
);
}