Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3: Implement EventBridge Notification #7363

Open
tsugumi-sys opened this issue Feb 19, 2024 · 3 comments
Open

S3: Implement EventBridge Notification #7363

tsugumi-sys opened this issue Feb 19, 2024 · 3 comments

Comments

@tsugumi-sys
Copy link
Contributor

tsugumi-sys commented Feb 19, 2024

Since moto currently supports only Object Created event, let's add the other events described here.

Event type Description PR
Object Created An object was created.The reason field in the event message structure indicates which S3 API was used to create the object: PutObject, POST Object, CopyObject, or CompleteMultipartUpload. PutObject: #7252, PostObject: #7368, CopyObject: #7407, CompleteMultipartUpload: #7435
Object Deleted (DeleteObject), Object Deleted (Lifecycle expiration) An object was deleted.When an object is deleted using an S3 API call, the reason field is set to DeleteObject. When an object is deleted by an S3 Lifecycle expiration rule, the reason field is set to Lifecycle Expiration. For more information, see Expiring objects.When an unversioned object is deleted, or a versioned object is permanently deleted, the deletion-type field is set to Permanently Deleted. When a delete marker is created for a versioned object, the deletion-type field is set to Delete Marker Created. For more information, see Deleting object versions from a versioning-enabled bucket. DeleteObject: #7420, (deletion by lifecycle expiration is not yet supported in moto?)
Object Restore Initiated An object restore was initiated from S3 Glacier or S3 Glacier Deep Archive storage class or from S3 Intelligent-Tiering Archive Access or Deep Archive Access tier. For more information, see Working with archived objects. #7455
Object Restore Completed An object restore was completed.
Object Restore Expired The temporary copy of an object restored from S3 Glacier or S3 Glacier Deep Archive expired and was deleted.
Object Storage Class Changed An object was transitioned to a different storage class. For more information, see Transitioning objects using Amazon S3 Lifecycle.
Object Access Tier Changed An object was transitioned to the S3 Intelligent-Tiering Archive Access tier or Deep Archive Access tier. For more information, see Amazon S3 Intelligent-Tiering.
Object ACL Updated An object's access control list (ACL) was set using PutObjectACL. An event is not generated when a request results in no change to an object’s ACL. For more information, see Access control list (ACL) overview.
Object Tags Added A set of tags was added to an object using PutObjectTagging. For more information, see Categorizing your storage using tags. #7673
Object Tags Deleted All tags were removed from an object using DeleteObjectTagging. For more information, see Categorizing your storage using tags. #7712

https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventBridge.html

@tsugumi-sys
Copy link
Contributor Author

I'm working on Object Storage Class Changed event.

@MikiPWata
Copy link
Contributor

working on Object Restore initiated

@MikiPWata
Copy link
Contributor

MikiPWata commented Mar 19, 2024

oh object restore initated and complete are done I guess
#7455

working on restore expired instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants