Skip to main content
Latest
interface CopyObjectOptions
Re-export
import { type CopyObjectOptions } from "https://deno.land/x/s3@0.5.0/mod.ts";

Properties

optional
acl:
| "private"
| "public-read"
| "public-read-write"
| "authenticated-read"
| "aws-exec-read"
| "bucket-owner-read"
| "bucket-owner-full-control"
optional
cacheControl: string

Can be used to specify caching behavior along the request/reply chain.

optional
contentDisposition: string

Specifies presentational information for the object.

optional
contentEncoding: string

Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type field.

optional
contentLanguage: string

The language the content is in.

optional
contentType: string

A standard MIME type describing the format of the object data.

optional
expires: Date

The date and time at which the object is no longer cacheable.

optional
copyOnlyIfMatch: string

Copy the object only if its entity tag (ETag) is the same as the one specified, otherwise return a 412 (precondition failed).

optional
copyOnlyIfNoneMatch: string

Copy the object only if its entity tag (ETag) is different from the one specified, otherwise return a 304 (not modified).

optional
copyOnlyIfModifiedSince: Date

Copy the object only if it has been modified since the specified time, otherwise return a 304 (not modified).

optional
copyOnlyIfUnmodifiedSince: Date

Copy the object only if it has not been modified since the specified time, otherwise return a 412 (precondition failed).

optional
grantFullControl: string

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.

optional
grantRead: string

Allows grantee to read the object data and its metadata.

optional
grantReadAcp: string

Allows grantee to write the ACL for the applicable object.

optional
grantWriteAcp: string

Allows grantee to write the ACL for the applicable object.

optional
metadataDirective: CopyDirective

Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.

optional
legalHold: boolean

Specifies whether a legal hold will be applied to this object.

optional
lockMode: LockMode

The Object Lock mode that you want to apply to this object.

optional
lockRetainUntil: Date

The date and time when you want this object's Object Lock to expire.

optional
storageClass: StorageClass

If you don't specify, S3 Standard is the default storage class. Amazon S3 supports other storage classes.

optional
tags: { [key: string]: string; }
optional
taggingDirective: CopyDirective

Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request.

optional
websiteRedirectLocation: string

If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata.