OutputFormatConfigurationProperty Struct
Specifies the serializer that you want Firehose to use to convert the format of your data before it writes it to Amazon S3.
This parameter is required if Enabled is set to true.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisfirehose as kinesisfirehose } from 'aws-cdk-lib';
const outputFormatConfigurationProperty: kinesisfirehose.CfnDeliveryStream.OutputFormatConfigurationProperty = {
serializer: {
orcSerDe: {
blockSizeBytes: 123,
bloomFilterColumns: ['bloomFilterColumns'],
bloomFilterFalsePositiveProbability: 123,
compression: 'compression',
dictionaryKeyThreshold: 123,
enablePadding: false,
formatVersion: 'formatVersion',
paddingTolerance: 123,
rowIndexStride: 123,
stripeSizeBytes: 123,
},
parquetSerDe: {
blockSizeBytes: 123,
compression: 'compression',
enableDictionaryCompression: false,
maxPaddingBytes: 123,
pageSizeBytes: 123,
writerVersion: 'writerVersion',
},
},
};
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_kinesisfirehose as kinesisfirehose
output_format_configuration_property = kinesisfirehose.CfnDeliveryStream.OutputFormatConfigurationProperty(
serializer=kinesisfirehose.CfnDeliveryStream.SerializerProperty(
orc_ser_de=kinesisfirehose.CfnDeliveryStream.OrcSerDeProperty(
block_size_bytes=123,
bloom_filter_columns=["bloomFilterColumns"],
bloom_filter_false_positive_probability=123,
compression="compression",
dictionary_key_threshold=123,
enable_padding=False,
format_version="formatVersion",
padding_tolerance=123,
row_index_stride=123,
stripe_size_bytes=123
),
parquet_ser_de=kinesisfirehose.CfnDeliveryStream.ParquetSerDeProperty(
block_size_bytes=123,
compression="compression",
enable_dictionary_compression=False,
max_padding_bytes=123,
page_size_bytes=123,
writer_version="writerVersion"
)
)
)
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.kinesisfirehose.*;
OutputFormatConfigurationProperty outputFormatConfigurationProperty = OutputFormatConfigurationProperty.builder()
.serializer(SerializerProperty.builder()
.orcSerDe(OrcSerDeProperty.builder()
.blockSizeBytes(123)
.bloomFilterColumns(List.of("bloomFilterColumns"))
.bloomFilterFalsePositiveProbability(123)
.compression("compression")
.dictionaryKeyThreshold(123)
.enablePadding(false)
.formatVersion("formatVersion")
.paddingTolerance(123)
.rowIndexStride(123)
.stripeSizeBytes(123)
.build())
.parquetSerDe(ParquetSerDeProperty.builder()
.blockSizeBytes(123)
.compression("compression")
.enableDictionaryCompression(false)
.maxPaddingBytes(123)
.pageSizeBytes(123)
.writerVersion("writerVersion")
.build())
.build())
.build();
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.KinesisFirehose;
var outputFormatConfigurationProperty = new OutputFormatConfigurationProperty {
Serializer = new SerializerProperty {
OrcSerDe = new OrcSerDeProperty {
BlockSizeBytes = 123,
BloomFilterColumns = new [] { "bloomFilterColumns" },
BloomFilterFalsePositiveProbability = 123,
Compression = "compression",
DictionaryKeyThreshold = 123,
EnablePadding = false,
FormatVersion = "formatVersion",
PaddingTolerance = 123,
RowIndexStride = 123,
StripeSizeBytes = 123
},
ParquetSerDe = new ParquetSerDeProperty {
BlockSizeBytes = 123,
Compression = "compression",
EnableDictionaryCompression = false,
MaxPaddingBytes = 123,
PageSizeBytes = 123,
WriterVersion = "writerVersion"
}
}
};
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"
outputFormatConfigurationProperty := &OutputFormatConfigurationProperty{
Serializer: &SerializerProperty{
OrcSerDe: &OrcSerDeProperty{
BlockSizeBytes: jsii.Number(123),
BloomFilterColumns: []*string{
jsii.String("bloomFilterColumns"),
},
BloomFilterFalsePositiveProbability: jsii.Number(123),
Compression: jsii.String("compression"),
DictionaryKeyThreshold: jsii.Number(123),
EnablePadding: jsii.Boolean(false),
FormatVersion: jsii.String("formatVersion"),
PaddingTolerance: jsii.Number(123),
RowIndexStride: jsii.Number(123),
StripeSizeBytes: jsii.Number(123),
},
ParquetSerDe: &ParquetSerDeProperty{
BlockSizeBytes: jsii.Number(123),
Compression: jsii.String("compression"),
EnableDictionaryCompression: jsii.Boolean(false),
MaxPaddingBytes: jsii.Number(123),
PageSizeBytes: jsii.Number(123),
WriterVersion: jsii.String("writerVersion"),
},
},
}
Properties
serializeroptionalIResolvable | CfnDeliveryStream.serializeroptionaltyping.Union[IResolvable, SerializerProperty]serializeroptionalIResolvableSerializeroptionalIResolvableSerializeroptionalinterface{} #Specifies which serializer to use.
You can choose either the ORC SerDe or the Parquet SerDe. If both are non-null, the server rejects the request.