You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This creates the same setup as above - but also logs events to a created CloudWatch Log stream. By default, the created log group has a retention period of 365 Days, but this is also configurable.
38
+
This creates the same setup as above - but also logs events to a created CloudWatch Log stream.
39
+
By default, the created log group has a retention period of 365 Days, but this is also configurable.
39
40
40
-
41
-
For using CloudTrail event selector to log specific S3 events, you can use the `CloudTrailProps` configuration object
42
-
43
-
For example - this logs all ReadWriteEvents for the `magic-bucket` bucket:
41
+
For using CloudTrail event selector to log specific S3 events,
42
+
you can use the `CloudTrailProps` configuration object.
trail.addS3Filter("arn:aws:s3:::magic-bucket/"); // Adds an event selector to the bucket magic-bucket. By default, this includes management events and all operations (Read + Write)
50
+
// Adds an event selector to the bucket magic-bucket.
51
+
// By default, this includes management events and all operations (Read + Write)
0 commit comments