Skip to content

Instantly share code, notes, and snippets.

@anderson-marques
Created May 25, 2021 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anderson-marques/3ae3c7dedef4c10f7a238277aa8fd56b to your computer and use it in GitHub Desktop.
Save anderson-marques/3ae3c7dedef4c10f7a238277aa8fd56b to your computer and use it in GitHub Desktop.
S3 Put Event - TypeScript
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