@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,27 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvalidParameterValueException = exports.InvalidParameterException = exports.Ownership = exports.InvalidPaginationTokenException = exports.ImageSource = exports.ImageType = exports.ResourceNotFoundException = exports.ResourceDependencyException = exports.PipelineStatus = exports.PipelineExecutionStartCondition = exports.DiskImageFormat = exports.ResourceAlreadyExistsException = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.EbsVolumeType = exports.ContainerType = exports.ContainerRepositoryService = exports.ComponentFormat = exports.ComponentType = exports.ComponentStatus = exports.Platform = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CallRateLimitExceededException = exports.BuildType = exports.ImageStatus = void 0;
3
+ exports.InvalidParameterValueException = exports.InvalidParameterException = exports.Ownership = exports.InvalidPaginationTokenException = exports.WorkflowStepExecutionStatus = exports.WorkflowStepExecutionRollbackStatus = exports.WorkflowType = exports.WorkflowExecutionStatus = exports.ImageScanStatus = exports.ImageSource = exports.ImageType = exports.ResourceNotFoundException = exports.ResourceDependencyException = exports.PipelineStatus = exports.PipelineExecutionStartCondition = exports.DiskImageFormat = exports.ResourceAlreadyExistsException = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.EbsVolumeType = exports.ContainerType = exports.ContainerRepositoryService = exports.ComponentFormat = exports.ComponentType = exports.ComponentStatus = exports.Platform = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CallRateLimitExceededException = exports.BuildType = exports.ImageStatus = void 0;
4
4
  const ImagebuilderServiceException_1 = require("./ImagebuilderServiceException");
5
- var ImageStatus;
6
- (function (ImageStatus) {
7
- ImageStatus["AVAILABLE"] = "AVAILABLE";
8
- ImageStatus["BUILDING"] = "BUILDING";
9
- ImageStatus["CANCELLED"] = "CANCELLED";
10
- ImageStatus["CREATING"] = "CREATING";
11
- ImageStatus["DELETED"] = "DELETED";
12
- ImageStatus["DEPRECATED"] = "DEPRECATED";
13
- ImageStatus["DISTRIBUTING"] = "DISTRIBUTING";
14
- ImageStatus["FAILED"] = "FAILED";
15
- ImageStatus["INTEGRATING"] = "INTEGRATING";
16
- ImageStatus["PENDING"] = "PENDING";
17
- ImageStatus["TESTING"] = "TESTING";
18
- })(ImageStatus = exports.ImageStatus || (exports.ImageStatus = {}));
19
- var BuildType;
20
- (function (BuildType) {
21
- BuildType["IMPORT"] = "IMPORT";
22
- BuildType["SCHEDULED"] = "SCHEDULED";
23
- BuildType["USER_INITIATED"] = "USER_INITIATED";
24
- })(BuildType = exports.BuildType || (exports.BuildType = {}));
5
+ exports.ImageStatus = {
6
+ AVAILABLE: "AVAILABLE",
7
+ BUILDING: "BUILDING",
8
+ CANCELLED: "CANCELLED",
9
+ CREATING: "CREATING",
10
+ DELETED: "DELETED",
11
+ DEPRECATED: "DEPRECATED",
12
+ DISTRIBUTING: "DISTRIBUTING",
13
+ FAILED: "FAILED",
14
+ INTEGRATING: "INTEGRATING",
15
+ PENDING: "PENDING",
16
+ TESTING: "TESTING",
17
+ };
18
+ exports.BuildType = {
19
+ IMPORT: "IMPORT",
20
+ SCHEDULED: "SCHEDULED",
21
+ USER_INITIATED: "USER_INITIATED",
22
+ };
25
23
  class CallRateLimitExceededException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
