interface S3EventSelector
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudTrail.S3EventSelector |
Java | software.amazon.awscdk.services.cloudtrail.S3EventSelector |
Python | aws_cdk.aws_cloudtrail.S3EventSelector |
TypeScript (source) | @aws-cdk/aws-cloudtrail » S3EventSelector |
Selecting an S3 bucket and an optional prefix to be logged for data events.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloudtrail from '@aws-cdk/aws-cloudtrail';
import * as s3 from '@aws-cdk/aws-s3';
declare const bucket: s3.Bucket;
const s3EventSelector: cloudtrail.S3EventSelector = {
bucket: bucket,
// the properties below are optional
objectPrefix: 'objectPrefix',
};
Properties
Name | Type | Description |
---|---|---|
bucket | IBucket | S3 bucket. |
object | string | Data events for objects whose key matches this prefix will be logged. |
bucket
Type:
IBucket
S3 bucket.
objectPrefix?
Type:
string
(optional, default: all objects)
Data events for objects whose key matches this prefix will be logged.