@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,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_ListLifecycleExecutionsCommand = exports.se_ListLifecycleExecutionResourcesCommand = exports.se_ListInfrastructureConfigurationsCommand = exports.se_ListImageScanFindingsCommand = exports.se_ListImageScanFindingAggregationsCommand = exports.se_ListImagesCommand = exports.se_ListImageRecipesCommand = exports.se_ListImagePipelinesCommand = exports.se_ListImagePipelineImagesCommand = exports.se_ListImagePackagesCommand = exports.se_ListImageBuildVersionsCommand = exports.se_ListDistributionConfigurationsCommand = exports.se_ListContainerRecipesCommand = exports.se_ListComponentsCommand = exports.se_ListComponentBuildVersionsCommand = exports.se_ImportVmImageCommand = exports.se_ImportComponentCommand = exports.se_GetWorkflowStepExecutionCommand = exports.se_GetWorkflowExecutionCommand = exports.se_GetLifecyclePolicyCommand = exports.se_GetLifecycleExecutionCommand = exports.se_GetInfrastructureConfigurationCommand = exports.se_GetImageRecipePolicyCommand = exports.se_GetImageRecipeCommand = exports.se_GetImagePolicyCommand = exports.se_GetImagePipelineCommand = exports.se_GetImageCommand = exports.se_GetDistributionConfigurationCommand = exports.se_GetContainerRecipePolicyCommand = exports.se_GetContainerRecipeCommand = exports.se_GetComponentPolicyCommand = exports.se_GetComponentCommand = exports.se_DeleteLifecyclePolicyCommand = exports.se_DeleteInfrastructureConfigurationCommand = exports.se_DeleteImageRecipeCommand = exports.se_DeleteImagePipelineCommand = exports.se_DeleteImageCommand = exports.se_DeleteDistributionConfigurationCommand = exports.se_DeleteContainerRecipeCommand = exports.se_DeleteComponentCommand = exports.se_CreateLifecyclePolicyCommand = exports.se_CreateInfrastructureConfigurationCommand = exports.se_CreateImageRecipeCommand = exports.se_CreateImagePipelineCommand = exports.se_CreateImageCommand = exports.se_CreateDistributionConfigurationCommand = exports.se_CreateContainerRecipeCommand = exports.se_CreateComponentCommand = exports.se_CancelLifecycleExecutionCommand = exports.se_CancelImageCreationCommand = void 0;
4
- exports.de_ImportComponentCommand = exports.de_GetWorkflowStepExecutionCommand = exports.de_GetWorkflowExecutionCommand = exports.de_GetLifecyclePolicyCommand = exports.de_GetLifecycleExecutionCommand = exports.de_GetInfrastructureConfigurationCommand = exports.de_GetImageRecipePolicyCommand = exports.de_GetImageRecipeCommand = exports.de_GetImagePolicyCommand = exports.de_GetImagePipelineCommand = exports.de_GetImageCommand = exports.de_GetDistributionConfigurationCommand = exports.de_GetContainerRecipePolicyCommand = exports.de_GetContainerRecipeCommand = exports.de_GetComponentPolicyCommand = exports.de_GetComponentCommand = exports.de_DeleteLifecyclePolicyCommand = exports.de_DeleteInfrastructureConfigurationCommand = exports.de_DeleteImageRecipeCommand = exports.de_DeleteImagePipelineCommand = exports.de_DeleteImageCommand = exports.de_DeleteDistributionConfigurationCommand = exports.de_DeleteContainerRecipeCommand = exports.de_DeleteComponentCommand = exports.de_CreateLifecyclePolicyCommand = exports.de_CreateInfrastructureConfigurationCommand = exports.de_CreateImageRecipeCommand = exports.de_CreateImagePipelineCommand = exports.de_CreateImageCommand = exports.de_CreateDistributionConfigurationCommand = exports.de_CreateContainerRecipeCommand = exports.de_CreateComponentCommand = exports.de_CancelLifecycleExecutionCommand = exports.de_CancelImageCreationCommand = exports.se_UpdateLifecyclePolicyCommand = exports.se_UpdateInfrastructureConfigurationCommand = exports.se_UpdateImagePipelineCommand = exports.se_UpdateDistributionConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartResourceStateUpdateCommand = exports.se_StartImagePipelineExecutionCommand = exports.se_PutImageRecipePolicyCommand = exports.se_PutImagePolicyCommand = exports.se_PutContainerRecipePolicyCommand = exports.se_PutComponentPolicyCommand = exports.se_ListWorkflowStepExecutionsCommand = exports.se_ListWorkflowExecutionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLifecyclePoliciesCommand = void 0;
5
- exports.de_UpdateLifecyclePolicyCommand = exports.de_UpdateInfrastructureConfigurationCommand = exports.de_UpdateImagePipelineCommand = exports.de_UpdateDistributionConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartResourceStateUpdateCommand = exports.de_StartImagePipelineExecutionCommand = exports.de_PutImageRecipePolicyCommand = exports.de_PutImagePolicyCommand = exports.de_PutContainerRecipePolicyCommand = exports.de_PutComponentPolicyCommand = exports.de_ListWorkflowStepExecutionsCommand = exports.de_ListWorkflowExecutionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLifecyclePoliciesCommand = exports.de_ListLifecycleExecutionsCommand = exports.de_ListLifecycleExecutionResourcesCommand = exports.de_ListInfrastructureConfigurationsCommand = exports.de_ListImageScanFindingsCommand = exports.de_ListImageScanFindingAggregationsCommand = exports.de_ListImagesCommand = exports.de_ListImageRecipesCommand = exports.de_ListImagePipelinesCommand = exports.de_ListImagePipelineImagesCommand = exports.de_ListImagePackagesCommand = exports.de_ListImageBuildVersionsCommand = exports.de_ListDistributionConfigurationsCommand = exports.de_ListContainerRecipesCommand = exports.de_ListComponentsCommand = exports.de_ListComponentBuildVersionsCommand = exports.de_ImportVmImageCommand = void 0;
3
+ exports.se_ListImageScanFindingsCommand = exports.se_ListImageScanFindingAggregationsCommand = exports.se_ListImagesCommand = exports.se_ListImageRecipesCommand = exports.se_ListImagePipelinesCommand = exports.se_ListImagePipelineImagesCommand = exports.se_ListImagePackagesCommand = exports.se_ListImageBuildVersionsCommand = exports.se_ListDistributionConfigurationsCommand = exports.se_ListContainerRecipesCommand = exports.se_ListComponentsCommand = exports.se_ListComponentBuildVersionsCommand = exports.se_ImportVmImageCommand = exports.se_ImportComponentCommand = exports.se_GetWorkflowStepExecutionCommand = exports.se_GetWorkflowExecutionCommand = exports.se_GetWorkflowCommand = exports.se_GetLifecyclePolicyCommand = exports.se_GetLifecycleExecutionCommand = exports.se_GetInfrastructureConfigurationCommand = exports.se_GetImageRecipePolicyCommand = exports.se_GetImageRecipeCommand = exports.se_GetImagePolicyCommand = exports.se_GetImagePipelineCommand = exports.se_GetImageCommand = exports.se_GetDistributionConfigurationCommand = exports.se_GetContainerRecipePolicyCommand = exports.se_GetContainerRecipeCommand = exports.se_GetComponentPolicyCommand = exports.se_GetComponentCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteLifecyclePolicyCommand = exports.se_DeleteInfrastructureConfigurationCommand = exports.se_DeleteImageRecipeCommand = exports.se_DeleteImagePipelineCommand = exports.se_DeleteImageCommand = exports.se_DeleteDistributionConfigurationCommand = exports.se_DeleteContainerRecipeCommand = exports.se_DeleteComponentCommand = exports.se_CreateWorkflowCommand = exports.se_CreateLifecyclePolicyCommand = exports.se_CreateInfrastructureConfigurationCommand = exports.se_CreateImageRecipeCommand = exports.se_CreateImagePipelineCommand = exports.se_CreateImageCommand = exports.se_CreateDistributionConfigurationCommand = exports.se_CreateContainerRecipeCommand = exports.se_CreateComponentCommand = exports.se_CancelLifecycleExecutionCommand = exports.se_CancelImageCreationCommand = void 0;
4
+ exports.de_GetImagePipelineCommand = exports.de_GetImageCommand = exports.de_GetDistributionConfigurationCommand = exports.de_GetContainerRecipePolicyCommand = exports.de_GetContainerRecipeCommand = exports.de_GetComponentPolicyCommand = exports.de_GetComponentCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteLifecyclePolicyCommand = exports.de_DeleteInfrastructureConfigurationCommand = exports.de_DeleteImageRecipeCommand = exports.de_DeleteImagePipelineCommand = exports.de_DeleteImageCommand = exports.de_DeleteDistributionConfigurationCommand = exports.de_DeleteContainerRecipeCommand = exports.de_DeleteComponentCommand = exports.de_CreateWorkflowCommand = exports.de_CreateLifecyclePolicyCommand = exports.de_CreateInfrastructureConfigurationCommand = exports.de_CreateImageRecipeCommand = exports.de_CreateImagePipelineCommand = exports.de_CreateImageCommand = exports.de_CreateDistributionConfigurationCommand = exports.de_CreateContainerRecipeCommand = exports.de_CreateComponentCommand = exports.de_CancelLifecycleExecutionCommand = exports.de_CancelImageCreationCommand = exports.se_UpdateLifecyclePolicyCommand = exports.se_UpdateInfrastructureConfigurationCommand = exports.se_UpdateImagePipelineCommand = exports.se_UpdateDistributionConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartResourceStateUpdateCommand = exports.se_StartImagePipelineExecutionCommand = exports.se_SendWorkflowStepActionCommand = exports.se_PutImageRecipePolicyCommand = exports.se_PutImagePolicyCommand = exports.se_PutContainerRecipePolicyCommand = exports.se_PutComponentPolicyCommand = exports.se_ListWorkflowStepExecutionsCommand = exports.se_ListWorkflowsCommand = exports.se_ListWorkflowExecutionsCommand = exports.se_ListWorkflowBuildVersionsCommand = exports.se_ListWaitingWorkflowStepsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLifecyclePoliciesCommand = exports.se_ListLifecycleExecutionsCommand = exports.se_ListLifecycleExecutionResourcesCommand = exports.se_ListInfrastructureConfigurationsCommand = void 0;
5
+ exports.de_UpdateLifecyclePolicyCommand = exports.de_UpdateInfrastructureConfigurationCommand = exports.de_UpdateImagePipelineCommand = exports.de_UpdateDistributionConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartResourceStateUpdateCommand = exports.de_StartImagePipelineExecutionCommand = exports.de_SendWorkflowStepActionCommand = exports.de_PutImageRecipePolicyCommand = exports.de_PutImagePolicyCommand = exports.de_PutContainerRecipePolicyCommand = exports.de_PutComponentPolicyCommand = exports.de_ListWorkflowStepExecutionsCommand = exports.de_ListWorkflowsCommand = exports.de_ListWorkflowExecutionsCommand = exports.de_ListWorkflowBuildVersionsCommand = exports.de_ListWaitingWorkflowStepsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLifecyclePoliciesCommand = exports.de_ListLifecycleExecutionsCommand = exports.de_ListLifecycleExecutionResourcesCommand = exports.de_ListInfrastructureConfigurationsCommand = exports.de_ListImageScanFindingsCommand = exports.de_ListImageScanFindingAggregationsCommand = exports.de_ListImagesCommand = exports.de_ListImageRecipesCommand = exports.de_ListImagePipelinesCommand = exports.de_ListImagePipelineImagesCommand = exports.de_ListImagePackagesCommand = exports.de_ListImageBuildVersionsCommand = exports.de_ListDistributionConfigurationsCommand = exports.de_ListContainerRecipesCommand = exports.de_ListComponentsCommand = exports.de_ListComponentBuildVersionsCommand = exports.de_ImportVmImageCommand = exports.de_ImportComponentCommand = exports.de_GetWorkflowStepExecutionCommand = exports.de_GetWorkflowExecutionCommand = exports.de_GetWorkflowCommand = exports.de_GetLifecyclePolicyCommand = exports.de_GetLifecycleExecutionCommand = exports.de_GetInfrastructureConfigurationCommand = exports.de_GetImageRecipePolicyCommand = exports.de_GetImageRecipeCommand = exports.de_GetImagePolicyCommand = void 0;
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const uuid_1 = require("uuid");
@@ -156,11 +156,13 @@ const se_CreateImageCommand = async (input, context) => {
156
156
  containerRecipeArn: [],
157
157
  distributionConfigurationArn: [],
158
158
  enhancedImageMetadataEnabled: [],
159
+ executionRole: [],
159
160
  imageRecipeArn: [],
160
161
  imageScanningConfiguration: (_) => (0, smithy_client_1._json)(_),
161
162
  imageTestsConfiguration: (_) => (0, smithy_client_1._json)(_),
162
163
  infrastructureConfigurationArn: [],
163
164
  tags: (_) => (0, smithy_client_1._json)(_),
165
+ workflows: (_) => (0, smithy_client_1._json)(_),
164
166
  }));
