class Compression
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.KinesisFirehose.Compression |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awskinesisfirehose#Compression |
![]() | software.amazon.awscdk.services.kinesisfirehose.Compression |
![]() | aws_cdk.aws_kinesisfirehose.Compression |
![]() | aws-cdk-lib » aws_kinesisfirehose » Compression |
Possible compression options Amazon Data Firehose can use to compress data on delivery.
Example
// Compress data delivered to S3 using Snappy
declare const bucket: s3.Bucket;
const s3Destination = new firehose.S3Bucket(bucket, {
compression: firehose.Compression.SNAPPY,
});
new firehose.DeliveryStream(this, 'Delivery Stream', {
destination: s3Destination,
});
Properties
Name | Type | Description |
---|---|---|
value | string | the string value of the Compression. |
static GZIP | Compression | gzip. |
static HADOOP_SNAPPY | Compression | Hadoop-compatible Snappy. |
static SNAPPY | Compression | Snappy. |
static UNCOMPRESSED | Compression | Uncompressed. |
static ZIP | Compression | ZIP. |
value
Type:
string
the string value of the Compression.
static GZIP
Type:
Compression
gzip.
static HADOOP_SNAPPY
Type:
Compression
Hadoop-compatible Snappy.
static SNAPPY
Type:
Compression
Snappy.
static UNCOMPRESSED
Type:
Compression
Uncompressed.
static ZIP
Type:
Compression
ZIP.
Methods
Name | Description |
---|---|
static of(value) | Creates a new Compression instance with a custom value. |
static of(value)
public static of(value: string): Compression
Parameters
- value
string
Returns
Creates a new Compression instance with a custom value.