@aws-sdk/client-glue 3.477.0 → 3.480.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 (181) hide show
  1. package/dist-cjs/models/models_2.js +6 -1
  2. package/dist-cjs/pagination/GetBlueprintRunsPaginator.js +2 -24
  3. package/dist-cjs/pagination/GetClassifiersPaginator.js +2 -24
  4. package/dist-cjs/pagination/GetColumnStatisticsTaskRunsPaginator.js +2 -24
  5. package/dist-cjs/pagination/GetConnectionsPaginator.js +2 -24
  6. package/dist-cjs/pagination/GetCrawlerMetricsPaginator.js +2 -24
  7. package/dist-cjs/pagination/GetCrawlersPaginator.js +2 -24
  8. package/dist-cjs/pagination/GetDatabasesPaginator.js +2 -24
  9. package/dist-cjs/pagination/GetDevEndpointsPaginator.js +2 -24
  10. package/dist-cjs/pagination/GetJobRunsPaginator.js +2 -24
  11. package/dist-cjs/pagination/GetJobsPaginator.js +2 -24
  12. package/dist-cjs/pagination/GetMLTaskRunsPaginator.js +2 -24
  13. package/dist-cjs/pagination/GetMLTransformsPaginator.js +2 -24
  14. package/dist-cjs/pagination/GetPartitionIndexesPaginator.js +2 -23
  15. package/dist-cjs/pagination/GetPartitionsPaginator.js +2 -24
  16. package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +2 -24
  17. package/dist-cjs/pagination/GetSecurityConfigurationsPaginator.js +2 -24
  18. package/dist-cjs/pagination/GetTableVersionsPaginator.js +2 -24
  19. package/dist-cjs/pagination/GetTablesPaginator.js +2 -24
  20. package/dist-cjs/pagination/GetTriggersPaginator.js +2 -24
  21. package/dist-cjs/pagination/GetUnfilteredPartitionsMetadataPaginator.js +2 -24
  22. package/dist-cjs/pagination/GetUserDefinedFunctionsPaginator.js +2 -24
  23. package/dist-cjs/pagination/GetWorkflowRunsPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListBlueprintsPaginator.js +2 -24
  25. package/dist-cjs/pagination/ListColumnStatisticsTaskRunsPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListCrawlersPaginator.js +2 -24
  27. package/dist-cjs/pagination/ListCustomEntityTypesPaginator.js +2 -24
  28. package/dist-cjs/pagination/ListDataQualityResultsPaginator.js +2 -24
  29. package/dist-cjs/pagination/ListDataQualityRuleRecommendationRunsPaginator.js +2 -24
  30. package/dist-cjs/pagination/ListDataQualityRulesetEvaluationRunsPaginator.js +2 -24
  31. package/dist-cjs/pagination/ListDataQualityRulesetsPaginator.js +2 -24
  32. package/dist-cjs/pagination/ListDevEndpointsPaginator.js +2 -24
  33. package/dist-cjs/pagination/ListJobsPaginator.js +2 -24
  34. package/dist-cjs/pagination/ListMLTransformsPaginator.js +2 -24
  35. package/dist-cjs/pagination/ListRegistriesPaginator.js +2 -24
  36. package/dist-cjs/pagination/ListSchemaVersionsPaginator.js +2 -24
  37. package/dist-cjs/pagination/ListSchemasPaginator.js +2 -24
  38. package/dist-cjs/pagination/ListSessionsPaginator.js +2 -24
  39. package/dist-cjs/pagination/ListTableOptimizerRunsPaginator.js +2 -24
  40. package/dist-cjs/pagination/ListTriggersPaginator.js +2 -24
  41. package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
  42. package/dist-cjs/pagination/SearchTablesPaginator.js +2 -24
  43. package/dist-cjs/protocols/Aws_json1_1.js +55 -3
  44. package/dist-es/models/models_2.js +5 -0
  45. package/dist-es/pagination/GetBlueprintRunsPaginator.js +2 -23
  46. package/dist-es/pagination/GetClassifiersPaginator.js +2 -23
  47. package/dist-es/pagination/GetColumnStatisticsTaskRunsPaginator.js +2 -23
  48. package/dist-es/pagination/GetConnectionsPaginator.js +2 -23
  49. package/dist-es/pagination/GetCrawlerMetricsPaginator.js +2 -23
  50. package/dist-es/pagination/GetCrawlersPaginator.js +2 -23
  51. package/dist-es/pagination/GetDatabasesPaginator.js +2 -23
  52. package/dist-es/pagination/GetDevEndpointsPaginator.js +2 -23
  53. package/dist-es/pagination/GetJobRunsPaginator.js +2 -23
  54. package/dist-es/pagination/GetJobsPaginator.js +2 -23
  55. package/dist-es/pagination/GetMLTaskRunsPaginator.js +2 -23
  56. package/dist-es/pagination/GetMLTransformsPaginator.js +2 -23
  57. package/dist-es/pagination/GetPartitionIndexesPaginator.js +2 -22
  58. package/dist-es/pagination/GetPartitionsPaginator.js +2 -23
  59. package/dist-es/pagination/GetResourcePoliciesPaginator.js +2 -23
  60. package/dist-es/pagination/GetSecurityConfigurationsPaginator.js +2 -23
  61. package/dist-es/pagination/GetTableVersionsPaginator.js +2 -23
  62. package/dist-es/pagination/GetTablesPaginator.js +2 -23
  63. package/dist-es/pagination/GetTriggersPaginator.js +2 -23
  64. package/dist-es/pagination/GetUnfilteredPartitionsMetadataPaginator.js +2 -23
  65. package/dist-es/pagination/GetUserDefinedFunctionsPaginator.js +2 -23
  66. package/dist-es/pagination/GetWorkflowRunsPaginator.js +2 -23
  67. package/dist-es/pagination/ListBlueprintsPaginator.js +2 -23
  68. package/dist-es/pagination/ListColumnStatisticsTaskRunsPaginator.js +2 -23
  69. package/dist-es/pagination/ListCrawlersPaginator.js +2 -23
  70. package/dist-es/pagination/ListCustomEntityTypesPaginator.js +2 -23
  71. package/dist-es/pagination/ListDataQualityResultsPaginator.js +2 -23
  72. package/dist-es/pagination/ListDataQualityRuleRecommendationRunsPaginator.js +2 -23
  73. package/dist-es/pagination/ListDataQualityRulesetEvaluationRunsPaginator.js +2 -23
  74. package/dist-es/pagination/ListDataQualityRulesetsPaginator.js +2 -23
  75. package/dist-es/pagination/ListDevEndpointsPaginator.js +2 -23
  76. package/dist-es/pagination/ListJobsPaginator.js +2 -23
  77. package/dist-es/pagination/ListMLTransformsPaginator.js +2 -23
  78. package/dist-es/pagination/ListRegistriesPaginator.js +2 -23
  79. package/dist-es/pagination/ListSchemaVersionsPaginator.js +2 -23
  80. package/dist-es/pagination/ListSchemasPaginator.js +2 -23
  81. package/dist-es/pagination/ListSessionsPaginator.js +2 -23
  82. package/dist-es/pagination/ListTableOptimizerRunsPaginator.js +2 -23
  83. package/dist-es/pagination/ListTriggersPaginator.js +2 -23
  84. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  85. package/dist-es/pagination/SearchTablesPaginator.js +2 -23
  86. package/dist-es/protocols/Aws_json1_1.js +55 -3
  87. package/dist-types/commands/BatchGetPartitionCommand.d.ts +1 -0
  88. package/dist-types/commands/CreateConnectionCommand.d.ts +1 -0
  89. package/dist-types/commands/GetPartitionCommand.d.ts +1 -0
  90. package/dist-types/commands/GetPartitionsCommand.d.ts +1 -0
  91. package/dist-types/commands/GetTableCommand.d.ts +1 -0
  92. package/dist-types/commands/GetTablesCommand.d.ts +1 -0
  93. package/dist-types/commands/GetUnfilteredPartitionMetadataCommand.d.ts +11 -0
  94. package/dist-types/commands/GetUnfilteredPartitionsMetadataCommand.d.ts +11 -0
  95. package/dist-types/commands/GetUnfilteredTableMetadataCommand.d.ts +23 -0
  96. package/dist-types/models/models_0.d.ts +5 -0
  97. package/dist-types/models/models_2.d.ts +116 -1
  98. package/dist-types/pagination/GetBlueprintRunsPaginator.d.ts +1 -1
  99. package/dist-types/pagination/GetClassifiersPaginator.d.ts +1 -1
  100. package/dist-types/pagination/GetColumnStatisticsTaskRunsPaginator.d.ts +1 -1
  101. package/dist-types/pagination/GetConnectionsPaginator.d.ts +1 -1
  102. package/dist-types/pagination/GetCrawlerMetricsPaginator.d.ts +1 -1
  103. package/dist-types/pagination/GetCrawlersPaginator.d.ts +1 -1
  104. package/dist-types/pagination/GetDatabasesPaginator.d.ts +1 -1
  105. package/dist-types/pagination/GetDevEndpointsPaginator.d.ts +1 -1
  106. package/dist-types/pagination/GetJobRunsPaginator.d.ts +1 -1
  107. package/dist-types/pagination/GetJobsPaginator.d.ts +1 -1
  108. package/dist-types/pagination/GetMLTaskRunsPaginator.d.ts +1 -1
  109. package/dist-types/pagination/GetMLTransformsPaginator.d.ts +1 -1
  110. package/dist-types/pagination/GetPartitionIndexesPaginator.d.ts +1 -1
  111. package/dist-types/pagination/GetPartitionsPaginator.d.ts +1 -1
  112. package/dist-types/pagination/GetResourcePoliciesPaginator.d.ts +1 -1
  113. package/dist-types/pagination/GetSecurityConfigurationsPaginator.d.ts +1 -1
  114. package/dist-types/pagination/GetTableVersionsPaginator.d.ts +1 -1
  115. package/dist-types/pagination/GetTablesPaginator.d.ts +1 -1
  116. package/dist-types/pagination/GetTriggersPaginator.d.ts +1 -1
  117. package/dist-types/pagination/GetUnfilteredPartitionsMetadataPaginator.d.ts +1 -1
  118. package/dist-types/pagination/GetUserDefinedFunctionsPaginator.d.ts +1 -1
  119. package/dist-types/pagination/GetWorkflowRunsPaginator.d.ts +1 -1
  120. package/dist-types/pagination/ListBlueprintsPaginator.d.ts +1 -1
  121. package/dist-types/pagination/ListColumnStatisticsTaskRunsPaginator.d.ts +1 -1
  122. package/dist-types/pagination/ListCrawlersPaginator.d.ts +1 -1
  123. package/dist-types/pagination/ListCustomEntityTypesPaginator.d.ts +1 -1
  124. package/dist-types/pagination/ListDataQualityResultsPaginator.d.ts +1 -1
  125. package/dist-types/pagination/ListDataQualityRuleRecommendationRunsPaginator.d.ts +1 -1
  126. package/dist-types/pagination/ListDataQualityRulesetEvaluationRunsPaginator.d.ts +1 -1
  127. package/dist-types/pagination/ListDataQualityRulesetsPaginator.d.ts +1 -1
  128. package/dist-types/pagination/ListDevEndpointsPaginator.d.ts +1 -1
  129. package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
  130. package/dist-types/pagination/ListMLTransformsPaginator.d.ts +1 -1
  131. package/dist-types/pagination/ListRegistriesPaginator.d.ts +1 -1
  132. package/dist-types/pagination/ListSchemaVersionsPaginator.d.ts +1 -1
  133. package/dist-types/pagination/ListSchemasPaginator.d.ts +1 -1
  134. package/dist-types/pagination/ListSessionsPaginator.d.ts +1 -1
  135. package/dist-types/pagination/ListTableOptimizerRunsPaginator.d.ts +1 -1
  136. package/dist-types/pagination/ListTriggersPaginator.d.ts +1 -1
  137. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  138. package/dist-types/pagination/SearchTablesPaginator.d.ts +1 -1
  139. package/dist-types/ts3.4/models/models_2.d.ts +29 -0
  140. package/dist-types/ts3.4/pagination/GetBlueprintRunsPaginator.d.ts +3 -3
  141. package/dist-types/ts3.4/pagination/GetClassifiersPaginator.d.ts +3 -3
  142. package/dist-types/ts3.4/pagination/GetColumnStatisticsTaskRunsPaginator.d.ts +3 -3
  143. package/dist-types/ts3.4/pagination/GetConnectionsPaginator.d.ts +3 -3
  144. package/dist-types/ts3.4/pagination/GetCrawlerMetricsPaginator.d.ts +3 -3
  145. package/dist-types/ts3.4/pagination/GetCrawlersPaginator.d.ts +3 -3
  146. package/dist-types/ts3.4/pagination/GetDatabasesPaginator.d.ts +3 -3
  147. package/dist-types/ts3.4/pagination/GetDevEndpointsPaginator.d.ts +3 -3
  148. package/dist-types/ts3.4/pagination/GetJobRunsPaginator.d.ts +3 -3
  149. package/dist-types/ts3.4/pagination/GetJobsPaginator.d.ts +3 -3
  150. package/dist-types/ts3.4/pagination/GetMLTaskRunsPaginator.d.ts +3 -3
  151. package/dist-types/ts3.4/pagination/GetMLTransformsPaginator.d.ts +3 -3
  152. package/dist-types/ts3.4/pagination/GetPartitionIndexesPaginator.d.ts +3 -3
  153. package/dist-types/ts3.4/pagination/GetPartitionsPaginator.d.ts +3 -3
  154. package/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +3 -3
  155. package/dist-types/ts3.4/pagination/GetSecurityConfigurationsPaginator.d.ts +3 -3
  156. package/dist-types/ts3.4/pagination/GetTableVersionsPaginator.d.ts +3 -3
  157. package/dist-types/ts3.4/pagination/GetTablesPaginator.d.ts +3 -3
  158. package/dist-types/ts3.4/pagination/GetTriggersPaginator.d.ts +3 -3
  159. package/dist-types/ts3.4/pagination/GetUnfilteredPartitionsMetadataPaginator.d.ts +3 -3
  160. package/dist-types/ts3.4/pagination/GetUserDefinedFunctionsPaginator.d.ts +3 -3
  161. package/dist-types/ts3.4/pagination/GetWorkflowRunsPaginator.d.ts +3 -3
  162. package/dist-types/ts3.4/pagination/ListBlueprintsPaginator.d.ts +3 -3
  163. package/dist-types/ts3.4/pagination/ListColumnStatisticsTaskRunsPaginator.d.ts +3 -3
  164. package/dist-types/ts3.4/pagination/ListCrawlersPaginator.d.ts +3 -3
  165. package/dist-types/ts3.4/pagination/ListCustomEntityTypesPaginator.d.ts +3 -3
  166. package/dist-types/ts3.4/pagination/ListDataQualityResultsPaginator.d.ts +3 -3
  167. package/dist-types/ts3.4/pagination/ListDataQualityRuleRecommendationRunsPaginator.d.ts +3 -3
  168. package/dist-types/ts3.4/pagination/ListDataQualityRulesetEvaluationRunsPaginator.d.ts +3 -3
  169. package/dist-types/ts3.4/pagination/ListDataQualityRulesetsPaginator.d.ts +3 -3
  170. package/dist-types/ts3.4/pagination/ListDevEndpointsPaginator.d.ts +3 -3
  171. package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
  172. package/dist-types/ts3.4/pagination/ListMLTransformsPaginator.d.ts +3 -3
  173. package/dist-types/ts3.4/pagination/ListRegistriesPaginator.d.ts +3 -3
  174. package/dist-types/ts3.4/pagination/ListSchemaVersionsPaginator.d.ts +3 -3
  175. package/dist-types/ts3.4/pagination/ListSchemasPaginator.d.ts +3 -3
  176. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +3 -3
  177. package/dist-types/ts3.4/pagination/ListTableOptimizerRunsPaginator.d.ts +3 -3
  178. package/dist-types/ts3.4/pagination/ListTriggersPaginator.d.ts +3 -3
  179. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  180. package/dist-types/ts3.4/pagination/SearchTablesPaginator.d.ts +3 -3
  181. package/package.json +6 -5
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetJobsResponseFilterSensitiveLog = exports.BatchGetJobsResponseFilterSensitiveLog = exports.UpdateJobRequestFilterSensitiveLog = exports.GetJobResponseFilterSensitiveLog = exports.JobUpdateFilterSensitiveLog = exports.JobFilterSensitiveLog = exports.CreateJobRequestFilterSensitiveLog = exports.VersionMismatchException = exports.SchedulerNotRunningException = exports.CrawlerStoppingException = exports.CrawlerNotRunningException = exports.ColumnStatisticsTaskStoppingException = exports.ColumnStatisticsTaskNotRunningException = exports.MLTransformNotReadyException = exports.SchedulerRunningException = exports.NoScheduleException = exports.ColumnStatisticsTaskRunningException = exports.IllegalBlueprintStateException = exports.Sort = exports.Comparator = exports.IllegalWorkflowStateException = exports.ConcurrentRunsExceededException = exports.ExistCondition = exports.EnableHybridValues = exports.CrawlerHistoryState = exports.FilterOperator = exports.FieldName = exports.PermissionTypeMismatchException = exports.PermissionType = exports.StatementState = void 0;
3
+ exports.GetJobsResponseFilterSensitiveLog = exports.BatchGetJobsResponseFilterSensitiveLog = exports.UpdateJobRequestFilterSensitiveLog = exports.GetJobResponseFilterSensitiveLog = exports.JobUpdateFilterSensitiveLog = exports.JobFilterSensitiveLog = exports.CreateJobRequestFilterSensitiveLog = exports.VersionMismatchException = exports.SchedulerNotRunningException = exports.CrawlerStoppingException = exports.CrawlerNotRunningException = exports.ColumnStatisticsTaskStoppingException = exports.ColumnStatisticsTaskNotRunningException = exports.MLTransformNotReadyException = exports.SchedulerRunningException = exports.NoScheduleException = exports.ColumnStatisticsTaskRunningException = exports.IllegalBlueprintStateException = exports.Sort = exports.Comparator = exports.IllegalWorkflowStateException = exports.ConcurrentRunsExceededException = exports.ExistCondition = exports.EnableHybridValues = exports.CrawlerHistoryState = exports.FilterOperator = exports.FieldName = exports.ViewDialect = exports.PermissionTypeMismatchException = exports.PermissionType = exports.StatementState = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const GlueServiceException_1 = require("./GlueServiceException");
6
6
  exports.StatementState = {
@@ -31,6 +31,11 @@ class PermissionTypeMismatchException extends GlueServiceException_1.GlueService
31
31
  }
