@aws-sdk/client-config-service 3.76.0 → 3.80.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 (78) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/pagination/DescribeAggregateComplianceByConfigRulesPaginator.js +2 -1
  3. package/dist-cjs/pagination/DescribeAggregateComplianceByConformancePacksPaginator.js +2 -1
  4. package/dist-cjs/pagination/DescribeAggregationAuthorizationsPaginator.js +2 -1
  5. package/dist-cjs/pagination/DescribeComplianceByConfigRulePaginator.js +2 -1
  6. package/dist-cjs/pagination/DescribeComplianceByResourcePaginator.js +2 -1
  7. package/dist-cjs/pagination/DescribeConfigRuleEvaluationStatusPaginator.js +2 -1
  8. package/dist-cjs/pagination/DescribeConfigRulesPaginator.js +2 -1
  9. package/dist-cjs/pagination/DescribeConfigurationAggregatorSourcesStatusPaginator.js +2 -1
  10. package/dist-cjs/pagination/DescribeConfigurationAggregatorsPaginator.js +2 -1
  11. package/dist-cjs/pagination/DescribeConformancePackCompliancePaginator.js +2 -1
  12. package/dist-cjs/pagination/DescribeConformancePackStatusPaginator.js +2 -1
  13. package/dist-cjs/pagination/DescribeConformancePacksPaginator.js +2 -1
  14. package/dist-cjs/pagination/DescribeOrganizationConfigRuleStatusesPaginator.js +2 -1
  15. package/dist-cjs/pagination/DescribeOrganizationConfigRulesPaginator.js +2 -1
  16. package/dist-cjs/pagination/DescribeOrganizationConformancePackStatusesPaginator.js +2 -1
  17. package/dist-cjs/pagination/DescribeOrganizationConformancePacksPaginator.js +2 -1
  18. package/dist-cjs/pagination/DescribePendingAggregationRequestsPaginator.js +2 -1
  19. package/dist-cjs/pagination/DescribeRemediationExceptionsPaginator.js +2 -1
  20. package/dist-cjs/pagination/DescribeRemediationExecutionStatusPaginator.js +2 -1
  21. package/dist-cjs/pagination/DescribeRetentionConfigurationsPaginator.js +2 -1
  22. package/dist-cjs/pagination/GetAggregateComplianceDetailsByConfigRulePaginator.js +2 -1
  23. package/dist-cjs/pagination/GetAggregateConfigRuleComplianceSummaryPaginator.js +2 -1
  24. package/dist-cjs/pagination/GetAggregateConformancePackComplianceSummaryPaginator.js +2 -1
  25. package/dist-cjs/pagination/GetAggregateDiscoveredResourceCountsPaginator.js +2 -1
  26. package/dist-cjs/pagination/GetComplianceDetailsByConfigRulePaginator.js +2 -1
  27. package/dist-cjs/pagination/GetComplianceDetailsByResourcePaginator.js +2 -1
  28. package/dist-cjs/pagination/GetConformancePackComplianceDetailsPaginator.js +2 -1
  29. package/dist-cjs/pagination/GetConformancePackComplianceSummaryPaginator.js +2 -1
  30. package/dist-cjs/pagination/GetDiscoveredResourceCountsPaginator.js +2 -1
  31. package/dist-cjs/pagination/GetOrganizationConfigRuleDetailedStatusPaginator.js +2 -1
  32. package/dist-cjs/pagination/GetOrganizationConformancePackDetailedStatusPaginator.js +2 -1
  33. package/dist-cjs/pagination/GetResourceConfigHistoryPaginator.js +2 -1
  34. package/dist-cjs/pagination/ListAggregateDiscoveredResourcesPaginator.js +2 -1
  35. package/dist-cjs/pagination/ListDiscoveredResourcesPaginator.js +2 -1
  36. package/dist-cjs/pagination/ListStoredQueriesPaginator.js +2 -1
  37. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -1
  38. package/dist-cjs/pagination/SelectAggregateResourceConfigPaginator.js +2 -1
  39. package/dist-cjs/pagination/SelectResourceConfigPaginator.js +2 -1
  40. package/dist-es/pagination/DescribeAggregateComplianceByConfigRulesPaginator.js +3 -2
  41. package/dist-es/pagination/DescribeAggregateComplianceByConformancePacksPaginator.js +3 -2
  42. package/dist-es/pagination/DescribeAggregationAuthorizationsPaginator.js +3 -2
  43. package/dist-es/pagination/DescribeComplianceByConfigRulePaginator.js +3 -2
  44. package/dist-es/pagination/DescribeComplianceByResourcePaginator.js +3 -2
  45. package/dist-es/pagination/DescribeConfigRuleEvaluationStatusPaginator.js +3 -2
  46. package/dist-es/pagination/DescribeConfigRulesPaginator.js +3 -2
  47. package/dist-es/pagination/DescribeConfigurationAggregatorSourcesStatusPaginator.js +3 -2
  48. package/dist-es/pagination/DescribeConfigurationAggregatorsPaginator.js +3 -2
  49. package/dist-es/pagination/DescribeConformancePackCompliancePaginator.js +3 -2
  50. package/dist-es/pagination/DescribeConformancePackStatusPaginator.js +3 -2
  51. package/dist-es/pagination/DescribeConformancePacksPaginator.js +3 -2
  52. package/dist-es/pagination/DescribeOrganizationConfigRuleStatusesPaginator.js +3 -2
  53. package/dist-es/pagination/DescribeOrganizationConfigRulesPaginator.js +3 -2
  54. package/dist-es/pagination/DescribeOrganizationConformancePackStatusesPaginator.js +3 -2
  55. package/dist-es/pagination/DescribeOrganizationConformancePacksPaginator.js +3 -2
  56. package/dist-es/pagination/DescribePendingAggregationRequestsPaginator.js +3 -2
  57. package/dist-es/pagination/DescribeRemediationExceptionsPaginator.js +3 -2
  58. package/dist-es/pagination/DescribeRemediationExecutionStatusPaginator.js +3 -2
  59. package/dist-es/pagination/DescribeRetentionConfigurationsPaginator.js +3 -2
  60. package/dist-es/pagination/GetAggregateComplianceDetailsByConfigRulePaginator.js +3 -2
  61. package/dist-es/pagination/GetAggregateConfigRuleComplianceSummaryPaginator.js +3 -2
  62. package/dist-es/pagination/GetAggregateConformancePackComplianceSummaryPaginator.js +3 -2
  63. package/dist-es/pagination/GetAggregateDiscoveredResourceCountsPaginator.js +3 -2
  64. package/dist-es/pagination/GetComplianceDetailsByConfigRulePaginator.js +3 -2
  65. package/dist-es/pagination/GetComplianceDetailsByResourcePaginator.js +3 -2
  66. package/dist-es/pagination/GetConformancePackComplianceDetailsPaginator.js +3 -2
  67. package/dist-es/pagination/GetConformancePackComplianceSummaryPaginator.js +3 -2
  68. package/dist-es/pagination/GetDiscoveredResourceCountsPaginator.js +3 -2
  69. package/dist-es/pagination/GetOrganizationConfigRuleDetailedStatusPaginator.js +3 -2
  70. package/dist-es/pagination/GetOrganizationConformancePackDetailedStatusPaginator.js +3 -2
  71. package/dist-es/pagination/GetResourceConfigHistoryPaginator.js +3 -2
  72. package/dist-es/pagination/ListAggregateDiscoveredResourcesPaginator.js +3 -2
  73. package/dist-es/pagination/ListDiscoveredResourcesPaginator.js +3 -2
  74. package/dist-es/pagination/ListStoredQueriesPaginator.js +3 -2
  75. package/dist-es/pagination/ListTagsForResourcePaginator.js +3 -2
  76. package/dist-es/pagination/SelectAggregateResourceConfigPaginator.js +3 -2
  77. package/dist-es/pagination/SelectResourceConfigPaginator.js +3 -2
  78. 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.80.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.79.0...v3.80.0) (2022-04-28)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-config-service
9
+
10
+
11
+
12
+
13
+
14
+ # [3.79.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.78.0...v3.79.0) (2022-04-27)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-config-service
17
+
18
+
19
+
20
+
21
+
22
+ # [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
23
+
24
+
25
+ ### Features
26
+
27
+ * **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))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-config-service
@@ -27,8 +27,9 @@ async function* paginateDescribeAggregateComplianceByConfigRules(config, input,
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeAggregateComplianceByConformancePacks(config, in
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeAggregationAuthorizations(config, input, ...addi
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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
  }
@@ -26,8 +26,9 @@ async function* paginateDescribeComplianceByConfigRule(config, input, ...additio
26
26
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
27
27
  }
28
28
  yield page;
29
+ const prevToken = token;
29
30
  token = page.NextToken;
30
- hasNext = !!token;
31
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
31
32
  }
32
33
  return undefined;
33
34
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeComplianceByResource(config, input, ...additiona
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeConfigRuleEvaluationStatus(config, input, ...add
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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
  }
@@ -26,8 +26,9 @@ async function* paginateDescribeConfigRules(config, input, ...additionalArgument
26
26
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
27
27
  }
28
28
  yield page;
29
+ const prevToken = token;
29
30
  token = page.NextToken;
30
- hasNext = !!token;
31
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
31
32
  }
32
33
  return undefined;
33
34
  }
