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 (#13728)

Fixes #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 committed Mar 22, 2021
1 parent fab93c6 commit ffb0cc7
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 ffb0cc7

Please sign in to comment.