Download
Download the latest AWS SDK for .NET
New Features
| Change | Description |
|---|---|
| Support for Amazon SQS delay queues and message timers |
Delay queues can be used to apply a uniform delay to all messages. Alternatively, message timers can be used to apply a delay to specific messages that can be sent individually, or in a batch. This example creates a queue and specifies that all messages should be delayed by 10 seconds:
var response = sqsClient.CreateQueue(new CreateQueueRequest
{
QueueName = "TestDelayQueue",
DelaySeconds = 10
});
sqsClient.SendMessage(new SendMessageRequest
{
QueueUrl = response.CreateQueueResult.QueueUrl,
MessageBody = "Test message sent after 10 second delay"
});
This example sends a message and applies a 30 second delay before it is sent. Delays specified at the message level override any set for the queue itself:
sqsClient.SendMessage(new SendMessageRequest
{
QueueUrl = response.CreateQueueResult.QueueUrl,
MessageBody = "Test message sent after 30 second delay",
DelaySeconds = 30
});
For more information on using Amazon SQS delay queue and message timer operations, please see the Amazon SQS Developer Guide. |
| Support for Amazon SQS batch operations |
Batch send and delete operations complement the existing batch receive functionality. With batch operations many workloads will benefit from improved single thread message throughput, reduced connection overhead and lower API call latencies. This example sends 3 messages to a queue:
var response = sqsClient.CreateQueue(new CreateQueueRequest
{
QueueName = "TestQueue"
});
List<SendMessageBatchRequestEntry> messages = new List<SendMessageBatchRequestEntry>
{
new SendMessageBatchRequestEntry{ Id = "1", MessageBody = "Message 1" },
new SendMessageBatchRequestEntry{ Id = "2", MessageBody = "Message 2" },
new SendMessageBatchRequestEntry{ Id = "3", MessageBody = "Message 3" }
}
sqsClient.SendMessageBatch(new SendMessageBatchRequest
{
QueueUrl = response.CreateQueueResult.QueueUrl,
Entries = messages
});
Per-message delay settings can also be specified on each SendMessageBatchRequestEntry. For more information on using Amazon SQS batch operations, please see the Amazon SQS Developer Guide. |
| Added new parameter-less client constructors |
AWS clients can now retrieve credentials directly from an application's AppSettings using new parameterless constructors. Given the following AppSettings entries:
<appSettings>
<add key="AWSAccessKey" value="your access key here"/>
<add key="AWSSecretKey" value="your secret key here"/>
</appSettings>
A service client can now be created with:
AmazonS3 s3Client = AWSClientFactory.CreateAmazonS3Client();
Or alternatively with:
AWSCredentials credentials = new EnvironmentAWSCredentials();
AmazonS3 s3Client = new AmazonS3Client(credentials);
|
| Fixed ArgumentNullException accessing httpResponse in Amazon S3 |
Fixed an issue causing |
| Fixed Amazon S3 SetObjectStorageClass |
Fixed an issue where calling |
| Added new utility method for Amazon S3 |
Added new utility method |
Known Issues
| Issue | Description |
|---|---|
| Installation Requires Administrator Privileges | The default install location is %PROGRAMFILES%, which on most computers is "c:\program files". In order to install files to the default location, the MSI must be run by an Administrator. If you don't have Administrator privileges on the machine, please change the install location to something like "c:\Documents and Settings\<you>\AWS SDK for .NET", and the install will complete successfully. If you are running on Vista, your personal folder is similar to "c:\users\<you>\". |
| Uninstalling the SDK Produces "Unknown Publisher" Message | On Windows Vista, uninstalling the MSI results in an "Unknown Publisher" dialog even though the installer is signed by Amazon Web Services. This is a known Windows Installer bug on Windows Vista, and is documented here: http://support.microsoft.com/kb/929467/en-us |
Supported API Versions
This release of the SDK supports the following API versions:
| Service | API Version |
|---|---|
| Amazon CloudFront | 2010-11-01 |
| Amazon CloudWatch | 2010-08-01 |
| Amazon Elastic Compute Cloud | 2011-05-15 |
| Amazon Elastic MapReduce | 2009-03-31 |
| Amazon ElastiCache | 2011-07-15 |
| Amazon Relational Database Service | 2011-04-01 |
| Amazon Simple Email Service | 2010-12-01 |
| Amazon Simple Notification Service | 2010-03-31 |
| Amazon Simple Queue Service | 2011-10-01 |
| Amazon Simple Storage Service | 2006-03-01 |
| Amazon SimpleDB | 2009-04-15 |
| Auto Scaling | 2011-01-01 |
| AWS CloudFormation | 2010-05-15 |
| AWS Elastic Beanstalk | 2010-12-01 |
| AWS Identity and Access Management | 2010-05-08 |
| AWS Import/Export | 2010-06-01 |
| AWS Security Token Service | 2011-06-15 |
| Elastic Load Balancing | 2011-08-15 |