Skip to main content
Module

x/s3/mod.ts>S3Bucket

Amazon S3 for Deno
Latest
class S3Bucket
Re-export
import { S3Bucket } from "https://deno.land/x/s3@0.5.0/mod.ts";

Constructors

new
S3Bucket(config: S3BucketConfig)

Methods

copyObject(
source: string,
destination: string,
): Promise<PutObjectResponse>
deleteObject(key: string, options?: DeleteObjectOptions): Promise<DeleteObjectResponse>
empty(): Promise<string[]>

Deletes all objects in the bucket recursively. Returns a list of deleted keys.

getObject(key: string, options?: GetObjectOptions): Promise<GetObjectResponse | undefined>
headObject(key: string, options?: GetObjectOptions): Promise<HeadObjectResponse | undefined>
listAllObjects(options: ListAllObjectsOptions): AsyncGenerator<S3Object>
listObjects(options?: ListObjectsOptions): Promise<ListObjectsResponse | undefined>
putObject(
key: string,
body: Uint8Array,
options?: PutObjectOptions,
): Promise<PutObjectResponse>