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