# DataFormatProps

Properties of a DataFormat instance.

Used as props by: [DataFormat](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.DataFormat.html)

- Source: [`aws-glue/lib/data-format.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-glue/lib/data-format.ts#L182)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

TypeScript:

```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';

declare const classificationString: glue.ClassificationString;
declare const inputFormat: glue.InputFormat;
declare const outputFormat: glue.OutputFormat;
declare const serializationLibrary: glue.SerializationLibrary;
const dataFormatProps: glue.DataFormatProps = {
  inputFormat: inputFormat,
  outputFormat: outputFormat,
  serializationLibrary: serializationLibrary,

  // the properties below are optional
  classificationString: classificationString,
};
```

Python:

```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

# classification_string: glue.ClassificationString
# input_format: glue.InputFormat
# output_format: glue.OutputFormat
# serialization_library: glue.SerializationLibrary

data_format_props = glue.DataFormatProps(
    input_format=input_format,
    output_format=output_format,
    serialization_library=serialization_library,

    # the properties below are optional
    classification_string=classification_string
)
```

Java:

```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.*;

ClassificationString classificationString;
InputFormat inputFormat;
OutputFormat outputFormat;
SerializationLibrary serializationLibrary;

DataFormatProps dataFormatProps = DataFormatProps.builder()
        .inputFormat(inputFormat)
        .outputFormat(outputFormat)
        .serializationLibrary(serializationLibrary)

        // the properties below are optional
        .classificationString(classificationString)
        .build();
```

C# / .NET:

```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;

ClassificationString classificationString;
InputFormat inputFormat;
OutputFormat outputFormat;
SerializationLibrary serializationLibrary;

var dataFormatProps = new DataFormatProps {
    InputFormat = inputFormat,
    OutputFormat = outputFormat,
    SerializationLibrary = serializationLibrary,

    // the properties below are optional
    ClassificationString = classificationString
};
```

Golang:

```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"

var classificationString ClassificationString
var inputFormat InputFormat
var outputFormat OutputFormat
var serializationLibrary SerializationLibrary

dataFormatProps := &DataFormatProps{
	InputFormat: inputFormat,
	OutputFormat: outputFormat,
	SerializationLibrary: serializationLibrary,

	// the properties below are optional
	ClassificationString: classificationString,
}
```

## Properties

- `classificationString`: [ClassificationString](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.ClassificationString.html) — Classification string given to tables with this data format.

  **Default:** No classification is specified.

- `inputFormat`: [InputFormat](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.InputFormat.html) (required) — `InputFormat` for this data format.

- `outputFormat`: [OutputFormat](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.OutputFormat.html) (required) — `OutputFormat` for this data format.

- `serializationLibrary`: [SerializationLibrary](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.SerializationLibrary.html) (required) — Serialization library for this data format.
