As @NickSeagull pointed out, some cleanup may be possible. We are defining these events in the file-uploaded.ts file:
interface AWSEventS3 {
s3SchemaVersion: string
configurationId: string
bucket: {
name: string
ownerIdentity: any
arn: string
}
object: {
key: string
size: number
eTag: string
sequencer: string
}
}
interface AWSEvent {
eventVersion: string
eventSource: string
awsRegion: string
eventTime: string
eventName: string
userIdentity: [Record<string, unknown>]
requestParameters: [Record<string, unknown>]
responseElements: [Record<string, unknown>]
s3: AWSEventS3
}
But those events could already be in the AWS SDK, so this re-definition could be unnecessary.
As @NickSeagull pointed out, some cleanup may be possible. We are defining these events in the
file-uploaded.tsfile:But those events could already be in the AWS SDK, so this re-definition could be unnecessary.