amazon-archives / aws-sdk-core-ruby

This repository has moved to the master branch of aws/aws-sdk-ruby
https://github.com/aws/aws-sdk-ruby
243 stars 57 forks source link

authorize_security_group_ingress documentation hard to parse #198

Closed garethr closed 9 years ago

garethr commented 9 years ago

The SDK docs around authorize_security_group_ingress at http://docs.aws.amazon.com/sdkforruby/api/frames.html are difficult to follow. Specifically:

Ultimately, this method feels like two separate implementations tied together.

This stood out as the rest of the SDK I've used (for https://github.com/garethr/puppetlabs-aws) has been obvious in use, even without referring to the documentation in many cases.

awood45 commented 9 years ago

Our API docs are directly generated from the service API docs, which includes a few examples that may help. What I can do is forward this on to the EC2 doc teams to see if they can add clarity to the function description.

garethr commented 9 years ago

All of the samples on that page use the nested ip_permissions array, non of them use the top-level attributes. Which reinforces the feeling that it's two parallel implementations, maybe for backwards compatibility. Even just stating that or deprecating those bits, would be a useful signal.

trevorrowe commented 9 years ago

I suspect you are correct about two implementations. We've passed along the documentation feedback. Thanks!