@aws-sdk/client-imagebuilder 3.470.0 → 3.473.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 (74) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/Imagebuilder.js +14 -0
  3. package/dist-cjs/commands/CreateWorkflowCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteWorkflowCommand.js +51 -0
  5. package/dist-cjs/commands/GetWorkflowCommand.js +51 -0
  6. package/dist-cjs/commands/ListWaitingWorkflowStepsCommand.js +51 -0
  7. package/dist-cjs/commands/ListWorkflowBuildVersionsCommand.js +51 -0
  8. package/dist-cjs/commands/ListWorkflowsCommand.js +51 -0
  9. package/dist-cjs/commands/SendWorkflowStepActionCommand.js +51 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +19 -6
  12. package/dist-cjs/pagination/ListWaitingWorkflowStepsPaginator.js +29 -0
  13. package/dist-cjs/pagination/ListWorkflowBuildVersionsPaginator.js +29 -0
  14. package/dist-cjs/pagination/ListWorkflowsPaginator.js +29 -0
  15. package/dist-cjs/pagination/index.js +3 -0
  16. package/dist-cjs/protocols/Aws_restJson1.js +565 -3
  17. package/dist-es/Imagebuilder.js +14 -0
  18. package/dist-es/commands/CreateWorkflowCommand.js +47 -0
  19. package/dist-es/commands/DeleteWorkflowCommand.js +47 -0
  20. package/dist-es/commands/GetWorkflowCommand.js +47 -0
  21. package/dist-es/commands/ListWaitingWorkflowStepsCommand.js +47 -0
  22. package/dist-es/commands/ListWorkflowBuildVersionsCommand.js +47 -0
  23. package/dist-es/commands/ListWorkflowsCommand.js +47 -0
  24. package/dist-es/commands/SendWorkflowStepActionCommand.js +47 -0
  25. package/dist-es/commands/index.js +7 -0
  26. package/dist-es/models/models_0.js +18 -5
  27. package/dist-es/pagination/ListWaitingWorkflowStepsPaginator.js +25 -0
  28. package/dist-es/pagination/ListWorkflowBuildVersionsPaginator.js +25 -0
  29. package/dist-es/pagination/ListWorkflowsPaginator.js +25 -0
  30. package/dist-es/pagination/index.js +3 -0
  31. package/dist-es/protocols/Aws_restJson1.js +548 -0
  32. package/dist-types/Imagebuilder.d.ts +49 -0
  33. package/dist-types/ImagebuilderClient.d.ts +9 -2
  34. package/dist-types/commands/CreateImageCommand.d.ts +16 -0
  35. package/dist-types/commands/CreateImagePipelineCommand.d.ts +16 -0
  36. package/dist-types/commands/CreateWorkflowCommand.d.ts +126 -0
  37. package/dist-types/commands/DeleteWorkflowCommand.d.ts +98 -0
  38. package/dist-types/commands/GetImageCommand.d.ts +16 -0
  39. package/dist-types/commands/GetImagePipelineCommand.d.ts +16 -0
  40. package/dist-types/commands/GetWorkflowCommand.d.ts +122 -0
  41. package/dist-types/commands/GetWorkflowExecutionCommand.d.ts +2 -1
  42. package/dist-types/commands/GetWorkflowStepExecutionCommand.d.ts +1 -1
  43. package/dist-types/commands/ListImagePipelinesCommand.d.ts +16 -0
  44. package/dist-types/commands/ListWaitingWorkflowStepsCommand.d.ts +110 -0
  45. package/dist-types/commands/ListWorkflowBuildVersionsCommand.d.ts +118 -0
  46. package/dist-types/commands/ListWorkflowExecutionsCommand.d.ts +2 -1
  47. package/dist-types/commands/ListWorkflowStepExecutionsCommand.d.ts +2 -2
  48. package/dist-types/commands/ListWorkflowsCommand.d.ts +119 -0
  49. package/dist-types/commands/SendWorkflowStepActionCommand.d.ts +115 -0
  50. package/dist-types/commands/UpdateImagePipelineCommand.d.ts +18 -1
  51. package/dist-types/commands/index.d.ts +7 -0
  52. package/dist-types/models/models_0.d.ts +786 -61
  53. package/dist-types/pagination/ListWaitingWorkflowStepsPaginator.d.ts +7 -0
  54. package/dist-types/pagination/ListWorkflowBuildVersionsPaginator.d.ts +7 -0
  55. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +7 -0
  56. package/dist-types/pagination/index.d.ts +3 -0
  57. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  58. package/dist-types/ts3.4/Imagebuilder.d.ts +119 -0
  59. package/dist-types/ts3.4/ImagebuilderClient.d.ts +42 -0
  60. package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +38 -0
  61. package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +38 -0
  62. package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +35 -0
  63. package/dist-types/ts3.4/commands/ListWaitingWorkflowStepsCommand.d.ts +42 -0
  64. package/dist-types/ts3.4/commands/ListWorkflowBuildVersionsCommand.d.ts +42 -0
  65. package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/SendWorkflowStepActionCommand.d.ts +42 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +170 -6
  69. package/dist-types/ts3.4/pagination/ListWaitingWorkflowStepsPaginator.d.ts +11 -0
  70. package/dist-types/ts3.4/pagination/ListWorkflowBuildVersionsPaginator.d.ts +11 -0
  71. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  73. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  74. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceStatus = exports.InvalidParameterValueException = exports.InvalidParameterException = exports.LifecycleExecutionResourceStatus = exports.LifecycleExecutionResourceActionName = exports.Ownership = exports.InvalidPaginationTokenException = exports.WorkflowStepExecutionStatus = exports.WorkflowStepExecutionRollbackStatus = exports.WorkflowType = exports.WorkflowExecutionStatus = exports.LifecycleExecutionStatus = exports.ImageScanStatus = exports.ImageSource = exports.ImageType = exports.ResourceNotFoundException = exports.ResourceDependencyException = exports.LifecyclePolicyStatus = exports.LifecyclePolicyResourceType = exports.LifecyclePolicyDetailFilterType = exports.LifecyclePolicyTimeUnit = exports.LifecyclePolicyDetailActionType = 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.ResourceStatus = exports.WorkflowStepActionType = exports.InvalidParameterValueException = exports.InvalidParameterException = exports.LifecycleExecutionResourceStatus = exports.LifecycleExecutionResourceActionName = exports.Ownership = exports.InvalidPaginationTokenException = exports.WorkflowStepExecutionStatus = exports.WorkflowStepExecutionRollbackStatus = exports.WorkflowExecutionStatus = exports.WorkflowStatus = exports.LifecycleExecutionStatus = exports.ImageScanStatus = exports.ImageSource = exports.ImageType = exports.ResourceNotFoundException = exports.ResourceDependencyException = exports.WorkflowType = exports.LifecyclePolicyStatus = exports.LifecyclePolicyResourceType = exports.LifecyclePolicyDetailFilterType = exports.LifecyclePolicyTimeUnit = exports.LifecyclePolicyDetailActionType = exports.PipelineStatus = exports.PipelineExecutionStartCondition = exports.OnWorkflowFailure = 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
