@aws-sdk/client-imagebuilder 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 (87) hide show
  1. package/dist-cjs/pagination/ListComponentBuildVersionsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListContainerRecipesPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListDistributionConfigurationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListImageBuildVersionsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListImagePackagesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListImagePipelineImagesPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListImagePipelinesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListImageRecipesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListImageScanFindingAggregationsPaginator.js +2 -23
  11. package/dist-cjs/pagination/ListImageScanFindingsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListImagesPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListInfrastructureConfigurationsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListLifecycleExecutionResourcesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListLifecycleExecutionsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListWaitingWorkflowStepsPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListWorkflowBuildVersionsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListWorkflowExecutionsPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListWorkflowStepExecutionsPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
  22. package/dist-cjs/protocols/Aws_restJson1.js +338 -872
  23. package/dist-es/pagination/ListComponentBuildVersionsPaginator.js +2 -23
  24. package/dist-es/pagination/ListComponentsPaginator.js +2 -23
  25. package/dist-es/pagination/ListContainerRecipesPaginator.js +2 -23
  26. package/dist-es/pagination/ListDistributionConfigurationsPaginator.js +2 -23
  27. package/dist-es/pagination/ListImageBuildVersionsPaginator.js +2 -23
  28. package/dist-es/pagination/ListImagePackagesPaginator.js +2 -23
  29. package/dist-es/pagination/ListImagePipelineImagesPaginator.js +2 -23
  30. package/dist-es/pagination/ListImagePipelinesPaginator.js +2 -23
  31. package/dist-es/pagination/ListImageRecipesPaginator.js +2 -23
  32. package/dist-es/pagination/ListImageScanFindingAggregationsPaginator.js +2 -22
  33. package/dist-es/pagination/ListImageScanFindingsPaginator.js +2 -23
  34. package/dist-es/pagination/ListImagesPaginator.js +2 -23
  35. package/dist-es/pagination/ListInfrastructureConfigurationsPaginator.js +2 -23
  36. package/dist-es/pagination/ListLifecycleExecutionResourcesPaginator.js +2 -23
  37. package/dist-es/pagination/ListLifecycleExecutionsPaginator.js +2 -23
  38. package/dist-es/pagination/ListLifecyclePoliciesPaginator.js +2 -23
  39. package/dist-es/pagination/ListWaitingWorkflowStepsPaginator.js +2 -23
  40. package/dist-es/pagination/ListWorkflowBuildVersionsPaginator.js +2 -23
  41. package/dist-es/pagination/ListWorkflowExecutionsPaginator.js +2 -23
  42. package/dist-es/pagination/ListWorkflowStepExecutionsPaginator.js +2 -23
  43. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  44. package/dist-es/protocols/Aws_restJson1.js +339 -873
  45. package/dist-types/pagination/ListComponentBuildVersionsPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListContainerRecipesPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListDistributionConfigurationsPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListImageBuildVersionsPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListImagePackagesPaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListImagePipelineImagesPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListImagePipelinesPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListImageRecipesPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListImageScanFindingAggregationsPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListImageScanFindingsPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListImagesPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListInfrastructureConfigurationsPaginator.d.ts +1 -1
  58. package/dist-types/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListLifecycleExecutionsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListLifecyclePoliciesPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListWaitingWorkflowStepsPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListWorkflowBuildVersionsPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListWorkflowExecutionsPaginator.d.ts +1 -1
  64. package/dist-types/pagination/ListWorkflowStepExecutionsPaginator.d.ts +1 -1
  65. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  66. package/dist-types/ts3.4/pagination/ListComponentBuildVersionsPaginator.d.ts +3 -3
  67. package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
  68. package/dist-types/ts3.4/pagination/ListContainerRecipesPaginator.d.ts +3 -3
  69. package/dist-types/ts3.4/pagination/ListDistributionConfigurationsPaginator.d.ts +3 -3
  70. package/dist-types/ts3.4/pagination/ListImageBuildVersionsPaginator.d.ts +3 -3
  71. package/dist-types/ts3.4/pagination/ListImagePackagesPaginator.d.ts +3 -3
  72. package/dist-types/ts3.4/pagination/ListImagePipelineImagesPaginator.d.ts +3 -3
  73. package/dist-types/ts3.4/pagination/ListImagePipelinesPaginator.d.ts +3 -3
  74. package/dist-types/ts3.4/pagination/ListImageRecipesPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/ListImageScanFindingAggregationsPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/ListImageScanFindingsPaginator.d.ts +3 -3
  77. package/dist-types/ts3.4/pagination/ListImagesPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/ListInfrastructureConfigurationsPaginator.d.ts +3 -3
  79. package/dist-types/ts3.4/pagination/ListLifecycleExecutionResourcesPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListLifecycleExecutionsPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListLifecyclePoliciesPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/ListWaitingWorkflowStepsPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/ListWorkflowBuildVersionsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListWorkflowExecutionsPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/ListWorkflowStepExecutionsPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  87. package/package.json +7 -6
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListComponentBuildVersionsCommand, } from "../commands/ListComponentBuildVersionsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListComponentBuildVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListComponentBuildVersions(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListComponentBuildVersions = createPaginator(ImagebuilderClient, ListComponentBuildVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListComponentsCommand, } from "../commands/ListComponentsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListComponentsCommand(input), ...args);
5
- };
6
- export async function* paginateListComponents(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListComponents = createPaginator(ImagebuilderClient, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListContainerRecipesCommand, } from "../commands/ListContainerRecipesCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListContainerRecipesCommand(input), ...args);
5
- };
6
- export async function* paginateListContainerRecipes(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListContainerRecipes = createPaginator(ImagebuilderClient, ListContainerRecipesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListDistributionConfigurationsCommand, } from "../commands/ListDistributionConfigurationsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDistributionConfigurationsCommand(input), ...args);
5
- };
6
- export async function* paginateListDistributionConfigurations(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListDistributionConfigurations = createPaginator(ImagebuilderClient, ListDistributionConfigurationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListImageBuildVersionsCommand, } from "../commands/ListImageBuildVersionsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImageBuildVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListImageBuildVersions(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListImageBuildVersions = createPaginator(ImagebuilderClient, ListImageBuildVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListImagePackagesCommand, } from "../commands/ListImagePackagesCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImagePackagesCommand(input), ...args);
5
- };
6
- export async function* paginateListImagePackages(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListImagePackages = createPaginator(ImagebuilderClient, ListImagePackagesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListImagePipelineImagesCommand, } from "../commands/ListImagePipelineImagesCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImagePipelineImagesCommand(input), ...args);
5
- };
6
- export async function* paginateListImagePipelineImages(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListImagePipelineImages = createPaginator(ImagebuilderClient, ListImagePipelineImagesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListImagePipelinesCommand, } from "../commands/ListImagePipelinesCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImagePipelinesCommand(input), ...args);
5
- };
6
- export async function* paginateListImagePipelines(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListImagePipelines = createPaginator(ImagebuilderClient, ListImagePipelinesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListImageRecipesCommand, } from "../commands/ListImageRecipesCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImageRecipesCommand(input), ...args);
5
- };
6
- export async function* paginateListImageRecipes(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListImageRecipes = createPaginator(ImagebuilderClient, ListImageRecipesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListImageScanFindingAggregationsCommand, } from "../commands/ListImageScanFindingAggregationsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImageScanFindingAggregationsCommand(input), ...args);
5
- };
6
- export async function* paginateListImageScanFindingAggregations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof ImagebuilderClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListImageScanFindingAggregations = createPaginator(ImagebuilderClient, ListImageScanFindingAggregationsCommand, "nextToken", "nextToken", "");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListImageScanFindingsCommand, } from "../commands/ListImageScanFindingsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImageScanFindingsCommand(input), ...args);
5
- };
6
- export async function* paginateListImageScanFindings(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListImageScanFindings = createPaginator(ImagebuilderClient, ListImageScanFindingsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListImagesCommand } from "../commands/ListImagesCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImagesCommand(input), ...args);
5
- };
6
- export async function* paginateListImages(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListImages = createPaginator(ImagebuilderClient, ListImagesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListInfrastructureConfigurationsCommand, } from "../commands/ListInfrastructureConfigurationsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListInfrastructureConfigurationsCommand(input), ...args);
5
- };
6
- export async function* paginateListInfrastructureConfigurations(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListInfrastructureConfigurations = createPaginator(ImagebuilderClient, ListInfrastructureConfigurationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListLifecycleExecutionResourcesCommand, } from "../commands/ListLifecycleExecutionResourcesCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListLifecycleExecutionResourcesCommand(input), ...args);
5
- };
6
- export async function* paginateListLifecycleExecutionResources(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListLifecycleExecutionResources = createPaginator(ImagebuilderClient, ListLifecycleExecutionResourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListLifecycleExecutionsCommand, } from "../commands/ListLifecycleExecutionsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListLifecycleExecutionsCommand(input), ...args);
5
- };
6
- export async function* paginateListLifecycleExecutions(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListLifecycleExecutions = createPaginator(ImagebuilderClient, ListLifecycleExecutionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListLifecyclePoliciesCommand, } from "../commands/ListLifecyclePoliciesCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListLifecyclePoliciesCommand(input), ...args);
5
- };
6
- export async function* paginateListLifecyclePolicies(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListLifecyclePolicies = createPaginator(ImagebuilderClient, ListLifecyclePoliciesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWaitingWorkflowStepsCommand, } from "../commands/ListWaitingWorkflowStepsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWaitingWorkflowStepsCommand(input), ...args);
5
- };
6
- export async function* paginateListWaitingWorkflowSteps(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListWaitingWorkflowSteps = createPaginator(ImagebuilderClient, ListWaitingWorkflowStepsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWorkflowBuildVersionsCommand, } from "../commands/ListWorkflowBuildVersionsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkflowBuildVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkflowBuildVersions(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListWorkflowBuildVersions = createPaginator(ImagebuilderClient, ListWorkflowBuildVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWorkflowExecutionsCommand, } from "../commands/ListWorkflowExecutionsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkflowExecutionsCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkflowExecutions(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListWorkflowExecutions = createPaginator(ImagebuilderClient, ListWorkflowExecutionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWorkflowStepExecutionsCommand, } from "../commands/ListWorkflowStepExecutionsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkflowStepExecutionsCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkflowStepExecutions(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListWorkflowStepExecutions = createPaginator(ImagebuilderClient, ListWorkflowStepExecutionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWorkflowsCommand, } from "../commands/ListWorkflowsCommand";
2
3
  import { ImagebuilderClient } from "../ImagebuilderClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkflowsCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkflows(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 ImagebuilderClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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 paginateListWorkflows = createPaginator(ImagebuilderClient, ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");