Support latest resource model version. #34
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change adds support for the latest version of the JSON description files
for resources. The following has changed:
.path
has been moved into.resource.path
if a resourceis present. If it is present, then a path outside of the resource is
no longer valid. This fixes Trying to access SQS message body throws an exception as of boto3 versions 0.0.3 and 0.0.2 #33.
hasOne
orhasMany
are nowdefined 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.
cc @jamesls, @kyleknap