165
167
  return new protocol_http_1.HttpRequest({
166
168
  protocol,
@@ -186,6 +188,7 @@ const se_CreateImagePipelineCommand = async (input, context) => {
186
188
  description: [],
187
189
  distributionConfigurationArn: [],
188
190
  enhancedImageMetadataEnabled: [],
191
+ executionRole: [],
189
192
  imageRecipeArn: [],
190
193
  imageScanningConfiguration: (_) => (0, smithy_client_1._json)(_),
191
194
  imageTestsConfiguration: (_) => (0, smithy_client_1._json)(_),
@@ -194,6 +197,7 @@ const se_CreateImagePipelineCommand = async (input, context) => {
194
197
  schedule: (_) => (0, smithy_client_1._json)(_),
195
198
  status: [],
196
199
  tags: (_) => (0, smithy_client_1._json)(_),
200
+ workflows: (_) => (0, smithy_client_1._json)(_),
197
201
  }));
198
202
  return new protocol_http_1.HttpRequest({
199
203
  protocol,
@@ -299,6 +303,36 @@ const se_CreateLifecyclePolicyCommand = async (input, context) => {
299
303
  });
300
304
  };
301
305
  exports.se_CreateLifecyclePolicyCommand = se_CreateLifecyclePolicyCommand;
306
+ const se_CreateWorkflowCommand = async (input, context) => {
307
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
308
+ const headers = {
309
+ "content-type": "application/json",
310
+ };
311
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateWorkflow";
312
+ let body;
313
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
314
+ changeDescription: [],
315
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
316
+ data: [],
317
+ description: [],
318
+ kmsKeyId: [],
319
+ name: [],
320
+ semanticVersion: [],
321
+ tags: (_) => (0, smithy_client_1._json)(_),
322
+ type: [],
323
+ uri: [],
324
+ }));
325
+ return new protocol_http_1.HttpRequest({
326
+ protocol,
327
+ hostname,
328
+ port,
329
+ method: "PUT",
330
+ headers,
331
+ path: resolvedPath,
332
+ body,
333
+ });
334
+ };
335
+ exports.se_CreateWorkflowCommand = se_CreateWorkflowCommand;
302
336
  const se_DeleteComponentCommand = async (input, context) => {
303
337
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
338
  const headers = {};
@@ -465,6 +499,26 @@ const se_DeleteLifecyclePolicyCommand = async (input, context) => {
465
499
  });
