S3EventSelector
- class aws_cdk.aws_cloudtrail.S3EventSelector(*, bucket, object_prefix=None)
Bases:
object
Selecting an S3 bucket and an optional prefix to be logged for data events.
- Parameters:
bucket (
IBucket
) – S3 bucket.object_prefix (
Optional
[str
]) – Data events for objects whose key matches this prefix will be logged. Default: - all objects
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_cloudtrail as cloudtrail import aws_cdk.aws_s3 as s3 # bucket: s3.Bucket s3_event_selector = cloudtrail.S3EventSelector( bucket=bucket, # the properties below are optional object_prefix="objectPrefix" )
Attributes
- bucket
S3 bucket.
- object_prefix
Data events for objects whose key matches this prefix will be logged.
- Default:
all objects