@aws-sdk/client-ecr 3.40.0 → 3.44.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 (89) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/ECR.js +90 -0
  3. package/dist-cjs/commands/BatchGetRepositoryScanningConfigurationCommand.js +36 -0
  4. package/dist-cjs/commands/CreatePullThroughCacheRuleCommand.js +36 -0
  5. package/dist-cjs/commands/DeletePullThroughCacheRuleCommand.js +36 -0
  6. package/dist-cjs/commands/DescribePullThroughCacheRulesCommand.js +36 -0
  7. package/dist-cjs/commands/GetRegistryScanningConfigurationCommand.js +36 -0
  8. package/dist-cjs/commands/PutRegistryScanningConfigurationCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoints.js +24 -0
  11. package/dist-cjs/models/models_0.js +238 -15
  12. package/dist-cjs/pagination/DescribePullThroughCacheRulesPaginator.js +35 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_json1_1.js +1070 -16
  15. package/dist-es/ECR.js +90 -0
  16. package/dist-es/commands/BatchGetRepositoryScanningConfigurationCommand.js +39 -0
  17. package/dist-es/commands/CreatePullThroughCacheRuleCommand.js +39 -0
  18. package/dist-es/commands/DeletePullThroughCacheRuleCommand.js +39 -0
  19. package/dist-es/commands/DescribePullThroughCacheRulesCommand.js +39 -0
  20. package/dist-es/commands/GetRegistryScanningConfigurationCommand.js +39 -0
  21. package/dist-es/commands/PutRegistryScanningConfigurationCommand.js +39 -0
  22. package/dist-es/commands/index.js +6 -0
  23. package/dist-es/endpoints.js +24 -0
  24. package/dist-es/models/models_0.js +164 -8
  25. package/dist-es/pagination/DescribePullThroughCacheRulesPaginator.js +74 -0
  26. package/dist-es/pagination/index.js +1 -0
  27. package/dist-es/protocols/Aws_json1_1.js +1204 -120
  28. package/dist-types/ECR.d.ts +43 -0
  29. package/dist-types/ECRClient.d.ts +8 -2
  30. package/dist-types/commands/BatchCheckLayerAvailabilityCommand.d.ts +1 -1
  31. package/dist-types/commands/BatchDeleteImageCommand.d.ts +1 -1
  32. package/dist-types/commands/BatchGetImageCommand.d.ts +1 -1
  33. package/dist-types/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +35 -0
  34. package/dist-types/commands/CompleteLayerUploadCommand.d.ts +1 -1
  35. package/dist-types/commands/CreatePullThroughCacheRuleCommand.d.ts +36 -0
  36. package/dist-types/commands/CreateRepositoryCommand.d.ts +1 -1
  37. package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +1 -1
  38. package/dist-types/commands/DeletePullThroughCacheRuleCommand.d.ts +35 -0
  39. package/dist-types/commands/DeleteRegistryPolicyCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteRepositoryCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteRepositoryPolicyCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeImageReplicationStatusCommand.d.ts +1 -1
  43. package/dist-types/commands/DescribeImageScanFindingsCommand.d.ts +1 -1
  44. package/dist-types/commands/DescribeImagesCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribePullThroughCacheRulesCommand.d.ts +35 -0
  46. package/dist-types/commands/DescribeRegistryCommand.d.ts +1 -1
  47. package/dist-types/commands/DescribeRepositoriesCommand.d.ts +1 -1
  48. package/dist-types/commands/GetAuthorizationTokenCommand.d.ts +1 -1
  49. package/dist-types/commands/GetDownloadUrlForLayerCommand.d.ts +1 -1
  50. package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +1 -1
  51. package/dist-types/commands/GetLifecyclePolicyPreviewCommand.d.ts +1 -1
  52. package/dist-types/commands/GetRegistryPolicyCommand.d.ts +1 -1
  53. package/dist-types/commands/GetRegistryScanningConfigurationCommand.d.ts +35 -0
  54. package/dist-types/commands/GetRepositoryPolicyCommand.d.ts +1 -1
  55. package/dist-types/commands/InitiateLayerUploadCommand.d.ts +1 -1
  56. package/dist-types/commands/ListImagesCommand.d.ts +1 -1
  57. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  58. package/dist-types/commands/PutImageCommand.d.ts +1 -1
  59. package/dist-types/commands/PutImageScanningConfigurationCommand.d.ts +1 -1
  60. package/dist-types/commands/PutImageTagMutabilityCommand.d.ts +1 -1
  61. package/dist-types/commands/PutLifecyclePolicyCommand.d.ts +1 -1
  62. package/dist-types/commands/PutRegistryPolicyCommand.d.ts +1 -1
  63. package/dist-types/commands/PutRegistryScanningConfigurationCommand.d.ts +35 -0
  64. package/dist-types/commands/PutReplicationConfigurationCommand.d.ts +1 -1
  65. package/dist-types/commands/SetRepositoryPolicyCommand.d.ts +1 -1
  66. package/dist-types/commands/StartImageScanCommand.d.ts +1 -1
  67. package/dist-types/commands/StartLifecyclePolicyPreviewCommand.d.ts +1 -1
  68. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  69. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  70. package/dist-types/commands/UploadLayerPartCommand.d.ts +1 -1
  71. package/dist-types/commands/index.d.ts +6 -0
  72. package/dist-types/models/models_0.d.ts +984 -157
  73. package/dist-types/pagination/DescribePullThroughCacheRulesPaginator.d.ts +4 -0
  74. package/dist-types/pagination/index.d.ts +1 -0
  75. package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
  76. package/dist-types/ts3.4/ECR.d.ts +30 -0
  77. package/dist-types/ts3.4/ECRClient.d.ts +8 -2
  78. package/dist-types/ts3.4/commands/BatchGetRepositoryScanningConfigurationCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/CreatePullThroughCacheRuleCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/DeletePullThroughCacheRuleCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/DescribePullThroughCacheRulesCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/GetRegistryScanningConfigurationCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/PutRegistryScanningConfigurationCommand.d.ts +17 -0
  84. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +488 -24
  86. package/dist-types/ts3.4/pagination/DescribePullThroughCacheRulesPaginator.d.ts +4 -0
  87. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  88. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +18 -0
  89. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1GetAuthorizationTokenCommand = exports.deserializeAws_json1_1DescribeRepositoriesCommand = exports.deserializeAws_json1_1DescribeRegistryCommand = exports.deserializeAws_json1_1DescribeImageScanFindingsCommand = exports.deserializeAws_json1_1DescribeImagesCommand = exports.deserializeAws_json1_1DescribeImageReplicationStatusCommand = exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = exports.deserializeAws_json1_1DeleteRepositoryCommand = exports.deserializeAws_json1_1DeleteRegistryPolicyCommand = exports.deserializeAws_json1_1DeleteLifecyclePolicyCommand = exports.deserializeAws_json1_1CreateRepositoryCommand = exports.deserializeAws_json1_1CompleteLayerUploadCommand = exports.deserializeAws_json1_1BatchGetImageCommand = exports.deserializeAws_json1_1BatchDeleteImageCommand = exports.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = exports.serializeAws_json1_1UploadLayerPartCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.serializeAws_json1_1StartImageScanCommand = exports.serializeAws_json1_1SetRepositoryPolicyCommand = exports.serializeAws_json1_1PutReplicationConfigurationCommand = exports.serializeAws_json1_1PutRegistryPolicyCommand = exports.serializeAws_json1_1PutLifecyclePolicyCommand = exports.serializeAws_json1_1PutImageTagMutabilityCommand = exports.serializeAws_json1_1PutImageScanningConfigurationCommand = exports.serializeAws_json1_1PutImageCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListImagesCommand = exports.serializeAws_json1_1InitiateLayerUploadCommand = exports.serializeAws_json1_1GetRepositoryPolicyCommand = exports.serializeAws_json1_1GetRegistryPolicyCommand = exports.serializeAws_json1_1GetLifecyclePolicyPreviewCommand = exports.serializeAws_json1_1GetLifecyclePolicyCommand = exports.serializeAws_json1_1GetDownloadUrlForLayerCommand = exports.serializeAws_json1_1GetAuthorizationTokenCommand = exports.serializeAws_json1_1DescribeRepositoriesCommand = exports.serializeAws_json1_1DescribeRegistryCommand = exports.serializeAws_json1_1DescribeImageScanFindingsCommand = exports.serializeAws_json1_1DescribeImagesCommand = exports.serializeAws_json1_1DescribeImageReplicationStatusCommand = exports.serializeAws_json1_1DeleteRepositoryPolicyCommand = exports.serializeAws_json1_1DeleteRepositoryCommand = exports.serializeAws_json1_1DeleteRegistryPolicyCommand = exports.serializeAws_json1_1DeleteLifecyclePolicyCommand = exports.serializeAws_json1_1CreateRepositoryCommand = exports.serializeAws_json1_1CompleteLayerUploadCommand = exports.serializeAws_json1_1BatchGetImageCommand = exports.serializeAws_json1_1BatchDeleteImageCommand = exports.serializeAws_json1_1BatchCheckLayerAvailabilityCommand = void 0;
