interface NotificationKeyFilter
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3.NotificationKeyFilter |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awss3#NotificationKeyFilter |
![]() | software.amazon.awscdk.services.s3.NotificationKeyFilter |
![]() | aws_cdk.aws_s3.NotificationKeyFilter |
![]() | 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
Name | Type | Description |
---|---|---|
prefix? | string | S3 keys must have the specified prefix. |
suffix? | string | S3 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.