Created
May 25, 2021 22:59
-
-
Save anderson-marques/3ae3c7dedef4c10f7a238277aa8fd56b to your computer and use it in GitHub Desktop.
S3 Put Event - TypeScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type S3PutEventEntry = { | |
eventVersion: string; | |
eventsource: string; | |
awsRegion: string; | |
eventTime: string; | |
eventName: string; | |
userIdentity: Record<string, unknown>; | |
requestParameters: Record<string, unknown>; | |
responseElements: Record<string, unknown>; | |
s3: { | |
s3SchemaVersion: string; | |
configurationId: string; | |
bucket: { | |
name: string; | |
ownerIdentity: Record<string, unknown>; | |
arn: string; | |
}; | |
object: { | |
key: string; | |
size: number; | |
eTag: string; | |
sequencer: string; | |
}; | |
}; | |
}; | |
export type S3PutEvent = { | |
Records: Array<S3PutEventEntry>; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment