update_classifier
(**kwargs)¶Modifies an existing classifier (a GrokClassifier
, an XMLClassifier
, a JsonClassifier
, or a CsvClassifier
, depending on which field is present).
See also: AWS API Documentation
Request Syntax
response = client.update_classifier(
GrokClassifier={
'Name': 'string',
'Classification': 'string',
'GrokPattern': 'string',
'CustomPatterns': 'string'
},
XMLClassifier={
'Name': 'string',
'Classification': 'string',
'RowTag': 'string'
},
JsonClassifier={
'Name': 'string',
'JsonPath': 'string'
},
CsvClassifier={
'Name': 'string',
'Delimiter': 'string',
'QuoteSymbol': 'string',
'ContainsHeader': 'UNKNOWN'|'PRESENT'|'ABSENT',
'Header': [
'string',
],
'DisableValueTrimming': True|False,
'AllowSingleColumn': True|False,
'CustomDatatypeConfigured': True|False,
'CustomDatatypes': [
'string',
]
}
)
A GrokClassifier
object with updated fields.
The name of the GrokClassifier
.
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
The grok pattern used by this classifier.
Optional custom grok patterns used by this classifier.
An XMLClassifier
object with updated fields.
The name of the classifier.
An identifier of the data format that the classifier matches.
The XML tag designating the element that contains each record in an XML document being parsed. This cannot identify a self-closing element (closed by />
). An empty row element that contains only attributes can be parsed as long as it ends with a closing tag (for example, <row item_a="A" item_b="B"></row>
is okay, but <row item_a="A" item_b="B" />
is not).
A JsonClassifier
object with updated fields.
The name of the classifier.
A JsonPath
string defining the JSON data for the classifier to classify. Glue supports a subset of JsonPath, as described in Writing JsonPath Custom Classifiers.
A CsvClassifier
object with updated fields.
The name of the classifier.
A custom symbol to denote what separates each column entry in the row.
A custom symbol to denote what combines content into a single column value. It must be different from the column delimiter.
Indicates whether the CSV file contains a header.
A list of strings representing column names.
Specifies not to trim values before identifying the type of column values. The default value is true.
Enables the processing of files that contain only one column.
Specifies the configuration of custom datatypes.
Specifies a list of supported custom datatypes.
dict
Response Syntax
{}
Response Structure
Exceptions
Glue.Client.exceptions.InvalidInputException
Glue.Client.exceptions.VersionMismatchException
Glue.Client.exceptions.EntityNotFoundException
Glue.Client.exceptions.OperationTimeoutException