# CompressionType

The compression type.

- Source: [`aws-glue/lib/storage-parameter.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-glue/lib/storage-parameter.ts#L8)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

```ts
declare const myDatabase: glue.Database;
new glue.S3Table(this, 'MyTable', {
  storageParameters: [
    glue.StorageParameter.skipHeaderLineCount(1),
    glue.StorageParameter.compressionType(glue.CompressionType.GZIP),
    glue.StorageParameter.custom('separatorChar', ',')
  ],
  // ...
  database: myDatabase,
  columns: [{
    name: 'col1',
    type: glue.Schema.STRING,
  }],
  dataFormat: glue.DataFormat.JSON,
});
```

## Members

| Member | Description |
| --- | --- |
| `NONE` | No compression. |
| `BZIP2` | Burrows-Wheeler compression. |
| `GZIP` | Deflate compression. |
| `SNAPPY` | Compression algorithm focused on high compression and decompression speeds, rather than the maximum possible compression. |
