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
CsvClassifier
UpdateCsvClassifierRequest | undefined

A CsvClassifier object with updated fields.

GrokClassifier
UpdateGrokClassifierRequest | undefined

A GrokClassifier object with updated fields.

JsonClassifier
UpdateJsonClassifierRequest | undefined

A JsonClassifier object with updated fields.

XMLClassifier
UpdateXMLClassifierRequest | undefined

An XMLClassifier object with updated fields.

UpdateClassifierCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

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.