Release v2.3.0 - 2016-04-28
Tag release v2.3.0
-
Feature - Aws.partitions - Added interfaces for exploring regions and
services within AWS partitions. A partition is a named group of
regions and services.# enumerating regions in a partition Aws.partition("aws").regions.each do |region| puts region.name end # enumerating services in a partition Aws.partition("aws").services.each do |service| puts service.name end
Valid partition names include:
"aws"
"aws-cn"
"aws-us-gov"
From a partition, you can also access a region or service by name.
Regions allow you to enumerate services, and services allow you to enumerate
regions:# services in a specific region Aws.partition("aws").region("us-west-2").services #=> #<Set: {"APIGateway", "AutoScaling", ... } # regions for a specific service Aws.partition("aws").service('DynamoDB').regions #=> #<Set: {"us-east-1", "us-west-1", "us-west-2", ... }
You can also enumerate services or regions within a partition.
# services in regions Aws.partition("aws").regions.each do |region| puts "Services in the #{region.name}" region.services.each do |service_name| puts service_name end end # regions in services Aws.partition("aws").services.each do |service| puts "Regions the #{servcie.name} is available in" service.regions.each do |region_name| puts region_name end end
Lastly, you can also enumerate all partitions.
Aws.partitions.each do |partition| puts partition.name partition.regions.each |region| # ... end partition.services.each |service| # ... end end
-
Feature - Aws::S3 - You can now pass a configuration option to accelerate
Aws::S3::Client
operations. You can construct a client with
use_accelerate_endpoint: true
to enable this feature.s3 = Aws::S3::Client.new(use_accelerate_endpoint: true) s3.put_object(bucket: 'bucket-name', key:'key') #=> uses https://bucket-name.s3-accelerate.amazonaws.com
You can pass
:use_accelerate_endpoint
to client operations to
override the client default.# non-accelerated client s3 = Aws::S3::Client.new # non-accelerated s3.put_object(bucket: 'bucket-name', key:'key') # accelerated s3.put_object(bucket: 'bucket-name', key:'key', use_accelerate_endpoint: true)
See the Amazon S3 documentation for more information.
Not supported for the following operations:
#create_bucket
#list_buckets
#delete_bucket
-
Feature - Aws::OpsWorks - Adds support for default tenancy selection.
-
Feature - Aws::Route53Domains - Adds support for new operations
#resend_contact_reachability_email
and#get_contact_reachability_status
.