idea-aws
    Preparing search index...

    Interface CopyObjectOptions

    Options for copying an object.

    interface CopyObjectOptions {
        bucket: string;
        contentType?: string;
        copySource: string;
        key: string;
        metadata?: Record<string, string>;
    }
    Index

    Properties

    bucket: string

    The bucket in which to copy the file.

    contentType?: string

    The content type of the copy, in place of the source's. With this or metadata, the copy takes only what's given here: what isn't given is reset (the content type to binary/octet-stream), instead of being copied from the source.

    copySource: string

    The source path (complete with the bucket name).

    key: string

    The complete filepath of the bucket in which to copy the file.

    metadata?: Record<string, string>

    The metadata of the copy, in place of the source's (see contentType). The S3 constraints of SignedURLPutOptions apply.