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

Attributes

bucket

S3 bucket.

Return type

IBucket

object_prefix

Data events for objects whose key matches this prefix will be logged.

Default
  • all objects

Return type

Optional[str]