@@ -5,7 +5,7 @@ import { AccountRootPrincipal, Effect, PolicyDocument, PolicyStatement, Role, Se
55import { DeliveryStream , S3Bucket } from 'aws-cdk-lib/aws-kinesisfirehose' ;
66import { CfnDeliverySource , LogGroup , ResourcePolicy , RetentionDays } from 'aws-cdk-lib/aws-logs' ;
77import { Secret } from 'aws-cdk-lib/aws-secretsmanager' ;
8- import { FirehoseLogsDelivery , LogGroupLogsDelivery , S3LogsDelivery , XRayLogsDelivery } from '../../../lib/services/aws-logs' ;
8+ import { FirehoseLogsDelivery , LogGroupLogsDelivery , S3LogsDelivery , S3LogsDeliveryPermissionsVersion , XRayLogsDelivery } from '../../../lib/services/aws-logs' ;
99
1010// at the time of creating this test file S3 does not support Vended Logs on Buckets but this test pretends they do to make writing tests easier
1111describe ( 'S3 Delivery' , ( ) => {
@@ -77,7 +77,7 @@ describe('S3 Delivery', () => {
7777 } ) ;
7878
7979 const s3Logs1 = new S3LogsDelivery ( bucket , {
80- permissionsVersion : 'V2' ,
80+ permissionsVersion : S3LogsDeliveryPermissionsVersion . V2 ,
8181 } ) ;
8282 s3Logs1 . bind ( source1 , deliverySource1 , source1 . bucketArn ) ;
8383
@@ -89,7 +89,7 @@ describe('S3 Delivery', () => {
8989 test ( 'creates policy with V1 permissions if specified' , ( ) => {
9090 const bucket = new Bucket ( stack , 'Destination' ) ;
9191 const s3Logs = new S3LogsDelivery ( bucket , {
92- permissionsVersion : 'V1' ,
92+ permissionsVersion : S3LogsDeliveryPermissionsVersion . V1 ,
9393 } ) ;
9494 s3Logs . bind ( source , deliverySource , source . bucketArn ) ;
9595
@@ -207,7 +207,7 @@ describe('S3 Delivery', () => {
207207 test ( 'creates policy with V2 permissions if specified' , ( ) => {
208208 const bucket = new Bucket ( stack , 'Destination' ) ;
209209 const s3Logs = new S3LogsDelivery ( bucket , {
210- permissionsVersion : 'V2' ,
210+ permissionsVersion : S3LogsDeliveryPermissionsVersion . V2 ,
211211 } ) ;
212212 s3Logs . bind ( source , deliverySource , source . bucketArn ) ;
213213
0 commit comments