Skip to content
v2.274.0

Compression Class ​

Possible compression options Amazon Data Firehose can use to compress data on delivery.

Example ​

ts
// 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 ​

gzip.
HADOOP_SNAPPYCompressionhadoop_snappyCompressionHADOOP_SNAPPYCompressionHADOOP_SNAPPYCompressionHADOOP_SNAPPYCompressionrequiredstatic#
Hadoop-compatible Snappy.
SNAPPYCompressionsnappyCompressionSNAPPYCompressionSNAPPYCompressionSNAPPYCompressionrequiredstatic#
Snappy.
UNCOMPRESSEDCompressionuncompressedCompressionUNCOMPRESSEDCompressionUNCOMPRESSEDCompressionUNCOMPRESSEDCompressionrequiredstatic#
Uncompressed.
valuestringvaluestrvalueStringValuestringValue*stringrequired#
the string value of the Compression.

Methods ​

of(value: string): Compression // chainable@staticmethod def of(value: str) -> Compressionpublic static Compression of(String value)public static Compression Of(string value)func Of(Value *string) Compressionstatic#
Creates a new Compression instance with a custom value.