@aws-sdk/client-imagebuilder 3.300.0 → 3.303.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 (118) hide show
  1. package/README.md +51 -3
  2. package/dist-cjs/Imagebuilder.js +90 -0
  3. package/dist-cjs/commands/GetWorkflowExecutionCommand.js +45 -0
  4. package/dist-cjs/commands/GetWorkflowStepExecutionCommand.js +45 -0
  5. package/dist-cjs/commands/ListImageScanFindingAggregationsCommand.js +45 -0
  6. package/dist-cjs/commands/ListImageScanFindingsCommand.js +45 -0
  7. package/dist-cjs/commands/ListWorkflowExecutionsCommand.js +45 -0
  8. package/dist-cjs/commands/ListWorkflowStepExecutionsCommand.js +45 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoint/ruleset.js +3 -3
  11. package/dist-cjs/models/models_0.js +113 -92
  12. package/dist-cjs/pagination/ListImageScanFindingAggregationsPaginator.js +28 -0
  13. package/dist-cjs/pagination/ListImageScanFindingsPaginator.js +29 -0
  14. package/dist-cjs/pagination/ListWorkflowExecutionsPaginator.js +29 -0
  15. package/dist-cjs/pagination/ListWorkflowStepExecutionsPaginator.js +29 -0
  16. package/dist-cjs/pagination/index.js +4 -0
  17. package/dist-cjs/protocols/Aws_restJson1.js +945 -13
  18. package/dist-es/Imagebuilder.js +90 -0
  19. package/dist-es/commands/GetWorkflowExecutionCommand.js +41 -0
  20. package/dist-es/commands/GetWorkflowStepExecutionCommand.js +41 -0
  21. package/dist-es/commands/ListImageScanFindingAggregationsCommand.js +41 -0
  22. package/dist-es/commands/ListImageScanFindingsCommand.js +41 -0
  23. package/dist-es/commands/ListWorkflowExecutionsCommand.js +41 -0
  24. package/dist-es/commands/ListWorkflowStepExecutionsCommand.js +41 -0
  25. package/dist-es/commands/index.js +6 -0
  26. package/dist-es/endpoint/ruleset.js +3 -3
  27. package/dist-es/models/models_0.js +112 -91
  28. package/dist-es/pagination/ListImageScanFindingAggregationsPaginator.js +24 -0
  29. package/dist-es/pagination/ListImageScanFindingsPaginator.js +25 -0
  30. package/dist-es/pagination/ListWorkflowExecutionsPaginator.js +25 -0
  31. package/dist-es/pagination/ListWorkflowStepExecutionsPaginator.js +25 -0
  32. package/dist-es/pagination/index.js +4 -0
  33. package/dist-es/protocols/Aws_restJson1.js +931 -12
  34. package/dist-types/Imagebuilder.d.ts +165 -75
  35. package/dist-types/ImagebuilderClient.d.ts +11 -5
  36. package/dist-types/commands/CancelImageCreationCommand.d.ts +9 -8
  37. package/dist-types/commands/CreateComponentCommand.d.ts +19 -16
  38. package/dist-types/commands/CreateContainerRecipeCommand.d.ts +25 -21
  39. package/dist-types/commands/CreateDistributionConfigurationCommand.d.ts +35 -32
  40. package/dist-types/commands/CreateImageCommand.d.ts +26 -13
  41. package/dist-types/commands/CreateImagePipelineCommand.d.ts +25 -13
  42. package/dist-types/commands/CreateImageRecipeCommand.d.ts +25 -22
  43. package/dist-types/commands/CreateInfrastructureConfigurationCommand.d.ts +21 -18
  44. package/dist-types/commands/DeleteComponentCommand.d.ts +10 -9
  45. package/dist-types/commands/DeleteContainerRecipeCommand.d.ts +9 -8
  46. package/dist-types/commands/DeleteDistributionConfigurationCommand.d.ts +10 -9
  47. package/dist-types/commands/DeleteImageCommand.d.ts +17 -15
  48. package/dist-types/commands/DeleteImagePipelineCommand.d.ts +10 -9
  49. package/dist-types/commands/DeleteImageRecipeCommand.d.ts +10 -9
  50. package/dist-types/commands/DeleteInfrastructureConfigurationCommand.d.ts +10 -9
  51. package/dist-types/commands/GetComponentCommand.d.ts +8 -7
  52. package/dist-types/commands/GetComponentPolicyCommand.d.ts +5 -4
  53. package/dist-types/commands/GetContainerRecipeCommand.d.ts +7 -6
  54. package/dist-types/commands/GetContainerRecipePolicyCommand.d.ts +4 -3
  55. package/dist-types/commands/GetDistributionConfigurationCommand.d.ts +8 -7
  56. package/dist-types/commands/GetImageCommand.d.ts +8 -7
  57. package/dist-types/commands/GetImagePipelineCommand.d.ts +8 -7
  58. package/dist-types/commands/GetImagePolicyCommand.d.ts +5 -4
  59. package/dist-types/commands/GetImageRecipeCommand.d.ts +8 -7
  60. package/dist-types/commands/GetImageRecipePolicyCommand.d.ts +5 -4
  61. package/dist-types/commands/GetInfrastructureConfigurationCommand.d.ts +8 -7
  62. package/dist-types/commands/GetWorkflowExecutionCommand.d.ts +85 -0
  63. package/dist-types/commands/GetWorkflowStepExecutionCommand.d.ts +85 -0
  64. package/dist-types/commands/ImportComponentCommand.d.ts +12 -11
  65. package/dist-types/commands/ImportVmImageCommand.d.ts +14 -14
  66. package/dist-types/commands/ListComponentBuildVersionsCommand.d.ts +9 -7
  67. package/dist-types/commands/ListComponentsCommand.d.ts +13 -12
  68. package/dist-types/commands/ListContainerRecipesCommand.d.ts +10 -9
  69. package/dist-types/commands/ListDistributionConfigurationsCommand.d.ts +10 -9
  70. package/dist-types/commands/ListImageBuildVersionsCommand.d.ts +11 -10
  71. package/dist-types/commands/ListImagePackagesCommand.d.ts +9 -7
  72. package/dist-types/commands/ListImagePipelineImagesCommand.d.ts +10 -9
  73. package/dist-types/commands/ListImagePipelinesCommand.d.ts +10 -9
  74. package/dist-types/commands/ListImageRecipesCommand.d.ts +11 -10
  75. package/dist-types/commands/ListImageScanFindingAggregationsCommand.d.ts +120 -0
  76. package/dist-types/commands/ListImageScanFindingsCommand.d.ts +96 -0
  77. package/dist-types/commands/ListImagesCommand.d.ts +12 -11
  78. package/dist-types/commands/ListInfrastructureConfigurationsCommand.d.ts +11 -10
  79. package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -3
  80. package/dist-types/commands/ListWorkflowExecutionsCommand.d.ts +90 -0
  81. package/dist-types/commands/ListWorkflowStepExecutionsCommand.d.ts +90 -0
  82. package/dist-types/commands/PutComponentPolicyCommand.d.ts +10 -9
  83. package/dist-types/commands/PutContainerRecipePolicyCommand.d.ts +15 -7
  84. package/dist-types/commands/PutImagePolicyCommand.d.ts +9 -8
  85. package/dist-types/commands/PutImageRecipePolicyCommand.d.ts +10 -9
  86. package/dist-types/commands/StartImagePipelineExecutionCommand.d.ts +10 -9
  87. package/dist-types/commands/TagResourceCommand.d.ts +5 -4
  88. package/dist-types/commands/UntagResourceCommand.d.ts +5 -4
  89. package/dist-types/commands/UpdateDistributionConfigurationCommand.d.ts +31 -30
  90. package/dist-types/commands/UpdateImagePipelineCommand.d.ts +24 -14
  91. package/dist-types/commands/UpdateInfrastructureConfigurationCommand.d.ts +17 -16
  92. package/dist-types/commands/index.d.ts +6 -0
  93. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  94. package/dist-types/models/models_0.d.ts +1712 -524
  95. package/dist-types/pagination/ListImageScanFindingAggregationsPaginator.d.ts +7 -0
  96. package/dist-types/pagination/ListImageScanFindingsPaginator.d.ts +7 -0
  97. package/dist-types/pagination/ListWorkflowExecutionsPaginator.d.ts +7 -0
  98. package/dist-types/pagination/ListWorkflowStepExecutionsPaginator.d.ts +7 -0
  99. package/dist-types/pagination/index.d.ts +4 -0
  100. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  101. package/dist-types/ts3.4/Imagebuilder.d.ts +102 -0
  102. package/dist-types/ts3.4/ImagebuilderClient.d.ts +36 -0
  103. package/dist-types/ts3.4/commands/GetWorkflowExecutionCommand.d.ts +41 -0
  104. package/dist-types/ts3.4/commands/GetWorkflowStepExecutionCommand.d.ts +41 -0
  105. package/dist-types/ts3.4/commands/ListImageScanFindingAggregationsCommand.d.ts +41 -0
  106. package/dist-types/ts3.4/commands/ListImageScanFindingsCommand.d.ts +41 -0
  107. package/dist-types/ts3.4/commands/ListWorkflowExecutionsCommand.d.ts +41 -0
  108. package/dist-types/ts3.4/commands/ListWorkflowStepExecutionsCommand.d.ts +41 -0
  109. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  110. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  111. package/dist-types/ts3.4/models/models_0.d.ts +372 -76
  112. package/dist-types/ts3.4/pagination/ListImageScanFindingAggregationsPaginator.d.ts +11 -0
  113. package/dist-types/ts3.4/pagination/ListImageScanFindingsPaginator.d.ts +11 -0
  114. package/dist-types/ts3.4/pagination/ListWorkflowExecutionsPaginator.d.ts +11 -0
  115. package/dist-types/ts3.4/pagination/ListWorkflowStepExecutionsPaginator.d.ts +11 -0
  116. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  117. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  118. package/package.json +34 -34
