Does anyone know how to enable the EventBridge notifications via the s3 API? The documentation is not very helpful: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/put-bucket-notification-configuration.html.
Asked
Active
Viewed 296 times
0
-
1Have you tried the example in the documentation you shown? That works. Can you share error massage if you're seeing some? – shimo Dec 07 '21 at 23:16
1 Answers
0
All events get sent to the default bus in the account, so there is nothing to configure. This makes the documentation and the call structure confusing. It makes more sense if you translate the API Call into XML.
await s3Client.putBucketNotificationConfiguration({
Bucket: 'my-bucket-name',
NotificationConfiguration: {
EventBridgeConfiguration: {},
}
}).promise();

Ross Williams
- 507
- 1
- 9