From ffb0cc71e06e36683d6281512f7bffe73555711a Mon Sep 17 00:00:00 2001 From: Niklas Wallerstedt Date: Mon, 22 Mar 2021 17:30:03 +0100 Subject: [PATCH] docs(codepipeline-actions): update CloudTrail example for addS3EventSelector (#13728) Fixes #13684 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/@aws-cdk/aws-codepipeline-actions/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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({