bucket/get_object

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

Types

pub type Outcome(body) {
  Found(body)
  NotFound
}

Constructors

  • Found(body)
  • NotFound

The parameters for the API request

pub type RequestBuilder {
  RequestBuilder(bucket: String, key: String)
}

Constructors

  • RequestBuilder(bucket: String, key: String)

Functions

pub fn build(
  builder: RequestBuilder,
  creds: Credentials,
) -> Request(BitArray)
pub fn request(
  bucket bucket: String,
  key key: String,
) -> RequestBuilder
pub fn response(
  response: Response(a),
) -> Result(Outcome(a), BucketError)
Search Document