@aws-sdk/client-gamelift 3.75.0 → 3.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/pagination/DescribeFleetAttributesPaginator.js +2 -1
  3. package/dist-cjs/pagination/DescribeFleetCapacityPaginator.js +2 -1
  4. package/dist-cjs/pagination/DescribeFleetEventsPaginator.js +2 -1
  5. package/dist-cjs/pagination/DescribeFleetLocationAttributesPaginator.js +2 -1
  6. package/dist-cjs/pagination/DescribeFleetUtilizationPaginator.js +2 -1
  7. package/dist-cjs/pagination/DescribeGameServerInstancesPaginator.js +2 -1
  8. package/dist-cjs/pagination/DescribeGameSessionDetailsPaginator.js +2 -1
  9. package/dist-cjs/pagination/DescribeGameSessionQueuesPaginator.js +2 -1
  10. package/dist-cjs/pagination/DescribeGameSessionsPaginator.js +2 -1
  11. package/dist-cjs/pagination/DescribeInstancesPaginator.js +2 -1
  12. package/dist-cjs/pagination/DescribeMatchmakingConfigurationsPaginator.js +2 -1
  13. package/dist-cjs/pagination/DescribeMatchmakingRuleSetsPaginator.js +2 -1
  14. package/dist-cjs/pagination/DescribePlayerSessionsPaginator.js +2 -1
  15. package/dist-cjs/pagination/DescribeScalingPoliciesPaginator.js +2 -1
  16. package/dist-cjs/pagination/ListAliasesPaginator.js +2 -1
  17. package/dist-cjs/pagination/ListBuildsPaginator.js +2 -1
  18. package/dist-cjs/pagination/ListFleetsPaginator.js +2 -1
  19. package/dist-cjs/pagination/ListGameServerGroupsPaginator.js +2 -1
  20. package/dist-cjs/pagination/ListGameServersPaginator.js +2 -1
  21. package/dist-cjs/pagination/ListScriptsPaginator.js +2 -1
  22. package/dist-cjs/pagination/SearchGameSessionsPaginator.js +2 -1
  23. package/dist-es/pagination/DescribeFleetAttributesPaginator.js +3 -2
  24. package/dist-es/pagination/DescribeFleetCapacityPaginator.js +3 -2
  25. package/dist-es/pagination/DescribeFleetEventsPaginator.js +3 -2
  26. package/dist-es/pagination/DescribeFleetLocationAttributesPaginator.js +3 -2
  27. package/dist-es/pagination/DescribeFleetUtilizationPaginator.js +3 -2
  28. package/dist-es/pagination/DescribeGameServerInstancesPaginator.js +3 -2
  29. package/dist-es/pagination/DescribeGameSessionDetailsPaginator.js +3 -2
  30. package/dist-es/pagination/DescribeGameSessionQueuesPaginator.js +3 -2
  31. package/dist-es/pagination/DescribeGameSessionsPaginator.js +3 -2
  32. package/dist-es/pagination/DescribeInstancesPaginator.js +3 -2
  33. package/dist-es/pagination/DescribeMatchmakingConfigurationsPaginator.js +3 -2
  34. package/dist-es/pagination/DescribeMatchmakingRuleSetsPaginator.js +3 -2
  35. package/dist-es/pagination/DescribePlayerSessionsPaginator.js +3 -2
  36. package/dist-es/pagination/DescribeScalingPoliciesPaginator.js +3 -2
  37. package/dist-es/pagination/ListAliasesPaginator.js +3 -2
  38. package/dist-es/pagination/ListBuildsPaginator.js +3 -2
  39. package/dist-es/pagination/ListFleetsPaginator.js +3 -2
  40. package/dist-es/pagination/ListGameServerGroupsPaginator.js +3 -2
  41. package/dist-es/pagination/ListGameServersPaginator.js +3 -2
  42. package/dist-es/pagination/ListScriptsPaginator.js +3 -2
  43. package/dist-es/pagination/SearchGameSessionsPaginator.js +3 -2
  44. package/dist-types/GameLift.d.ts +47 -47
  45. package/dist-types/commands/AcceptMatchCommand.d.ts +5 -5
  46. package/dist-types/commands/CreateAliasCommand.d.ts +1 -1
  47. package/dist-types/commands/CreateBuildCommand.d.ts +3 -3
  48. package/dist-types/commands/CreateGameSessionCommand.d.ts +1 -1
  49. package/dist-types/commands/CreatePlayerSessionCommand.d.ts +1 -1
  50. package/dist-types/commands/CreatePlayerSessionsCommand.d.ts +1 -1
  51. package/dist-types/commands/CreateScriptCommand.d.ts +5 -5
  52. package/dist-types/commands/CreateVpcPeeringAuthorizationCommand.d.ts +7 -7
  53. package/dist-types/commands/CreateVpcPeeringConnectionCommand.d.ts +4 -4
  54. package/dist-types/commands/DeleteScriptCommand.d.ts +1 -1
  55. package/dist-types/commands/DeleteVpcPeeringConnectionCommand.d.ts +1 -1
  56. package/dist-types/commands/DescribeGameSessionsCommand.d.ts +1 -1
  57. package/dist-types/commands/DescribePlayerSessionsCommand.d.ts +1 -1
  58. package/dist-types/commands/DescribeScriptCommand.d.ts +1 -1
  59. package/dist-types/commands/DescribeVpcPeeringConnectionsCommand.d.ts +1 -1
  60. package/dist-types/commands/ListScriptsCommand.d.ts +1 -1
  61. package/dist-types/commands/PutScalingPolicyCommand.d.ts +4 -4
  62. package/dist-types/commands/RequestUploadCredentialsCommand.d.ts +1 -1
  63. package/dist-types/commands/StartGameSessionPlacementCommand.d.ts +5 -5
  64. package/dist-types/commands/UpdateScriptCommand.d.ts +2 -2
  65. package/dist-types/models/models_0.d.ts +39 -42
  66. package/package.json +25 -25
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * **types:** add pagination stopOnSameToken option ([#3524](https://github.com/aws/aws-sdk-js-v3/issues/3524)) ([9bf73e8](https://github.com/aws/aws-sdk-js-v3/commit/9bf73e81b8d9be9f12c72cbefbe26c502d1873c6))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.77.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.76.0...v3.77.0) (2022-04-25)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-gamelift
20
+
21
+
22
+
23
+
24
+
25
+ # [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-gamelift
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.75.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.74.0...v3.75.0) (2022-04-21)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-gamelift
@@ -27,8 +27,9 @@ async function* paginateDescribeFleetAttributes(config, input, ...additionalArgu
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeFleetCapacity(config, input, ...additionalArgume
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeFleetEvents(config, input, ...additionalArgument
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeFleetLocationAttributes(config, input, ...additi
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeFleetUtilization(config, input, ...additionalArg
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeGameServerInstances(config, input, ...additional
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeGameSessionDetails(config, input, ...additionalA
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeGameSessionQueues(config, input, ...additionalAr
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeGameSessions(config, input, ...additionalArgumen
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeInstances(config, input, ...additionalArguments)
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeMatchmakingConfigurations(config, input, ...addi
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeMatchmakingRuleSets(config, input, ...additional
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribePlayerSessions(config, input, ...additionalArgum
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeScalingPolicies(config, input, ...additionalArgu
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListAliases(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListBuilds(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListFleets(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListGameServerGroups(config, input, ...additionalArgumen
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListGameServers(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateListScripts(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -27,8 +27,9 @@ async function* paginateSearchGameSessions(config, input, ...additionalArguments
27
27
  throw new Error("Invalid client, expected GameLift | GameLiftClient");
28
28
  }
29
29
  yield page;
30
+ const prevToken = token;
30
31
  token = page.NextToken;
31
- hasNext = !!token;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
33
  }
33
34
  return undefined;
34
35
  }
@@ -36,7 +36,7 @@ export function paginateDescribeFleetAttributes(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeFleetAttributes_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeFleetAttributes(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeFleetCapacity(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeFleetCapacity_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeFleetCapacity(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeFleetEvents(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeFleetEvents_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeFleetEvents(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeFleetLocationAttributes(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeFleetLocationAttributes_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeFleetLocationAttributes(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeFleetUtilization(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeFleetUtilization_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeFleetUtilization(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeGameServerInstances(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeGameServerInstances_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeGameServerInstances(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeGameSessionDetails(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeGameSessionDetails_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeGameSessionDetails(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeGameSessionQueues(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeGameSessionQueues_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeGameSessionQueues(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeGameSessions(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeGameSessions_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeGameSessions(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeInstances(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeInstances_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeInstances(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeMatchmakingConfigurations(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeMatchmakingConfigurations_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeMatchmakingConfigurations(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeMatchmakingRuleSets(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeMatchmakingRuleSets_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeMatchmakingRuleSets(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribePlayerSessions(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribePlayerSessions_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribePlayerSessions(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeScalingPolicies(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeScalingPolicies_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateDescribeScalingPolicies(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListAliases(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListAliases_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListAliases(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListBuilds(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListBuilds_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListBuilds(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListFleets(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListFleets_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListFleets(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];