Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSM describe_instance_information does not return enumerator for pagination #1249

Closed
flyinbutrs opened this issue Jul 20, 2016 · 2 comments
Closed
Labels
feature-request A feature should be added or improved.

Comments

@flyinbutrs
Copy link
Contributor

Most AWS Commands support pagination via enumerators, this SSM command seems to be missing that.

[20] pry(main)> ssm = Aws::SSM::Client.new
[21] pry(main)> ssm.describe_instance_information.map(&:instance_information_list)
NoMethodError: undefined method `each' for #<Aws::SSM::Types::DescribeInstanceInformationResult:0x00000101602a00>
from /Users/drosenbloom/.rvm/gems/ruby-2.1.1/gems/aws-sdk-core-2.3.21/lib/seahorse/client/response.rb:85:in `map'
@awood45
Copy link
Member

awood45 commented Jul 20, 2016

Correct, I do not see a pagination definition for that method, but the :next_token member is present in the response.

@awood45 awood45 added feature-request A feature should be added or improved. Version 2 labels Jul 20, 2016
@trevorrowe
Copy link
Member

I've added the missing paginator configuration. This should go out with our next release.

trevorrowe added a commit that referenced this issue Jul 21, 2016
awood45 added a commit that referenced this issue Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

3 participants