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.

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