Method | Description | |
---|---|---|
AbortMultipartUploadsAsync ( string bucketName, System.DateTime initiatedDate, |
Aborts the multipart uploads that were initiated before the specified date.
|
|
DownloadAsync ( |
Downloads the content from Amazon S3 and writes it to the specified file. If the key is not specified in the request parameter, the file name will used as the key name.
|
|
OpenStreamAsync ( Amazon.S3.Transfer.TransferUtilityOpenStreamRequest request, |
Returns a stream to read the contents from Amazon S3 as specified by the
|
|
OpenStreamAsync ( string bucketName, string key, |
Returns a stream from which the caller can read the content from the specified Amazon S3 bucket and key. The caller of this method is responsible for closing the stream.
|
|
TransferUtility ( ) : System |
Constructs a new TransferUtility class. If a Timeout needs to be specified, use the constructor which takes an Amazon.S3.AmazonS3Client as a paramater. Use an instance of Amazon.S3.AmazonS3Client constructed with an Amazon.S3.AmazonS3Config object with the Timeout specified. |
|
TransferUtility ( RegionEndpoint region ) : System |
Constructs a new TransferUtility class. If a Timeout needs to be specified, use the constructor which takes an Amazon.S3.AmazonS3Client as a paramater. Use an instance of Amazon.S3.AmazonS3Client constructed with an Amazon.S3.AmazonS3Config object with the Timeout specified. |
|
TransferUtility ( |
Constructs a new TransferUtility class.
|
|
UploadAsync ( Stream stream, string bucketName, string key, |
Uploads the contents of the specified stream. For large uploads, the file will be divided and uploaded in parts using Amazon S3's multipart API. The parts will be reassembled as one object in Amazon S3. If you are uploading large files, TransferUtility will use multipart upload to fulfill the request. If a multipart upload is interrupted, TransferUtility will attempt to abort the multipart upload. Under certain circumstances (network outage, power failure, etc.), TransferUtility will not be able to abort the multipart upload. In this case, in order to stop getting charged for the storage of uploaded parts, you should manually invoke TransferUtility.AbortMultipartUploadsAsync() to abort the incomplete multipart uploads. |
|
UploadAsync ( |
Uploads the file or stream specified by the request. To track the progress of the upload, add an event listener to the request's If you are uploading large files, TransferUtility will use multipart upload to fulfill the request. If a multipart upload is interrupted, TransferUtility will attempt to abort the multipart upload. Under certain circumstances (network outage, power failure, etc.), TransferUtility will not be able to abort the multipart upload. In this case, in order to stop getting charged for the storage of uploaded parts, you should manually invoke TransferUtility.AbortMultipartUploadsAsync() to abort the incomplete multipart uploads. |
|
UploadAsync ( string filePath, string bucketName, |
Uploads the specified file. The object key is derived from the file's name. Multiple threads are used to read the file and perform multiple uploads in parallel. For large uploads, the file will be divided and uploaded in parts using Amazon S3's multipart API. The parts will be reassembled as one object in Amazon S3. If you are uploading large files, TransferUtility will use multipart upload to fulfill the request. If a multipart upload is interrupted, TransferUtility will attempt to abort the multipart upload. Under certain circumstances (network outage, power failure, etc.), TransferUtility will not be able to abort the multipart upload. In this case, in order to stop getting charged for the storage of uploaded parts, you should manually invoke TransferUtility.AbortMultipartUploadsAsync() to abort the incomplete multipart uploads. |
|
UploadAsync ( string filePath, string bucketName, string key, |
Uploads the specified file. Multiple threads are used to read the file and perform multiple uploads in parallel. For large uploads, the file will be divided and uploaded in parts using Amazon S3's multipart API. The parts will be reassembled as one object in Amazon S3. If you are uploading large files, TransferUtility will use multipart upload to fulfill the request. If a multipart upload is interrupted, TransferUtility will attempt to abort the multipart upload. Under certain circumstances (network outage, power failure, etc.), TransferUtility will not be able to abort the multipart upload. In this case, in order to stop getting charged for the storage of uploaded parts, you should manually invoke TransferUtility.AbortMultipartUploadsAsync() to abort the incomplete multipart uploads. |
Method | Description | |
---|---|---|
ConstructDownloadDirectoryRequest ( string bucketName, string s3Directory, string localDirectory ) : |
||
ConstructDownloadRequest ( string filePath, string bucketName, string key ) : |
||
ConstructUploadDirectoryRequest ( string directory, string bucketName ) : |
||
ConstructUploadDirectoryRequest ( string directory, string bucketName, string searchPattern, SearchOption searchOption ) : |
||
GetUploadCommand ( |
||
validate ( |
public AbortMultipartUploadsAsync ( string bucketName, System.DateTime initiatedDate, |
||
bucketName | string | /// The name of the bucket containing multipart uploads. /// |
initiatedDate | System.DateTime | /// The date before which the multipart uploads were initiated. /// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// | |
return | Task |
public DownloadAsync ( |
||
request | /// Contains all the parameters required to download an Amazon S3 object. /// | |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// | |
return | Task |
public OpenStreamAsync ( Amazon.S3.Transfer.TransferUtilityOpenStreamRequest request, |
||
request | Amazon.S3.Transfer.TransferUtilityOpenStreamRequest | /// Contains all the parameters required for the OpenStream operation. /// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// | |
return | Task |
public OpenStreamAsync ( string bucketName, string key, |
||
bucketName | string | /// The name of the bucket. /// |
key | string | /// The object key. /// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// | |
return | Task |
public TransferUtility ( RegionEndpoint region ) : System | ||
region | RegionEndpoint | /// The region to configure the transfer utility for. /// |
return | System |
public TransferUtility ( |
||
config |
/// Specifies advanced configuration settings for |
|
return | System |
public UploadAsync ( Stream stream, string bucketName, string key, |
||
stream | Stream | /// The stream to read to obtain the content to upload. /// |
bucketName | string | /// The target Amazon S3 bucket, that is, the name of the bucket to upload the stream to. /// |
key | string | /// The key under which the Amazon S3 object is stored. /// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// | |
return | Task |
public UploadAsync ( |
||
request | /// Contains all the parameters required to upload to Amazon S3. /// | |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// | |
return | Task |
public UploadAsync ( string filePath, string bucketName, |
||
filePath | string | /// The file path of the file to upload. /// |
bucketName | string | /// The target Amazon S3 bucket, that is, the name of the bucket to upload the file to. /// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// | |
return | Task |
public UploadAsync ( string filePath, string bucketName, string key, |
||
filePath | string | /// The file path of the file to upload. /// |
bucketName | string | /// The target Amazon S3 bucket, that is, the name of the bucket to upload the file to. /// |
key | string | /// The key under which the Amazon S3 object is stored. /// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// | |
return | Task |