Skip to content
v2.278.0

CsvClassifierProperty Struct ​

A classifier for custom CSV content.

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 csvClassifierProperty: glue.CfnClassifier.CsvClassifierProperty = {
  allowSingleColumn: false,
  containsCustomDatatype: ['containsCustomDatatype'],
  containsHeader: 'containsHeader',
  customDatatypeConfigured: false,
  delimiter: 'delimiter',
  disableValueTrimming: false,
  header: ['header'],
  name: 'name',
  quoteSymbol: 'quoteSymbol',
};
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

csv_classifier_property = 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"
)
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.*;

CsvClassifierProperty csvClassifierProperty = 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();
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 csvClassifierProperty = new CsvClassifierProperty {
    AllowSingleColumn = false,
    ContainsCustomDatatype = new [] { "containsCustomDatatype" },
    ContainsHeader = "containsHeader",
    CustomDatatypeConfigured = false,
    Delimiter = "delimiter",
    DisableValueTrimming = false,
    Header = new [] { "header" },
    Name = "name",
    QuoteSymbol = "quoteSymbol"
};
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"

csvClassifierProperty := &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"),
}

Properties ​

allowSingleColumnoptionalboolean | IResolvableallow_single_columnoptionaltyping.Union[bool, IResolvable]allowSingleColumnoptionalBooleanAllowSingleColumnoptionalboolAllowSingleColumnoptionalinterface{} #
Enables the processing of files that contain only one column.
containsCustomDatatypeoptionalstring[]contains_custom_datatypeoptionaltyping.List[str]containsCustomDatatypeoptionalList<String>ContainsCustomDatatypeoptionalstring[]ContainsCustomDatatypeoptional*[]*string #
Indicates whether the CSV file contains custom data types.
containsHeaderoptionalstringcontains_headeroptionalstrcontainsHeaderoptionalStringContainsHeaderoptionalstringContainsHeaderoptional*string #
Indicates whether the CSV file contains a header.
notes

A value of UNKNOWN specifies that the classifier will detect whether the CSV file contains headings.

A value of PRESENT specifies that the CSV file contains headings.

A value of ABSENT specifies that the CSV file does not contain headings.

customDatatypeConfiguredoptionalboolean | IResolvablecustom_datatype_configuredoptionaltyping.Union[bool, IResolvable]customDatatypeConfiguredoptionalBooleanCustomDatatypeConfiguredoptionalboolCustomDatatypeConfiguredoptionalinterface{} #
Enables the configuration of custom data types.
delimiteroptionalstringdelimiteroptionalstrdelimiteroptionalStringDelimiteroptionalstringDelimiteroptional*string #
A custom symbol to denote what separates each column entry in the row.
disableValueTrimmingoptionalboolean | IResolvabledisable_value_trimmingoptionaltyping.Union[bool, IResolvable]disableValueTrimmingoptionalBooleanDisableValueTrimmingoptionalboolDisableValueTrimmingoptionalinterface{} #
Specifies not to trim values before identifying the type of column values.

The default value is true .

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
The name of the classifier.
quoteSymboloptionalstringquote_symboloptionalstrquoteSymboloptionalStringQuoteSymboloptionalstringQuoteSymboloptional*string #
A custom symbol to denote what combines content into a single column value.

It must be different from the column delimiter.