Release: AWS SDK for .NET 1.3.3

Release Notes>.NET>Release: AWS SDK for .NET 1.3.3
This release adds support for the latest Amazon EC2 API version, which allows customers to configure Virtual Private Cloud (VPC) subnets to connect directly to the Internet.

Details

Submitted By: Norm@AWS
Release Date: March 15, 2011 5:40 PM GMT
Created On: March 15, 2011 5:40 PM GMT
Last Updated: March 15, 2011 5:40 PM GMT

Download

Download the latest AWS SDK for .NET

New Features

Change Description
Amazon EC2 VPC Internet Access

The latest Amazon EC2 client allows you to configure Virtual Private Cloud (VPC) subnets to connect directly to the Internet, without requiring the traffic to be routed back through your company's network.

Parse JSON document for access policies into Policy objects.

The method Amazon.Auth.AccessControlPolicy.Policy.FromJson() was added. This allows you to take the JSON documents returned back from services that support access policies and create a Policy object for further examination.

This sample adds access to CloudFront for an IAM user.

var getResponse = iamClient.GetUserPolicy(new GetUserPolicyRequest()
    .WithUserName(username)
    .WithPolicyName(policyName));

Policy policy = Policy.FromJson(getResponse.GetUserPolicyResult.PolicyDocument);

// Add new statement allowing CloudFront access
var statement = new Statement(Statement.StatementEffect.Allow);
statement.Actions.Add(CloudFrontActionIdentifers.AllCloudFrontActions);
policy.Statements.Add(statement);

iamClient.PutUserPolicy(
    new PutUserPolicyRequest()
        .WithUserName(username)
        .WithPolicyName(policyName)
        .WithPolicyDocument(policy.ToString()));         
          
Add ContentType property for pre-signed PUT URLs

Added property GetPreSignedUrlRequest.ContentType so pre-signed PUT URLs could specify a content type when an object is being uploaded to S3.

This sample creates a pre-signed URL for uploading an image.

string s3url = s3Client.GetPreSignedURL(new GetPreSignedUrlRequest()
    .WithBucketName(bucketName)
    .WithKey(keyName)
    .WithContentType("image/jpeg")
    .WithVerb(HttpVerb.PUT)
    .WithExpires(DateTime.Now.AddMinutes(10)));
            

Policy action for Amazon CloudFront and AWS CloudFormation. The new constant classes Amazon.Auth.AccessControlPolicy.CloudFrontActionIdentifers and Amazon.Auth.AccessControlPolicy.CloudFormationActionIdentifers were added for the actions used when creating an access policy.

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

Migrating to the AWS SDK for .NET 1.3.3

There were a number of changes made in previous releases that may impact applications using Amazon CloudWatch, Auto Scaling, Amazon RDS, Elastic Load Balancing, or Amazon Elastic MapReduce:

The 1.2.0 release contained the following changes to Amazon CloudWatch and Amazon Auto Scaling:

Title Description
ResponseMeta The classes Amazon.CloudWatch.Model.ResponseMeta and Amazon.AutoScaling.Model.ResponseMeta were moved to the common location Amazon.Runtime.ResponseMeta.
Removed ToXML methods The ToXML methods were removed so the responses can be streamed from the services for improved performance.
Amazon CloudWatch Data Type Changes
  • The type of the Timestamp property has been changed from string to DateTime in the following classes: Datapoint.
  • The type of the StartTime property has been changed from string to DateTime in the following classes: GetMetricStatisticsRequest.
  • The type of the EndTime property has been changed from string to DateTime in the following classes: GetMetricStatisticsRequest.
Auto Scaling Data Type Changes
  • The type of the MaxRecords property has been changed from decimal to int in the following classes: DescribeLaunchConfigurationsRequest and DescribeScalingActivitiesRequest.
  • The type of the MinSize property has been changed from decimal to int in the following classes: CreateAutoScalingGroupRequest and UpdateAutoScalingGroupRequest.
  • The type of the MaxSize property has been changed from decimal to int in the following classes: CreateAutoScalingGroupRequest and UpdateAutoScalingGroupRequest.
  • The type of the Progress property has been changed from decimal to int in the following classes: TerminateInstanceInAutoScalingGroupRequest.
  • The type of the DesiredCapacity property has been changed from decimal to int in the following classes: SetDesiredCapacityRequest.

The 1.1.0 release contained the following changes to Amazon RDS, Elastic Load Balancing and Amazon Elastic MapReduce

