I'm trying to enable resource transformation (with Lambda) to Kinesis Firehose using CDK. I already know how to do this using the console, but I can't figure out how to implement this with the AWS CDK. This is the Code that I have so far using Typescript
// KINESIS STREAM
const kinesisStream = new kinesis.CfnDeliveryStream(this, `${props.name}-Kinesis`, {
deliveryStreamName: `${props.name}-Stream`,
deliveryStreamType: 'DirectPut',
s3DestinationConfiguration: {
bucketArn: props.eventsBucketArn,
bufferingHints: {
intervalInSeconds: 300,
sizeInMBs: 5,
},
compressionFormat: 'UNCOMPRESSED',
prefix: 'year=!{timestamp:yyyy}/month=!{timestamp:MM}/day=!{timestamp:dd}/hour=!{timestamp:HH}/',
errorOutputPrefix: 'Errors/year=!{timestamp:yyyy}/month=!{timestamp:MM}/day=!{timestamp:dd}/hour=!{timestamp:HH}/!{firehose:error-output-type}',
roleArn: kinesisRole.roleArn
}
});
Thanks in advance for the help!