Release: AWS SDK for Java 1.0.5

Release Notes>Java>Release: AWS SDK for Java 1.0.5
Added support for AWS Import/Export, RDS Multi-Availability Zones, Amazon S3 pre-signed URLs, and performance improvements.

Details

Submitted By: Jason@AWS
Release Date: June 9, 2010 12:00 AM GMT
Created On: June 9, 2010 5:14 PM GMT
Last Updated: June 16, 2010 9:53 PM GMT

What's New

The following table describes the new feature found in this release.

Feature Description
S3 Pre-signed URLs

You can now create more advanced pre-signed URLs using the Amazon S3 client in the AWS SDK for Java. Pre-signed URLs allow you to securely sign a request to Amazon S3 using your AWS security credentials, then give that pre-signed URL to another system to actually send the request. This is accomplished without exposing your AWS security credentials to that system.

For example, the code below creates a pre-signed PUT URL that you can give to someone to allow them to upload a new object to your bucket:

AmazonS3 s3 = new AmazonS3Client(credentials);
GeneratePresignedUrlRequest request = 
    new GeneratePresignedUrlRequest(bucketName, key, HttpMethod.PUT);
URL presignedUrl = s3.generatePresignedUrl(request);
	                       
AWS Import/Export Client

The AWS SDK for Java includes the AWS Import/Export client, allowing you to easily work with the AWS Import/Export service and schedule jobs to import and export your data from Amazon S3.

RDS Multi-Availability Zone Support

You can now take advantage of the new Multi-Availability Zone features (Amazon Relational Database Service (Beta)) in Amazon Relational Database Service using the AWS SDK for Java.

The example below demonstrates how to create a new RDS DBInstance that has a hot backup in another EC2 Availability Zone for increased availability and durability. You can also use the SDK to update an existing DBInstance to enable the Multi-Availability Zone feature.

                   
AmazonRDS rds = new AmazonRDSClient(credentials);
DBInstance myDbInstance = rds.createDBInstance(
    new CreateDBInstanceRequest()
    .withAllocatedStorage(5)
    .withDBInstanceClass("db.m1.small")
    .withDBInstanceIdentifier(databaseInstanceName)
    .withEngine("mysql5.1")
    .withDBName("mydb")
    .withMasterUsername("admin")
    .withMasterUserPassword("pass")
    .withMultiAZ(true));
                            
EC2 XML Unmarshalling Performance Improvements

This release of the AWS SDK for Java introduces streaming StAX XML unmarshallers for the Amazon EC2 client. This allows for much more efficient XML processing with less memory use and faster processing times. EC2, S3, SQS, SNS, SimpleDB, and ImportExport all use streaming XML parsing for increased performance. The remaining clients in the SDK will follow in future releases.

Continued Documentation Improvements

We continue to improve documentation in the AWS SDK for Java. This release fixes documentation errors and omissions, and makes many small tweaks to help developers use the API reference documentation.

Supported API Versions

The AWS SDK for Java supports the following API versions:

Service API Version
Amazon EC2 2009-11-30
Amazon S3 2006-03-01
Amazon SimpleDB 2009-04-15
Amazon RDS 2010-01-01
Amazon CloudFront 2009-12-15
Amazon SQS 2009-02-01
Amazon Elastic MapReduce 2009-03-31
Amazon CloudWatch 2009-05-15
Amazon Elastic LoadBalancing 2009-11-25
Amazon Auto Scaling 2009-05-15
Amazon Simple Notification Service 2010-03-31
AWS Import/Export 2010-06-01

Download the AWS SDK for Java from http://aws.amazon.com/sdkforjava/.

©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.