- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
UpdateClassifierCommand
Modifies an existing classifier (a GrokClassifier
, an XMLClassifier
, a JsonClassifier
, or a CsvClassifier
, depending on which field is present).
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { GlueClient, UpdateClassifierCommand } from "@aws-sdk/client-glue"; // ES Modules import
// const { GlueClient, UpdateClassifierCommand } = require("@aws-sdk/client-glue"); // CommonJS import
const client = new GlueClient(config);
const input = { // UpdateClassifierRequest
GrokClassifier: { // UpdateGrokClassifierRequest
Name: "STRING_VALUE", // required
Classification: "STRING_VALUE",
GrokPattern: "STRING_VALUE",
CustomPatterns: "STRING_VALUE",
},
XMLClassifier: { // UpdateXMLClassifierRequest
Name: "STRING_VALUE", // required
Classification: "STRING_VALUE",
RowTag: "STRING_VALUE",
},
JsonClassifier: { // UpdateJsonClassifierRequest
Name: "STRING_VALUE", // required
JsonPath: "STRING_VALUE",
},
CsvClassifier: { // UpdateCsvClassifierRequest
Name: "STRING_VALUE", // required
Delimiter: "STRING_VALUE",
QuoteSymbol: "STRING_VALUE",
ContainsHeader: "UNKNOWN" || "PRESENT" || "ABSENT",
Header: [ // CsvHeader
"STRING_VALUE",
],
DisableValueTrimming: true || false,
AllowSingleColumn: true || false,
CustomDatatypeConfigured: true || false,
CustomDatatypes: [ // CustomDatatypes
"STRING_VALUE",
],
Serde: "OpenCSVSerDe" || "LazySimpleSerDe" || "None",
},
};
const command = new UpdateClassifierCommand(input);
const response = await client.send(command);
// {};
UpdateClassifierCommand Input
See UpdateClassifierCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
CsvClassifier | UpdateCsvClassifierRequest | undefined | A |
GrokClassifier | UpdateGrokClassifierRequest | undefined | A |
JsonClassifier | UpdateJsonClassifierRequest | undefined | A |
XMLClassifier | UpdateXMLClassifierRequest | undefined | An |
UpdateClassifierCommand Output
See UpdateClassifierCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
EntityNotFoundException | client | A specified entity does not exist |
InvalidInputException | client | The input provided was not valid. |
OperationTimeoutException | client | The operation timed out. |
VersionMismatchException | client | There was a version conflict. |
GlueServiceException | Base exception class for all service exceptions from Glue service. |