For the complete documentation index, see llms.txt. This page is also available as Markdown.

DownloadObject

Download objects from AWS S3.

Task version: 3.0.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

BucketName : String

AWS S3 bucket's name.

Default: - Example: Bucket

SourceDirectory : String

Downloads all objects with this prefix.

Default: - Example: directory/

SearchPattern : String

String pattern to search objects.

Default: Example: .*, *file?.txt

DownloadFromCurrentDirectoryOnly : Boolean

Set to true to download objects from the current directory only.

Default: True Example: false

TargetDirectory : String

Destination directory where to create folders and files.

Default: - Example: c:\temp, \network\folder

Task Result

Name
Description

Success : Boolean

Task complete without errors. Example: True

Objects : List<SingleResultObject>

List of downloaded objects. Example: { "File.txt", "C:\temp\File.txt", true, false, "Additional information" }

Error : Error

Error information if the operation failed. Example: { "An error occurred", { "ErrorCode": 500 } }

Task Changelog

Changelog for Task Frends.AmazonS3.DownloadObject.

[3.0.0] - 2025-07-17

[Breaking] Major refactoring - restructured parameters into Input, Connection, and Options classes with improved error handling

Breaking Changes

  • Parameter Structure Reorganization: Task parameters have been restructured into three main classes:

    • Input: Contains core task parameters (BucketName, SourceDirectory, SearchPattern, DownloadFromCurrentDirectoryOnly, TargetDirectory)

    • Connection: Contains connection-related parameters (AwsCredentials, PreSignedUrl)

    • Options: Contains optional configuration parameters (FileLockedRetries, DeleteSourceObject, ThrowErrorIfNoMatch, ActionOnExistingFile, ThrowErrorOnFailure, ErrorMessageOnFailure)

Parameter Changes

  • Moved to Input tab:

    • Connection.BucketNameInput.BucketName

    • Connection.S3DirectoryInput.SourceDirectory (renamed)

    • Connection.SearchPatternInput.SearchPattern

    • Connection.DownloadFromCurrentDirectoryOnlyInput.DownloadFromCurrentDirectoryOnly

    • Connection.DestinationDirectoryInput.TargetDirectory (renamed)

  • Moved to Options tab:

    • Connection.FileLockedRetriesOptions.FileLockedRetries

    • Connection.DeleteSourceObjectOptions.DeleteSourceObject

    • Connection.ThrowErrorIfNoMatchOptions.ThrowErrorIfNoMatch

    • Connection.DestinationFileExistsActionOptions.ActionOnExistingFile (renamed)

  • Updated in Connection tab:

    • Connection.AWSCredentialsConnection.AwsCredentials (renamed)

    • Connection.PreSignedURLConnection.PreSignedUrl (renamed)

New Features

  • Enhanced Error Handling: Added comprehensive error handling with new Options properties:

    • ThrowErrorOnFailure (bool, default: false) – Controls whether errors throw exceptions

    • ErrorMessageOnFailure (string, default: "") - Custom error message for failures

  • Improved Result Structure:

    • Renamed Data property to Objects in Result class

    • Added structured Error property with Message and AdditionalInfo fields

[2.2.0] - 2024-12-11

Updated

  • Listing updated to newer version.

[2.1.0] - 2023-05-10

Fixed

  • Changed the way the Task handles downloaded objects to fix blank PDF files.

Changed

  • Result change: List name change from 'Results' to 'Data'.

  • Input parameter name changed from to 'Connection'.

  • Memory leak fix.

  • SingleResultObject parameter changes:

    • New parameters: Overwritten, SourceDeleted, Info.

    • Removed parameter: ObjectData (replaced by Info).

[2.0.0] - 2022-12-02

Modified

  • Memory leak fix.

  • SingleResultObject parameter changes:

    • New parameters: Overwritten, SourceDeleted, Info.

    • Removed parameter: ObjectData (replaced by Info).

[1.0.0] - 2022-05-09

Added

  • Initial implementation

Last updated

Was this helpful?