@@ -1,24 +1,22 @@
1
1
  import { ImagebuilderServiceException as __BaseException } from "./ImagebuilderServiceException";
2
- export var ImageStatus;
3
- (function (ImageStatus) {
4
- ImageStatus["AVAILABLE"] = "AVAILABLE";
5
- ImageStatus["BUILDING"] = "BUILDING";
6
- ImageStatus["CANCELLED"] = "CANCELLED";
7
- ImageStatus["CREATING"] = "CREATING";
8
- ImageStatus["DELETED"] = "DELETED";
9
- ImageStatus["DEPRECATED"] = "DEPRECATED";
10
- ImageStatus["DISTRIBUTING"] = "DISTRIBUTING";
11
- ImageStatus["FAILED"] = "FAILED";
12
- ImageStatus["INTEGRATING"] = "INTEGRATING";
13
- ImageStatus["PENDING"] = "PENDING";
14
- ImageStatus["TESTING"] = "TESTING";
15
- })(ImageStatus || (ImageStatus = {}));
16
- export var BuildType;
17
- (function (BuildType) {
18
- BuildType["IMPORT"] = "IMPORT";
19
- BuildType["SCHEDULED"] = "SCHEDULED";
20
- BuildType["USER_INITIATED"] = "USER_INITIATED";
21
- })(BuildType || (BuildType = {}));
2
+ export const ImageStatus = {
3
+ AVAILABLE: "AVAILABLE",
4
+ BUILDING: "BUILDING",
5
+ CANCELLED: "CANCELLED",
6
+ CREATING: "CREATING",
7
+ DELETED: "DELETED",
8
+ DEPRECATED: "DEPRECATED",
9
+ DISTRIBUTING: "DISTRIBUTING",
10
+ FAILED: "FAILED",
11
+ INTEGRATING: "INTEGRATING",
12
+ PENDING: "PENDING",
13
+ TESTING: "TESTING",
14
+ };
15
+ export const BuildType = {
16
+ IMPORT: "IMPORT",
17
+ SCHEDULED: "SCHEDULED",
18
+ USER_INITIATED: "USER_INITIATED",
19
+ };
22
20
  export class CallRateLimitExceededException extends __BaseException {
23
21
  constructor(opts) {
24
22
  super({
@@ -115,42 +113,35 @@ export class ServiceUnavailableException extends __BaseException {
115
113
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
116
114
  }
117
115
  }
118
- export var Platform;
119
- (function (Platform) {
120
- Platform["LINUX"] = "Linux";
121
- Platform["WINDOWS"] = "Windows";
122
- })(Platform || (Platform = {}));
123
- export var ComponentStatus;
124
- (function (ComponentStatus) {
125
- ComponentStatus["DEPRECATED"] = "DEPRECATED";
126
- })(ComponentStatus || (ComponentStatus = {}));
127
- export var ComponentType;
128
- (function (ComponentType) {
129
- ComponentType["BUILD"] = "BUILD";
130
- ComponentType["TEST"] = "TEST";
131
- })(ComponentType || (ComponentType = {}));
132
- export var ComponentFormat;
133
- (function (ComponentFormat) {
134
- ComponentFormat["SHELL"] = "SHELL";
135
- })(ComponentFormat || (ComponentFormat = {}));
136
- export var ContainerRepositoryService;
137
- (function (ContainerRepositoryService) {
138
- ContainerRepositoryService["ECR"] = "ECR";
139
- })(ContainerRepositoryService || (ContainerRepositoryService = {}));
140
- export var ContainerType;
141
- (function (ContainerType) {
142
- ContainerType["DOCKER"] = "DOCKER";
143
- })(ContainerType || (ContainerType = {}));
144
- export var EbsVolumeType;
145
- (function (EbsVolumeType) {
146
- EbsVolumeType["GP2"] = "gp2";
147
- EbsVolumeType["GP3"] = "gp3";
148
- EbsVolumeType["IO1"] = "io1";
149
- EbsVolumeType["IO2"] = "io2";
150
- EbsVolumeType["SC1"] = "sc1";
151
- EbsVolumeType["ST1"] = "st1";
152
- EbsVolumeType["STANDARD"] = "standard";
153
- })(EbsVolumeType || (EbsVolumeType = {}));
116
+ export const Platform = {
117
+ LINUX: "Linux",
118
+ WINDOWS: "Windows",
119
+ };
120
+ export const ComponentStatus = {
121
+ DEPRECATED: "DEPRECATED",
122
+ };
123
+ export const ComponentType = {
124
+ BUILD: "BUILD",
125
+ TEST: "TEST",
126
+ };
127
+ export const ComponentFormat = {
128
+ SHELL: "SHELL",
129
+ };
130
+ export const ContainerRepositoryService = {
131
+ ECR: "ECR",
132
+ };
133
+ export const ContainerType = {
134
+ DOCKER: "DOCKER",
135
+ };
136
+ export const EbsVolumeType = {
137
+ GP2: "gp2",
138
+ GP3: "gp3",
139
+ IO1: "io1",
140
+ IO2: "io2",
141
+ SC1: "sc1",
142
+ ST1: "st1",
143
+ STANDARD: "standard",
144
+ };
154
145
  export class InvalidParameterCombinationException extends __BaseException {
155
146
  constructor(opts) {
156
147
  super({
@@ -199,22 +190,19 @@ export class ResourceAlreadyExistsException extends __BaseException {
199
190
  Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
200
191
  }
201
192
  }
202
- export var DiskImageFormat;
203
- (function (DiskImageFormat) {
204
- DiskImageFormat["RAW"] = "RAW";
205
- DiskImageFormat["VHD"] = "VHD";
206
- DiskImageFormat["VMDK"] = "VMDK";
207
- })(DiskImageFormat || (DiskImageFormat = {}));
208
- export var PipelineExecutionStartCondition;
209
- (function (PipelineExecutionStartCondition) {
210
- PipelineExecutionStartCondition["EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE"] = "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE";
211
- PipelineExecutionStartCondition["EXPRESSION_MATCH_ONLY"] = "EXPRESSION_MATCH_ONLY";
212
- })(PipelineExecutionStartCondition || (PipelineExecutionStartCondition = {}));
213
- export var PipelineStatus;
214
- (function (PipelineStatus) {
215
- PipelineStatus["DISABLED"] = "DISABLED";
216
- PipelineStatus["ENABLED"] = "ENABLED";
217
- })(PipelineStatus || (PipelineStatus = {}));
193
+ export const DiskImageFormat = {
194
+ RAW: "RAW",
195
+ VHD: "VHD",
196
+ VMDK: "VMDK",
197
+ };
198
+ export const PipelineExecutionStartCondition = {
199
+ EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE: "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE",
200
+ EXPRESSION_MATCH_ONLY: "EXPRESSION_MATCH_ONLY",
201
+ };
202
+ export const PipelineStatus = {
203
+ DISABLED: "DISABLED",
204
+ ENABLED: "ENABLED",
205
+ };
218
206
  export class ResourceDependencyException extends __BaseException {
219
207
  constructor(opts) {
220
208
  super({
@@ -239,18 +227,52 @@ export class ResourceNotFoundException extends __BaseException {
239
227
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
240
228
  }
241
229
  }
242
- export var ImageType;
243
- (function (ImageType) {
244
- ImageType["AMI"] = "AMI";
245
- ImageType["DOCKER"] = "DOCKER";
246
- })(ImageType || (ImageType = {}));
247
- export var ImageSource;
248
- (function (ImageSource) {
249
- ImageSource["AMAZON_MANAGED"] = "AMAZON_MANAGED";
250
- ImageSource["AWS_MARKETPLACE"] = "AWS_MARKETPLACE";
251
- ImageSource["CUSTOM"] = "CUSTOM";
252
- ImageSource["IMPORTED"] = "IMPORTED";
253
- })(ImageSource || (ImageSource = {}));
230
+ export const ImageType = {
231
+ AMI: "AMI",
232
+ DOCKER: "DOCKER",
233
+ };
234
+ export const ImageSource = {
235
+ AMAZON_MANAGED: "AMAZON_MANAGED",
236
+ AWS_MARKETPLACE: "AWS_MARKETPLACE",
237
+ CUSTOM: "CUSTOM",
238
+ IMPORTED: "IMPORTED",
239
+ };
240
+ export const ImageScanStatus = {
241
+ ABANDONED: "ABANDONED",
242
+ COLLECTING: "COLLECTING",
243
+ COMPLETED: "COMPLETED",
244
+ FAILED: "FAILED",
245
+ PENDING: "PENDING",
246
+ SCANNING: "SCANNING",
247
+ TIMED_OUT: "TIMED_OUT",
248
+ };
249
+ export const WorkflowExecutionStatus = {
250
+ COMPLETED: "COMPLETED",
251
+ FAILED: "FAILED",
252
+ PENDING: "PENDING",
253
+ ROLLBACK_COMPLETED: "ROLLBACK_COMPLETED",
254
+ ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
255
+ RUNNING: "RUNNING",
256
+ SKIPPED: "SKIPPED",
257
+ };
258
+ export const WorkflowType = {
259
+ BUILD: "BUILD",
260
+ DISTRIBUTION: "DISTRIBUTION",
261
+ TEST: "TEST",
262
+ };
263
+ export const WorkflowStepExecutionRollbackStatus = {
264
+ COMPLETED: "COMPLETED",
265
+ FAILED: "FAILED",
266
+ RUNNING: "RUNNING",
267
+ SKIPPED: "SKIPPED",
268
+ };
269
+ export const WorkflowStepExecutionStatus = {
270
+ COMPLETED: "COMPLETED",
271
+ FAILED: "FAILED",
272
+ PENDING: "PENDING",
273
+ RUNNING: "RUNNING",
274
+ SKIPPED: "SKIPPED",
275
+ };
254
276
  export class InvalidPaginationTokenException extends __BaseException {
255
277
  constructor(opts) {
256
278
  super({
@@ -263,13 +285,12 @@ export class InvalidPaginationTokenException extends __BaseException {
263
285
  Object.setPrototypeOf(this, InvalidPaginationTokenException.prototype);
264
286
  }
265
287
  }
266
- export var Ownership;
267
- (function (Ownership) {
268
- Ownership["AMAZON"] = "Amazon";
269
- Ownership["SELF"] = "Self";
270
- Ownership["SHARED"] = "Shared";
271
- Ownership["THIRDPARTY"] = "ThirdParty";
272
- })(Ownership || (Ownership = {}));
288
+ export const Ownership = {
289
+ AMAZON: "Amazon",
290
+ SELF: "Self",
291
+ SHARED: "Shared",
292
+ THIRDPARTY: "ThirdParty",
293
+ };
273
294
  export class InvalidParameterException extends __BaseException {
274
295
  constructor(opts) {
275
296
  super({
@@ -0,0 +1,24 @@
1
+ import { ListImageScanFindingAggregationsCommand, } from "../commands/ListImageScanFindingAggregationsCommand";
2
+ 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
+ }
@@ -0,0 +1,25 @@
1
+ import { ListImageScanFindingsCommand, } from "../commands/ListImageScanFindingsCommand";
2
+ 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
+ }
@@ -0,0 +1,25 @@
1
+ import { ListWorkflowExecutionsCommand, } from "../commands/ListWorkflowExecutionsCommand";
2
+ 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
+ }
@@ -0,0 +1,25 @@
1
+ import { ListWorkflowStepExecutionsCommand, } from "../commands/ListWorkflowStepExecutionsCommand";
2
+ 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
+ }
@@ -8,5 +8,9 @@ export * from "./ListImagePackagesPaginator";
8
8
  export * from "./ListImagePipelineImagesPaginator";
9
9
  export * from "./ListImagePipelinesPaginator";
10
10
  export * from "./ListImageRecipesPaginator";
11
+ export * from "./ListImageScanFindingAggregationsPaginator";
12
+ export * from "./ListImageScanFindingsPaginator";
11
13
  export * from "./ListImagesPaginator";
12
14
  export * from "./ListInfrastructureConfigurationsPaginator";
15
+ export * from "./ListWorkflowExecutionsPaginator";
16
+ export * from "./ListWorkflowStepExecutionsPaginator";