Skip to content

Commit

Permalink
elasticbeanstalk getInstancesHealth is a paginated endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsuess committed Nov 5, 2018
1 parent d36a581 commit f316795
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/bugfix-Paginator-ff3cb8e9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "bugfix",
"category": "Paginator",
"description": "When invoking describeInstancesHealth on ElasticBeanstalk the Response object is now correctly paginated."
}
5 changes: 5 additions & 0 deletions apis/elasticbeanstalk-2010-12-01.paginators.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
},
"ListAvailableSolutionStacks": {
"result_key": "SolutionStacks"
},
"DescribeInstancesHealth": {
"result_key": "InstanceHealthList",
"input_token": "NextToken",
"output_token": "NextToken"
}
}
}
5 changes: 3 additions & 2 deletions dist/aws-sdk-react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -32840,7 +32840,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 203 */
/***/ (function(module, exports) {

module.exports = {"pagination":{"DescribeApplicationVersions":{"result_key":"ApplicationVersions"},"DescribeApplications":{"result_key":"Applications"},"DescribeConfigurationOptions":{"result_key":"Options"},"DescribeEnvironments":{"result_key":"Environments"},"DescribeEvents":{"input_token":"NextToken","limit_key":"MaxRecords","output_token":"NextToken","result_key":"Events"},"ListAvailableSolutionStacks":{"result_key":"SolutionStacks"}}}
module.exports = {"pagination":{"DescribeApplicationVersions":{"result_key":"ApplicationVersions"},"DescribeApplications":{"result_key":"Applications"},"DescribeConfigurationOptions":{"result_key":"Options"},"DescribeEnvironments":{"result_key":"Environments"},"DescribeEvents":{"input_token":"NextToken","limit_key":"MaxRecords","output_token":"NextToken","result_key":"Events"},"ListAvailableSolutionStacks":{"result_key":"SolutionStacks"},"DescribeInstancesHealth":{"result_key":"InstanceHealthList","input_token":"NextToken","output_token":"NextToken"}}}

/***/ }),
/* 204 */
Expand Down Expand Up @@ -36820,7 +36820,8 @@ return /******/ (function(modules) { // webpackBootstrap
});
}
if (err) return self.cleanup(err);

//prevent sending part being returned twice (https://github.com/aws/aws-sdk-js/issues/2304)
if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) return null;
partInfo.ETag = data.ETag;
self.doneParts++;
if (self.isDoneChunking && self.doneParts === self.numParts) {
Expand Down

0 comments on commit f316795

Please sign in to comment.