5
  exports.ImageStatus = {
6
6
  AVAILABLE: "AVAILABLE",
@@ -211,6 +211,10 @@ exports.DiskImageFormat = {
211
211
  VHD: "VHD",
212
212
  VMDK: "VMDK",
213
213
  };
214
+ exports.OnWorkflowFailure = {
215
+ ABORT: "ABORT",
216
+ CONTINUE: "CONTINUE",
217
+ };
214
218
  exports.PipelineExecutionStartCondition = {
215
219
  EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE: "EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE",
216
220
  EXPRESSION_MATCH_ONLY: "EXPRESSION_MATCH_ONLY",
@@ -242,6 +246,11 @@ exports.LifecyclePolicyStatus = {
242
246
  DISABLED: "DISABLED",
243
247
  ENABLED: "ENABLED",
244
248
  };
249
+ exports.WorkflowType = {
250
+ BUILD: "BUILD",
251
+ DISTRIBUTION: "DISTRIBUTION",
252
+ TEST: "TEST",
253
+ };
245
254
  class ResourceDependencyException extends ImagebuilderServiceException_1.ImagebuilderServiceException {
246
255
  constructor(opts) {
247
256
  super({
@@ -294,7 +303,11 @@ exports.LifecycleExecutionStatus = {
294
303
  IN_PROGRESS: "IN_PROGRESS",
295
304
  SUCCESS: "SUCCESS",
296
305
  };
306
+ exports.WorkflowStatus = {
307
+ DEPRECATED: "DEPRECATED",
308
+ };
297
309
  exports.WorkflowExecutionStatus = {
310
+ CANCELLED: "CANCELLED",
298
311
  COMPLETED: "COMPLETED",
299
312
  FAILED: "FAILED",
300
313
  PENDING: "PENDING",
@@ -303,11 +316,6 @@ exports.WorkflowExecutionStatus = {
303
316
  RUNNING: "RUNNING",
304
317
  SKIPPED: "SKIPPED",
305
318
  };
306
- exports.WorkflowType = {
307
- BUILD: "BUILD",
308
- DISTRIBUTION: "DISTRIBUTION",
309
- TEST: "TEST",
310
- };
311
319
  exports.WorkflowStepExecutionRollbackStatus = {
312
320
  COMPLETED: "COMPLETED",
313
321
  FAILED: "FAILED",
@@ -315,6 +323,7 @@ exports.WorkflowStepExecutionRollbackStatus = {
315
323
  SKIPPED: "SKIPPED",
316
324
  };
317
325
  exports.WorkflowStepExecutionStatus = {
326
+ CANCELLED: "CANCELLED",
318
327
  COMPLETED: "COMPLETED",
319
328
  FAILED: "FAILED",
320
329
  PENDING: "PENDING",
@@ -378,6 +387,10 @@ class InvalidParameterValueException extends ImagebuilderServiceException_1.Imag
378
387
  }
379
388
  }
380
389
  exports.InvalidParameterValueException = InvalidParameterValueException;
390
+ exports.WorkflowStepActionType = {
391
+ RESUME: "RESUME",
392
+ STOP: "STOP",
393
+ };
381
394
  exports.ResourceStatus = {
382
395
  AVAILABLE: "AVAILABLE",
383
396
  DELETED: "DELETED",
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListWaitingWorkflowSteps = void 0;
4
+ const ListWaitingWorkflowStepsCommand_1 = require("../commands/ListWaitingWorkflowStepsCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListWaitingWorkflowStepsCommand_1.ListWaitingWorkflowStepsCommand(input), ...args);
8
+ };
9
+ async function* paginateListWaitingWorkflowSteps(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.paginateListWaitingWorkflowSteps = paginateListWaitingWorkflowSteps;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListWorkflowBuildVersions = void 0;
4
+ const ListWorkflowBuildVersionsCommand_1 = require("../commands/ListWorkflowBuildVersionsCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListWorkflowBuildVersionsCommand_1.ListWorkflowBuildVersionsCommand(input), ...args);
8
+ };
9
+ async function* paginateListWorkflowBuildVersions(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.paginateListWorkflowBuildVersions = paginateListWorkflowBuildVersions;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListWorkflows = void 0;
4
+ const ListWorkflowsCommand_1 = require("../commands/ListWorkflowsCommand");
5
+ const ImagebuilderClient_1 = require("../ImagebuilderClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListWorkflowsCommand_1.ListWorkflowsCommand(input), ...args);
8
+ };
9
+ async function* paginateListWorkflows(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.paginateListWorkflows = paginateListWorkflows;
@@ -18,5 +18,8 @@ tslib_1.__exportStar(require("./ListInfrastructureConfigurationsPaginator"), exp
18
18
  tslib_1.__exportStar(require("./ListLifecycleExecutionResourcesPaginator"), exports);
19
19
  tslib_1.__exportStar(require("./ListLifecycleExecutionsPaginator"), exports);
20
20
  tslib_1.__exportStar(require("./ListLifecyclePoliciesPaginator"), exports);
21
+ tslib_1.__exportStar(require("./ListWaitingWorkflowStepsPaginator"), exports);
22
+ tslib_1.__exportStar(require("./ListWorkflowBuildVersionsPaginator"), exports);
21
23
  tslib_1.__exportStar(require("./ListWorkflowExecutionsPaginator"), exports);
22
24
  tslib_1.__exportStar(require("./ListWorkflowStepExecutionsPaginator"), exports);
25
+ tslib_1.__exportStar(require("./ListWorkflowsPaginator"), exports);