Skip to content
v2.278.0

CfnClassifierProps Struct ​

Properties for defining a CfnClassifier.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const cfnClassifierProps: glue.CfnClassifierProps = {
  csvClassifier: {
    allowSingleColumn: false,
    containsCustomDatatype: ['containsCustomDatatype'],
    containsHeader: 'containsHeader',
    customDatatypeConfigured: false,
    delimiter: 'delimiter',
    disableValueTrimming: false,
    header: ['header'],
    name: 'name',
    quoteSymbol: 'quoteSymbol',
  },
  grokClassifier: {
    classification: 'classification',
    grokPattern: 'grokPattern',

    // the properties below are optional
    customPatterns: 'customPatterns',
    name: 'name',
  },
  jsonClassifier: {
    jsonPath: 'jsonPath',

    // the properties below are optional
    name: 'name',
  },
  xmlClassifier: {
    classification: 'classification',
    rowTag: 'rowTag',

    // the properties below are optional
    name: 'name',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

cfn_classifier_props = glue.CfnClassifierProps(
    csv_classifier=glue.CfnClassifier.CsvClassifierProperty(
        allow_single_column=False,
        contains_custom_datatype=["containsCustomDatatype"],
        contains_header="containsHeader",
        custom_datatype_configured=False,
        delimiter="delimiter",
        disable_value_trimming=False,
        header=["header"],
        name="name",
        quote_symbol="quoteSymbol"
    ),
    grok_classifier=glue.CfnClassifier.GrokClassifierProperty(
        classification="classification",
        grok_pattern="grokPattern",

        # the properties below are optional
        custom_patterns="customPatterns",
        name="name"
    ),
    json_classifier=glue.CfnClassifier.JsonClassifierProperty(
        json_path="jsonPath",

        # the properties below are optional
        name="name"
    ),
    xml_classifier=glue.CfnClassifier.XMLClassifierProperty(
        classification="classification",
        row_tag="rowTag",

        # the properties below are optional
        name="name"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

CfnClassifierProps cfnClassifierProps = CfnClassifierProps.builder()
        .csvClassifier(CsvClassifierProperty.builder()
                .allowSingleColumn(false)
                .containsCustomDatatype(List.of("containsCustomDatatype"))
                .containsHeader("containsHeader")
                .customDatatypeConfigured(false)
                .delimiter("delimiter")
                .disableValueTrimming(false)
                .header(List.of("header"))
                .name("name")
                .quoteSymbol("quoteSymbol")
                .build())
        .grokClassifier(GrokClassifierProperty.builder()
                .classification("classification")
                .grokPattern("grokPattern")

                // the properties below are optional
                .customPatterns("customPatterns")
                .name("name")
                .build())
        .jsonClassifier(JsonClassifierProperty.builder()
                .jsonPath("jsonPath")

                // the properties below are optional
                .name("name")
                .build())
        .xmlClassifier(XMLClassifierProperty.builder()
                .classification("classification")
                .rowTag("rowTag")

                // the properties below are optional
                .name("name")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var cfnClassifierProps = new CfnClassifierProps {
    CsvClassifier = new CsvClassifierProperty {
        AllowSingleColumn = false,
        ContainsCustomDatatype = new [] { "containsCustomDatatype" },
        ContainsHeader = "containsHeader",
        CustomDatatypeConfigured = false,
        Delimiter = "delimiter",
        DisableValueTrimming = false,
        Header = new [] { "header" },
        Name = "name",
        QuoteSymbol = "quoteSymbol"
    },
    GrokClassifier = new GrokClassifierProperty {
        Classification = "classification",
        GrokPattern = "grokPattern",

        // the properties below are optional
        CustomPatterns = "customPatterns",
        Name = "name"
    },
    JsonClassifier = new JsonClassifierProperty {
        JsonPath = "jsonPath",

        // the properties below are optional
        Name = "name"
    },
    XmlClassifier = new XMLClassifierProperty {
        Classification = "classification",
        RowTag = "rowTag",

        // the properties below are optional
        Name = "name"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnClassifierProps := &CfnClassifierProps{
	CsvClassifier: &CsvClassifierProperty{
		AllowSingleColumn: jsii.Boolean(false),
		ContainsCustomDatatype: []*string{
			jsii.String("containsCustomDatatype"),
		},
		ContainsHeader: jsii.String("containsHeader"),
		CustomDatatypeConfigured: jsii.Boolean(false),
		Delimiter: jsii.String("delimiter"),
		DisableValueTrimming: jsii.Boolean(false),
		Header: []*string{
			jsii.String("header"),
		},
		Name: jsii.String("name"),
		QuoteSymbol: jsii.String("quoteSymbol"),
	},
	GrokClassifier: &GrokClassifierProperty{
		Classification: jsii.String("classification"),
		GrokPattern: jsii.String("grokPattern"),

		// the properties below are optional
		CustomPatterns: jsii.String("customPatterns"),
		Name: jsii.String("name"),
	},
	JsonClassifier: &JsonClassifierProperty{
		JsonPath: jsii.String("jsonPath"),

		// the properties below are optional
		Name: jsii.String("name"),
	},
	XmlClassifier: &XMLClassifierProperty{
		Classification: jsii.String("classification"),
		RowTag: jsii.String("rowTag"),

		// the properties below are optional
		Name: jsii.String("name"),
	},
}

Properties ​

csvClassifieroptionalIResolvable | CfnClassifier.CsvClassifierPropertycsv_classifieroptionaltyping.Union[IResolvable, CsvClassifierProperty]csvClassifieroptionalIResolvableCsvClassifieroptionalIResolvableCsvClassifieroptionalinterface{} #
A classifier for comma-separated values (CSV).
grokClassifieroptionalIResolvable | CfnClassifier.GrokClassifierPropertygrok_classifieroptionaltyping.Union[IResolvable, GrokClassifierProperty]grokClassifieroptionalIResolvableGrokClassifieroptionalIResolvableGrokClassifieroptionalinterface{} #
A classifier that uses `grok` .
jsonClassifieroptionalIResolvable | CfnClassifier.JsonClassifierPropertyjson_classifieroptionaltyping.Union[IResolvable, JsonClassifierProperty]jsonClassifieroptionalIResolvableJsonClassifieroptionalIResolvableJsonClassifieroptionalinterface{} #
A classifier for JSON content.
xmlClassifieroptionalIResolvable | CfnClassifier.XMLClassifierPropertyxml_classifieroptionaltyping.Union[IResolvable, XMLClassifierProperty]xmlClassifieroptionalIResolvableXmlClassifieroptionalIResolvableXmlClassifieroptionalinterface{} #
A classifier for XML content.