From 0a8a637758b03de456a4b280f68defac60793ba9 Mon Sep 17 00:00:00 2001 From: Scott Robinson Date: Thu, 31 Aug 2023 13:27:56 +0100 Subject: [PATCH] fix(aws-kinesisfirehose-s3): Fix type of `kinesisFirehoseProps` prop. --- .../aws-kinesisfirehose-s3/lib/index.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/lib/index.ts b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/lib/index.ts index 9f01075f4..27103b099 100644 --- a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/lib/index.ts +++ b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/lib/index.ts @@ -49,7 +49,17 @@ export interface KinesisFirehoseToS3Props { * * @default - Default props are used */ - readonly kinesisFirehoseProps?: kinesisfirehose.CfnDeliveryStreamProps | any; + readonly kinesisFirehoseProps?: Omit< + kinesisfirehose.CfnDeliveryStreamProps, + "extendedS3DestinationConfiguration" + > & { + extendedS3DestinationConfiguration: + | Omit< + kinesisfirehose.CfnDeliveryStream.ExtendedS3DestinationConfigurationProperty, + "bucketArn" | "roleArn" + > + | cdk.IResolvable; + }; /** * Optional user provided props to override the default props for the CloudWatchLogs LogGroup. *