466
500
  };
467
501
  exports.se_DeleteLifecyclePolicyCommand = se_DeleteLifecyclePolicyCommand;
502
+ const se_DeleteWorkflowCommand = async (input, context) => {
503
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
504
+ const headers = {};
505
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteWorkflow";
506
+ const query = (0, smithy_client_1.map)({
507
+ workflowBuildVersionArn: [, (0, smithy_client_1.expectNonNull)(input.workflowBuildVersionArn, `workflowBuildVersionArn`)],
508
+ });
509
+ let body;
510
+ return new protocol_http_1.HttpRequest({
511
+ protocol,
512
+ hostname,
513
+ port,
514
+ method: "DELETE",
515
+ headers,
516
+ path: resolvedPath,
517
+ query,
518
+ body,
519
+ });
520
+ };
521
+ exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
468
522
  const se_GetComponentCommand = async (input, context) => {
469
523
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
470
524
  const headers = {};
@@ -731,6 +785,26 @@ const se_GetLifecyclePolicyCommand = async (input, context) => {
731
785
  });
732
786
  };
733
787
  exports.se_GetLifecyclePolicyCommand = se_GetLifecyclePolicyCommand;
788
+ const se_GetWorkflowCommand = async (input, context) => {
789
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
790
+ const headers = {};
791
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflow";
792
+ const query = (0, smithy_client_1.map)({
793
+ workflowBuildVersionArn: [, (0, smithy_client_1.expectNonNull)(input.workflowBuildVersionArn, `workflowBuildVersionArn`)],
794
+ });
795
+ let body;
796
+ return new protocol_http_1.HttpRequest({
797
+ protocol,
798
+ hostname,
799
+ port,
800
+ method: "GET",
801
+ headers,
802
+ path: resolvedPath,
803
+ query,
804
+ body,
805
+ });
806
+ };
807
+ exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
734
808
  const se_GetWorkflowExecutionCommand = async (input, context) => {
735
809
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
736
810
  const headers = {};
@@ -1225,6 +1299,51 @@ const se_ListTagsForResourceCommand = async (input, context) => {
1225
1299
  });
