EDITAR
Como @ michael-sqlbot apontou nos comentários, o que você está tentando alcançar pode ser possível mas com um processo de várias etapas. O CloudTrail pode registrar eventos no nível do intervalo S3 ( link ), incluindo a criação de blocos. pode ser configurado para gerar eventos do CloudWatch e, finalmente, você pode usar eventos específicos do CloudWatch como gatilhos para o Lambda.
Isto não é diretamente suportado, aqui está a lista de todos os eventos que podem ser gerados pelo S3:
-
s3:ObjectCreated:*
-
s3:ObjectCreated:Put
-
s3:ObjectCreated:Post
-
s3:ObjectCreated:Copy
-
s3:ObjectCreated:CompleteMultipartUpload
Amazon S3 APIs such as PUT, POST, and COPY can create an object. Using these event types, you can enable notification when an object is created using a specific API, or you can use the s3:ObjectCreated:* event type to request notification regardless of the API that was used to create an object.
You will not receive event notifications from failed operations.
-
s3:ObjectRemoved:*
-
s3:ObjectRemoved:Delete
-
s3:ObjectRemoved:DeleteMarkerCreated
By using the ObjectRemoved event types, you can enable notification when an object or a batch of objects is removed from a bucket.
You can request notification when an object is deleted or a versioned object is permanently deleted by using the s3:ObjectRemoved:Delete event type. Or you can request notification when a delete marker is created for a versioned object by using s3:ObjectRemoved:DeleteMarkerCreated. For information about deleting versioned objects, see Deleting Object Versions. You can also use a wildcard s3:ObjectRemoved:* to request notification anytime an object is deleted.
You will not receive event notifications from automatic deletes from lifecycle policies or from failed operations.
-
s3:ReducedRedundancyLostObject
You 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.
Todos os eventos funcionam em um nível de objeto, exigindo que o bucket exista.
Fonte: link .