Skip to content

PutObject

Source: src/Fly/PutObject.ts

Runtime binding for Tigris PutObject over the S3 API.

Bind this operation to a Bucket in Service init. The Tigris bucket name, endpoint, and credentials are injected automatically. Provide PutObjectHttp.

const putObject = yield* Fly.PutObject(Data);
yield* putObject({
Key: "hello.txt",
Body: "Hello, world!",
ContentType: "text/plain",
});