Amazon.DynamoDBv2.DataModel.S3Link.DownloadToAsync C# (CSharp) Method

DownloadToAsync() public method

Downloads the file from the S3Link's specified bucket and key then saves it in the given path. Creates directories and the file if they do not already exist.
public DownloadToAsync ( string downloadPath, CancellationToken cancellationToken = default(CancellationToken) ) : Task
downloadPath string Path to save the file.
cancellationToken CancellationToken A cancellation token that can be used by other objects or threads to receive notice of cancellation.
return Task
        public Task DownloadToAsync(string downloadPath, CancellationToken cancellationToken = default(CancellationToken))
        {
            return this.s3ClientCache.GetClient(this.RegionAsEndpoint).DownloadToFilePathAsync(this.linker.s3.bucket, this.linker.s3.key, downloadPath, null, cancellationToken);
        }