{ const { imageUrl, uploadUrl } = await getPresignedUrl<APIGatewayProxyEvent>({ event, userImagesManager, parser: parseApiEvent, bucket: process.env.USER_IMAGES_BUCKET, region: process.env.AWS_REGION, }) return httpResponse({ body: { imageUrl, uploadUrl, }}) } catch (error) { return httpResponse({ statusCode: 400, body: error, }) } } lambda.ts