@aws-sdk/client-databrew 3.477.0 → 3.481.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 (213) hide show
  1. package/dist-cjs/commands/BatchDeleteRecipeVersionCommand.js +18 -41
  2. package/dist-cjs/commands/CreateDatasetCommand.js +18 -41
  3. package/dist-cjs/commands/CreateProfileJobCommand.js +18 -41
  4. package/dist-cjs/commands/CreateProjectCommand.js +18 -41
  5. package/dist-cjs/commands/CreateRecipeCommand.js +18 -41
  6. package/dist-cjs/commands/CreateRecipeJobCommand.js +18 -41
  7. package/dist-cjs/commands/CreateRulesetCommand.js +18 -41
  8. package/dist-cjs/commands/CreateScheduleCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteDatasetCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteJobCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteProjectCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteRecipeVersionCommand.js +18 -41
  13. package/dist-cjs/commands/DeleteRulesetCommand.js +18 -41
  14. package/dist-cjs/commands/DeleteScheduleCommand.js +18 -41
  15. package/dist-cjs/commands/DescribeDatasetCommand.js +18 -41
  16. package/dist-cjs/commands/DescribeJobCommand.js +18 -41
  17. package/dist-cjs/commands/DescribeJobRunCommand.js +18 -41
  18. package/dist-cjs/commands/DescribeProjectCommand.js +18 -41
  19. package/dist-cjs/commands/DescribeRecipeCommand.js +18 -41
  20. package/dist-cjs/commands/DescribeRulesetCommand.js +18 -41
  21. package/dist-cjs/commands/DescribeScheduleCommand.js +18 -41
  22. package/dist-cjs/commands/ListDatasetsCommand.js +18 -41
  23. package/dist-cjs/commands/ListJobRunsCommand.js +18 -41
  24. package/dist-cjs/commands/ListJobsCommand.js +18 -41
  25. package/dist-cjs/commands/ListProjectsCommand.js +18 -41
  26. package/dist-cjs/commands/ListRecipeVersionsCommand.js +18 -41
  27. package/dist-cjs/commands/ListRecipesCommand.js +18 -41
  28. package/dist-cjs/commands/ListRulesetsCommand.js +18 -41
  29. package/dist-cjs/commands/ListSchedulesCommand.js +18 -41
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  31. package/dist-cjs/commands/PublishRecipeCommand.js +18 -41
  32. package/dist-cjs/commands/SendProjectSessionActionCommand.js +18 -41
  33. package/dist-cjs/commands/StartJobRunCommand.js +18 -41
  34. package/dist-cjs/commands/StartProjectSessionCommand.js +18 -41
  35. package/dist-cjs/commands/StopJobRunCommand.js +18 -41
  36. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  37. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  38. package/dist-cjs/commands/UpdateDatasetCommand.js +18 -41
  39. package/dist-cjs/commands/UpdateProfileJobCommand.js +18 -41
  40. package/dist-cjs/commands/UpdateProjectCommand.js +18 -41
  41. package/dist-cjs/commands/UpdateRecipeCommand.js +18 -41
  42. package/dist-cjs/commands/UpdateRecipeJobCommand.js +18 -41
  43. package/dist-cjs/commands/UpdateRulesetCommand.js +18 -41
  44. package/dist-cjs/commands/UpdateScheduleCommand.js +18 -41
  45. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  46. package/dist-cjs/pagination/ListDatasetsPaginator.js +2 -24
  47. package/dist-cjs/pagination/ListJobRunsPaginator.js +2 -24
  48. package/dist-cjs/pagination/ListJobsPaginator.js +2 -24
  49. package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
  50. package/dist-cjs/pagination/ListRecipeVersionsPaginator.js +2 -24
  51. package/dist-cjs/pagination/ListRecipesPaginator.js +2 -24
  52. package/dist-cjs/pagination/ListRulesetsPaginator.js +2 -24
  53. package/dist-cjs/pagination/ListSchedulesPaginator.js +2 -24
  54. package/dist-es/commands/BatchDeleteRecipeVersionCommand.js +18 -41
  55. package/dist-es/commands/CreateDatasetCommand.js +18 -41
  56. package/dist-es/commands/CreateProfileJobCommand.js +18 -41
  57. package/dist-es/commands/CreateProjectCommand.js +18 -41
  58. package/dist-es/commands/CreateRecipeCommand.js +18 -41
  59. package/dist-es/commands/CreateRecipeJobCommand.js +18 -41
  60. package/dist-es/commands/CreateRulesetCommand.js +18 -41
  61. package/dist-es/commands/CreateScheduleCommand.js +18 -41
  62. package/dist-es/commands/DeleteDatasetCommand.js +18 -41
  63. package/dist-es/commands/DeleteJobCommand.js +18 -41
  64. package/dist-es/commands/DeleteProjectCommand.js +18 -41
  65. package/dist-es/commands/DeleteRecipeVersionCommand.js +18 -41
  66. package/dist-es/commands/DeleteRulesetCommand.js +18 -41
  67. package/dist-es/commands/DeleteScheduleCommand.js +18 -41
  68. package/dist-es/commands/DescribeDatasetCommand.js +18 -41
  69. package/dist-es/commands/DescribeJobCommand.js +18 -41
  70. package/dist-es/commands/DescribeJobRunCommand.js +18 -41
  71. package/dist-es/commands/DescribeProjectCommand.js +18 -41
  72. package/dist-es/commands/DescribeRecipeCommand.js +18 -41
  73. package/dist-es/commands/DescribeRulesetCommand.js +18 -41
  74. package/dist-es/commands/DescribeScheduleCommand.js +18 -41
  75. package/dist-es/commands/ListDatasetsCommand.js +18 -41
  76. package/dist-es/commands/ListJobRunsCommand.js +18 -41
  77. package/dist-es/commands/ListJobsCommand.js +18 -41
  78. package/dist-es/commands/ListProjectsCommand.js +18 -41
  79. package/dist-es/commands/ListRecipeVersionsCommand.js +18 -41
  80. package/dist-es/commands/ListRecipesCommand.js +18 -41
  81. package/dist-es/commands/ListRulesetsCommand.js +18 -41
  82. package/dist-es/commands/ListSchedulesCommand.js +18 -41
  83. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  84. package/dist-es/commands/PublishRecipeCommand.js +18 -41
  85. package/dist-es/commands/SendProjectSessionActionCommand.js +18 -41
  86. package/dist-es/commands/StartJobRunCommand.js +18 -41
  87. package/dist-es/commands/StartProjectSessionCommand.js +18 -41
  88. package/dist-es/commands/StopJobRunCommand.js +18 -41
  89. package/dist-es/commands/TagResourceCommand.js +18 -41
  90. package/dist-es/commands/UntagResourceCommand.js +18 -41
  91. package/dist-es/commands/UpdateDatasetCommand.js +18 -41
  92. package/dist-es/commands/UpdateProfileJobCommand.js +18 -41
  93. package/dist-es/commands/UpdateProjectCommand.js +18 -41
  94. package/dist-es/commands/UpdateRecipeCommand.js +18 -41
  95. package/dist-es/commands/UpdateRecipeJobCommand.js +18 -41
  96. package/dist-es/commands/UpdateRulesetCommand.js +18 -41
  97. package/dist-es/commands/UpdateScheduleCommand.js +18 -41
  98. package/dist-es/endpoint/EndpointParameters.js +6 -0
  99. package/dist-es/pagination/ListDatasetsPaginator.js +2 -23
  100. package/dist-es/pagination/ListJobRunsPaginator.js +2 -23
  101. package/dist-es/pagination/ListJobsPaginator.js +2 -23
  102. package/dist-es/pagination/ListProjectsPaginator.js +2 -23
  103. package/dist-es/pagination/ListRecipeVersionsPaginator.js +2 -23
  104. package/dist-es/pagination/ListRecipesPaginator.js +2 -23
  105. package/dist-es/pagination/ListRulesetsPaginator.js +2 -23
  106. package/dist-es/pagination/ListSchedulesPaginator.js +2 -23
  107. package/dist-types/commands/BatchDeleteRecipeVersionCommand.d.ts +6 -21
  108. package/dist-types/commands/CreateDatasetCommand.d.ts +6 -21
  109. package/dist-types/commands/CreateProfileJobCommand.d.ts +6 -21
  110. package/dist-types/commands/CreateProjectCommand.d.ts +6 -21
  111. package/dist-types/commands/CreateRecipeCommand.d.ts +6 -21
  112. package/dist-types/commands/CreateRecipeJobCommand.d.ts +6 -21
  113. package/dist-types/commands/CreateRulesetCommand.d.ts +6 -21
  114. package/dist-types/commands/CreateScheduleCommand.d.ts +6 -21
  115. package/dist-types/commands/DeleteDatasetCommand.d.ts +6 -21
  116. package/dist-types/commands/DeleteJobCommand.d.ts +6 -21
  117. package/dist-types/commands/DeleteProjectCommand.d.ts +6 -21
  118. package/dist-types/commands/DeleteRecipeVersionCommand.d.ts +6 -21
  119. package/dist-types/commands/DeleteRulesetCommand.d.ts +6 -21
  120. package/dist-types/commands/DeleteScheduleCommand.d.ts +6 -21
  121. package/dist-types/commands/DescribeDatasetCommand.d.ts +6 -21
  122. package/dist-types/commands/DescribeJobCommand.d.ts +6 -21
  123. package/dist-types/commands/DescribeJobRunCommand.d.ts +6 -21
  124. package/dist-types/commands/DescribeProjectCommand.d.ts +6 -21
  125. package/dist-types/commands/DescribeRecipeCommand.d.ts +6 -21
  126. package/dist-types/commands/DescribeRulesetCommand.d.ts +6 -21
  127. package/dist-types/commands/DescribeScheduleCommand.d.ts +6 -21
  128. package/dist-types/commands/ListDatasetsCommand.d.ts +6 -21
  129. package/dist-types/commands/ListJobRunsCommand.d.ts +6 -21
  130. package/dist-types/commands/ListJobsCommand.d.ts +6 -21
  131. package/dist-types/commands/ListProjectsCommand.d.ts +6 -21
  132. package/dist-types/commands/ListRecipeVersionsCommand.d.ts +6 -21
  133. package/dist-types/commands/ListRecipesCommand.d.ts +6 -21
  134. package/dist-types/commands/ListRulesetsCommand.d.ts +6 -21
  135. package/dist-types/commands/ListSchedulesCommand.d.ts +6 -21
  136. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  137. package/dist-types/commands/PublishRecipeCommand.d.ts +6 -21
  138. package/dist-types/commands/SendProjectSessionActionCommand.d.ts +6 -21
  139. package/dist-types/commands/StartJobRunCommand.d.ts +6 -21
  140. package/dist-types/commands/StartProjectSessionCommand.d.ts +6 -21
  141. package/dist-types/commands/StopJobRunCommand.d.ts +6 -21
  142. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  143. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  144. package/dist-types/commands/UpdateDatasetCommand.d.ts +6 -21
  145. package/dist-types/commands/UpdateProfileJobCommand.d.ts +6 -21
  146. package/dist-types/commands/UpdateProjectCommand.d.ts +6 -21
  147. package/dist-types/commands/UpdateRecipeCommand.d.ts +6 -21
  148. package/dist-types/commands/UpdateRecipeJobCommand.d.ts +6 -21
  149. package/dist-types/commands/UpdateRulesetCommand.d.ts +6 -21
  150. package/dist-types/commands/UpdateScheduleCommand.d.ts +6 -21
  151. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  152. package/dist-types/pagination/ListDatasetsPaginator.d.ts +1 -1
  153. package/dist-types/pagination/ListJobRunsPaginator.d.ts +1 -1
  154. package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
  155. package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
  156. package/dist-types/pagination/ListRecipeVersionsPaginator.d.ts +1 -1
  157. package/dist-types/pagination/ListRecipesPaginator.d.ts +1 -1
  158. package/dist-types/pagination/ListRulesetsPaginator.d.ts +1 -1
  159. package/dist-types/pagination/ListSchedulesPaginator.d.ts +1 -1
  160. package/dist-types/ts3.4/commands/BatchDeleteRecipeVersionCommand.d.ts +12 -24
  161. package/dist-types/ts3.4/commands/CreateDatasetCommand.d.ts +14 -23
  162. package/dist-types/ts3.4/commands/CreateProfileJobCommand.d.ts +14 -23
  163. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +14 -23
  164. package/dist-types/ts3.4/commands/CreateRecipeCommand.d.ts +14 -23
  165. package/dist-types/ts3.4/commands/CreateRecipeJobCommand.d.ts +14 -23
  166. package/dist-types/ts3.4/commands/CreateRulesetCommand.d.ts +14 -23
  167. package/dist-types/ts3.4/commands/CreateScheduleCommand.d.ts +14 -23
  168. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +14 -23
  169. package/dist-types/ts3.4/commands/DeleteJobCommand.d.ts +14 -23
  170. package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +14 -23
  171. package/dist-types/ts3.4/commands/DeleteRecipeVersionCommand.d.ts +14 -23
  172. package/dist-types/ts3.4/commands/DeleteRulesetCommand.d.ts +14 -23
  173. package/dist-types/ts3.4/commands/DeleteScheduleCommand.d.ts +14 -23
  174. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +14 -23
  175. package/dist-types/ts3.4/commands/DescribeJobCommand.d.ts +14 -23
  176. package/dist-types/ts3.4/commands/DescribeJobRunCommand.d.ts +14 -23
  177. package/dist-types/ts3.4/commands/DescribeProjectCommand.d.ts +14 -23
  178. package/dist-types/ts3.4/commands/DescribeRecipeCommand.d.ts +14 -23
  179. package/dist-types/ts3.4/commands/DescribeRulesetCommand.d.ts +14 -23
  180. package/dist-types/ts3.4/commands/DescribeScheduleCommand.d.ts +14 -23
  181. package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +14 -23
  182. package/dist-types/ts3.4/commands/ListJobRunsCommand.d.ts +14 -23
  183. package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +14 -23
  184. package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +14 -23
  185. package/dist-types/ts3.4/commands/ListRecipeVersionsCommand.d.ts +14 -23
  186. package/dist-types/ts3.4/commands/ListRecipesCommand.d.ts +14 -23
  187. package/dist-types/ts3.4/commands/ListRulesetsCommand.d.ts +14 -23
  188. package/dist-types/ts3.4/commands/ListSchedulesCommand.d.ts +14 -23
  189. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  190. package/dist-types/ts3.4/commands/PublishRecipeCommand.d.ts +14 -23
  191. package/dist-types/ts3.4/commands/SendProjectSessionActionCommand.d.ts +12 -24
  192. package/dist-types/ts3.4/commands/StartJobRunCommand.d.ts +14 -23
  193. package/dist-types/ts3.4/commands/StartProjectSessionCommand.d.ts +14 -23
  194. package/dist-types/ts3.4/commands/StopJobRunCommand.d.ts +14 -23
  195. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  196. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  197. package/dist-types/ts3.4/commands/UpdateDatasetCommand.d.ts +14 -23
  198. package/dist-types/ts3.4/commands/UpdateProfileJobCommand.d.ts +14 -23
  199. package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +14 -23
  200. package/dist-types/ts3.4/commands/UpdateRecipeCommand.d.ts +14 -23
  201. package/dist-types/ts3.4/commands/UpdateRecipeJobCommand.d.ts +14 -23
  202. package/dist-types/ts3.4/commands/UpdateRulesetCommand.d.ts +14 -23
  203. package/dist-types/ts3.4/commands/UpdateScheduleCommand.d.ts +14 -23
  204. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  205. package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +3 -3
  206. package/dist-types/ts3.4/pagination/ListJobRunsPaginator.d.ts +3 -3
  207. package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
  208. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
  209. package/dist-types/ts3.4/pagination/ListRecipeVersionsPaginator.d.ts +3 -3
  210. package/dist-types/ts3.4/pagination/ListRecipesPaginator.d.ts +3 -3
  211. package/dist-types/ts3.4/pagination/ListRulesetsPaginator.d.ts +3 -3
  212. package/dist-types/ts3.4/pagination/ListSchedulesPaginator.d.ts +3 -3
  213. package/package.json +11 -11
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListJobsCommand_1 = require("../commands/ListJobsCommand");
5
6
  const DataBrewClient_1 = require("../DataBrewClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListJobsCommand_1.ListJobsCommand(input), ...args);
8
- };
9
- async function* paginateListJobs(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 DataBrewClient_1.DataBrewClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
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.paginateListJobs = paginateListJobs;
7
+ exports.paginateListJobs = (0, core_1.createPaginator)(DataBrewClient_1.DataBrewClient, ListJobsCommand_1.ListJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProjects = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListProjectsCommand_1 = require("../commands/ListProjectsCommand");
5
6
  const DataBrewClient_1 = require("../DataBrewClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListProjectsCommand_1.ListProjectsCommand(input), ...args);
8
- };
9
- async function* paginateListProjects(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 DataBrewClient_1.DataBrewClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
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.paginateListProjects = paginateListProjects;
7
+ exports.paginateListProjects = (0, core_1.createPaginator)(DataBrewClient_1.DataBrewClient, ListProjectsCommand_1.ListProjectsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecipeVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRecipeVersionsCommand_1 = require("../commands/ListRecipeVersionsCommand");
5
6
  const DataBrewClient_1 = require("../DataBrewClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRecipeVersionsCommand_1.ListRecipeVersionsCommand(input), ...args);
8
- };
9
- async function* paginateListRecipeVersions(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 DataBrewClient_1.DataBrewClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
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.paginateListRecipeVersions = paginateListRecipeVersions;
7
+ exports.paginateListRecipeVersions = (0, core_1.createPaginator)(DataBrewClient_1.DataBrewClient, ListRecipeVersionsCommand_1.ListRecipeVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecipes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRecipesCommand_1 = require("../commands/ListRecipesCommand");
5
6
  const DataBrewClient_1 = require("../DataBrewClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRecipesCommand_1.ListRecipesCommand(input), ...args);
8
- };
9
- async function* paginateListRecipes(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 DataBrewClient_1.DataBrewClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
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.paginateListRecipes = paginateListRecipes;
7
+ exports.paginateListRecipes = (0, core_1.createPaginator)(DataBrewClient_1.DataBrewClient, ListRecipesCommand_1.ListRecipesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRulesets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRulesetsCommand_1 = require("../commands/ListRulesetsCommand");
5
6
  const DataBrewClient_1 = require("../DataBrewClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRulesetsCommand_1.ListRulesetsCommand(input), ...args);
8
- };
9
- async function* paginateListRulesets(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 DataBrewClient_1.DataBrewClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
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.paginateListRulesets = paginateListRulesets;
7
+ exports.paginateListRulesets = (0, core_1.createPaginator)(DataBrewClient_1.DataBrewClient, ListRulesetsCommand_1.ListRulesetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSchedules = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSchedulesCommand_1 = require("../commands/ListSchedulesCommand");
5
6
  const DataBrewClient_1 = require("../DataBrewClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSchedulesCommand_1.ListSchedulesCommand(input), ...args);
8
- };
9
- async function* paginateListSchedules(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 DataBrewClient_1.DataBrewClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
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.paginateListSchedules = paginateListSchedules;
7
+ exports.paginateListSchedules = (0, core_1.createPaginator)(DataBrewClient_1.DataBrewClient, ListSchedulesCommand_1.ListSchedulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_BatchDeleteRecipeVersionCommand, se_BatchDeleteRecipeVersionCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class BatchDeleteRecipeVersionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, BatchDeleteRecipeVersionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DataBrewClient";
26
- const commandName = "BatchDeleteRecipeVersionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGlueDataBrew",
35
- operation: "BatchDeleteRecipeVersion",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_BatchDeleteRecipeVersionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_BatchDeleteRecipeVersionCommand(output, context);
46
- }
7
+ export class BatchDeleteRecipeVersionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlueDataBrew", "BatchDeleteRecipeVersion", {})
19
+ .n("DataBrewClient", "BatchDeleteRecipeVersionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchDeleteRecipeVersionCommand)
22
+ .de(de_BatchDeleteRecipeVersionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateDatasetCommand, se_CreateDatasetCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateDatasetCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateDatasetCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DataBrewClient";
26
- const commandName = "CreateDatasetCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGlueDataBrew",
35
- operation: "CreateDataset",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateDatasetCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateDatasetCommand(output, context);
46
- }
7
+ export class CreateDatasetCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlueDataBrew", "CreateDataset", {})
19
+ .n("DataBrewClient", "CreateDatasetCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateDatasetCommand)
22
+ .de(de_CreateDatasetCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateProfileJobCommand, se_CreateProfileJobCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateProfileJobCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateProfileJobCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DataBrewClient";
26
- const commandName = "CreateProfileJobCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGlueDataBrew",
35
- operation: "CreateProfileJob",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateProfileJobCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateProfileJobCommand(output, context);
46
- }
7
+ export class CreateProfileJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlueDataBrew", "CreateProfileJob", {})
19
+ .n("DataBrewClient", "CreateProfileJobCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateProfileJobCommand)
22
+ .de(de_CreateProfileJobCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateProjectCommand, se_CreateProjectCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateProjectCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateProjectCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DataBrewClient";
26
- const commandName = "CreateProjectCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGlueDataBrew",
35
- operation: "CreateProject",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateProjectCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateProjectCommand(output, context);
46
- }
7
+ export class CreateProjectCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlueDataBrew", "CreateProject", {})
19
+ .n("DataBrewClient", "CreateProjectCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateProjectCommand)
22
+ .de(de_CreateProjectCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateRecipeCommand, se_CreateRecipeCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateRecipeCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateRecipeCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DataBrewClient";
26
- const commandName = "CreateRecipeCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGlueDataBrew",
35
- operation: "CreateRecipe",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateRecipeCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateRecipeCommand(output, context);
46
- }
7
+ export class CreateRecipeCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlueDataBrew", "CreateRecipe", {})
19
+ .n("DataBrewClient", "CreateRecipeCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateRecipeCommand)
22
+ .de(de_CreateRecipeCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateRecipeJobCommand, se_CreateRecipeJobCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateRecipeJobCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateRecipeJobCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DataBrewClient";
26
- const commandName = "CreateRecipeJobCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGlueDataBrew",
35
- operation: "CreateRecipeJob",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateRecipeJobCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateRecipeJobCommand(output, context);
46
- }
7
+ export class CreateRecipeJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGlueDataBrew", "CreateRecipeJob", {})
19
+ .n("DataBrewClient", "CreateRecipeJobCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateRecipeJobCommand)
22
+ .de(de_CreateRecipeJobCommand)
23
+ .build() {
47
24
  }