Skip to content

Commit

Permalink
Support latest resource model version.
Browse files Browse the repository at this point in the history
This change adds support for the latest version of the JSON description files
for resources. The following has changed:

1. An action's `.path` has been moved into `.resource.path` if a resource
   is present. If it is present, then a path outside of the resource is
   no longer valid. This fixes #33.
2. Sub-resources previously defined with either `hasOne` or `hasMany` are now
   defined with a single `belongsTo` key. The internal Boto 3 representation,
   however, remains the same and is accessed via `resource.references`.

As a result of the format changes, I had to update the internal resource
model, adjust the search path behavior for actions and update various tests
that made assumptions about the older format.

I also discovered that we were using a mix of old and new files for different
services, so this change includes updates to EC2 and Glacier so that all
resources are using the new format. With this change, we no longer support
the older format.
  • Loading branch information
danielgtaylor committed Dec 2, 2014
1 parent ab3b951 commit 74b2e26
Show file tree
Hide file tree
Showing 8 changed files with 1,616 additions and 1,410 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

Unreleased
----------

* feature: Update `Amazon EC2 <http://aws.amazon.com/ec2/>`_ resource model.
* feature: Support `belongsTo` resource reference as well as `path`
specified in an action's resource definition.
* bugfix: Fix an issue accessing SQS message bodies
(`issue 33 <https://github.com/boto/boto3/issues/33>`__)

0.0.3 - 2014-11-26
------------------

Expand Down

0 comments on commit 74b2e26

Please sign in to comment.