GetObject
Source:
src/Railway/GetObject.ts
Runtime binding for Railway GetObject over the S3 API.
Bind this operation to a Bucket in Service init. Provide
GetObjectHttp.
Reading Objects
Section titled “Reading Objects”const getObject = yield* Railway.GetObject(Data);
const text = yield* getObject({ Key: "hello.txt" }).pipe( Effect.flatMap((result) => Stream.mkString(Stream.decodeText(result.Body!)), ),);