@@ -27,8 +27,9 @@ async function* paginateDescribeConfigurationAggregatorSourcesStatus(config, inp
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeConfigurationAggregators(config, input, ...addit
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeConformancePackCompliance(config, input, ...addi
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeConformancePackStatus(config, input, ...addition
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeConformancePacks(config, input, ...additionalArg
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeOrganizationConfigRuleStatuses(config, input, ..
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeOrganizationConfigRules(config, input, ...additi
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeOrganizationConformancePackStatuses(config, inpu
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeOrganizationConformancePacks(config, input, ...a
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribePendingAggregationRequests(config, input, ...add
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeRemediationExceptions(config, input, ...addition
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateDescribeRemediationExecutionStatus(config, input, ...add
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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
  }
@@ -26,8 +26,9 @@ async function* paginateDescribeRetentionConfigurations(config, input, ...additi
26
26
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
27
27
  }
28
28
  yield page;
29
+ const prevToken = token;
29
30
  token = page.NextToken;
30
- hasNext = !!token;
31
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
31
32
  }
32
33
  return undefined;
33
34
  }
@@ -27,8 +27,9 @@ async function* paginateGetAggregateComplianceDetailsByConfigRule(config, input,
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateGetAggregateConfigRuleComplianceSummary(config, input, .
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateGetAggregateConformancePackComplianceSummary(config, inp
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateGetAggregateDiscoveredResourceCounts(config, input, ...a
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateGetComplianceDetailsByConfigRule(config, input, ...addit
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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
  }
@@ -26,8 +26,9 @@ async function* paginateGetComplianceDetailsByResource(config, input, ...additio
26
26
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
27
27
  }
28
28
  yield page;
29
+ const prevToken = token;
29
30
  token = page.NextToken;
30
- hasNext = !!token;
31
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
31
32
  }
32
33
  return undefined;
33
34
  }
@@ -27,8 +27,9 @@ async function* paginateGetConformancePackComplianceDetails(config, input, ...ad
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateGetConformancePackComplianceSummary(config, input, ...ad
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateGetDiscoveredResourceCounts(config, input, ...additional
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateGetOrganizationConfigRuleDetailedStatus(config, input, .
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateGetOrganizationConformancePackDetailedStatus(config, inp
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateGetResourceConfigHistory(config, input, ...additionalArg
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateListAggregateDiscoveredResources(config, input, ...addit
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateListDiscoveredResources(config, input, ...additionalArgu
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateListStoredQueries(config, input, ...additionalArguments)
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateListTagsForResource(config, input, ...additionalArgument
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateSelectAggregateResourceConfig(config, input, ...addition
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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* paginateSelectResourceConfig(config, input, ...additionalArgumen
27
27
  throw new Error("Invalid client, expected ConfigService | ConfigServiceClient");
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 paginateDescribeAggregateComplianceByConfigRules(config, input)
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeAggregateComplianceByConfigRules_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 paginateDescribeAggregateComplianceByConfigRules(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 paginateDescribeAggregateComplianceByConformancePacks(config, in
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeAggregateComplianceByConformancePacks_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 paginateDescribeAggregateComplianceByConformancePacks(config, in
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 paginateDescribeAggregationAuthorizations(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeAggregationAuthorizations_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 paginateDescribeAggregationAuthorizations(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 paginateDescribeComplianceByConfigRule(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeComplianceByConfigRule_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:
@@ -62,8 +62,9 @@ export function paginateDescribeComplianceByConfigRule(config, input) {
62
62
  case 7: return [4, _a.sent()];
63
63
  case 8:
64
64
  _a.sent();
65
+ prevToken = token;
65
66
  token = page.NextToken;
66
- hasNext = !!token;
67
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
67
68
  return [3, 1];
68
69
  case 9: return [4, __await(undefined)];
69
70
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateDescribeComplianceByResource(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeComplianceByResource_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 paginateDescribeComplianceByResource(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 paginateDescribeConfigRuleEvaluationStatus(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateDescribeConfigRuleEvaluationStatus_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 paginateDescribeConfigRuleEvaluationStatus(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()];