interface NotificationKeyFilter
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.NotificationKeyFilter |
Java | software.amazon.awscdk.services.s3.NotificationKeyFilter |
Python | aws_cdk.aws_s3.NotificationKeyFilter |
TypeScript (source) | @aws-cdk/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.