@aws-sdk/client-databrew 3.476.0 → 3.478.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 (35) hide show
  1. package/dist-cjs/pagination/ListDatasetsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListJobRunsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListJobsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListRecipeVersionsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListRecipesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListRulesetsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListSchedulesPaginator.js +2 -24
  9. package/dist-cjs/protocols/Aws_restJson1.js +253 -554
  10. package/dist-es/pagination/ListDatasetsPaginator.js +2 -23
  11. package/dist-es/pagination/ListJobRunsPaginator.js +2 -23
  12. package/dist-es/pagination/ListJobsPaginator.js +2 -23
  13. package/dist-es/pagination/ListProjectsPaginator.js +2 -23
  14. package/dist-es/pagination/ListRecipeVersionsPaginator.js +2 -23
  15. package/dist-es/pagination/ListRecipesPaginator.js +2 -23
  16. package/dist-es/pagination/ListRulesetsPaginator.js +2 -23
  17. package/dist-es/pagination/ListSchedulesPaginator.js +2 -23
  18. package/dist-es/protocols/Aws_restJson1.js +254 -555
  19. package/dist-types/pagination/ListDatasetsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListJobRunsPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListRecipeVersionsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListRecipesPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListRulesetsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListSchedulesPaginator.d.ts +1 -1
  27. package/dist-types/ts3.4/pagination/ListDatasetsPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListJobRunsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
  31. package/dist-types/ts3.4/pagination/ListRecipeVersionsPaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListRecipesPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListRulesetsPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListSchedulesPaginator.d.ts +3 -3
  35. package/package.json +7 -6
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDatasetsCommand, } from "../commands/ListDatasetsCommand";
2
3
  import { DataBrewClient } from "../DataBrewClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDatasetsCommand(input), ...args);
5
- };
6
- export async function* paginateListDatasets(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof DataBrewClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListDatasets = createPaginator(DataBrewClient, ListDatasetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListJobRunsCommand } from "../commands/ListJobRunsCommand";
2
3
  import { DataBrewClient } from "../DataBrewClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListJobRunsCommand(input), ...args);
5
- };
6
- export async function* paginateListJobRuns(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof DataBrewClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListJobRuns = createPaginator(DataBrewClient, ListJobRunsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListJobsCommand } from "../commands/ListJobsCommand";
2
3
  import { DataBrewClient } from "../DataBrewClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListJobsCommand(input), ...args);
5
- };
6
- export async function* paginateListJobs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof DataBrewClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListJobs = createPaginator(DataBrewClient, ListJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListProjectsCommand, } from "../commands/ListProjectsCommand";
2
3
  import { DataBrewClient } from "../DataBrewClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListProjectsCommand(input), ...args);
5
- };
6
- export async function* paginateListProjects(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof DataBrewClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListProjects = createPaginator(DataBrewClient, ListProjectsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListRecipeVersionsCommand, } from "../commands/ListRecipeVersionsCommand";
2
3
  import { DataBrewClient } from "../DataBrewClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListRecipeVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListRecipeVersions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof DataBrewClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListRecipeVersions = createPaginator(DataBrewClient, ListRecipeVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListRecipesCommand } from "../commands/ListRecipesCommand";
2
3
  import { DataBrewClient } from "../DataBrewClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListRecipesCommand(input), ...args);
5
- };
6
- export async function* paginateListRecipes(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof DataBrewClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListRecipes = createPaginator(DataBrewClient, ListRecipesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListRulesetsCommand, } from "../commands/ListRulesetsCommand";
2
3
  import { DataBrewClient } from "../DataBrewClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListRulesetsCommand(input), ...args);
5
- };
6
- export async function* paginateListRulesets(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof DataBrewClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListRulesets = createPaginator(DataBrewClient, ListRulesetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSchedulesCommand, } from "../commands/ListSchedulesCommand";
2
3
  import { DataBrewClient } from "../DataBrewClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSchedulesCommand(input), ...args);
5
- };
6
- export async function* paginateListSchedules(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof DataBrewClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected DataBrew | DataBrewClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSchedules = createPaginator(DataBrewClient, ListSchedulesCommand, "NextToken", "NextToken", "MaxResults");