26
24
  constructor(opts) {
27
25
  super({
@@ -126,42 +124,35 @@ class ServiceUnavailableException extends ImagebuilderServiceException_1.Imagebu
126
124
  }
127
125
  }
128
126
  exports.ServiceUnavailableException = ServiceUnavailableException;
129
- var Platform;
130
- (function (Platform) {
131
- Platform["LINUX"] = "Linux";
132
- Platform["WINDOWS"] = "Windows";
133
- })(Platform = exports.Platform || (exports.Platform = {}));
134
- var ComponentStatus;
135
- (function (ComponentStatus) {
136
- ComponentStatus["DEPRECATED"] = "DEPRECATED";
137
- })(ComponentStatus = exports.ComponentStatus || (exports.ComponentStatus = {}));
138
- var ComponentType;
139
- (function (ComponentType) {
140
- ComponentType["BUILD"] = "BUILD";
141
- ComponentType["TEST"] = "TEST";
142
- })(ComponentType = exports.ComponentType || (exports.ComponentType = {}));
143
- var ComponentFormat;
144
- (function (ComponentFormat) {
145
- ComponentFormat["SHELL"] = "SHELL";
146
- })(ComponentFormat = exports.ComponentFormat || (exports.ComponentFormat = {}));
147
- var ContainerRepositoryService;
148
- (function (ContainerRepositoryService) {
149
- ContainerRepositoryService["ECR"] = "ECR";
150
- })(ContainerRepositoryService = exports.ContainerRepositoryService || (exports.ContainerRepositoryService = {}));
151
- var ContainerType;
152
- (function (ContainerType) {
153
- ContainerType["DOCKER"] = "DOCKER";
154
- })(ContainerType = exports.ContainerType || (exports.ContainerType = {}));
155
- var EbsVolumeType;
156
- (function (EbsVolumeType) {
157
- EbsVolumeType["GP2"] = "gp2";
158
- EbsVolumeType["GP3"] = "gp3";
159
- EbsVolumeType["IO1"] = "io1";
160
- EbsVolumeType["IO2"] = "io2";
161
- EbsVolumeType["SC1"] = "sc1";
162
- EbsVolumeType["ST1"] = "st1";
163
- EbsVolumeType["STANDARD"] = "standard";
164
- })(EbsVolumeType = exports.EbsVolumeType || (exports.EbsVolumeType = {}));
127
+ exports.Platform = {
128
+ LINUX: "Linux",
129
+ WINDOWS: "Windows",
130
+ };
131
+ exports.ComponentStatus = {
132
+ DEPRECATED: "DEPRECATED",
133
+ };
134
+ exports.ComponentType = {
135
+ BUILD: "BUILD",
136
+ TEST: "TEST",
137
+ };
138
+ exports.ComponentFormat = {
139
+ SHELL: "SHELL",
140
+ };
141
+ exports.ContainerRepositoryService = {
142
+ ECR: "ECR",
143
+ };
144
+ exports.ContainerType = {
145
+ DOCKER: "DOCKER",
146
+ };
147
+ exports.EbsVolumeType = {
148
+ GP2: "gp2",
149
+ GP3: "gp3",
150
+ IO1: "io1",
151
+ IO2: "io2",
152
+ SC1: "sc1",
153
+ ST1: "st1",
154
+ STANDARD: "standard",
155
+ };
165
156
  class InvalidParameterCombinationException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
166
157
  constructor(opts) {
167
158
  super({
@@ -214,22 +205,19 @@ class ResourceAlreadyExistsException extends ImagebuilderServiceException_1.Imag
214
205
  }
215
206
  }
216
207
  exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
217
- var DiskImageFormat;
218
- (function (DiskImageFormat) {
219
- DiskImageFormat["RAW"] = "RAW";
220
- DiskImageFormat["VHD"] = "VHD";
221
- DiskImageFormat["VMDK"] = "VMDK";
222
- })(DiskImageFormat = exports.DiskImageFormat || (exports.DiskImageFormat = {}));
223
- var PipelineExecutionStartCondition;
224
- (function (PipelineExecutionStartCondition) {
225
- PipelineExecutionStartCondition["EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE"] = "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE";
226
- PipelineExecutionStartCondition["EXPRESSION_MATCH_ONLY"] = "EXPRESSION_MATCH_ONLY";
227
- })(PipelineExecutionStartCondition = exports.PipelineExecutionStartCondition || (exports.PipelineExecutionStartCondition = {}));
228
- var PipelineStatus;
229
- (function (PipelineStatus) {
230
- PipelineStatus["DISABLED"] = "DISABLED";
231
- PipelineStatus["ENABLED"] = "ENABLED";
232
- })(PipelineStatus = exports.PipelineStatus || (exports.PipelineStatus = {}));
208
+ exports.DiskImageFormat = {
209
+ RAW: "RAW",
210
+ VHD: "VHD",
211
+ VMDK: "VMDK",
212
+ };
213
+ exports.PipelineExecutionStartCondition = {
214
+ EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE: "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE",
215
+ EXPRESSION_MATCH_ONLY: "EXPRESSION_MATCH_ONLY",
216
+ };
217
+ exports.PipelineStatus = {
218
+ DISABLED: "DISABLED",
219
+ ENABLED: "ENABLED",
220
+ };
233
221
  class ResourceDependencyException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
234
222
  constructor(opts) {
235
223
  super({
@@ -256,18 +244,52 @@ class ResourceNotFoundException extends ImagebuilderServiceException_1.Imagebuil
256
244
  }
257
245
  }
258
246
  exports.ResourceNotFoundException = ResourceNotFoundException;
259
- var ImageType;
260
- (function (ImageType) {
261
- ImageType["AMI"] = "AMI";
262
- ImageType["DOCKER"] = "DOCKER";
263
- })(ImageType = exports.ImageType || (exports.ImageType = {}));
264
- var ImageSource;
265
- (function (ImageSource) {
266
- ImageSource["AMAZON_MANAGED"] = "AMAZON_MANAGED";
267
- ImageSource["AWS_MARKETPLACE"] = "AWS_MARKETPLACE";
268
- ImageSource["CUSTOM"] = "CUSTOM";
269
- ImageSource["IMPORTED"] = "IMPORTED";
270
- })(ImageSource = exports.ImageSource || (exports.ImageSource = {}));
247
+ exports.ImageType = {
248
+ AMI: "AMI",
249
+ DOCKER: "DOCKER",
250
+ };
251
+ exports.ImageSource = {
252
+ AMAZON_MANAGED: "AMAZON_MANAGED",
253
+ AWS_MARKETPLACE: "AWS_MARKETPLACE",
254
+ CUSTOM: "CUSTOM",
255
+ IMPORTED: "IMPORTED",
256
+ };
257
+ exports.ImageScanStatus = {
258
+ ABANDONED: "ABANDONED",
259
+ COLLECTING: "COLLECTING",
260
+ COMPLETED: "COMPLETED",
261
+ FAILED: "FAILED",
262
+ PENDING: "PENDING",
263
+ SCANNING: "SCANNING",
264
+ TIMED_OUT: "TIMED_OUT",
265
+ };
266
+ exports.WorkflowExecutionStatus = {
267
+ COMPLETED: "COMPLETED",
268
+ FAILED: "FAILED",
269
+ PENDING: "PENDING",
270
+ ROLLBACK_COMPLETED: "ROLLBACK_COMPLETED",
271
+ ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
272
+ RUNNING: "RUNNING",
273
+ SKIPPED: "SKIPPED",
274
+ };
275
+ exports.WorkflowType = {
276
+ BUILD: "BUILD",
277
+ DISTRIBUTION: "DISTRIBUTION",
278
+ TEST: "TEST",
279
+ };
280
+ exports.WorkflowStepExecutionRollbackStatus = {
281
+ COMPLETED: "COMPLETED",
282
+ FAILED: "FAILED",
283
+ RUNNING: "RUNNING",
284
+ SKIPPED: "SKIPPED",
285
+ };
286
+ exports.WorkflowStepExecutionStatus = {
287
+ COMPLETED: "COMPLETED",
288
+ FAILED: "FAILED",
289
+ PENDING: "PENDING",
290
+ RUNNING: "RUNNING",
291
+ SKIPPED: "SKIPPED",
292
+ };
271
293
  class InvalidPaginationTokenException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
272
294
  constructor(opts) {
273
295
  super({
@@ -281,13 +303,12 @@ class InvalidPaginationTokenException extends ImagebuilderServiceException_1.Ima
281
303
  }
282
304
  }
283
305
  exports.InvalidPaginationTokenException = InvalidPaginationTokenException;
284
- var Ownership;
285
- (function (Ownership) {
286
- Ownership["AMAZON"] = "Amazon";
287
- Ownership["SELF"] = "Self";
288
- Ownership["SHARED"] = "Shared";
289
- Ownership["THIRDPARTY"] = "ThirdParty";
290
- })(Ownership = exports.Ownership || (exports.Ownership = {}));
306
+ exports.Ownership = {
307
+ AMAZON: "Amazon",
308
+ SELF: "Self",
309
+ SHARED: "Shared",
310
+ THIRDPARTY: "ThirdParty",
311
+ };
291
312
  class InvalidParameterException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
292
313
  constructor(opts) {
293
314
  super({
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListImageScanFindingAggregations = void 0;
4
+ const ListImageScanFindingAggregationsCommand_1 = require("../commands/ListImageScanFindingAggregationsCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListImageScanFindingAggregationsCommand_1.ListImageScanFindingAggregationsCommand(input), ...args);
8
+ };
9
+ async function* paginateListImageScanFindingAggregations(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ if (config.client instanceof ImagebuilderClient_1.ImagebuilderClient) {
16
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
+ }
18
+ else {
19
+ throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
20
+ }
21
+ yield page;
22
+ const prevToken = token;
23
+ token = page.nextToken;
24
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
+ }
26
+ return undefined;
27
+ }
28
+ exports.paginateListImageScanFindingAggregations = paginateListImageScanFindingAggregations;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListImageScanFindings = void 0;
4
+ const ListImageScanFindingsCommand_1 = require("../commands/ListImageScanFindingsCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListImageScanFindingsCommand_1.ListImageScanFindingsCommand(input), ...args);
8
+ };
9
+ async function* paginateListImageScanFindings(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 ImagebuilderClient_1.ImagebuilderClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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.paginateListImageScanFindings = paginateListImageScanFindings;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListWorkflowExecutions = void 0;
4
+ const ListWorkflowExecutionsCommand_1 = require("../commands/ListWorkflowExecutionsCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListWorkflowExecutionsCommand_1.ListWorkflowExecutionsCommand(input), ...args);
8
+ };
9
+ async function* paginateListWorkflowExecutions(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 ImagebuilderClient_1.ImagebuilderClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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.paginateListWorkflowExecutions = paginateListWorkflowExecutions;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListWorkflowStepExecutions = void 0;
4
+ const ListWorkflowStepExecutionsCommand_1 = require("../commands/ListWorkflowStepExecutionsCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListWorkflowStepExecutionsCommand_1.ListWorkflowStepExecutionsCommand(input), ...args);
8
+ };
9
+ async function* paginateListWorkflowStepExecutions(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 ImagebuilderClient_1.ImagebuilderClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
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.paginateListWorkflowStepExecutions = paginateListWorkflowStepExecutions;
@@ -11,5 +11,9 @@ tslib_1.__exportStar(require("./ListImagePackagesPaginator"), exports);
11
11
  tslib_1.__exportStar(require("./ListImagePipelineImagesPaginator"), exports);
12
12
  tslib_1.__exportStar(require("./ListImagePipelinesPaginator"), exports);
13
13
  tslib_1.__exportStar(require("./ListImageRecipesPaginator"), exports);
14
+ tslib_1.__exportStar(require("./ListImageScanFindingAggregationsPaginator"), exports);
15
+ tslib_1.__exportStar(require("./ListImageScanFindingsPaginator"), exports);
14
16
  tslib_1.__exportStar(require("./ListImagesPaginator"), exports);
15
17
  tslib_1.__exportStar(require("./ListInfrastructureConfigurationsPaginator"), exports);
18
+ tslib_1.__exportStar(require("./ListWorkflowExecutionsPaginator"), exports);
19
+ tslib_1.__exportStar(require("./ListWorkflowStepExecutionsPaginator"), exports);