User guide

Table Of Contents
The GenerateMD5 property has been removed from PutObjectRequest and UploadPartRequest because
this is now automatically computed as the object is being written to Amazon S3 and compared against
the MD5 returned in the response from Amazon S3.
The PutBucketTagging.TagSets collection is now PutBucketTagging.TagSet, and now takes a list
of Tag objects.
The AmazonS3Util utility methods DoesS3BucketExist, SetObjectStorageClass, SetServerSideEncryp-
tion, SetWebsiteRedirectLocation, and DeleteS3BucketWithObjects were changed to take IAmazonS3
as the first parameter to be consistent with other high-level APIs in the SDK.
Only responses that return a Stream like GetObjectResponse are IDisposable. In version 1, all re-
sponses were IDisposable.
The BucketName property has been removed from Amazon.S3.Model.S3Object.
Amazon Simple Workflow Service
The DomainInfos.Name property has been renamed DomainInfos.Infos.
Configuring the AWS Region
Regions can be set in the App.config or Web.config files (depending on your project type). For example,
the following specification configures all clients that don't explicitly set the region to point to us-east-1.
<configuration>
<appSettings>
<add key="AWSProfileName" value="profile_name"/>
<add key="AWSRegion" value="us-east-1"/>
</appSettings>
</configuration>
Response and Result Classes
To simplify your code, the Response and Result classes that are returned when creating a service object
have been collapsed. For example, the code to get an Amazon SQS queue URL previously looked like
this:
GetQueueUrlResponse response = SQSClient.GetQueueUrl(request);
Console.WriteLine(response.CreateQueueResult.QueueUrl);
You can now get the queue URL simply by referring to the QueueUrl member of the Cre-
ateQueueResponse returned by the AmazonSQSClient.CreateQueue method:
Console.WriteLine(response.QueueUrl);
The CreateQueueResult property still exists, but has been marked as deprecated, and may be removed
in a future version of the SDK. Use the QueueUrl member instead.
Additionally, all of the service response values are based on a common response class, AmazonWebSer-
viceResponse, instead of individual response classes per service. For example, the PutBucketResponse
class in Amazon S3 is now based on this common class instead of S3Response in version 1. As a result,
the methods and properties available for PutBucketResponse have changed.
Version v2.0.0
27
AWS SDK for .NET Developer Guide
What's Different