Skip to content
v2.273.0

EventType Enum ​

Notification event types.

Example ​

ts
declare const myQueue: sqs.Queue;
const bucket = new s3.Bucket(this, 'MyBucket');
bucket.addEventNotification(s3.EventType.OBJECT_REMOVED, new s3n.SqsDestination(myQueue), {
  prefix: 'foo/',
  suffix: '.jpg',
});

Members ​

MemberDescription
OBJECT_CREATEDAmazon S3 APIs such as PUT, POST, and COPY can create an object.
OBJECT_CREATED_PUTAmazon S3 APIs such as PUT, POST, and COPY can create an object.
OBJECT_CREATED_POSTAmazon S3 APIs such as PUT, POST, and COPY can create an object.
OBJECT_CREATED_COPYAmazon S3 APIs such as PUT, POST, and COPY can create an object.
OBJECT_CREATED_COMPLETE_MULTIPART_UPLOADAmazon S3 APIs such as PUT, POST, and COPY can create an object.
OBJECT_REMOVEDBy using the ObjectRemoved event types, you can enable notification when an object or a batch of objects is removed from a bucket.
OBJECT_REMOVED_DELETEBy using the ObjectRemoved event types, you can enable notification when an object or a batch of objects is removed from a bucket.
OBJECT_REMOVED_DELETE_MARKER_CREATEDBy using the ObjectRemoved event types, you can enable notification when an object or a batch of objects is removed from a bucket.
OBJECT_RESTORE_POSTUsing restore object event types you can receive notifications for initiation and completion when restoring objects from the S3 Glacier storage class.
OBJECT_RESTORE_COMPLETEDUsing restore object event types you can receive notifications for initiation and completion when restoring objects from the S3 Glacier storage class.
OBJECT_RESTORE_DELETEUsing restore object event types you can receive notifications for initiation and completion when restoring objects from the S3 Glacier storage class.
REDUCED_REDUNDANCY_LOST_OBJECTYou can use this event type to request Amazon S3 to send a notification message when Amazon S3 detects that an object of the RRS storage class is lost.
REPLICATION_OPERATION_FAILED_REPLICATIONYou receive this notification event when an object that was eligible for replication using Amazon S3 Replication Time Control failed to replicate.
REPLICATION_OPERATION_MISSED_THRESHOLDYou receive this notification event when an object that was eligible for replication using Amazon S3 Replication Time Control exceeded the 15-minute threshold for replication.
REPLICATION_OPERATION_REPLICATED_AFTER_THRESHOLDYou receive this notification event for an object that was eligible for replication using the Amazon S3 Replication Time Control feature replicated after the 15-minute threshold.
REPLICATION_OPERATION_NOT_TRACKEDYou receive this notification event for an object that was eligible for replication using Amazon S3 Replication Time Control but is no longer tracked by replication metrics.
LIFECYCLE_EXPIRATIONBy using the LifecycleExpiration event types, you can receive a notification when Amazon S3 deletes an object based on your S3 Lifecycle configuration.
LIFECYCLE_EXPIRATION_DELETEThe s3:LifecycleExpiration:Delete event type notifies you when an object in an unversioned bucket is deleted.
LIFECYCLE_EXPIRATION_DELETE_MARKER_CREATEDThe s3:LifecycleExpiration:DeleteMarkerCreated event type notifies you when S3 Lifecycle creates a delete marker when a current version of an object in versioned bucket is deleted.
LIFECYCLE_TRANSITIONYou receive this notification event when an object is transitioned to another Amazon S3 storage class by an S3 Lifecycle configuration.
INTELLIGENT_TIERINGYou receive this notification event when an object within the S3 Intelligent-Tiering storage class moved to the Archive Access tier or Deep Archive Access tier.
OBJECT_TAGGINGBy using the ObjectTagging event types, you can enable notification when an object tag is added or deleted from an object.
OBJECT_TAGGING_PUTThe s3:ObjectTagging:Put event type notifies you when a tag is PUT on an object or an existing tag is updated.
OBJECT_TAGGING_DELETEThe s3:ObjectTagging:Delete event type notifies you when a tag is removed from an object.
OBJECT_ACL_PUTYou receive this notification event when an ACL is PUT on an object or when an existing ACL is changed.
OBJECT_RESTOREUsing restore object event types you can receive notifications for initiation and completion when restoring objects from the S3 Glacier storage class.
REPLICATIONYou receive this notification event for any object replication event.

Referenced by ​