aws-cdk-lib.aws_s3.NotificationKeyFilter

interface NotificationKeyFilter

LanguageType name
.NETAmazon.CDK.AWS.S3.NotificationKeyFilter
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#NotificationKeyFilter
Javasoftware.amazon.awscdk.services.s3.NotificationKeyFilter
Pythonaws_cdk.aws_s3.NotificationKeyFilter
TypeScript (source)aws-cdk-lib » aws_s3 » NotificationKeyFilter

Example

declare const myQueue: sqs.Queue;
const bucket = new s3.Bucket(this, 'MyBucket');
bucket.addEventNotification(s3.EventType.OBJECT_REMOVED, new s3n.SqsDestination(myQueue), {
  prefix: 'foo/',
  suffix: '.jpg',
});

Properties

NameTypeDescription
prefix?stringS3 keys must have the specified prefix.
suffix?stringS3 keys must have the specified suffix.

prefix?

Type: string (optional)

S3 keys must have the specified prefix.


suffix?

Type: string (optional)

S3 keys must have the specified suffix.