Options
All
  • Public
  • Public/Protected
  • All
Menu

Module move

Index

Functions

Const moveObject

  • moveObject(sourceBucket: string, sourceKey: string, destinationBucket: string, destinationKey: string): Promise<void>
  • Move S3 object from source bucket to destination bucket

    Parameters

    • sourceBucket: string

      S3 bucket where the object is stored

    • sourceKey: string

      S3 key where the object is referenced

    • destinationBucket: string

      S3 destination bucket

    • destinationKey: string

      S3 destination key.

    Returns Promise<void>

Const moveObjects

  • moveObjects(sourceBucket: string, sourceKeys: string[], destinationBucket: string, destinationKeys: string[]): Promise<void>
  • Move a list of S3 objects from source bucket to destination

    Parameters

    • sourceBucket: string

      S3 bucket where the objects are stored

    • sourceKeys: string[]

      S3 keys where the objects are referenced

    • destinationBucket: string

      S3 destination bucket

    • destinationKeys: string[]

      S3 destination keys

    Returns Promise<void>

Generated using TypeDoc