diff --git a/packages/@aws-cdk/aws-codepipeline-actions/README.md b/packages/@aws-cdk/aws-codepipeline-actions/README.md index 559a111f2f18c..4b81b33c58b9f 100644 --- a/packages/@aws-cdk/aws-codepipeline-actions/README.md +++ b/packages/@aws-cdk/aws-codepipeline-actions/README.md @@ -232,7 +232,10 @@ import * as cloudtrail from '@aws-cdk/aws-cloudtrail'; const key = 'some/key.zip'; const trail = new cloudtrail.Trail(this, 'CloudTrail'); -trail.addS3EventSelector([sourceBucket.arnForObjects(key)], { +trail.addS3EventSelector([{ + bucket: sourceBucket, + objectPrefix: key, +}], { readWriteType: cloudtrail.ReadWriteType.WRITE_ONLY, }); const sourceAction = new codepipeline_actions.S3SourceAction({