[s3] support s3:ObjectRestore:Completed event type #10498
Labels
@aws-cdk/aws-s3
Related to Amazon S3
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
in-progress
This issue is being actively worked on.
p1
I'm building a solution for a customer that leverages S3 data events. More specifically, it relies on the s3:ObjectRestore:Completed event. According to the CDK Python documentation, it seems this event type is not supported:
https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_s3/EventType.html
I can't understand why nearly all event types are supported, but this one. It would be nice if we could have this in the CDK code itself, instead of having to look for workarounds, such as using CloudFormation templates.
Any possible roadmaps to share on this, or eventual workarounds?
Use Case
The solution works smoothly considering CloudFormation (or even Terraform). The use case follows as an image attached to this feature request.
Proposed Solution
Some temporary workaround. Open to suggestions.
Other
I'm facing problems when trying to code this ("notify_lambda" corresponds to Lambda function B):
destination_bucket.add_event_notification(
s3.EventType.RESTORE_COMPLETED,
s3_notifications.LambdaDestination(self.notify_lambda)
)
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: