Release: AWS SDK for Ruby 1.6.6

Release Notes>Release: AWS SDK for Ruby 1.6.6
Added CORS and tagging support to AWS::S3. Also resolved a number of issues.

Details

Submitted By: trevor@AWS
Latest Version: 1.6.6
Created On: September 19, 2012 9:27 PM GMT
Last Updated: October 24, 2012 5:51 PM GMT

Latest Version

gem install aws-sdk

New Features

Change Description
Amazon S3 CORS Support

You can now manage the CORS rules for your buckets in Amazon S3.

bucket = AWS::S3.new.buckets['bucket-name']

# adding a rule, see also #set
bucket.cors.add(
  :allowed_methods => ['GET','HEAD'],
  :allowed_origins => ['*'])

# enumerating rules
bucket.cors.each do |rule|
  # get all of the rules for this bucket
end

# removing rules
bucket.cors.delete_if {|rule| rule.allowed_origins.include?('*') }

# remove all rules
bucket.cors.clear

Added VPC attributes to AWS::ELB::LoadBalancer and AWS::ELB::LoadBalancerCollection#create.

Amazon S3 Tagging

You can now tag your buckets in S3.

bucket = AWS::S3.new.buckets['bucket-name']
# add a tag
bucket.tags['contents'] = 'photos'
bucket.tags #=> { 'contents' => 'photos' }

# remove all tags
bucket.tags = {}
        
Client-Side Encryption Materials Descriptions

The AWS SDK for Java allows you to describe the materials used in client-side encryption. Added an option to S3Object#write for setting the material description so that these objects can be read by the Java SDK.

bucket = AWS::S3.new.buckets['bucket-name']
bucket.objects['key'].write(file, :encryption_key => '...', :encryption_matdesc => '...')

Resolved Issues

Change Description
DefaultCredentialProvider#refresh

Thanks to Brian Buchanan for his fix on the default credential provider. Refreshing did not previously cause the provider to refresh the internal list of providers.

AWS::EC2::Client#RequestSpotInstances

Resolved an issue in the #request_spot_instances method that caused it to serialize the :security_groups options incorrectly.

AWS::CloudFormation::Client

The string 'NotificationARNs' was inflected incorrectly causing bugs with a few of the AWS::CloudFormation::Client methods.

Supported API Versions

This release of the SDK supports the following API versions:

Service API Version
Amazon CloudWatch 2010-08-01
Amazon DynamoDB 2011-12-05
Amazon Elastic Compute Cloud 2012-07-20
Amazon Elastic MapReduce 2009-03-31
Amazon Route 53 2012-02-29
Amazon Simple E-mail Service 2010-12-01
Amazon Simple Notifications Service 2010-03-31
Amazon Simple Queue Service 2011-10-01
Amazon Simple Storage Service 2006-03-01
Amazon Simple Workflow Service 2012-01-25
Amazon SimpleDB 2009-04-15
Auto Scaling 2011-01-01
AWS CloudFormation 2010-05-15
AWS Identity and Access Management 2010-05-08
AWS Security Token Service 2011-06-15
Elastic Load Balancing 2012-06-01
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.