# InputFormat

Absolute class name of the Hadoop `InputFormat` to use when reading table files.

Obtainable from: InputFormat.AVRO, InputFormat.CLOUDTRAIL, InputFormat.ORC, InputFormat.PARQUET, InputFormat.TEXT

- 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#L4)
- 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 inputFormat = glue.InputFormat.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

input_format = glue.InputFormat.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.*;

InputFormat inputFormat = InputFormat.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 inputFormat = InputFormat.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"

inputFormat := awscdk.Aws_glue.InputFormat_AVRO()
```

## Initializer

TypeScript:

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

Python:

```python
InputFormat(class_name: str)
```

Java:

```java
new InputFormat(String className)
```

C# / .NET:

```csharp
new InputFormat(string className)
```

Golang:

```go
NewInputFormat(ClassName *string)
```

## Properties

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

- `className`: string

- `CLOUDTRAIL`: [InputFormat](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.InputFormat.html) (static) — InputFormat for Cloudtrail Logs.

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

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

- `TEXT`: [InputFormat](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.InputFormat.html) (static) — An InputFormat for plain text files.

  Files are broken into lines. Either linefeed or
  carriage-return are used to signal end of line. Keys are the position in the file, and
  values are the line of text.
  JSON & CSV files are examples of this InputFormat