1226
1300
  };
1227
1301
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1302
+ const se_ListWaitingWorkflowStepsCommand = async (input, context) => {
1303
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1304
+ const headers = {
1305
+ "content-type": "application/json",
1306
+ };
1307
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWaitingWorkflowSteps";
1308
+ let body;
1309
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1310
+ maxResults: [],
1311
+ nextToken: [],
1312
+ }));
1313
+ return new protocol_http_1.HttpRequest({
1314
+ protocol,
1315
+ hostname,
1316
+ port,
1317
+ method: "POST",
1318
+ headers,
1319
+ path: resolvedPath,
1320
+ body,
1321
+ });
1322
+ };
1323
+ exports.se_ListWaitingWorkflowStepsCommand = se_ListWaitingWorkflowStepsCommand;
1324
+ const se_ListWorkflowBuildVersionsCommand = async (input, context) => {
1325
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1326
+ const headers = {
1327
+ "content-type": "application/json",
1328
+ };
1329
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowBuildVersions";
1330
+ let body;
1331
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1332
+ maxResults: [],
1333
+ nextToken: [],
1334
+ workflowVersionArn: [],
1335
+ }));
1336
+ return new protocol_http_1.HttpRequest({
1337
+ protocol,
1338
+ hostname,
1339
+ port,
1340
+ method: "POST",
1341
+ headers,
1342
+ path: resolvedPath,
1343
+ body,
1344
+ });
1345
+ };
1346
+ exports.se_ListWorkflowBuildVersionsCommand = se_ListWorkflowBuildVersionsCommand;
1228
1347
  const se_ListWorkflowExecutionsCommand = async (input, context) => {
1229
1348
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1230
1349
  const headers = {
@@ -1248,6 +1367,31 @@ const se_ListWorkflowExecutionsCommand = async (input, context) => {
1248
1367
  });
1249
1368
  };
1250
1369
  exports.se_ListWorkflowExecutionsCommand = se_ListWorkflowExecutionsCommand;
1370
+ const se_ListWorkflowsCommand = async (input, context) => {
1371
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1372
+ const headers = {
1373
+ "content-type": "application/json",
1374
+ };
1375
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflows";
1376
+ let body;
1377
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1378
+ byName: [],
1379
+ filters: (_) => (0, smithy_client_1._json)(_),
1380
+ maxResults: [],
1381
+ nextToken: [],
1382
+ owner: [],
1383
+ }));
1384
+ return new protocol_http_1.HttpRequest({
1385
+ protocol,
1386
+ hostname,
1387
+ port,
1388
+ method: "POST",
1389
+ headers,
1390
+ path: resolvedPath,
1391
+ body,
1392
+ });
1393
+ };
1394
+ exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
1251
1395
  const se_ListWorkflowStepExecutionsCommand = async (input, context) => {
1252
1396
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1253
1397
  const headers = {
@@ -1359,6 +1503,31 @@ const se_PutImageRecipePolicyCommand = async (input, context) => {
1359
1503
  });
1360
1504
  };
1361
1505
  exports.se_PutImageRecipePolicyCommand = se_PutImageRecipePolicyCommand;
1506
+ const se_SendWorkflowStepActionCommand = async (input, context) => {
1507
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1508
+ const headers = {
1509
+ "content-type": "application/json",
1510
+ };
1511
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/SendWorkflowStepAction";
1512
+ let body;
1513
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1514
+ action: [],
1515
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
1516
+ imageBuildVersionArn: [],
1517
+ reason: [],
1518
+ stepExecutionId: [],
1519
+ }));
1520
+ return new protocol_http_1.HttpRequest({
1521
+ protocol,
1522
+ hostname,
1523
+ port,
1524
+ method: "PUT",
1525
+ headers,
1526
+ path: resolvedPath,
1527
+ body,
1528
+ });
1529
+ };
1530
+ exports.se_SendWorkflowStepActionCommand = se_SendWorkflowStepActionCommand;
1362
1531
  const se_StartImagePipelineExecutionCommand = async (input, context) => {
1363
1532
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1364
1533
  const headers = {
@@ -1491,6 +1660,7 @@ const se_UpdateImagePipelineCommand = async (input, context) => {
1491
1660
  description: [],
1492
1661
  distributionConfigurationArn: [],
1493
1662
  enhancedImageMetadataEnabled: [],
1663
+ executionRole: [],
1494
1664
  imagePipelineArn: [],
1495
1665
  imageRecipeArn: [],
1496
1666
  imageScanningConfiguration: (_) => (0, smithy_client_1._json)(_),
@@ -1498,6 +1668,7 @@ const se_UpdateImagePipelineCommand = async (input, context) => {
1498
1668
  infrastructureConfigurationArn: [],
1499
1669
  schedule: (_) => (0, smithy_client_1._json)(_),
1500
1670
  status: [],
1671
+ workflows: (_) => (0, smithy_client_1._json)(_),
1501
1672
  }));
1502
1673
  return new protocol_http_1.HttpRequest({
1503
1674
  protocol,
@@ -2195,6 +2366,71 @@ const de_CreateLifecyclePolicyCommandError = async (output, context) => {
2195
2366
  });
2196
2367
  }
2197
2368
  };
2369
+ const de_CreateWorkflowCommand = async (output, context) => {
2370
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2371
+ return de_CreateWorkflowCommandError(output, context);
2372
+ }
2373
+ const contents = (0, smithy_client_1.map)({
2374
+ $metadata: deserializeMetadata(output),
2375
+ });
2376
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2377
+ const doc = (0, smithy_client_1.take)(data, {
2378
+ clientToken: smithy_client_1.expectString,
2379
+ workflowBuildVersionArn: smithy_client_1.expectString,
2380
+ });
2381
+ Object.assign(contents, doc);
2382
+ return contents;
2383
+ };
2384
+ exports.de_CreateWorkflowCommand = de_CreateWorkflowCommand;
2385
+ const de_CreateWorkflowCommandError = async (output, context) => {
2386
+ const parsedOutput = {
2387
+ ...output,
2388
+ body: await parseErrorBody(output.body, context),
2389
+ };
2390
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2391
+ switch (errorCode) {
2392
+ case "CallRateLimitExceededException":
2393
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
2394
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
2395
+ case "ClientException":
2396
+ case "com.amazonaws.imagebuilder#ClientException":
2397
+ throw await de_ClientExceptionRes(parsedOutput, context);
2398
+ case "ForbiddenException":
2399
+ case "com.amazonaws.imagebuilder#ForbiddenException":
2400
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2401
+ case "IdempotentParameterMismatchException":
2402
+ case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
2403
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
2404
+ case "InvalidParameterCombinationException":
2405
+ case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
2406
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2407
+ case "InvalidRequestException":
2408
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
2409
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2410
+ case "InvalidVersionNumberException":
2411
+ case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
2412
+ throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
2413
+ case "ResourceInUseException":
2414
+ case "com.amazonaws.imagebuilder#ResourceInUseException":
2415
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2416
+ case "ServiceException":
2417
+ case "com.amazonaws.imagebuilder#ServiceException":
2418
+ throw await de_ServiceExceptionRes(parsedOutput, context);
2419
+ case "ServiceQuotaExceededException":
2420
+ case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
2421
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2422
+ case "ServiceUnavailableException":
2423
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
2424
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2425
+ default:
2426
+ const parsedBody = parsedOutput.body;
2427
+ return throwDefaultError({
2428
+ output,
2429
+ parsedBody,
2430
+ errorCode,
2431
+ });
2432
+ }
2433
+ };
2198
2434
  const de_DeleteComponentCommand = async (output, context) => {
2199
2435
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2200
2436
  return de_DeleteComponentCommandError(output, context);
@@ -2618,6 +2854,58 @@ const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
2618
2854
  });
2619
2855
  }
2620
2856
  };
2857
+ const de_DeleteWorkflowCommand = async (output, context) => {
2858
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2859
+ return de_DeleteWorkflowCommandError(output, context);
2860
+ }
2861
+ const contents = (0, smithy_client_1.map)({
2862
+ $metadata: deserializeMetadata(output),
2863
+ });
2864
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2865
+ const doc = (0, smithy_client_1.take)(data, {
2866
+ workflowBuildVersionArn: smithy_client_1.expectString,
2867
+ });
2868
+ Object.assign(contents, doc);
2869
+ return contents;
2870
+ };
2871
+ exports.de_DeleteWorkflowCommand = de_DeleteWorkflowCommand;
2872
+ const de_DeleteWorkflowCommandError = async (output, context) => {
2873
+ const parsedOutput = {
2874
+ ...output,
2875
+ body: await parseErrorBody(output.body, context),
2876
+ };
2877
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2878
+ switch (errorCode) {
2879
+ case "CallRateLimitExceededException":
2880
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
2881
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
2882
+ case "ClientException":
2883
+ case "com.amazonaws.imagebuilder#ClientException":
2884
+ throw await de_ClientExceptionRes(parsedOutput, context);
2885
+ case "ForbiddenException":
2886
+ case "com.amazonaws.imagebuilder#ForbiddenException":
2887
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2888
+ case "InvalidRequestException":
2889
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
2890
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2891
+ case "ResourceDependencyException":
2892
+ case "com.amazonaws.imagebuilder#ResourceDependencyException":
2893
+ throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
2894
+ case "ServiceException":
2895
+ case "com.amazonaws.imagebuilder#ServiceException":
2896
+ throw await de_ServiceExceptionRes(parsedOutput, context);
2897
+ case "ServiceUnavailableException":
2898
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
2899
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2900
+ default:
2901
+ const parsedBody = parsedOutput.body;
2902
+ return throwDefaultError({
2903
+ output,
2904
+ parsedBody,
2905
+ errorCode,
2906
+ });
2907
+ }
2908
+ };
2621
2909
  const de_GetComponentCommand = async (output, context) => {
2622
2910
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2623
2911
  return de_GetComponentCommandError(output, context);
@@ -3266,6 +3554,55 @@ const de_GetLifecyclePolicyCommandError = async (output, context) => {
3266
3554
  });
3267
3555
  }
3268
3556
  };
3557
+ const de_GetWorkflowCommand = async (output, context) => {
3558
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3559
+ return de_GetWorkflowCommandError(output, context);
3560
+ }
3561
+ const contents = (0, smithy_client_1.map)({
3562
+ $metadata: deserializeMetadata(output),
3563
+ });
3564
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3565
+ const doc = (0, smithy_client_1.take)(data, {
3566
+ workflow: smithy_client_1._json,
3567
+ });
3568
+ Object.assign(contents, doc);
3569
+ return contents;
3570
+ };
3571
+ exports.de_GetWorkflowCommand = de_GetWorkflowCommand;
3572
+ const de_GetWorkflowCommandError = async (output, context) => {
3573
+ const parsedOutput = {
3574
+ ...output,
3575
+ body: await parseErrorBody(output.body, context),
3576
+ };
3577
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3578
+ switch (errorCode) {
3579
+ case "CallRateLimitExceededException":
3580
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
3581
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
3582
+ case "ClientException":
3583
+ case "com.amazonaws.imagebuilder#ClientException":
3584
+ throw await de_ClientExceptionRes(parsedOutput, context);
3585
+ case "ForbiddenException":
3586
+ case "com.amazonaws.imagebuilder#ForbiddenException":
3587
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
3588
+ case "InvalidRequestException":
3589
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
3590
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3591
+ case "ServiceException":
3592
+ case "com.amazonaws.imagebuilder#ServiceException":
3593
+ throw await de_ServiceExceptionRes(parsedOutput, context);
3594
+ case "ServiceUnavailableException":
3595
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
3596
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3597
+ default:
3598
+ const parsedBody = parsedOutput.body;
3599
+ return throwDefaultError({
3600
+ output,
3601
+ parsedBody,
3602
+ errorCode,
3603
+ });
3604
+ }
3605
+ };
3269
3606
  const de_GetWorkflowExecutionCommand = async (output, context) => {
3270
3607
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3271
3608
  return de_GetWorkflowExecutionCommandError(output, context);
@@ -3278,6 +3615,7 @@ const de_GetWorkflowExecutionCommand = async (output, context) => {
3278
3615
  endTime: smithy_client_1.expectString,
3279
3616
  imageBuildVersionArn: smithy_client_1.expectString,
3280
3617
  message: smithy_client_1.expectString,
3618
+ parallelGroup: smithy_client_1.expectString,
3281
3619
  requestId: smithy_client_1.expectString,
3282
3620
  startTime: smithy_client_1.expectString,
3283
3621
  status: smithy_client_1.expectString,
@@ -4407,6 +4745,112 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
4407
4745
  });
4408
4746
  }
4409
4747
  };
4748
+ const de_ListWaitingWorkflowStepsCommand = async (output, context) => {
4749
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4750
+ return de_ListWaitingWorkflowStepsCommandError(output, context);
4751
+ }
4752
+ const contents = (0, smithy_client_1.map)({
4753
+ $metadata: deserializeMetadata(output),
4754
+ });
4755
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4756
+ const doc = (0, smithy_client_1.take)(data, {
4757
+ nextToken: smithy_client_1.expectString,
4758
+ steps: smithy_client_1._json,
4759
+ });
4760
+ Object.assign(contents, doc);
4761
+ return contents;
4762
+ };
4763
+ exports.de_ListWaitingWorkflowStepsCommand = de_ListWaitingWorkflowStepsCommand;
4764
+ const de_ListWaitingWorkflowStepsCommandError = async (output, context) => {
4765
+ const parsedOutput = {
4766
+ ...output,
4767
+ body: await parseErrorBody(output.body, context),
4768
+ };
4769
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4770
+ switch (errorCode) {
4771
+ case "CallRateLimitExceededException":
4772
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4773
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
4774
+ case "ClientException":
4775
+ case "com.amazonaws.imagebuilder#ClientException":
4776
+ throw await de_ClientExceptionRes(parsedOutput, context);
4777
+ case "ForbiddenException":
4778
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4779
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
4780
+ case "InvalidPaginationTokenException":
4781
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
4782
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
4783
+ case "InvalidRequestException":
4784
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4785
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4786
+ case "ServiceException":
4787
+ case "com.amazonaws.imagebuilder#ServiceException":
4788
+ throw await de_ServiceExceptionRes(parsedOutput, context);
4789
+ case "ServiceUnavailableException":
4790
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4791
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4792
+ default:
4793
+ const parsedBody = parsedOutput.body;
4794
+ return throwDefaultError({
4795
+ output,
4796
+ parsedBody,
4797
+ errorCode,
4798
+ });
4799
+ }
4800
+ };
4801
+ const de_ListWorkflowBuildVersionsCommand = async (output, context) => {
4802
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4803
+ return de_ListWorkflowBuildVersionsCommandError(output, context);
4804
+ }
4805
+ const contents = (0, smithy_client_1.map)({
4806
+ $metadata: deserializeMetadata(output),
4807
+ });
4808
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4809
+ const doc = (0, smithy_client_1.take)(data, {
4810
+ nextToken: smithy_client_1.expectString,
4811
+ workflowSummaryList: smithy_client_1._json,
4812
+ });
4813
+ Object.assign(contents, doc);
4814
+ return contents;
4815
+ };
4816
+ exports.de_ListWorkflowBuildVersionsCommand = de_ListWorkflowBuildVersionsCommand;
4817
+ const de_ListWorkflowBuildVersionsCommandError = async (output, context) => {
4818
+ const parsedOutput = {
4819
+ ...output,
4820
+ body: await parseErrorBody(output.body, context),
4821
+ };
4822
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4823
+ switch (errorCode) {
4824
+ case "CallRateLimitExceededException":
4825
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4826
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
4827
+ case "ClientException":
4828
+ case "com.amazonaws.imagebuilder#ClientException":
4829
+ throw await de_ClientExceptionRes(parsedOutput, context);
4830
+ case "ForbiddenException":
4831
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4832
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
4833
+ case "InvalidPaginationTokenException":
4834
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
4835
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
4836
+ case "InvalidRequestException":
4837
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4838
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4839
+ case "ServiceException":
4840
+ case "com.amazonaws.imagebuilder#ServiceException":
4841
+ throw await de_ServiceExceptionRes(parsedOutput, context);
4842
+ case "ServiceUnavailableException":
4843
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4844
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4845
+ default:
4846
+ const parsedBody = parsedOutput.body;
4847
+ return throwDefaultError({
4848
+ output,
4849
+ parsedBody,
4850
+ errorCode,
4851
+ });
4852
+ }
4853
+ };
4410
4854
  const de_ListWorkflowExecutionsCommand = async (output, context) => {
4411
4855
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4412
4856
  return de_ListWorkflowExecutionsCommandError(output, context);
@@ -4463,6 +4907,59 @@ const de_ListWorkflowExecutionsCommandError = async (output, context) => {
4463
4907
  });
4464
4908
  }
4465
4909
  };
4910
+ const de_ListWorkflowsCommand = async (output, context) => {
4911
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4912
+ return de_ListWorkflowsCommandError(output, context);
4913
+ }
4914
+ const contents = (0, smithy_client_1.map)({
4915
+ $metadata: deserializeMetadata(output),
4916
+ });
4917
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4918
+ const doc = (0, smithy_client_1.take)(data, {
4919
+ nextToken: smithy_client_1.expectString,
4920
+ workflowVersionList: smithy_client_1._json,
4921
+ });
4922
+ Object.assign(contents, doc);
4923
+ return contents;
4924
+ };
4925
+ exports.de_ListWorkflowsCommand = de_ListWorkflowsCommand;
4926
+ const de_ListWorkflowsCommandError = async (output, context) => {
4927
+ const parsedOutput = {
4928
+ ...output,
4929
+ body: await parseErrorBody(output.body, context),
4930
+ };
4931
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4932
+ switch (errorCode) {
4933
+ case "CallRateLimitExceededException":
4934
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4935
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
4936
+ case "ClientException":
4937
+ case "com.amazonaws.imagebuilder#ClientException":
4938
+ throw await de_ClientExceptionRes(parsedOutput, context);
4939
+ case "ForbiddenException":
4940
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4941
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
4942
+ case "InvalidPaginationTokenException":
4943
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
4944
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
4945
+ case "InvalidRequestException":
4946
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4947
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4948
+ case "ServiceException":
4949
+ case "com.amazonaws.imagebuilder#ServiceException":
4950
+ throw await de_ServiceExceptionRes(parsedOutput, context);
4951
+ case "ServiceUnavailableException":
4952
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4953
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4954
+ default:
4955
+ const parsedBody = parsedOutput.body;
4956
+ return throwDefaultError({
4957
+ output,
4958
+ parsedBody,
4959
+ errorCode,
4960
+ });
4961
+ }
4962
+ };
4466
4963
  const de_ListWorkflowStepExecutionsCommand = async (output, context) => {
4467
4964
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4468
4965
  return de_ListWorkflowStepExecutionsCommandError(output, context);
@@ -4745,6 +5242,69 @@ const de_PutImageRecipePolicyCommandError = async (output, context) => {
4745
5242
  });
4746
5243
  }
4747
5244
  };
5245
+ const de_SendWorkflowStepActionCommand = async (output, context) => {
5246
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5247
+ return de_SendWorkflowStepActionCommandError(output, context);
5248
+ }
5249
+ const contents = (0, smithy_client_1.map)({
5250
+ $metadata: deserializeMetadata(output),
5251
+ });
5252
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5253
+ const doc = (0, smithy_client_1.take)(data, {
5254
+ clientToken: smithy_client_1.expectString,
5255
+ imageBuildVersionArn: smithy_client_1.expectString,
5256
+ stepExecutionId: smithy_client_1.expectString,
5257
+ });
5258
+ Object.assign(contents, doc);
5259
+ return contents;
5260
+ };
5261
+ exports.de_SendWorkflowStepActionCommand = de_SendWorkflowStepActionCommand;
5262
+ const de_SendWorkflowStepActionCommandError = async (output, context) => {
5263
+ const parsedOutput = {
5264
+ ...output,
5265
+ body: await parseErrorBody(output.body, context),
5266
+ };
5267
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5268
+ switch (errorCode) {
5269
+ case "CallRateLimitExceededException":
5270
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
5271
+ throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
5272
+ case "ClientException":
5273
+ case "com.amazonaws.imagebuilder#ClientException":
5274
+ throw await de_ClientExceptionRes(parsedOutput, context);
5275
+ case "ForbiddenException":
5276
+ case "com.amazonaws.imagebuilder#ForbiddenException":
5277
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
5278
+ case "IdempotentParameterMismatchException":
5279
+ case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
5280
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
5281
+ case "InvalidParameterValueException":
5282
+ case "com.amazonaws.imagebuilder#InvalidParameterValueException":
5283
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
5284
+ case "InvalidRequestException":
5285
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
5286
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5287
+ case "ResourceInUseException":
5288
+ case "com.amazonaws.imagebuilder#ResourceInUseException":
5289
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
5290
+ case "ResourceNotFoundException":
5291
+ case "com.amazonaws.imagebuilder#ResourceNotFoundException":
5292
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5293
+ case "ServiceException":
5294
+ case "com.amazonaws.imagebuilder#ServiceException":
5295
+ throw await de_ServiceExceptionRes(parsedOutput, context);
5296
+ case "ServiceUnavailableException":
5297
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
5298
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
5299
+ default:
5300
+ const parsedBody = parsedOutput.body;
5301
+ return throwDefaultError({
5302
+ output,
5303
+ parsedBody,
5304
+ errorCode,
5305
+ });
5306
+ }
5307
+ };
4748
5308
  const de_StartImagePipelineExecutionCommand = async (output, context) => {
4749
5309
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4750
5310
  return de_StartImagePipelineExecutionCommandError(output, context);
@@ -5425,6 +5985,7 @@ const de_Image = (output, context) => {
5425
5985
  deprecationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5426
5986
  distributionConfiguration: smithy_client_1._json,
5427
5987
  enhancedImageMetadataEnabled: smithy_client_1.expectBoolean,
5988
+ executionRole: smithy_client_1.expectString,
5428
5989
  imageRecipe: smithy_client_1._json,
5429
5990
  imageScanningConfiguration: smithy_client_1._json,
5430
5991
  imageSource: smithy_client_1.expectString,
@@ -5442,6 +6003,7 @@ const de_Image = (output, context) => {
5442
6003
  tags: smithy_client_1._json,
5443
6004
  type: smithy_client_1.expectString,
5444
6005
  version: smithy_client_1.expectString,
6006
+ workflows: smithy_client_1._json,
5445
6007
  });
5446
6008
  };
5447
6009
  const de_ImageScanFinding = (output, context) => {