@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,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { ImagebuilderServiceException as __BaseException } from "../models/ImagebuilderServiceException";
5
5
  import { CallRateLimitExceededException, ClientException, ForbiddenException, IdempotentParameterMismatchException, InvalidPaginationTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidParameterValueException, InvalidRequestException, InvalidVersionNumberException, ResourceAlreadyExistsException, ResourceDependencyException, ResourceInUseException, ResourceNotFoundException, ServiceException, ServiceQuotaExceededException, ServiceUnavailableException, } from "../models/models_0";
@@ -140,6 +140,9 @@ export const serializeAws_restJson1CreateImageCommand = async (input, context) =
140
140
  enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
141
141
  }),
142
142
  ...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
143
+ ...(input.imageScanningConfiguration != null && {
144
+ imageScanningConfiguration: serializeAws_restJson1ImageScanningConfiguration(input.imageScanningConfiguration, context),
145
+ }),
143
146
  ...(input.imageTestsConfiguration != null && {
144
147
  imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
145
148
  }),
@@ -176,6 +179,9 @@ export const serializeAws_restJson1CreateImagePipelineCommand = async (input, co
176
179
  enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
177
180
  }),
178
181
  ...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
182
+ ...(input.imageScanningConfiguration != null && {
183
+ imageScanningConfiguration: serializeAws_restJson1ImageScanningConfiguration(input.imageScanningConfiguration, context),
184
+ }),
179
185
  ...(input.imageTestsConfiguration != null && {
180
186
  imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
181
187
  }),
@@ -627,6 +633,44 @@ export const serializeAws_restJson1GetInfrastructureConfigurationCommand = async
627
633
  body,
628
634
  });
629
635
  };
636
+ export const serializeAws_restJson1GetWorkflowExecutionCommand = async (input, context) => {
637
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
638
+ const headers = {};
639
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflowExecution";
640
+ const query = map({
641
+ workflowExecutionId: [, __expectNonNull(input.workflowExecutionId, `workflowExecutionId`)],
642
+ });
643
+ let body;
644
+ return new __HttpRequest({
645
+ protocol,
646
+ hostname,
647
+ port,
648
+ method: "GET",
649
+ headers,
650
+ path: resolvedPath,
651
+ query,
652
+ body,
653
+ });
654
+ };
655
+ export const serializeAws_restJson1GetWorkflowStepExecutionCommand = async (input, context) => {
656
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
657
+ const headers = {};
658
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetWorkflowStepExecution";
659
+ const query = map({
660
+ stepExecutionId: [, __expectNonNull(input.stepExecutionId, `stepExecutionId`)],
661
+ });
662
+ let body;
663
+ return new __HttpRequest({
664
+ protocol,
665
+ hostname,
666
+ port,
667
+ method: "GET",
668
+ headers,
669
+ path: resolvedPath,
670
+ query,
671
+ body,
672
+ });
673
+ };
630
674
  export const serializeAws_restJson1ImportComponentCommand = async (input, context) => {
631
675
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
632
676
  const headers = {
@@ -914,6 +958,51 @@ export const serializeAws_restJson1ListImagesCommand = async (input, context) =>
914
958
  body,
915
959
  });
916
960
  };
961
+ export const serializeAws_restJson1ListImageScanFindingAggregationsCommand = async (input, context) => {
962
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
963
+ const headers = {
964
+ "content-type": "application/json",
965
+ };
966
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageScanFindingAggregations";
967
+ let body;
968
+ body = JSON.stringify({
969
+ ...(input.filter != null && { filter: serializeAws_restJson1Filter(input.filter, context) }),
970
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
971
+ });
972
+ return new __HttpRequest({
973
+ protocol,
974
+ hostname,
975
+ port,
976
+ method: "POST",
977
+ headers,
978
+ path: resolvedPath,
979
+ body,
980
+ });
981
+ };
982
+ export const serializeAws_restJson1ListImageScanFindingsCommand = async (input, context) => {
983
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
984
+ const headers = {
985
+ "content-type": "application/json",
986
+ };
987
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageScanFindings";
988
+ let body;
989
+ body = JSON.stringify({
990
+ ...(input.filters != null && {
991
+ filters: serializeAws_restJson1ImageScanFindingsFilterList(input.filters, context),
992
+ }),
993
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
994
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
995
+ });
996
+ return new __HttpRequest({
997
+ protocol,
998
+ hostname,
999
+ port,
1000
+ method: "POST",
1001
+ headers,
1002
+ path: resolvedPath,
1003
+ body,
1004
+ });
1005
+ };
917
1006
  export const serializeAws_restJson1ListInfrastructureConfigurationsCommand = async (input, context) => {
918
1007
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
919
1008
  const headers = {
@@ -952,6 +1041,50 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
952
1041
  body,
953
1042
  });
954
1043
  };
1044
+ export const serializeAws_restJson1ListWorkflowExecutionsCommand = async (input, context) => {
1045
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1046
+ const headers = {
1047
+ "content-type": "application/json",
1048
+ };
1049
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowExecutions";
1050
+ let body;
1051
+ body = JSON.stringify({
1052
+ ...(input.imageBuildVersionArn != null && { imageBuildVersionArn: input.imageBuildVersionArn }),
1053
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
1054
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
1055
+ });
1056
+ return new __HttpRequest({
1057
+ protocol,
1058
+ hostname,
1059
+ port,
1060
+ method: "POST",
1061
+ headers,
1062
+ path: resolvedPath,
1063
+ body,
1064
+ });
1065
+ };
1066
+ export const serializeAws_restJson1ListWorkflowStepExecutionsCommand = async (input, context) => {
1067
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1068
+ const headers = {
1069
+ "content-type": "application/json",
1070
+ };
1071
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWorkflowStepExecutions";
1072
+ let body;
1073
+ body = JSON.stringify({
1074
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
1075
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
1076
+ ...(input.workflowExecutionId != null && { workflowExecutionId: input.workflowExecutionId }),
1077
+ });
1078
+ return new __HttpRequest({
1079
+ protocol,
1080
+ hostname,
1081
+ port,
1082
+ method: "POST",
1083
+ headers,
1084
+ path: resolvedPath,
1085
+ body,
1086
+ });
1087
+ };
955
1088
  export const serializeAws_restJson1PutComponentPolicyCommand = async (input, context) => {
956
1089
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
957
1090
  const headers = {
@@ -1147,6 +1280,9 @@ export const serializeAws_restJson1UpdateImagePipelineCommand = async (input, co
1147
1280
  }),
1148
1281
  ...(input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn }),
1149
1282
  ...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
1283
+ ...(input.imageScanningConfiguration != null && {
1284
+ imageScanningConfiguration: serializeAws_restJson1ImageScanningConfiguration(input.imageScanningConfiguration, context),
1285
+ }),
1150
1286
  ...(input.imageTestsConfiguration != null && {
1151
1287
  imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
1152
1288
  }),
@@ -2678,6 +2814,186 @@ const deserializeAws_restJson1GetInfrastructureConfigurationCommandError = async
2678
2814
  });
2679
2815
  }
2680
2816
  };
2817
+ export const deserializeAws_restJson1GetWorkflowExecutionCommand = async (output, context) => {
2818
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2819
+ return deserializeAws_restJson1GetWorkflowExecutionCommandError(output, context);
2820
+ }
2821
+ const contents = map({
2822
+ $metadata: deserializeMetadata(output),
2823
+ });
2824
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2825
+ if (data.endTime != null) {
2826
+ contents.endTime = __expectString(data.endTime);
2827
+ }
2828
+ if (data.imageBuildVersionArn != null) {
2829
+ contents.imageBuildVersionArn = __expectString(data.imageBuildVersionArn);
2830
+ }
2831
+ if (data.message != null) {
2832
+ contents.message = __expectString(data.message);
2833
+ }
2834
+ if (data.requestId != null) {
2835
+ contents.requestId = __expectString(data.requestId);
2836
+ }
2837
+ if (data.startTime != null) {
2838
+ contents.startTime = __expectString(data.startTime);
2839
+ }
2840
+ if (data.status != null) {
2841
+ contents.status = __expectString(data.status);
2842
+ }
2843
+ if (data.totalStepCount != null) {
2844
+ contents.totalStepCount = __expectInt32(data.totalStepCount);
2845
+ }
2846
+ if (data.totalStepsFailed != null) {
2847
+ contents.totalStepsFailed = __expectInt32(data.totalStepsFailed);
2848
+ }
2849
+ if (data.totalStepsSkipped != null) {
2850
+ contents.totalStepsSkipped = __expectInt32(data.totalStepsSkipped);
2851
+ }
2852
+ if (data.totalStepsSucceeded != null) {
2853
+ contents.totalStepsSucceeded = __expectInt32(data.totalStepsSucceeded);
2854
+ }
2855
+ if (data.type != null) {
2856
+ contents.type = __expectString(data.type);
2857
+ }
2858
+ if (data.workflowBuildVersionArn != null) {
2859
+ contents.workflowBuildVersionArn = __expectString(data.workflowBuildVersionArn);
2860
+ }
2861
+ if (data.workflowExecutionId != null) {
2862
+ contents.workflowExecutionId = __expectString(data.workflowExecutionId);
2863
+ }
2864
+ return contents;
2865
+ };
2866
+ const deserializeAws_restJson1GetWorkflowExecutionCommandError = async (output, context) => {
2867
+ const parsedOutput = {
2868
+ ...output,
2869
+ body: await parseErrorBody(output.body, context),
2870
+ };
2871
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2872
+ switch (errorCode) {
2873
+ case "CallRateLimitExceededException":
2874
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
2875
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
2876
+ case "ClientException":
2877
+ case "com.amazonaws.imagebuilder#ClientException":
2878
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
2879
+ case "ForbiddenException":
2880
+ case "com.amazonaws.imagebuilder#ForbiddenException":
2881
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2882
+ case "InvalidRequestException":
2883
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
2884
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
2885
+ case "ServiceException":
2886
+ case "com.amazonaws.imagebuilder#ServiceException":
2887
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
2888
+ case "ServiceUnavailableException":
2889
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
2890
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2891
+ default:
2892
+ const parsedBody = parsedOutput.body;
2893
+ throwDefaultError({
2894
+ output,
2895
+ parsedBody,
2896
+ exceptionCtor: __BaseException,
2897
+ errorCode,
2898
+ });
2899
+ }
2900
+ };
2901
+ export const deserializeAws_restJson1GetWorkflowStepExecutionCommand = async (output, context) => {
2902
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2903
+ return deserializeAws_restJson1GetWorkflowStepExecutionCommandError(output, context);
2904
+ }
2905
+ const contents = map({
2906
+ $metadata: deserializeMetadata(output),
2907
+ });
2908
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2909
+ if (data.action != null) {
2910
+ contents.action = __expectString(data.action);
2911
+ }
2912
+ if (data.description != null) {
2913
+ contents.description = __expectString(data.description);
2914
+ }
2915
+ if (data.endTime != null) {
2916
+ contents.endTime = __expectString(data.endTime);
2917
+ }
2918
+ if (data.imageBuildVersionArn != null) {
2919
+ contents.imageBuildVersionArn = __expectString(data.imageBuildVersionArn);
2920
+ }
2921
+ if (data.inputs != null) {
2922
+ contents.inputs = __expectString(data.inputs);
2923
+ }
2924
+ if (data.message != null) {
2925
+ contents.message = __expectString(data.message);
2926
+ }
2927
+ if (data.name != null) {
2928
+ contents.name = __expectString(data.name);
2929
+ }
2930
+ if (data.onFailure != null) {
2931
+ contents.onFailure = __expectString(data.onFailure);
2932
+ }
2933
+ if (data.outputs != null) {
2934
+ contents.outputs = __expectString(data.outputs);
2935
+ }
2936
+ if (data.requestId != null) {
2937
+ contents.requestId = __expectString(data.requestId);
2938
+ }
2939
+ if (data.rollbackStatus != null) {
2940
+ contents.rollbackStatus = __expectString(data.rollbackStatus);
2941
+ }
2942
+ if (data.startTime != null) {
2943
+ contents.startTime = __expectString(data.startTime);
2944
+ }
2945
+ if (data.status != null) {
2946
+ contents.status = __expectString(data.status);
2947
+ }
2948
+ if (data.stepExecutionId != null) {
2949
+ contents.stepExecutionId = __expectString(data.stepExecutionId);
2950
+ }
2951
+ if (data.timeoutSeconds != null) {
2952
+ contents.timeoutSeconds = __expectInt32(data.timeoutSeconds);
2953
+ }
2954
+ if (data.workflowBuildVersionArn != null) {
2955
+ contents.workflowBuildVersionArn = __expectString(data.workflowBuildVersionArn);
2956
+ }
2957
+ if (data.workflowExecutionId != null) {
2958
+ contents.workflowExecutionId = __expectString(data.workflowExecutionId);
2959
+ }
2960
+ return contents;
2961
+ };
2962
+ const deserializeAws_restJson1GetWorkflowStepExecutionCommandError = async (output, context) => {
2963
+ const parsedOutput = {
2964
+ ...output,
2965
+ body: await parseErrorBody(output.body, context),
2966
+ };
2967
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2968
+ switch (errorCode) {
2969
+ case "CallRateLimitExceededException":
2970
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
2971
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
2972
+ case "ClientException":
2973
+ case "com.amazonaws.imagebuilder#ClientException":
2974
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
2975
+ case "ForbiddenException":
2976
+ case "com.amazonaws.imagebuilder#ForbiddenException":
2977
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2978
+ case "InvalidRequestException":
2979
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
2980
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
2981
+ case "ServiceException":
2982
+ case "com.amazonaws.imagebuilder#ServiceException":
2983
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
2984
+ case "ServiceUnavailableException":
2985
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
2986
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2987
+ default:
2988
+ const parsedBody = parsedOutput.body;
2989
+ throwDefaultError({
2990
+ output,
2991
+ parsedBody,
2992
+ exceptionCtor: __BaseException,
2993
+ errorCode,
2994
+ });
2995
+ }
2996
+ };
2681
2997
  export const deserializeAws_restJson1ImportComponentCommand = async (output, context) => {
2682
2998
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2683
2999
  return deserializeAws_restJson1ImportComponentCommandError(output, context);
@@ -3365,16 +3681,16 @@ const deserializeAws_restJson1ListImagesCommandError = async (output, context) =
3365
3681
  });
3366
3682
  }
3367
3683
  };
3368
- export const deserializeAws_restJson1ListInfrastructureConfigurationsCommand = async (output, context) => {
3684
+ export const deserializeAws_restJson1ListImageScanFindingAggregationsCommand = async (output, context) => {
3369
3685
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3370
- return deserializeAws_restJson1ListInfrastructureConfigurationsCommandError(output, context);
3686
+ return deserializeAws_restJson1ListImageScanFindingAggregationsCommandError(output, context);
3371
3687
  }
3372
3688
  const contents = map({
3373
3689
  $metadata: deserializeMetadata(output),
3374
3690
  });
3375
3691
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3376
- if (data.infrastructureConfigurationSummaryList != null) {
3377
- contents.infrastructureConfigurationSummaryList = deserializeAws_restJson1InfrastructureConfigurationSummaryList(data.infrastructureConfigurationSummaryList, context);
3692
+ if (data.aggregationType != null) {
3693
+ contents.aggregationType = __expectString(data.aggregationType);
3378
3694
  }
3379
3695
  if (data.nextToken != null) {
3380
3696
  contents.nextToken = __expectString(data.nextToken);
@@ -3382,9 +3698,12 @@ export const deserializeAws_restJson1ListInfrastructureConfigurationsCommand = a
3382
3698
  if (data.requestId != null) {
3383
3699
  contents.requestId = __expectString(data.requestId);
3384
3700
  }
3701
+ if (data.responses != null) {
3702
+ contents.responses = deserializeAws_restJson1ImageScanFindingAggregationsList(data.responses, context);
3703
+ }
3385
3704
  return contents;
3386
3705
  };
3387
- const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = async (output, context) => {
3706
+ const deserializeAws_restJson1ListImageScanFindingAggregationsCommandError = async (output, context) => {
3388
3707
  const parsedOutput = {
3389
3708
  ...output,
3390
3709
  body: await parseErrorBody(output.body, context),
@@ -3422,27 +3741,141 @@ const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = asy
3422
3741
  });
3423
3742
  }
3424
3743
  };
3425
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
3744
+ export const deserializeAws_restJson1ListImageScanFindingsCommand = async (output, context) => {
3426
3745
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3427
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
3746
+ return deserializeAws_restJson1ListImageScanFindingsCommandError(output, context);
3428
3747
  }
3429
3748
  const contents = map({
3430
3749
  $metadata: deserializeMetadata(output),
3431
3750
  });
3432
3751
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3433
- if (data.tags != null) {
3434
- contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
3752
+ if (data.findings != null) {
3753
+ contents.findings = deserializeAws_restJson1ImageScanFindingsList(data.findings, context);
3754
+ }
3755
+ if (data.nextToken != null) {
3756
+ contents.nextToken = __expectString(data.nextToken);
3757
+ }
3758
+ if (data.requestId != null) {
3759
+ contents.requestId = __expectString(data.requestId);
3435
3760
  }
3436
3761
  return contents;
3437
3762
  };
3438
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
3763
+ const deserializeAws_restJson1ListImageScanFindingsCommandError = async (output, context) => {
3439
3764
  const parsedOutput = {
3440
3765
  ...output,
3441
3766
  body: await parseErrorBody(output.body, context),
3442
3767
  };
3443
3768
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3444
3769
  switch (errorCode) {
3445
- case "InvalidParameterException":
3770
+ case "CallRateLimitExceededException":
3771
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
3772
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
3773
+ case "ClientException":
3774
+ case "com.amazonaws.imagebuilder#ClientException":
3775
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
3776
+ case "ForbiddenException":
3777
+ case "com.amazonaws.imagebuilder#ForbiddenException":
3778
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3779
+ case "InvalidPaginationTokenException":
3780
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
3781
+ throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
3782
+ case "InvalidRequestException":
3783
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
3784
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
3785
+ case "ServiceException":
3786
+ case "com.amazonaws.imagebuilder#ServiceException":
3787
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
3788
+ case "ServiceUnavailableException":
3789
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
3790
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3791
+ default:
3792
+ const parsedBody = parsedOutput.body;
3793
+ throwDefaultError({
3794
+ output,
3795
+ parsedBody,
3796
+ exceptionCtor: __BaseException,
3797
+ errorCode,
3798
+ });
3799
+ }
3800
+ };
3801
+ export const deserializeAws_restJson1ListInfrastructureConfigurationsCommand = async (output, context) => {
3802
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3803
+ return deserializeAws_restJson1ListInfrastructureConfigurationsCommandError(output, context);
3804
+ }
3805
+ const contents = map({
3806
+ $metadata: deserializeMetadata(output),
3807
+ });
3808
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3809
+ if (data.infrastructureConfigurationSummaryList != null) {
3810
+ contents.infrastructureConfigurationSummaryList = deserializeAws_restJson1InfrastructureConfigurationSummaryList(data.infrastructureConfigurationSummaryList, context);
3811
+ }
3812
+ if (data.nextToken != null) {
3813
+ contents.nextToken = __expectString(data.nextToken);
3814
+ }
3815
+ if (data.requestId != null) {
3816
+ contents.requestId = __expectString(data.requestId);
3817
+ }
3818
+ return contents;
3819
+ };
3820
+ const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = async (output, context) => {
3821
+ const parsedOutput = {
3822
+ ...output,
3823
+ body: await parseErrorBody(output.body, context),
3824
+ };
3825
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3826
+ switch (errorCode) {
3827
+ case "CallRateLimitExceededException":
3828
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
3829
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
3830
+ case "ClientException":
3831
+ case "com.amazonaws.imagebuilder#ClientException":
3832
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
3833
+ case "ForbiddenException":
3834
+ case "com.amazonaws.imagebuilder#ForbiddenException":
3835
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3836
+ case "InvalidPaginationTokenException":
3837
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
3838
+ throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
3839
+ case "InvalidRequestException":
3840
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
3841
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
3842
+ case "ServiceException":
3843
+ case "com.amazonaws.imagebuilder#ServiceException":
3844
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
3845
+ case "ServiceUnavailableException":
3846
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
3847
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3848
+ default:
3849
+ const parsedBody = parsedOutput.body;
3850
+ throwDefaultError({
3851
+ output,
3852
+ parsedBody,
3853
+ exceptionCtor: __BaseException,
3854
+ errorCode,
3855
+ });
3856
+ }
3857
+ };
3858
+ export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
3859
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3860
+ return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
3861
+ }
3862
+ const contents = map({
3863
+ $metadata: deserializeMetadata(output),
3864
+ });
3865
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3866
+ if (data.tags != null) {
3867
+ contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
3868
+ }
3869
+ return contents;
3870
+ };
3871
+ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
3872
+ const parsedOutput = {
3873
+ ...output,
3874
+ body: await parseErrorBody(output.body, context),
3875
+ };
3876
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3877
+ switch (errorCode) {
3878
+ case "InvalidParameterException":
3446
3879
  case "com.amazonaws.imagebuilder#InvalidParameterException":
3447
3880
  throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
3448
3881
  case "ResourceNotFoundException":
@@ -3461,6 +3894,138 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3461
3894
  });
3462
3895
  }
3463
3896
  };
3897
+ export const deserializeAws_restJson1ListWorkflowExecutionsCommand = async (output, context) => {
3898
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3899
+ return deserializeAws_restJson1ListWorkflowExecutionsCommandError(output, context);
3900
+ }
3901
+ const contents = map({
3902
+ $metadata: deserializeMetadata(output),
3903
+ });
3904
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3905
+ if (data.imageBuildVersionArn != null) {
3906
+ contents.imageBuildVersionArn = __expectString(data.imageBuildVersionArn);
3907
+ }
3908
+ if (data.message != null) {
3909
+ contents.message = __expectString(data.message);
3910
+ }
3911
+ if (data.nextToken != null) {
3912
+ contents.nextToken = __expectString(data.nextToken);
3913
+ }
3914
+ if (data.requestId != null) {
3915
+ contents.requestId = __expectString(data.requestId);
3916
+ }
3917
+ if (data.workflowExecutions != null) {
3918
+ contents.workflowExecutions = deserializeAws_restJson1WorkflowExecutionsList(data.workflowExecutions, context);
3919
+ }
3920
+ return contents;
3921
+ };
3922
+ const deserializeAws_restJson1ListWorkflowExecutionsCommandError = async (output, context) => {
3923
+ const parsedOutput = {
3924
+ ...output,
3925
+ body: await parseErrorBody(output.body, context),
3926
+ };
3927
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3928
+ switch (errorCode) {
3929
+ case "CallRateLimitExceededException":
3930
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
3931
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
3932
+ case "ClientException":
3933
+ case "com.amazonaws.imagebuilder#ClientException":
3934
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
3935
+ case "ForbiddenException":
3936
+ case "com.amazonaws.imagebuilder#ForbiddenException":
3937
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
3938
+ case "InvalidPaginationTokenException":
3939
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
3940
+ throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
3941
+ case "InvalidRequestException":
3942
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
3943
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
3944
+ case "ServiceException":
3945
+ case "com.amazonaws.imagebuilder#ServiceException":
3946
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
3947
+ case "ServiceUnavailableException":
3948
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
3949
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
3950
+ default:
3951
+ const parsedBody = parsedOutput.body;
3952
+ throwDefaultError({
3953
+ output,
3954
+ parsedBody,
3955
+ exceptionCtor: __BaseException,
3956
+ errorCode,
3957
+ });
3958
+ }
3959
+ };
3960
+ export const deserializeAws_restJson1ListWorkflowStepExecutionsCommand = async (output, context) => {
3961
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3962
+ return deserializeAws_restJson1ListWorkflowStepExecutionsCommandError(output, context);
3963
+ }
3964
+ const contents = map({
3965
+ $metadata: deserializeMetadata(output),
3966
+ });
3967
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3968
+ if (data.imageBuildVersionArn != null) {
3969
+ contents.imageBuildVersionArn = __expectString(data.imageBuildVersionArn);
3970
+ }
3971
+ if (data.message != null) {
3972
+ contents.message = __expectString(data.message);
3973
+ }
3974
+ if (data.nextToken != null) {
3975
+ contents.nextToken = __expectString(data.nextToken);
3976
+ }
3977
+ if (data.requestId != null) {
3978
+ contents.requestId = __expectString(data.requestId);
3979
+ }
3980
+ if (data.steps != null) {
3981
+ contents.steps = deserializeAws_restJson1WorkflowStepExecutionsList(data.steps, context);
3982
+ }
3983
+ if (data.workflowBuildVersionArn != null) {
3984
+ contents.workflowBuildVersionArn = __expectString(data.workflowBuildVersionArn);
3985
+ }
3986
+ if (data.workflowExecutionId != null) {
3987
+ contents.workflowExecutionId = __expectString(data.workflowExecutionId);
3988
+ }
3989
+ return contents;
3990
+ };
3991
+ const deserializeAws_restJson1ListWorkflowStepExecutionsCommandError = async (output, context) => {
3992
+ const parsedOutput = {
3993
+ ...output,
3994
+ body: await parseErrorBody(output.body, context),
3995
+ };
3996
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3997
+ switch (errorCode) {
3998
+ case "CallRateLimitExceededException":
3999
+ case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
4000
+ throw await deserializeAws_restJson1CallRateLimitExceededExceptionResponse(parsedOutput, context);
4001
+ case "ClientException":
4002
+ case "com.amazonaws.imagebuilder#ClientException":
4003
+ throw await deserializeAws_restJson1ClientExceptionResponse(parsedOutput, context);
4004
+ case "ForbiddenException":
4005
+ case "com.amazonaws.imagebuilder#ForbiddenException":
4006
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
4007
+ case "InvalidPaginationTokenException":
4008
+ case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
4009
+ throw await deserializeAws_restJson1InvalidPaginationTokenExceptionResponse(parsedOutput, context);
4010
+ case "InvalidRequestException":
4011
+ case "com.amazonaws.imagebuilder#InvalidRequestException":
4012
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
4013
+ case "ServiceException":
4014
+ case "com.amazonaws.imagebuilder#ServiceException":
4015
+ throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
4016
+ case "ServiceUnavailableException":
4017
+ case "com.amazonaws.imagebuilder#ServiceUnavailableException":
4018
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
4019
+ default:
4020
+ const parsedBody = parsedOutput.body;
4021
+ throwDefaultError({
4022
+ output,
4023
+ parsedBody,
4024
+ exceptionCtor: __BaseException,
4025
+ errorCode,
4026
+ });
4027
+ }
4028
+ };
3464
4029
  export const deserializeAws_restJson1PutComponentPolicyCommand = async (output, context) => {
3465
4030
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3466
4031
  return deserializeAws_restJson1PutComponentPolicyCommandError(output, context);
@@ -4329,6 +4894,14 @@ const serializeAws_restJson1EbsInstanceBlockDeviceSpecification = (input, contex
4329
4894
  ...(input.volumeType != null && { volumeType: input.volumeType }),
4330
4895
  };
4331
4896
  };
4897
+ const serializeAws_restJson1EcrConfiguration = (input, context) => {
4898
+ return {
4899
+ ...(input.containerTags != null && {
4900
+ containerTags: serializeAws_restJson1StringList(input.containerTags, context),
4901
+ }),
4902
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
4903
+ };
4904
+ };
4332
4905
  const serializeAws_restJson1FastLaunchConfiguration = (input, context) => {
4333
4906
  return {
4334
4907
  ...(input.accountId != null && { accountId: input.accountId }),
@@ -4381,6 +4954,34 @@ const serializeAws_restJson1FilterValues = (input, context) => {
4381
4954
  return entry;
4382
4955
  });
4383
4956
  };
4957
+ const serializeAws_restJson1ImageScanFindingsFilter = (input, context) => {
4958
+ return {
4959
+ ...(input.name != null && { name: input.name }),
4960
+ ...(input.values != null && { values: serializeAws_restJson1ImageScanFindingsFilterValues(input.values, context) }),
4961
+ };
4962
+ };
4963
+ const serializeAws_restJson1ImageScanFindingsFilterList = (input, context) => {
4964
+ return input
4965
+ .filter((e) => e != null)
4966
+ .map((entry) => {
4967
+ return serializeAws_restJson1ImageScanFindingsFilter(entry, context);
4968
+ });
4969
+ };
4970
+ const serializeAws_restJson1ImageScanFindingsFilterValues = (input, context) => {
4971
+ return input
4972
+ .filter((e) => e != null)
4973
+ .map((entry) => {
4974
+ return entry;
4975
+ });
4976
+ };
4977
+ const serializeAws_restJson1ImageScanningConfiguration = (input, context) => {
4978
+ return {
4979
+ ...(input.ecrConfiguration != null && {
4980
+ ecrConfiguration: serializeAws_restJson1EcrConfiguration(input.ecrConfiguration, context),
4981
+ }),
4982
+ ...(input.imageScanningEnabled != null && { imageScanningEnabled: input.imageScanningEnabled }),
4983
+ };
4984
+ };
4384
4985
  const serializeAws_restJson1ImageTestsConfiguration = (input, context) => {
4385
4986
  return {
4386
4987
  ...(input.imageTestsEnabled != null && { imageTestsEnabled: input.imageTestsEnabled }),
@@ -4548,6 +5149,14 @@ const serializeAws_restJson1TargetContainerRepository = (input, context) => {
4548
5149
  ...(input.service != null && { service: input.service }),
4549
5150
  };
4550
5151
  };
5152
+ const deserializeAws_restJson1AccountAggregation = (output, context) => {
5153
+ return {
5154
+ accountId: __expectString(output.accountId),
5155
+ severityCounts: output.severityCounts != null
5156
+ ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
5157
+ : undefined,
5158
+ };
5159
+ };
4551
5160
  const deserializeAws_restJson1AccountList = (output, context) => {
4552
5161
  const retVal = (output || [])
4553
5162
  .filter((e) => e != null)
@@ -4835,6 +5444,54 @@ const deserializeAws_restJson1ContainerRecipeSummaryList = (output, context) =>
4835
5444
  });
4836
5445
  return retVal;
4837
5446
  };
5447
+ const deserializeAws_restJson1CvssScore = (output, context) => {
5448
+ return {
5449
+ baseScore: __limitedParseDouble(output.baseScore),
5450
+ scoringVector: __expectString(output.scoringVector),
5451
+ source: __expectString(output.source),
5452
+ version: __expectString(output.version),
5453
+ };
5454
+ };
5455
+ const deserializeAws_restJson1CvssScoreAdjustment = (output, context) => {
5456
+ return {
5457
+ metric: __expectString(output.metric),
5458
+ reason: __expectString(output.reason),
5459
+ };
5460
+ };
5461
+ const deserializeAws_restJson1CvssScoreAdjustmentList = (output, context) => {
5462
+ const retVal = (output || [])
5463
+ .filter((e) => e != null)
5464
+ .map((entry) => {
5465
+ if (entry === null) {
5466
+ return null;
5467
+ }
5468
+ return deserializeAws_restJson1CvssScoreAdjustment(entry, context);
5469
+ });
5470
+ return retVal;
5471
+ };
5472
+ const deserializeAws_restJson1CvssScoreDetails = (output, context) => {
5473
+ return {
5474
+ adjustments: output.adjustments != null
5475
+ ? deserializeAws_restJson1CvssScoreAdjustmentList(output.adjustments, context)
5476
+ : undefined,
5477
+ cvssSource: __expectString(output.cvssSource),
5478
+ score: __limitedParseDouble(output.score),
5479
+ scoreSource: __expectString(output.scoreSource),
5480
+ scoringVector: __expectString(output.scoringVector),
5481
+ version: __expectString(output.version),
5482
+ };
5483
+ };
5484
+ const deserializeAws_restJson1CvssScoreList = (output, context) => {
5485
+ const retVal = (output || [])
5486
+ .filter((e) => e != null)
5487
+ .map((entry) => {
5488
+ if (entry === null) {
5489
+ return null;
5490
+ }
5491
+ return deserializeAws_restJson1CvssScore(entry, context);
5492
+ });
5493
+ return retVal;
5494
+ };
4838
5495
  const deserializeAws_restJson1Distribution = (output, context) => {
4839
5496
  return {
4840
5497
  amiDistributionConfiguration: output.amiDistributionConfiguration != null
@@ -4917,6 +5574,12 @@ const deserializeAws_restJson1EbsInstanceBlockDeviceSpecification = (output, con
4917
5574
  volumeType: __expectString(output.volumeType),
4918
5575
  };
4919
5576
  };
5577
+ const deserializeAws_restJson1EcrConfiguration = (output, context) => {
5578
+ return {
5579
+ containerTags: output.containerTags != null ? deserializeAws_restJson1StringList(output.containerTags, context) : undefined,
5580
+ repositoryName: __expectString(output.repositoryName),
5581
+ };
5582
+ };
4920
5583
  const deserializeAws_restJson1FastLaunchConfiguration = (output, context) => {
4921
5584
  return {
4922
5585
  accountId: __expectString(output.accountId),
@@ -4966,6 +5629,9 @@ const deserializeAws_restJson1Image = (output, context) => {
4966
5629
  : undefined,
4967
5630
  enhancedImageMetadataEnabled: __expectBoolean(output.enhancedImageMetadataEnabled),
4968
5631
  imageRecipe: output.imageRecipe != null ? deserializeAws_restJson1ImageRecipe(output.imageRecipe, context) : undefined,
5632
+ imageScanningConfiguration: output.imageScanningConfiguration != null
5633
+ ? deserializeAws_restJson1ImageScanningConfiguration(output.imageScanningConfiguration, context)
5634
+ : undefined,
4969
5635
  imageSource: __expectString(output.imageSource),
4970
5636
  imageTestsConfiguration: output.imageTestsConfiguration != null
4971
5637
  ? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
@@ -4979,6 +5645,7 @@ const deserializeAws_restJson1Image = (output, context) => {
4979
5645
  ? deserializeAws_restJson1OutputResources(output.outputResources, context)
4980
5646
  : undefined,
4981
5647
  platform: __expectString(output.platform),
5648
+ scanState: output.scanState != null ? deserializeAws_restJson1ImageScanState(output.scanState, context) : undefined,
4982
5649
  sourcePipelineArn: __expectString(output.sourcePipelineArn),
4983
5650
  sourcePipelineName: __expectString(output.sourcePipelineName),
4984
5651
  state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
@@ -4987,6 +5654,14 @@ const deserializeAws_restJson1Image = (output, context) => {
4987
5654
  version: __expectString(output.version),
4988
5655
  };
4989
5656
  };
5657
+ const deserializeAws_restJson1ImageAggregation = (output, context) => {
5658
+ return {
5659
+ imageBuildVersionArn: __expectString(output.imageBuildVersionArn),
5660
+ severityCounts: output.severityCounts != null
5661
+ ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
5662
+ : undefined,
5663
+ };
5664
+ };
4990
5665
  const deserializeAws_restJson1ImagePackage = (output, context) => {
4991
5666
  return {
4992
5667
  packageName: __expectString(output.packageName),
@@ -5016,6 +5691,9 @@ const deserializeAws_restJson1ImagePipeline = (output, context) => {
5016
5691
  distributionConfigurationArn: __expectString(output.distributionConfigurationArn),
5017
5692
  enhancedImageMetadataEnabled: __expectBoolean(output.enhancedImageMetadataEnabled),
5018
5693
  imageRecipeArn: __expectString(output.imageRecipeArn),
5694
+ imageScanningConfiguration: output.imageScanningConfiguration != null
5695
+ ? deserializeAws_restJson1ImageScanningConfiguration(output.imageScanningConfiguration, context)
5696
+ : undefined,
5019
5697
  imageTestsConfiguration: output.imageTestsConfiguration != null
5020
5698
  ? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
5021
5699
  : undefined,
@@ -5027,6 +5705,14 @@ const deserializeAws_restJson1ImagePipeline = (output, context) => {
5027
5705
  tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5028
5706
  };
5029
5707
  };
5708
+ const deserializeAws_restJson1ImagePipelineAggregation = (output, context) => {
5709
+ return {
5710
+ imagePipelineArn: __expectString(output.imagePipelineArn),
5711
+ severityCounts: output.severityCounts != null
5712
+ ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
5713
+ : undefined,
5714
+ };
5715
+ };
5030
5716
  const deserializeAws_restJson1ImagePipelineList = (output, context) => {
5031
5717
  const retVal = (output || [])
5032
5718
  .filter((e) => e != null)
@@ -5084,6 +5770,82 @@ const deserializeAws_restJson1ImageRecipeSummaryList = (output, context) => {
5084
5770
  });
5085
5771
  return retVal;
5086
5772
  };
5773
+ const deserializeAws_restJson1ImageScanFinding = (output, context) => {
5774
+ return {
5775
+ awsAccountId: __expectString(output.awsAccountId),
5776
+ description: __expectString(output.description),
5777
+ firstObservedAt: output.firstObservedAt != null
5778
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstObservedAt)))
5779
+ : undefined,
5780
+ fixAvailable: __expectString(output.fixAvailable),
5781
+ imageBuildVersionArn: __expectString(output.imageBuildVersionArn),
5782
+ imagePipelineArn: __expectString(output.imagePipelineArn),
5783
+ inspectorScore: __limitedParseDouble(output.inspectorScore),
5784
+ inspectorScoreDetails: output.inspectorScoreDetails != null
5785
+ ? deserializeAws_restJson1InspectorScoreDetails(output.inspectorScoreDetails, context)
5786
+ : undefined,
5787
+ packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
5788
+ ? deserializeAws_restJson1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
5789
+ : undefined,
5790
+ remediation: output.remediation != null ? deserializeAws_restJson1Remediation(output.remediation, context) : undefined,
5791
+ severity: __expectString(output.severity),
5792
+ title: __expectString(output.title),
5793
+ type: __expectString(output.type),
5794
+ updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
5795
+ };
5796
+ };
5797
+ const deserializeAws_restJson1ImageScanFindingAggregation = (output, context) => {
5798
+ return {
5799
+ accountAggregation: output.accountAggregation != null
5800
+ ? deserializeAws_restJson1AccountAggregation(output.accountAggregation, context)
5801
+ : undefined,
5802
+ imageAggregation: output.imageAggregation != null
5803
+ ? deserializeAws_restJson1ImageAggregation(output.imageAggregation, context)
5804
+ : undefined,
5805
+ imagePipelineAggregation: output.imagePipelineAggregation != null
5806
+ ? deserializeAws_restJson1ImagePipelineAggregation(output.imagePipelineAggregation, context)
5807
+ : undefined,
5808
+ vulnerabilityIdAggregation: output.vulnerabilityIdAggregation != null
5809
+ ? deserializeAws_restJson1VulnerabilityIdAggregation(output.vulnerabilityIdAggregation, context)
5810
+ : undefined,
5811
+ };
5812
+ };
5813
+ const deserializeAws_restJson1ImageScanFindingAggregationsList = (output, context) => {
5814
+ const retVal = (output || [])
5815
+ .filter((e) => e != null)
5816
+ .map((entry) => {
5817
+ if (entry === null) {
5818
+ return null;
5819
+ }
5820
+ return deserializeAws_restJson1ImageScanFindingAggregation(entry, context);
5821
+ });
5822
+ return retVal;
5823
+ };
5824
+ const deserializeAws_restJson1ImageScanFindingsList = (output, context) => {
5825
+ const retVal = (output || [])
5826
+ .filter((e) => e != null)
5827
+ .map((entry) => {
5828
+ if (entry === null) {
5829
+ return null;
5830
+ }
5831
+ return deserializeAws_restJson1ImageScanFinding(entry, context);
5832
+ });
5833
+ return retVal;
5834
+ };
5835
+ const deserializeAws_restJson1ImageScanningConfiguration = (output, context) => {
5836
+ return {
5837
+ ecrConfiguration: output.ecrConfiguration != null
5838
+ ? deserializeAws_restJson1EcrConfiguration(output.ecrConfiguration, context)
5839
+ : undefined,
5840
+ imageScanningEnabled: __expectBoolean(output.imageScanningEnabled),
5841
+ };
5842
+ };
5843
+ const deserializeAws_restJson1ImageScanState = (output, context) => {
5844
+ return {
5845
+ reason: __expectString(output.reason),
5846
+ status: __expectString(output.status),
5847
+ };
5848
+ };
5087
5849
  const deserializeAws_restJson1ImageState = (output, context) => {
5088
5850
  return {
5089
5851
  reason: __expectString(output.reason),
@@ -5203,6 +5965,11 @@ const deserializeAws_restJson1InfrastructureConfigurationSummaryList = (output,
5203
5965
  });
5204
5966
  return retVal;
5205
5967
  };
5968
+ const deserializeAws_restJson1InspectorScoreDetails = (output, context) => {
5969
+ return {
5970
+ adjustedCvss: output.adjustedCvss != null ? deserializeAws_restJson1CvssScoreDetails(output.adjustedCvss, context) : undefined,
5971
+ };
5972
+ };
5206
5973
  const deserializeAws_restJson1InstanceBlockDeviceMapping = (output, context) => {
5207
5974
  return {
5208
5975
  deviceName: __expectString(output.deviceName),
@@ -5293,6 +6060,17 @@ const deserializeAws_restJson1Logging = (output, context) => {
5293
6060
  s3Logs: output.s3Logs != null ? deserializeAws_restJson1S3Logs(output.s3Logs, context) : undefined,
5294
6061
  };
5295
6062
  };
6063
+ const deserializeAws_restJson1NonEmptyStringList = (output, context) => {
6064
+ const retVal = (output || [])
6065
+ .filter((e) => e != null)
6066
+ .map((entry) => {
6067
+ if (entry === null) {
6068
+ return null;
6069
+ }
6070
+ return __expectString(entry);
6071
+ });
6072
+ return retVal;
6073
+ };
5296
6074
  const deserializeAws_restJson1OrganizationalUnitArnList = (output, context) => {
5297
6075
  const retVal = (output || [])
5298
6076
  .filter((e) => e != null)
@@ -5332,6 +6110,30 @@ const deserializeAws_restJson1OutputResources = (output, context) => {
5332
6110
  containers: output.containers != null ? deserializeAws_restJson1ContainerList(output.containers, context) : undefined,
5333
6111
  };
5334
6112
  };
6113
+ const deserializeAws_restJson1PackageVulnerabilityDetails = (output, context) => {
6114
+ return {
6115
+ cvss: output.cvss != null ? deserializeAws_restJson1CvssScoreList(output.cvss, context) : undefined,
6116
+ referenceUrls: output.referenceUrls != null
6117
+ ? deserializeAws_restJson1NonEmptyStringList(output.referenceUrls, context)
6118
+ : undefined,
6119
+ relatedVulnerabilities: output.relatedVulnerabilities != null
6120
+ ? deserializeAws_restJson1VulnerabilityIdList(output.relatedVulnerabilities, context)
6121
+ : undefined,
6122
+ source: __expectString(output.source),
6123
+ sourceUrl: __expectString(output.sourceUrl),
6124
+ vendorCreatedAt: output.vendorCreatedAt != null
6125
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorCreatedAt)))
6126
+ : undefined,
6127
+ vendorSeverity: __expectString(output.vendorSeverity),
6128
+ vendorUpdatedAt: output.vendorUpdatedAt != null
6129
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.vendorUpdatedAt)))
6130
+ : undefined,
6131
+ vulnerabilityId: __expectString(output.vulnerabilityId),
6132
+ vulnerablePackages: output.vulnerablePackages != null
6133
+ ? deserializeAws_restJson1VulnerablePackageList(output.vulnerablePackages, context)
6134
+ : undefined,
6135
+ };
6136
+ };
5335
6137
  const deserializeAws_restJson1RegionList = (output, context) => {
5336
6138
  const retVal = (output || [])
5337
6139
  .filter((e) => e != null)
@@ -5343,6 +6145,19 @@ const deserializeAws_restJson1RegionList = (output, context) => {
5343
6145
  });
5344
6146
  return retVal;
5345
6147
  };
6148
+ const deserializeAws_restJson1Remediation = (output, context) => {
6149
+ return {
6150
+ recommendation: output.recommendation != null
6151
+ ? deserializeAws_restJson1RemediationRecommendation(output.recommendation, context)
6152
+ : undefined,
6153
+ };
6154
+ };
6155
+ const deserializeAws_restJson1RemediationRecommendation = (output, context) => {
6156
+ return {
6157
+ text: __expectString(output.text),
6158
+ url: __expectString(output.url),
6159
+ };
6160
+ };
5346
6161
  const deserializeAws_restJson1ResourceTagMap = (output, context) => {
5347
6162
  return Object.entries(output).reduce((acc, [key, value]) => {
5348
6163
  if (value === null) {
@@ -5384,6 +6199,14 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
5384
6199
  });
5385
6200
  return retVal;
5386
6201
  };
6202
+ const deserializeAws_restJson1SeverityCounts = (output, context) => {
6203
+ return {
6204
+ all: __expectLong(output.all),
6205
+ critical: __expectLong(output.critical),
6206
+ high: __expectLong(output.high),
6207
+ medium: __expectLong(output.medium),
6208
+ };
6209
+ };
5387
6210
  const deserializeAws_restJson1StringList = (output, context) => {
5388
6211
  const retVal = (output || [])
5389
6212
  .filter((e) => e != null)
@@ -5415,6 +6238,102 @@ const deserializeAws_restJson1TargetContainerRepository = (output, context) => {
5415
6238
  service: __expectString(output.service),
5416
6239
  };
5417
6240
  };
6241
+ const deserializeAws_restJson1VulnerabilityIdAggregation = (output, context) => {
6242
+ return {
6243
+ severityCounts: output.severityCounts != null
6244
+ ? deserializeAws_restJson1SeverityCounts(output.severityCounts, context)
6245
+ : undefined,
6246
+ vulnerabilityId: __expectString(output.vulnerabilityId),
6247
+ };
6248
+ };
6249
+ const deserializeAws_restJson1VulnerabilityIdList = (output, context) => {
6250
+ const retVal = (output || [])
6251
+ .filter((e) => e != null)
6252
+ .map((entry) => {
6253
+ if (entry === null) {
6254
+ return null;
6255
+ }
6256
+ return __expectString(entry);
6257
+ });
6258
+ return retVal;
6259
+ };
6260
+ const deserializeAws_restJson1VulnerablePackage = (output, context) => {
6261
+ return {
6262
+ arch: __expectString(output.arch),
6263
+ epoch: __expectInt32(output.epoch),
6264
+ filePath: __expectString(output.filePath),
6265
+ fixedInVersion: __expectString(output.fixedInVersion),
6266
+ name: __expectString(output.name),
6267
+ packageManager: __expectString(output.packageManager),
6268
+ release: __expectString(output.release),
6269
+ remediation: __expectString(output.remediation),
6270
+ sourceLayerHash: __expectString(output.sourceLayerHash),
6271
+ version: __expectString(output.version),
6272
+ };
6273
+ };
6274
+ const deserializeAws_restJson1VulnerablePackageList = (output, context) => {
6275
+ const retVal = (output || [])
6276
+ .filter((e) => e != null)
6277
+ .map((entry) => {
6278
+ if (entry === null) {
6279
+ return null;
6280
+ }
6281
+ return deserializeAws_restJson1VulnerablePackage(entry, context);
6282
+ });
6283
+ return retVal;
6284
+ };
6285
+ const deserializeAws_restJson1WorkflowExecutionMetadata = (output, context) => {
6286
+ return {
6287
+ endTime: __expectString(output.endTime),
6288
+ message: __expectString(output.message),
6289
+ startTime: __expectString(output.startTime),
6290
+ status: __expectString(output.status),
6291
+ totalStepCount: __expectInt32(output.totalStepCount),
6292
+ totalStepsFailed: __expectInt32(output.totalStepsFailed),
6293
+ totalStepsSkipped: __expectInt32(output.totalStepsSkipped),
6294
+ totalStepsSucceeded: __expectInt32(output.totalStepsSucceeded),
6295
+ type: __expectString(output.type),
6296
+ workflowBuildVersionArn: __expectString(output.workflowBuildVersionArn),
6297
+ workflowExecutionId: __expectString(output.workflowExecutionId),
6298
+ };
6299
+ };
6300
+ const deserializeAws_restJson1WorkflowExecutionsList = (output, context) => {
6301
+ const retVal = (output || [])
6302
+ .filter((e) => e != null)
6303
+ .map((entry) => {
6304
+ if (entry === null) {
6305
+ return null;
6306
+ }
6307
+ return deserializeAws_restJson1WorkflowExecutionMetadata(entry, context);
6308
+ });
6309
+ return retVal;
6310
+ };
6311
+ const deserializeAws_restJson1WorkflowStepExecutionsList = (output, context) => {
6312
+ const retVal = (output || [])
6313
+ .filter((e) => e != null)
6314
+ .map((entry) => {
6315
+ if (entry === null) {
6316
+ return null;
6317
+ }
6318
+ return deserializeAws_restJson1WorkflowStepMetadata(entry, context);
6319
+ });
6320
+ return retVal;
6321
+ };
6322
+ const deserializeAws_restJson1WorkflowStepMetadata = (output, context) => {
6323
+ return {
6324
+ action: __expectString(output.action),
6325
+ description: __expectString(output.description),
6326
+ endTime: __expectString(output.endTime),
6327
+ inputs: __expectString(output.inputs),
6328
+ message: __expectString(output.message),
6329
+ name: __expectString(output.name),
6330
+ outputs: __expectString(output.outputs),
6331
+ rollbackStatus: __expectString(output.rollbackStatus),
6332
+ startTime: __expectString(output.startTime),
6333
+ status: __expectString(output.status),
6334
+ stepExecutionId: __expectString(output.stepExecutionId),
6335
+ };
6336
+ };
5418
6337
  const deserializeMetadata = (output) => ({
5419
6338
  httpStatusCode: output.statusCode,
5420
6339
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],