Skip to content

PutObject

Source: src/AWS/S3/PutObject.ts

Runtime binding for s3:PutObject.

Bind this operation to a bucket to get a callable that writes objects without manually supplying the bucket name on every request. s3:PutObject is granted on the bucket automatically. Provide the implementation with Effect.provide(AWS.S3.PutObjectHttp).

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