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