4
- exports.deserializeAws_json1_1UploadLayerPartCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1StartImageScanCommand = exports.deserializeAws_json1_1SetRepositoryPolicyCommand = exports.deserializeAws_json1_1PutReplicationConfigurationCommand = exports.deserializeAws_json1_1PutRegistryPolicyCommand = exports.deserializeAws_json1_1PutLifecyclePolicyCommand = exports.deserializeAws_json1_1PutImageTagMutabilityCommand = exports.deserializeAws_json1_1PutImageScanningConfigurationCommand = exports.deserializeAws_json1_1PutImageCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListImagesCommand = exports.deserializeAws_json1_1InitiateLayerUploadCommand = exports.deserializeAws_json1_1GetRepositoryPolicyCommand = exports.deserializeAws_json1_1GetRegistryPolicyCommand = exports.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1GetLifecyclePolicyCommand = exports.deserializeAws_json1_1GetDownloadUrlForLayerCommand = void 0;
3
+ exports.deserializeAws_json1_1DeletePullThroughCacheRuleCommand = exports.deserializeAws_json1_1DeleteLifecyclePolicyCommand = exports.deserializeAws_json1_1CreateRepositoryCommand = exports.deserializeAws_json1_1CreatePullThroughCacheRuleCommand = exports.deserializeAws_json1_1CompleteLayerUploadCommand = exports.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = exports.deserializeAws_json1_1BatchGetImageCommand = exports.deserializeAws_json1_1BatchDeleteImageCommand = exports.deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = exports.serializeAws_json1_1UploadLayerPartCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.serializeAws_json1_1StartImageScanCommand = exports.serializeAws_json1_1SetRepositoryPolicyCommand = exports.serializeAws_json1_1PutReplicationConfigurationCommand = exports.serializeAws_json1_1PutRegistryScanningConfigurationCommand = exports.serializeAws_json1_1PutRegistryPolicyCommand = exports.serializeAws_json1_1PutLifecyclePolicyCommand = exports.serializeAws_json1_1PutImageTagMutabilityCommand = exports.serializeAws_json1_1PutImageScanningConfigurationCommand = exports.serializeAws_json1_1PutImageCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListImagesCommand = exports.serializeAws_json1_1InitiateLayerUploadCommand = exports.serializeAws_json1_1GetRepositoryPolicyCommand = exports.serializeAws_json1_1GetRegistryScanningConfigurationCommand = exports.serializeAws_json1_1GetRegistryPolicyCommand = exports.serializeAws_json1_1GetLifecyclePolicyPreviewCommand = exports.serializeAws_json1_1GetLifecyclePolicyCommand = exports.serializeAws_json1_1GetDownloadUrlForLayerCommand = exports.serializeAws_json1_1GetAuthorizationTokenCommand = exports.serializeAws_json1_1DescribeRepositoriesCommand = exports.serializeAws_json1_1DescribeRegistryCommand = exports.serializeAws_json1_1DescribePullThroughCacheRulesCommand = exports.serializeAws_json1_1DescribeImageScanFindingsCommand = exports.serializeAws_json1_1DescribeImagesCommand = exports.serializeAws_json1_1DescribeImageReplicationStatusCommand = exports.serializeAws_json1_1DeleteRepositoryPolicyCommand = exports.serializeAws_json1_1DeleteRepositoryCommand = exports.serializeAws_json1_1DeleteRegistryPolicyCommand = exports.serializeAws_json1_1DeletePullThroughCacheRuleCommand = exports.serializeAws_json1_1DeleteLifecyclePolicyCommand = exports.serializeAws_json1_1CreateRepositoryCommand = exports.serializeAws_json1_1CreatePullThroughCacheRuleCommand = exports.serializeAws_json1_1CompleteLayerUploadCommand = exports.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = exports.serializeAws_json1_1BatchGetImageCommand = exports.serializeAws_json1_1BatchDeleteImageCommand = exports.serializeAws_json1_1BatchCheckLayerAvailabilityCommand = void 0;
4
+ exports.deserializeAws_json1_1UploadLayerPartCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1StartImageScanCommand = exports.deserializeAws_json1_1SetRepositoryPolicyCommand = exports.deserializeAws_json1_1PutReplicationConfigurationCommand = exports.deserializeAws_json1_1PutRegistryScanningConfigurationCommand = exports.deserializeAws_json1_1PutRegistryPolicyCommand = exports.deserializeAws_json1_1PutLifecyclePolicyCommand = exports.deserializeAws_json1_1PutImageTagMutabilityCommand = exports.deserializeAws_json1_1PutImageScanningConfigurationCommand = exports.deserializeAws_json1_1PutImageCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListImagesCommand = exports.deserializeAws_json1_1InitiateLayerUploadCommand = exports.deserializeAws_json1_1GetRepositoryPolicyCommand = exports.deserializeAws_json1_1GetRegistryScanningConfigurationCommand = exports.deserializeAws_json1_1GetRegistryPolicyCommand = exports.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1GetLifecyclePolicyCommand = exports.deserializeAws_json1_1GetDownloadUrlForLayerCommand = exports.deserializeAws_json1_1GetAuthorizationTokenCommand = exports.deserializeAws_json1_1DescribeRepositoriesCommand = exports.deserializeAws_json1_1DescribeRegistryCommand = exports.deserializeAws_json1_1DescribePullThroughCacheRulesCommand = exports.deserializeAws_json1_1DescribeImageScanFindingsCommand = exports.deserializeAws_json1_1DescribeImagesCommand = exports.deserializeAws_json1_1DescribeImageReplicationStatusCommand = exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = exports.deserializeAws_json1_1DeleteRepositoryCommand = exports.deserializeAws_json1_1DeleteRegistryPolicyCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const serializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (input, context) => {
@@ -34,6 +34,16 @@ const serializeAws_json1_1BatchGetImageCommand = async (input, context) => {
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  exports.serializeAws_json1_1BatchGetImageCommand = serializeAws_json1_1BatchGetImageCommand;
37
+ const serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = async (input, context) => {
38
+ const headers = {
39
+ "content-type": "application/x-amz-json-1.1",
40
+ "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration",
41
+ };
42
+ let body;
43
+ body = JSON.stringify(serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest(input, context));
44
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
45
+ };
46
+ exports.serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = serializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;
37
47
  const serializeAws_json1_1CompleteLayerUploadCommand = async (input, context) => {
38
48
  const headers = {
39
49
  "content-type": "application/x-amz-json-1.1",
@@ -44,6 +54,16 @@ const serializeAws_json1_1CompleteLayerUploadCommand = async (input, context) =>
44
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
45
55
  };
46
56
  exports.serializeAws_json1_1CompleteLayerUploadCommand = serializeAws_json1_1CompleteLayerUploadCommand;
57
+ const serializeAws_json1_1CreatePullThroughCacheRuleCommand = async (input, context) => {
58
+ const headers = {
59
+ "content-type": "application/x-amz-json-1.1",
60
+ "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule",
61
+ };
62
+ let body;
63
+ body = JSON.stringify(serializeAws_json1_1CreatePullThroughCacheRuleRequest(input, context));
64
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
+ };
66
+ exports.serializeAws_json1_1CreatePullThroughCacheRuleCommand = serializeAws_json1_1CreatePullThroughCacheRuleCommand;
47
67
  const serializeAws_json1_1CreateRepositoryCommand = async (input, context) => {
48
68
  const headers = {
49
69
  "content-type": "application/x-amz-json-1.1",
@@ -64,6 +84,16 @@ const serializeAws_json1_1DeleteLifecyclePolicyCommand = async (input, context)
64
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
85
  };
66
86
  exports.serializeAws_json1_1DeleteLifecyclePolicyCommand = serializeAws_json1_1DeleteLifecyclePolicyCommand;
87
+ const serializeAws_json1_1DeletePullThroughCacheRuleCommand = async (input, context) => {
88
+ const headers = {
89
+ "content-type": "application/x-amz-json-1.1",
90
+ "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule",
91
+ };
92
+ let body;
93
+ body = JSON.stringify(serializeAws_json1_1DeletePullThroughCacheRuleRequest(input, context));
94
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
+ };
96
+ exports.serializeAws_json1_1DeletePullThroughCacheRuleCommand = serializeAws_json1_1DeletePullThroughCacheRuleCommand;
67
97
  const serializeAws_json1_1DeleteRegistryPolicyCommand = async (input, context) => {
68
98
  const headers = {
69
99
  "content-type": "application/x-amz-json-1.1",
@@ -124,6 +154,16 @@ const serializeAws_json1_1DescribeImageScanFindingsCommand = async (input, conte
124
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
155
  };
126
156
  exports.serializeAws_json1_1DescribeImageScanFindingsCommand = serializeAws_json1_1DescribeImageScanFindingsCommand;
157
+ const serializeAws_json1_1DescribePullThroughCacheRulesCommand = async (input, context) => {
158
+ const headers = {
159
+ "content-type": "application/x-amz-json-1.1",
160
+ "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules",
161
+ };
162
+ let body;
163
+ body = JSON.stringify(serializeAws_json1_1DescribePullThroughCacheRulesRequest(input, context));
164
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
165
+ };
166
+ exports.serializeAws_json1_1DescribePullThroughCacheRulesCommand = serializeAws_json1_1DescribePullThroughCacheRulesCommand;
127
167
  const serializeAws_json1_1DescribeRegistryCommand = async (input, context) => {
128
168
  const headers = {
129
169
  "content-type": "application/x-amz-json-1.1",
@@ -194,6 +234,16 @@ const serializeAws_json1_1GetRegistryPolicyCommand = async (input, context) => {
194
234
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
195
235
  };
196
236
  exports.serializeAws_json1_1GetRegistryPolicyCommand = serializeAws_json1_1GetRegistryPolicyCommand;
237
+ const serializeAws_json1_1GetRegistryScanningConfigurationCommand = async (input, context) => {
238
+ const headers = {
239
+ "content-type": "application/x-amz-json-1.1",
240
+ "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration",
241
+ };
242
+ let body;
243
+ body = JSON.stringify(serializeAws_json1_1GetRegistryScanningConfigurationRequest(input, context));
244
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
+ };
246
+ exports.serializeAws_json1_1GetRegistryScanningConfigurationCommand = serializeAws_json1_1GetRegistryScanningConfigurationCommand;
197
247
  const serializeAws_json1_1GetRepositoryPolicyCommand = async (input, context) => {
198
248
  const headers = {
199
249
  "content-type": "application/x-amz-json-1.1",
@@ -284,6 +334,16 @@ const serializeAws_json1_1PutRegistryPolicyCommand = async (input, context) => {
284
334
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
285
335
  };
286
336
  exports.serializeAws_json1_1PutRegistryPolicyCommand = serializeAws_json1_1PutRegistryPolicyCommand;
337
+ const serializeAws_json1_1PutRegistryScanningConfigurationCommand = async (input, context) => {
338
+ const headers = {
339
+ "content-type": "application/x-amz-json-1.1",
340
+ "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration",
341
+ };
342
+ let body;
343
+ body = JSON.stringify(serializeAws_json1_1PutRegistryScanningConfigurationRequest(input, context));
344
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
345
+ };
346
+ exports.serializeAws_json1_1PutRegistryScanningConfigurationCommand = serializeAws_json1_1PutRegistryScanningConfigurationCommand;
287
347
  const serializeAws_json1_1PutReplicationConfigurationCommand = async (input, context) => {
288
348
  const headers = {
289
349
  "content-type": "application/x-amz-json-1.1",
@@ -543,6 +603,77 @@ const deserializeAws_json1_1BatchGetImageCommandError = async (output, context)
543
603
  delete response.Message;
544
604
  return Promise.reject(Object.assign(new Error(message), response));
545
605
  };
606
+ const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = async (output, context) => {
607
+ if (output.statusCode >= 300) {
608
+ return deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError(output, context);
609
+ }
610
+ const data = await parseBody(output.body, context);
611
+ let contents = {};
612
+ contents = deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse(data, context);
613
+ const response = {
614
+ $metadata: deserializeMetadata(output),
615
+ ...contents,
616
+ };
617
+ return Promise.resolve(response);
618
+ };
619
+ exports.deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand;
620
+ const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError = async (output, context) => {
621
+ const parsedOutput = {
622
+ ...output,
623
+ body: await parseBody(output.body, context),
624
+ };
625
+ let response;
626
+ let errorCode = "UnknownError";
627
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
628
+ switch (errorCode) {
629
+ case "InvalidParameterException":
630
+ case "com.amazonaws.ecr#InvalidParameterException":
631
+ response = {
632
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
633
+ name: errorCode,
634
+ $metadata: deserializeMetadata(output),
635
+ };
636
+ break;
637
+ case "RepositoryNotFoundException":
638
+ case "com.amazonaws.ecr#RepositoryNotFoundException":
639
+ response = {
640
+ ...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
641
+ name: errorCode,
642
+ $metadata: deserializeMetadata(output),
643
+ };
644
+ break;
645
+ case "ServerException":
646
+ case "com.amazonaws.ecr#ServerException":
647
+ response = {
648
+ ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
649
+ name: errorCode,
650
+ $metadata: deserializeMetadata(output),
651
+ };
652
+ break;
653
+ case "ValidationException":
654
+ case "com.amazonaws.ecr#ValidationException":
655
+ response = {
656
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
657
+ name: errorCode,
658
+ $metadata: deserializeMetadata(output),
659
+ };
660
+ break;
661
+ default:
662
+ const parsedBody = parsedOutput.body;
663
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
664
+ response = {
665
+ ...parsedBody,
666
+ name: `${errorCode}`,
667
+ message: parsedBody.message || parsedBody.Message || errorCode,
668
+ $fault: "client",
669
+ $metadata: deserializeMetadata(output),
670
+ };
671
+ }
672
+ const message = response.message || response.Message || errorCode;
673
+ response.message = message;
674
+ delete response.Message;
675
+ return Promise.reject(Object.assign(new Error(message), response));
676
+ };
546
677
  const deserializeAws_json1_1CompleteLayerUploadCommand = async (output, context) => {
547
678
  if (output.statusCode >= 300) {
548
679
  return deserializeAws_json1_1CompleteLayerUploadCommandError(output, context);
@@ -654,6 +785,93 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
654
785
  delete response.Message;
655
786
  return Promise.reject(Object.assign(new Error(message), response));
656
787
  };
788
+ const deserializeAws_json1_1CreatePullThroughCacheRuleCommand = async (output, context) => {
789
+ if (output.statusCode >= 300) {
790
+ return deserializeAws_json1_1CreatePullThroughCacheRuleCommandError(output, context);
791
+ }
792
+ const data = await parseBody(output.body, context);
793
+ let contents = {};
794
+ contents = deserializeAws_json1_1CreatePullThroughCacheRuleResponse(data, context);
795
+ const response = {
796
+ $metadata: deserializeMetadata(output),
797
+ ...contents,
798
+ };
799
+ return Promise.resolve(response);
800
+ };
801
+ exports.deserializeAws_json1_1CreatePullThroughCacheRuleCommand = deserializeAws_json1_1CreatePullThroughCacheRuleCommand;
802
+ const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = async (output, context) => {
803
+ const parsedOutput = {
804
+ ...output,
805
+ body: await parseBody(output.body, context),
806
+ };
807
+ let response;
808
+ let errorCode = "UnknownError";
809
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
810
+ switch (errorCode) {
811
+ case "InvalidParameterException":
812
+ case "com.amazonaws.ecr#InvalidParameterException":
813
+ response = {
814
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
815
+ name: errorCode,
816
+ $metadata: deserializeMetadata(output),
817
+ };
818
+ break;
819
+ case "LimitExceededException":
820
+ case "com.amazonaws.ecr#LimitExceededException":
821
+ response = {
822
+ ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
823
+ name: errorCode,
824
+ $metadata: deserializeMetadata(output),
825
+ };
826
+ break;
827
+ case "PullThroughCacheRuleAlreadyExistsException":
828
+ case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":
829
+ response = {
830
+ ...(await deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse(parsedOutput, context)),
831
+ name: errorCode,
832
+ $metadata: deserializeMetadata(output),
833
+ };
834
+ break;
835
+ case "ServerException":
836
+ case "com.amazonaws.ecr#ServerException":
837
+ response = {
838
+ ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
839
+ name: errorCode,
840
+ $metadata: deserializeMetadata(output),
841
+ };
842
+ break;
843
+ case "UnsupportedUpstreamRegistryException":
844
+ case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException":
845
+ response = {
846
+ ...(await deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse(parsedOutput, context)),
847
+ name: errorCode,
848
+ $metadata: deserializeMetadata(output),
849
+ };
850
+ break;
851
+ case "ValidationException":
852
+ case "com.amazonaws.ecr#ValidationException":
853
+ response = {
854
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
855
+ name: errorCode,
856
+ $metadata: deserializeMetadata(output),
857
+ };
858
+ break;
859
+ default:
860
+ const parsedBody = parsedOutput.body;
861
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
862
+ response = {
863
+ ...parsedBody,
864
+ name: `${errorCode}`,
865
+ message: parsedBody.message || parsedBody.Message || errorCode,
866
+ $fault: "client",
867
+ $metadata: deserializeMetadata(output),
868
+ };
869
+ }
870
+ const message = response.message || response.Message || errorCode;
871
+ response.message = message;
872
+ delete response.Message;
873
+ return Promise.reject(Object.assign(new Error(message), response));
874
+ };
657
875
  const deserializeAws_json1_1CreateRepositoryCommand = async (output, context) => {
658
876
  if (output.statusCode >= 300) {
659
877
  return deserializeAws_json1_1CreateRepositoryCommandError(output, context);
@@ -820,6 +1038,77 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
820
1038
  delete response.Message;
821
1039
  return Promise.reject(Object.assign(new Error(message), response));
822
1040
  };
1041
+ const deserializeAws_json1_1DeletePullThroughCacheRuleCommand = async (output, context) => {
1042
+ if (output.statusCode >= 300) {
1043
+ return deserializeAws_json1_1DeletePullThroughCacheRuleCommandError(output, context);
1044
+ }
1045
+ const data = await parseBody(output.body, context);
1046
+ let contents = {};
1047
+ contents = deserializeAws_json1_1DeletePullThroughCacheRuleResponse(data, context);
1048
+ const response = {
1049
+ $metadata: deserializeMetadata(output),
1050
+ ...contents,
1051
+ };
1052
+ return Promise.resolve(response);
1053
+ };
1054
+ exports.deserializeAws_json1_1DeletePullThroughCacheRuleCommand = deserializeAws_json1_1DeletePullThroughCacheRuleCommand;
1055
+ const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = async (output, context) => {
1056
+ const parsedOutput = {
1057
+ ...output,
1058
+ body: await parseBody(output.body, context),
1059
+ };
1060
+ let response;
1061
+ let errorCode = "UnknownError";
1062
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1063
+ switch (errorCode) {
1064
+ case "InvalidParameterException":
1065
+ case "com.amazonaws.ecr#InvalidParameterException":
1066
+ response = {
1067
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
1068
+ name: errorCode,
1069
+ $metadata: deserializeMetadata(output),
1070
+ };
1071
+ break;
1072
+ case "PullThroughCacheRuleNotFoundException":
1073
+ case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
1074
+ response = {
1075
+ ...(await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context)),
1076
+ name: errorCode,
1077
+ $metadata: deserializeMetadata(output),
1078
+ };
1079
+ break;
1080
+ case "ServerException":
1081
+ case "com.amazonaws.ecr#ServerException":
1082
+ response = {
1083
+ ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
1084
+ name: errorCode,
1085
+ $metadata: deserializeMetadata(output),
1086
+ };
1087
+ break;
1088
+ case "ValidationException":
1089
+ case "com.amazonaws.ecr#ValidationException":
1090
+ response = {
1091
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
1092
+ name: errorCode,
1093
+ $metadata: deserializeMetadata(output),
1094
+ };
1095
+ break;
1096
+ default:
1097
+ const parsedBody = parsedOutput.body;
1098
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1099
+ response = {
1100
+ ...parsedBody,
1101
+ name: `${errorCode}`,
1102
+ message: parsedBody.message || parsedBody.Message || errorCode,
1103
+ $fault: "client",
1104
+ $metadata: deserializeMetadata(output),
1105
+ };
1106
+ }
1107
+ const message = response.message || response.Message || errorCode;
1108
+ response.message = message;
1109
+ delete response.Message;
1110
+ return Promise.reject(Object.assign(new Error(message), response));
1111
+ };
823
1112
  const deserializeAws_json1_1DeleteRegistryPolicyCommand = async (output, context) => {
824
1113
  if (output.statusCode >= 300) {
825
1114
  return deserializeAws_json1_1DeleteRegistryPolicyCommandError(output, context);
@@ -1254,6 +1543,14 @@ const deserializeAws_json1_1DescribeImageScanFindingsCommandError = async (outpu
1254
1543
  $metadata: deserializeMetadata(output),
1255
1544
  };
1256
1545
  break;
1546
+ case "ValidationException":
1547
+ case "com.amazonaws.ecr#ValidationException":
1548
+ response = {
1549
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
1550
+ name: errorCode,
1551
+ $metadata: deserializeMetadata(output),
1552
+ };
1553
+ break;
1257
1554
  default:
1258
1555
  const parsedBody = parsedOutput.body;
1259
1556
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1270,21 +1567,21 @@ const deserializeAws_json1_1DescribeImageScanFindingsCommandError = async (outpu
1270
1567
  delete response.Message;
1271
1568
  return Promise.reject(Object.assign(new Error(message), response));
1272
1569
  };
1273
- const deserializeAws_json1_1DescribeRegistryCommand = async (output, context) => {
1570
+ const deserializeAws_json1_1DescribePullThroughCacheRulesCommand = async (output, context) => {
1274
1571
  if (output.statusCode >= 300) {
1275
- return deserializeAws_json1_1DescribeRegistryCommandError(output, context);
1572
+ return deserializeAws_json1_1DescribePullThroughCacheRulesCommandError(output, context);
1276
1573
  }
1277
1574
  const data = await parseBody(output.body, context);
1278
1575
  let contents = {};
1279
- contents = deserializeAws_json1_1DescribeRegistryResponse(data, context);
1576
+ contents = deserializeAws_json1_1DescribePullThroughCacheRulesResponse(data, context);
1280
1577
  const response = {
1281
1578
  $metadata: deserializeMetadata(output),
1282
1579
  ...contents,
1283
1580
  };
1284
1581
  return Promise.resolve(response);
1285
1582
  };
1286
- exports.deserializeAws_json1_1DescribeRegistryCommand = deserializeAws_json1_1DescribeRegistryCommand;
1287
- const deserializeAws_json1_1DescribeRegistryCommandError = async (output, context) => {
1583
+ exports.deserializeAws_json1_1DescribePullThroughCacheRulesCommand = deserializeAws_json1_1DescribePullThroughCacheRulesCommand;
1584
+ const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = async (output, context) => {
1288
1585
  const parsedOutput = {
1289
1586
  ...output,
1290
1587
  body: await parseBody(output.body, context),
@@ -1301,8 +1598,79 @@ const deserializeAws_json1_1DescribeRegistryCommandError = async (output, contex
1301
1598
  $metadata: deserializeMetadata(output),
1302
1599
  };
1303
1600
  break;
1304
- case "ServerException":
1305
- case "com.amazonaws.ecr#ServerException":
1601
+ case "PullThroughCacheRuleNotFoundException":
1602
+ case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
1603
+ response = {
1604
+ ...(await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context)),
1605
+ name: errorCode,
1606
+ $metadata: deserializeMetadata(output),
1607
+ };
1608
+ break;
1609
+ case "ServerException":
1610
+ case "com.amazonaws.ecr#ServerException":
1611
+ response = {
1612
+ ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
1613
+ name: errorCode,
1614
+ $metadata: deserializeMetadata(output),
1615
+ };
1616
+ break;
1617
+ case "ValidationException":
1618
+ case "com.amazonaws.ecr#ValidationException":
1619
+ response = {
1620
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
1621
+ name: errorCode,
1622
+ $metadata: deserializeMetadata(output),
1623
+ };
1624
+ break;
1625
+ default:
1626
+ const parsedBody = parsedOutput.body;
1627
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1628
+ response = {
1629
+ ...parsedBody,
1630
+ name: `${errorCode}`,
1631
+ message: parsedBody.message || parsedBody.Message || errorCode,
1632
+ $fault: "client",
1633
+ $metadata: deserializeMetadata(output),
1634
+ };
1635
+ }
1636
+ const message = response.message || response.Message || errorCode;
1637
+ response.message = message;
1638
+ delete response.Message;
1639
+ return Promise.reject(Object.assign(new Error(message), response));
1640
+ };
1641
+ const deserializeAws_json1_1DescribeRegistryCommand = async (output, context) => {
1642
+ if (output.statusCode >= 300) {
1643
+ return deserializeAws_json1_1DescribeRegistryCommandError(output, context);
1644
+ }
1645
+ const data = await parseBody(output.body, context);
1646
+ let contents = {};
1647
+ contents = deserializeAws_json1_1DescribeRegistryResponse(data, context);
1648
+ const response = {
1649
+ $metadata: deserializeMetadata(output),
1650
+ ...contents,
1651
+ };
1652
+ return Promise.resolve(response);
1653
+ };
1654
+ exports.deserializeAws_json1_1DescribeRegistryCommand = deserializeAws_json1_1DescribeRegistryCommand;
1655
+ const deserializeAws_json1_1DescribeRegistryCommandError = async (output, context) => {
1656
+ const parsedOutput = {
1657
+ ...output,
1658
+ body: await parseBody(output.body, context),
1659
+ };
1660
+ let response;
1661
+ let errorCode = "UnknownError";
1662
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1663
+ switch (errorCode) {
1664
+ case "InvalidParameterException":
1665
+ case "com.amazonaws.ecr#InvalidParameterException":
1666
+ response = {
1667
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
1668
+ name: errorCode,
1669
+ $metadata: deserializeMetadata(output),
1670
+ };
1671
+ break;
1672
+ case "ServerException":
1673
+ case "com.amazonaws.ecr#ServerException":
1306
1674
  response = {
1307
1675
  ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
1308
1676
  name: errorCode,
@@ -1743,6 +2111,69 @@ const deserializeAws_json1_1GetRegistryPolicyCommandError = async (output, conte
1743
2111
  delete response.Message;
1744
2112
  return Promise.reject(Object.assign(new Error(message), response));
1745
2113
  };
2114
+ const deserializeAws_json1_1GetRegistryScanningConfigurationCommand = async (output, context) => {
2115
+ if (output.statusCode >= 300) {
2116
+ return deserializeAws_json1_1GetRegistryScanningConfigurationCommandError(output, context);
2117
+ }
2118
+ const data = await parseBody(output.body, context);
2119
+ let contents = {};
2120
+ contents = deserializeAws_json1_1GetRegistryScanningConfigurationResponse(data, context);
2121
+ const response = {
2122
+ $metadata: deserializeMetadata(output),
2123
+ ...contents,
2124
+ };
2125
+ return Promise.resolve(response);
2126
+ };
2127
+ exports.deserializeAws_json1_1GetRegistryScanningConfigurationCommand = deserializeAws_json1_1GetRegistryScanningConfigurationCommand;
2128
+ const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = async (output, context) => {
2129
+ const parsedOutput = {
2130
+ ...output,
2131
+ body: await parseBody(output.body, context),
2132
+ };
2133
+ let response;
2134
+ let errorCode = "UnknownError";
2135
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2136
+ switch (errorCode) {
2137
+ case "InvalidParameterException":
2138
+ case "com.amazonaws.ecr#InvalidParameterException":
2139
+ response = {
2140
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
2141
+ name: errorCode,
2142
+ $metadata: deserializeMetadata(output),
2143
+ };
2144
+ break;
2145
+ case "ServerException":
2146
+ case "com.amazonaws.ecr#ServerException":
2147
+ response = {
2148
+ ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
2149
+ name: errorCode,
2150
+ $metadata: deserializeMetadata(output),
2151
+ };
2152
+ break;
2153
+ case "ValidationException":
2154
+ case "com.amazonaws.ecr#ValidationException":
2155
+ response = {
2156
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
2157
+ name: errorCode,
2158
+ $metadata: deserializeMetadata(output),
2159
+ };
2160
+ break;
2161
+ default:
2162
+ const parsedBody = parsedOutput.body;
2163
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2164
+ response = {
2165
+ ...parsedBody,
2166
+ name: `${errorCode}`,
2167
+ message: parsedBody.message || parsedBody.Message || errorCode,
2168
+ $fault: "client",
2169
+ $metadata: deserializeMetadata(output),
2170
+ };
2171
+ }
2172
+ const message = response.message || response.Message || errorCode;
2173
+ response.message = message;
2174
+ delete response.Message;
2175
+ return Promise.reject(Object.assign(new Error(message), response));
2176
+ };
1746
2177
  const deserializeAws_json1_1GetRepositoryPolicyCommand = async (output, context) => {
1747
2178
  if (output.statusCode >= 300) {
1748
2179
  return deserializeAws_json1_1GetRepositoryPolicyCommandError(output, context);
@@ -2177,6 +2608,14 @@ const deserializeAws_json1_1PutImageScanningConfigurationCommandError = async (o
2177
2608
  $metadata: deserializeMetadata(output),
2178
2609
  };
2179
2610
  break;
2611
+ case "ValidationException":
2612
+ case "com.amazonaws.ecr#ValidationException":
2613
+ response = {
2614
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
2615
+ name: errorCode,
2616
+ $metadata: deserializeMetadata(output),
2617
+ };
2618
+ break;
2180
2619
  default:
2181
2620
  const parsedBody = parsedOutput.body;
2182
2621
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2382,6 +2821,69 @@ const deserializeAws_json1_1PutRegistryPolicyCommandError = async (output, conte
2382
2821
  delete response.Message;
2383
2822
  return Promise.reject(Object.assign(new Error(message), response));
2384
2823
  };
2824
+ const deserializeAws_json1_1PutRegistryScanningConfigurationCommand = async (output, context) => {
2825
+ if (output.statusCode >= 300) {
2826
+ return deserializeAws_json1_1PutRegistryScanningConfigurationCommandError(output, context);
2827
+ }
2828
+ const data = await parseBody(output.body, context);
2829
+ let contents = {};
2830
+ contents = deserializeAws_json1_1PutRegistryScanningConfigurationResponse(data, context);
2831
+ const response = {
2832
+ $metadata: deserializeMetadata(output),
2833
+ ...contents,
2834
+ };
2835
+ return Promise.resolve(response);
2836
+ };
2837
+ exports.deserializeAws_json1_1PutRegistryScanningConfigurationCommand = deserializeAws_json1_1PutRegistryScanningConfigurationCommand;
2838
+ const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = async (output, context) => {
2839
+ const parsedOutput = {
2840
+ ...output,
2841
+ body: await parseBody(output.body, context),
2842
+ };
2843
+ let response;
2844
+ let errorCode = "UnknownError";
2845
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2846
+ switch (errorCode) {
2847
+ case "InvalidParameterException":
2848
+ case "com.amazonaws.ecr#InvalidParameterException":
2849
+ response = {
2850
+ ...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
2851
+ name: errorCode,
2852
+ $metadata: deserializeMetadata(output),
2853
+ };
2854
+ break;
2855
+ case "ServerException":
2856
+ case "com.amazonaws.ecr#ServerException":
2857
+ response = {
2858
+ ...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
2859
+ name: errorCode,
2860
+ $metadata: deserializeMetadata(output),
2861
+ };
2862
+ break;
2863
+ case "ValidationException":
2864
+ case "com.amazonaws.ecr#ValidationException":
2865
+ response = {
2866
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
2867
+ name: errorCode,
2868
+ $metadata: deserializeMetadata(output),
2869
+ };
2870
+ break;
2871
+ default:
2872
+ const parsedBody = parsedOutput.body;
2873
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2874
+ response = {
2875
+ ...parsedBody,
2876
+ name: `${errorCode}`,
2877
+ message: parsedBody.message || parsedBody.Message || errorCode,
2878
+ $fault: "client",
2879
+ $metadata: deserializeMetadata(output),
2880
+ };
2881
+ }
2882
+ const message = response.message || response.Message || errorCode;
2883
+ response.message = message;
2884
+ delete response.Message;
2885
+ return Promise.reject(Object.assign(new Error(message), response));
2886
+ };
2385
2887
  const deserializeAws_json1_1PutReplicationConfigurationCommand = async (output, context) => {
2386
2888
  if (output.statusCode >= 300) {
2387
2889
  return deserializeAws_json1_1PutReplicationConfigurationCommandError(output, context);
@@ -2579,6 +3081,14 @@ const deserializeAws_json1_1StartImageScanCommandError = async (output, context)
2579
3081
  $metadata: deserializeMetadata(output),
2580
3082
  };
2581
3083
  break;
3084
+ case "ValidationException":
3085
+ case "com.amazonaws.ecr#ValidationException":
3086
+ response = {
3087
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
3088
+ name: errorCode,
3089
+ $metadata: deserializeMetadata(output),
3090
+ };
3091
+ break;
2582
3092
  default:
2583
3093
  const parsedBody = parsedOutput.body;
2584
3094
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3125,6 +3635,28 @@ const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput
3125
3635
  };
3126
3636
  return contents;
3127
3637
  };
3638
+ const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
3639
+ const body = parsedOutput.body;
3640
+ const deserialized = deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException(body, context);
3641
+ const contents = {
3642
+ name: "PullThroughCacheRuleAlreadyExistsException",
3643
+ $fault: "client",
3644
+ $metadata: deserializeMetadata(parsedOutput),
3645
+ ...deserialized,
3646
+ };
3647
+ return contents;
3648
+ };
3649
+ const deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse = async (parsedOutput, context) => {
3650
+ const body = parsedOutput.body;
3651
+ const deserialized = deserializeAws_json1_1PullThroughCacheRuleNotFoundException(body, context);
3652
+ const contents = {
3653
+ name: "PullThroughCacheRuleNotFoundException",
3654
+ $fault: "client",
3655
+ $metadata: deserializeMetadata(parsedOutput),
3656
+ ...deserialized,
3657
+ };
3658
+ return contents;
3659
+ };
3128
3660
  const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = async (parsedOutput, context) => {
3129
3661
  const body = parsedOutput.body;
3130
3662
  const deserialized = deserializeAws_json1_1ReferencedImagesNotFoundException(body, context);
@@ -3235,6 +3767,17 @@ const deserializeAws_json1_1UnsupportedImageTypeExceptionResponse = async (parse
3235
3767
  };
3236
3768
  return contents;
3237
3769
  };
3770
+ const deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse = async (parsedOutput, context) => {
3771
+ const body = parsedOutput.body;
3772
+ const deserialized = deserializeAws_json1_1UnsupportedUpstreamRegistryException(body, context);
3773
+ const contents = {
3774
+ name: "UnsupportedUpstreamRegistryException",
3775
+ $fault: "client",
3776
+ $metadata: deserializeMetadata(parsedOutput),
3777
+ ...deserialized,
3778
+ };
3779
+ return contents;
3780
+ };
3238
3781
  const deserializeAws_json1_1UploadNotFoundExceptionResponse = async (parsedOutput, context) => {
3239
3782
  const body = parsedOutput.body;
3240
3783
  const deserialized = deserializeAws_json1_1UploadNotFoundException(body, context);
@@ -3300,6 +3843,14 @@ const serializeAws_json1_1BatchGetImageRequest = (input, context) => {
3300
3843
  input.repositoryName !== null && { repositoryName: input.repositoryName }),
3301
3844
  };
3302
3845
  };
3846
+ const serializeAws_json1_1BatchGetRepositoryScanningConfigurationRequest = (input, context) => {
3847
+ return {
3848
+ ...(input.repositoryNames !== undefined &&
3849
+ input.repositoryNames !== null && {
3850
+ repositoryNames: serializeAws_json1_1ScanningConfigurationRepositoryNameList(input.repositoryNames, context),
3851
+ }),
3852
+ };
3853
+ };
3303
3854
  const serializeAws_json1_1CompleteLayerUploadRequest = (input, context) => {
3304
3855
  return {
3305
3856
  ...(input.layerDigests !== undefined &&
@@ -3312,6 +3863,15 @@ const serializeAws_json1_1CompleteLayerUploadRequest = (input, context) => {
3312
3863
  ...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
3313
3864
  };
3314
3865
  };
3866
+ const serializeAws_json1_1CreatePullThroughCacheRuleRequest = (input, context) => {
3867
+ return {
3868
+ ...(input.ecrRepositoryPrefix !== undefined &&
3869
+ input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
3870
+ ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3871
+ ...(input.upstreamRegistryUrl !== undefined &&
3872
+ input.upstreamRegistryUrl !== null && { upstreamRegistryUrl: input.upstreamRegistryUrl }),
3873
+ };
3874
+ };
3315
3875
  const serializeAws_json1_1CreateRepositoryRequest = (input, context) => {
3316
3876
  return {
3317
3877
  ...(input.encryptionConfiguration !== undefined &&
@@ -3337,6 +3897,13 @@ const serializeAws_json1_1DeleteLifecyclePolicyRequest = (input, context) => {
3337
3897
  input.repositoryName !== null && { repositoryName: input.repositoryName }),
3338
3898
  };
3339
3899
  };
3900
+ const serializeAws_json1_1DeletePullThroughCacheRuleRequest = (input, context) => {
3901
+ return {
3902
+ ...(input.ecrRepositoryPrefix !== undefined &&
3903
+ input.ecrRepositoryPrefix !== null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
3904
+ ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3905
+ };
3906
+ };
3340
3907
  const serializeAws_json1_1DeleteRegistryPolicyRequest = (input, context) => {
3341
3908
  return {};
3342
3909
  };
@@ -3393,6 +3960,17 @@ const serializeAws_json1_1DescribeImagesRequest = (input, context) => {
3393
3960
  input.repositoryName !== null && { repositoryName: input.repositoryName }),
3394
3961
  };
3395
3962
  };
3963
+ const serializeAws_json1_1DescribePullThroughCacheRulesRequest = (input, context) => {
3964
+ return {
3965
+ ...(input.ecrRepositoryPrefixes !== undefined &&
3966
+ input.ecrRepositoryPrefixes !== null && {
3967
+ ecrRepositoryPrefixes: serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList(input.ecrRepositoryPrefixes, context),
3968
+ }),
3969
+ ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3970
+ ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3971
+ ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3972
+ };
3973
+ };
3396
3974
  const serializeAws_json1_1DescribeRegistryRequest = (input, context) => {
3397
3975
  return {};
3398
3976
  };
@@ -3463,6 +4041,9 @@ const serializeAws_json1_1GetLifecyclePolicyRequest = (input, context) => {
3463
4041
  const serializeAws_json1_1GetRegistryPolicyRequest = (input, context) => {
3464
4042
  return {};
3465
4043
  };
4044
+ const serializeAws_json1_1GetRegistryScanningConfigurationRequest = (input, context) => {
4045
+ return {};
4046
+ };
3466
4047
  const serializeAws_json1_1GetRepositoryPolicyRequest = (input, context) => {
3467
4048
  return {
3468
4049
  ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
@@ -3544,13 +4125,23 @@ const serializeAws_json1_1MediaTypeList = (input, context) => {
3544
4125
  return entry;
3545
4126
  });
3546
4127
  };
3547
- const serializeAws_json1_1PutImageRequest = (input, context) => {
3548
- return {
3549
- ...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }),
3550
- ...(input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest }),
3551
- ...(input.imageManifestMediaType !== undefined &&
3552
- input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType }),
3553
- ...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }),
4128
+ const serializeAws_json1_1PullThroughCacheRuleRepositoryPrefixList = (input, context) => {
4129
+ return input
4130
+ .filter((e) => e != null)
4131
+ .map((entry) => {
4132
+ if (entry === null) {
4133
+ return null;
4134
+ }
4135
+ return entry;
4136
+ });
4137
+ };
4138
+ const serializeAws_json1_1PutImageRequest = (input, context) => {
4139
+ return {
4140
+ ...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }),
4141
+ ...(input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest }),
4142
+ ...(input.imageManifestMediaType !== undefined &&
4143
+ input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType }),
4144
+ ...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }),
3554
4145
  ...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
3555
4146
  ...(input.repositoryName !== undefined &&
3556
4147
  input.repositoryName !== null && { repositoryName: input.repositoryName }),
@@ -3590,6 +4181,13 @@ const serializeAws_json1_1PutRegistryPolicyRequest = (input, context) => {
3590
4181
  ...(input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }),
3591
4182
  };
3592
4183
  };
4184
+ const serializeAws_json1_1PutRegistryScanningConfigurationRequest = (input, context) => {
4185
+ return {
4186
+ ...(input.rules !== undefined &&
4187
+ input.rules !== null && { rules: serializeAws_json1_1RegistryScanningRuleList(input.rules, context) }),
4188
+ ...(input.scanType !== undefined && input.scanType !== null && { scanType: input.scanType }),
4189
+ };
4190
+ };
3593
4191
  const serializeAws_json1_1PutReplicationConfigurationRequest = (input, context) => {
3594
4192
  return {
3595
4193
  ...(input.replicationConfiguration !== undefined &&
@@ -3598,6 +4196,25 @@ const serializeAws_json1_1PutReplicationConfigurationRequest = (input, context)
3598
4196
  }),
3599
4197
  };
3600
4198
  };
4199
+ const serializeAws_json1_1RegistryScanningRule = (input, context) => {
4200
+ return {
4201
+ ...(input.repositoryFilters !== undefined &&
4202
+ input.repositoryFilters !== null && {
4203
+ repositoryFilters: serializeAws_json1_1ScanningRepositoryFilterList(input.repositoryFilters, context),
4204
+ }),
4205
+ ...(input.scanFrequency !== undefined && input.scanFrequency !== null && { scanFrequency: input.scanFrequency }),
4206
+ };
4207
+ };
4208
+ const serializeAws_json1_1RegistryScanningRuleList = (input, context) => {
4209
+ return input
4210
+ .filter((e) => e != null)
4211
+ .map((entry) => {
4212
+ if (entry === null) {
4213
+ return null;
4214
+ }
4215
+ return serializeAws_json1_1RegistryScanningRule(entry, context);
4216
+ });
4217
+ };
3601
4218
  const serializeAws_json1_1ReplicationConfiguration = (input, context) => {
3602
4219
  return {
3603
4220
  ...(input.rules !== undefined &&
@@ -3668,6 +4285,32 @@ const serializeAws_json1_1RepositoryNameList = (input, context) => {
3668
4285
  return entry;
3669
4286
  });
3670
4287
  };
4288
+ const serializeAws_json1_1ScanningConfigurationRepositoryNameList = (input, context) => {
4289
+ return input
4290
+ .filter((e) => e != null)
4291
+ .map((entry) => {
4292
+ if (entry === null) {
4293
+ return null;
4294
+ }
4295
+ return entry;
4296
+ });
4297
+ };
4298
+ const serializeAws_json1_1ScanningRepositoryFilter = (input, context) => {
4299
+ return {
4300
+ ...(input.filter !== undefined && input.filter !== null && { filter: input.filter }),
4301
+ ...(input.filterType !== undefined && input.filterType !== null && { filterType: input.filterType }),
4302
+ };
4303
+ };
4304
+ const serializeAws_json1_1ScanningRepositoryFilterList = (input, context) => {
4305
+ return input
4306
+ .filter((e) => e != null)
4307
+ .map((entry) => {
4308
+ if (entry === null) {
4309
+ return null;
4310
+ }
4311
+ return serializeAws_json1_1ScanningRepositoryFilter(entry, context);
4312
+ });
4313
+ };
3671
4314
  const serializeAws_json1_1SetRepositoryPolicyRequest = (input, context) => {
3672
4315
  return {
3673
4316
  ...(input.force !== undefined && input.force !== null && { force: input.force }),
@@ -3781,6 +4424,22 @@ const deserializeAws_json1_1AuthorizationDataList = (output, context) => {
3781
4424
  return deserializeAws_json1_1AuthorizationData(entry, context);
3782
4425
  });
3783
4426
  };
4427
+ const deserializeAws_json1_1AwsEcrContainerImageDetails = (output, context) => {
4428
+ return {
4429
+ architecture: smithy_client_1.expectString(output.architecture),
4430
+ author: smithy_client_1.expectString(output.author),
4431
+ imageHash: smithy_client_1.expectString(output.imageHash),
4432
+ imageTags: output.imageTags !== undefined && output.imageTags !== null
4433
+ ? deserializeAws_json1_1ImageTagsList(output.imageTags, context)
4434
+ : undefined,
4435
+ platform: smithy_client_1.expectString(output.platform),
4436
+ pushedAt: output.pushedAt !== undefined && output.pushedAt !== null
4437
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.pushedAt)))
4438
+ : undefined,
4439
+ registry: smithy_client_1.expectString(output.registry),
4440
+ repositoryName: smithy_client_1.expectString(output.repositoryName),
4441
+ };
4442
+ };
3784
4443
  const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = (output, context) => {
3785
4444
  return {
3786
4445
  failures: output.failures !== undefined && output.failures !== null
@@ -3811,6 +4470,16 @@ const deserializeAws_json1_1BatchGetImageResponse = (output, context) => {
3811
4470
  : undefined,
3812
4471
  };
3813
4472
  };
4473
+ const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationResponse = (output, context) => {
4474
+ return {
4475
+ failures: output.failures !== undefined && output.failures !== null
4476
+ ? deserializeAws_json1_1RepositoryScanningConfigurationFailureList(output.failures, context)
4477
+ : undefined,
4478
+ scanningConfigurations: output.scanningConfigurations !== undefined && output.scanningConfigurations !== null
4479
+ ? deserializeAws_json1_1RepositoryScanningConfigurationList(output.scanningConfigurations, context)
4480
+ : undefined,
4481
+ };
4482
+ };
3814
4483
  const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
3815
4484
  return {
3816
4485
  layerDigest: smithy_client_1.expectString(output.layerDigest),
@@ -3819,6 +4488,16 @@ const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
3819
4488
  uploadId: smithy_client_1.expectString(output.uploadId),
3820
4489
  };
3821
4490
  };
4491
+ const deserializeAws_json1_1CreatePullThroughCacheRuleResponse = (output, context) => {
4492
+ return {
4493
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
4494
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
4495
+ : undefined,
4496
+ ecrRepositoryPrefix: smithy_client_1.expectString(output.ecrRepositoryPrefix),
4497
+ registryId: smithy_client_1.expectString(output.registryId),
4498
+ upstreamRegistryUrl: smithy_client_1.expectString(output.upstreamRegistryUrl),
4499
+ };
4500
+ };
3822
4501
  const deserializeAws_json1_1CreateRepositoryResponse = (output, context) => {
3823
4502
  return {
3824
4503
  repository: output.repository !== undefined && output.repository !== null
@@ -3826,6 +4505,51 @@ const deserializeAws_json1_1CreateRepositoryResponse = (output, context) => {
3826
4505
  : undefined,
3827
4506
  };
3828
4507
  };
4508
+ const deserializeAws_json1_1CvssScore = (output, context) => {
4509
+ return {
4510
+ baseScore: smithy_client_1.limitedParseDouble(output.baseScore),
4511
+ scoringVector: smithy_client_1.expectString(output.scoringVector),
4512
+ source: smithy_client_1.expectString(output.source),
4513
+ version: smithy_client_1.expectString(output.version),
4514
+ };
4515
+ };
4516
+ const deserializeAws_json1_1CvssScoreAdjustment = (output, context) => {
4517
+ return {
4518
+ metric: smithy_client_1.expectString(output.metric),
4519
+ reason: smithy_client_1.expectString(output.reason),
4520
+ };
4521
+ };
4522
+ const deserializeAws_json1_1CvssScoreAdjustmentList = (output, context) => {
4523
+ return (output || [])
4524
+ .filter((e) => e != null)
4525
+ .map((entry) => {
4526
+ if (entry === null) {
4527
+ return null;
4528
+ }
4529
+ return deserializeAws_json1_1CvssScoreAdjustment(entry, context);
4530
+ });
4531
+ };
4532
+ const deserializeAws_json1_1CvssScoreDetails = (output, context) => {
4533
+ return {
4534
+ adjustments: output.adjustments !== undefined && output.adjustments !== null
4535
+ ? deserializeAws_json1_1CvssScoreAdjustmentList(output.adjustments, context)
4536
+ : undefined,
4537
+ score: smithy_client_1.limitedParseDouble(output.score),
4538
+ scoreSource: smithy_client_1.expectString(output.scoreSource),
4539
+ scoringVector: smithy_client_1.expectString(output.scoringVector),
4540
+ version: smithy_client_1.expectString(output.version),
4541
+ };
4542
+ };
4543
+ const deserializeAws_json1_1CvssScoreList = (output, context) => {
4544
+ return (output || [])
4545
+ .filter((e) => e != null)
4546
+ .map((entry) => {
4547
+ if (entry === null) {
4548
+ return null;
4549
+ }
4550
+ return deserializeAws_json1_1CvssScore(entry, context);
4551
+ });
4552
+ };
3829
4553
  const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) => {
3830
4554
  return {
3831
4555
  lastEvaluatedAt: output.lastEvaluatedAt !== undefined && output.lastEvaluatedAt !== null
@@ -3836,6 +4560,16 @@ const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) =>
3836
4560
  repositoryName: smithy_client_1.expectString(output.repositoryName),
3837
4561
  };
3838
4562
  };
4563
+ const deserializeAws_json1_1DeletePullThroughCacheRuleResponse = (output, context) => {
4564
+ return {
4565
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
4566
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
4567
+ : undefined,
4568
+ ecrRepositoryPrefix: smithy_client_1.expectString(output.ecrRepositoryPrefix),
4569
+ registryId: smithy_client_1.expectString(output.registryId),
4570
+ upstreamRegistryUrl: smithy_client_1.expectString(output.upstreamRegistryUrl),
4571
+ };
4572
+ };
3839
4573
  const deserializeAws_json1_1DeleteRegistryPolicyResponse = (output, context) => {
3840
4574
  return {
3841
4575
  policyText: smithy_client_1.expectString(output.policyText),
@@ -3891,6 +4625,14 @@ const deserializeAws_json1_1DescribeImagesResponse = (output, context) => {
3891
4625
  nextToken: smithy_client_1.expectString(output.nextToken),
3892
4626
  };
3893
4627
  };
4628
+ const deserializeAws_json1_1DescribePullThroughCacheRulesResponse = (output, context) => {
4629
+ return {
4630
+ nextToken: smithy_client_1.expectString(output.nextToken),
4631
+ pullThroughCacheRules: output.pullThroughCacheRules !== undefined && output.pullThroughCacheRules !== null
4632
+ ? deserializeAws_json1_1PullThroughCacheRuleList(output.pullThroughCacheRules, context)
4633
+ : undefined,
4634
+ };
4635
+ };
3894
4636
  const deserializeAws_json1_1DescribeRegistryResponse = (output, context) => {
3895
4637
  return {
3896
4638
  registryId: smithy_client_1.expectString(output.registryId),
@@ -3918,6 +4660,49 @@ const deserializeAws_json1_1EncryptionConfiguration = (output, context) => {
3918
4660
  kmsKey: smithy_client_1.expectString(output.kmsKey),
3919
4661
  };
3920
4662
  };
4663
+ const deserializeAws_json1_1EnhancedImageScanFinding = (output, context) => {
4664
+ return {
4665
+ awsAccountId: smithy_client_1.expectString(output.awsAccountId),
4666
+ description: smithy_client_1.expectString(output.description),
4667
+ findingArn: smithy_client_1.expectString(output.findingArn),
4668
+ firstObservedAt: output.firstObservedAt !== undefined && output.firstObservedAt !== null
4669
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.firstObservedAt)))
4670
+ : undefined,
4671
+ lastObservedAt: output.lastObservedAt !== undefined && output.lastObservedAt !== null
4672
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastObservedAt)))
4673
+ : undefined,
4674
+ packageVulnerabilityDetails: output.packageVulnerabilityDetails !== undefined && output.packageVulnerabilityDetails !== null
4675
+ ? deserializeAws_json1_1PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
4676
+ : undefined,
4677
+ remediation: output.remediation !== undefined && output.remediation !== null
4678
+ ? deserializeAws_json1_1Remediation(output.remediation, context)
4679
+ : undefined,
4680
+ resources: output.resources !== undefined && output.resources !== null
4681
+ ? deserializeAws_json1_1ResourceList(output.resources, context)
4682
+ : undefined,
4683
+ score: smithy_client_1.limitedParseDouble(output.score),
4684
+ scoreDetails: output.scoreDetails !== undefined && output.scoreDetails !== null
4685
+ ? deserializeAws_json1_1ScoreDetails(output.scoreDetails, context)
4686
+ : undefined,
4687
+ severity: smithy_client_1.expectString(output.severity),
4688
+ status: smithy_client_1.expectString(output.status),
4689
+ title: smithy_client_1.expectString(output.title),
4690
+ type: smithy_client_1.expectString(output.type),
4691
+ updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
4692
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.updatedAt)))
4693
+ : undefined,
4694
+ };
4695
+ };
4696
+ const deserializeAws_json1_1EnhancedImageScanFindingList = (output, context) => {
4697
+ return (output || [])
4698
+ .filter((e) => e != null)
4699
+ .map((entry) => {
4700
+ if (entry === null) {
4701
+ return null;
4702
+ }
4703
+ return deserializeAws_json1_1EnhancedImageScanFinding(entry, context);
4704
+ });
4705
+ };
3921
4706
  const deserializeAws_json1_1FindingSeverityCounts = (output, context) => {
3922
4707
  return Object.entries(output).reduce((acc, [key, value]) => {
3923
4708
  if (value === null) {
@@ -3973,6 +4758,14 @@ const deserializeAws_json1_1GetRegistryPolicyResponse = (output, context) => {
3973
4758
  registryId: smithy_client_1.expectString(output.registryId),
3974
4759
  };
3975
4760
  };
4761
+ const deserializeAws_json1_1GetRegistryScanningConfigurationResponse = (output, context) => {
4762
+ return {
4763
+ registryId: smithy_client_1.expectString(output.registryId),
4764
+ scanningConfiguration: output.scanningConfiguration !== undefined && output.scanningConfiguration !== null
4765
+ ? deserializeAws_json1_1RegistryScanningConfiguration(output.scanningConfiguration, context)
4766
+ : undefined,
4767
+ };
4768
+ };
3976
4769
  const deserializeAws_json1_1GetRepositoryPolicyResponse = (output, context) => {
3977
4770
  return {
3978
4771
  policyText: smithy_client_1.expectString(output.policyText),
@@ -4124,6 +4917,9 @@ const deserializeAws_json1_1ImageScanFindingList = (output, context) => {
4124
4917
  };
4125
4918
  const deserializeAws_json1_1ImageScanFindings = (output, context) => {
4126
4919
  return {
4920
+ enhancedFindings: output.enhancedFindings !== undefined && output.enhancedFindings !== null
4921
+ ? deserializeAws_json1_1EnhancedImageScanFindingList(output.enhancedFindings, context)
4922
+ : undefined,
4127
4923
  findingSeverityCounts: output.findingSeverityCounts !== undefined && output.findingSeverityCounts !== null
4128
4924
  ? deserializeAws_json1_1FindingSeverityCounts(output.findingSeverityCounts, context)
4129
4925
  : undefined,
@@ -4177,6 +4973,16 @@ const deserializeAws_json1_1ImageTagList = (output, context) => {
4177
4973
  return smithy_client_1.expectString(entry);
4178
4974
  });
4179
4975
  };
4976
+ const deserializeAws_json1_1ImageTagsList = (output, context) => {
4977
+ return (output || [])
4978
+ .filter((e) => e != null)
4979
+ .map((entry) => {
4980
+ if (entry === null) {
4981
+ return null;
4982
+ }
4983
+ return smithy_client_1.expectString(entry);
4984
+ });
4985
+ };
4180
4986
  const deserializeAws_json1_1InitiateLayerUploadResponse = (output, context) => {
4181
4987
  return {
4182
4988
  partSize: smithy_client_1.expectLong(output.partSize),
@@ -4338,6 +5144,62 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
4338
5144
  : undefined,
4339
5145
  };
4340
5146
  };
5147
+ const deserializeAws_json1_1PackageVulnerabilityDetails = (output, context) => {
5148
+ return {
5149
+ cvss: output.cvss !== undefined && output.cvss !== null
5150
+ ? deserializeAws_json1_1CvssScoreList(output.cvss, context)
5151
+ : undefined,
5152
+ referenceUrls: output.referenceUrls !== undefined && output.referenceUrls !== null
5153
+ ? deserializeAws_json1_1ReferenceUrlsList(output.referenceUrls, context)
5154
+ : undefined,
5155
+ relatedVulnerabilities: output.relatedVulnerabilities !== undefined && output.relatedVulnerabilities !== null
5156
+ ? deserializeAws_json1_1RelatedVulnerabilitiesList(output.relatedVulnerabilities, context)
5157
+ : undefined,
5158
+ source: smithy_client_1.expectString(output.source),
5159
+ sourceUrl: smithy_client_1.expectString(output.sourceUrl),
5160
+ vendorCreatedAt: output.vendorCreatedAt !== undefined && output.vendorCreatedAt !== null
5161
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.vendorCreatedAt)))
5162
+ : undefined,
5163
+ vendorSeverity: smithy_client_1.expectString(output.vendorSeverity),
5164
+ vendorUpdatedAt: output.vendorUpdatedAt !== undefined && output.vendorUpdatedAt !== null
5165
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.vendorUpdatedAt)))
5166
+ : undefined,
5167
+ vulnerabilityId: smithy_client_1.expectString(output.vulnerabilityId),
5168
+ vulnerablePackages: output.vulnerablePackages !== undefined && output.vulnerablePackages !== null
5169
+ ? deserializeAws_json1_1VulnerablePackagesList(output.vulnerablePackages, context)
5170
+ : undefined,
5171
+ };
5172
+ };
5173
+ const deserializeAws_json1_1PullThroughCacheRule = (output, context) => {
5174
+ return {
5175
+ createdAt: output.createdAt !== undefined && output.createdAt !== null
5176
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
5177
+ : undefined,
5178
+ ecrRepositoryPrefix: smithy_client_1.expectString(output.ecrRepositoryPrefix),
5179
+ registryId: smithy_client_1.expectString(output.registryId),
5180
+ upstreamRegistryUrl: smithy_client_1.expectString(output.upstreamRegistryUrl),
5181
+ };
5182
+ };
5183
+ const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException = (output, context) => {
5184
+ return {
5185
+ message: smithy_client_1.expectString(output.message),
5186
+ };
5187
+ };
5188
+ const deserializeAws_json1_1PullThroughCacheRuleList = (output, context) => {
5189
+ return (output || [])
5190
+ .filter((e) => e != null)
5191
+ .map((entry) => {
5192
+ if (entry === null) {
5193
+ return null;
5194
+ }
5195
+ return deserializeAws_json1_1PullThroughCacheRule(entry, context);
5196
+ });
5197
+ };
5198
+ const deserializeAws_json1_1PullThroughCacheRuleNotFoundException = (output, context) => {
5199
+ return {
5200
+ message: smithy_client_1.expectString(output.message),
5201
+ };
5202
+ };
4341
5203
  const deserializeAws_json1_1PutImageResponse = (output, context) => {
4342
5204
  return {
4343
5205
  image: output.image !== undefined && output.image !== null
@@ -4374,6 +5236,13 @@ const deserializeAws_json1_1PutRegistryPolicyResponse = (output, context) => {
4374
5236
  registryId: smithy_client_1.expectString(output.registryId),
4375
5237
  };
4376
5238
  };
5239
+ const deserializeAws_json1_1PutRegistryScanningConfigurationResponse = (output, context) => {
5240
+ return {
5241
+ registryScanningConfiguration: output.registryScanningConfiguration !== undefined && output.registryScanningConfiguration !== null
5242
+ ? deserializeAws_json1_1RegistryScanningConfiguration(output.registryScanningConfiguration, context)
5243
+ : undefined,
5244
+ };
5245
+ };
4377
5246
  const deserializeAws_json1_1PutReplicationConfigurationResponse = (output, context) => {
4378
5247
  return {
4379
5248
  replicationConfiguration: output.replicationConfiguration !== undefined && output.replicationConfiguration !== null
@@ -4381,16 +5250,75 @@ const deserializeAws_json1_1PutReplicationConfigurationResponse = (output, conte
4381
5250
  : undefined,
4382
5251
  };
4383
5252
  };
5253
+ const deserializeAws_json1_1Recommendation = (output, context) => {
5254
+ return {
5255
+ text: smithy_client_1.expectString(output.text),
5256
+ url: smithy_client_1.expectString(output.url),
5257
+ };
5258
+ };
4384
5259
  const deserializeAws_json1_1ReferencedImagesNotFoundException = (output, context) => {
4385
5260
  return {
4386
5261
  message: smithy_client_1.expectString(output.message),
4387
5262
  };
4388
5263
  };
5264
+ const deserializeAws_json1_1ReferenceUrlsList = (output, context) => {
5265
+ return (output || [])
5266
+ .filter((e) => e != null)
5267
+ .map((entry) => {
5268
+ if (entry === null) {
5269
+ return null;
5270
+ }
5271
+ return smithy_client_1.expectString(entry);
5272
+ });
5273
+ };
4389
5274
  const deserializeAws_json1_1RegistryPolicyNotFoundException = (output, context) => {
4390
5275
  return {
4391
5276
  message: smithy_client_1.expectString(output.message),
4392
5277
  };
4393
5278
  };
5279
+ const deserializeAws_json1_1RegistryScanningConfiguration = (output, context) => {
5280
+ return {
5281
+ rules: output.rules !== undefined && output.rules !== null
5282
+ ? deserializeAws_json1_1RegistryScanningRuleList(output.rules, context)
5283
+ : undefined,
5284
+ scanType: smithy_client_1.expectString(output.scanType),
5285
+ };
5286
+ };
5287
+ const deserializeAws_json1_1RegistryScanningRule = (output, context) => {
5288
+ return {
5289
+ repositoryFilters: output.repositoryFilters !== undefined && output.repositoryFilters !== null
5290
+ ? deserializeAws_json1_1ScanningRepositoryFilterList(output.repositoryFilters, context)
5291
+ : undefined,
5292
+ scanFrequency: smithy_client_1.expectString(output.scanFrequency),
5293
+ };
5294
+ };
5295
+ const deserializeAws_json1_1RegistryScanningRuleList = (output, context) => {
5296
+ return (output || [])
5297
+ .filter((e) => e != null)
5298
+ .map((entry) => {
5299
+ if (entry === null) {
5300
+ return null;
5301
+ }
5302
+ return deserializeAws_json1_1RegistryScanningRule(entry, context);
5303
+ });
5304
+ };
5305
+ const deserializeAws_json1_1RelatedVulnerabilitiesList = (output, context) => {
5306
+ return (output || [])
5307
+ .filter((e) => e != null)
5308
+ .map((entry) => {
5309
+ if (entry === null) {
5310
+ return null;
5311
+ }
5312
+ return smithy_client_1.expectString(entry);
5313
+ });
5314
+ };
5315
+ const deserializeAws_json1_1Remediation = (output, context) => {
5316
+ return {
5317
+ recommendation: output.recommendation !== undefined && output.recommendation !== null
5318
+ ? deserializeAws_json1_1Recommendation(output.recommendation, context)
5319
+ : undefined,
5320
+ };
5321
+ };
4394
5322
  const deserializeAws_json1_1ReplicationConfiguration = (output, context) => {
4395
5323
  return {
4396
5324
  rules: output.rules !== undefined && output.rules !== null
@@ -4498,11 +5426,99 @@ const deserializeAws_json1_1RepositoryPolicyNotFoundException = (output, context
4498
5426
  message: smithy_client_1.expectString(output.message),
4499
5427
  };
4500
5428
  };
5429
+ const deserializeAws_json1_1RepositoryScanningConfiguration = (output, context) => {
5430
+ return {
5431
+ appliedScanFilters: output.appliedScanFilters !== undefined && output.appliedScanFilters !== null
5432
+ ? deserializeAws_json1_1ScanningRepositoryFilterList(output.appliedScanFilters, context)
5433
+ : undefined,
5434
+ repositoryArn: smithy_client_1.expectString(output.repositoryArn),
5435
+ repositoryName: smithy_client_1.expectString(output.repositoryName),
5436
+ scanFrequency: smithy_client_1.expectString(output.scanFrequency),
5437
+ scanOnPush: smithy_client_1.expectBoolean(output.scanOnPush),
5438
+ };
5439
+ };
5440
+ const deserializeAws_json1_1RepositoryScanningConfigurationFailure = (output, context) => {
5441
+ return {
5442
+ failureCode: smithy_client_1.expectString(output.failureCode),
5443
+ failureReason: smithy_client_1.expectString(output.failureReason),
5444
+ repositoryName: smithy_client_1.expectString(output.repositoryName),
5445
+ };
5446
+ };
5447
+ const deserializeAws_json1_1RepositoryScanningConfigurationFailureList = (output, context) => {
5448
+ return (output || [])
5449
+ .filter((e) => e != null)
5450
+ .map((entry) => {
5451
+ if (entry === null) {
5452
+ return null;
5453
+ }
5454
+ return deserializeAws_json1_1RepositoryScanningConfigurationFailure(entry, context);
5455
+ });
5456
+ };
5457
+ const deserializeAws_json1_1RepositoryScanningConfigurationList = (output, context) => {
5458
+ return (output || [])
5459
+ .filter((e) => e != null)
5460
+ .map((entry) => {
5461
+ if (entry === null) {
5462
+ return null;
5463
+ }
5464
+ return deserializeAws_json1_1RepositoryScanningConfiguration(entry, context);
5465
+ });
5466
+ };
5467
+ const deserializeAws_json1_1Resource = (output, context) => {
5468
+ return {
5469
+ details: output.details !== undefined && output.details !== null
5470
+ ? deserializeAws_json1_1ResourceDetails(output.details, context)
5471
+ : undefined,
5472
+ id: smithy_client_1.expectString(output.id),
5473
+ tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5474
+ type: smithy_client_1.expectString(output.type),
5475
+ };
5476
+ };
5477
+ const deserializeAws_json1_1ResourceDetails = (output, context) => {
5478
+ return {
5479
+ awsEcrContainerImage: output.awsEcrContainerImage !== undefined && output.awsEcrContainerImage !== null
5480
+ ? deserializeAws_json1_1AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
5481
+ : undefined,
5482
+ };
5483
+ };
5484
+ const deserializeAws_json1_1ResourceList = (output, context) => {
5485
+ return (output || [])
5486
+ .filter((e) => e != null)
5487
+ .map((entry) => {
5488
+ if (entry === null) {
5489
+ return null;
5490
+ }
5491
+ return deserializeAws_json1_1Resource(entry, context);
5492
+ });
5493
+ };
5494
+ const deserializeAws_json1_1ScanningRepositoryFilter = (output, context) => {
5495
+ return {
5496
+ filter: smithy_client_1.expectString(output.filter),
5497
+ filterType: smithy_client_1.expectString(output.filterType),
5498
+ };
5499
+ };
5500
+ const deserializeAws_json1_1ScanningRepositoryFilterList = (output, context) => {
5501
+ return (output || [])
5502
+ .filter((e) => e != null)
5503
+ .map((entry) => {
5504
+ if (entry === null) {
5505
+ return null;
5506
+ }
5507
+ return deserializeAws_json1_1ScanningRepositoryFilter(entry, context);
5508
+ });
5509
+ };
4501
5510
  const deserializeAws_json1_1ScanNotFoundException = (output, context) => {
4502
5511
  return {
4503
5512
  message: smithy_client_1.expectString(output.message),
4504
5513
  };
4505
5514
  };
5515
+ const deserializeAws_json1_1ScoreDetails = (output, context) => {
5516
+ return {
5517
+ cvss: output.cvss !== undefined && output.cvss !== null
5518
+ ? deserializeAws_json1_1CvssScoreDetails(output.cvss, context)
5519
+ : undefined,
5520
+ };
5521
+ };
4506
5522
  const deserializeAws_json1_1ServerException = (output, context) => {
4507
5523
  return {
4508
5524
  message: smithy_client_1.expectString(output.message),
@@ -4554,6 +5570,17 @@ const deserializeAws_json1_1TagList = (output, context) => {
4554
5570
  const deserializeAws_json1_1TagResourceResponse = (output, context) => {
4555
5571
  return {};
4556
5572
  };
5573
+ const deserializeAws_json1_1Tags = (output, context) => {
5574
+ return Object.entries(output).reduce((acc, [key, value]) => {
5575
+ if (value === null) {
5576
+ return acc;
5577
+ }
5578
+ return {
5579
+ ...acc,
5580
+ [key]: smithy_client_1.expectString(value),
5581
+ };
5582
+ }, {});
5583
+ };
4557
5584
  const deserializeAws_json1_1TooManyTagsException = (output, context) => {
4558
5585
  return {
4559
5586
  message: smithy_client_1.expectString(output.message),
@@ -4564,6 +5591,11 @@ const deserializeAws_json1_1UnsupportedImageTypeException = (output, context) =>
4564
5591
  message: smithy_client_1.expectString(output.message),
4565
5592
  };
4566
5593
  };
5594
+ const deserializeAws_json1_1UnsupportedUpstreamRegistryException = (output, context) => {
5595
+ return {
5596
+ message: smithy_client_1.expectString(output.message),
5597
+ };
5598
+ };
4567
5599
  const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
4568
5600
  return {};
4569
5601
  };
@@ -4585,6 +5617,28 @@ const deserializeAws_json1_1ValidationException = (output, context) => {
4585
5617
  message: smithy_client_1.expectString(output.message),
4586
5618
  };
4587
5619
  };
5620
+ const deserializeAws_json1_1VulnerablePackage = (output, context) => {
5621
+ return {
5622
+ arch: smithy_client_1.expectString(output.arch),
5623
+ epoch: smithy_client_1.expectInt32(output.epoch),
5624
+ filePath: smithy_client_1.expectString(output.filePath),
5625
+ name: smithy_client_1.expectString(output.name),
5626
+ packageManager: smithy_client_1.expectString(output.packageManager),
5627
+ release: smithy_client_1.expectString(output.release),
5628
+ sourceLayerHash: smithy_client_1.expectString(output.sourceLayerHash),
5629
+ version: smithy_client_1.expectString(output.version),
5630
+ };
5631
+ };
5632
+ const deserializeAws_json1_1VulnerablePackagesList = (output, context) => {
5633
+ return (output || [])
5634
+ .filter((e) => e != null)
5635
+ .map((entry) => {
5636
+ if (entry === null) {
5637
+ return null;
5638
+ }
5639
+ return deserializeAws_json1_1VulnerablePackage(entry, context);
5640
+ });
5641
+ };
4588
5642
  const deserializeMetadata = (output) => {
4589
5643
  var _a;
4590
5644
  return ({