@aws-sdk/client-ecr 3.310.0 → 3.315.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.
@@ -7,410 +7,287 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const ECRServiceException_1 = require("../models/ECRServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_BatchCheckLayerAvailabilityCommand = async (input, context) => {
10
- const headers = {
11
- "content-type": "application/x-amz-json-1.1",
12
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability",
13
- };
10
+ const headers = sharedHeaders("BatchCheckLayerAvailability");
14
11
  let body;
15
- body = JSON.stringify(se_BatchCheckLayerAvailabilityRequest(input, context));
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
16
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
14
  };
18
15
  exports.se_BatchCheckLayerAvailabilityCommand = se_BatchCheckLayerAvailabilityCommand;
19
16
  const se_BatchDeleteImageCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-amz-json-1.1",
22
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage",
23
- };
17
+ const headers = sharedHeaders("BatchDeleteImage");
24
18
  let body;
25
- body = JSON.stringify(se_BatchDeleteImageRequest(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
21
  };
28
22
  exports.se_BatchDeleteImageCommand = se_BatchDeleteImageCommand;
29
23
  const se_BatchGetImageCommand = async (input, context) => {
30
- const headers = {
31
- "content-type": "application/x-amz-json-1.1",
32
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchGetImage",
33
- };
24
+ const headers = sharedHeaders("BatchGetImage");
34
25
  let body;
35
- body = JSON.stringify(se_BatchGetImageRequest(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
36
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
37
28
  };
38
29
  exports.se_BatchGetImageCommand = se_BatchGetImageCommand;
39
30
  const se_BatchGetRepositoryScanningConfigurationCommand = async (input, context) => {
40
- const headers = {
41
- "content-type": "application/x-amz-json-1.1",
42
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration",
43
- };
31
+ const headers = sharedHeaders("BatchGetRepositoryScanningConfiguration");
44
32
  let body;
45
- body = JSON.stringify(se_BatchGetRepositoryScanningConfigurationRequest(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
46
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
35
  };
48
36
  exports.se_BatchGetRepositoryScanningConfigurationCommand = se_BatchGetRepositoryScanningConfigurationCommand;
49
37
  const se_CompleteLayerUploadCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-amz-json-1.1",
52
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload",
53
- };
38
+ const headers = sharedHeaders("CompleteLayerUpload");
54
39
  let body;
55
- body = JSON.stringify(se_CompleteLayerUploadRequest(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
42
  };
58
43
  exports.se_CompleteLayerUploadCommand = se_CompleteLayerUploadCommand;
59
44
  const se_CreatePullThroughCacheRuleCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule",
63
- };
45
+ const headers = sharedHeaders("CreatePullThroughCacheRule");
64
46
  let body;
65
- body = JSON.stringify(se_CreatePullThroughCacheRuleRequest(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
66
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
49
  };
68
50
  exports.se_CreatePullThroughCacheRuleCommand = se_CreatePullThroughCacheRuleCommand;
69
51
  const se_CreateRepositoryCommand = async (input, context) => {
70
- const headers = {
71
- "content-type": "application/x-amz-json-1.1",
72
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.CreateRepository",
73
- };
52
+ const headers = sharedHeaders("CreateRepository");
74
53
  let body;
75
- body = JSON.stringify(se_CreateRepositoryRequest(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
56
  };
78
57
  exports.se_CreateRepositoryCommand = se_CreateRepositoryCommand;
79
58
  const se_DeleteLifecyclePolicyCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-amz-json-1.1",
82
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy",
83
- };
59
+ const headers = sharedHeaders("DeleteLifecyclePolicy");
84
60
  let body;
85
- body = JSON.stringify(se_DeleteLifecyclePolicyRequest(input, context));
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
86
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
87
63
  };
88
64
  exports.se_DeleteLifecyclePolicyCommand = se_DeleteLifecyclePolicyCommand;
89
65
  const se_DeletePullThroughCacheRuleCommand = async (input, context) => {
90
- const headers = {
91
- "content-type": "application/x-amz-json-1.1",
92
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule",
93
- };
66
+ const headers = sharedHeaders("DeletePullThroughCacheRule");
94
67
  let body;
95
- body = JSON.stringify(se_DeletePullThroughCacheRuleRequest(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
70
  };
98
71
  exports.se_DeletePullThroughCacheRuleCommand = se_DeletePullThroughCacheRuleCommand;
99
72
  const se_DeleteRegistryPolicyCommand = async (input, context) => {
100
- const headers = {
101
- "content-type": "application/x-amz-json-1.1",
102
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy",
103
- };
73
+ const headers = sharedHeaders("DeleteRegistryPolicy");
104
74
  let body;
105
- body = JSON.stringify(se_DeleteRegistryPolicyRequest(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
106
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
77
  };
108
78
  exports.se_DeleteRegistryPolicyCommand = se_DeleteRegistryPolicyCommand;
109
79
  const se_DeleteRepositoryCommand = async (input, context) => {
110
- const headers = {
111
- "content-type": "application/x-amz-json-1.1",
112
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRepository",
113
- };
80
+ const headers = sharedHeaders("DeleteRepository");
114
81
  let body;
115
- body = JSON.stringify(se_DeleteRepositoryRequest(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
116
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
117
84
  };
118
85
  exports.se_DeleteRepositoryCommand = se_DeleteRepositoryCommand;
119
86
  const se_DeleteRepositoryPolicyCommand = async (input, context) => {
120
- const headers = {
121
- "content-type": "application/x-amz-json-1.1",
122
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy",
123
- };
87
+ const headers = sharedHeaders("DeleteRepositoryPolicy");
124
88
  let body;
125
- body = JSON.stringify(se_DeleteRepositoryPolicyRequest(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
91
  };
128
92
  exports.se_DeleteRepositoryPolicyCommand = se_DeleteRepositoryPolicyCommand;
129
93
  const se_DescribeImageReplicationStatusCommand = async (input, context) => {
130
- const headers = {
131
- "content-type": "application/x-amz-json-1.1",
132
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus",
133
- };
94
+ const headers = sharedHeaders("DescribeImageReplicationStatus");
134
95
  let body;
135
- body = JSON.stringify(se_DescribeImageReplicationStatusRequest(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
136
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
98
  };
138
99
  exports.se_DescribeImageReplicationStatusCommand = se_DescribeImageReplicationStatusCommand;
139
100
  const se_DescribeImagesCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-amz-json-1.1",
142
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImages",
143
- };
101
+ const headers = sharedHeaders("DescribeImages");
144
102
  let body;
145
- body = JSON.stringify(se_DescribeImagesRequest(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
146
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
105
  };
148
106
  exports.se_DescribeImagesCommand = se_DescribeImagesCommand;
149
107
  const se_DescribeImageScanFindingsCommand = async (input, context) => {
150
- const headers = {
151
- "content-type": "application/x-amz-json-1.1",
152
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings",
153
- };
108
+ const headers = sharedHeaders("DescribeImageScanFindings");
154
109
  let body;
155
- body = JSON.stringify(se_DescribeImageScanFindingsRequest(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
156
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
157
112
  };
158
113
  exports.se_DescribeImageScanFindingsCommand = se_DescribeImageScanFindingsCommand;
159
114
  const se_DescribePullThroughCacheRulesCommand = async (input, context) => {
160
- const headers = {
161
- "content-type": "application/x-amz-json-1.1",
162
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules",
163
- };
115
+ const headers = sharedHeaders("DescribePullThroughCacheRules");
164
116
  let body;
165
- body = JSON.stringify(se_DescribePullThroughCacheRulesRequest(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
166
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
119
  };
168
120
  exports.se_DescribePullThroughCacheRulesCommand = se_DescribePullThroughCacheRulesCommand;
169
121
  const se_DescribeRegistryCommand = async (input, context) => {
170
- const headers = {
171
- "content-type": "application/x-amz-json-1.1",
172
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeRegistry",
173
- };
122
+ const headers = sharedHeaders("DescribeRegistry");
174
123
  let body;
175
- body = JSON.stringify(se_DescribeRegistryRequest(input, context));
124
+ body = JSON.stringify((0, smithy_client_1._json)(input));
176
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
177
126
  };
178
127
  exports.se_DescribeRegistryCommand = se_DescribeRegistryCommand;
179
128
  const se_DescribeRepositoriesCommand = async (input, context) => {
180
- const headers = {
181
- "content-type": "application/x-amz-json-1.1",
182
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.DescribeRepositories",
183
- };
129
+ const headers = sharedHeaders("DescribeRepositories");
184
130
  let body;
185
- body = JSON.stringify(se_DescribeRepositoriesRequest(input, context));
131
+ body = JSON.stringify((0, smithy_client_1._json)(input));
186
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
187
133
  };
188
134
  exports.se_DescribeRepositoriesCommand = se_DescribeRepositoriesCommand;
189
135
  const se_GetAuthorizationTokenCommand = async (input, context) => {
190
- const headers = {
191
- "content-type": "application/x-amz-json-1.1",
192
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken",
193
- };
136
+ const headers = sharedHeaders("GetAuthorizationToken");
194
137
  let body;
195
- body = JSON.stringify(se_GetAuthorizationTokenRequest(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
140
  };
198
141
  exports.se_GetAuthorizationTokenCommand = se_GetAuthorizationTokenCommand;
199
142
  const se_GetDownloadUrlForLayerCommand = async (input, context) => {
200
- const headers = {
201
- "content-type": "application/x-amz-json-1.1",
202
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer",
203
- };
143
+ const headers = sharedHeaders("GetDownloadUrlForLayer");
204
144
  let body;
205
- body = JSON.stringify(se_GetDownloadUrlForLayerRequest(input, context));
145
+ body = JSON.stringify((0, smithy_client_1._json)(input));
206
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
207
147
  };
208
148
  exports.se_GetDownloadUrlForLayerCommand = se_GetDownloadUrlForLayerCommand;
209
149
  const se_GetLifecyclePolicyCommand = async (input, context) => {
210
- const headers = {
211
- "content-type": "application/x-amz-json-1.1",
212
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy",
213
- };
150
+ const headers = sharedHeaders("GetLifecyclePolicy");
214
151
  let body;
215
- body = JSON.stringify(se_GetLifecyclePolicyRequest(input, context));
152
+ body = JSON.stringify((0, smithy_client_1._json)(input));
216
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
154
  };
218
155
  exports.se_GetLifecyclePolicyCommand = se_GetLifecyclePolicyCommand;
219
156
  const se_GetLifecyclePolicyPreviewCommand = async (input, context) => {
220
- const headers = {
221
- "content-type": "application/x-amz-json-1.1",
222
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview",
223
- };
157
+ const headers = sharedHeaders("GetLifecyclePolicyPreview");
224
158
  let body;
225
- body = JSON.stringify(se_GetLifecyclePolicyPreviewRequest(input, context));
159
+ body = JSON.stringify((0, smithy_client_1._json)(input));
226
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
161
  };
228
162
  exports.se_GetLifecyclePolicyPreviewCommand = se_GetLifecyclePolicyPreviewCommand;
229
163
  const se_GetRegistryPolicyCommand = async (input, context) => {
230
- const headers = {
231
- "content-type": "application/x-amz-json-1.1",
232
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy",
233
- };
164
+ const headers = sharedHeaders("GetRegistryPolicy");
234
165
  let body;
235
- body = JSON.stringify(se_GetRegistryPolicyRequest(input, context));
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
236
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
168
  };
238
169
  exports.se_GetRegistryPolicyCommand = se_GetRegistryPolicyCommand;
239
170
  const se_GetRegistryScanningConfigurationCommand = async (input, context) => {
240
- const headers = {
241
- "content-type": "application/x-amz-json-1.1",
242
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration",
243
- };
171
+ const headers = sharedHeaders("GetRegistryScanningConfiguration");
244
172
  let body;
245
- body = JSON.stringify(se_GetRegistryScanningConfigurationRequest(input, context));
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
246
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
175
  };
248
176
  exports.se_GetRegistryScanningConfigurationCommand = se_GetRegistryScanningConfigurationCommand;
249
177
  const se_GetRepositoryPolicyCommand = async (input, context) => {
250
- const headers = {
251
- "content-type": "application/x-amz-json-1.1",
252
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy",
253
- };
178
+ const headers = sharedHeaders("GetRepositoryPolicy");
254
179
  let body;
255
- body = JSON.stringify(se_GetRepositoryPolicyRequest(input, context));
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
256
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
182
  };
258
183
  exports.se_GetRepositoryPolicyCommand = se_GetRepositoryPolicyCommand;
259
184
  const se_InitiateLayerUploadCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-amz-json-1.1",
262
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload",
263
- };
185
+ const headers = sharedHeaders("InitiateLayerUpload");
264
186
  let body;
265
- body = JSON.stringify(se_InitiateLayerUploadRequest(input, context));
187
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
189
  };
268
190
  exports.se_InitiateLayerUploadCommand = se_InitiateLayerUploadCommand;
269
191
  const se_ListImagesCommand = async (input, context) => {
270
- const headers = {
271
- "content-type": "application/x-amz-json-1.1",
272
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.ListImages",
273
- };
192
+ const headers = sharedHeaders("ListImages");
274
193
  let body;
275
- body = JSON.stringify(se_ListImagesRequest(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
276
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
196
  };
278
197
  exports.se_ListImagesCommand = se_ListImagesCommand;
279
198
  const se_ListTagsForResourceCommand = async (input, context) => {
280
- const headers = {
281
- "content-type": "application/x-amz-json-1.1",
282
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.ListTagsForResource",
283
- };
199
+ const headers = sharedHeaders("ListTagsForResource");
284
200
  let body;
285
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
201
+ body = JSON.stringify((0, smithy_client_1._json)(input));
286
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
203
  };
288
204
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
289
205
  const se_PutImageCommand = async (input, context) => {
290
- const headers = {
291
- "content-type": "application/x-amz-json-1.1",
292
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImage",
293
- };
206
+ const headers = sharedHeaders("PutImage");
294
207
  let body;
295
- body = JSON.stringify(se_PutImageRequest(input, context));
208
+ body = JSON.stringify((0, smithy_client_1._json)(input));
296
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
210
  };
298
211
  exports.se_PutImageCommand = se_PutImageCommand;
299
212
  const se_PutImageScanningConfigurationCommand = async (input, context) => {
300
- const headers = {
301
- "content-type": "application/x-amz-json-1.1",
302
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration",
303
- };
213
+ const headers = sharedHeaders("PutImageScanningConfiguration");
304
214
  let body;
305
- body = JSON.stringify(se_PutImageScanningConfigurationRequest(input, context));
215
+ body = JSON.stringify((0, smithy_client_1._json)(input));
306
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
217
  };
308
218
  exports.se_PutImageScanningConfigurationCommand = se_PutImageScanningConfigurationCommand;
309
219
  const se_PutImageTagMutabilityCommand = async (input, context) => {
310
- const headers = {
311
- "content-type": "application/x-amz-json-1.1",
312
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability",
313
- };
220
+ const headers = sharedHeaders("PutImageTagMutability");
314
221
  let body;
315
- body = JSON.stringify(se_PutImageTagMutabilityRequest(input, context));
222
+ body = JSON.stringify((0, smithy_client_1._json)(input));
316
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
224
  };
318
225
  exports.se_PutImageTagMutabilityCommand = se_PutImageTagMutabilityCommand;
319
226
  const se_PutLifecyclePolicyCommand = async (input, context) => {
320
- const headers = {
321
- "content-type": "application/x-amz-json-1.1",
322
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy",
323
- };
227
+ const headers = sharedHeaders("PutLifecyclePolicy");
324
228
  let body;
325
- body = JSON.stringify(se_PutLifecyclePolicyRequest(input, context));
229
+ body = JSON.stringify((0, smithy_client_1._json)(input));
326
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
231
  };
328
232
  exports.se_PutLifecyclePolicyCommand = se_PutLifecyclePolicyCommand;
329
233
  const se_PutRegistryPolicyCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-amz-json-1.1",
332
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy",
333
- };
234
+ const headers = sharedHeaders("PutRegistryPolicy");
334
235
  let body;
335
- body = JSON.stringify(se_PutRegistryPolicyRequest(input, context));
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
238
  };
338
239
  exports.se_PutRegistryPolicyCommand = se_PutRegistryPolicyCommand;
339
240
  const se_PutRegistryScanningConfigurationCommand = async (input, context) => {
340
- const headers = {
341
- "content-type": "application/x-amz-json-1.1",
342
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration",
343
- };
241
+ const headers = sharedHeaders("PutRegistryScanningConfiguration");
344
242
  let body;
345
- body = JSON.stringify(se_PutRegistryScanningConfigurationRequest(input, context));
243
+ body = JSON.stringify((0, smithy_client_1._json)(input));
346
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
245
  };
348
246
  exports.se_PutRegistryScanningConfigurationCommand = se_PutRegistryScanningConfigurationCommand;
349
247
  const se_PutReplicationConfigurationCommand = async (input, context) => {
350
- const headers = {
351
- "content-type": "application/x-amz-json-1.1",
352
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration",
353
- };
248
+ const headers = sharedHeaders("PutReplicationConfiguration");
354
249
  let body;
355
- body = JSON.stringify(se_PutReplicationConfigurationRequest(input, context));
250
+ body = JSON.stringify((0, smithy_client_1._json)(input));
356
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
252
  };
358
253
  exports.se_PutReplicationConfigurationCommand = se_PutReplicationConfigurationCommand;
359
254
  const se_SetRepositoryPolicyCommand = async (input, context) => {
360
- const headers = {
361
- "content-type": "application/x-amz-json-1.1",
362
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy",
363
- };
255
+ const headers = sharedHeaders("SetRepositoryPolicy");
364
256
  let body;
365
- body = JSON.stringify(se_SetRepositoryPolicyRequest(input, context));
257
+ body = JSON.stringify((0, smithy_client_1._json)(input));
366
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
259
  };
368
260
  exports.se_SetRepositoryPolicyCommand = se_SetRepositoryPolicyCommand;
369
261
  const se_StartImageScanCommand = async (input, context) => {
370
- const headers = {
371
- "content-type": "application/x-amz-json-1.1",
372
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.StartImageScan",
373
- };
262
+ const headers = sharedHeaders("StartImageScan");
374
263
  let body;
375
- body = JSON.stringify(se_StartImageScanRequest(input, context));
264
+ body = JSON.stringify((0, smithy_client_1._json)(input));
376
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
266
  };
378
267
  exports.se_StartImageScanCommand = se_StartImageScanCommand;
379
268
  const se_StartLifecyclePolicyPreviewCommand = async (input, context) => {
380
- const headers = {
381
- "content-type": "application/x-amz-json-1.1",
382
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview",
383
- };
269
+ const headers = sharedHeaders("StartLifecyclePolicyPreview");
384
270
  let body;
385
- body = JSON.stringify(se_StartLifecyclePolicyPreviewRequest(input, context));
271
+ body = JSON.stringify((0, smithy_client_1._json)(input));
386
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
387
273
  };
388
274
  exports.se_StartLifecyclePolicyPreviewCommand = se_StartLifecyclePolicyPreviewCommand;
389
275
  const se_TagResourceCommand = async (input, context) => {
390
- const headers = {
391
- "content-type": "application/x-amz-json-1.1",
392
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.TagResource",
393
- };
276
+ const headers = sharedHeaders("TagResource");
394
277
  let body;
395
- body = JSON.stringify(se_TagResourceRequest(input, context));
278
+ body = JSON.stringify((0, smithy_client_1._json)(input));
396
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
397
280
  };
398
281
  exports.se_TagResourceCommand = se_TagResourceCommand;
399
282
  const se_UntagResourceCommand = async (input, context) => {
400
- const headers = {
401
- "content-type": "application/x-amz-json-1.1",
402
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.UntagResource",
403
- };
283
+ const headers = sharedHeaders("UntagResource");
404
284
  let body;
405
- body = JSON.stringify(se_UntagResourceRequest(input, context));
285
+ body = JSON.stringify((0, smithy_client_1._json)(input));
406
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
287
  };
408
288
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
409
289
  const se_UploadLayerPartCommand = async (input, context) => {
410
- const headers = {
411
- "content-type": "application/x-amz-json-1.1",
412
- "x-amz-target": "AmazonEC2ContainerRegistry_V20150921.UploadLayerPart",
413
- };
290
+ const headers = sharedHeaders("UploadLayerPart");
414
291
  let body;
415
292
  body = JSON.stringify(se_UploadLayerPartRequest(input, context));
416
293
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -422,12 +299,12 @@ const de_BatchCheckLayerAvailabilityCommand = async (output, context) => {
422
299
  }
423
300
  const data = await parseBody(output.body, context);
424
301
  let contents = {};
425
- contents = de_BatchCheckLayerAvailabilityResponse(data, context);
302
+ contents = (0, smithy_client_1._json)(data);
426
303
  const response = {
427
304
  $metadata: deserializeMetadata(output),
428
305
  ...contents,
429
306
  };
430
- return Promise.resolve(response);
307
+ return response;
431
308
  };
432
309
  exports.de_BatchCheckLayerAvailabilityCommand = de_BatchCheckLayerAvailabilityCommand;
433
310
  const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
@@ -448,10 +325,9 @@ const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
448
325
  throw await de_ServerExceptionRes(parsedOutput, context);
449
326
  default:
450
327
  const parsedBody = parsedOutput.body;
451
- (0, smithy_client_1.throwDefaultError)({
328
+ return throwDefaultError({
452
329
  output,
453
330
  parsedBody,
454
- exceptionCtor: ECRServiceException_1.ECRServiceException,
455
331
  errorCode,
456
332
  });
457
333
  }
@@ -462,12 +338,12 @@ const de_BatchDeleteImageCommand = async (output, context) => {
462
338
  }
463
339
  const data = await parseBody(output.body, context);
464
340
  let contents = {};
465
- contents = de_BatchDeleteImageResponse(data, context);
341
+ contents = (0, smithy_client_1._json)(data);
466
342
  const response = {
467
343
  $metadata: deserializeMetadata(output),
468
344
  ...contents,
469
345
  };
470
- return Promise.resolve(response);
346
+ return response;
471
347
  };
472
348
  exports.de_BatchDeleteImageCommand = de_BatchDeleteImageCommand;
473
349
  const de_BatchDeleteImageCommandError = async (output, context) => {
@@ -488,10 +364,9 @@ const de_BatchDeleteImageCommandError = async (output, context) => {
488
364
  throw await de_ServerExceptionRes(parsedOutput, context);
489
365
  default:
490
366
  const parsedBody = parsedOutput.body;
491
- (0, smithy_client_1.throwDefaultError)({
367
+ return throwDefaultError({
492
368
  output,
493
369
  parsedBody,
494
- exceptionCtor: ECRServiceException_1.ECRServiceException,
495
370
  errorCode,
496
371
  });
497
372
  }
@@ -502,12 +377,12 @@ const de_BatchGetImageCommand = async (output, context) => {
502
377
  }
503
378
  const data = await parseBody(output.body, context);
504
379
  let contents = {};
505
- contents = de_BatchGetImageResponse(data, context);
380
+ contents = (0, smithy_client_1._json)(data);
506
381
  const response = {
507
382
  $metadata: deserializeMetadata(output),
508
383
  ...contents,
509
384
  };
510
- return Promise.resolve(response);
385
+ return response;
511
386
  };
512
387
  exports.de_BatchGetImageCommand = de_BatchGetImageCommand;
513
388
  const de_BatchGetImageCommandError = async (output, context) => {
@@ -528,10 +403,9 @@ const de_BatchGetImageCommandError = async (output, context) => {
528
403
  throw await de_ServerExceptionRes(parsedOutput, context);
529
404
  default:
530
405
  const parsedBody = parsedOutput.body;
531
- (0, smithy_client_1.throwDefaultError)({
406
+ return throwDefaultError({
532
407
  output,
533
408
  parsedBody,
534
- exceptionCtor: ECRServiceException_1.ECRServiceException,
535
409
  errorCode,
536
410
  });
537
411
  }
@@ -542,12 +416,12 @@ const de_BatchGetRepositoryScanningConfigurationCommand = async (output, context
542
416
  }
543
417
  const data = await parseBody(output.body, context);
544
418
  let contents = {};
545
- contents = de_BatchGetRepositoryScanningConfigurationResponse(data, context);
419
+ contents = (0, smithy_client_1._json)(data);
546
420
  const response = {
547
421
  $metadata: deserializeMetadata(output),
548
422
  ...contents,
549
423
  };
550
- return Promise.resolve(response);
424
+ return response;
551
425
  };
552
426
  exports.de_BatchGetRepositoryScanningConfigurationCommand = de_BatchGetRepositoryScanningConfigurationCommand;
553
427
  const de_BatchGetRepositoryScanningConfigurationCommandError = async (output, context) => {
@@ -571,10 +445,9 @@ const de_BatchGetRepositoryScanningConfigurationCommandError = async (output, co
571
445
  throw await de_ValidationExceptionRes(parsedOutput, context);
572
446
  default:
573
447
  const parsedBody = parsedOutput.body;
574
- (0, smithy_client_1.throwDefaultError)({
448
+ return throwDefaultError({
575
449
  output,
576
450
  parsedBody,
577
- exceptionCtor: ECRServiceException_1.ECRServiceException,
578
451
  errorCode,
579
452
  });
580
453
  }
@@ -585,12 +458,12 @@ const de_CompleteLayerUploadCommand = async (output, context) => {
585
458
  }
586
459
  const data = await parseBody(output.body, context);
587
460
  let contents = {};
588
- contents = de_CompleteLayerUploadResponse(data, context);
461
+ contents = (0, smithy_client_1._json)(data);
589
462
  const response = {
590
463
  $metadata: deserializeMetadata(output),
591
464
  ...contents,
592
465
  };
593
- return Promise.resolve(response);
466
+ return response;
594
467
  };
595
468
  exports.de_CompleteLayerUploadCommand = de_CompleteLayerUploadCommand;
596
469
  const de_CompleteLayerUploadCommandError = async (output, context) => {
@@ -629,10 +502,9 @@ const de_CompleteLayerUploadCommandError = async (output, context) => {
629
502
  throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
630
503
  default:
631
504
  const parsedBody = parsedOutput.body;
632
- (0, smithy_client_1.throwDefaultError)({
505
+ return throwDefaultError({
633
506
  output,
634
507
  parsedBody,
635
- exceptionCtor: ECRServiceException_1.ECRServiceException,
636
508
  errorCode,
637
509
  });
638
510
  }
@@ -648,7 +520,7 @@ const de_CreatePullThroughCacheRuleCommand = async (output, context) => {
648
520
  $metadata: deserializeMetadata(output),
649
521
  ...contents,
650
522
  };
651
- return Promise.resolve(response);
523
+ return response;
652
524
  };
653
525
  exports.de_CreatePullThroughCacheRuleCommand = de_CreatePullThroughCacheRuleCommand;
654
526
  const de_CreatePullThroughCacheRuleCommandError = async (output, context) => {
@@ -678,10 +550,9 @@ const de_CreatePullThroughCacheRuleCommandError = async (output, context) => {
678
550
  throw await de_ValidationExceptionRes(parsedOutput, context);
679
551
  default:
680
552
  const parsedBody = parsedOutput.body;
681
- (0, smithy_client_1.throwDefaultError)({
553
+ return throwDefaultError({
682
554
  output,
683
555
  parsedBody,
684
- exceptionCtor: ECRServiceException_1.ECRServiceException,
685
556
  errorCode,
686
557
  });
687
558
  }
@@ -697,7 +568,7 @@ const de_CreateRepositoryCommand = async (output, context) => {
697
568
  $metadata: deserializeMetadata(output),
698
569
  ...contents,
699
570
  };
700
- return Promise.resolve(response);
571
+ return response;
701
572
  };
702
573
  exports.de_CreateRepositoryCommand = de_CreateRepositoryCommand;
703
574
  const de_CreateRepositoryCommandError = async (output, context) => {
@@ -730,10 +601,9 @@ const de_CreateRepositoryCommandError = async (output, context) => {
730
601
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
731
602
  default:
732
603
  const parsedBody = parsedOutput.body;
733
- (0, smithy_client_1.throwDefaultError)({
604
+ return throwDefaultError({
734
605
  output,
735
606
  parsedBody,
736
- exceptionCtor: ECRServiceException_1.ECRServiceException,
737
607
  errorCode,
738
608
  });
739
609
  }
@@ -749,7 +619,7 @@ const de_DeleteLifecyclePolicyCommand = async (output, context) => {
749
619
  $metadata: deserializeMetadata(output),
750
620
  ...contents,
751
621
  };
752
- return Promise.resolve(response);
622
+ return response;
753
623
  };
754
624
  exports.de_DeleteLifecyclePolicyCommand = de_DeleteLifecyclePolicyCommand;
755
625
  const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
@@ -773,10 +643,9 @@ const de_DeleteLifecyclePolicyCommandError = async (output, context) => {
773
643
  throw await de_ServerExceptionRes(parsedOutput, context);
774
644
  default:
775
645
  const parsedBody = parsedOutput.body;
776
- (0, smithy_client_1.throwDefaultError)({
646
+ return throwDefaultError({
777
647
  output,
778
648
  parsedBody,
779
- exceptionCtor: ECRServiceException_1.ECRServiceException,
780
649
  errorCode,
781
650
  });
782
651
  }
@@ -792,7 +661,7 @@ const de_DeletePullThroughCacheRuleCommand = async (output, context) => {
792
661
  $metadata: deserializeMetadata(output),
793
662
  ...contents,
794
663
  };
795
- return Promise.resolve(response);
664
+ return response;
796
665
  };
797
666
  exports.de_DeletePullThroughCacheRuleCommand = de_DeletePullThroughCacheRuleCommand;
798
667
  const de_DeletePullThroughCacheRuleCommandError = async (output, context) => {
@@ -816,10 +685,9 @@ const de_DeletePullThroughCacheRuleCommandError = async (output, context) => {
816
685
  throw await de_ValidationExceptionRes(parsedOutput, context);
817
686
  default:
818
687
  const parsedBody = parsedOutput.body;
819
- (0, smithy_client_1.throwDefaultError)({
688
+ return throwDefaultError({
820
689
  output,
821
690
  parsedBody,
822
- exceptionCtor: ECRServiceException_1.ECRServiceException,
823
691
  errorCode,
824
692
  });
825
693
  }
@@ -830,12 +698,12 @@ const de_DeleteRegistryPolicyCommand = async (output, context) => {
830
698
  }
831
699
  const data = await parseBody(output.body, context);
832
700
  let contents = {};
833
- contents = de_DeleteRegistryPolicyResponse(data, context);
701
+ contents = (0, smithy_client_1._json)(data);
834
702
  const response = {
835
703
  $metadata: deserializeMetadata(output),
836
704
  ...contents,
837
705
  };
838
- return Promise.resolve(response);
706
+ return response;
839
707
  };
840
708
  exports.de_DeleteRegistryPolicyCommand = de_DeleteRegistryPolicyCommand;
841
709
  const de_DeleteRegistryPolicyCommandError = async (output, context) => {
@@ -859,10 +727,9 @@ const de_DeleteRegistryPolicyCommandError = async (output, context) => {
859
727
  throw await de_ValidationExceptionRes(parsedOutput, context);
860
728
  default:
861
729
  const parsedBody = parsedOutput.body;
862
- (0, smithy_client_1.throwDefaultError)({
730
+ return throwDefaultError({
863
731
  output,
864
732
  parsedBody,
865
- exceptionCtor: ECRServiceException_1.ECRServiceException,
866
733
  errorCode,
867
734
  });
868
735
  }
@@ -878,7 +745,7 @@ const de_DeleteRepositoryCommand = async (output, context) => {
878
745
  $metadata: deserializeMetadata(output),
879
746
  ...contents,
880
747
  };
881
- return Promise.resolve(response);
748
+ return response;
882
749
  };
883
750
  exports.de_DeleteRepositoryCommand = de_DeleteRepositoryCommand;
884
751
  const de_DeleteRepositoryCommandError = async (output, context) => {
@@ -905,10 +772,9 @@ const de_DeleteRepositoryCommandError = async (output, context) => {
905
772
  throw await de_ServerExceptionRes(parsedOutput, context);
906
773
  default:
907
774
  const parsedBody = parsedOutput.body;
908
- (0, smithy_client_1.throwDefaultError)({
775
+ return throwDefaultError({
909
776
  output,
910
777
  parsedBody,
911
- exceptionCtor: ECRServiceException_1.ECRServiceException,
912
778
  errorCode,
913
779
  });
914
780
  }
@@ -919,12 +785,12 @@ const de_DeleteRepositoryPolicyCommand = async (output, context) => {
919
785
  }
920
786
  const data = await parseBody(output.body, context);
921
787
  let contents = {};
922
- contents = de_DeleteRepositoryPolicyResponse(data, context);
788
+ contents = (0, smithy_client_1._json)(data);
923
789
  const response = {
924
790
  $metadata: deserializeMetadata(output),
925
791
  ...contents,
926
792
  };
927
- return Promise.resolve(response);
793
+ return response;
928
794
  };
929
795
  exports.de_DeleteRepositoryPolicyCommand = de_DeleteRepositoryPolicyCommand;
930
796
  const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
@@ -948,10 +814,9 @@ const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
948
814
  throw await de_ServerExceptionRes(parsedOutput, context);
949
815
  default:
950
816
  const parsedBody = parsedOutput.body;
951
- (0, smithy_client_1.throwDefaultError)({
817
+ return throwDefaultError({
952
818
  output,
953
819
  parsedBody,
954
- exceptionCtor: ECRServiceException_1.ECRServiceException,
955
820
  errorCode,
956
821
  });
957
822
  }
@@ -962,12 +827,12 @@ const de_DescribeImageReplicationStatusCommand = async (output, context) => {
962
827
  }
963
828
  const data = await parseBody(output.body, context);
964
829
  let contents = {};
965
- contents = de_DescribeImageReplicationStatusResponse(data, context);
830
+ contents = (0, smithy_client_1._json)(data);
966
831
  const response = {
967
832
  $metadata: deserializeMetadata(output),
968
833
  ...contents,
969
834
  };
970
- return Promise.resolve(response);
835
+ return response;
971
836
  };
972
837
  exports.de_DescribeImageReplicationStatusCommand = de_DescribeImageReplicationStatusCommand;
973
838
  const de_DescribeImageReplicationStatusCommandError = async (output, context) => {
@@ -994,10 +859,9 @@ const de_DescribeImageReplicationStatusCommandError = async (output, context) =>
994
859
  throw await de_ValidationExceptionRes(parsedOutput, context);
995
860
  default:
996
861
  const parsedBody = parsedOutput.body;
997
- (0, smithy_client_1.throwDefaultError)({
862
+ return throwDefaultError({
998
863
  output,
999
864
  parsedBody,
1000
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1001
865
  errorCode,
1002
866
  });
1003
867
  }
@@ -1013,7 +877,7 @@ const de_DescribeImagesCommand = async (output, context) => {
1013
877
  $metadata: deserializeMetadata(output),
1014
878
  ...contents,
1015
879
  };
1016
- return Promise.resolve(response);
880
+ return response;
1017
881
  };
1018
882
  exports.de_DescribeImagesCommand = de_DescribeImagesCommand;
1019
883
  const de_DescribeImagesCommandError = async (output, context) => {
@@ -1037,10 +901,9 @@ const de_DescribeImagesCommandError = async (output, context) => {
1037
901
  throw await de_ServerExceptionRes(parsedOutput, context);
1038
902
  default:
1039
903
  const parsedBody = parsedOutput.body;
1040
- (0, smithy_client_1.throwDefaultError)({
904
+ return throwDefaultError({
1041
905
  output,
1042
906
  parsedBody,
1043
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1044
907
  errorCode,
1045
908
  });
1046
909
  }
@@ -1056,7 +919,7 @@ const de_DescribeImageScanFindingsCommand = async (output, context) => {
1056
919
  $metadata: deserializeMetadata(output),
1057
920
  ...contents,
1058
921
  };
1059
- return Promise.resolve(response);
922
+ return response;
1060
923
  };
1061
924
  exports.de_DescribeImageScanFindingsCommand = de_DescribeImageScanFindingsCommand;
1062
925
  const de_DescribeImageScanFindingsCommandError = async (output, context) => {
@@ -1086,10 +949,9 @@ const de_DescribeImageScanFindingsCommandError = async (output, context) => {
1086
949
  throw await de_ValidationExceptionRes(parsedOutput, context);
1087
950
  default:
1088
951
  const parsedBody = parsedOutput.body;
1089
- (0, smithy_client_1.throwDefaultError)({
952
+ return throwDefaultError({
1090
953
  output,
1091
954
  parsedBody,
1092
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1093
955
  errorCode,
1094
956
  });
1095
957
  }
@@ -1105,7 +967,7 @@ const de_DescribePullThroughCacheRulesCommand = async (output, context) => {
1105
967
  $metadata: deserializeMetadata(output),
1106
968
  ...contents,
1107
969
  };
1108
- return Promise.resolve(response);
970
+ return response;
1109
971
  };
1110
972
  exports.de_DescribePullThroughCacheRulesCommand = de_DescribePullThroughCacheRulesCommand;
1111
973
  const de_DescribePullThroughCacheRulesCommandError = async (output, context) => {
@@ -1129,10 +991,9 @@ const de_DescribePullThroughCacheRulesCommandError = async (output, context) =>
1129
991
  throw await de_ValidationExceptionRes(parsedOutput, context);
1130
992
  default:
1131
993
  const parsedBody = parsedOutput.body;
1132
- (0, smithy_client_1.throwDefaultError)({
994
+ return throwDefaultError({
1133
995
  output,
1134
996
  parsedBody,
1135
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1136
997
  errorCode,
1137
998
  });
1138
999
  }
@@ -1143,12 +1004,12 @@ const de_DescribeRegistryCommand = async (output, context) => {
1143
1004
  }
1144
1005
  const data = await parseBody(output.body, context);
1145
1006
  let contents = {};
1146
- contents = de_DescribeRegistryResponse(data, context);
1007
+ contents = (0, smithy_client_1._json)(data);
1147
1008
  const response = {
1148
1009
  $metadata: deserializeMetadata(output),
1149
1010
  ...contents,
1150
1011
  };
1151
- return Promise.resolve(response);
1012
+ return response;
1152
1013
  };
1153
1014
  exports.de_DescribeRegistryCommand = de_DescribeRegistryCommand;
1154
1015
  const de_DescribeRegistryCommandError = async (output, context) => {
@@ -1169,10 +1030,9 @@ const de_DescribeRegistryCommandError = async (output, context) => {
1169
1030
  throw await de_ValidationExceptionRes(parsedOutput, context);
1170
1031
  default:
1171
1032
  const parsedBody = parsedOutput.body;
1172
- (0, smithy_client_1.throwDefaultError)({
1033
+ return throwDefaultError({
1173
1034
  output,
1174
1035
  parsedBody,
1175
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1176
1036
  errorCode,
1177
1037
  });
1178
1038
  }
@@ -1188,7 +1048,7 @@ const de_DescribeRepositoriesCommand = async (output, context) => {
1188
1048
  $metadata: deserializeMetadata(output),
1189
1049
  ...contents,
1190
1050
  };
1191
- return Promise.resolve(response);
1051
+ return response;
1192
1052
  };
1193
1053
  exports.de_DescribeRepositoriesCommand = de_DescribeRepositoriesCommand;
1194
1054
  const de_DescribeRepositoriesCommandError = async (output, context) => {
@@ -1209,10 +1069,9 @@ const de_DescribeRepositoriesCommandError = async (output, context) => {
1209
1069
  throw await de_ServerExceptionRes(parsedOutput, context);
1210
1070
  default:
1211
1071
  const parsedBody = parsedOutput.body;
1212
- (0, smithy_client_1.throwDefaultError)({
1072
+ return throwDefaultError({
1213
1073
  output,
1214
1074
  parsedBody,
1215
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1216
1075
  errorCode,
1217
1076
  });
1218
1077
  }
@@ -1228,7 +1087,7 @@ const de_GetAuthorizationTokenCommand = async (output, context) => {
1228
1087
  $metadata: deserializeMetadata(output),
1229
1088
  ...contents,
1230
1089
  };
1231
- return Promise.resolve(response);
1090
+ return response;
1232
1091
  };
1233
1092
  exports.de_GetAuthorizationTokenCommand = de_GetAuthorizationTokenCommand;
1234
1093
  const de_GetAuthorizationTokenCommandError = async (output, context) => {
@@ -1246,10 +1105,9 @@ const de_GetAuthorizationTokenCommandError = async (output, context) => {
1246
1105
  throw await de_ServerExceptionRes(parsedOutput, context);
1247
1106
  default:
1248
1107
  const parsedBody = parsedOutput.body;
1249
- (0, smithy_client_1.throwDefaultError)({
1108
+ return throwDefaultError({
1250
1109
  output,
1251
1110
  parsedBody,
1252
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1253
1111
  errorCode,
1254
1112
  });
1255
1113
  }
@@ -1260,12 +1118,12 @@ const de_GetDownloadUrlForLayerCommand = async (output, context) => {
1260
1118
  }
1261
1119
  const data = await parseBody(output.body, context);
1262
1120
  let contents = {};
1263
- contents = de_GetDownloadUrlForLayerResponse(data, context);
1121
+ contents = (0, smithy_client_1._json)(data);
1264
1122
  const response = {
1265
1123
  $metadata: deserializeMetadata(output),
1266
1124
  ...contents,
1267
1125
  };
1268
- return Promise.resolve(response);
1126
+ return response;
1269
1127
  };
1270
1128
  exports.de_GetDownloadUrlForLayerCommand = de_GetDownloadUrlForLayerCommand;
1271
1129
  const de_GetDownloadUrlForLayerCommandError = async (output, context) => {
@@ -1292,10 +1150,9 @@ const de_GetDownloadUrlForLayerCommandError = async (output, context) => {
1292
1150
  throw await de_ServerExceptionRes(parsedOutput, context);
1293
1151
  default:
1294
1152
  const parsedBody = parsedOutput.body;
1295
- (0, smithy_client_1.throwDefaultError)({
1153
+ return throwDefaultError({
1296
1154
  output,
1297
1155
  parsedBody,
1298
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1299
1156
  errorCode,
1300
1157
  });
1301
1158
  }
@@ -1311,7 +1168,7 @@ const de_GetLifecyclePolicyCommand = async (output, context) => {
1311
1168
  $metadata: deserializeMetadata(output),
1312
1169
  ...contents,
1313
1170
  };
1314
- return Promise.resolve(response);
1171
+ return response;
1315
1172
  };
1316
1173
  exports.de_GetLifecyclePolicyCommand = de_GetLifecyclePolicyCommand;
1317
1174
  const de_GetLifecyclePolicyCommandError = async (output, context) => {
@@ -1335,10 +1192,9 @@ const de_GetLifecyclePolicyCommandError = async (output, context) => {
1335
1192
  throw await de_ServerExceptionRes(parsedOutput, context);
1336
1193
  default:
1337
1194
  const parsedBody = parsedOutput.body;
1338
- (0, smithy_client_1.throwDefaultError)({
1195
+ return throwDefaultError({
1339
1196
  output,
1340
1197
  parsedBody,
1341
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1342
1198
  errorCode,
1343
1199
  });
1344
1200
  }
@@ -1354,7 +1210,7 @@ const de_GetLifecyclePolicyPreviewCommand = async (output, context) => {
1354
1210
  $metadata: deserializeMetadata(output),
1355
1211
  ...contents,
1356
1212
  };
1357
- return Promise.resolve(response);
1213
+ return response;
1358
1214
  };
1359
1215
  exports.de_GetLifecyclePolicyPreviewCommand = de_GetLifecyclePolicyPreviewCommand;
1360
1216
  const de_GetLifecyclePolicyPreviewCommandError = async (output, context) => {
@@ -1378,10 +1234,9 @@ const de_GetLifecyclePolicyPreviewCommandError = async (output, context) => {
1378
1234
  throw await de_ServerExceptionRes(parsedOutput, context);
1379
1235
  default:
1380
1236
  const parsedBody = parsedOutput.body;
1381
- (0, smithy_client_1.throwDefaultError)({
1237
+ return throwDefaultError({
1382
1238
  output,
1383
1239
  parsedBody,
1384
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1385
1240
  errorCode,
1386
1241
  });
1387
1242
  }
@@ -1392,12 +1247,12 @@ const de_GetRegistryPolicyCommand = async (output, context) => {
1392
1247
  }
1393
1248
  const data = await parseBody(output.body, context);
1394
1249
  let contents = {};
1395
- contents = de_GetRegistryPolicyResponse(data, context);
1250
+ contents = (0, smithy_client_1._json)(data);
1396
1251
  const response = {
1397
1252
  $metadata: deserializeMetadata(output),
1398
1253
  ...contents,
1399
1254
  };
1400
- return Promise.resolve(response);
1255
+ return response;
1401
1256
  };
1402
1257
  exports.de_GetRegistryPolicyCommand = de_GetRegistryPolicyCommand;
1403
1258
  const de_GetRegistryPolicyCommandError = async (output, context) => {
@@ -1421,10 +1276,9 @@ const de_GetRegistryPolicyCommandError = async (output, context) => {
1421
1276
  throw await de_ValidationExceptionRes(parsedOutput, context);
1422
1277
  default:
1423
1278
  const parsedBody = parsedOutput.body;
1424
- (0, smithy_client_1.throwDefaultError)({
1279
+ return throwDefaultError({
1425
1280
  output,
1426
1281
  parsedBody,
1427
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1428
1282
  errorCode,
1429
1283
  });
1430
1284
  }
@@ -1435,12 +1289,12 @@ const de_GetRegistryScanningConfigurationCommand = async (output, context) => {
1435
1289
  }
1436
1290
  const data = await parseBody(output.body, context);
1437
1291
  let contents = {};
1438
- contents = de_GetRegistryScanningConfigurationResponse(data, context);
1292
+ contents = (0, smithy_client_1._json)(data);
1439
1293
  const response = {
1440
1294
  $metadata: deserializeMetadata(output),
1441
1295
  ...contents,
1442
1296
  };
1443
- return Promise.resolve(response);
1297
+ return response;
1444
1298
  };
1445
1299
  exports.de_GetRegistryScanningConfigurationCommand = de_GetRegistryScanningConfigurationCommand;
1446
1300
  const de_GetRegistryScanningConfigurationCommandError = async (output, context) => {
@@ -1461,10 +1315,9 @@ const de_GetRegistryScanningConfigurationCommandError = async (output, context)
1461
1315
  throw await de_ValidationExceptionRes(parsedOutput, context);
1462
1316
  default:
1463
1317
  const parsedBody = parsedOutput.body;
1464
- (0, smithy_client_1.throwDefaultError)({
1318
+ return throwDefaultError({
1465
1319
  output,
1466
1320
  parsedBody,
1467
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1468
1321
  errorCode,
1469
1322
  });
1470
1323
  }
@@ -1475,12 +1328,12 @@ const de_GetRepositoryPolicyCommand = async (output, context) => {
1475
1328
  }
1476
1329
  const data = await parseBody(output.body, context);
1477
1330
  let contents = {};
1478
- contents = de_GetRepositoryPolicyResponse(data, context);
1331
+ contents = (0, smithy_client_1._json)(data);
1479
1332
  const response = {
1480
1333
  $metadata: deserializeMetadata(output),
1481
1334
  ...contents,
1482
1335
  };
1483
- return Promise.resolve(response);
1336
+ return response;
1484
1337
  };
1485
1338
  exports.de_GetRepositoryPolicyCommand = de_GetRepositoryPolicyCommand;
1486
1339
  const de_GetRepositoryPolicyCommandError = async (output, context) => {
@@ -1504,10 +1357,9 @@ const de_GetRepositoryPolicyCommandError = async (output, context) => {
1504
1357
  throw await de_ServerExceptionRes(parsedOutput, context);
1505
1358
  default:
1506
1359
  const parsedBody = parsedOutput.body;
1507
- (0, smithy_client_1.throwDefaultError)({
1360
+ return throwDefaultError({
1508
1361
  output,
1509
1362
  parsedBody,
1510
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1511
1363
  errorCode,
1512
1364
  });
1513
1365
  }
@@ -1518,12 +1370,12 @@ const de_InitiateLayerUploadCommand = async (output, context) => {
1518
1370
  }
1519
1371
  const data = await parseBody(output.body, context);
1520
1372
  let contents = {};
1521
- contents = de_InitiateLayerUploadResponse(data, context);
1373
+ contents = (0, smithy_client_1._json)(data);
1522
1374
  const response = {
1523
1375
  $metadata: deserializeMetadata(output),
1524
1376
  ...contents,
1525
1377
  };
1526
- return Promise.resolve(response);
1378
+ return response;
1527
1379
  };
1528
1380
  exports.de_InitiateLayerUploadCommand = de_InitiateLayerUploadCommand;
1529
1381
  const de_InitiateLayerUploadCommandError = async (output, context) => {
@@ -1547,10 +1399,9 @@ const de_InitiateLayerUploadCommandError = async (output, context) => {
1547
1399
  throw await de_ServerExceptionRes(parsedOutput, context);
1548
1400
  default:
1549
1401
  const parsedBody = parsedOutput.body;
1550
- (0, smithy_client_1.throwDefaultError)({
1402
+ return throwDefaultError({
1551
1403
  output,
1552
1404
  parsedBody,
1553
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1554
1405
  errorCode,
1555
1406
  });
1556
1407
  }
@@ -1561,12 +1412,12 @@ const de_ListImagesCommand = async (output, context) => {
1561
1412
  }
1562
1413
  const data = await parseBody(output.body, context);
1563
1414
  let contents = {};
1564
- contents = de_ListImagesResponse(data, context);
1415
+ contents = (0, smithy_client_1._json)(data);
1565
1416
  const response = {
1566
1417
  $metadata: deserializeMetadata(output),
1567
1418
  ...contents,
1568
1419
  };
1569
- return Promise.resolve(response);
1420
+ return response;
1570
1421
  };
1571
1422
  exports.de_ListImagesCommand = de_ListImagesCommand;
1572
1423
  const de_ListImagesCommandError = async (output, context) => {
@@ -1587,10 +1438,9 @@ const de_ListImagesCommandError = async (output, context) => {
1587
1438
  throw await de_ServerExceptionRes(parsedOutput, context);
1588
1439
  default:
1589
1440
  const parsedBody = parsedOutput.body;
1590
- (0, smithy_client_1.throwDefaultError)({
1441
+ return throwDefaultError({
1591
1442
  output,
1592
1443
  parsedBody,
1593
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1594
1444
  errorCode,
1595
1445
  });
1596
1446
  }
@@ -1601,12 +1451,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1601
1451
  }
1602
1452
  const data = await parseBody(output.body, context);
1603
1453
  let contents = {};
1604
- contents = de_ListTagsForResourceResponse(data, context);
1454
+ contents = (0, smithy_client_1._json)(data);
1605
1455
  const response = {
1606
1456
  $metadata: deserializeMetadata(output),
1607
1457
  ...contents,
1608
1458
  };
1609
- return Promise.resolve(response);
1459
+ return response;
1610
1460
  };
1611
1461
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1612
1462
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1627,10 +1477,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1627
1477
  throw await de_ServerExceptionRes(parsedOutput, context);
1628
1478
  default:
1629
1479
  const parsedBody = parsedOutput.body;
1630
- (0, smithy_client_1.throwDefaultError)({
1480
+ return throwDefaultError({
1631
1481
  output,
1632
1482
  parsedBody,
1633
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1634
1483
  errorCode,
1635
1484
  });
1636
1485
  }
@@ -1641,12 +1490,12 @@ const de_PutImageCommand = async (output, context) => {
1641
1490
  }
1642
1491
  const data = await parseBody(output.body, context);
1643
1492
  let contents = {};
1644
- contents = de_PutImageResponse(data, context);
1493
+ contents = (0, smithy_client_1._json)(data);
1645
1494
  const response = {
1646
1495
  $metadata: deserializeMetadata(output),
1647
1496
  ...contents,
1648
1497
  };
1649
- return Promise.resolve(response);
1498
+ return response;
1650
1499
  };
1651
1500
  exports.de_PutImageCommand = de_PutImageCommand;
1652
1501
  const de_PutImageCommandError = async (output, context) => {
@@ -1688,10 +1537,9 @@ const de_PutImageCommandError = async (output, context) => {
1688
1537
  throw await de_ServerExceptionRes(parsedOutput, context);
1689
1538
  default:
1690
1539
  const parsedBody = parsedOutput.body;
1691
- (0, smithy_client_1.throwDefaultError)({
1540
+ return throwDefaultError({
1692
1541
  output,
1693
1542
  parsedBody,
1694
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1695
1543
  errorCode,
1696
1544
  });
1697
1545
  }
@@ -1702,12 +1550,12 @@ const de_PutImageScanningConfigurationCommand = async (output, context) => {
1702
1550
  }
1703
1551
  const data = await parseBody(output.body, context);
1704
1552
  let contents = {};
1705
- contents = de_PutImageScanningConfigurationResponse(data, context);
1553
+ contents = (0, smithy_client_1._json)(data);
1706
1554
  const response = {
1707
1555
  $metadata: deserializeMetadata(output),
1708
1556
  ...contents,
1709
1557
  };
1710
- return Promise.resolve(response);
1558
+ return response;
1711
1559
  };
1712
1560
  exports.de_PutImageScanningConfigurationCommand = de_PutImageScanningConfigurationCommand;
1713
1561
  const de_PutImageScanningConfigurationCommandError = async (output, context) => {
@@ -1731,10 +1579,9 @@ const de_PutImageScanningConfigurationCommandError = async (output, context) =>
1731
1579
  throw await de_ValidationExceptionRes(parsedOutput, context);
1732
1580
  default:
1733
1581
  const parsedBody = parsedOutput.body;
1734
- (0, smithy_client_1.throwDefaultError)({
1582
+ return throwDefaultError({
1735
1583
  output,
1736
1584
  parsedBody,
1737
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1738
1585
  errorCode,
1739
1586
  });
1740
1587
  }
@@ -1745,12 +1592,12 @@ const de_PutImageTagMutabilityCommand = async (output, context) => {
1745
1592
  }
1746
1593
  const data = await parseBody(output.body, context);
1747
1594
  let contents = {};
1748
- contents = de_PutImageTagMutabilityResponse(data, context);
1595
+ contents = (0, smithy_client_1._json)(data);
1749
1596
  const response = {
1750
1597
  $metadata: deserializeMetadata(output),
1751
1598
  ...contents,
1752
1599
  };
1753
- return Promise.resolve(response);
1600
+ return response;
1754
1601
  };
1755
1602
  exports.de_PutImageTagMutabilityCommand = de_PutImageTagMutabilityCommand;
1756
1603
  const de_PutImageTagMutabilityCommandError = async (output, context) => {
@@ -1771,10 +1618,9 @@ const de_PutImageTagMutabilityCommandError = async (output, context) => {
1771
1618
  throw await de_ServerExceptionRes(parsedOutput, context);
1772
1619
  default:
1773
1620
  const parsedBody = parsedOutput.body;
1774
- (0, smithy_client_1.throwDefaultError)({
1621
+ return throwDefaultError({
1775
1622
  output,
1776
1623
  parsedBody,
1777
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1778
1624
  errorCode,
1779
1625
  });
1780
1626
  }
@@ -1785,12 +1631,12 @@ const de_PutLifecyclePolicyCommand = async (output, context) => {
1785
1631
  }
1786
1632
  const data = await parseBody(output.body, context);
1787
1633
  let contents = {};
1788
- contents = de_PutLifecyclePolicyResponse(data, context);
1634
+ contents = (0, smithy_client_1._json)(data);
1789
1635
  const response = {
1790
1636
  $metadata: deserializeMetadata(output),
1791
1637
  ...contents,
1792
1638
  };
1793
- return Promise.resolve(response);
1639
+ return response;
1794
1640
  };
1795
1641
  exports.de_PutLifecyclePolicyCommand = de_PutLifecyclePolicyCommand;
1796
1642
  const de_PutLifecyclePolicyCommandError = async (output, context) => {
@@ -1811,10 +1657,9 @@ const de_PutLifecyclePolicyCommandError = async (output, context) => {
1811
1657
  throw await de_ServerExceptionRes(parsedOutput, context);
1812
1658
  default:
1813
1659
  const parsedBody = parsedOutput.body;
1814
- (0, smithy_client_1.throwDefaultError)({
1660
+ return throwDefaultError({
1815
1661
  output,
1816
1662
  parsedBody,
1817
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1818
1663
  errorCode,
1819
1664
  });
1820
1665
  }
@@ -1825,12 +1670,12 @@ const de_PutRegistryPolicyCommand = async (output, context) => {
1825
1670
  }
1826
1671
  const data = await parseBody(output.body, context);
1827
1672
  let contents = {};
1828
- contents = de_PutRegistryPolicyResponse(data, context);
1673
+ contents = (0, smithy_client_1._json)(data);
1829
1674
  const response = {
1830
1675
  $metadata: deserializeMetadata(output),
1831
1676
  ...contents,
1832
1677
  };
1833
- return Promise.resolve(response);
1678
+ return response;
1834
1679
  };
1835
1680
  exports.de_PutRegistryPolicyCommand = de_PutRegistryPolicyCommand;
1836
1681
  const de_PutRegistryPolicyCommandError = async (output, context) => {
@@ -1851,10 +1696,9 @@ const de_PutRegistryPolicyCommandError = async (output, context) => {
1851
1696
  throw await de_ValidationExceptionRes(parsedOutput, context);
1852
1697
  default:
1853
1698
  const parsedBody = parsedOutput.body;
1854
- (0, smithy_client_1.throwDefaultError)({
1699
+ return throwDefaultError({
1855
1700
  output,
1856
1701
  parsedBody,
1857
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1858
1702
  errorCode,
1859
1703
  });
1860
1704
  }
@@ -1865,12 +1709,12 @@ const de_PutRegistryScanningConfigurationCommand = async (output, context) => {
1865
1709
  }
1866
1710
  const data = await parseBody(output.body, context);
1867
1711
  let contents = {};
1868
- contents = de_PutRegistryScanningConfigurationResponse(data, context);
1712
+ contents = (0, smithy_client_1._json)(data);
1869
1713
  const response = {
1870
1714
  $metadata: deserializeMetadata(output),
1871
1715
  ...contents,
1872
1716
  };
1873
- return Promise.resolve(response);
1717
+ return response;
1874
1718
  };
1875
1719
  exports.de_PutRegistryScanningConfigurationCommand = de_PutRegistryScanningConfigurationCommand;
1876
1720
  const de_PutRegistryScanningConfigurationCommandError = async (output, context) => {
@@ -1891,10 +1735,9 @@ const de_PutRegistryScanningConfigurationCommandError = async (output, context)
1891
1735
  throw await de_ValidationExceptionRes(parsedOutput, context);
1892
1736
  default:
1893
1737
  const parsedBody = parsedOutput.body;
1894
- (0, smithy_client_1.throwDefaultError)({
1738
+ return throwDefaultError({
1895
1739
  output,
1896
1740
  parsedBody,
1897
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1898
1741
  errorCode,
1899
1742
  });
1900
1743
  }
@@ -1905,12 +1748,12 @@ const de_PutReplicationConfigurationCommand = async (output, context) => {
1905
1748
  }
1906
1749
  const data = await parseBody(output.body, context);
1907
1750
  let contents = {};
1908
- contents = de_PutReplicationConfigurationResponse(data, context);
1751
+ contents = (0, smithy_client_1._json)(data);
1909
1752
  const response = {
1910
1753
  $metadata: deserializeMetadata(output),
1911
1754
  ...contents,
1912
1755
  };
1913
- return Promise.resolve(response);
1756
+ return response;
1914
1757
  };
1915
1758
  exports.de_PutReplicationConfigurationCommand = de_PutReplicationConfigurationCommand;
1916
1759
  const de_PutReplicationConfigurationCommandError = async (output, context) => {
@@ -1931,10 +1774,9 @@ const de_PutReplicationConfigurationCommandError = async (output, context) => {
1931
1774
  throw await de_ValidationExceptionRes(parsedOutput, context);
1932
1775
  default:
1933
1776
  const parsedBody = parsedOutput.body;
1934
- (0, smithy_client_1.throwDefaultError)({
1777
+ return throwDefaultError({
1935
1778
  output,
1936
1779
  parsedBody,
1937
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1938
1780
  errorCode,
1939
1781
  });
1940
1782
  }
@@ -1945,12 +1787,12 @@ const de_SetRepositoryPolicyCommand = async (output, context) => {
1945
1787
  }
1946
1788
  const data = await parseBody(output.body, context);
1947
1789
  let contents = {};
1948
- contents = de_SetRepositoryPolicyResponse(data, context);
1790
+ contents = (0, smithy_client_1._json)(data);
1949
1791
  const response = {
1950
1792
  $metadata: deserializeMetadata(output),
1951
1793
  ...contents,
1952
1794
  };
1953
- return Promise.resolve(response);
1795
+ return response;
1954
1796
  };
1955
1797
  exports.de_SetRepositoryPolicyCommand = de_SetRepositoryPolicyCommand;
1956
1798
  const de_SetRepositoryPolicyCommandError = async (output, context) => {
@@ -1971,10 +1813,9 @@ const de_SetRepositoryPolicyCommandError = async (output, context) => {
1971
1813
  throw await de_ServerExceptionRes(parsedOutput, context);
1972
1814
  default:
1973
1815
  const parsedBody = parsedOutput.body;
1974
- (0, smithy_client_1.throwDefaultError)({
1816
+ return throwDefaultError({
1975
1817
  output,
1976
1818
  parsedBody,
1977
- exceptionCtor: ECRServiceException_1.ECRServiceException,
1978
1819
  errorCode,
1979
1820
  });
1980
1821
  }
@@ -1985,12 +1826,12 @@ const de_StartImageScanCommand = async (output, context) => {
1985
1826
  }
1986
1827
  const data = await parseBody(output.body, context);
1987
1828
  let contents = {};
1988
- contents = de_StartImageScanResponse(data, context);
1829
+ contents = (0, smithy_client_1._json)(data);
1989
1830
  const response = {
1990
1831
  $metadata: deserializeMetadata(output),
1991
1832
  ...contents,
1992
1833
  };
1993
- return Promise.resolve(response);
1834
+ return response;
1994
1835
  };
1995
1836
  exports.de_StartImageScanCommand = de_StartImageScanCommand;
1996
1837
  const de_StartImageScanCommandError = async (output, context) => {
@@ -2023,10 +1864,9 @@ const de_StartImageScanCommandError = async (output, context) => {
2023
1864
  throw await de_ValidationExceptionRes(parsedOutput, context);
2024
1865
  default:
2025
1866
  const parsedBody = parsedOutput.body;
2026
- (0, smithy_client_1.throwDefaultError)({
1867
+ return throwDefaultError({
2027
1868
  output,
2028
1869
  parsedBody,
2029
- exceptionCtor: ECRServiceException_1.ECRServiceException,
2030
1870
  errorCode,
2031
1871
  });
2032
1872
  }
@@ -2037,12 +1877,12 @@ const de_StartLifecyclePolicyPreviewCommand = async (output, context) => {
2037
1877
  }
2038
1878
  const data = await parseBody(output.body, context);
2039
1879
  let contents = {};
2040
- contents = de_StartLifecyclePolicyPreviewResponse(data, context);
1880
+ contents = (0, smithy_client_1._json)(data);
2041
1881
  const response = {
2042
1882
  $metadata: deserializeMetadata(output),
2043
1883
  ...contents,
2044
1884
  };
2045
- return Promise.resolve(response);
1885
+ return response;
2046
1886
  };
2047
1887
  exports.de_StartLifecyclePolicyPreviewCommand = de_StartLifecyclePolicyPreviewCommand;
2048
1888
  const de_StartLifecyclePolicyPreviewCommandError = async (output, context) => {
@@ -2069,10 +1909,9 @@ const de_StartLifecyclePolicyPreviewCommandError = async (output, context) => {
2069
1909
  throw await de_ServerExceptionRes(parsedOutput, context);
2070
1910
  default:
2071
1911
  const parsedBody = parsedOutput.body;
2072
- (0, smithy_client_1.throwDefaultError)({
1912
+ return throwDefaultError({
2073
1913
  output,
2074
1914
  parsedBody,
2075
- exceptionCtor: ECRServiceException_1.ECRServiceException,
2076
1915
  errorCode,
2077
1916
  });
2078
1917
  }
@@ -2083,12 +1922,12 @@ const de_TagResourceCommand = async (output, context) => {
2083
1922
  }
2084
1923
  const data = await parseBody(output.body, context);
2085
1924
  let contents = {};
2086
- contents = de_TagResourceResponse(data, context);
1925
+ contents = (0, smithy_client_1._json)(data);
2087
1926
  const response = {
2088
1927
  $metadata: deserializeMetadata(output),
2089
1928
  ...contents,
2090
1929
  };
2091
- return Promise.resolve(response);
1930
+ return response;
2092
1931
  };
2093
1932
  exports.de_TagResourceCommand = de_TagResourceCommand;
2094
1933
  const de_TagResourceCommandError = async (output, context) => {
@@ -2115,10 +1954,9 @@ const de_TagResourceCommandError = async (output, context) => {
2115
1954
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2116
1955
  default:
2117
1956
  const parsedBody = parsedOutput.body;
2118
- (0, smithy_client_1.throwDefaultError)({
1957
+ return throwDefaultError({
2119
1958
  output,
2120
1959
  parsedBody,
2121
- exceptionCtor: ECRServiceException_1.ECRServiceException,
2122
1960
  errorCode,
2123
1961
  });
2124
1962
  }
@@ -2129,12 +1967,12 @@ const de_UntagResourceCommand = async (output, context) => {
2129
1967
  }
2130
1968
  const data = await parseBody(output.body, context);
2131
1969
  let contents = {};
2132
- contents = de_UntagResourceResponse(data, context);
1970
+ contents = (0, smithy_client_1._json)(data);
2133
1971
  const response = {
2134
1972
  $metadata: deserializeMetadata(output),
2135
1973
  ...contents,
2136
1974
  };
2137
- return Promise.resolve(response);
1975
+ return response;
2138
1976
  };
2139
1977
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2140
1978
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2161,10 +1999,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2161
1999
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2162
2000
  default:
2163
2001
  const parsedBody = parsedOutput.body;
2164
- (0, smithy_client_1.throwDefaultError)({
2002
+ return throwDefaultError({
2165
2003
  output,
2166
2004
  parsedBody,
2167
- exceptionCtor: ECRServiceException_1.ECRServiceException,
2168
2005
  errorCode,
2169
2006
  });
2170
2007
  }
@@ -2175,12 +2012,12 @@ const de_UploadLayerPartCommand = async (output, context) => {
2175
2012
  }
2176
2013
  const data = await parseBody(output.body, context);
2177
2014
  let contents = {};
2178
- contents = de_UploadLayerPartResponse(data, context);
2015
+ contents = (0, smithy_client_1._json)(data);
2179
2016
  const response = {
2180
2017
  $metadata: deserializeMetadata(output),
2181
2018
  ...contents,
2182
2019
  };
2183
- return Promise.resolve(response);
2020
+ return response;
2184
2021
  };
2185
2022
  exports.de_UploadLayerPartCommand = de_UploadLayerPartCommand;
2186
2023
  const de_UploadLayerPartCommandError = async (output, context) => {
@@ -2213,17 +2050,16 @@ const de_UploadLayerPartCommandError = async (output, context) => {
2213
2050
  throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
2214
2051
  default:
2215
2052
  const parsedBody = parsedOutput.body;
2216
- (0, smithy_client_1.throwDefaultError)({
2053
+ return throwDefaultError({
2217
2054
  output,
2218
2055
  parsedBody,
2219
- exceptionCtor: ECRServiceException_1.ECRServiceException,
2220
2056
  errorCode,
2221
2057
  });
2222
2058
  }
2223
2059
  };
2224
2060
  const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
2225
2061
  const body = parsedOutput.body;
2226
- const deserialized = de_EmptyUploadException(body, context);
2062
+ const deserialized = (0, smithy_client_1._json)(body);
2227
2063
  const exception = new models_0_1.EmptyUploadException({
2228
2064
  $metadata: deserializeMetadata(parsedOutput),
2229
2065
  ...deserialized,
@@ -2232,7 +2068,7 @@ const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
2232
2068
  };
2233
2069
  const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2234
2070
  const body = parsedOutput.body;
2235
- const deserialized = de_ImageAlreadyExistsException(body, context);
2071
+ const deserialized = (0, smithy_client_1._json)(body);
2236
2072
  const exception = new models_0_1.ImageAlreadyExistsException({
2237
2073
  $metadata: deserializeMetadata(parsedOutput),
2238
2074
  ...deserialized,
@@ -2241,7 +2077,7 @@ const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2241
2077
  };
2242
2078
  const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) => {
2243
2079
  const body = parsedOutput.body;
2244
- const deserialized = de_ImageDigestDoesNotMatchException(body, context);
2080
+ const deserialized = (0, smithy_client_1._json)(body);
2245
2081
  const exception = new models_0_1.ImageDigestDoesNotMatchException({
2246
2082
  $metadata: deserializeMetadata(parsedOutput),
2247
2083
  ...deserialized,
@@ -2250,7 +2086,7 @@ const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) =>
2250
2086
  };
2251
2087
  const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
2252
2088
  const body = parsedOutput.body;
2253
- const deserialized = de_ImageNotFoundException(body, context);
2089
+ const deserialized = (0, smithy_client_1._json)(body);
2254
2090
  const exception = new models_0_1.ImageNotFoundException({
2255
2091
  $metadata: deserializeMetadata(parsedOutput),
2256
2092
  ...deserialized,
@@ -2259,7 +2095,7 @@ const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
2259
2095
  };
2260
2096
  const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2261
2097
  const body = parsedOutput.body;
2262
- const deserialized = de_ImageTagAlreadyExistsException(body, context);
2098
+ const deserialized = (0, smithy_client_1._json)(body);
2263
2099
  const exception = new models_0_1.ImageTagAlreadyExistsException({
2264
2100
  $metadata: deserializeMetadata(parsedOutput),
2265
2101
  ...deserialized,
@@ -2268,7 +2104,7 @@ const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2268
2104
  };
2269
2105
  const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
2270
2106
  const body = parsedOutput.body;
2271
- const deserialized = de_InvalidLayerException(body, context);
2107
+ const deserialized = (0, smithy_client_1._json)(body);
2272
2108
  const exception = new models_0_1.InvalidLayerException({
2273
2109
  $metadata: deserializeMetadata(parsedOutput),
2274
2110
  ...deserialized,
@@ -2277,7 +2113,7 @@ const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
2277
2113
  };
2278
2114
  const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
2279
2115
  const body = parsedOutput.body;
2280
- const deserialized = de_InvalidLayerPartException(body, context);
2116
+ const deserialized = (0, smithy_client_1._json)(body);
2281
2117
  const exception = new models_0_1.InvalidLayerPartException({
2282
2118
  $metadata: deserializeMetadata(parsedOutput),
2283
2119
  ...deserialized,
@@ -2286,7 +2122,7 @@ const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
2286
2122
  };
2287
2123
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2288
2124
  const body = parsedOutput.body;
2289
- const deserialized = de_InvalidParameterException(body, context);
2125
+ const deserialized = (0, smithy_client_1._json)(body);
2290
2126
  const exception = new models_0_1.InvalidParameterException({
2291
2127
  $metadata: deserializeMetadata(parsedOutput),
2292
2128
  ...deserialized,
@@ -2295,7 +2131,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2295
2131
  };
2296
2132
  const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
2297
2133
  const body = parsedOutput.body;
2298
- const deserialized = de_InvalidTagParameterException(body, context);
2134
+ const deserialized = (0, smithy_client_1._json)(body);
2299
2135
  const exception = new models_0_1.InvalidTagParameterException({
2300
2136
  $metadata: deserializeMetadata(parsedOutput),
2301
2137
  ...deserialized,
@@ -2304,7 +2140,7 @@ const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
2304
2140
  };
2305
2141
  const de_KmsExceptionRes = async (parsedOutput, context) => {
2306
2142
  const body = parsedOutput.body;
2307
- const deserialized = de_KmsException(body, context);
2143
+ const deserialized = (0, smithy_client_1._json)(body);
2308
2144
  const exception = new models_0_1.KmsException({
2309
2145
  $metadata: deserializeMetadata(parsedOutput),
2310
2146
  ...deserialized,
@@ -2313,7 +2149,7 @@ const de_KmsExceptionRes = async (parsedOutput, context) => {
2313
2149
  };
2314
2150
  const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2315
2151
  const body = parsedOutput.body;
2316
- const deserialized = de_LayerAlreadyExistsException(body, context);
2152
+ const deserialized = (0, smithy_client_1._json)(body);
2317
2153
  const exception = new models_0_1.LayerAlreadyExistsException({
2318
2154
  $metadata: deserializeMetadata(parsedOutput),
2319
2155
  ...deserialized,
@@ -2322,7 +2158,7 @@ const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2322
2158
  };
2323
2159
  const de_LayerInaccessibleExceptionRes = async (parsedOutput, context) => {
2324
2160
  const body = parsedOutput.body;
2325
- const deserialized = de_LayerInaccessibleException(body, context);
2161
+ const deserialized = (0, smithy_client_1._json)(body);
2326
2162
  const exception = new models_0_1.LayerInaccessibleException({
2327
2163
  $metadata: deserializeMetadata(parsedOutput),
2328
2164
  ...deserialized,
@@ -2331,7 +2167,7 @@ const de_LayerInaccessibleExceptionRes = async (parsedOutput, context) => {
2331
2167
  };
2332
2168
  const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
2333
2169
  const body = parsedOutput.body;
2334
- const deserialized = de_LayerPartTooSmallException(body, context);
2170
+ const deserialized = (0, smithy_client_1._json)(body);
2335
2171
  const exception = new models_0_1.LayerPartTooSmallException({
2336
2172
  $metadata: deserializeMetadata(parsedOutput),
2337
2173
  ...deserialized,
@@ -2340,7 +2176,7 @@ const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
2340
2176
  };
2341
2177
  const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
2342
2178
  const body = parsedOutput.body;
2343
- const deserialized = de_LayersNotFoundException(body, context);
2179
+ const deserialized = (0, smithy_client_1._json)(body);
2344
2180
  const exception = new models_0_1.LayersNotFoundException({
2345
2181
  $metadata: deserializeMetadata(parsedOutput),
2346
2182
  ...deserialized,
@@ -2349,7 +2185,7 @@ const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
2349
2185
  };
2350
2186
  const de_LifecyclePolicyNotFoundExceptionRes = async (parsedOutput, context) => {
2351
2187
  const body = parsedOutput.body;
2352
- const deserialized = de_LifecyclePolicyNotFoundException(body, context);
2188
+ const deserialized = (0, smithy_client_1._json)(body);
2353
2189
  const exception = new models_0_1.LifecyclePolicyNotFoundException({
2354
2190
  $metadata: deserializeMetadata(parsedOutput),
2355
2191
  ...deserialized,
@@ -2358,7 +2194,7 @@ const de_LifecyclePolicyNotFoundExceptionRes = async (parsedOutput, context) =>
2358
2194
  };
2359
2195
  const de_LifecyclePolicyPreviewInProgressExceptionRes = async (parsedOutput, context) => {
2360
2196
  const body = parsedOutput.body;
2361
- const deserialized = de_LifecyclePolicyPreviewInProgressException(body, context);
2197
+ const deserialized = (0, smithy_client_1._json)(body);
2362
2198
  const exception = new models_0_1.LifecyclePolicyPreviewInProgressException({
2363
2199
  $metadata: deserializeMetadata(parsedOutput),
2364
2200
  ...deserialized,
@@ -2367,7 +2203,7 @@ const de_LifecyclePolicyPreviewInProgressExceptionRes = async (parsedOutput, con
2367
2203
  };
2368
2204
  const de_LifecyclePolicyPreviewNotFoundExceptionRes = async (parsedOutput, context) => {
2369
2205
  const body = parsedOutput.body;
2370
- const deserialized = de_LifecyclePolicyPreviewNotFoundException(body, context);
2206
+ const deserialized = (0, smithy_client_1._json)(body);
2371
2207
  const exception = new models_0_1.LifecyclePolicyPreviewNotFoundException({
2372
2208
  $metadata: deserializeMetadata(parsedOutput),
2373
2209
  ...deserialized,
@@ -2376,7 +2212,7 @@ const de_LifecyclePolicyPreviewNotFoundExceptionRes = async (parsedOutput, conte
2376
2212
  };
2377
2213
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2378
2214
  const body = parsedOutput.body;
2379
- const deserialized = de_LimitExceededException(body, context);
2215
+ const deserialized = (0, smithy_client_1._json)(body);
2380
2216
  const exception = new models_0_1.LimitExceededException({
2381
2217
  $metadata: deserializeMetadata(parsedOutput),
2382
2218
  ...deserialized,
@@ -2385,7 +2221,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2385
2221
  };
2386
2222
  const de_PullThroughCacheRuleAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2387
2223
  const body = parsedOutput.body;
2388
- const deserialized = de_PullThroughCacheRuleAlreadyExistsException(body, context);
2224
+ const deserialized = (0, smithy_client_1._json)(body);
2389
2225
  const exception = new models_0_1.PullThroughCacheRuleAlreadyExistsException({
2390
2226
  $metadata: deserializeMetadata(parsedOutput),
2391
2227
  ...deserialized,
@@ -2394,7 +2230,7 @@ const de_PullThroughCacheRuleAlreadyExistsExceptionRes = async (parsedOutput, co
2394
2230
  };
2395
2231
  const de_PullThroughCacheRuleNotFoundExceptionRes = async (parsedOutput, context) => {
2396
2232
  const body = parsedOutput.body;
2397
- const deserialized = de_PullThroughCacheRuleNotFoundException(body, context);
2233
+ const deserialized = (0, smithy_client_1._json)(body);
2398
2234
  const exception = new models_0_1.PullThroughCacheRuleNotFoundException({
2399
2235
  $metadata: deserializeMetadata(parsedOutput),
2400
2236
  ...deserialized,
@@ -2403,7 +2239,7 @@ const de_PullThroughCacheRuleNotFoundExceptionRes = async (parsedOutput, context
2403
2239
  };
2404
2240
  const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) => {
2405
2241
  const body = parsedOutput.body;
2406
- const deserialized = de_ReferencedImagesNotFoundException(body, context);
2242
+ const deserialized = (0, smithy_client_1._json)(body);
2407
2243
  const exception = new models_0_1.ReferencedImagesNotFoundException({
2408
2244
  $metadata: deserializeMetadata(parsedOutput),
2409
2245
  ...deserialized,
@@ -2412,7 +2248,7 @@ const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) =>
2412
2248
  };
2413
2249
  const de_RegistryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
2414
2250
  const body = parsedOutput.body;
2415
- const deserialized = de_RegistryPolicyNotFoundException(body, context);
2251
+ const deserialized = (0, smithy_client_1._json)(body);
2416
2252
  const exception = new models_0_1.RegistryPolicyNotFoundException({
2417
2253
  $metadata: deserializeMetadata(parsedOutput),
2418
2254
  ...deserialized,
@@ -2421,7 +2257,7 @@ const de_RegistryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
2421
2257
  };
2422
2258
  const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2423
2259
  const body = parsedOutput.body;
2424
- const deserialized = de_RepositoryAlreadyExistsException(body, context);
2260
+ const deserialized = (0, smithy_client_1._json)(body);
2425
2261
  const exception = new models_0_1.RepositoryAlreadyExistsException({
2426
2262
  $metadata: deserializeMetadata(parsedOutput),
2427
2263
  ...deserialized,
@@ -2430,7 +2266,7 @@ const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) =>
2430
2266
  };
2431
2267
  const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
2432
2268
  const body = parsedOutput.body;
2433
- const deserialized = de_RepositoryNotEmptyException(body, context);
2269
+ const deserialized = (0, smithy_client_1._json)(body);
2434
2270
  const exception = new models_0_1.RepositoryNotEmptyException({
2435
2271
  $metadata: deserializeMetadata(parsedOutput),
2436
2272
  ...deserialized,
@@ -2439,7 +2275,7 @@ const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
2439
2275
  };
2440
2276
  const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
2441
2277
  const body = parsedOutput.body;
2442
- const deserialized = de_RepositoryNotFoundException(body, context);
2278
+ const deserialized = (0, smithy_client_1._json)(body);
2443
2279
  const exception = new models_0_1.RepositoryNotFoundException({
2444
2280
  $metadata: deserializeMetadata(parsedOutput),
2445
2281
  ...deserialized,
@@ -2448,7 +2284,7 @@ const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
2448
2284
  };
2449
2285
  const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
2450
2286
  const body = parsedOutput.body;
2451
- const deserialized = de_RepositoryPolicyNotFoundException(body, context);
2287
+ const deserialized = (0, smithy_client_1._json)(body);
2452
2288
  const exception = new models_0_1.RepositoryPolicyNotFoundException({
2453
2289
  $metadata: deserializeMetadata(parsedOutput),
2454
2290
  ...deserialized,
@@ -2457,7 +2293,7 @@ const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) =>
2457
2293
  };
2458
2294
  const de_ScanNotFoundExceptionRes = async (parsedOutput, context) => {
2459
2295
  const body = parsedOutput.body;
2460
- const deserialized = de_ScanNotFoundException(body, context);
2296
+ const deserialized = (0, smithy_client_1._json)(body);
2461
2297
  const exception = new models_0_1.ScanNotFoundException({
2462
2298
  $metadata: deserializeMetadata(parsedOutput),
2463
2299
  ...deserialized,
@@ -2466,7 +2302,7 @@ const de_ScanNotFoundExceptionRes = async (parsedOutput, context) => {
2466
2302
  };
2467
2303
  const de_ServerExceptionRes = async (parsedOutput, context) => {
2468
2304
  const body = parsedOutput.body;
2469
- const deserialized = de_ServerException(body, context);
2305
+ const deserialized = (0, smithy_client_1._json)(body);
2470
2306
  const exception = new models_0_1.ServerException({
2471
2307
  $metadata: deserializeMetadata(parsedOutput),
2472
2308
  ...deserialized,
@@ -2475,7 +2311,7 @@ const de_ServerExceptionRes = async (parsedOutput, context) => {
2475
2311
  };
2476
2312
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
2477
2313
  const body = parsedOutput.body;
2478
- const deserialized = de_TooManyTagsException(body, context);
2314
+ const deserialized = (0, smithy_client_1._json)(body);
2479
2315
  const exception = new models_0_1.TooManyTagsException({
2480
2316
  $metadata: deserializeMetadata(parsedOutput),
2481
2317
  ...deserialized,
@@ -2484,7 +2320,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
2484
2320
  };
2485
2321
  const de_UnsupportedImageTypeExceptionRes = async (parsedOutput, context) => {
2486
2322
  const body = parsedOutput.body;
2487
- const deserialized = de_UnsupportedImageTypeException(body, context);
2323
+ const deserialized = (0, smithy_client_1._json)(body);
2488
2324
  const exception = new models_0_1.UnsupportedImageTypeException({
2489
2325
  $metadata: deserializeMetadata(parsedOutput),
2490
2326
  ...deserialized,
@@ -2493,7 +2329,7 @@ const de_UnsupportedImageTypeExceptionRes = async (parsedOutput, context) => {
2493
2329
  };
2494
2330
  const de_UnsupportedUpstreamRegistryExceptionRes = async (parsedOutput, context) => {
2495
2331
  const body = parsedOutput.body;
2496
- const deserialized = de_UnsupportedUpstreamRegistryException(body, context);
2332
+ const deserialized = (0, smithy_client_1._json)(body);
2497
2333
  const exception = new models_0_1.UnsupportedUpstreamRegistryException({
2498
2334
  $metadata: deserializeMetadata(parsedOutput),
2499
2335
  ...deserialized,
@@ -2502,7 +2338,7 @@ const de_UnsupportedUpstreamRegistryExceptionRes = async (parsedOutput, context)
2502
2338
  };
2503
2339
  const de_UploadNotFoundExceptionRes = async (parsedOutput, context) => {
2504
2340
  const body = parsedOutput.body;
2505
- const deserialized = de_UploadNotFoundException(body, context);
2341
+ const deserialized = (0, smithy_client_1._json)(body);
2506
2342
  const exception = new models_0_1.UploadNotFoundException({
2507
2343
  $metadata: deserializeMetadata(parsedOutput),
2508
2344
  ...deserialized,
@@ -2511,1657 +2347,319 @@ const de_UploadNotFoundExceptionRes = async (parsedOutput, context) => {
2511
2347
  };
2512
2348
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
2513
2349
  const body = parsedOutput.body;
2514
- const deserialized = de_ValidationException(body, context);
2350
+ const deserialized = (0, smithy_client_1._json)(body);
2515
2351
  const exception = new models_0_1.ValidationException({
2516
2352
  $metadata: deserializeMetadata(parsedOutput),
2517
2353
  ...deserialized,
2518
2354
  });
2519
2355
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2520
2356
  };
2521
- const se_BatchCheckLayerAvailabilityRequest = (input, context) => {
2522
- return {
2523
- ...(input.layerDigests != null && {
2524
- layerDigests: se_BatchedOperationLayerDigestList(input.layerDigests, context),
2525
- }),
2526
- ...(input.registryId != null && { registryId: input.registryId }),
2527
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2528
- };
2357
+ const se_UploadLayerPartRequest = (input, context) => {
2358
+ return (0, smithy_client_1.take)(input, {
2359
+ layerPartBlob: context.base64Encoder,
2360
+ partFirstByte: [],
2361
+ partLastByte: [],
2362
+ registryId: [],
2363
+ repositoryName: [],
2364
+ uploadId: [],
2365
+ });
2529
2366
  };
2530
- const se_BatchDeleteImageRequest = (input, context) => {
2531
- return {
2532
- ...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
2533
- ...(input.registryId != null && { registryId: input.registryId }),
2534
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2535
- };
2367
+ const de_AuthorizationData = (output, context) => {
2368
+ return (0, smithy_client_1.take)(output, {
2369
+ authorizationToken: smithy_client_1.expectString,
2370
+ expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2371
+ proxyEndpoint: smithy_client_1.expectString,
2372
+ });
2536
2373
  };
2537
- const se_BatchedOperationLayerDigestList = (input, context) => {
2538
- return input
2374
+ const de_AuthorizationDataList = (output, context) => {
2375
+ const retVal = (output || [])
2539
2376
  .filter((e) => e != null)
2540
2377
  .map((entry) => {
2541
- return entry;
2378
+ return de_AuthorizationData(entry, context);
2542
2379
  });
2380
+ return retVal;
2543
2381
  };
2544
- const se_BatchGetImageRequest = (input, context) => {
2545
- return {
2546
- ...(input.acceptedMediaTypes != null && {
2547
- acceptedMediaTypes: se_MediaTypeList(input.acceptedMediaTypes, context),
2548
- }),
2549
- ...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
2550
- ...(input.registryId != null && { registryId: input.registryId }),
2551
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2552
- };
2553
- };
2554
- const se_BatchGetRepositoryScanningConfigurationRequest = (input, context) => {
2555
- return {
2556
- ...(input.repositoryNames != null && {
2557
- repositoryNames: se_ScanningConfigurationRepositoryNameList(input.repositoryNames, context),
2558
- }),
2559
- };
2560
- };
2561
- const se_CompleteLayerUploadRequest = (input, context) => {
2562
- return {
2563
- ...(input.layerDigests != null && { layerDigests: se_LayerDigestList(input.layerDigests, context) }),
2564
- ...(input.registryId != null && { registryId: input.registryId }),
2565
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2566
- ...(input.uploadId != null && { uploadId: input.uploadId }),
2567
- };
2568
- };
2569
- const se_CreatePullThroughCacheRuleRequest = (input, context) => {
2570
- return {
2571
- ...(input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
2572
- ...(input.registryId != null && { registryId: input.registryId }),
2573
- ...(input.upstreamRegistryUrl != null && { upstreamRegistryUrl: input.upstreamRegistryUrl }),
2574
- };
2575
- };
2576
- const se_CreateRepositoryRequest = (input, context) => {
2577
- return {
2578
- ...(input.encryptionConfiguration != null && {
2579
- encryptionConfiguration: se_EncryptionConfiguration(input.encryptionConfiguration, context),
2580
- }),
2581
- ...(input.imageScanningConfiguration != null && {
2582
- imageScanningConfiguration: se_ImageScanningConfiguration(input.imageScanningConfiguration, context),
2583
- }),
2584
- ...(input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability }),
2585
- ...(input.registryId != null && { registryId: input.registryId }),
2586
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2587
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2588
- };
2382
+ const de_AwsEcrContainerImageDetails = (output, context) => {
2383
+ return (0, smithy_client_1.take)(output, {
2384
+ architecture: smithy_client_1.expectString,
2385
+ author: smithy_client_1.expectString,
2386
+ imageHash: smithy_client_1.expectString,
2387
+ imageTags: smithy_client_1._json,
2388
+ platform: smithy_client_1.expectString,
2389
+ pushedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2390
+ registry: smithy_client_1.expectString,
2391
+ repositoryName: smithy_client_1.expectString,
2392
+ });
2589
2393
  };
2590
- const se_DeleteLifecyclePolicyRequest = (input, context) => {
2591
- return {
2592
- ...(input.registryId != null && { registryId: input.registryId }),
2593
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2594
- };
2394
+ const de_CreatePullThroughCacheRuleResponse = (output, context) => {
2395
+ return (0, smithy_client_1.take)(output, {
2396
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2397
+ ecrRepositoryPrefix: smithy_client_1.expectString,
2398
+ registryId: smithy_client_1.expectString,
2399
+ upstreamRegistryUrl: smithy_client_1.expectString,
2400
+ });
2595
2401
  };
2596
- const se_DeletePullThroughCacheRuleRequest = (input, context) => {
2597
- return {
2598
- ...(input.ecrRepositoryPrefix != null && { ecrRepositoryPrefix: input.ecrRepositoryPrefix }),
2599
- ...(input.registryId != null && { registryId: input.registryId }),
2600
- };
2402
+ const de_CreateRepositoryResponse = (output, context) => {
2403
+ return (0, smithy_client_1.take)(output, {
2404
+ repository: (_) => de_Repository(_, context),
2405
+ });
2601
2406
  };
2602
- const se_DeleteRegistryPolicyRequest = (input, context) => {
2603
- return {};
2407
+ const de_CvssScore = (output, context) => {
2408
+ return (0, smithy_client_1.take)(output, {
2409
+ baseScore: smithy_client_1.limitedParseDouble,
2410
+ scoringVector: smithy_client_1.expectString,
2411
+ source: smithy_client_1.expectString,
2412
+ version: smithy_client_1.expectString,
2413
+ });
2604
2414
  };
2605
- const se_DeleteRepositoryPolicyRequest = (input, context) => {
2606
- return {
2607
- ...(input.registryId != null && { registryId: input.registryId }),
2608
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2609
- };
2415
+ const de_CvssScoreDetails = (output, context) => {
2416
+ return (0, smithy_client_1.take)(output, {
2417
+ adjustments: smithy_client_1._json,
2418
+ score: smithy_client_1.limitedParseDouble,
2419
+ scoreSource: smithy_client_1.expectString,
2420
+ scoringVector: smithy_client_1.expectString,
2421
+ version: smithy_client_1.expectString,
2422
+ });
2610
2423
  };
2611
- const se_DeleteRepositoryRequest = (input, context) => {
2612
- return {
2613
- ...(input.force != null && { force: input.force }),
2614
- ...(input.registryId != null && { registryId: input.registryId }),
2615
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2616
- };
2424
+ const de_CvssScoreList = (output, context) => {
2425
+ const retVal = (output || [])
2426
+ .filter((e) => e != null)
2427
+ .map((entry) => {
2428
+ return de_CvssScore(entry, context);
2429
+ });
2430
+ return retVal;
2617
2431
  };
2618
- const se_DescribeImageReplicationStatusRequest = (input, context) => {
2619
- return {
2620
- ...(input.imageId != null && { imageId: se_ImageIdentifier(input.imageId, context) }),
2621
- ...(input.registryId != null && { registryId: input.registryId }),
2622
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2623
- };
2432
+ const de_DeleteLifecyclePolicyResponse = (output, context) => {
2433
+ return (0, smithy_client_1.take)(output, {
2434
+ lastEvaluatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2435
+ lifecyclePolicyText: smithy_client_1.expectString,
2436
+ registryId: smithy_client_1.expectString,
2437
+ repositoryName: smithy_client_1.expectString,
2438
+ });
2624
2439
  };
2625
- const se_DescribeImageScanFindingsRequest = (input, context) => {
2626
- return {
2627
- ...(input.imageId != null && { imageId: se_ImageIdentifier(input.imageId, context) }),
2628
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2629
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2630
- ...(input.registryId != null && { registryId: input.registryId }),
2631
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2632
- };
2440
+ const de_DeletePullThroughCacheRuleResponse = (output, context) => {
2441
+ return (0, smithy_client_1.take)(output, {
2442
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2443
+ ecrRepositoryPrefix: smithy_client_1.expectString,
2444
+ registryId: smithy_client_1.expectString,
2445
+ upstreamRegistryUrl: smithy_client_1.expectString,
2446
+ });
2633
2447
  };
2634
- const se_DescribeImagesFilter = (input, context) => {
2635
- return {
2636
- ...(input.tagStatus != null && { tagStatus: input.tagStatus }),
2637
- };
2448
+ const de_DeleteRepositoryResponse = (output, context) => {
2449
+ return (0, smithy_client_1.take)(output, {
2450
+ repository: (_) => de_Repository(_, context),
2451
+ });
2638
2452
  };
2639
- const se_DescribeImagesRequest = (input, context) => {
2640
- return {
2641
- ...(input.filter != null && { filter: se_DescribeImagesFilter(input.filter, context) }),
2642
- ...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
2643
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2644
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2645
- ...(input.registryId != null && { registryId: input.registryId }),
2646
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2647
- };
2453
+ const de_DescribeImageScanFindingsResponse = (output, context) => {
2454
+ return (0, smithy_client_1.take)(output, {
2455
+ imageId: smithy_client_1._json,
2456
+ imageScanFindings: (_) => de_ImageScanFindings(_, context),
2457
+ imageScanStatus: smithy_client_1._json,
2458
+ nextToken: smithy_client_1.expectString,
2459
+ registryId: smithy_client_1.expectString,
2460
+ repositoryName: smithy_client_1.expectString,
2461
+ });
2648
2462
  };
2649
- const se_DescribePullThroughCacheRulesRequest = (input, context) => {
2650
- return {
2651
- ...(input.ecrRepositoryPrefixes != null && {
2652
- ecrRepositoryPrefixes: se_PullThroughCacheRuleRepositoryPrefixList(input.ecrRepositoryPrefixes, context),
2653
- }),
2654
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2655
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2656
- ...(input.registryId != null && { registryId: input.registryId }),
2657
- };
2463
+ const de_DescribeImagesResponse = (output, context) => {
2464
+ return (0, smithy_client_1.take)(output, {
2465
+ imageDetails: (_) => de_ImageDetailList(_, context),
2466
+ nextToken: smithy_client_1.expectString,
2467
+ });
2658
2468
  };
2659
- const se_DescribeRegistryRequest = (input, context) => {
2660
- return {};
2469
+ const de_DescribePullThroughCacheRulesResponse = (output, context) => {
2470
+ return (0, smithy_client_1.take)(output, {
2471
+ nextToken: smithy_client_1.expectString,
2472
+ pullThroughCacheRules: (_) => de_PullThroughCacheRuleList(_, context),
2473
+ });
2661
2474
  };
2662
- const se_DescribeRepositoriesRequest = (input, context) => {
2663
- return {
2664
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2665
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2666
- ...(input.registryId != null && { registryId: input.registryId }),
2667
- ...(input.repositoryNames != null && { repositoryNames: se_RepositoryNameList(input.repositoryNames, context) }),
2668
- };
2475
+ const de_DescribeRepositoriesResponse = (output, context) => {
2476
+ return (0, smithy_client_1.take)(output, {
2477
+ nextToken: smithy_client_1.expectString,
2478
+ repositories: (_) => de_RepositoryList(_, context),
2479
+ });
2669
2480
  };
2670
- const se_EncryptionConfiguration = (input, context) => {
2671
- return {
2672
- ...(input.encryptionType != null && { encryptionType: input.encryptionType }),
2673
- ...(input.kmsKey != null && { kmsKey: input.kmsKey }),
2674
- };
2481
+ const de_EnhancedImageScanFinding = (output, context) => {
2482
+ return (0, smithy_client_1.take)(output, {
2483
+ awsAccountId: smithy_client_1.expectString,
2484
+ description: smithy_client_1.expectString,
2485
+ findingArn: smithy_client_1.expectString,
2486
+ firstObservedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2487
+ lastObservedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2488
+ packageVulnerabilityDetails: (_) => de_PackageVulnerabilityDetails(_, context),
2489
+ remediation: smithy_client_1._json,
2490
+ resources: (_) => de_ResourceList(_, context),
2491
+ score: smithy_client_1.limitedParseDouble,
2492
+ scoreDetails: (_) => de_ScoreDetails(_, context),
2493
+ severity: smithy_client_1.expectString,
2494
+ status: smithy_client_1.expectString,
2495
+ title: smithy_client_1.expectString,
2496
+ type: smithy_client_1.expectString,
2497
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2498
+ });
2675
2499
  };
2676
- const se_GetAuthorizationTokenRegistryIdList = (input, context) => {
2677
- return input
2500
+ const de_EnhancedImageScanFindingList = (output, context) => {
2501
+ const retVal = (output || [])
2678
2502
  .filter((e) => e != null)
2679
2503
  .map((entry) => {
2680
- return entry;
2504
+ return de_EnhancedImageScanFinding(entry, context);
2681
2505
  });
2506
+ return retVal;
2682
2507
  };
2683
- const se_GetAuthorizationTokenRequest = (input, context) => {
2684
- return {
2685
- ...(input.registryIds != null && {
2686
- registryIds: se_GetAuthorizationTokenRegistryIdList(input.registryIds, context),
2687
- }),
2688
- };
2508
+ const de_GetAuthorizationTokenResponse = (output, context) => {
2509
+ return (0, smithy_client_1.take)(output, {
2510
+ authorizationData: (_) => de_AuthorizationDataList(_, context),
2511
+ });
2689
2512
  };
2690
- const se_GetDownloadUrlForLayerRequest = (input, context) => {
2691
- return {
2692
- ...(input.layerDigest != null && { layerDigest: input.layerDigest }),
2693
- ...(input.registryId != null && { registryId: input.registryId }),
2694
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2695
- };
2513
+ const de_GetLifecyclePolicyPreviewResponse = (output, context) => {
2514
+ return (0, smithy_client_1.take)(output, {
2515
+ lifecyclePolicyText: smithy_client_1.expectString,
2516
+ nextToken: smithy_client_1.expectString,
2517
+ previewResults: (_) => de_LifecyclePolicyPreviewResultList(_, context),
2518
+ registryId: smithy_client_1.expectString,
2519
+ repositoryName: smithy_client_1.expectString,
2520
+ status: smithy_client_1.expectString,
2521
+ summary: smithy_client_1._json,
2522
+ });
2696
2523
  };
2697
- const se_GetLifecyclePolicyPreviewRequest = (input, context) => {
2698
- return {
2699
- ...(input.filter != null && { filter: se_LifecyclePolicyPreviewFilter(input.filter, context) }),
2700
- ...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
2701
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2702
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2703
- ...(input.registryId != null && { registryId: input.registryId }),
2704
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2705
- };
2524
+ const de_GetLifecyclePolicyResponse = (output, context) => {
2525
+ return (0, smithy_client_1.take)(output, {
2526
+ lastEvaluatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2527
+ lifecyclePolicyText: smithy_client_1.expectString,
2528
+ registryId: smithy_client_1.expectString,
2529
+ repositoryName: smithy_client_1.expectString,
2530
+ });
2706
2531
  };
2707
- const se_GetLifecyclePolicyRequest = (input, context) => {
2708
- return {
2709
- ...(input.registryId != null && { registryId: input.registryId }),
2710
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2711
- };
2532
+ const de_ImageDetail = (output, context) => {
2533
+ return (0, smithy_client_1.take)(output, {
2534
+ artifactMediaType: smithy_client_1.expectString,
2535
+ imageDigest: smithy_client_1.expectString,
2536
+ imageManifestMediaType: smithy_client_1.expectString,
2537
+ imagePushedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2538
+ imageScanFindingsSummary: (_) => de_ImageScanFindingsSummary(_, context),
2539
+ imageScanStatus: smithy_client_1._json,
2540
+ imageSizeInBytes: smithy_client_1.expectLong,
2541
+ imageTags: smithy_client_1._json,
2542
+ lastRecordedPullTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2543
+ registryId: smithy_client_1.expectString,
2544
+ repositoryName: smithy_client_1.expectString,
2545
+ });
2712
2546
  };
2713
- const se_GetRegistryPolicyRequest = (input, context) => {
2714
- return {};
2547
+ const de_ImageDetailList = (output, context) => {
2548
+ const retVal = (output || [])
2549
+ .filter((e) => e != null)
2550
+ .map((entry) => {
2551
+ return de_ImageDetail(entry, context);
2552
+ });
2553
+ return retVal;
2715
2554
  };
2716
- const se_GetRegistryScanningConfigurationRequest = (input, context) => {
2717
- return {};
2555
+ const de_ImageScanFindings = (output, context) => {
2556
+ return (0, smithy_client_1.take)(output, {
2557
+ enhancedFindings: (_) => de_EnhancedImageScanFindingList(_, context),
2558
+ findingSeverityCounts: smithy_client_1._json,
2559
+ findings: smithy_client_1._json,
2560
+ imageScanCompletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2561
+ vulnerabilitySourceUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2562
+ });
2718
2563
  };
2719
- const se_GetRepositoryPolicyRequest = (input, context) => {
2720
- return {
2721
- ...(input.registryId != null && { registryId: input.registryId }),
2722
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2723
- };
2564
+ const de_ImageScanFindingsSummary = (output, context) => {
2565
+ return (0, smithy_client_1.take)(output, {
2566
+ findingSeverityCounts: smithy_client_1._json,
2567
+ imageScanCompletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2568
+ vulnerabilitySourceUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2569
+ });
2724
2570
  };
2725
- const se_ImageIdentifier = (input, context) => {
2726
- return {
2727
- ...(input.imageDigest != null && { imageDigest: input.imageDigest }),
2728
- ...(input.imageTag != null && { imageTag: input.imageTag }),
2729
- };
2571
+ const de_LifecyclePolicyPreviewResult = (output, context) => {
2572
+ return (0, smithy_client_1.take)(output, {
2573
+ action: smithy_client_1._json,
2574
+ appliedRulePriority: smithy_client_1.expectInt32,
2575
+ imageDigest: smithy_client_1.expectString,
2576
+ imagePushedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2577
+ imageTags: smithy_client_1._json,
2578
+ });
2730
2579
  };
2731
- const se_ImageIdentifierList = (input, context) => {
2732
- return input
2580
+ const de_LifecyclePolicyPreviewResultList = (output, context) => {
2581
+ const retVal = (output || [])
2733
2582
  .filter((e) => e != null)
2734
2583
  .map((entry) => {
2735
- return se_ImageIdentifier(entry, context);
2584
+ return de_LifecyclePolicyPreviewResult(entry, context);
2736
2585
  });
2586
+ return retVal;
2737
2587
  };
2738
- const se_ImageScanningConfiguration = (input, context) => {
2739
- return {
2740
- ...(input.scanOnPush != null && { scanOnPush: input.scanOnPush }),
2741
- };
2588
+ const de_PackageVulnerabilityDetails = (output, context) => {
2589
+ return (0, smithy_client_1.take)(output, {
2590
+ cvss: (_) => de_CvssScoreList(_, context),
2591
+ referenceUrls: smithy_client_1._json,
2592
+ relatedVulnerabilities: smithy_client_1._json,
2593
+ source: smithy_client_1.expectString,
2594
+ sourceUrl: smithy_client_1.expectString,
2595
+ vendorCreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2596
+ vendorSeverity: smithy_client_1.expectString,
2597
+ vendorUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2598
+ vulnerabilityId: smithy_client_1.expectString,
2599
+ vulnerablePackages: smithy_client_1._json,
2600
+ });
2742
2601
  };
2743
- const se_InitiateLayerUploadRequest = (input, context) => {
2744
- return {
2745
- ...(input.registryId != null && { registryId: input.registryId }),
2746
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2747
- };
2602
+ const de_PullThroughCacheRule = (output, context) => {
2603
+ return (0, smithy_client_1.take)(output, {
2604
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2605
+ ecrRepositoryPrefix: smithy_client_1.expectString,
2606
+ registryId: smithy_client_1.expectString,
2607
+ upstreamRegistryUrl: smithy_client_1.expectString,
2608
+ });
2748
2609
  };
2749
- const se_LayerDigestList = (input, context) => {
2750
- return input
2610
+ const de_PullThroughCacheRuleList = (output, context) => {
2611
+ const retVal = (output || [])
2751
2612
  .filter((e) => e != null)
2752
2613
  .map((entry) => {
2753
- return entry;
2614
+ return de_PullThroughCacheRule(entry, context);
2754
2615
  });
2616
+ return retVal;
2755
2617
  };
2756
- const se_LifecyclePolicyPreviewFilter = (input, context) => {
2757
- return {
2758
- ...(input.tagStatus != null && { tagStatus: input.tagStatus }),
2759
- };
2760
- };
2761
- const se_ListImagesFilter = (input, context) => {
2762
- return {
2763
- ...(input.tagStatus != null && { tagStatus: input.tagStatus }),
2764
- };
2765
- };
2766
- const se_ListImagesRequest = (input, context) => {
2767
- return {
2768
- ...(input.filter != null && { filter: se_ListImagesFilter(input.filter, context) }),
2769
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2770
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2771
- ...(input.registryId != null && { registryId: input.registryId }),
2772
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2773
- };
2774
- };
2775
- const se_ListTagsForResourceRequest = (input, context) => {
2776
- return {
2777
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2778
- };
2618
+ const de_Repository = (output, context) => {
2619
+ return (0, smithy_client_1.take)(output, {
2620
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2621
+ encryptionConfiguration: smithy_client_1._json,
2622
+ imageScanningConfiguration: smithy_client_1._json,
2623
+ imageTagMutability: smithy_client_1.expectString,
2624
+ registryId: smithy_client_1.expectString,
2625
+ repositoryArn: smithy_client_1.expectString,
2626
+ repositoryName: smithy_client_1.expectString,
2627
+ repositoryUri: smithy_client_1.expectString,
2628
+ });
2779
2629
  };
2780
- const se_MediaTypeList = (input, context) => {
2781
- return input
2630
+ const de_RepositoryList = (output, context) => {
2631
+ const retVal = (output || [])
2782
2632
  .filter((e) => e != null)
2783
2633
  .map((entry) => {
2784
- return entry;
2634
+ return de_Repository(entry, context);
2635
+ });
2636
+ return retVal;
2637
+ };
2638
+ const de_Resource = (output, context) => {
2639
+ return (0, smithy_client_1.take)(output, {
2640
+ details: (_) => de_ResourceDetails(_, context),
2641
+ id: smithy_client_1.expectString,
2642
+ tags: smithy_client_1._json,
2643
+ type: smithy_client_1.expectString,
2785
2644
  });
2786
2645
  };
2787
- const se_PullThroughCacheRuleRepositoryPrefixList = (input, context) => {
2788
- return input
2646
+ const de_ResourceDetails = (output, context) => {
2647
+ return (0, smithy_client_1.take)(output, {
2648
+ awsEcrContainerImage: (_) => de_AwsEcrContainerImageDetails(_, context),
2649
+ });
2650
+ };
2651
+ const de_ResourceList = (output, context) => {
2652
+ const retVal = (output || [])
2789
2653
  .filter((e) => e != null)
2790
2654
  .map((entry) => {
2791
- return entry;
2655
+ return de_Resource(entry, context);
2792
2656
  });
2657
+ return retVal;
2793
2658
  };
2794
- const se_PutImageRequest = (input, context) => {
2795
- return {
2796
- ...(input.imageDigest != null && { imageDigest: input.imageDigest }),
2797
- ...(input.imageManifest != null && { imageManifest: input.imageManifest }),
2798
- ...(input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType }),
2799
- ...(input.imageTag != null && { imageTag: input.imageTag }),
2800
- ...(input.registryId != null && { registryId: input.registryId }),
2801
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2802
- };
2803
- };
2804
- const se_PutImageScanningConfigurationRequest = (input, context) => {
2805
- return {
2806
- ...(input.imageScanningConfiguration != null && {
2807
- imageScanningConfiguration: se_ImageScanningConfiguration(input.imageScanningConfiguration, context),
2808
- }),
2809
- ...(input.registryId != null && { registryId: input.registryId }),
2810
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2811
- };
2812
- };
2813
- const se_PutImageTagMutabilityRequest = (input, context) => {
2814
- return {
2815
- ...(input.imageTagMutability != null && { imageTagMutability: input.imageTagMutability }),
2816
- ...(input.registryId != null && { registryId: input.registryId }),
2817
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2818
- };
2819
- };
2820
- const se_PutLifecyclePolicyRequest = (input, context) => {
2821
- return {
2822
- ...(input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText }),
2823
- ...(input.registryId != null && { registryId: input.registryId }),
2824
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2825
- };
2826
- };
2827
- const se_PutRegistryPolicyRequest = (input, context) => {
2828
- return {
2829
- ...(input.policyText != null && { policyText: input.policyText }),
2830
- };
2831
- };
2832
- const se_PutRegistryScanningConfigurationRequest = (input, context) => {
2833
- return {
2834
- ...(input.rules != null && { rules: se_RegistryScanningRuleList(input.rules, context) }),
2835
- ...(input.scanType != null && { scanType: input.scanType }),
2836
- };
2837
- };
2838
- const se_PutReplicationConfigurationRequest = (input, context) => {
2839
- return {
2840
- ...(input.replicationConfiguration != null && {
2841
- replicationConfiguration: se_ReplicationConfiguration(input.replicationConfiguration, context),
2842
- }),
2843
- };
2844
- };
2845
- const se_RegistryScanningRule = (input, context) => {
2846
- return {
2847
- ...(input.repositoryFilters != null && {
2848
- repositoryFilters: se_ScanningRepositoryFilterList(input.repositoryFilters, context),
2849
- }),
2850
- ...(input.scanFrequency != null && { scanFrequency: input.scanFrequency }),
2851
- };
2852
- };
2853
- const se_RegistryScanningRuleList = (input, context) => {
2854
- return input
2855
- .filter((e) => e != null)
2856
- .map((entry) => {
2857
- return se_RegistryScanningRule(entry, context);
2858
- });
2859
- };
2860
- const se_ReplicationConfiguration = (input, context) => {
2861
- return {
2862
- ...(input.rules != null && { rules: se_ReplicationRuleList(input.rules, context) }),
2863
- };
2864
- };
2865
- const se_ReplicationDestination = (input, context) => {
2866
- return {
2867
- ...(input.region != null && { region: input.region }),
2868
- ...(input.registryId != null && { registryId: input.registryId }),
2869
- };
2870
- };
2871
- const se_ReplicationDestinationList = (input, context) => {
2872
- return input
2873
- .filter((e) => e != null)
2874
- .map((entry) => {
2875
- return se_ReplicationDestination(entry, context);
2876
- });
2877
- };
2878
- const se_ReplicationRule = (input, context) => {
2879
- return {
2880
- ...(input.destinations != null && { destinations: se_ReplicationDestinationList(input.destinations, context) }),
2881
- ...(input.repositoryFilters != null && {
2882
- repositoryFilters: se_RepositoryFilterList(input.repositoryFilters, context),
2883
- }),
2884
- };
2885
- };
2886
- const se_ReplicationRuleList = (input, context) => {
2887
- return input
2888
- .filter((e) => e != null)
2889
- .map((entry) => {
2890
- return se_ReplicationRule(entry, context);
2891
- });
2892
- };
2893
- const se_RepositoryFilter = (input, context) => {
2894
- return {
2895
- ...(input.filter != null && { filter: input.filter }),
2896
- ...(input.filterType != null && { filterType: input.filterType }),
2897
- };
2898
- };
2899
- const se_RepositoryFilterList = (input, context) => {
2900
- return input
2901
- .filter((e) => e != null)
2902
- .map((entry) => {
2903
- return se_RepositoryFilter(entry, context);
2904
- });
2905
- };
2906
- const se_RepositoryNameList = (input, context) => {
2907
- return input
2908
- .filter((e) => e != null)
2909
- .map((entry) => {
2910
- return entry;
2911
- });
2912
- };
2913
- const se_ScanningConfigurationRepositoryNameList = (input, context) => {
2914
- return input
2915
- .filter((e) => e != null)
2916
- .map((entry) => {
2917
- return entry;
2918
- });
2919
- };
2920
- const se_ScanningRepositoryFilter = (input, context) => {
2921
- return {
2922
- ...(input.filter != null && { filter: input.filter }),
2923
- ...(input.filterType != null && { filterType: input.filterType }),
2924
- };
2925
- };
2926
- const se_ScanningRepositoryFilterList = (input, context) => {
2927
- return input
2928
- .filter((e) => e != null)
2929
- .map((entry) => {
2930
- return se_ScanningRepositoryFilter(entry, context);
2931
- });
2932
- };
2933
- const se_SetRepositoryPolicyRequest = (input, context) => {
2934
- return {
2935
- ...(input.force != null && { force: input.force }),
2936
- ...(input.policyText != null && { policyText: input.policyText }),
2937
- ...(input.registryId != null && { registryId: input.registryId }),
2938
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2939
- };
2940
- };
2941
- const se_StartImageScanRequest = (input, context) => {
2942
- return {
2943
- ...(input.imageId != null && { imageId: se_ImageIdentifier(input.imageId, context) }),
2944
- ...(input.registryId != null && { registryId: input.registryId }),
2945
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2946
- };
2947
- };
2948
- const se_StartLifecyclePolicyPreviewRequest = (input, context) => {
2949
- return {
2950
- ...(input.lifecyclePolicyText != null && { lifecyclePolicyText: input.lifecyclePolicyText }),
2951
- ...(input.registryId != null && { registryId: input.registryId }),
2952
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2953
- };
2954
- };
2955
- const se_Tag = (input, context) => {
2956
- return {
2957
- ...(input.Key != null && { Key: input.Key }),
2958
- ...(input.Value != null && { Value: input.Value }),
2959
- };
2960
- };
2961
- const se_TagKeyList = (input, context) => {
2962
- return input
2963
- .filter((e) => e != null)
2964
- .map((entry) => {
2965
- return entry;
2966
- });
2967
- };
2968
- const se_TagList = (input, context) => {
2969
- return input
2970
- .filter((e) => e != null)
2971
- .map((entry) => {
2972
- return se_Tag(entry, context);
2973
- });
2974
- };
2975
- const se_TagResourceRequest = (input, context) => {
2976
- return {
2977
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2978
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2979
- };
2980
- };
2981
- const se_UntagResourceRequest = (input, context) => {
2982
- return {
2983
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2984
- ...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
2985
- };
2986
- };
2987
- const se_UploadLayerPartRequest = (input, context) => {
2988
- return {
2989
- ...(input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
2990
- ...(input.partFirstByte != null && { partFirstByte: input.partFirstByte }),
2991
- ...(input.partLastByte != null && { partLastByte: input.partLastByte }),
2992
- ...(input.registryId != null && { registryId: input.registryId }),
2993
- ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
2994
- ...(input.uploadId != null && { uploadId: input.uploadId }),
2995
- };
2996
- };
2997
- const de_Attribute = (output, context) => {
2998
- return {
2999
- key: (0, smithy_client_1.expectString)(output.key),
3000
- value: (0, smithy_client_1.expectString)(output.value),
3001
- };
3002
- };
3003
- const de_AttributeList = (output, context) => {
3004
- const retVal = (output || [])
3005
- .filter((e) => e != null)
3006
- .map((entry) => {
3007
- if (entry === null) {
3008
- return null;
3009
- }
3010
- return de_Attribute(entry, context);
3011
- });
3012
- return retVal;
3013
- };
3014
- const de_AuthorizationData = (output, context) => {
3015
- return {
3016
- authorizationToken: (0, smithy_client_1.expectString)(output.authorizationToken),
3017
- expiresAt: output.expiresAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiresAt))) : undefined,
3018
- proxyEndpoint: (0, smithy_client_1.expectString)(output.proxyEndpoint),
3019
- };
3020
- };
3021
- const de_AuthorizationDataList = (output, context) => {
3022
- const retVal = (output || [])
3023
- .filter((e) => e != null)
3024
- .map((entry) => {
3025
- if (entry === null) {
3026
- return null;
3027
- }
3028
- return de_AuthorizationData(entry, context);
3029
- });
3030
- return retVal;
3031
- };
3032
- const de_AwsEcrContainerImageDetails = (output, context) => {
3033
- return {
3034
- architecture: (0, smithy_client_1.expectString)(output.architecture),
3035
- author: (0, smithy_client_1.expectString)(output.author),
3036
- imageHash: (0, smithy_client_1.expectString)(output.imageHash),
3037
- imageTags: output.imageTags != null ? de_ImageTagsList(output.imageTags, context) : undefined,
3038
- platform: (0, smithy_client_1.expectString)(output.platform),
3039
- pushedAt: output.pushedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.pushedAt))) : undefined,
3040
- registry: (0, smithy_client_1.expectString)(output.registry),
3041
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3042
- };
3043
- };
3044
- const de_BatchCheckLayerAvailabilityResponse = (output, context) => {
3045
- return {
3046
- failures: output.failures != null ? de_LayerFailureList(output.failures, context) : undefined,
3047
- layers: output.layers != null ? de_LayerList(output.layers, context) : undefined,
3048
- };
3049
- };
3050
- const de_BatchDeleteImageResponse = (output, context) => {
3051
- return {
3052
- failures: output.failures != null ? de_ImageFailureList(output.failures, context) : undefined,
3053
- imageIds: output.imageIds != null ? de_ImageIdentifierList(output.imageIds, context) : undefined,
3054
- };
3055
- };
3056
- const de_BatchGetImageResponse = (output, context) => {
3057
- return {
3058
- failures: output.failures != null ? de_ImageFailureList(output.failures, context) : undefined,
3059
- images: output.images != null ? de_ImageList(output.images, context) : undefined,
3060
- };
3061
- };
3062
- const de_BatchGetRepositoryScanningConfigurationResponse = (output, context) => {
3063
- return {
3064
- failures: output.failures != null ? de_RepositoryScanningConfigurationFailureList(output.failures, context) : undefined,
3065
- scanningConfigurations: output.scanningConfigurations != null
3066
- ? de_RepositoryScanningConfigurationList(output.scanningConfigurations, context)
3067
- : undefined,
3068
- };
3069
- };
3070
- const de_CompleteLayerUploadResponse = (output, context) => {
3071
- return {
3072
- layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
3073
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3074
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3075
- uploadId: (0, smithy_client_1.expectString)(output.uploadId),
3076
- };
3077
- };
3078
- const de_CreatePullThroughCacheRuleResponse = (output, context) => {
3079
- return {
3080
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3081
- ecrRepositoryPrefix: (0, smithy_client_1.expectString)(output.ecrRepositoryPrefix),
3082
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3083
- upstreamRegistryUrl: (0, smithy_client_1.expectString)(output.upstreamRegistryUrl),
3084
- };
3085
- };
3086
- const de_CreateRepositoryResponse = (output, context) => {
3087
- return {
3088
- repository: output.repository != null ? de_Repository(output.repository, context) : undefined,
3089
- };
3090
- };
3091
- const de_CvssScore = (output, context) => {
3092
- return {
3093
- baseScore: (0, smithy_client_1.limitedParseDouble)(output.baseScore),
3094
- scoringVector: (0, smithy_client_1.expectString)(output.scoringVector),
3095
- source: (0, smithy_client_1.expectString)(output.source),
3096
- version: (0, smithy_client_1.expectString)(output.version),
3097
- };
3098
- };
3099
- const de_CvssScoreAdjustment = (output, context) => {
3100
- return {
3101
- metric: (0, smithy_client_1.expectString)(output.metric),
3102
- reason: (0, smithy_client_1.expectString)(output.reason),
3103
- };
3104
- };
3105
- const de_CvssScoreAdjustmentList = (output, context) => {
3106
- const retVal = (output || [])
3107
- .filter((e) => e != null)
3108
- .map((entry) => {
3109
- if (entry === null) {
3110
- return null;
3111
- }
3112
- return de_CvssScoreAdjustment(entry, context);
3113
- });
3114
- return retVal;
3115
- };
3116
- const de_CvssScoreDetails = (output, context) => {
3117
- return {
3118
- adjustments: output.adjustments != null ? de_CvssScoreAdjustmentList(output.adjustments, context) : undefined,
3119
- score: (0, smithy_client_1.limitedParseDouble)(output.score),
3120
- scoreSource: (0, smithy_client_1.expectString)(output.scoreSource),
3121
- scoringVector: (0, smithy_client_1.expectString)(output.scoringVector),
3122
- version: (0, smithy_client_1.expectString)(output.version),
3123
- };
3124
- };
3125
- const de_CvssScoreList = (output, context) => {
3126
- const retVal = (output || [])
3127
- .filter((e) => e != null)
3128
- .map((entry) => {
3129
- if (entry === null) {
3130
- return null;
3131
- }
3132
- return de_CvssScore(entry, context);
3133
- });
3134
- return retVal;
3135
- };
3136
- const de_DeleteLifecyclePolicyResponse = (output, context) => {
3137
- return {
3138
- lastEvaluatedAt: output.lastEvaluatedAt != null
3139
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastEvaluatedAt)))
3140
- : undefined,
3141
- lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
3142
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3143
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3144
- };
3145
- };
3146
- const de_DeletePullThroughCacheRuleResponse = (output, context) => {
3147
- return {
3148
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3149
- ecrRepositoryPrefix: (0, smithy_client_1.expectString)(output.ecrRepositoryPrefix),
3150
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3151
- upstreamRegistryUrl: (0, smithy_client_1.expectString)(output.upstreamRegistryUrl),
3152
- };
3153
- };
3154
- const de_DeleteRegistryPolicyResponse = (output, context) => {
3155
- return {
3156
- policyText: (0, smithy_client_1.expectString)(output.policyText),
3157
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3158
- };
3159
- };
3160
- const de_DeleteRepositoryPolicyResponse = (output, context) => {
3161
- return {
3162
- policyText: (0, smithy_client_1.expectString)(output.policyText),
3163
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3164
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3165
- };
3166
- };
3167
- const de_DeleteRepositoryResponse = (output, context) => {
3168
- return {
3169
- repository: output.repository != null ? de_Repository(output.repository, context) : undefined,
3170
- };
3171
- };
3172
- const de_DescribeImageReplicationStatusResponse = (output, context) => {
3173
- return {
3174
- imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
3175
- replicationStatuses: output.replicationStatuses != null
3176
- ? de_ImageReplicationStatusList(output.replicationStatuses, context)
3177
- : undefined,
3178
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3179
- };
3180
- };
3181
- const de_DescribeImageScanFindingsResponse = (output, context) => {
3182
- return {
3183
- imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
3184
- imageScanFindings: output.imageScanFindings != null ? de_ImageScanFindings(output.imageScanFindings, context) : undefined,
3185
- imageScanStatus: output.imageScanStatus != null ? de_ImageScanStatus(output.imageScanStatus, context) : undefined,
3186
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3187
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3188
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3189
- };
3190
- };
3191
- const de_DescribeImagesResponse = (output, context) => {
3192
- return {
3193
- imageDetails: output.imageDetails != null ? de_ImageDetailList(output.imageDetails, context) : undefined,
3194
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3195
- };
3196
- };
3197
- const de_DescribePullThroughCacheRulesResponse = (output, context) => {
3198
- return {
3199
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3200
- pullThroughCacheRules: output.pullThroughCacheRules != null
3201
- ? de_PullThroughCacheRuleList(output.pullThroughCacheRules, context)
3202
- : undefined,
3203
- };
3204
- };
3205
- const de_DescribeRegistryResponse = (output, context) => {
3206
- return {
3207
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3208
- replicationConfiguration: output.replicationConfiguration != null
3209
- ? de_ReplicationConfiguration(output.replicationConfiguration, context)
3210
- : undefined,
3211
- };
3212
- };
3213
- const de_DescribeRepositoriesResponse = (output, context) => {
3214
- return {
3215
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3216
- repositories: output.repositories != null ? de_RepositoryList(output.repositories, context) : undefined,
3217
- };
3218
- };
3219
- const de_EmptyUploadException = (output, context) => {
3220
- return {
3221
- message: (0, smithy_client_1.expectString)(output.message),
3222
- };
3223
- };
3224
- const de_EncryptionConfiguration = (output, context) => {
3225
- return {
3226
- encryptionType: (0, smithy_client_1.expectString)(output.encryptionType),
3227
- kmsKey: (0, smithy_client_1.expectString)(output.kmsKey),
3228
- };
3229
- };
3230
- const de_EnhancedImageScanFinding = (output, context) => {
3231
- return {
3232
- awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
3233
- description: (0, smithy_client_1.expectString)(output.description),
3234
- findingArn: (0, smithy_client_1.expectString)(output.findingArn),
3235
- firstObservedAt: output.firstObservedAt != null
3236
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstObservedAt)))
3237
- : undefined,
3238
- lastObservedAt: output.lastObservedAt != null
3239
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastObservedAt)))
3240
- : undefined,
3241
- packageVulnerabilityDetails: output.packageVulnerabilityDetails != null
3242
- ? de_PackageVulnerabilityDetails(output.packageVulnerabilityDetails, context)
3243
- : undefined,
3244
- remediation: output.remediation != null ? de_Remediation(output.remediation, context) : undefined,
3245
- resources: output.resources != null ? de_ResourceList(output.resources, context) : undefined,
3246
- score: (0, smithy_client_1.limitedParseDouble)(output.score),
3247
- scoreDetails: output.scoreDetails != null ? de_ScoreDetails(output.scoreDetails, context) : undefined,
3248
- severity: (0, smithy_client_1.expectString)(output.severity),
3249
- status: (0, smithy_client_1.expectString)(output.status),
3250
- title: (0, smithy_client_1.expectString)(output.title),
3251
- type: (0, smithy_client_1.expectString)(output.type),
3252
- updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
3253
- };
3254
- };
3255
- const de_EnhancedImageScanFindingList = (output, context) => {
3256
- const retVal = (output || [])
3257
- .filter((e) => e != null)
3258
- .map((entry) => {
3259
- if (entry === null) {
3260
- return null;
3261
- }
3262
- return de_EnhancedImageScanFinding(entry, context);
3263
- });
3264
- return retVal;
3265
- };
3266
- const de_FindingSeverityCounts = (output, context) => {
3267
- return Object.entries(output).reduce((acc, [key, value]) => {
3268
- if (value === null) {
3269
- return acc;
3270
- }
3271
- acc[key] = (0, smithy_client_1.expectInt32)(value);
3272
- return acc;
3273
- }, {});
3274
- };
3275
- const de_GetAuthorizationTokenResponse = (output, context) => {
3276
- return {
3277
- authorizationData: output.authorizationData != null ? de_AuthorizationDataList(output.authorizationData, context) : undefined,
3278
- };
3279
- };
3280
- const de_GetDownloadUrlForLayerResponse = (output, context) => {
3281
- return {
3282
- downloadUrl: (0, smithy_client_1.expectString)(output.downloadUrl),
3283
- layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
3284
- };
3285
- };
3286
- const de_GetLifecyclePolicyPreviewResponse = (output, context) => {
3287
- return {
3288
- lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
3289
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3290
- previewResults: output.previewResults != null ? de_LifecyclePolicyPreviewResultList(output.previewResults, context) : undefined,
3291
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3292
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3293
- status: (0, smithy_client_1.expectString)(output.status),
3294
- summary: output.summary != null ? de_LifecyclePolicyPreviewSummary(output.summary, context) : undefined,
3295
- };
3296
- };
3297
- const de_GetLifecyclePolicyResponse = (output, context) => {
3298
- return {
3299
- lastEvaluatedAt: output.lastEvaluatedAt != null
3300
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastEvaluatedAt)))
3301
- : undefined,
3302
- lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
3303
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3304
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3305
- };
3306
- };
3307
- const de_GetRegistryPolicyResponse = (output, context) => {
3308
- return {
3309
- policyText: (0, smithy_client_1.expectString)(output.policyText),
3310
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3311
- };
3312
- };
3313
- const de_GetRegistryScanningConfigurationResponse = (output, context) => {
3314
- return {
3315
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3316
- scanningConfiguration: output.scanningConfiguration != null
3317
- ? de_RegistryScanningConfiguration(output.scanningConfiguration, context)
3318
- : undefined,
3319
- };
3320
- };
3321
- const de_GetRepositoryPolicyResponse = (output, context) => {
3322
- return {
3323
- policyText: (0, smithy_client_1.expectString)(output.policyText),
3324
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3325
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3326
- };
3327
- };
3328
- const de_Image = (output, context) => {
3329
- return {
3330
- imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
3331
- imageManifest: (0, smithy_client_1.expectString)(output.imageManifest),
3332
- imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
3333
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3334
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3335
- };
3336
- };
3337
- const de_ImageAlreadyExistsException = (output, context) => {
3338
- return {
3339
- message: (0, smithy_client_1.expectString)(output.message),
3340
- };
3341
- };
3342
- const de_ImageDetail = (output, context) => {
3343
- return {
3344
- artifactMediaType: (0, smithy_client_1.expectString)(output.artifactMediaType),
3345
- imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
3346
- imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
3347
- imagePushedAt: output.imagePushedAt != null
3348
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
3349
- : undefined,
3350
- imageScanFindingsSummary: output.imageScanFindingsSummary != null
3351
- ? de_ImageScanFindingsSummary(output.imageScanFindingsSummary, context)
3352
- : undefined,
3353
- imageScanStatus: output.imageScanStatus != null ? de_ImageScanStatus(output.imageScanStatus, context) : undefined,
3354
- imageSizeInBytes: (0, smithy_client_1.expectLong)(output.imageSizeInBytes),
3355
- imageTags: output.imageTags != null ? de_ImageTagList(output.imageTags, context) : undefined,
3356
- lastRecordedPullTime: output.lastRecordedPullTime != null
3357
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRecordedPullTime)))
3358
- : undefined,
3359
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3360
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3361
- };
3362
- };
3363
- const de_ImageDetailList = (output, context) => {
3364
- const retVal = (output || [])
3365
- .filter((e) => e != null)
3366
- .map((entry) => {
3367
- if (entry === null) {
3368
- return null;
3369
- }
3370
- return de_ImageDetail(entry, context);
3371
- });
3372
- return retVal;
3373
- };
3374
- const de_ImageDigestDoesNotMatchException = (output, context) => {
3375
- return {
3376
- message: (0, smithy_client_1.expectString)(output.message),
3377
- };
3378
- };
3379
- const de_ImageFailure = (output, context) => {
3380
- return {
3381
- failureCode: (0, smithy_client_1.expectString)(output.failureCode),
3382
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
3383
- imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
3384
- };
3385
- };
3386
- const de_ImageFailureList = (output, context) => {
3387
- const retVal = (output || [])
3388
- .filter((e) => e != null)
3389
- .map((entry) => {
3390
- if (entry === null) {
3391
- return null;
3392
- }
3393
- return de_ImageFailure(entry, context);
3394
- });
3395
- return retVal;
3396
- };
3397
- const de_ImageIdentifier = (output, context) => {
3398
- return {
3399
- imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
3400
- imageTag: (0, smithy_client_1.expectString)(output.imageTag),
3401
- };
3402
- };
3403
- const de_ImageIdentifierList = (output, context) => {
3404
- const retVal = (output || [])
3405
- .filter((e) => e != null)
3406
- .map((entry) => {
3407
- if (entry === null) {
3408
- return null;
3409
- }
3410
- return de_ImageIdentifier(entry, context);
3411
- });
3412
- return retVal;
3413
- };
3414
- const de_ImageList = (output, context) => {
3415
- const retVal = (output || [])
3416
- .filter((e) => e != null)
3417
- .map((entry) => {
3418
- if (entry === null) {
3419
- return null;
3420
- }
3421
- return de_Image(entry, context);
3422
- });
3423
- return retVal;
3424
- };
3425
- const de_ImageNotFoundException = (output, context) => {
3426
- return {
3427
- message: (0, smithy_client_1.expectString)(output.message),
3428
- };
3429
- };
3430
- const de_ImageReplicationStatus = (output, context) => {
3431
- return {
3432
- failureCode: (0, smithy_client_1.expectString)(output.failureCode),
3433
- region: (0, smithy_client_1.expectString)(output.region),
3434
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3435
- status: (0, smithy_client_1.expectString)(output.status),
3436
- };
3437
- };
3438
- const de_ImageReplicationStatusList = (output, context) => {
3439
- const retVal = (output || [])
3440
- .filter((e) => e != null)
3441
- .map((entry) => {
3442
- if (entry === null) {
3443
- return null;
3444
- }
3445
- return de_ImageReplicationStatus(entry, context);
3446
- });
3447
- return retVal;
3448
- };
3449
- const de_ImageScanFinding = (output, context) => {
3450
- return {
3451
- attributes: output.attributes != null ? de_AttributeList(output.attributes, context) : undefined,
3452
- description: (0, smithy_client_1.expectString)(output.description),
3453
- name: (0, smithy_client_1.expectString)(output.name),
3454
- severity: (0, smithy_client_1.expectString)(output.severity),
3455
- uri: (0, smithy_client_1.expectString)(output.uri),
3456
- };
3457
- };
3458
- const de_ImageScanFindingList = (output, context) => {
3459
- const retVal = (output || [])
3460
- .filter((e) => e != null)
3461
- .map((entry) => {
3462
- if (entry === null) {
3463
- return null;
3464
- }
3465
- return de_ImageScanFinding(entry, context);
3466
- });
3467
- return retVal;
3468
- };
3469
- const de_ImageScanFindings = (output, context) => {
3470
- return {
3471
- enhancedFindings: output.enhancedFindings != null ? de_EnhancedImageScanFindingList(output.enhancedFindings, context) : undefined,
3472
- findingSeverityCounts: output.findingSeverityCounts != null
3473
- ? de_FindingSeverityCounts(output.findingSeverityCounts, context)
3474
- : undefined,
3475
- findings: output.findings != null ? de_ImageScanFindingList(output.findings, context) : undefined,
3476
- imageScanCompletedAt: output.imageScanCompletedAt != null
3477
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imageScanCompletedAt)))
3478
- : undefined,
3479
- vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
3480
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vulnerabilitySourceUpdatedAt)))
3481
- : undefined,
3482
- };
3483
- };
3484
- const de_ImageScanFindingsSummary = (output, context) => {
3485
- return {
3486
- findingSeverityCounts: output.findingSeverityCounts != null
3487
- ? de_FindingSeverityCounts(output.findingSeverityCounts, context)
3488
- : undefined,
3489
- imageScanCompletedAt: output.imageScanCompletedAt != null
3490
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imageScanCompletedAt)))
3491
- : undefined,
3492
- vulnerabilitySourceUpdatedAt: output.vulnerabilitySourceUpdatedAt != null
3493
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vulnerabilitySourceUpdatedAt)))
3494
- : undefined,
3495
- };
3496
- };
3497
- const de_ImageScanningConfiguration = (output, context) => {
3498
- return {
3499
- scanOnPush: (0, smithy_client_1.expectBoolean)(output.scanOnPush),
3500
- };
3501
- };
3502
- const de_ImageScanStatus = (output, context) => {
3503
- return {
3504
- description: (0, smithy_client_1.expectString)(output.description),
3505
- status: (0, smithy_client_1.expectString)(output.status),
3506
- };
3507
- };
3508
- const de_ImageTagAlreadyExistsException = (output, context) => {
3509
- return {
3510
- message: (0, smithy_client_1.expectString)(output.message),
3511
- };
3512
- };
3513
- const de_ImageTagList = (output, context) => {
3514
- const retVal = (output || [])
3515
- .filter((e) => e != null)
3516
- .map((entry) => {
3517
- if (entry === null) {
3518
- return null;
3519
- }
3520
- return (0, smithy_client_1.expectString)(entry);
3521
- });
3522
- return retVal;
3523
- };
3524
- const de_ImageTagsList = (output, context) => {
3525
- const retVal = (output || [])
3526
- .filter((e) => e != null)
3527
- .map((entry) => {
3528
- if (entry === null) {
3529
- return null;
3530
- }
3531
- return (0, smithy_client_1.expectString)(entry);
3532
- });
3533
- return retVal;
3534
- };
3535
- const de_InitiateLayerUploadResponse = (output, context) => {
3536
- return {
3537
- partSize: (0, smithy_client_1.expectLong)(output.partSize),
3538
- uploadId: (0, smithy_client_1.expectString)(output.uploadId),
3539
- };
3540
- };
3541
- const de_InvalidLayerException = (output, context) => {
3542
- return {
3543
- message: (0, smithy_client_1.expectString)(output.message),
3544
- };
3545
- };
3546
- const de_InvalidLayerPartException = (output, context) => {
3547
- return {
3548
- lastValidByteReceived: (0, smithy_client_1.expectLong)(output.lastValidByteReceived),
3549
- message: (0, smithy_client_1.expectString)(output.message),
3550
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3551
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3552
- uploadId: (0, smithy_client_1.expectString)(output.uploadId),
3553
- };
3554
- };
3555
- const de_InvalidParameterException = (output, context) => {
3556
- return {
3557
- message: (0, smithy_client_1.expectString)(output.message),
3558
- };
3559
- };
3560
- const de_InvalidTagParameterException = (output, context) => {
3561
- return {
3562
- message: (0, smithy_client_1.expectString)(output.message),
3563
- };
3564
- };
3565
- const de_KmsException = (output, context) => {
3566
- return {
3567
- kmsError: (0, smithy_client_1.expectString)(output.kmsError),
3568
- message: (0, smithy_client_1.expectString)(output.message),
3569
- };
3570
- };
3571
- const de_Layer = (output, context) => {
3572
- return {
3573
- layerAvailability: (0, smithy_client_1.expectString)(output.layerAvailability),
3574
- layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
3575
- layerSize: (0, smithy_client_1.expectLong)(output.layerSize),
3576
- mediaType: (0, smithy_client_1.expectString)(output.mediaType),
3577
- };
3578
- };
3579
- const de_LayerAlreadyExistsException = (output, context) => {
3580
- return {
3581
- message: (0, smithy_client_1.expectString)(output.message),
3582
- };
3583
- };
3584
- const de_LayerFailure = (output, context) => {
3585
- return {
3586
- failureCode: (0, smithy_client_1.expectString)(output.failureCode),
3587
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
3588
- layerDigest: (0, smithy_client_1.expectString)(output.layerDigest),
3589
- };
3590
- };
3591
- const de_LayerFailureList = (output, context) => {
3592
- const retVal = (output || [])
3593
- .filter((e) => e != null)
3594
- .map((entry) => {
3595
- if (entry === null) {
3596
- return null;
3597
- }
3598
- return de_LayerFailure(entry, context);
3599
- });
3600
- return retVal;
3601
- };
3602
- const de_LayerInaccessibleException = (output, context) => {
3603
- return {
3604
- message: (0, smithy_client_1.expectString)(output.message),
3605
- };
3606
- };
3607
- const de_LayerList = (output, context) => {
3608
- const retVal = (output || [])
3609
- .filter((e) => e != null)
3610
- .map((entry) => {
3611
- if (entry === null) {
3612
- return null;
3613
- }
3614
- return de_Layer(entry, context);
3615
- });
3616
- return retVal;
3617
- };
3618
- const de_LayerPartTooSmallException = (output, context) => {
3619
- return {
3620
- message: (0, smithy_client_1.expectString)(output.message),
3621
- };
3622
- };
3623
- const de_LayersNotFoundException = (output, context) => {
3624
- return {
3625
- message: (0, smithy_client_1.expectString)(output.message),
3626
- };
3627
- };
3628
- const de_LifecyclePolicyNotFoundException = (output, context) => {
3629
- return {
3630
- message: (0, smithy_client_1.expectString)(output.message),
3631
- };
3632
- };
3633
- const de_LifecyclePolicyPreviewInProgressException = (output, context) => {
3634
- return {
3635
- message: (0, smithy_client_1.expectString)(output.message),
3636
- };
3637
- };
3638
- const de_LifecyclePolicyPreviewNotFoundException = (output, context) => {
3639
- return {
3640
- message: (0, smithy_client_1.expectString)(output.message),
3641
- };
3642
- };
3643
- const de_LifecyclePolicyPreviewResult = (output, context) => {
3644
- return {
3645
- action: output.action != null ? de_LifecyclePolicyRuleAction(output.action, context) : undefined,
3646
- appliedRulePriority: (0, smithy_client_1.expectInt32)(output.appliedRulePriority),
3647
- imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
3648
- imagePushedAt: output.imagePushedAt != null
3649
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
3650
- : undefined,
3651
- imageTags: output.imageTags != null ? de_ImageTagList(output.imageTags, context) : undefined,
3652
- };
3653
- };
3654
- const de_LifecyclePolicyPreviewResultList = (output, context) => {
3655
- const retVal = (output || [])
3656
- .filter((e) => e != null)
3657
- .map((entry) => {
3658
- if (entry === null) {
3659
- return null;
3660
- }
3661
- return de_LifecyclePolicyPreviewResult(entry, context);
3662
- });
3663
- return retVal;
3664
- };
3665
- const de_LifecyclePolicyPreviewSummary = (output, context) => {
3666
- return {
3667
- expiringImageTotalCount: (0, smithy_client_1.expectInt32)(output.expiringImageTotalCount),
3668
- };
3669
- };
3670
- const de_LifecyclePolicyRuleAction = (output, context) => {
3671
- return {
3672
- type: (0, smithy_client_1.expectString)(output.type),
3673
- };
3674
- };
3675
- const de_LimitExceededException = (output, context) => {
3676
- return {
3677
- message: (0, smithy_client_1.expectString)(output.message),
3678
- };
3679
- };
3680
- const de_ListImagesResponse = (output, context) => {
3681
- return {
3682
- imageIds: output.imageIds != null ? de_ImageIdentifierList(output.imageIds, context) : undefined,
3683
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
3684
- };
3685
- };
3686
- const de_ListTagsForResourceResponse = (output, context) => {
3687
- return {
3688
- tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
3689
- };
3690
- };
3691
- const de_PackageVulnerabilityDetails = (output, context) => {
3692
- return {
3693
- cvss: output.cvss != null ? de_CvssScoreList(output.cvss, context) : undefined,
3694
- referenceUrls: output.referenceUrls != null ? de_ReferenceUrlsList(output.referenceUrls, context) : undefined,
3695
- relatedVulnerabilities: output.relatedVulnerabilities != null
3696
- ? de_RelatedVulnerabilitiesList(output.relatedVulnerabilities, context)
3697
- : undefined,
3698
- source: (0, smithy_client_1.expectString)(output.source),
3699
- sourceUrl: (0, smithy_client_1.expectString)(output.sourceUrl),
3700
- vendorCreatedAt: output.vendorCreatedAt != null
3701
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorCreatedAt)))
3702
- : undefined,
3703
- vendorSeverity: (0, smithy_client_1.expectString)(output.vendorSeverity),
3704
- vendorUpdatedAt: output.vendorUpdatedAt != null
3705
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.vendorUpdatedAt)))
3706
- : undefined,
3707
- vulnerabilityId: (0, smithy_client_1.expectString)(output.vulnerabilityId),
3708
- vulnerablePackages: output.vulnerablePackages != null ? de_VulnerablePackagesList(output.vulnerablePackages, context) : undefined,
3709
- };
3710
- };
3711
- const de_PullThroughCacheRule = (output, context) => {
3712
- return {
3713
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3714
- ecrRepositoryPrefix: (0, smithy_client_1.expectString)(output.ecrRepositoryPrefix),
3715
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3716
- upstreamRegistryUrl: (0, smithy_client_1.expectString)(output.upstreamRegistryUrl),
3717
- };
3718
- };
3719
- const de_PullThroughCacheRuleAlreadyExistsException = (output, context) => {
3720
- return {
3721
- message: (0, smithy_client_1.expectString)(output.message),
3722
- };
3723
- };
3724
- const de_PullThroughCacheRuleList = (output, context) => {
3725
- const retVal = (output || [])
3726
- .filter((e) => e != null)
3727
- .map((entry) => {
3728
- if (entry === null) {
3729
- return null;
3730
- }
3731
- return de_PullThroughCacheRule(entry, context);
3732
- });
3733
- return retVal;
3734
- };
3735
- const de_PullThroughCacheRuleNotFoundException = (output, context) => {
3736
- return {
3737
- message: (0, smithy_client_1.expectString)(output.message),
3738
- };
3739
- };
3740
- const de_PutImageResponse = (output, context) => {
3741
- return {
3742
- image: output.image != null ? de_Image(output.image, context) : undefined,
3743
- };
3744
- };
3745
- const de_PutImageScanningConfigurationResponse = (output, context) => {
3746
- return {
3747
- imageScanningConfiguration: output.imageScanningConfiguration != null
3748
- ? de_ImageScanningConfiguration(output.imageScanningConfiguration, context)
3749
- : undefined,
3750
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3751
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3752
- };
3753
- };
3754
- const de_PutImageTagMutabilityResponse = (output, context) => {
3755
- return {
3756
- imageTagMutability: (0, smithy_client_1.expectString)(output.imageTagMutability),
3757
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3758
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3759
- };
3760
- };
3761
- const de_PutLifecyclePolicyResponse = (output, context) => {
3762
- return {
3763
- lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
3764
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3765
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3766
- };
3767
- };
3768
- const de_PutRegistryPolicyResponse = (output, context) => {
3769
- return {
3770
- policyText: (0, smithy_client_1.expectString)(output.policyText),
3771
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3772
- };
3773
- };
3774
- const de_PutRegistryScanningConfigurationResponse = (output, context) => {
3775
- return {
3776
- registryScanningConfiguration: output.registryScanningConfiguration != null
3777
- ? de_RegistryScanningConfiguration(output.registryScanningConfiguration, context)
3778
- : undefined,
3779
- };
3780
- };
3781
- const de_PutReplicationConfigurationResponse = (output, context) => {
3782
- return {
3783
- replicationConfiguration: output.replicationConfiguration != null
3784
- ? de_ReplicationConfiguration(output.replicationConfiguration, context)
3785
- : undefined,
3786
- };
3787
- };
3788
- const de_Recommendation = (output, context) => {
3789
- return {
3790
- text: (0, smithy_client_1.expectString)(output.text),
3791
- url: (0, smithy_client_1.expectString)(output.url),
3792
- };
3793
- };
3794
- const de_ReferencedImagesNotFoundException = (output, context) => {
3795
- return {
3796
- message: (0, smithy_client_1.expectString)(output.message),
3797
- };
3798
- };
3799
- const de_ReferenceUrlsList = (output, context) => {
3800
- const retVal = (output || [])
3801
- .filter((e) => e != null)
3802
- .map((entry) => {
3803
- if (entry === null) {
3804
- return null;
3805
- }
3806
- return (0, smithy_client_1.expectString)(entry);
3807
- });
3808
- return retVal;
3809
- };
3810
- const de_RegistryPolicyNotFoundException = (output, context) => {
3811
- return {
3812
- message: (0, smithy_client_1.expectString)(output.message),
3813
- };
3814
- };
3815
- const de_RegistryScanningConfiguration = (output, context) => {
3816
- return {
3817
- rules: output.rules != null ? de_RegistryScanningRuleList(output.rules, context) : undefined,
3818
- scanType: (0, smithy_client_1.expectString)(output.scanType),
3819
- };
3820
- };
3821
- const de_RegistryScanningRule = (output, context) => {
3822
- return {
3823
- repositoryFilters: output.repositoryFilters != null ? de_ScanningRepositoryFilterList(output.repositoryFilters, context) : undefined,
3824
- scanFrequency: (0, smithy_client_1.expectString)(output.scanFrequency),
3825
- };
3826
- };
3827
- const de_RegistryScanningRuleList = (output, context) => {
3828
- const retVal = (output || [])
3829
- .filter((e) => e != null)
3830
- .map((entry) => {
3831
- if (entry === null) {
3832
- return null;
3833
- }
3834
- return de_RegistryScanningRule(entry, context);
3835
- });
3836
- return retVal;
3837
- };
3838
- const de_RelatedVulnerabilitiesList = (output, context) => {
3839
- const retVal = (output || [])
3840
- .filter((e) => e != null)
3841
- .map((entry) => {
3842
- if (entry === null) {
3843
- return null;
3844
- }
3845
- return (0, smithy_client_1.expectString)(entry);
3846
- });
3847
- return retVal;
3848
- };
3849
- const de_Remediation = (output, context) => {
3850
- return {
3851
- recommendation: output.recommendation != null ? de_Recommendation(output.recommendation, context) : undefined,
3852
- };
3853
- };
3854
- const de_ReplicationConfiguration = (output, context) => {
3855
- return {
3856
- rules: output.rules != null ? de_ReplicationRuleList(output.rules, context) : undefined,
3857
- };
3858
- };
3859
- const de_ReplicationDestination = (output, context) => {
3860
- return {
3861
- region: (0, smithy_client_1.expectString)(output.region),
3862
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3863
- };
3864
- };
3865
- const de_ReplicationDestinationList = (output, context) => {
3866
- const retVal = (output || [])
3867
- .filter((e) => e != null)
3868
- .map((entry) => {
3869
- if (entry === null) {
3870
- return null;
3871
- }
3872
- return de_ReplicationDestination(entry, context);
3873
- });
3874
- return retVal;
3875
- };
3876
- const de_ReplicationRule = (output, context) => {
3877
- return {
3878
- destinations: output.destinations != null ? de_ReplicationDestinationList(output.destinations, context) : undefined,
3879
- repositoryFilters: output.repositoryFilters != null ? de_RepositoryFilterList(output.repositoryFilters, context) : undefined,
3880
- };
3881
- };
3882
- const de_ReplicationRuleList = (output, context) => {
3883
- const retVal = (output || [])
3884
- .filter((e) => e != null)
3885
- .map((entry) => {
3886
- if (entry === null) {
3887
- return null;
3888
- }
3889
- return de_ReplicationRule(entry, context);
3890
- });
3891
- return retVal;
3892
- };
3893
- const de_Repository = (output, context) => {
3894
- return {
3895
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3896
- encryptionConfiguration: output.encryptionConfiguration != null
3897
- ? de_EncryptionConfiguration(output.encryptionConfiguration, context)
3898
- : undefined,
3899
- imageScanningConfiguration: output.imageScanningConfiguration != null
3900
- ? de_ImageScanningConfiguration(output.imageScanningConfiguration, context)
3901
- : undefined,
3902
- imageTagMutability: (0, smithy_client_1.expectString)(output.imageTagMutability),
3903
- registryId: (0, smithy_client_1.expectString)(output.registryId),
3904
- repositoryArn: (0, smithy_client_1.expectString)(output.repositoryArn),
3905
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3906
- repositoryUri: (0, smithy_client_1.expectString)(output.repositoryUri),
3907
- };
3908
- };
3909
- const de_RepositoryAlreadyExistsException = (output, context) => {
3910
- return {
3911
- message: (0, smithy_client_1.expectString)(output.message),
3912
- };
3913
- };
3914
- const de_RepositoryFilter = (output, context) => {
3915
- return {
3916
- filter: (0, smithy_client_1.expectString)(output.filter),
3917
- filterType: (0, smithy_client_1.expectString)(output.filterType),
3918
- };
3919
- };
3920
- const de_RepositoryFilterList = (output, context) => {
3921
- const retVal = (output || [])
3922
- .filter((e) => e != null)
3923
- .map((entry) => {
3924
- if (entry === null) {
3925
- return null;
3926
- }
3927
- return de_RepositoryFilter(entry, context);
3928
- });
3929
- return retVal;
3930
- };
3931
- const de_RepositoryList = (output, context) => {
3932
- const retVal = (output || [])
3933
- .filter((e) => e != null)
3934
- .map((entry) => {
3935
- if (entry === null) {
3936
- return null;
3937
- }
3938
- return de_Repository(entry, context);
3939
- });
3940
- return retVal;
3941
- };
3942
- const de_RepositoryNotEmptyException = (output, context) => {
3943
- return {
3944
- message: (0, smithy_client_1.expectString)(output.message),
3945
- };
3946
- };
3947
- const de_RepositoryNotFoundException = (output, context) => {
3948
- return {
3949
- message: (0, smithy_client_1.expectString)(output.message),
3950
- };
3951
- };
3952
- const de_RepositoryPolicyNotFoundException = (output, context) => {
3953
- return {
3954
- message: (0, smithy_client_1.expectString)(output.message),
3955
- };
3956
- };
3957
- const de_RepositoryScanningConfiguration = (output, context) => {
3958
- return {
3959
- appliedScanFilters: output.appliedScanFilters != null
3960
- ? de_ScanningRepositoryFilterList(output.appliedScanFilters, context)
3961
- : undefined,
3962
- repositoryArn: (0, smithy_client_1.expectString)(output.repositoryArn),
3963
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3964
- scanFrequency: (0, smithy_client_1.expectString)(output.scanFrequency),
3965
- scanOnPush: (0, smithy_client_1.expectBoolean)(output.scanOnPush),
3966
- };
3967
- };
3968
- const de_RepositoryScanningConfigurationFailure = (output, context) => {
3969
- return {
3970
- failureCode: (0, smithy_client_1.expectString)(output.failureCode),
3971
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
3972
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
3973
- };
3974
- };
3975
- const de_RepositoryScanningConfigurationFailureList = (output, context) => {
3976
- const retVal = (output || [])
3977
- .filter((e) => e != null)
3978
- .map((entry) => {
3979
- if (entry === null) {
3980
- return null;
3981
- }
3982
- return de_RepositoryScanningConfigurationFailure(entry, context);
3983
- });
3984
- return retVal;
3985
- };
3986
- const de_RepositoryScanningConfigurationList = (output, context) => {
3987
- const retVal = (output || [])
3988
- .filter((e) => e != null)
3989
- .map((entry) => {
3990
- if (entry === null) {
3991
- return null;
3992
- }
3993
- return de_RepositoryScanningConfiguration(entry, context);
3994
- });
3995
- return retVal;
3996
- };
3997
- const de_Resource = (output, context) => {
3998
- return {
3999
- details: output.details != null ? de_ResourceDetails(output.details, context) : undefined,
4000
- id: (0, smithy_client_1.expectString)(output.id),
4001
- tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
4002
- type: (0, smithy_client_1.expectString)(output.type),
4003
- };
4004
- };
4005
- const de_ResourceDetails = (output, context) => {
4006
- return {
4007
- awsEcrContainerImage: output.awsEcrContainerImage != null
4008
- ? de_AwsEcrContainerImageDetails(output.awsEcrContainerImage, context)
4009
- : undefined,
4010
- };
4011
- };
4012
- const de_ResourceList = (output, context) => {
4013
- const retVal = (output || [])
4014
- .filter((e) => e != null)
4015
- .map((entry) => {
4016
- if (entry === null) {
4017
- return null;
4018
- }
4019
- return de_Resource(entry, context);
4020
- });
4021
- return retVal;
4022
- };
4023
- const de_ScanningRepositoryFilter = (output, context) => {
4024
- return {
4025
- filter: (0, smithy_client_1.expectString)(output.filter),
4026
- filterType: (0, smithy_client_1.expectString)(output.filterType),
4027
- };
4028
- };
4029
- const de_ScanningRepositoryFilterList = (output, context) => {
4030
- const retVal = (output || [])
4031
- .filter((e) => e != null)
4032
- .map((entry) => {
4033
- if (entry === null) {
4034
- return null;
4035
- }
4036
- return de_ScanningRepositoryFilter(entry, context);
4037
- });
4038
- return retVal;
4039
- };
4040
- const de_ScanNotFoundException = (output, context) => {
4041
- return {
4042
- message: (0, smithy_client_1.expectString)(output.message),
4043
- };
4044
- };
4045
- const de_ScoreDetails = (output, context) => {
4046
- return {
4047
- cvss: output.cvss != null ? de_CvssScoreDetails(output.cvss, context) : undefined,
4048
- };
4049
- };
4050
- const de_ServerException = (output, context) => {
4051
- return {
4052
- message: (0, smithy_client_1.expectString)(output.message),
4053
- };
4054
- };
4055
- const de_SetRepositoryPolicyResponse = (output, context) => {
4056
- return {
4057
- policyText: (0, smithy_client_1.expectString)(output.policyText),
4058
- registryId: (0, smithy_client_1.expectString)(output.registryId),
4059
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
4060
- };
4061
- };
4062
- const de_StartImageScanResponse = (output, context) => {
4063
- return {
4064
- imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
4065
- imageScanStatus: output.imageScanStatus != null ? de_ImageScanStatus(output.imageScanStatus, context) : undefined,
4066
- registryId: (0, smithy_client_1.expectString)(output.registryId),
4067
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
4068
- };
4069
- };
4070
- const de_StartLifecyclePolicyPreviewResponse = (output, context) => {
4071
- return {
4072
- lifecyclePolicyText: (0, smithy_client_1.expectString)(output.lifecyclePolicyText),
4073
- registryId: (0, smithy_client_1.expectString)(output.registryId),
4074
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
4075
- status: (0, smithy_client_1.expectString)(output.status),
4076
- };
4077
- };
4078
- const de_Tag = (output, context) => {
4079
- return {
4080
- Key: (0, smithy_client_1.expectString)(output.Key),
4081
- Value: (0, smithy_client_1.expectString)(output.Value),
4082
- };
4083
- };
4084
- const de_TagList = (output, context) => {
4085
- const retVal = (output || [])
4086
- .filter((e) => e != null)
4087
- .map((entry) => {
4088
- if (entry === null) {
4089
- return null;
4090
- }
4091
- return de_Tag(entry, context);
4092
- });
4093
- return retVal;
4094
- };
4095
- const de_TagResourceResponse = (output, context) => {
4096
- return {};
4097
- };
4098
- const de_Tags = (output, context) => {
4099
- return Object.entries(output).reduce((acc, [key, value]) => {
4100
- if (value === null) {
4101
- return acc;
4102
- }
4103
- acc[key] = (0, smithy_client_1.expectString)(value);
4104
- return acc;
4105
- }, {});
4106
- };
4107
- const de_TooManyTagsException = (output, context) => {
4108
- return {
4109
- message: (0, smithy_client_1.expectString)(output.message),
4110
- };
4111
- };
4112
- const de_UnsupportedImageTypeException = (output, context) => {
4113
- return {
4114
- message: (0, smithy_client_1.expectString)(output.message),
4115
- };
4116
- };
4117
- const de_UnsupportedUpstreamRegistryException = (output, context) => {
4118
- return {
4119
- message: (0, smithy_client_1.expectString)(output.message),
4120
- };
4121
- };
4122
- const de_UntagResourceResponse = (output, context) => {
4123
- return {};
4124
- };
4125
- const de_UploadLayerPartResponse = (output, context) => {
4126
- return {
4127
- lastByteReceived: (0, smithy_client_1.expectLong)(output.lastByteReceived),
4128
- registryId: (0, smithy_client_1.expectString)(output.registryId),
4129
- repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
4130
- uploadId: (0, smithy_client_1.expectString)(output.uploadId),
4131
- };
4132
- };
4133
- const de_UploadNotFoundException = (output, context) => {
4134
- return {
4135
- message: (0, smithy_client_1.expectString)(output.message),
4136
- };
4137
- };
4138
- const de_ValidationException = (output, context) => {
4139
- return {
4140
- message: (0, smithy_client_1.expectString)(output.message),
4141
- };
4142
- };
4143
- const de_VulnerablePackage = (output, context) => {
4144
- return {
4145
- arch: (0, smithy_client_1.expectString)(output.arch),
4146
- epoch: (0, smithy_client_1.expectInt32)(output.epoch),
4147
- filePath: (0, smithy_client_1.expectString)(output.filePath),
4148
- name: (0, smithy_client_1.expectString)(output.name),
4149
- packageManager: (0, smithy_client_1.expectString)(output.packageManager),
4150
- release: (0, smithy_client_1.expectString)(output.release),
4151
- sourceLayerHash: (0, smithy_client_1.expectString)(output.sourceLayerHash),
4152
- version: (0, smithy_client_1.expectString)(output.version),
4153
- };
4154
- };
4155
- const de_VulnerablePackagesList = (output, context) => {
4156
- const retVal = (output || [])
4157
- .filter((e) => e != null)
4158
- .map((entry) => {
4159
- if (entry === null) {
4160
- return null;
4161
- }
4162
- return de_VulnerablePackage(entry, context);
4163
- });
4164
- return retVal;
2659
+ const de_ScoreDetails = (output, context) => {
2660
+ return (0, smithy_client_1.take)(output, {
2661
+ cvss: (_) => de_CvssScoreDetails(_, context),
2662
+ });
4165
2663
  };
4166
2664
  const deserializeMetadata = (output) => ({
4167
2665
  httpStatusCode: output.statusCode,
@@ -4176,6 +2674,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4176
2674
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4177
2675
  };
4178
2676
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2677
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(ECRServiceException_1.ECRServiceException);
4179
2678
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4180
2679
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4181
2680
  const contents = {
@@ -4194,6 +2693,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
4194
2693
  }
4195
2694
  return new protocol_http_1.HttpRequest(contents);
4196
2695
  };
2696
+ function sharedHeaders(operation) {
2697
+ return {
2698
+ "content-type": "application/x-amz-json-1.1",
2699
+ "x-amz-target": `AmazonEC2ContainerRegistry_V20150921.${operation}`,
2700
+ };
2701
+ }
4197
2702
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4198
2703
  if (encoded.length) {
4199
2704
  return JSON.parse(encoded);