@aws-sdk/client-m2 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 (39) hide show
  1. package/dist-cjs/pagination/ListApplicationVersionsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListApplicationsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListBatchJobDefinitionsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListBatchJobExecutionsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListDataSetImportHistoryPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListDataSetsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListDeploymentsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListEngineVersionsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListEnvironmentsPaginator.js +2 -24
  10. package/dist-cjs/protocols/Aws_restJson1.js +217 -469
  11. package/dist-es/pagination/ListApplicationVersionsPaginator.js +2 -23
  12. package/dist-es/pagination/ListApplicationsPaginator.js +2 -23
  13. package/dist-es/pagination/ListBatchJobDefinitionsPaginator.js +2 -23
  14. package/dist-es/pagination/ListBatchJobExecutionsPaginator.js +2 -23
  15. package/dist-es/pagination/ListDataSetImportHistoryPaginator.js +2 -23
  16. package/dist-es/pagination/ListDataSetsPaginator.js +2 -23
  17. package/dist-es/pagination/ListDeploymentsPaginator.js +2 -23
  18. package/dist-es/pagination/ListEngineVersionsPaginator.js +2 -23
  19. package/dist-es/pagination/ListEnvironmentsPaginator.js +2 -23
  20. package/dist-es/protocols/Aws_restJson1.js +218 -470
  21. package/dist-types/pagination/ListApplicationVersionsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListBatchJobDefinitionsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListBatchJobExecutionsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListDataSetImportHistoryPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListDataSetsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListDeploymentsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListEngineVersionsPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +1 -1
  30. package/dist-types/ts3.4/pagination/ListApplicationVersionsPaginator.d.ts +3 -3
  31. package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListBatchJobDefinitionsPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListBatchJobExecutionsPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListDataSetImportHistoryPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListDataSetsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListEngineVersionsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +3 -3
  39. package/package.json +7 -6
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListApplicationVersionsCommand, } from "../commands/ListApplicationVersionsCommand";
2
3
  import { M2Client } from "../M2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListApplicationVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListApplicationVersions(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 M2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected M2 | M2Client");
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 paginateListApplicationVersions = createPaginator(M2Client, ListApplicationVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
2
3
  import { M2Client } from "../M2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListApplicationsCommand(input), ...args);
5
- };
6
- export async function* paginateListApplications(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 M2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected M2 | M2Client");
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 paginateListApplications = createPaginator(M2Client, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListBatchJobDefinitionsCommand, } from "../commands/ListBatchJobDefinitionsCommand";
2
3
  import { M2Client } from "../M2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListBatchJobDefinitionsCommand(input), ...args);
5
- };
6
- export async function* paginateListBatchJobDefinitions(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 M2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected M2 | M2Client");
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 paginateListBatchJobDefinitions = createPaginator(M2Client, ListBatchJobDefinitionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListBatchJobExecutionsCommand, } from "../commands/ListBatchJobExecutionsCommand";
2
3
  import { M2Client } from "../M2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListBatchJobExecutionsCommand(input), ...args);
5
- };
6
- export async function* paginateListBatchJobExecutions(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 M2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected M2 | M2Client");
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 paginateListBatchJobExecutions = createPaginator(M2Client, ListBatchJobExecutionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDataSetImportHistoryCommand, } from "../commands/ListDataSetImportHistoryCommand";
2
3
  import { M2Client } from "../M2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDataSetImportHistoryCommand(input), ...args);
5
- };
6
- export async function* paginateListDataSetImportHistory(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 M2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected M2 | M2Client");
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 paginateListDataSetImportHistory = createPaginator(M2Client, ListDataSetImportHistoryCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDataSetsCommand, } from "../commands/ListDataSetsCommand";
2
3
  import { M2Client } from "../M2Client";
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 M2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected M2 | M2Client");
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(M2Client, ListDataSetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDeploymentsCommand, } from "../commands/ListDeploymentsCommand";
2
3
  import { M2Client } from "../M2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDeploymentsCommand(input), ...args);
5
- };
6
- export async function* paginateListDeployments(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 M2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected M2 | M2Client");
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 paginateListDeployments = createPaginator(M2Client, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListEngineVersionsCommand, } from "../commands/ListEngineVersionsCommand";
2
3
  import { M2Client } from "../M2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEngineVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListEngineVersions(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 M2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected M2 | M2Client");
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 paginateListEngineVersions = createPaginator(M2Client, ListEngineVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListEnvironmentsCommand, } from "../commands/ListEnvironmentsCommand";
2
3
  import { M2Client } from "../M2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEnvironmentsCommand(input), ...args);
5
- };
6
- export async function* paginateListEnvironments(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 M2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected M2 | M2Client");
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 paginateListEnvironments = createPaginator(M2Client, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");