32
32
  }
33
33
  exports.PermissionTypeMismatchException = PermissionTypeMismatchException;
34
+ exports.ViewDialect = {
35
+ ATHENA: "ATHENA",
36
+ REDSHIFT: "REDSHIFT",
37
+ SPARK: "SPARK",
38
+ };
34
39
  exports.FieldName = {
35
40
  CRAWL_ID: "CRAWL_ID",
36
41
  DPU_HOUR: "DPU_HOUR",
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetBlueprintRuns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetBlueprintRunsCommand_1 = require("../commands/GetBlueprintRunsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetBlueprintRunsCommand_1.GetBlueprintRunsCommand(input), ...args);
8
- };
9
- async function* paginateGetBlueprintRuns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetBlueprintRuns = paginateGetBlueprintRuns;
7
+ exports.paginateGetBlueprintRuns = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetBlueprintRunsCommand_1.GetBlueprintRunsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetClassifiers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetClassifiersCommand_1 = require("../commands/GetClassifiersCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetClassifiersCommand_1.GetClassifiersCommand(input), ...args);
8
- };
9
- async function* paginateGetClassifiers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetClassifiers = paginateGetClassifiers;
7
+ exports.paginateGetClassifiers = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetClassifiersCommand_1.GetClassifiersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetColumnStatisticsTaskRuns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetColumnStatisticsTaskRunsCommand_1 = require("../commands/GetColumnStatisticsTaskRunsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetColumnStatisticsTaskRunsCommand_1.GetColumnStatisticsTaskRunsCommand(input), ...args);
8
- };
9
- async function* paginateGetColumnStatisticsTaskRuns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetColumnStatisticsTaskRuns = paginateGetColumnStatisticsTaskRuns;
7
+ exports.paginateGetColumnStatisticsTaskRuns = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetColumnStatisticsTaskRunsCommand_1.GetColumnStatisticsTaskRunsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetConnections = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetConnectionsCommand_1 = require("../commands/GetConnectionsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetConnectionsCommand_1.GetConnectionsCommand(input), ...args);
8
- };
9
- async function* paginateGetConnections(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetConnections = paginateGetConnections;
7
+ exports.paginateGetConnections = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetConnectionsCommand_1.GetConnectionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetCrawlerMetrics = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetCrawlerMetricsCommand_1 = require("../commands/GetCrawlerMetricsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetCrawlerMetricsCommand_1.GetCrawlerMetricsCommand(input), ...args);
8
- };
9
- async function* paginateGetCrawlerMetrics(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetCrawlerMetrics = paginateGetCrawlerMetrics;
7
+ exports.paginateGetCrawlerMetrics = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetCrawlerMetricsCommand_1.GetCrawlerMetricsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetCrawlers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetCrawlersCommand_1 = require("../commands/GetCrawlersCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetCrawlersCommand_1.GetCrawlersCommand(input), ...args);
8
- };
9
- async function* paginateGetCrawlers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetCrawlers = paginateGetCrawlers;
7
+ exports.paginateGetCrawlers = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetCrawlersCommand_1.GetCrawlersCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDatabases = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetDatabasesCommand_1 = require("../commands/GetDatabasesCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetDatabasesCommand_1.GetDatabasesCommand(input), ...args);
8
- };
9
- async function* paginateGetDatabases(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetDatabases = paginateGetDatabases;
7
+ exports.paginateGetDatabases = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetDatabasesCommand_1.GetDatabasesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDevEndpoints = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetDevEndpointsCommand_1 = require("../commands/GetDevEndpointsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetDevEndpointsCommand_1.GetDevEndpointsCommand(input), ...args);
8
- };
9
- async function* paginateGetDevEndpoints(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetDevEndpoints = paginateGetDevEndpoints;
7
+ exports.paginateGetDevEndpoints = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetDevEndpointsCommand_1.GetDevEndpointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetJobRuns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetJobRunsCommand_1 = require("../commands/GetJobRunsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetJobRunsCommand_1.GetJobRunsCommand(input), ...args);
8
- };
9
- async function* paginateGetJobRuns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetJobRuns = paginateGetJobRuns;
7
+ exports.paginateGetJobRuns = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetJobRunsCommand_1.GetJobRunsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetJobsCommand_1 = require("../commands/GetJobsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetJobsCommand_1.GetJobsCommand(input), ...args);
8
- };
9
- async function* paginateGetJobs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetJobs = paginateGetJobs;
7
+ exports.paginateGetJobs = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetJobsCommand_1.GetJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetMLTaskRuns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetMLTaskRunsCommand_1 = require("../commands/GetMLTaskRunsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetMLTaskRunsCommand_1.GetMLTaskRunsCommand(input), ...args);
8
- };
9
- async function* paginateGetMLTaskRuns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetMLTaskRuns = paginateGetMLTaskRuns;
7
+ exports.paginateGetMLTaskRuns = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetMLTaskRunsCommand_1.GetMLTaskRunsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetMLTransforms = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetMLTransformsCommand_1 = require("../commands/GetMLTransformsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetMLTransformsCommand_1.GetMLTransformsCommand(input), ...args);
8
- };
9
- async function* paginateGetMLTransforms(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetMLTransforms = paginateGetMLTransforms;
7
+ exports.paginateGetMLTransforms = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetMLTransformsCommand_1.GetMLTransformsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetPartitionIndexes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetPartitionIndexesCommand_1 = require("../commands/GetPartitionIndexesCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetPartitionIndexesCommand_1.GetPartitionIndexesCommand(input), ...args);
8
- };
9
- async function* paginateGetPartitionIndexes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof GlueClient_1.GlueClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected Glue | GlueClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateGetPartitionIndexes = paginateGetPartitionIndexes;
7
+ exports.paginateGetPartitionIndexes = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetPartitionIndexesCommand_1.GetPartitionIndexesCommand, "NextToken", "NextToken", "");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetPartitions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetPartitionsCommand_1 = require("../commands/GetPartitionsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetPartitionsCommand_1.GetPartitionsCommand(input), ...args);
8
- };
9
- async function* paginateGetPartitions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetPartitions = paginateGetPartitions;
7
+ exports.paginateGetPartitions = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetPartitionsCommand_1.GetPartitionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetResourcePolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetResourcePoliciesCommand_1 = require("../commands/GetResourcePoliciesCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetResourcePoliciesCommand_1.GetResourcePoliciesCommand(input), ...args);
8
- };
9
- async function* paginateGetResourcePolicies(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetResourcePolicies = paginateGetResourcePolicies;
7
+ exports.paginateGetResourcePolicies = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetResourcePoliciesCommand_1.GetResourcePoliciesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetSecurityConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetSecurityConfigurationsCommand_1 = require("../commands/GetSecurityConfigurationsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetSecurityConfigurationsCommand_1.GetSecurityConfigurationsCommand(input), ...args);
8
- };
9
- async function* paginateGetSecurityConfigurations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetSecurityConfigurations = paginateGetSecurityConfigurations;
7
+ exports.paginateGetSecurityConfigurations = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetSecurityConfigurationsCommand_1.GetSecurityConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetTableVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetTableVersionsCommand_1 = require("../commands/GetTableVersionsCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetTableVersionsCommand_1.GetTableVersionsCommand(input), ...args);
8
- };
9
- async function* paginateGetTableVersions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetTableVersions = paginateGetTableVersions;
7
+ exports.paginateGetTableVersions = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetTableVersionsCommand_1.GetTableVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetTables = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetTablesCommand_1 = require("../commands/GetTablesCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetTablesCommand_1.GetTablesCommand(input), ...args);
8
- };
9
- async function* paginateGetTables(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetTables = paginateGetTables;
7
+ exports.paginateGetTables = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetTablesCommand_1.GetTablesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetTriggers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetTriggersCommand_1 = require("../commands/GetTriggersCommand");
5
6
  const GlueClient_1 = require("../GlueClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetTriggersCommand_1.GetTriggersCommand(input), ...args);
8
- };
9
- async function* paginateGetTriggers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof GlueClient_1.GlueClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Glue | GlueClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetTriggers = paginateGetTriggers;
7
+ exports.paginateGetTriggers = (0, core_1.createPaginator)(GlueClient_1.GlueClient, GetTriggersCommand_1.GetTriggersCommand, "NextToken", "NextToken", "MaxResults");