UploadPart
Source:
src/AWS/S3/UploadPart.ts
Runtime binding for s3:UploadPart.
Uploads one part of a multipart upload started with
CreateMultipartUpload. Keep each part’s returned ETag — the final
CompleteMultipartUpload call needs the full { ETag, PartNumber } list.
Provide the implementation with Effect.provide(AWS.S3.UploadPartHttp).
Multipart Uploads
Section titled “Multipart Uploads”// init — bind the operation to the bucketconst uploadPart = yield* AWS.S3.UploadPart(bucket);
// runtime — PartNumber is 1-based; collect the ETag for completionconst part = yield* uploadPart({ Key: "backups/archive.tar", UploadId, PartNumber: 1, Body: chunk, // 5 MiB–5 GiB except the last part});parts.push({ ETag: part.ETag, PartNumber: 1 });