Amplify JS API Documentation
    Preparing search index...
    • Parameters

      • ctx: AmplifyContext

        The AmplifyContext to operate on.

      • input: StorageCopyInputWithPath

        The CopyWithPathInput object.

      Returns Promise<CopyWithPathOutput>

    • Parameters

      Returns Promise<CopyOutput>

    • Copy an object from a source to a destination object within the same bucket.

      Parameters

      • input: StorageCopyInputWithPath

        The CopyWithPathInput object.

      Returns Promise<CopyWithPathOutput>

      Output containing the destination object path.

      service: S3Exception - Thrown when checking for existence of the object

      validation: StorageValidationErrorCode - Thrown when source or destination path is not defined.

    • Parameters

      Returns Promise<CopyOutput>

      Output containing the destination object key.

      The key and accessLevel parameters are deprecated and may be removed in the next major version. Please use path instead.

      Copy an object from a source to a destination object within the same bucket. Can optionally copy files across different accessLevel or identityId (if source object's accessLevel is 'protected').

      service: S3Exception - Thrown when checking for existence of the object

      validation: StorageValidationErrorCode - Thrown when source or destination key is not defined.