bucket/upload_part

https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html

Types

The parameters for the API request

The part_number can be any number from 1 to 10,000, inclusive. A part number uniquely identifies a part and also defines its position within the object being created. If you upload a new part using the same part number that was used with a previous part, the previously uploaded part is overwritten.

pub type RequestBuilder {
  RequestBuilder(
    bucket: String,
    key: String,
    upload_id: String,
    part_number: Int,
    body: BitArray,
  )
}

Constructors

  • RequestBuilder(
      bucket: String,
      key: String,
      upload_id: String,
      part_number: Int,
      body: BitArray,
    )
pub type UploadPartResult {
  UploadPartResult(etag: String)
}

Constructors

  • UploadPartResult(etag: String)

Functions

pub fn build(
  builder: RequestBuilder,
  creds: Credentials,
) -> Request(BitArray)
pub fn request(
  bucket bucket: String,
  key key: String,
  upload_id upload_id: String,
  part_number part_number: Int,
  body body: BitArray,
) -> RequestBuilder
pub fn response(
  response: Response(BitArray),
) -> Result(UploadPartResult, BucketError)
Search Document