Title Description
ResponseMeta The classes Amazon.ElasticLoadBalancing.Model.ResponseMeta, Amazon.ElasticMapReduce.Model.ResponseMeta and Amazon.RDS.Model.ResponseMeta were moved to the common location Amazon.Runtime.ResponseMeta.
Removed ToXML methods The ToXML methods were removed so the responses can be streamed from the services for improved performance.
Amazon RDS Data Type Changes
  • The type of the MaxRecords property has been changed from decimal to int in the following classes: DescribeDBEngineVersionsRequest, DescribeDBInstancesRequest, DescribeDBParameterGroupsRequest, DescribeDBParametersRequest, DescribeDBSecurityGroupsRequest, DescribeDBSnapshotsRequest, DescribeEngineDefaultParametersRequest, DescribeEventsRequest, DescribeReservedDBInstancesOfferingsRequest and DescribeReservedDBInstancesRequest.
  • The type of the Port property has been changed from decimal to int in the following classes: CreateDBInstanceReadReplicaRequest, CreateDBInstanceRequest, DBSnapshot, DescribeDBInstancesRequest, Endpoint, PendingModifiedValues, RestoreDBInstanceFromDBSnapshotRequest and RestoreDBInstanceToPointInTimeRequest.
  • The type of the AllocatedStorage property has been changed from decimal to int in the following classes: CreateDBInstanceRequest, DBInstance, DBSnapshot, ModifyDBInstanceRequest and PendingModifiedValues.
  • The type of the BackupRetentionPeriod property has been changed from decimal to int in the following classes: CreateDBInstanceRequest, DBInstance, ModifyDBInstanceRequest and PendingModifiedValues.
Amazon RDS Property Name Changes The following property names were pluralized.
  • DescribeDBSecurityGroupsResponse.DBSecurityGroups
  • DBSecurityGroup.EC2SecurityGroups
  • DBSecurityGroup.IPRanges
  • DBInstance.DBSecurityGroups
  • DBInstance.DBParameterGroups
  • DescribeEventsResponse.Events
  • DescribeDBInstances.DBInstances
  • DescribeDBParameterGroupsResponse.DBParameterGroups
  • EngineDefaults.Parameters
  • DescribeDBSnapshots.DBSnapshots
Elastic Load Balancing Data Type Changes
  • The type of the CookieExpirationPeriod property has been changed from decimal to int in the following class: CreateLBCookieStickinessPolicyRequest
  • The type of the Interval property has been changed from decimal to int in the following class: HealthCheck
  • The type of the Timeout property has been changed from decimal to int in the following class: HealthCheck
  • The type of the UnhealthyThreshold property has been changed from decimal to int in the following class: HealthCheck
  • The type of the HealthyThreshold property has been changed from decimal to int in the following class: HealthCheck
  • The type of the LoadBalancerPort property has been changed from decimal to int in the following class: Listener
  • The type of the InstancePort property has been changed from decimal to int in the following class: Listener
  • The type of the LoadBalancerPort property has been changed from decimal to int in the following class: Listener
  • The type of the LoadBalancerPort property has been changed from decimal to int in the following class: SetLoadBalancerPoliciesOfListenerRequest
Amazon Elastic MapReduce Data Type Changes
  • The type of the CreatedAfter property has been changed from decimal to int in the following class: DescribeJobFlowsRequest
  • The type of the CreatedBefore property has been changed from decimal to int in the following class: DescribeJobFlowsRequest
  • The type of the InstanceCount property has been changed from decimal to int in the following class: JobFlowInstancesConfig

Supported API Versions

This release of the SDK supports the following API versions:

Service API Version
Amazon CloudFront 2010-08-01
Amazon CloudWatch 2010-08-01
Amazon Elastic Compute Cloud (EC2) 2011-11-01
Amazon Elastic MapReduce 2009-03-31
Amazon Relational Database Service (RDS) 2010-07-28
Amazon Simple Email Service 2010-12-01
Amazon Simple Notification Service (SNS) 2010-03-31
Amazon Simple Queue Service (SQS) 2009-02-01
Amazon Simple Storage Service (S3) 2006-03-01
Amazon SimpleDB 2009-04-15
Auto Scaling 2009-05-15
AWS Cloud Formation 2010-05-15
AWS Elastic Beanstalk 2010-12-01
AWS Identity and Access Management 2010-05-08
AWS Import/Export 2010-06-01
Elastic Load Balancing 2010-07-01
©2013, Amazon Web Services, Inc. or its affiliates. All rights reserved.