Welcome to the new DOCS.vastdata.com. We've added new menus and a version selector, plus new persona and resource pages to help customers get started. Looking for a previous article? Use the docs search.

Configuring Bucket Event Notifications

Prev Next

The put_bucket_notification_configuration() method can be used to configure bucket event notifications, for example:

s3.client.put_bucket_notification_configuration(
    Bucket=bucket_name, NotificationConfiguration={
        'TopicConfigurations': [
            {'Id': 'from_S3',
             'TopicArn': 'long-analysis:authority-hand',
             'Events': ['s3:ObjectCreated:*'],
             'Filter': {'Key': {'FilterRules': [{'Name': 'suffix', 'Value':'foo'}]}}}
        ]
    }
)