# OutputFormat

Absolute class name of the Hadoop `OutputFormat` to use when writing table files.

Obtainable from: OutputFormat.AVRO, OutputFormat.HIVE_IGNORE_KEY_TEXT, OutputFormat.ORC, OutputFormat.PARQUET

- 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#L49)
- 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';
const outputFormat = glue.OutputFormat.AVRO;
```

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

output_format = glue.OutputFormat.AVRO
```

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

OutputFormat outputFormat = OutputFormat.AVRO;
```

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;

var outputFormat = OutputFormat.AVRO;
```

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"

outputFormat := awscdk.Aws_glue.OutputFormat_AVRO()
```

## Initializer

TypeScript:

```ts
new OutputFormat(className: string)
```

Python:

```python
OutputFormat(class_name: str)
```

Java:

```java
new OutputFormat(String className)
```

C# / .NET:

```csharp
new OutputFormat(string className)
```

Golang:

```go
NewOutputFormat(ClassName *string)
```

## Properties

- `AVRO`: [OutputFormat](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.OutputFormat.html) (static) — OutputFormat for Avro files.

- `className`: string

- `HIVE_IGNORE_KEY_TEXT`: [OutputFormat](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.OutputFormat.html) (static) — Writes text data with a null key (value only).

- `ORC`: [OutputFormat](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.OutputFormat.html) (static) — OutputFormat for Orc files.

- `PARQUET`: [OutputFormat](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.OutputFormat.html) (static) — OutputFormat for Parquet files.
