( key: string, uploadId: string, customConfig?: S3Config )
| 492 | * Abort multipart upload for S3 |
| 493 | */ |
| 494 | export async function abortS3MultipartUpload( |
| 495 | key: string, |
| 496 | uploadId: string, |
| 497 | customConfig?: S3Config |
| 498 | ): Promise<void> { |
| 499 | const config = customConfig || { bucket: S3_KB_CONFIG.bucket, region: S3_KB_CONFIG.region } |
| 500 | const s3Client = getS3Client() |
| 501 | |
| 502 | const command = new AbortMultipartUploadCommand({ |
| 503 | Bucket: config.bucket, |
| 504 | Key: key, |
| 505 | UploadId: uploadId, |
| 506 | }) |
| 507 | |
| 508 | await s3Client.send(command) |
| 509 | } |
no test coverage detected