Skip to content

Instantly share code, notes, and snippets.

@ac360
Last active May 14, 2018 17:19
Show Gist options
  • Save ac360/9878093989f617d8f0b0eeb88661fcf0 to your computer and use it in GitHub Desktop.
Save ac360/9878093989f617d8f0b0eeb88661fcf0 to your computer and use it in GitHub Desktop.
This is a JSON representation of CloudEvent for AWS S3 Object Created
{
  // CloudEvents metadata data goes here
  "eventType": "aws.s3.object.created",
  "eventID": "C1234-1234-1234",
  "eventTime": "2018-05-08T14:48:09.769Z",
  "eventTypeVersion": "1.0",
  "source": "/cloudevents-bucket",
  "extensions": {},
  "contentType": "application/json",
  "cloudEventsVersion": "0.1",
  
  // Your custom event data goes here
  "data":
   { "s3SchemaVersion": "1.0",
     "configurationId": "cd267a38-30df-412e-9e3d-d0f1ca6e2410",
     "bucket":
      { "name": "cloudevents",
        "ownerIdentity": {},
        "arn": "arn:aws:s3:::cloudevents" },
     "object":
      { "key": "cross-eyed-cat.jpg",
        "size": 444684,
        "eTag": "38b01ff161231d7ca0a0eb3f7a88ff815",
        "sequencer": "005AEOAJ31A9A3D61490"
      }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment