@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,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.serializeAws_restJson1UpdateImagePipelineCommand = exports.serializeAws_restJson1UpdateDistributionConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartImagePipelineExecutionCommand = exports.serializeAws_restJson1PutImageRecipePolicyCommand = exports.serializeAws_restJson1PutImagePolicyCommand = exports.serializeAws_restJson1PutContainerRecipePolicyCommand = exports.serializeAws_restJson1PutComponentPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.serializeAws_restJson1ListImagesCommand = exports.serializeAws_restJson1ListImageRecipesCommand = exports.serializeAws_restJson1ListImagePipelinesCommand = exports.serializeAws_restJson1ListImagePipelineImagesCommand = exports.serializeAws_restJson1ListImagePackagesCommand = exports.serializeAws_restJson1ListImageBuildVersionsCommand = exports.serializeAws_restJson1ListDistributionConfigurationsCommand = exports.serializeAws_restJson1ListContainerRecipesCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListComponentBuildVersionsCommand = exports.serializeAws_restJson1ImportVmImageCommand = exports.serializeAws_restJson1ImportComponentCommand = exports.serializeAws_restJson1GetInfrastructureConfigurationCommand = exports.serializeAws_restJson1GetImageRecipePolicyCommand = exports.serializeAws_restJson1GetImageRecipeCommand = exports.serializeAws_restJson1GetImagePolicyCommand = exports.serializeAws_restJson1GetImagePipelineCommand = exports.serializeAws_restJson1GetImageCommand = exports.serializeAws_restJson1GetDistributionConfigurationCommand = exports.serializeAws_restJson1GetContainerRecipePolicyCommand = exports.serializeAws_restJson1GetContainerRecipeCommand = exports.serializeAws_restJson1GetComponentPolicyCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.serializeAws_restJson1DeleteImageRecipeCommand = exports.serializeAws_restJson1DeleteImagePipelineCommand = exports.serializeAws_restJson1DeleteImageCommand = exports.serializeAws_restJson1DeleteDistributionConfigurationCommand = exports.serializeAws_restJson1DeleteContainerRecipeCommand = exports.serializeAws_restJson1DeleteComponentCommand = exports.serializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.serializeAws_restJson1CreateImageRecipeCommand = exports.serializeAws_restJson1CreateImagePipelineCommand = exports.serializeAws_restJson1CreateImageCommand = exports.serializeAws_restJson1CreateDistributionConfigurationCommand = exports.serializeAws_restJson1CreateContainerRecipeCommand = exports.serializeAws_restJson1CreateComponentCommand = exports.serializeAws_restJson1CancelImageCreationCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1UpdateImagePipelineCommand = exports.deserializeAws_restJson1UpdateDistributionConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartImagePipelineExecutionCommand = exports.deserializeAws_restJson1PutImageRecipePolicyCommand = exports.deserializeAws_restJson1PutImagePolicyCommand = exports.deserializeAws_restJson1PutContainerRecipePolicyCommand = exports.deserializeAws_restJson1PutComponentPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.deserializeAws_restJson1ListImagesCommand = exports.deserializeAws_restJson1ListImageRecipesCommand = exports.deserializeAws_restJson1ListImagePipelinesCommand = exports.deserializeAws_restJson1ListImagePipelineImagesCommand = exports.deserializeAws_restJson1ListImagePackagesCommand = exports.deserializeAws_restJson1ListImageBuildVersionsCommand = exports.deserializeAws_restJson1ListDistributionConfigurationsCommand = exports.deserializeAws_restJson1ListContainerRecipesCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListComponentBuildVersionsCommand = exports.deserializeAws_restJson1ImportVmImageCommand = exports.deserializeAws_restJson1ImportComponentCommand = exports.deserializeAws_restJson1GetInfrastructureConfigurationCommand = exports.deserializeAws_restJson1GetImageRecipePolicyCommand = exports.deserializeAws_restJson1GetImageRecipeCommand = exports.deserializeAws_restJson1GetImagePolicyCommand = exports.deserializeAws_restJson1GetImagePipelineCommand = exports.deserializeAws_restJson1GetImageCommand = exports.deserializeAws_restJson1GetDistributionConfigurationCommand = exports.deserializeAws_restJson1GetContainerRecipePolicyCommand = exports.deserializeAws_restJson1GetContainerRecipeCommand = exports.deserializeAws_restJson1GetComponentPolicyCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.deserializeAws_restJson1DeleteImageRecipeCommand = exports.deserializeAws_restJson1DeleteImagePipelineCommand = exports.deserializeAws_restJson1DeleteImageCommand = exports.deserializeAws_restJson1DeleteDistributionConfigurationCommand = exports.deserializeAws_restJson1DeleteContainerRecipeCommand = exports.deserializeAws_restJson1DeleteComponentCommand = exports.deserializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1CreateImageRecipeCommand = exports.deserializeAws_restJson1CreateImagePipelineCommand = exports.deserializeAws_restJson1CreateImageCommand = exports.deserializeAws_restJson1CreateDistributionConfigurationCommand = exports.deserializeAws_restJson1CreateContainerRecipeCommand = exports.deserializeAws_restJson1CreateComponentCommand = exports.deserializeAws_restJson1CancelImageCreationCommand = void 0;
3
+ exports.serializeAws_restJson1PutImageRecipePolicyCommand = exports.serializeAws_restJson1PutImagePolicyCommand = exports.serializeAws_restJson1PutContainerRecipePolicyCommand = exports.serializeAws_restJson1PutComponentPolicyCommand = exports.serializeAws_restJson1ListWorkflowStepExecutionsCommand = exports.serializeAws_restJson1ListWorkflowExecutionsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.serializeAws_restJson1ListImageScanFindingsCommand = exports.serializeAws_restJson1ListImageScanFindingAggregationsCommand = exports.serializeAws_restJson1ListImagesCommand = exports.serializeAws_restJson1ListImageRecipesCommand = exports.serializeAws_restJson1ListImagePipelinesCommand = exports.serializeAws_restJson1ListImagePipelineImagesCommand = exports.serializeAws_restJson1ListImagePackagesCommand = exports.serializeAws_restJson1ListImageBuildVersionsCommand = exports.serializeAws_restJson1ListDistributionConfigurationsCommand = exports.serializeAws_restJson1ListContainerRecipesCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1ListComponentBuildVersionsCommand = exports.serializeAws_restJson1ImportVmImageCommand = exports.serializeAws_restJson1ImportComponentCommand = exports.serializeAws_restJson1GetWorkflowStepExecutionCommand = exports.serializeAws_restJson1GetWorkflowExecutionCommand = exports.serializeAws_restJson1GetInfrastructureConfigurationCommand = exports.serializeAws_restJson1GetImageRecipePolicyCommand = exports.serializeAws_restJson1GetImageRecipeCommand = exports.serializeAws_restJson1GetImagePolicyCommand = exports.serializeAws_restJson1GetImagePipelineCommand = exports.serializeAws_restJson1GetImageCommand = exports.serializeAws_restJson1GetDistributionConfigurationCommand = exports.serializeAws_restJson1GetContainerRecipePolicyCommand = exports.serializeAws_restJson1GetContainerRecipeCommand = exports.serializeAws_restJson1GetComponentPolicyCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.serializeAws_restJson1DeleteImageRecipeCommand = exports.serializeAws_restJson1DeleteImagePipelineCommand = exports.serializeAws_restJson1DeleteImageCommand = exports.serializeAws_restJson1DeleteDistributionConfigurationCommand = exports.serializeAws_restJson1DeleteContainerRecipeCommand = exports.serializeAws_restJson1DeleteComponentCommand = exports.serializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.serializeAws_restJson1CreateImageRecipeCommand = exports.serializeAws_restJson1CreateImagePipelineCommand = exports.serializeAws_restJson1CreateImageCommand = exports.serializeAws_restJson1CreateDistributionConfigurationCommand = exports.serializeAws_restJson1CreateContainerRecipeCommand = exports.serializeAws_restJson1CreateComponentCommand = exports.serializeAws_restJson1CancelImageCreationCommand = void 0;
4
+ exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = exports.deserializeAws_restJson1ListImageScanFindingsCommand = exports.deserializeAws_restJson1ListImageScanFindingAggregationsCommand = exports.deserializeAws_restJson1ListImagesCommand = exports.deserializeAws_restJson1ListImageRecipesCommand = exports.deserializeAws_restJson1ListImagePipelinesCommand = exports.deserializeAws_restJson1ListImagePipelineImagesCommand = exports.deserializeAws_restJson1ListImagePackagesCommand = exports.deserializeAws_restJson1ListImageBuildVersionsCommand = exports.deserializeAws_restJson1ListDistributionConfigurationsCommand = exports.deserializeAws_restJson1ListContainerRecipesCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1ListComponentBuildVersionsCommand = exports.deserializeAws_restJson1ImportVmImageCommand = exports.deserializeAws_restJson1ImportComponentCommand = exports.deserializeAws_restJson1GetWorkflowStepExecutionCommand = exports.deserializeAws_restJson1GetWorkflowExecutionCommand = exports.deserializeAws_restJson1GetInfrastructureConfigurationCommand = exports.deserializeAws_restJson1GetImageRecipePolicyCommand = exports.deserializeAws_restJson1GetImageRecipeCommand = exports.deserializeAws_restJson1GetImagePolicyCommand = exports.deserializeAws_restJson1GetImagePipelineCommand = exports.deserializeAws_restJson1GetImageCommand = exports.deserializeAws_restJson1GetDistributionConfigurationCommand = exports.deserializeAws_restJson1GetContainerRecipePolicyCommand = exports.deserializeAws_restJson1GetContainerRecipeCommand = exports.deserializeAws_restJson1GetComponentPolicyCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = exports.deserializeAws_restJson1DeleteImageRecipeCommand = exports.deserializeAws_restJson1DeleteImagePipelineCommand = exports.deserializeAws_restJson1DeleteImageCommand = exports.deserializeAws_restJson1DeleteDistributionConfigurationCommand = exports.deserializeAws_restJson1DeleteContainerRecipeCommand = exports.deserializeAws_restJson1DeleteComponentCommand = exports.deserializeAws_restJson1CreateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1CreateImageRecipeCommand = exports.deserializeAws_restJson1CreateImagePipelineCommand = exports.deserializeAws_restJson1CreateImageCommand = exports.deserializeAws_restJson1CreateDistributionConfigurationCommand = exports.deserializeAws_restJson1CreateContainerRecipeCommand = exports.deserializeAws_restJson1CreateComponentCommand = exports.deserializeAws_restJson1CancelImageCreationCommand = exports.serializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.serializeAws_restJson1UpdateImagePipelineCommand = exports.serializeAws_restJson1UpdateDistributionConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartImagePipelineExecutionCommand = void 0;
5
+ exports.deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = exports.deserializeAws_restJson1UpdateImagePipelineCommand = exports.deserializeAws_restJson1UpdateDistributionConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartImagePipelineExecutionCommand = exports.deserializeAws_restJson1PutImageRecipePolicyCommand = exports.deserializeAws_restJson1PutImagePolicyCommand = exports.deserializeAws_restJson1PutContainerRecipePolicyCommand = exports.deserializeAws_restJson1PutComponentPolicyCommand = exports.deserializeAws_restJson1ListWorkflowStepExecutionsCommand = exports.deserializeAws_restJson1ListWorkflowExecutionsCommand = void 0;
5
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
8
  const uuid_1 = require("uuid");
@@ -148,6 +149,9 @@ const serializeAws_restJson1CreateImageCommand = async (input, context) => {
148
149
  enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
149
150
  }),
150
151
  ...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
152
+ ...(input.imageScanningConfiguration != null && {
153
+ imageScanningConfiguration: serializeAws_restJson1ImageScanningConfiguration(input.imageScanningConfiguration, context),
154
+ }),
151
155
  ...(input.imageTestsConfiguration != null && {
152
156
  imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
153
157
  }),
@@ -185,6 +189,9 @@ const serializeAws_restJson1CreateImagePipelineCommand = async (input, context)
185
189
  enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
186
190
  }),
187
191
  ...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
192
+ ...(input.imageScanningConfiguration != null && {
193
+ imageScanningConfiguration: serializeAws_restJson1ImageScanningConfiguration(input.imageScanningConfiguration, context),
194
+ }),
188
195
  ...(input.imageTestsConfiguration != null && {
189
196
  imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
190
197
  }),
@@ -657,6 +664,46 @@ const serializeAws_restJson1GetInfrastructureConfigurationCommand = async (input
657
664
  });
658
665
  };
659
666
  exports.serializeAws_restJson1GetInfrastructureConfigurationCommand = serializeAws_restJson1GetInfrastructureConfigurationCommand;
667
+ const serializeAws_restJson1GetWorkflowExecutionCommand = async (input, context) => {
668
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
669
+ const headers = {};
670
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflowExecution";
671
+ const query = map({
672
+ workflowExecutionId: [, (0, smithy_client_1.expectNonNull)(input.workflowExecutionId, `workflowExecutionId`)],
673
+ });
674
+ let body;
675
+ return new protocol_http_1.HttpRequest({
676
+ protocol,
677
+ hostname,
678
+ port,
679
+ method: "GET",
680
+ headers,
681
+ path: resolvedPath,
682
+ query,
683
+ body,
684
+ });
685
+ };
686
+ exports.serializeAws_restJson1GetWorkflowExecutionCommand = serializeAws_restJson1GetWorkflowExecutionCommand;
687
+ const serializeAws_restJson1GetWorkflowStepExecutionCommand = async (input, context) => {
688
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
689
+ const headers = {};
690
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflowStepExecution";
691
+ const query = map({
692
+ stepExecutionId: [, (0, smithy_client_1.expectNonNull)(input.stepExecutionId, `stepExecutionId`)],
693
+ });
694
+ let body;
695
+ return new protocol_http_1.HttpRequest({
696
+ protocol,
697
+ hostname,
698
+ port,
699
+ method: "GET",
700
+ headers,
701
+ path: resolvedPath,
702
+ query,
703
+ body,
704
+ });
705
+ };
706
+ exports.serializeAws_restJson1GetWorkflowStepExecutionCommand = serializeAws_restJson1GetWorkflowStepExecutionCommand;
660
707
  const serializeAws_restJson1ImportComponentCommand = async (input, context) => {
661
708
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
662
709
  const headers = {
@@ -956,6 +1003,53 @@ const serializeAws_restJson1ListImagesCommand = async (input, context) => {
956
1003
  });
957
1004
  };
958
1005
  exports.serializeAws_restJson1ListImagesCommand = serializeAws_restJson1ListImagesCommand;
1006
+ const serializeAws_restJson1ListImageScanFindingAggregationsCommand = async (input, context) => {
1007
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1008
+ const headers = {
1009
+ "content-type": "application/json",
1010
+ };
1011
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageScanFindingAggregations";
1012
+ let body;
1013
+ body = JSON.stringify({
1014
+ ...(input.filter != null && { filter: serializeAws_restJson1Filter(input.filter, context) }),
1015
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
1016
+ });
1017
+ return new protocol_http_1.HttpRequest({
1018
+ protocol,
1019
+ hostname,
1020
+ port,
1021
+ method: "POST",
1022
+ headers,
1023
+ path: resolvedPath,
1024
+ body,
1025
+ });
1026
+ };
1027
+ exports.serializeAws_restJson1ListImageScanFindingAggregationsCommand = serializeAws_restJson1ListImageScanFindingAggregationsCommand;
1028
+ const serializeAws_restJson1ListImageScanFindingsCommand = async (input, context) => {
1029
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1030
+ const headers = {
1031
+ "content-type": "application/json",
1032
+ };
1033
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageScanFindings";
1034
+ let body;
1035
+ body = JSON.stringify({
1036
+ ...(input.filters != null && {
1037
+ filters: serializeAws_restJson1ImageScanFindingsFilterList(input.filters, context),
1038
+ }),
1039
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
1040
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
1041
+ });
1042
+ return new protocol_http_1.HttpRequest({
1043
+ protocol,
1044
+ hostname,
1045
+ port,
1046
+ method: "POST",
1047
+ headers,
1048
+ path: resolvedPath,
1049
+ body,
1050
+ });
1051
+ };
1052
+ exports.serializeAws_restJson1ListImageScanFindingsCommand = serializeAws_restJson1ListImageScanFindingsCommand;
959
1053
  const serializeAws_restJson1ListInfrastructureConfigurationsCommand = async (input, context) => {
960
1054
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
961
1055
  const headers = {
@@ -996,6 +1090,52 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
996
1090
  });
997
1091
  };
998
1092
  exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
1093
+ const serializeAws_restJson1ListWorkflowExecutionsCommand = async (input, context) => {
1094
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1095
+ const headers = {
1096
+ "content-type": "application/json",
1097
+ };
1098
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowExecutions";
1099
+ let body;
1100
+ body = JSON.stringify({
1101
+ ...(input.imageBuildVersionArn != null && { imageBuildVersionArn: input.imageBuildVersionArn }),
1102
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
1103
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
1104
+ });
1105
+ return new protocol_http_1.HttpRequest({
1106
+ protocol,
1107
+ hostname,
1108
+ port,
1109
+ method: "POST",
1110
+ headers,
1111
+ path: resolvedPath,
1112
+ body,
1113
+ });
1114
+ };
1115
+ exports.serializeAws_restJson1ListWorkflowExecutionsCommand = serializeAws_restJson1ListWorkflowExecutionsCommand;
1116
+ const serializeAws_restJson1ListWorkflowStepExecutionsCommand = async (input, context) => {
1117
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1118
+ const headers = {
1119
+ "content-type": "application/json",
1120
+ };
1121
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowStepExecutions";
1122
+ let body;
1123
+ body = JSON.stringify({
1124
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
1125
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
1126
+ ...(input.workflowExecutionId != null && { workflowExecutionId: input.workflowExecutionId }),
1127
+ });
1128
+ return new protocol_http_1.HttpRequest({
1129
+ protocol,
1130
+ hostname,
1131
+ port,
1132
+ method: "POST",
1133
+ headers,
1134
+ path: resolvedPath,
1135
+ body,
1136
+ });
1137
+ };
1138
+ exports.serializeAws_restJson1ListWorkflowStepExecutionsCommand = serializeAws_restJson1ListWorkflowStepExecutionsCommand;
999
1139
  const serializeAws_restJson1PutComponentPolicyCommand = async (input, context) => {
1000
1140
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1001
1141
  const headers = {
@@ -1199,6 +1339,9 @@ const serializeAws_restJson1UpdateImagePipelineCommand = async (input, context)
1199
1339
  }),
1200
1340
  ...(input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn }),
1201
1341
  ...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
1342
+ ...(input.imageScanningConfiguration != null && {
1343
+ imageScanningConfiguration: serializeAws_restJson1ImageScanningConfiguration(input.imageScanningConfiguration, context),
1344
+ }),
1202
1345
  ...(input.imageTestsConfiguration != null && {
1203
1346
  imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
1204
1347
  }),
@@ -2758,6 +2901,188 @@ const deserializeAws_restJson1GetInfrastructureConfigurationCommandError = async
2758
2901
  });
2759
2902
  }
2760
2903
  };
2904
+ const deserializeAws_restJson1GetWorkflowExecutionCommand = async (output, context) => {
2905
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2906
+ return deserializeAws_restJson1GetWorkflowExecutionCommandError(output, context);
2907
+ }
2908
+ const contents = map({
2909
+ $metadata: deserializeMetadata(output),
2910
+ });
2911
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2912
+ if (data.endTime != null) {
2913
+ contents.endTime = (0, smithy_client_1.expectString)(data.endTime);
2914
+ }
2915
+ if (data.imageBuildVersionArn != null) {
2916
+ contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
2917
+ }
2918
+ if (data.message != null) {
2919
+ contents.message = (0, smithy_client_1.expectString)(data.message);
2920
+ }
2921
+ if (data.requestId != null) {
2922
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2923
+ }
2924
+ if (data.startTime != null) {
2925
+ contents.startTime = (0, smithy_client_1.expectString)(data.startTime);
2926
+ }
2927
+ if (data.status != null) {
2928
+ contents.status = (0, smithy_client_1.expectString)(data.status);
2929
+ }
2930
+ if (data.totalStepCount != null) {
2931
+ contents.totalStepCount = (0, smithy_client_1.expectInt32)(data.totalStepCount);
2932
+ }
2933
+ if (data.totalStepsFailed != null) {
2934
+ contents.totalStepsFailed = (0, smithy_client_1.expectInt32)(data.totalStepsFailed);
2935
+ }
2936
+ if (data.totalStepsSkipped != null) {
2937
+ contents.totalStepsSkipped = (0, smithy_client_1.expectInt32)(data.totalStepsSkipped);
2938
+ }
2939
+ if (data.totalStepsSucceeded != null) {
2940
+ contents.totalStepsSucceeded = (0, smithy_client_1.expectInt32)(data.totalStepsSucceeded);
2941
+ }
2942
+ if (data.type != null) {
2943
+ contents.type = (0, smithy_client_1.expectString)(data.type);
2944
+ }
2945
+ if (data.workflowBuildVersionArn != null) {
2946
+ contents.workflowBuildVersionArn = (0, smithy_client_1.expectString)(data.workflowBuildVersionArn);
2947
+ }
2948
+ if (data.workflowExecutionId != null) {
2949
+ contents.workflowExecutionId = (0, smithy_client_1.expectString)(data.workflowExecutionId);
2950
+ }
2951
+ return contents;
2952
+ };
2953
+ exports.deserializeAws_restJson1GetWorkflowExecutionCommand = deserializeAws_restJson1GetWorkflowExecutionCommand;
2954
+ const deserializeAws_restJson1GetWorkflowExecutionCommandError = async (output, context) => {
2955
+ const parsedOutput = {
2956
+ ...output,
2957
+ body: await parseErrorBody(output.body, context),
2958
+ };
2959
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2960
+ switch (errorCode) {
2961
+ case "CallRateLimitExceededException":
2962
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
2963
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
2964
+ case "ClientException":
2965
+ case "com.amazonaws.imagebuilder#ClientException":
2966
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
2967
+ case "ForbiddenException":
2968
+ case "com.amazonaws.imagebuilder#ForbiddenException":
2969
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2970
+ case "InvalidRequestException":
2971
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
2972
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
2973
+ case "ServiceException":
2974
+ case "com.amazonaws.imagebuilder#ServiceException":
2975
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
2976
+ case "ServiceUnavailableException":
2977
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
2978
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2979
+ default:
2980
+ const parsedBody = parsedOutput.body;
2981
+ (0, smithy_client_1.throwDefaultError)({
2982
+ output,
2983
+ parsedBody,
2984
+ exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
2985
+ errorCode,
2986
+ });
2987
+ }
2988
+ };
2989
+ const deserializeAws_restJson1GetWorkflowStepExecutionCommand = async (output, context) => {
2990
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2991
+ return deserializeAws_restJson1GetWorkflowStepExecutionCommandError(output, context);
2992
+ }
2993
+ const contents = map({
2994
+ $metadata: deserializeMetadata(output),
2995
+ });
2996
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2997
+ if (data.action != null) {
2998
+ contents.action = (0, smithy_client_1.expectString)(data.action);
2999
+ }
3000
+ if (data.description != null) {
3001
+ contents.description = (0, smithy_client_1.expectString)(data.description);
3002
+ }
3003
+ if (data.endTime != null) {
3004
+ contents.endTime = (0, smithy_client_1.expectString)(data.endTime);
3005
+ }
3006
+ if (data.imageBuildVersionArn != null) {
3007
+ contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
3008
+ }
3009
+ if (data.inputs != null) {
3010
+ contents.inputs = (0, smithy_client_1.expectString)(data.inputs);
3011
+ }
3012
+ if (data.message != null) {
3013
+ contents.message = (0, smithy_client_1.expectString)(data.message);
3014
+ }
3015
+ if (data.name != null) {
3016
+ contents.name = (0, smithy_client_1.expectString)(data.name);
3017
+ }
3018
+ if (data.onFailure != null) {
3019
+ contents.onFailure = (0, smithy_client_1.expectString)(data.onFailure);
3020
+ }
3021
+ if (data.outputs != null) {
3022
+ contents.outputs = (0, smithy_client_1.expectString)(data.outputs);
3023
+ }
3024
+ if (data.requestId != null) {
3025
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3026
+ }
3027
+ if (data.rollbackStatus != null) {
3028
+ contents.rollbackStatus = (0, smithy_client_1.expectString)(data.rollbackStatus);
3029
+ }
3030
+ if (data.startTime != null) {
3031
+ contents.startTime = (0, smithy_client_1.expectString)(data.startTime);
3032
+ }
3033
+ if (data.status != null) {
3034
+ contents.status = (0, smithy_client_1.expectString)(data.status);
3035
+ }
3036
+ if (data.stepExecutionId != null) {
3037
+ contents.stepExecutionId = (0, smithy_client_1.expectString)(data.stepExecutionId);
3038
+ }
3039
+ if (data.timeoutSeconds != null) {
3040
+ contents.timeoutSeconds = (0, smithy_client_1.expectInt32)(data.timeoutSeconds);
3041
+ }
3042
+ if (data.workflowBuildVersionArn != null) {
3043
+ contents.workflowBuildVersionArn = (0, smithy_client_1.expectString)(data.workflowBuildVersionArn);
3044
+ }
3045
+ if (data.workflowExecutionId != null) {
3046
+ contents.workflowExecutionId = (0, smithy_client_1.expectString)(data.workflowExecutionId);
3047
+ }
3048
+ return contents;
3049
+ };
3050
+ exports.deserializeAws_restJson1GetWorkflowStepExecutionCommand = deserializeAws_restJson1GetWorkflowStepExecutionCommand;
3051
+ const deserializeAws_restJson1GetWorkflowStepExecutionCommandError = async (output, context) => {
3052
+ const parsedOutput = {
3053
+ ...output,
3054
+ body: await parseErrorBody(output.body, context),
3055
+ };
3056
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3057
+ switch (errorCode) {
3058
+ case "CallRateLimitExceededException":
3059
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
3060
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
3061
+ case "ClientException":
3062
+ case "com.amazonaws.imagebuilder#ClientException":
3063
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
3064
+ case "ForbiddenException":
3065
+ case "com.amazonaws.imagebuilder#ForbiddenException":
3066
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3067
+ case "InvalidRequestException":
3068
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
3069
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
3070
+ case "ServiceException":
3071
+ case "com.amazonaws.imagebuilder#ServiceException":
3072
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
3073
+ case "ServiceUnavailableException":
3074
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
3075
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3076
+ default:
3077
+ const parsedBody = parsedOutput.body;
3078
+ (0, smithy_client_1.throwDefaultError)({
3079
+ output,
3080
+ parsedBody,
3081
+ exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
3082
+ errorCode,
3083
+ });
3084
+ }
3085
+ };
2761
3086
  const deserializeAws_restJson1ImportComponentCommand = async (output, context) => {
2762
3087
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2763
3088
  return deserializeAws_restJson1ImportComponentCommandError(output, context);
@@ -3457,16 +3782,16 @@ const deserializeAws_restJson1ListImagesCommandError = async (output, context) =
3457
3782
  });
3458
3783
  }
3459
3784
  };
3460
- const deserializeAws_restJson1ListInfrastructureConfigurationsCommand = async (output, context) => {
3785
+ const deserializeAws_restJson1ListImageScanFindingAggregationsCommand = async (output, context) => {
3461
3786
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3462
- return deserializeAws_restJson1ListInfrastructureConfigurationsCommandError(output, context);
3787
+ return deserializeAws_restJson1ListImageScanFindingAggregationsCommandError(output, context);
3463
3788
  }
3464
3789
  const contents = map({
3465
3790
  $metadata: deserializeMetadata(output),
3466
3791
  });
3467
3792
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3468
- if (data.infrastructureConfigurationSummaryList != null) {
3469
- contents.infrastructureConfigurationSummaryList = deserializeAws_restJson1InfrastructureConfigurationSummaryList(data.infrastructureConfigurationSummaryList, context);
3793
+ if (data.aggregationType != null) {
3794
+ contents.aggregationType = (0, smithy_client_1.expectString)(data.aggregationType);
3470
3795
  }
3471
3796
  if (data.nextToken != null) {
3472
3797
  contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
@@ -3474,10 +3799,13 @@ const deserializeAws_restJson1ListInfrastructureConfigurationsCommand = async (o
3474
3799
  if (data.requestId != null) {
3475
3800
  contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3476
3801
  }
3802
+ if (data.responses != null) {
3803
+ contents.responses = deserializeAws_restJson1ImageScanFindingAggregationsList(data.responses, context);
3804
+ }
3477
3805
  return contents;
3478
3806
  };
3479
- exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = deserializeAws_restJson1ListInfrastructureConfigurationsCommand;
3480
- const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = async (output, context) => {
3807
+ exports.deserializeAws_restJson1ListImageScanFindingAggregationsCommand = deserializeAws_restJson1ListImageScanFindingAggregationsCommand;
3808
+ const deserializeAws_restJson1ListImageScanFindingAggregationsCommandError = async (output, context) => {
3481
3809
  const parsedOutput = {
3482
3810
  ...output,
3483
3811
  body: await parseErrorBody(output.body, context),
@@ -3515,20 +3843,136 @@ const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = asy
3515
3843
  });
3516
3844
  }
3517
3845
  };
3518
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
3846
+ const deserializeAws_restJson1ListImageScanFindingsCommand = async (output, context) => {
3519
3847
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3520
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
3848
+ return deserializeAws_restJson1ListImageScanFindingsCommandError(output, context);
3521
3849
  }
3522
3850
  const contents = map({
3523
3851
  $metadata: deserializeMetadata(output),
3524
3852
  });
3525
3853
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3526
- if (data.tags != null) {
3527
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
3854
+ if (data.findings != null) {
3855
+ contents.findings = deserializeAws_restJson1ImageScanFindingsList(data.findings, context);
3856
+ }
3857
+ if (data.nextToken != null) {
3858
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3859
+ }
3860
+ if (data.requestId != null) {
3861
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3528
3862
  }
3529
3863
  return contents;
3530
3864
  };
3531
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
3865
+ exports.deserializeAws_restJson1ListImageScanFindingsCommand = deserializeAws_restJson1ListImageScanFindingsCommand;
3866
+ const deserializeAws_restJson1ListImageScanFindingsCommandError = async (output, context) => {
3867
+ const parsedOutput = {
3868
+ ...output,
3869
+ body: await parseErrorBody(output.body, context),
3870
+ };
3871
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3872
+ switch (errorCode) {
3873
+ case "CallRateLimitExceededException":
3874
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
3875
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
3876
+ case "ClientException":
3877
+ case "com.amazonaws.imagebuilder#ClientException":
3878
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
3879
+ case "ForbiddenException":
3880
+ case "com.amazonaws.imagebuilder#ForbiddenException":
3881
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3882
+ case "InvalidPaginationTokenException":
3883
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
3884
+ throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
3885
+ case "InvalidRequestException":
3886
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
3887
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
3888
+ case "ServiceException":
3889
+ case "com.amazonaws.imagebuilder#ServiceException":
3890
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
3891
+ case "ServiceUnavailableException":
3892
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
3893
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3894
+ default:
3895
+ const parsedBody = parsedOutput.body;
3896
+ (0, smithy_client_1.throwDefaultError)({
3897
+ output,
3898
+ parsedBody,
3899
+ exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
3900
+ errorCode,
3901
+ });
3902
+ }
3903
+ };
3904
+ const deserializeAws_restJson1ListInfrastructureConfigurationsCommand = async (output, context) => {
3905
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3906
+ return deserializeAws_restJson1ListInfrastructureConfigurationsCommandError(output, context);
3907
+ }
3908
+ const contents = map({
3909
+ $metadata: deserializeMetadata(output),
3910
+ });
3911
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3912
+ if (data.infrastructureConfigurationSummaryList != null) {
3913
+ contents.infrastructureConfigurationSummaryList = deserializeAws_restJson1InfrastructureConfigurationSummaryList(data.infrastructureConfigurationSummaryList, context);
3914
+ }
3915
+ if (data.nextToken != null) {
3916
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3917
+ }
3918
+ if (data.requestId != null) {
3919
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3920
+ }
3921
+ return contents;
3922
+ };
3923
+ exports.deserializeAws_restJson1ListInfrastructureConfigurationsCommand = deserializeAws_restJson1ListInfrastructureConfigurationsCommand;
3924
+ const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = async (output, context) => {
3925
+ const parsedOutput = {
3926
+ ...output,
3927
+ body: await parseErrorBody(output.body, context),
3928
+ };
3929
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3930
+ switch (errorCode) {
3931
+ case "CallRateLimitExceededException":
3932
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
3933
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
3934
+ case "ClientException":
3935
+ case "com.amazonaws.imagebuilder#ClientException":
3936
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
3937
+ case "ForbiddenException":
3938
+ case "com.amazonaws.imagebuilder#ForbiddenException":
3939
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3940
+ case "InvalidPaginationTokenException":
3941
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
3942
+ throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
3943
+ case "InvalidRequestException":
3944
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
3945
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
3946
+ case "ServiceException":
3947
+ case "com.amazonaws.imagebuilder#ServiceException":
3948
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
3949
+ case "ServiceUnavailableException":
3950
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
3951
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3952
+ default:
3953
+ const parsedBody = parsedOutput.body;
3954
+ (0, smithy_client_1.throwDefaultError)({
3955
+ output,
3956
+ parsedBody,
3957
+ exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
3958
+ errorCode,
3959
+ });
3960
+ }
3961
+ };
3962
+ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
3963
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3964
+ return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
3965
+ }
3966
+ const contents = map({
3967
+ $metadata: deserializeMetadata(output),
3968
+ });
3969
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3970
+ if (data.tags != null) {
3971
+ contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
3972
+ }
3973
+ return contents;
3974
+ };
3975
+ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
3532
3976
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
3533
3977
  const parsedOutput = {
3534
3978
  ...output,
@@ -3555,6 +3999,140 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3555
3999
  });
3556
4000
  }
3557
4001
  };
4002
+ const deserializeAws_restJson1ListWorkflowExecutionsCommand = async (output, context) => {
4003
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4004
+ return deserializeAws_restJson1ListWorkflowExecutionsCommandError(output, context);
4005
+ }
4006
+ const contents = map({
4007
+ $metadata: deserializeMetadata(output),
4008
+ });
4009
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4010
+ if (data.imageBuildVersionArn != null) {
4011
+ contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
4012
+ }
4013
+ if (data.message != null) {
4014
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4015
+ }
4016
+ if (data.nextToken != null) {
4017
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4018
+ }
4019
+ if (data.requestId != null) {
4020
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
4021
+ }
4022
+ if (data.workflowExecutions != null) {
4023
+ contents.workflowExecutions = deserializeAws_restJson1WorkflowExecutionsList(data.workflowExecutions, context);
4024
+ }
4025
+ return contents;
4026
+ };
4027
+ exports.deserializeAws_restJson1ListWorkflowExecutionsCommand = deserializeAws_restJson1ListWorkflowExecutionsCommand;
4028
+ const deserializeAws_restJson1ListWorkflowExecutionsCommandError = async (output, context) => {
4029
+ const parsedOutput = {
4030
+ ...output,
4031
+ body: await parseErrorBody(output.body, context),
4032
+ };
4033
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4034
+ switch (errorCode) {
4035
+ case "CallRateLimitExceededException":
4036
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4037
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
4038
+ case "ClientException":
4039
+ case "com.amazonaws.imagebuilder#ClientException":
4040
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
4041
+ case "ForbiddenException":
4042
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4043
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
4044
+ case "InvalidPaginationTokenException":
4045
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
4046
+ throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
4047
+ case "InvalidRequestException":
4048
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4049
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
4050
+ case "ServiceException":
4051
+ case "com.amazonaws.imagebuilder#ServiceException":
4052
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
4053
+ case "ServiceUnavailableException":
4054
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4055
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
4056
+ default:
4057
+ const parsedBody = parsedOutput.body;
4058
+ (0, smithy_client_1.throwDefaultError)({
4059
+ output,
4060
+ parsedBody,
4061
+ exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
4062
+ errorCode,
4063
+ });
4064
+ }
4065
+ };
4066
+ const deserializeAws_restJson1ListWorkflowStepExecutionsCommand = async (output, context) => {
4067
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4068
+ return deserializeAws_restJson1ListWorkflowStepExecutionsCommandError(output, context);
4069
+ }
4070
+ const contents = map({
4071
+ $metadata: deserializeMetadata(output),
4072
+ });
4073
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4074
+ if (data.imageBuildVersionArn != null) {
4075
+ contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
4076
+ }
4077
+ if (data.message != null) {
4078
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4079
+ }
4080
+ if (data.nextToken != null) {
4081
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4082
+ }
4083
+ if (data.requestId != null) {
4084
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
4085
+ }
4086
+ if (data.steps != null) {
4087
+ contents.steps = deserializeAws_restJson1WorkflowStepExecutionsList(data.steps, context);
4088
+ }
4089
+ if (data.workflowBuildVersionArn != null) {
4090
+ contents.workflowBuildVersionArn = (0, smithy_client_1.expectString)(data.workflowBuildVersionArn);
4091
+ }
4092
+ if (data.workflowExecutionId != null) {
4093
+ contents.workflowExecutionId = (0, smithy_client_1.expectString)(data.workflowExecutionId);
4094
+ }
4095
+ return contents;
4096
+ };
4097
+ exports.deserializeAws_restJson1ListWorkflowStepExecutionsCommand = deserializeAws_restJson1ListWorkflowStepExecutionsCommand;
4098
+ const deserializeAws_restJson1ListWorkflowStepExecutionsCommandError = async (output, context) => {
4099
+ const parsedOutput = {
4100
+ ...output,
4101
+ body: await parseErrorBody(output.body, context),
4102
+ };
4103
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4104
+ switch (errorCode) {
4105
+ case "CallRateLimitExceededException":
4106
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4107
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
4108
+ case "ClientException":
4109
+ case "com.amazonaws.imagebuilder#ClientException":
4110
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
4111
+ case "ForbiddenException":
4112
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4113
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
4114
+ case "InvalidPaginationTokenException":
4115
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
4116
+ throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
4117
+ case "InvalidRequestException":
4118
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4119
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
4120
+ case "ServiceException":
4121
+ case "com.amazonaws.imagebuilder#ServiceException":
4122
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
4123
+ case "ServiceUnavailableException":
4124
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4125
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
4126
+ default:
4127
+ const parsedBody = parsedOutput.body;
4128
+ (0, smithy_client_1.throwDefaultError)({
4129
+ output,
4130
+ parsedBody,
4131
+ exceptionCtor: ImagebuilderServiceException_1.ImagebuilderServiceException,
4132
+ errorCode,
4133
+ });
4134
+ }
4135
+ };
3558
4136
  const deserializeAws_restJson1PutComponentPolicyCommand = async (output, context) => {
3559
4137
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3560
4138
  return deserializeAws_restJson1PutComponentPolicyCommandError(output, context);
@@ -4433,6 +5011,14 @@ const serializeAws_restJson1EbsInstanceBlockDeviceSpecification = (input, contex
4433
5011
  ...(input.volumeType != null && { volumeType: input.volumeType }),
4434
5012
  };
4435
5013
  };
5014
+ const serializeAws_restJson1EcrConfiguration = (input, context) => {
5015
+ return {
5016
+ ...(input.containerTags != null && {
5017
+ containerTags: serializeAws_restJson1StringList(input.containerTags, context),
5018
+ }),
5019
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
5020
+ };
5021
+ };
4436
5022
  const serializeAws_restJson1FastLaunchConfiguration = (input, context) => {
4437
5023
  return {
4438
5024
  ...(input.accountId != null && { accountId: input.accountId }),
@@ -4485,6 +5071,34 @@ const serializeAws_restJson1FilterValues = (input, context) => {
4485
5071
  return entry;
4486
5072
  });
4487
5073
  };
5074
+ const serializeAws_restJson1ImageScanFindingsFilter = (input, context) => {
5075
+ return {
5076
+ ...(input.name != null && { name: input.name }),
5077
+ ...(input.values != null && { values: serializeAws_restJson1ImageScanFindingsFilterValues(input.values, context) }),
5078
+ };
5079
+ };
5080
+ const serializeAws_restJson1ImageScanFindingsFilterList = (input, context) => {
5081
+ return input
5082
+ .filter((e) => e != null)
5083
+ .map((entry) => {
5084
+ return serializeAws_restJson1ImageScanFindingsFilter(entry, context);
5085
+ });
5086
+ };
5087
+ const serializeAws_restJson1ImageScanFindingsFilterValues = (input, context) => {
5088
+ return input
5089
+ .filter((e) => e != null)
5090
+ .map((entry) => {
5091
+ return entry;
5092
+ });
5093
+ };
5094
+ const serializeAws_restJson1ImageScanningConfiguration = (input, context) => {
5095
+ return {
5096
+ ...(input.ecrConfiguration != null && {
5097
+ ecrConfiguration: serializeAws_restJson1EcrConfiguration(input.ecrConfiguration, context),
5098
+ }),
5099
+ ...(input.imageScanningEnabled != null && { imageScanningEnabled: input.imageScanningEnabled }),
5100
+ };
5101
+ };
4488
5102
  const serializeAws_restJson1ImageTestsConfiguration = (input, context) => {
4489
5103
  return {
4490
5104
  ...(input.imageTestsEnabled != null && { imageTestsEnabled: input.imageTestsEnabled }),
@@ -4652,6 +5266,14 @@ const serializeAws_restJson1TargetContainerRepository = (input, context) => {
4652
5266
  ...(input.service != null && { service: input.service }),
4653
5267
  };
4654
5268
  };
5269
+ const deserializeAws_restJson1AccountAggregation = (output, context) => {
5270
+ return {
5271
+ accountId: (0, smithy_client_1.expectString)(output.accountId),
5272
+ severityCounts: output.severityCounts != null
5273
+ ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
5274
+ : undefined,
5275
+ };
5276
+ };
4655
5277
  const deserializeAws_restJson1AccountList = (output, context) => {
4656
5278
  const retVal = (output || [])
4657
5279
  .filter((e) => e != null)
@@ -4939,6 +5561,54 @@ const deserializeAws_restJson1ContainerRecipeSummaryList = (output, context) =>
4939
5561
  });
4940
5562
  return retVal;
4941
5563
  };
5564
+ const deserializeAws_restJson1CvssScore = (output, context) => {
5565
+ return {
5566
+ baseScore: (0, smithy_client_1.limitedParseDouble)(output.baseScore),
5567
+ scoringVector: (0, smithy_client_1.expectString)(output.scoringVector),
5568
+ source: (0, smithy_client_1.expectString)(output.source),
5569
+ version: (0, smithy_client_1.expectString)(output.version),
5570
+ };
5571
+ };
5572
+ const deserializeAws_restJson1CvssScoreAdjustment = (output, context) => {
5573
+ return {
5574
+ metric: (0, smithy_client_1.expectString)(output.metric),
5575
+ reason: (0, smithy_client_1.expectString)(output.reason),
5576
+ };
5577
+ };
5578
+ const deserializeAws_restJson1CvssScoreAdjustmentList = (output, context) => {
5579
+ const retVal = (output || [])
5580
+ .filter((e) => e != null)
5581
+ .map((entry) => {
5582
+ if (entry === null) {
5583
+ return null;
5584
+ }
5585
+ return deserializeAws_restJson1CvssScoreAdjustment(entry, context);
5586
+ });
5587
+ return retVal;
5588
+ };
5589
+ const deserializeAws_restJson1CvssScoreDetails = (output, context) => {
5590
+ return {
5591
+ adjustments: output.adjustments != null
5592
+ ? deserializeAws_restJson1CvssScoreAdjustmentList(output.adjustments, context)
5593
+ : undefined,
5594
+ cvssSource: (0, smithy_client_1.expectString)(output.cvssSource),
5595
+ score: (0, smithy_client_1.limitedParseDouble)(output.score),
5596
+ scoreSource: (0, smithy_client_1.expectString)(output.scoreSource),
5597
+ scoringVector: (0, smithy_client_1.expectString)(output.scoringVector),
5598
+ version: (0, smithy_client_1.expectString)(output.version),
5599
+ };
5600
+ };
5601
+ const deserializeAws_restJson1CvssScoreList = (output, context) => {
5602
+ const retVal = (output || [])
5603
+ .filter((e) => e != null)
5604
+ .map((entry) => {
5605
+ if (entry === null) {
5606
+ return null;
5607
+ }
5608
+ return deserializeAws_restJson1CvssScore(entry, context);
5609
+ });
5610
+ return retVal;
5611
+ };
4942
5612
  const deserializeAws_restJson1Distribution = (output, context) => {
4943
5613
  return {
4944
5614
  amiDistributionConfiguration: output.amiDistributionConfiguration != null
@@ -5021,6 +5691,12 @@ const deserializeAws_restJson1EbsInstanceBlockDeviceSpecification = (output, con
5021
5691
  volumeType: (0, smithy_client_1.expectString)(output.volumeType),
5022
5692
  };
5023
5693
  };
5694
+ const deserializeAws_restJson1EcrConfiguration = (output, context) => {
5695
+ return {
5696
+ containerTags: output.containerTags != null ? deserializeAws_restJson1StringList(output.containerTags, context) : undefined,
5697
+ repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
5698
+ };
5699
+ };
5024
5700
  const deserializeAws_restJson1FastLaunchConfiguration = (output, context) => {
5025
5701
  return {
5026
5702
  accountId: (0, smithy_client_1.expectString)(output.accountId),
@@ -5070,6 +5746,9 @@ const deserializeAws_restJson1Image = (output, context) => {
5070
5746
  : undefined,
5071
5747
  enhancedImageMetadataEnabled: (0, smithy_client_1.expectBoolean)(output.enhancedImageMetadataEnabled),
5072
5748
  imageRecipe: output.imageRecipe != null ? deserializeAws_restJson1ImageRecipe(output.imageRecipe, context) : undefined,
5749
+ imageScanningConfiguration: output.imageScanningConfiguration != null
5750
+ ? deserializeAws_restJson1ImageScanningConfiguration(output.imageScanningConfiguration, context)
5751
+ : undefined,
5073
5752
  imageSource: (0, smithy_client_1.expectString)(output.imageSource),
5074
5753
  imageTestsConfiguration: output.imageTestsConfiguration != null
5075
5754
  ? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
@@ -5083,6 +5762,7 @@ const deserializeAws_restJson1Image = (output, context) => {
5083
5762
  ? deserializeAws_restJson1OutputResources(output.outputResources, context)
5084
5763
  : undefined,
5085
5764
  platform: (0, smithy_client_1.expectString)(output.platform),
5765
+ scanState: output.scanState != null ? deserializeAws_restJson1ImageScanState(output.scanState, context) : undefined,
5086
5766
  sourcePipelineArn: (0, smithy_client_1.expectString)(output.sourcePipelineArn),
5087
5767
  sourcePipelineName: (0, smithy_client_1.expectString)(output.sourcePipelineName),
5088
5768
  state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
@@ -5091,6 +5771,14 @@ const deserializeAws_restJson1Image = (output, context) => {
5091
5771
  version: (0, smithy_client_1.expectString)(output.version),
5092
5772
  };
5093
5773
  };
5774
+ const deserializeAws_restJson1ImageAggregation = (output, context) => {
5775
+ return {
5776
+ imageBuildVersionArn: (0, smithy_client_1.expectString)(output.imageBuildVersionArn),
5777
+ severityCounts: output.severityCounts != null
5778
+ ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
5779
+ : undefined,
5780
+ };
5781
+ };
5094
5782
  const deserializeAws_restJson1ImagePackage = (output, context) => {
5095
5783
  return {
5096
5784
  packageName: (0, smithy_client_1.expectString)(output.packageName),
@@ -5120,6 +5808,9 @@ const deserializeAws_restJson1ImagePipeline = (output, context) => {
5120
5808
  distributionConfigurationArn: (0, smithy_client_1.expectString)(output.distributionConfigurationArn),
5121
5809
  enhancedImageMetadataEnabled: (0, smithy_client_1.expectBoolean)(output.enhancedImageMetadataEnabled),
5122
5810
  imageRecipeArn: (0, smithy_client_1.expectString)(output.imageRecipeArn),
5811
+ imageScanningConfiguration: output.imageScanningConfiguration != null
5812
+ ? deserializeAws_restJson1ImageScanningConfiguration(output.imageScanningConfiguration, context)
5813
+ : undefined,
5123
5814
  imageTestsConfiguration: output.imageTestsConfiguration != null
5124
5815
  ? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
5125
5816
  : undefined,
@@ -5131,6 +5822,14 @@ const deserializeAws_restJson1ImagePipeline = (output, context) => {
5131
5822
  tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5132
5823
  };
5133
5824
  };
5825
+ const deserializeAws_restJson1ImagePipelineAggregation = (output, context) => {
5826
+ return {
5827
+ imagePipelineArn: (0, smithy_client_1.expectString)(output.imagePipelineArn),
5828
+ severityCounts: output.severityCounts != null
5829
+ ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
5830
+ : undefined,
5831
+ };
5832
+ };
5134
5833
  const deserializeAws_restJson1ImagePipelineList = (output, context) => {
5135
5834
  const retVal = (output || [])
5136
5835
  .filter((e) => e != null)
@@ -5188,6 +5887,82 @@ const deserializeAws_restJson1ImageRecipeSummaryList = (output, context) => {
5188
5887
  });
5189
5888
  return retVal;
5190
5889
  };
5890
+ const deserializeAws_restJson1ImageScanFinding = (output, context) => {
5891
+ return {
5892
+ awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
5893
+ description: (0, smithy_client_1.expectString)(output.description),
5894
+ firstObservedAt: output.firstObservedAt != null
5895
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstObservedAt)))
5896
+ : undefined,
5897
+ fixAvailable: (0, smithy_client_1.expectString)(output.fixAvailable),
5898
+ imageBuildVersionArn: (0, smithy_client_1.expectString)(output.imageBuildVersionArn),
5899
+ imagePipelineArn: (0, smithy_client_1.expectString)(output.imagePipelineArn),
5900
+ inspectorScore: (0, smithy_client_1.limitedParseDouble)(output.inspectorScore),
5901
+ inspectorScoreDetails: output.inspectorScoreDetails != null
5902
+ ? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
5903
+ : undefined,
5904
+ packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
5905
+ ? deserializeAws_restJson1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
5906
+ : undefined,
5907
+ remediation: output.remediation != null ? deserializeAws_restJson1Remediation(output.remediation, context) : undefined,
5908
+ severity: (0, smithy_client_1.expectString)(output.severity),
5909
+ title: (0, smithy_client_1.expectString)(output.title),
5910
+ type: (0, smithy_client_1.expectString)(output.type),
5911
+ updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
5912
+ };
5913
+ };
5914
+ const deserializeAws_restJson1ImageScanFindingAggregation = (output, context) => {
5915
+ return {
5916
+ accountAggregation: output.accountAggregation != null
5917
+ ? deserializeAws_restJson1AccountAggregation(output.accountAggregation, context)
5918
+ : undefined,
5919
+ imageAggregation: output.imageAggregation != null
5920
+ ? deserializeAws_restJson1ImageAggregation(output.imageAggregation, context)
5921
+ : undefined,
5922
+ imagePipelineAggregation: output.imagePipelineAggregation != null
5923
+ ? deserializeAws_restJson1ImagePipelineAggregation(output.imagePipelineAggregation, context)
5924
+ : undefined,
5925
+ vulnerabilityIdAggregation: output.vulnerabilityIdAggregation != null
5926
+ ? deserializeAws_restJson1VulnerabilityIdAggregation(output.vulnerabilityIdAggregation, context)
5927
+ : undefined,
5928
+ };
5929
+ };
5930
+ const deserializeAws_restJson1ImageScanFindingAggregationsList = (output, context) => {
5931
+ const retVal = (output || [])
5932
+ .filter((e) => e != null)
5933
+ .map((entry) => {
5934
+ if (entry === null) {
5935
+ return null;
5936
+ }
5937
+ return deserializeAws_restJson1ImageScanFindingAggregation(entry, context);
5938
+ });
5939
+ return retVal;
5940
+ };
5941
+ const deserializeAws_restJson1ImageScanFindingsList = (output, context) => {
5942
+ const retVal = (output || [])
5943
+ .filter((e) => e != null)
5944
+ .map((entry) => {
5945
+ if (entry === null) {
5946
+ return null;
5947
+ }
5948
+ return deserializeAws_restJson1ImageScanFinding(entry, context);
5949
+ });
5950
+ return retVal;
5951
+ };
5952
+ const deserializeAws_restJson1ImageScanningConfiguration = (output, context) => {
5953
+ return {
5954
+ ecrConfiguration: output.ecrConfiguration != null
5955
+ ? deserializeAws_restJson1EcrConfiguration(output.ecrConfiguration, context)
5956
+ : undefined,
5957
+ imageScanningEnabled: (0, smithy_client_1.expectBoolean)(output.imageScanningEnabled),
5958
+ };
5959
+ };
5960
+ const deserializeAws_restJson1ImageScanState = (output, context) => {
5961
+ return {
5962
+ reason: (0, smithy_client_1.expectString)(output.reason),
5963
+ status: (0, smithy_client_1.expectString)(output.status),
5964
+ };
5965
+ };
5191
5966
  const deserializeAws_restJson1ImageState = (output, context) => {
5192
5967
  return {
5193
5968
  reason: (0, smithy_client_1.expectString)(output.reason),
@@ -5307,6 +6082,11 @@ const deserializeAws_restJson1InfrastructureConfigurationSummaryList = (output,
5307
6082
  });
5308
6083
  return retVal;
5309
6084
  };
6085
+ const deserializeAws_restJson1InspectorScoreDetails = (output, context) => {
6086
+ return {
6087
+ adjustedCvss: output.adjustedCvss != null ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context) : undefined,
6088
+ };
6089
+ };
5310
6090
  const deserializeAws_restJson1InstanceBlockDeviceMapping = (output, context) => {
5311
6091
  return {
5312
6092
  deviceName: (0, smithy_client_1.expectString)(output.deviceName),
@@ -5397,6 +6177,17 @@ const deserializeAws_restJson1Logging = (output, context) => {
5397
6177
  s3Logs: output.s3Logs != null ? deserializeAws_restJson1S3Logs(output.s3Logs, context) : undefined,
5398
6178
  };
5399
6179
  };
6180
+ const deserializeAws_restJson1NonEmptyStringList = (output, context) => {
6181
+ const retVal = (output || [])
6182
+ .filter((e) => e != null)
6183
+ .map((entry) => {
6184
+ if (entry === null) {
6185
+ return null;
6186
+ }
6187
+ return (0, smithy_client_1.expectString)(entry);
6188
+ });
6189
+ return retVal;
6190
+ };
5400
6191
  const deserializeAws_restJson1OrganizationalUnitArnList = (output, context) => {
5401
6192
  const retVal = (output || [])
5402
6193
  .filter((e) => e != null)
@@ -5436,6 +6227,30 @@ const deserializeAws_restJson1OutputResources = (output, context) => {
5436
6227
  containers: output.containers != null ? deserializeAws_restJson1ContainerList(output.containers, context) : undefined,
5437
6228
  };
5438
6229
  };
6230
+ const deserializeAws_restJson1PackageVulnerabilityDetails = (output, context) => {
6231
+ return {
6232
+ cvss: output.cvss != null ? deserializeAws_restJson1CvssScoreList(output.cvss, context) : undefined,
6233
+ referenceUrls: output.referenceUrls != null
6234
+ ? deserializeAws_restJson1NonEmptyStringList(output.referenceUrls, context)
6235
+ : undefined,
6236
+ relatedVulnerabilities: output.relatedVulnerabilities != null
6237
+ ? deserializeAws_restJson1VulnerabilityIdList(output.relatedVulnerabilities, context)
6238
+ : undefined,
6239
+ source: (0, smithy_client_1.expectString)(output.source),
6240
+ sourceUrl: (0, smithy_client_1.expectString)(output.sourceUrl),
6241
+ vendorCreatedAt: output.vendorCreatedAt != null
6242
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorCreatedAt)))
6243
+ : undefined,
6244
+ vendorSeverity: (0, smithy_client_1.expectString)(output.vendorSeverity),
6245
+ vendorUpdatedAt: output.vendorUpdatedAt != null
6246
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorUpdatedAt)))
6247
+ : undefined,
6248
+ vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
6249
+ vulnerablePackages: output.vulnerablePackages != null
6250
+ ? deserializeAws_restJson1VulnerablePackageList(output.vulnerablePackages, context)
6251
+ : undefined,
6252
+ };
6253
+ };
5439
6254
  const deserializeAws_restJson1RegionList = (output, context) => {
5440
6255
  const retVal = (output || [])
5441
6256
  .filter((e) => e != null)
@@ -5447,6 +6262,19 @@ const deserializeAws_restJson1RegionList = (output, context) => {
5447
6262
  });
5448
6263
  return retVal;
5449
6264
  };
6265
+ const deserializeAws_restJson1Remediation = (output, context) => {
6266
+ return {
6267
+ recommendation: output.recommendation != null
6268
+ ? deserializeAws_restJson1RemediationRecommendation(output.recommendation, context)
6269
+ : undefined,
6270
+ };
6271
+ };
6272
+ const deserializeAws_restJson1RemediationRecommendation = (output, context) => {
6273
+ return {
6274
+ text: (0, smithy_client_1.expectString)(output.text),
6275
+ url: (0, smithy_client_1.expectString)(output.url),
6276
+ };
6277
+ };
5450
6278
  const deserializeAws_restJson1ResourceTagMap = (output, context) => {
5451
6279
  return Object.entries(output).reduce((acc, [key, value]) => {
5452
6280
  if (value === null) {
@@ -5488,6 +6316,14 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
5488
6316
  });
5489
6317
  return retVal;
5490
6318
  };
6319
+ const deserializeAws_restJson1SeverityCounts = (output, context) => {
6320
+ return {
6321
+ all: (0, smithy_client_1.expectLong)(output.all),
6322
+ critical: (0, smithy_client_1.expectLong)(output.critical),
6323
+ high: (0, smithy_client_1.expectLong)(output.high),
6324
+ medium: (0, smithy_client_1.expectLong)(output.medium),
6325
+ };
6326
+ };
5491
6327
  const deserializeAws_restJson1StringList = (output, context) => {
5492
6328
  const retVal = (output || [])
5493
6329
  .filter((e) => e != null)
@@ -5519,6 +6355,102 @@ const deserializeAws_restJson1TargetContainerRepository = (output, context) => {
5519
6355
  service: (0, smithy_client_1.expectString)(output.service),
5520
6356
  };
5521
6357
  };
6358
+ const deserializeAws_restJson1VulnerabilityIdAggregation = (output, context) => {
6359
+ return {
6360
+ severityCounts: output.severityCounts != null
6361
+ ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
6362
+ : undefined,
6363
+ vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
6364
+ };
6365
+ };
6366
+ const deserializeAws_restJson1VulnerabilityIdList = (output, context) => {
6367
+ const retVal = (output || [])
6368
+ .filter((e) => e != null)
6369
+ .map((entry) => {
6370
+ if (entry === null) {
6371
+ return null;
6372
+ }
6373
+ return (0, smithy_client_1.expectString)(entry);
6374
+ });
6375
+ return retVal;
6376
+ };
6377
+ const deserializeAws_restJson1VulnerablePackage = (output, context) => {
6378
+ return {
6379
+ arch: (0, smithy_client_1.expectString)(output.arch),
6380
+ epoch: (0, smithy_client_1.expectInt32)(output.epoch),
6381
+ filePath: (0, smithy_client_1.expectString)(output.filePath),
6382
+ fixedInVersion: (0, smithy_client_1.expectString)(output.fixedInVersion),
6383
+ name: (0, smithy_client_1.expectString)(output.name),
6384
+ packageManager: (0, smithy_client_1.expectString)(output.packageManager),
6385
+ release: (0, smithy_client_1.expectString)(output.release),
6386
+ remediation: (0, smithy_client_1.expectString)(output.remediation),
6387
+ sourceLayerHash: (0, smithy_client_1.expectString)(output.sourceLayerHash),
6388
+ version: (0, smithy_client_1.expectString)(output.version),
6389
+ };
6390
+ };
6391
+ const deserializeAws_restJson1VulnerablePackageList = (output, context) => {
6392
+ const retVal = (output || [])
6393
+ .filter((e) => e != null)
6394
+ .map((entry) => {
6395
+ if (entry === null) {
6396
+ return null;
6397
+ }
6398
+ return deserializeAws_restJson1VulnerablePackage(entry, context);
6399
+ });
6400
+ return retVal;
6401
+ };
6402
+ const deserializeAws_restJson1WorkflowExecutionMetadata = (output, context) => {
6403
+ return {
6404
+ endTime: (0, smithy_client_1.expectString)(output.endTime),
6405
+ message: (0, smithy_client_1.expectString)(output.message),
6406
+ startTime: (0, smithy_client_1.expectString)(output.startTime),
6407
+ status: (0, smithy_client_1.expectString)(output.status),
6408
+ totalStepCount: (0, smithy_client_1.expectInt32)(output.totalStepCount),
6409
+ totalStepsFailed: (0, smithy_client_1.expectInt32)(output.totalStepsFailed),
6410
+ totalStepsSkipped: (0, smithy_client_1.expectInt32)(output.totalStepsSkipped),
6411
+ totalStepsSucceeded: (0, smithy_client_1.expectInt32)(output.totalStepsSucceeded),
6412
+ type: (0, smithy_client_1.expectString)(output.type),
6413
+ workflowBuildVersionArn: (0, smithy_client_1.expectString)(output.workflowBuildVersionArn),
6414
+ workflowExecutionId: (0, smithy_client_1.expectString)(output.workflowExecutionId),
6415
+ };
6416
+ };
6417
+ const deserializeAws_restJson1WorkflowExecutionsList = (output, context) => {
6418
+ const retVal = (output || [])
6419
+ .filter((e) => e != null)
6420
+ .map((entry) => {
6421
+ if (entry === null) {
6422
+ return null;
6423
+ }
6424
+ return deserializeAws_restJson1WorkflowExecutionMetadata(entry, context);
6425
+ });
6426
+ return retVal;
6427
+ };
6428
+ const deserializeAws_restJson1WorkflowStepExecutionsList = (output, context) => {
6429
+ const retVal = (output || [])
6430
+ .filter((e) => e != null)
6431
+ .map((entry) => {
6432
+ if (entry === null) {
6433
+ return null;
6434
+ }
6435
+ return deserializeAws_restJson1WorkflowStepMetadata(entry, context);
6436
+ });
6437
+ return retVal;
6438
+ };
6439
+ const deserializeAws_restJson1WorkflowStepMetadata = (output, context) => {
6440
+ return {
6441
+ action: (0, smithy_client_1.expectString)(output.action),
6442
+ description: (0, smithy_client_1.expectString)(output.description),
6443
+ endTime: (0, smithy_client_1.expectString)(output.endTime),
6444
+ inputs: (0, smithy_client_1.expectString)(output.inputs),
6445
+ message: (0, smithy_client_1.expectString)(output.message),
6446
+ name: (0, smithy_client_1.expectString)(output.name),
6447
+ outputs: (0, smithy_client_1.expectString)(output.outputs),
6448
+ rollbackStatus: (0, smithy_client_1.expectString)(output.rollbackStatus),
6449
+ startTime: (0, smithy_client_1.expectString)(output.startTime),
6450
+ status: (0, smithy_client_1.expectString)(output.status),
6451
+ stepExecutionId: (0, smithy_client_1.expectString)(output.stepExecutionId),
6452
+ };
6453
+ };
5522
6454
  const deserializeMetadata = (output) => ({
5523
6455
  httpStatusCode: output.statusCode,
5524
6456
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],