createClassifier method
Future<void>
createClassifier({
- CreateCsvClassifierRequest? csvClassifier,
- CreateGrokClassifierRequest? grokClassifier,
- CreateJsonClassifierRequest? jsonClassifier,
- CreateXMLClassifierRequest? xMLClassifier,
Creates a classifier in the user's account. This can be a
GrokClassifier
, an XMLClassifier
, a
JsonClassifier
, or a CsvClassifier
, depending on
which field of the request is present.
May throw AlreadyExistsException. May throw InvalidInputException. May throw OperationTimeoutException.
Parameter csvClassifier
:
A CsvClassifier
object specifying the classifier to create.
Parameter grokClassifier
:
A GrokClassifier
object specifying the classifier to create.
Parameter jsonClassifier
:
A JsonClassifier
object specifying the classifier to create.
Parameter xMLClassifier
:
An XMLClassifier
object specifying the classifier to create.
Implementation
Future<void> createClassifier({
CreateCsvClassifierRequest? csvClassifier,
CreateGrokClassifierRequest? grokClassifier,
CreateJsonClassifierRequest? jsonClassifier,
CreateXMLClassifierRequest? xMLClassifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.CreateClassifier'
};
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,
},
);
}