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'}]}}}
        ]
    }
)