AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
S3Link is an object that provides a connection to an S3 resource that can be stored in a DynamoDB field through DynamoDBContext

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DataModel.S3Link

Namespace: Amazon.DynamoDBv2.DataModel
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class S3Link : Object

The S3Link type exposes the following members

Properties

NameTypeDescription
Public Property BucketName System.String The name of the target Bucket for the managed resource
Public Property Key System.String The Key that S3Link stores and downloads a resource to and from
Public Property Region System.String The region the S3 resource is in
Public Property RegionAsEndpoint Amazon.RegionEndpoint Looks up RegionEndpoint based on region as a string

Methods

NameDescription
Public Method BeginDownloadTo(string, AsyncCallback, object) Initiates the asynchronous execution of the DownloadTo operation.
Public Method BeginUploadFrom(string, AsyncCallback, object) Initiates the asynchronous execution of the UploadFrom operation.
Public Method Static Method Create(DynamoDBContext, string, string, RegionEndpoint) Creates an S3Link that can be used to managed an S3 connection
Public Method DownloadTo(string) 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 Method EndDownloadTo(IAsyncResult) Finishes the asynchronous execution of the DownloadTo operation.
Public Method EndUploadFrom(IAsyncResult) Finishes the asynchronous execution of the UploadFrom operation.
Public Method GetPreSignedURL(DateTime) Provides a URL for accessing the S3 object managed by S3Link
Public Method MakeS3ObjectPublic(bool) If enable is set to true the object will have its permission set to PublicRead otherwise the permissions will be set to Private.
Public Method SetACL(S3CannedACL) Sets the S3 Object's ACL
Public Method SetACL(S3AccessControlList) Sets the S3 Objects's ACL
Public Method UploadFrom(string) Uploads the specified file and stores it in the specified bucket with the provided key from construction.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8