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