Skip to content

Commit

Permalink
docs(codepipeline-actions): update CloudTrail example for addS3EventS…
Browse files Browse the repository at this point in the history
…elector (aws#13728)

Fixes aws#13684


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
niklaswallerstedt authored and hollanddd committed Aug 26, 2021
1 parent 6126d18 commit a1b39cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-codepipeline-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit a1b39cd

Please sign in to comment.