@aws-sdk/client-ssm 3.75.0 → 3.79.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 (94) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/pagination/DescribeActivationsPaginator.js +2 -1
  3. package/dist-cjs/pagination/DescribeAssociationExecutionTargetsPaginator.js +2 -1
  4. package/dist-cjs/pagination/DescribeAssociationExecutionsPaginator.js +2 -1
  5. package/dist-cjs/pagination/DescribeAutomationExecutionsPaginator.js +2 -1
  6. package/dist-cjs/pagination/DescribeAutomationStepExecutionsPaginator.js +2 -1
  7. package/dist-cjs/pagination/DescribeAvailablePatchesPaginator.js +2 -1
  8. package/dist-cjs/pagination/DescribeEffectiveInstanceAssociationsPaginator.js +2 -1
  9. package/dist-cjs/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js +2 -1
  10. package/dist-cjs/pagination/DescribeInstanceAssociationsStatusPaginator.js +2 -1
  11. package/dist-cjs/pagination/DescribeInstanceInformationPaginator.js +2 -1
  12. package/dist-cjs/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js +2 -1
  13. package/dist-cjs/pagination/DescribeInstancePatchStatesPaginator.js +2 -1
  14. package/dist-cjs/pagination/DescribeInstancePatchesPaginator.js +2 -1
  15. package/dist-cjs/pagination/DescribeInventoryDeletionsPaginator.js +2 -1
  16. package/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js +2 -1
  17. package/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js +2 -1
  18. package/dist-cjs/pagination/DescribeMaintenanceWindowExecutionsPaginator.js +2 -1
  19. package/dist-cjs/pagination/DescribeMaintenanceWindowSchedulePaginator.js +2 -1
  20. package/dist-cjs/pagination/DescribeMaintenanceWindowTargetsPaginator.js +2 -1
  21. package/dist-cjs/pagination/DescribeMaintenanceWindowTasksPaginator.js +2 -1
  22. package/dist-cjs/pagination/DescribeMaintenanceWindowsForTargetPaginator.js +2 -1
  23. package/dist-cjs/pagination/DescribeMaintenanceWindowsPaginator.js +2 -1
  24. package/dist-cjs/pagination/DescribeOpsItemsPaginator.js +2 -1
  25. package/dist-cjs/pagination/DescribeParametersPaginator.js +2 -1
  26. package/dist-cjs/pagination/DescribePatchBaselinesPaginator.js +2 -1
  27. package/dist-cjs/pagination/DescribePatchGroupsPaginator.js +2 -1
  28. package/dist-cjs/pagination/DescribePatchPropertiesPaginator.js +2 -1
  29. package/dist-cjs/pagination/DescribeSessionsPaginator.js +2 -1
  30. package/dist-cjs/pagination/GetInventoryPaginator.js +2 -1
  31. package/dist-cjs/pagination/GetInventorySchemaPaginator.js +2 -1
  32. package/dist-cjs/pagination/GetOpsSummaryPaginator.js +2 -1
  33. package/dist-cjs/pagination/GetParameterHistoryPaginator.js +2 -1
  34. package/dist-cjs/pagination/GetParametersByPathPaginator.js +2 -1
  35. package/dist-cjs/pagination/ListAssociationVersionsPaginator.js +2 -1
  36. package/dist-cjs/pagination/ListAssociationsPaginator.js +2 -1
  37. package/dist-cjs/pagination/ListCommandInvocationsPaginator.js +2 -1
  38. package/dist-cjs/pagination/ListCommandsPaginator.js +2 -1
  39. package/dist-cjs/pagination/ListComplianceItemsPaginator.js +2 -1
  40. package/dist-cjs/pagination/ListComplianceSummariesPaginator.js +2 -1
  41. package/dist-cjs/pagination/ListDocumentVersionsPaginator.js +2 -1
  42. package/dist-cjs/pagination/ListDocumentsPaginator.js +2 -1
  43. package/dist-cjs/pagination/ListOpsItemEventsPaginator.js +2 -1
  44. package/dist-cjs/pagination/ListOpsItemRelatedItemsPaginator.js +2 -1
  45. package/dist-cjs/pagination/ListOpsMetadataPaginator.js +2 -1
  46. package/dist-cjs/pagination/ListResourceComplianceSummariesPaginator.js +2 -1
  47. package/dist-cjs/pagination/ListResourceDataSyncPaginator.js +2 -1
  48. package/dist-es/pagination/DescribeActivationsPaginator.js +3 -2
  49. package/dist-es/pagination/DescribeAssociationExecutionTargetsPaginator.js +3 -2
  50. package/dist-es/pagination/DescribeAssociationExecutionsPaginator.js +3 -2
  51. package/dist-es/pagination/DescribeAutomationExecutionsPaginator.js +3 -2
  52. package/dist-es/pagination/DescribeAutomationStepExecutionsPaginator.js +3 -2
  53. package/dist-es/pagination/DescribeAvailablePatchesPaginator.js +3 -2
  54. package/dist-es/pagination/DescribeEffectiveInstanceAssociationsPaginator.js +3 -2
  55. package/dist-es/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js +3 -2
  56. package/dist-es/pagination/DescribeInstanceAssociationsStatusPaginator.js +3 -2
  57. package/dist-es/pagination/DescribeInstanceInformationPaginator.js +3 -2
  58. package/dist-es/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js +3 -2
  59. package/dist-es/pagination/DescribeInstancePatchStatesPaginator.js +3 -2
  60. package/dist-es/pagination/DescribeInstancePatchesPaginator.js +3 -2
  61. package/dist-es/pagination/DescribeInventoryDeletionsPaginator.js +3 -2
  62. package/dist-es/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js +3 -2
  63. package/dist-es/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js +3 -2
  64. package/dist-es/pagination/DescribeMaintenanceWindowExecutionsPaginator.js +3 -2
  65. package/dist-es/pagination/DescribeMaintenanceWindowSchedulePaginator.js +3 -2
  66. package/dist-es/pagination/DescribeMaintenanceWindowTargetsPaginator.js +3 -2
  67. package/dist-es/pagination/DescribeMaintenanceWindowTasksPaginator.js +3 -2
  68. package/dist-es/pagination/DescribeMaintenanceWindowsForTargetPaginator.js +3 -2
  69. package/dist-es/pagination/DescribeMaintenanceWindowsPaginator.js +3 -2
  70. package/dist-es/pagination/DescribeOpsItemsPaginator.js +3 -2
  71. package/dist-es/pagination/DescribeParametersPaginator.js +3 -2
  72. package/dist-es/pagination/DescribePatchBaselinesPaginator.js +3 -2
  73. package/dist-es/pagination/DescribePatchGroupsPaginator.js +3 -2
  74. package/dist-es/pagination/DescribePatchPropertiesPaginator.js +3 -2
  75. package/dist-es/pagination/DescribeSessionsPaginator.js +3 -2
  76. package/dist-es/pagination/GetInventoryPaginator.js +3 -2
  77. package/dist-es/pagination/GetInventorySchemaPaginator.js +3 -2
  78. package/dist-es/pagination/GetOpsSummaryPaginator.js +3 -2
  79. package/dist-es/pagination/GetParameterHistoryPaginator.js +3 -2
  80. package/dist-es/pagination/GetParametersByPathPaginator.js +3 -2
  81. package/dist-es/pagination/ListAssociationVersionsPaginator.js +3 -2
  82. package/dist-es/pagination/ListAssociationsPaginator.js +3 -2
  83. package/dist-es/pagination/ListCommandInvocationsPaginator.js +3 -2
  84. package/dist-es/pagination/ListCommandsPaginator.js +3 -2
  85. package/dist-es/pagination/ListComplianceItemsPaginator.js +3 -2
  86. package/dist-es/pagination/ListComplianceSummariesPaginator.js +3 -2
  87. package/dist-es/pagination/ListDocumentVersionsPaginator.js +3 -2
  88. package/dist-es/pagination/ListDocumentsPaginator.js +3 -2
  89. package/dist-es/pagination/ListOpsItemEventsPaginator.js +3 -2
  90. package/dist-es/pagination/ListOpsItemRelatedItemsPaginator.js +3 -2
  91. package/dist-es/pagination/ListOpsMetadataPaginator.js +3 -2
  92. package/dist-es/pagination/ListResourceComplianceSummariesPaginator.js +3 -2
  93. package/dist-es/pagination/ListResourceDataSyncPaginator.js +3 -2
  94. package/package.json +26 -26
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.79.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.78.0...v3.79.0) (2022-04-27)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ssm
9
+
10
+
11
+
12
+
13
+
14
+ # [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
15
+
16
+
17
+ ### Features
18
+
19
+ * **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))
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-ssm
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-ssm
@@ -27,8 +27,9 @@ async function* paginateDescribeActivations(config, input, ...additionalArgument
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeAssociationExecutionTargets(config, input, ...ad
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeAssociationExecutions(config, input, ...addition
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeAutomationExecutions(config, input, ...additiona
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeAutomationStepExecutions(config, input, ...addit
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeAvailablePatches(config, input, ...additionalArg
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeEffectiveInstanceAssociations(config, input, ...
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeEffectivePatchesForPatchBaseline(config, input,
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeInstanceAssociationsStatus(config, input, ...add
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeInstanceInformation(config, input, ...additional
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeInstancePatchStatesForPatchGroup(config, input,
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeInstancePatchStates(config, input, ...additional
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeInstancePatches(config, input, ...additionalArgu
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeInventoryDeletions(config, input, ...additionalA
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeMaintenanceWindowExecutionTaskInvocations(config
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeMaintenanceWindowExecutionTasks(config, input, .
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeMaintenanceWindowExecutions(config, input, ...ad
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeMaintenanceWindowSchedule(config, input, ...addi
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeMaintenanceWindowTargets(config, input, ...addit
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeMaintenanceWindowTasks(config, input, ...additio
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeMaintenanceWindowsForTarget(config, input, ...ad
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeMaintenanceWindows(config, input, ...additionalA
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeOpsItems(config, input, ...additionalArguments)
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeParameters(config, input, ...additionalArguments
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribePatchBaselines(config, input, ...additionalArgum
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribePatchGroups(config, input, ...additionalArgument
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribePatchProperties(config, input, ...additionalArgu
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateDescribeSessions(config, input, ...additionalArguments)
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateGetInventory(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateGetInventorySchema(config, input, ...additionalArguments
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateGetOpsSummary(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateGetParameterHistory(config, input, ...additionalArgument
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateGetParametersByPath(config, input, ...additionalArgument
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListAssociationVersions(config, input, ...additionalArgu
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListAssociations(config, input, ...additionalArguments)
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListCommandInvocations(config, input, ...additionalArgum
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListCommands(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListComplianceItems(config, input, ...additionalArgument
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListComplianceSummaries(config, input, ...additionalArgu
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListDocumentVersions(config, input, ...additionalArgumen
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListDocuments(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListOpsItemEvents(config, input, ...additionalArguments)
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListOpsItemRelatedItems(config, input, ...additionalArgu
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListOpsMetadata(config, input, ...additionalArguments) {
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListResourceComplianceSummaries(config, input, ...additi
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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* paginateListResourceDataSync(config, input, ...additionalArgumen
27
27
  throw new Error("Invalid client, expected SSM | SSMClient");
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 paginateDescribeActivations(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeActivations_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 paginateDescribeActivations(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 paginateDescribeAssociationExecutionTargets(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeAssociationExecutionTargets_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 paginateDescribeAssociationExecutionTargets(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()];