@aws-sdk/client-ecr-public 3.490.0 → 3.495.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/ECRPUBLIC.js +1 -57
- package/dist-cjs/ECRPUBLICClient.js +1 -43
- package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +1 -28
- package/dist-cjs/commands/BatchDeleteImageCommand.js +1 -28
- package/dist-cjs/commands/CompleteLayerUploadCommand.js +1 -28
- package/dist-cjs/commands/CreateRepositoryCommand.js +1 -28
- package/dist-cjs/commands/DeleteRepositoryCommand.js +1 -28
- package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +1 -28
- package/dist-cjs/commands/DescribeImageTagsCommand.js +1 -28
- package/dist-cjs/commands/DescribeImagesCommand.js +1 -28
- package/dist-cjs/commands/DescribeRegistriesCommand.js +1 -28
- package/dist-cjs/commands/DescribeRepositoriesCommand.js +1 -28
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +1 -28
- package/dist-cjs/commands/GetRegistryCatalogDataCommand.js +1 -28
- package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js +1 -28
- package/dist-cjs/commands/GetRepositoryPolicyCommand.js +1 -28
- package/dist-cjs/commands/InitiateLayerUploadCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/PutImageCommand.js +1 -28
- package/dist-cjs/commands/PutRegistryCatalogDataCommand.js +1 -28
- package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js +1 -28
- package/dist-cjs/commands/SetRepositoryPolicyCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UploadLayerPartCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -26
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2710 -11
- package/dist-cjs/models/ECRPUBLICServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -342
- package/dist-cjs/pagination/DescribeImageTagsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeImagesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRegistriesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeRepositoriesPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1635
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1635 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UploadLayerPartCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SetRepositoryPolicyCommand = exports.de_PutRepositoryCatalogDataCommand = exports.de_PutRegistryCatalogDataCommand = exports.de_PutImageCommand = exports.de_ListTagsForResourceCommand = exports.de_InitiateLayerUploadCommand = exports.de_GetRepositoryPolicyCommand = exports.de_GetRepositoryCatalogDataCommand = exports.de_GetRegistryCatalogDataCommand = exports.de_GetAuthorizationTokenCommand = exports.de_DescribeRepositoriesCommand = exports.de_DescribeRegistriesCommand = exports.de_DescribeImageTagsCommand = exports.de_DescribeImagesCommand = exports.de_DeleteRepositoryPolicyCommand = exports.de_DeleteRepositoryCommand = exports.de_CreateRepositoryCommand = exports.de_CompleteLayerUploadCommand = exports.de_BatchDeleteImageCommand = exports.de_BatchCheckLayerAvailabilityCommand = exports.se_UploadLayerPartCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SetRepositoryPolicyCommand = exports.se_PutRepositoryCatalogDataCommand = exports.se_PutRegistryCatalogDataCommand = exports.se_PutImageCommand = exports.se_ListTagsForResourceCommand = exports.se_InitiateLayerUploadCommand = exports.se_GetRepositoryPolicyCommand = exports.se_GetRepositoryCatalogDataCommand = exports.se_GetRegistryCatalogDataCommand = exports.se_GetAuthorizationTokenCommand = exports.se_DescribeRepositoriesCommand = exports.se_DescribeRegistriesCommand = exports.se_DescribeImageTagsCommand = exports.se_DescribeImagesCommand = exports.se_DeleteRepositoryPolicyCommand = exports.se_DeleteRepositoryCommand = exports.se_CreateRepositoryCommand = exports.se_CompleteLayerUploadCommand = exports.se_BatchDeleteImageCommand = exports.se_BatchCheckLayerAvailabilityCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const ECRPUBLICServiceException_1 = require("../models/ECRPUBLICServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("BatchCheckLayerAvailability");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
exports.se_BatchCheckLayerAvailabilityCommand = se_BatchCheckLayerAvailabilityCommand;
|
|
15
|
-
const se_BatchDeleteImageCommand = async (input, context) => {
|
|
16
|
-
const headers = sharedHeaders("BatchDeleteImage");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
|
-
};
|
|
21
|
-
exports.se_BatchDeleteImageCommand = se_BatchDeleteImageCommand;
|
|
22
|
-
const se_CompleteLayerUploadCommand = async (input, context) => {
|
|
23
|
-
const headers = sharedHeaders("CompleteLayerUpload");
|
|
24
|
-
let body;
|
|
25
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
-
};
|
|
28
|
-
exports.se_CompleteLayerUploadCommand = se_CompleteLayerUploadCommand;
|
|
29
|
-
const se_CreateRepositoryCommand = async (input, context) => {
|
|
30
|
-
const headers = sharedHeaders("CreateRepository");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify(se_CreateRepositoryRequest(input, context));
|
|
33
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
|
-
};
|
|
35
|
-
exports.se_CreateRepositoryCommand = se_CreateRepositoryCommand;
|
|
36
|
-
const se_DeleteRepositoryCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteRepository");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
exports.se_DeleteRepositoryCommand = se_DeleteRepositoryCommand;
|
|
43
|
-
const se_DeleteRepositoryPolicyCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DeleteRepositoryPolicy");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
exports.se_DeleteRepositoryPolicyCommand = se_DeleteRepositoryPolicyCommand;
|
|
50
|
-
const se_DescribeImagesCommand = async (input, context) => {
|
|
51
|
-
const headers = sharedHeaders("DescribeImages");
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
-
};
|
|
56
|
-
exports.se_DescribeImagesCommand = se_DescribeImagesCommand;
|
|
57
|
-
const se_DescribeImageTagsCommand = async (input, context) => {
|
|
58
|
-
const headers = sharedHeaders("DescribeImageTags");
|
|
59
|
-
let body;
|
|
60
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
|
-
};
|
|
63
|
-
exports.se_DescribeImageTagsCommand = se_DescribeImageTagsCommand;
|
|
64
|
-
const se_DescribeRegistriesCommand = async (input, context) => {
|
|
65
|
-
const headers = sharedHeaders("DescribeRegistries");
|
|
66
|
-
let body;
|
|
67
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
|
-
};
|
|
70
|
-
exports.se_DescribeRegistriesCommand = se_DescribeRegistriesCommand;
|
|
71
|
-
const se_DescribeRepositoriesCommand = async (input, context) => {
|
|
72
|
-
const headers = sharedHeaders("DescribeRepositories");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
exports.se_DescribeRepositoriesCommand = se_DescribeRepositoriesCommand;
|
|
78
|
-
const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("GetAuthorizationToken");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
exports.se_GetAuthorizationTokenCommand = se_GetAuthorizationTokenCommand;
|
|
85
|
-
const se_GetRegistryCatalogDataCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("GetRegistryCatalogData");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
exports.se_GetRegistryCatalogDataCommand = se_GetRegistryCatalogDataCommand;
|
|
92
|
-
const se_GetRepositoryCatalogDataCommand = async (input, context) => {
|
|
93
|
-
const headers = sharedHeaders("GetRepositoryCatalogData");
|
|
94
|
-
let body;
|
|
95
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
-
};
|
|
98
|
-
exports.se_GetRepositoryCatalogDataCommand = se_GetRepositoryCatalogDataCommand;
|
|
99
|
-
const se_GetRepositoryPolicyCommand = async (input, context) => {
|
|
100
|
-
const headers = sharedHeaders("GetRepositoryPolicy");
|
|
101
|
-
let body;
|
|
102
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
103
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
-
};
|
|
105
|
-
exports.se_GetRepositoryPolicyCommand = se_GetRepositoryPolicyCommand;
|
|
106
|
-
const se_InitiateLayerUploadCommand = async (input, context) => {
|
|
107
|
-
const headers = sharedHeaders("InitiateLayerUpload");
|
|
108
|
-
let body;
|
|
109
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
|
-
};
|
|
112
|
-
exports.se_InitiateLayerUploadCommand = se_InitiateLayerUploadCommand;
|
|
113
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
114
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
115
|
-
let body;
|
|
116
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
-
};
|
|
119
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
120
|
-
const se_PutImageCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("PutImage");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
exports.se_PutImageCommand = se_PutImageCommand;
|
|
127
|
-
const se_PutRegistryCatalogDataCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("PutRegistryCatalogData");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
exports.se_PutRegistryCatalogDataCommand = se_PutRegistryCatalogDataCommand;
|
|
134
|
-
const se_PutRepositoryCatalogDataCommand = async (input, context) => {
|
|
135
|
-
const headers = sharedHeaders("PutRepositoryCatalogData");
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify(se_PutRepositoryCatalogDataRequest(input, context));
|
|
138
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
-
};
|
|
140
|
-
exports.se_PutRepositoryCatalogDataCommand = se_PutRepositoryCatalogDataCommand;
|
|
141
|
-
const se_SetRepositoryPolicyCommand = async (input, context) => {
|
|
142
|
-
const headers = sharedHeaders("SetRepositoryPolicy");
|
|
143
|
-
let body;
|
|
144
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
|
-
};
|
|
147
|
-
exports.se_SetRepositoryPolicyCommand = se_SetRepositoryPolicyCommand;
|
|
148
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
149
|
-
const headers = sharedHeaders("TagResource");
|
|
150
|
-
let body;
|
|
151
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
152
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
153
|
-
};
|
|
154
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
155
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
156
|
-
const headers = sharedHeaders("UntagResource");
|
|
157
|
-
let body;
|
|
158
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
159
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
|
-
};
|
|
161
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
162
|
-
const se_UploadLayerPartCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("UploadLayerPart");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(se_UploadLayerPartRequest(input, context));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
exports.se_UploadLayerPartCommand = se_UploadLayerPartCommand;
|
|
169
|
-
const de_BatchCheckLayerAvailabilityCommand = async (output, context) => {
|
|
170
|
-
if (output.statusCode >= 300) {
|
|
171
|
-
return de_BatchCheckLayerAvailabilityCommandError(output, context);
|
|
172
|
-
}
|
|
173
|
-
const data = await parseBody(output.body, context);
|
|
174
|
-
let contents = {};
|
|
175
|
-
contents = (0, smithy_client_1._json)(data);
|
|
176
|
-
const response = {
|
|
177
|
-
$metadata: deserializeMetadata(output),
|
|
178
|
-
...contents,
|
|
179
|
-
};
|
|
180
|
-
return response;
|
|
181
|
-
};
|
|
182
|
-
exports.de_BatchCheckLayerAvailabilityCommand = de_BatchCheckLayerAvailabilityCommand;
|
|
183
|
-
const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
|
|
184
|
-
const parsedOutput = {
|
|
185
|
-
...output,
|
|
186
|
-
body: await parseErrorBody(output.body, context),
|
|
187
|
-
};
|
|
188
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
189
|
-
switch (errorCode) {
|
|
190
|
-
case "InvalidParameterException":
|
|
191
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
192
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
193
|
-
case "RegistryNotFoundException":
|
|
194
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
195
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
196
|
-
case "RepositoryNotFoundException":
|
|
197
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
198
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
199
|
-
case "ServerException":
|
|
200
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
201
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
202
|
-
case "UnsupportedCommandException":
|
|
203
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
204
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
205
|
-
default:
|
|
206
|
-
const parsedBody = parsedOutput.body;
|
|
207
|
-
return throwDefaultError({
|
|
208
|
-
output,
|
|
209
|
-
parsedBody,
|
|
210
|
-
errorCode,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
const de_BatchDeleteImageCommand = async (output, context) => {
|
|
215
|
-
if (output.statusCode >= 300) {
|
|
216
|
-
return de_BatchDeleteImageCommandError(output, context);
|
|
217
|
-
}
|
|
218
|
-
const data = await parseBody(output.body, context);
|
|
219
|
-
let contents = {};
|
|
220
|
-
contents = (0, smithy_client_1._json)(data);
|
|
221
|
-
const response = {
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
...contents,
|
|
224
|
-
};
|
|
225
|
-
return response;
|
|
226
|
-
};
|
|
227
|
-
exports.de_BatchDeleteImageCommand = de_BatchDeleteImageCommand;
|
|
228
|
-
const de_BatchDeleteImageCommandError = async (output, context) => {
|
|
229
|
-
const parsedOutput = {
|
|
230
|
-
...output,
|
|
231
|
-
body: await parseErrorBody(output.body, context),
|
|
232
|
-
};
|
|
233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
234
|
-
switch (errorCode) {
|
|
235
|
-
case "InvalidParameterException":
|
|
236
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
237
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
238
|
-
case "RepositoryNotFoundException":
|
|
239
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
240
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
241
|
-
case "ServerException":
|
|
242
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
243
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
244
|
-
case "UnsupportedCommandException":
|
|
245
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
246
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
247
|
-
default:
|
|
248
|
-
const parsedBody = parsedOutput.body;
|
|
249
|
-
return throwDefaultError({
|
|
250
|
-
output,
|
|
251
|
-
parsedBody,
|
|
252
|
-
errorCode,
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
const de_CompleteLayerUploadCommand = async (output, context) => {
|
|
257
|
-
if (output.statusCode >= 300) {
|
|
258
|
-
return de_CompleteLayerUploadCommandError(output, context);
|
|
259
|
-
}
|
|
260
|
-
const data = await parseBody(output.body, context);
|
|
261
|
-
let contents = {};
|
|
262
|
-
contents = (0, smithy_client_1._json)(data);
|
|
263
|
-
const response = {
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
...contents,
|
|
266
|
-
};
|
|
267
|
-
return response;
|
|
268
|
-
};
|
|
269
|
-
exports.de_CompleteLayerUploadCommand = de_CompleteLayerUploadCommand;
|
|
270
|
-
const de_CompleteLayerUploadCommandError = async (output, context) => {
|
|
271
|
-
const parsedOutput = {
|
|
272
|
-
...output,
|
|
273
|
-
body: await parseErrorBody(output.body, context),
|
|
274
|
-
};
|
|
275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
276
|
-
switch (errorCode) {
|
|
277
|
-
case "EmptyUploadException":
|
|
278
|
-
case "com.amazonaws.ecrpublic#EmptyUploadException":
|
|
279
|
-
throw await de_EmptyUploadExceptionRes(parsedOutput, context);
|
|
280
|
-
case "InvalidLayerException":
|
|
281
|
-
case "com.amazonaws.ecrpublic#InvalidLayerException":
|
|
282
|
-
throw await de_InvalidLayerExceptionRes(parsedOutput, context);
|
|
283
|
-
case "InvalidParameterException":
|
|
284
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
285
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
286
|
-
case "LayerAlreadyExistsException":
|
|
287
|
-
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException":
|
|
288
|
-
throw await de_LayerAlreadyExistsExceptionRes(parsedOutput, context);
|
|
289
|
-
case "LayerPartTooSmallException":
|
|
290
|
-
case "com.amazonaws.ecrpublic#LayerPartTooSmallException":
|
|
291
|
-
throw await de_LayerPartTooSmallExceptionRes(parsedOutput, context);
|
|
292
|
-
case "RegistryNotFoundException":
|
|
293
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
294
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
295
|
-
case "RepositoryNotFoundException":
|
|
296
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
297
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
298
|
-
case "ServerException":
|
|
299
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
300
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
301
|
-
case "UnsupportedCommandException":
|
|
302
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
303
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
304
|
-
case "UploadNotFoundException":
|
|
305
|
-
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
306
|
-
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
307
|
-
default:
|
|
308
|
-
const parsedBody = parsedOutput.body;
|
|
309
|
-
return throwDefaultError({
|
|
310
|
-
output,
|
|
311
|
-
parsedBody,
|
|
312
|
-
errorCode,
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
const de_CreateRepositoryCommand = async (output, context) => {
|
|
317
|
-
if (output.statusCode >= 300) {
|
|
318
|
-
return de_CreateRepositoryCommandError(output, context);
|
|
319
|
-
}
|
|
320
|
-
const data = await parseBody(output.body, context);
|
|
321
|
-
let contents = {};
|
|
322
|
-
contents = de_CreateRepositoryResponse(data, context);
|
|
323
|
-
const response = {
|
|
324
|
-
$metadata: deserializeMetadata(output),
|
|
325
|
-
...contents,
|
|
326
|
-
};
|
|
327
|
-
return response;
|
|
328
|
-
};
|
|
329
|
-
exports.de_CreateRepositoryCommand = de_CreateRepositoryCommand;
|
|
330
|
-
const de_CreateRepositoryCommandError = async (output, context) => {
|
|
331
|
-
const parsedOutput = {
|
|
332
|
-
...output,
|
|
333
|
-
body: await parseErrorBody(output.body, context),
|
|
334
|
-
};
|
|
335
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
336
|
-
switch (errorCode) {
|
|
337
|
-
case "InvalidParameterException":
|
|
338
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
339
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
340
|
-
case "InvalidTagParameterException":
|
|
341
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
342
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
343
|
-
case "LimitExceededException":
|
|
344
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
345
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
346
|
-
case "RepositoryAlreadyExistsException":
|
|
347
|
-
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":
|
|
348
|
-
throw await de_RepositoryAlreadyExistsExceptionRes(parsedOutput, context);
|
|
349
|
-
case "ServerException":
|
|
350
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
351
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
352
|
-
case "TooManyTagsException":
|
|
353
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
354
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
355
|
-
case "UnsupportedCommandException":
|
|
356
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
357
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
358
|
-
default:
|
|
359
|
-
const parsedBody = parsedOutput.body;
|
|
360
|
-
return throwDefaultError({
|
|
361
|
-
output,
|
|
362
|
-
parsedBody,
|
|
363
|
-
errorCode,
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
const de_DeleteRepositoryCommand = async (output, context) => {
|
|
368
|
-
if (output.statusCode >= 300) {
|
|
369
|
-
return de_DeleteRepositoryCommandError(output, context);
|
|
370
|
-
}
|
|
371
|
-
const data = await parseBody(output.body, context);
|
|
372
|
-
let contents = {};
|
|
373
|
-
contents = de_DeleteRepositoryResponse(data, context);
|
|
374
|
-
const response = {
|
|
375
|
-
$metadata: deserializeMetadata(output),
|
|
376
|
-
...contents,
|
|
377
|
-
};
|
|
378
|
-
return response;
|
|
379
|
-
};
|
|
380
|
-
exports.de_DeleteRepositoryCommand = de_DeleteRepositoryCommand;
|
|
381
|
-
const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
382
|
-
const parsedOutput = {
|
|
383
|
-
...output,
|
|
384
|
-
body: await parseErrorBody(output.body, context),
|
|
385
|
-
};
|
|
386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
387
|
-
switch (errorCode) {
|
|
388
|
-
case "InvalidParameterException":
|
|
389
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
390
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
391
|
-
case "RepositoryNotEmptyException":
|
|
392
|
-
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException":
|
|
393
|
-
throw await de_RepositoryNotEmptyExceptionRes(parsedOutput, context);
|
|
394
|
-
case "RepositoryNotFoundException":
|
|
395
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
396
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
397
|
-
case "ServerException":
|
|
398
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
399
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
400
|
-
case "UnsupportedCommandException":
|
|
401
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
402
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
403
|
-
default:
|
|
404
|
-
const parsedBody = parsedOutput.body;
|
|
405
|
-
return throwDefaultError({
|
|
406
|
-
output,
|
|
407
|
-
parsedBody,
|
|
408
|
-
errorCode,
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
const de_DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
413
|
-
if (output.statusCode >= 300) {
|
|
414
|
-
return de_DeleteRepositoryPolicyCommandError(output, context);
|
|
415
|
-
}
|
|
416
|
-
const data = await parseBody(output.body, context);
|
|
417
|
-
let contents = {};
|
|
418
|
-
contents = (0, smithy_client_1._json)(data);
|
|
419
|
-
const response = {
|
|
420
|
-
$metadata: deserializeMetadata(output),
|
|
421
|
-
...contents,
|
|
422
|
-
};
|
|
423
|
-
return response;
|
|
424
|
-
};
|
|
425
|
-
exports.de_DeleteRepositoryPolicyCommand = de_DeleteRepositoryPolicyCommand;
|
|
426
|
-
const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
|
|
427
|
-
const parsedOutput = {
|
|
428
|
-
...output,
|
|
429
|
-
body: await parseErrorBody(output.body, context),
|
|
430
|
-
};
|
|
431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
432
|
-
switch (errorCode) {
|
|
433
|
-
case "InvalidParameterException":
|
|
434
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
435
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
436
|
-
case "RepositoryNotFoundException":
|
|
437
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
438
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
439
|
-
case "RepositoryPolicyNotFoundException":
|
|
440
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
441
|
-
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
442
|
-
case "ServerException":
|
|
443
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
444
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
445
|
-
case "UnsupportedCommandException":
|
|
446
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
447
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
448
|
-
default:
|
|
449
|
-
const parsedBody = parsedOutput.body;
|
|
450
|
-
return throwDefaultError({
|
|
451
|
-
output,
|
|
452
|
-
parsedBody,
|
|
453
|
-
errorCode,
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
const de_DescribeImagesCommand = async (output, context) => {
|
|
458
|
-
if (output.statusCode >= 300) {
|
|
459
|
-
return de_DescribeImagesCommandError(output, context);
|
|
460
|
-
}
|
|
461
|
-
const data = await parseBody(output.body, context);
|
|
462
|
-
let contents = {};
|
|
463
|
-
contents = de_DescribeImagesResponse(data, context);
|
|
464
|
-
const response = {
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
...contents,
|
|
467
|
-
};
|
|
468
|
-
return response;
|
|
469
|
-
};
|
|
470
|
-
exports.de_DescribeImagesCommand = de_DescribeImagesCommand;
|
|
471
|
-
const de_DescribeImagesCommandError = async (output, context) => {
|
|
472
|
-
const parsedOutput = {
|
|
473
|
-
...output,
|
|
474
|
-
body: await parseErrorBody(output.body, context),
|
|
475
|
-
};
|
|
476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
477
|
-
switch (errorCode) {
|
|
478
|
-
case "ImageNotFoundException":
|
|
479
|
-
case "com.amazonaws.ecrpublic#ImageNotFoundException":
|
|
480
|
-
throw await de_ImageNotFoundExceptionRes(parsedOutput, context);
|
|
481
|
-
case "InvalidParameterException":
|
|
482
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
483
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
484
|
-
case "RepositoryNotFoundException":
|
|
485
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
486
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
487
|
-
case "ServerException":
|
|
488
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
489
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
490
|
-
case "UnsupportedCommandException":
|
|
491
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
492
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
493
|
-
default:
|
|
494
|
-
const parsedBody = parsedOutput.body;
|
|
495
|
-
return throwDefaultError({
|
|
496
|
-
output,
|
|
497
|
-
parsedBody,
|
|
498
|
-
errorCode,
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
};
|
|
502
|
-
const de_DescribeImageTagsCommand = async (output, context) => {
|
|
503
|
-
if (output.statusCode >= 300) {
|
|
504
|
-
return de_DescribeImageTagsCommandError(output, context);
|
|
505
|
-
}
|
|
506
|
-
const data = await parseBody(output.body, context);
|
|
507
|
-
let contents = {};
|
|
508
|
-
contents = de_DescribeImageTagsResponse(data, context);
|
|
509
|
-
const response = {
|
|
510
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
-
...contents,
|
|
512
|
-
};
|
|
513
|
-
return response;
|
|
514
|
-
};
|
|
515
|
-
exports.de_DescribeImageTagsCommand = de_DescribeImageTagsCommand;
|
|
516
|
-
const de_DescribeImageTagsCommandError = async (output, context) => {
|
|
517
|
-
const parsedOutput = {
|
|
518
|
-
...output,
|
|
519
|
-
body: await parseErrorBody(output.body, context),
|
|
520
|
-
};
|
|
521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
522
|
-
switch (errorCode) {
|
|
523
|
-
case "InvalidParameterException":
|
|
524
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
525
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
526
|
-
case "RepositoryNotFoundException":
|
|
527
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
528
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
529
|
-
case "ServerException":
|
|
530
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
531
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
532
|
-
case "UnsupportedCommandException":
|
|
533
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
534
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
535
|
-
default:
|
|
536
|
-
const parsedBody = parsedOutput.body;
|
|
537
|
-
return throwDefaultError({
|
|
538
|
-
output,
|
|
539
|
-
parsedBody,
|
|
540
|
-
errorCode,
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
};
|
|
544
|
-
const de_DescribeRegistriesCommand = async (output, context) => {
|
|
545
|
-
if (output.statusCode >= 300) {
|
|
546
|
-
return de_DescribeRegistriesCommandError(output, context);
|
|
547
|
-
}
|
|
548
|
-
const data = await parseBody(output.body, context);
|
|
549
|
-
let contents = {};
|
|
550
|
-
contents = (0, smithy_client_1._json)(data);
|
|
551
|
-
const response = {
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
...contents,
|
|
554
|
-
};
|
|
555
|
-
return response;
|
|
556
|
-
};
|
|
557
|
-
exports.de_DescribeRegistriesCommand = de_DescribeRegistriesCommand;
|
|
558
|
-
const de_DescribeRegistriesCommandError = async (output, context) => {
|
|
559
|
-
const parsedOutput = {
|
|
560
|
-
...output,
|
|
561
|
-
body: await parseErrorBody(output.body, context),
|
|
562
|
-
};
|
|
563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
-
switch (errorCode) {
|
|
565
|
-
case "InvalidParameterException":
|
|
566
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
567
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
568
|
-
case "ServerException":
|
|
569
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
570
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
571
|
-
case "UnsupportedCommandException":
|
|
572
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
573
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
574
|
-
default:
|
|
575
|
-
const parsedBody = parsedOutput.body;
|
|
576
|
-
return throwDefaultError({
|
|
577
|
-
output,
|
|
578
|
-
parsedBody,
|
|
579
|
-
errorCode,
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
const de_DescribeRepositoriesCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode >= 300) {
|
|
585
|
-
return de_DescribeRepositoriesCommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const data = await parseBody(output.body, context);
|
|
588
|
-
let contents = {};
|
|
589
|
-
contents = de_DescribeRepositoriesResponse(data, context);
|
|
590
|
-
const response = {
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
...contents,
|
|
593
|
-
};
|
|
594
|
-
return response;
|
|
595
|
-
};
|
|
596
|
-
exports.de_DescribeRepositoriesCommand = de_DescribeRepositoriesCommand;
|
|
597
|
-
const de_DescribeRepositoriesCommandError = async (output, context) => {
|
|
598
|
-
const parsedOutput = {
|
|
599
|
-
...output,
|
|
600
|
-
body: await parseErrorBody(output.body, context),
|
|
601
|
-
};
|
|
602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
-
switch (errorCode) {
|
|
604
|
-
case "InvalidParameterException":
|
|
605
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
606
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
607
|
-
case "RepositoryNotFoundException":
|
|
608
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
609
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ServerException":
|
|
611
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
612
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
613
|
-
case "UnsupportedCommandException":
|
|
614
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
615
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
616
|
-
default:
|
|
617
|
-
const parsedBody = parsedOutput.body;
|
|
618
|
-
return throwDefaultError({
|
|
619
|
-
output,
|
|
620
|
-
parsedBody,
|
|
621
|
-
errorCode,
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
};
|
|
625
|
-
const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
626
|
-
if (output.statusCode >= 300) {
|
|
627
|
-
return de_GetAuthorizationTokenCommandError(output, context);
|
|
628
|
-
}
|
|
629
|
-
const data = await parseBody(output.body, context);
|
|
630
|
-
let contents = {};
|
|
631
|
-
contents = de_GetAuthorizationTokenResponse(data, context);
|
|
632
|
-
const response = {
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
...contents,
|
|
635
|
-
};
|
|
636
|
-
return response;
|
|
637
|
-
};
|
|
638
|
-
exports.de_GetAuthorizationTokenCommand = de_GetAuthorizationTokenCommand;
|
|
639
|
-
const de_GetAuthorizationTokenCommandError = async (output, context) => {
|
|
640
|
-
const parsedOutput = {
|
|
641
|
-
...output,
|
|
642
|
-
body: await parseErrorBody(output.body, context),
|
|
643
|
-
};
|
|
644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
|
-
switch (errorCode) {
|
|
646
|
-
case "InvalidParameterException":
|
|
647
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
648
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
649
|
-
case "ServerException":
|
|
650
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
651
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
652
|
-
case "UnsupportedCommandException":
|
|
653
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
654
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
655
|
-
default:
|
|
656
|
-
const parsedBody = parsedOutput.body;
|
|
657
|
-
return throwDefaultError({
|
|
658
|
-
output,
|
|
659
|
-
parsedBody,
|
|
660
|
-
errorCode,
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
const de_GetRegistryCatalogDataCommand = async (output, context) => {
|
|
665
|
-
if (output.statusCode >= 300) {
|
|
666
|
-
return de_GetRegistryCatalogDataCommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const data = await parseBody(output.body, context);
|
|
669
|
-
let contents = {};
|
|
670
|
-
contents = (0, smithy_client_1._json)(data);
|
|
671
|
-
const response = {
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
...contents,
|
|
674
|
-
};
|
|
675
|
-
return response;
|
|
676
|
-
};
|
|
677
|
-
exports.de_GetRegistryCatalogDataCommand = de_GetRegistryCatalogDataCommand;
|
|
678
|
-
const de_GetRegistryCatalogDataCommandError = async (output, context) => {
|
|
679
|
-
const parsedOutput = {
|
|
680
|
-
...output,
|
|
681
|
-
body: await parseErrorBody(output.body, context),
|
|
682
|
-
};
|
|
683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
|
-
switch (errorCode) {
|
|
685
|
-
case "ServerException":
|
|
686
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
687
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
688
|
-
case "UnsupportedCommandException":
|
|
689
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
690
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
691
|
-
default:
|
|
692
|
-
const parsedBody = parsedOutput.body;
|
|
693
|
-
return throwDefaultError({
|
|
694
|
-
output,
|
|
695
|
-
parsedBody,
|
|
696
|
-
errorCode,
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
const de_GetRepositoryCatalogDataCommand = async (output, context) => {
|
|
701
|
-
if (output.statusCode >= 300) {
|
|
702
|
-
return de_GetRepositoryCatalogDataCommandError(output, context);
|
|
703
|
-
}
|
|
704
|
-
const data = await parseBody(output.body, context);
|
|
705
|
-
let contents = {};
|
|
706
|
-
contents = (0, smithy_client_1._json)(data);
|
|
707
|
-
const response = {
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
...contents,
|
|
710
|
-
};
|
|
711
|
-
return response;
|
|
712
|
-
};
|
|
713
|
-
exports.de_GetRepositoryCatalogDataCommand = de_GetRepositoryCatalogDataCommand;
|
|
714
|
-
const de_GetRepositoryCatalogDataCommandError = async (output, context) => {
|
|
715
|
-
const parsedOutput = {
|
|
716
|
-
...output,
|
|
717
|
-
body: await parseErrorBody(output.body, context),
|
|
718
|
-
};
|
|
719
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
|
-
switch (errorCode) {
|
|
721
|
-
case "InvalidParameterException":
|
|
722
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
723
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
724
|
-
case "RepositoryCatalogDataNotFoundException":
|
|
725
|
-
case "com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException":
|
|
726
|
-
throw await de_RepositoryCatalogDataNotFoundExceptionRes(parsedOutput, context);
|
|
727
|
-
case "RepositoryNotFoundException":
|
|
728
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
729
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
730
|
-
case "ServerException":
|
|
731
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
732
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
733
|
-
case "UnsupportedCommandException":
|
|
734
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
735
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
736
|
-
default:
|
|
737
|
-
const parsedBody = parsedOutput.body;
|
|
738
|
-
return throwDefaultError({
|
|
739
|
-
output,
|
|
740
|
-
parsedBody,
|
|
741
|
-
errorCode,
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
};
|
|
745
|
-
const de_GetRepositoryPolicyCommand = async (output, context) => {
|
|
746
|
-
if (output.statusCode >= 300) {
|
|
747
|
-
return de_GetRepositoryPolicyCommandError(output, context);
|
|
748
|
-
}
|
|
749
|
-
const data = await parseBody(output.body, context);
|
|
750
|
-
let contents = {};
|
|
751
|
-
contents = (0, smithy_client_1._json)(data);
|
|
752
|
-
const response = {
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
...contents,
|
|
755
|
-
};
|
|
756
|
-
return response;
|
|
757
|
-
};
|
|
758
|
-
exports.de_GetRepositoryPolicyCommand = de_GetRepositoryPolicyCommand;
|
|
759
|
-
const de_GetRepositoryPolicyCommandError = async (output, context) => {
|
|
760
|
-
const parsedOutput = {
|
|
761
|
-
...output,
|
|
762
|
-
body: await parseErrorBody(output.body, context),
|
|
763
|
-
};
|
|
764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
-
switch (errorCode) {
|
|
766
|
-
case "InvalidParameterException":
|
|
767
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
768
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
769
|
-
case "RepositoryNotFoundException":
|
|
770
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
771
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
772
|
-
case "RepositoryPolicyNotFoundException":
|
|
773
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
774
|
-
throw await de_RepositoryPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
775
|
-
case "ServerException":
|
|
776
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
777
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
778
|
-
case "UnsupportedCommandException":
|
|
779
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
780
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode,
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
const de_InitiateLayerUploadCommand = async (output, context) => {
|
|
791
|
-
if (output.statusCode >= 300) {
|
|
792
|
-
return de_InitiateLayerUploadCommandError(output, context);
|
|
793
|
-
}
|
|
794
|
-
const data = await parseBody(output.body, context);
|
|
795
|
-
let contents = {};
|
|
796
|
-
contents = (0, smithy_client_1._json)(data);
|
|
797
|
-
const response = {
|
|
798
|
-
$metadata: deserializeMetadata(output),
|
|
799
|
-
...contents,
|
|
800
|
-
};
|
|
801
|
-
return response;
|
|
802
|
-
};
|
|
803
|
-
exports.de_InitiateLayerUploadCommand = de_InitiateLayerUploadCommand;
|
|
804
|
-
const de_InitiateLayerUploadCommandError = async (output, context) => {
|
|
805
|
-
const parsedOutput = {
|
|
806
|
-
...output,
|
|
807
|
-
body: await parseErrorBody(output.body, context),
|
|
808
|
-
};
|
|
809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
-
switch (errorCode) {
|
|
811
|
-
case "InvalidParameterException":
|
|
812
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
813
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
814
|
-
case "RegistryNotFoundException":
|
|
815
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
816
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
817
|
-
case "RepositoryNotFoundException":
|
|
818
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
819
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ServerException":
|
|
821
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
822
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
823
|
-
case "UnsupportedCommandException":
|
|
824
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
825
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
836
|
-
if (output.statusCode >= 300) {
|
|
837
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
838
|
-
}
|
|
839
|
-
const data = await parseBody(output.body, context);
|
|
840
|
-
let contents = {};
|
|
841
|
-
contents = (0, smithy_client_1._json)(data);
|
|
842
|
-
const response = {
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
...contents,
|
|
845
|
-
};
|
|
846
|
-
return response;
|
|
847
|
-
};
|
|
848
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
849
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
850
|
-
const parsedOutput = {
|
|
851
|
-
...output,
|
|
852
|
-
body: await parseErrorBody(output.body, context),
|
|
853
|
-
};
|
|
854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
-
switch (errorCode) {
|
|
856
|
-
case "InvalidParameterException":
|
|
857
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
858
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
859
|
-
case "RepositoryNotFoundException":
|
|
860
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
861
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
862
|
-
case "ServerException":
|
|
863
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
864
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
865
|
-
case "UnsupportedCommandException":
|
|
866
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
867
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
868
|
-
default:
|
|
869
|
-
const parsedBody = parsedOutput.body;
|
|
870
|
-
return throwDefaultError({
|
|
871
|
-
output,
|
|
872
|
-
parsedBody,
|
|
873
|
-
errorCode,
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
};
|
|
877
|
-
const de_PutImageCommand = async (output, context) => {
|
|
878
|
-
if (output.statusCode >= 300) {
|
|
879
|
-
return de_PutImageCommandError(output, context);
|
|
880
|
-
}
|
|
881
|
-
const data = await parseBody(output.body, context);
|
|
882
|
-
let contents = {};
|
|
883
|
-
contents = (0, smithy_client_1._json)(data);
|
|
884
|
-
const response = {
|
|
885
|
-
$metadata: deserializeMetadata(output),
|
|
886
|
-
...contents,
|
|
887
|
-
};
|
|
888
|
-
return response;
|
|
889
|
-
};
|
|
890
|
-
exports.de_PutImageCommand = de_PutImageCommand;
|
|
891
|
-
const de_PutImageCommandError = async (output, context) => {
|
|
892
|
-
const parsedOutput = {
|
|
893
|
-
...output,
|
|
894
|
-
body: await parseErrorBody(output.body, context),
|
|
895
|
-
};
|
|
896
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
-
switch (errorCode) {
|
|
898
|
-
case "ImageAlreadyExistsException":
|
|
899
|
-
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException":
|
|
900
|
-
throw await de_ImageAlreadyExistsExceptionRes(parsedOutput, context);
|
|
901
|
-
case "ImageDigestDoesNotMatchException":
|
|
902
|
-
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":
|
|
903
|
-
throw await de_ImageDigestDoesNotMatchExceptionRes(parsedOutput, context);
|
|
904
|
-
case "ImageTagAlreadyExistsException":
|
|
905
|
-
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":
|
|
906
|
-
throw await de_ImageTagAlreadyExistsExceptionRes(parsedOutput, context);
|
|
907
|
-
case "InvalidParameterException":
|
|
908
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
909
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
910
|
-
case "LayersNotFoundException":
|
|
911
|
-
case "com.amazonaws.ecrpublic#LayersNotFoundException":
|
|
912
|
-
throw await de_LayersNotFoundExceptionRes(parsedOutput, context);
|
|
913
|
-
case "LimitExceededException":
|
|
914
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
915
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ReferencedImagesNotFoundException":
|
|
917
|
-
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":
|
|
918
|
-
throw await de_ReferencedImagesNotFoundExceptionRes(parsedOutput, context);
|
|
919
|
-
case "RegistryNotFoundException":
|
|
920
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
921
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
922
|
-
case "RepositoryNotFoundException":
|
|
923
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
924
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ServerException":
|
|
926
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
927
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
928
|
-
case "UnsupportedCommandException":
|
|
929
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
930
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
931
|
-
default:
|
|
932
|
-
const parsedBody = parsedOutput.body;
|
|
933
|
-
return throwDefaultError({
|
|
934
|
-
output,
|
|
935
|
-
parsedBody,
|
|
936
|
-
errorCode,
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
|
-
const de_PutRegistryCatalogDataCommand = async (output, context) => {
|
|
941
|
-
if (output.statusCode >= 300) {
|
|
942
|
-
return de_PutRegistryCatalogDataCommandError(output, context);
|
|
943
|
-
}
|
|
944
|
-
const data = await parseBody(output.body, context);
|
|
945
|
-
let contents = {};
|
|
946
|
-
contents = (0, smithy_client_1._json)(data);
|
|
947
|
-
const response = {
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
...contents,
|
|
950
|
-
};
|
|
951
|
-
return response;
|
|
952
|
-
};
|
|
953
|
-
exports.de_PutRegistryCatalogDataCommand = de_PutRegistryCatalogDataCommand;
|
|
954
|
-
const de_PutRegistryCatalogDataCommandError = async (output, context) => {
|
|
955
|
-
const parsedOutput = {
|
|
956
|
-
...output,
|
|
957
|
-
body: await parseErrorBody(output.body, context),
|
|
958
|
-
};
|
|
959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
|
-
switch (errorCode) {
|
|
961
|
-
case "InvalidParameterException":
|
|
962
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
963
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ServerException":
|
|
965
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
966
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
967
|
-
case "UnsupportedCommandException":
|
|
968
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
969
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
970
|
-
default:
|
|
971
|
-
const parsedBody = parsedOutput.body;
|
|
972
|
-
return throwDefaultError({
|
|
973
|
-
output,
|
|
974
|
-
parsedBody,
|
|
975
|
-
errorCode,
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
};
|
|
979
|
-
const de_PutRepositoryCatalogDataCommand = async (output, context) => {
|
|
980
|
-
if (output.statusCode >= 300) {
|
|
981
|
-
return de_PutRepositoryCatalogDataCommandError(output, context);
|
|
982
|
-
}
|
|
983
|
-
const data = await parseBody(output.body, context);
|
|
984
|
-
let contents = {};
|
|
985
|
-
contents = (0, smithy_client_1._json)(data);
|
|
986
|
-
const response = {
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
...contents,
|
|
989
|
-
};
|
|
990
|
-
return response;
|
|
991
|
-
};
|
|
992
|
-
exports.de_PutRepositoryCatalogDataCommand = de_PutRepositoryCatalogDataCommand;
|
|
993
|
-
const de_PutRepositoryCatalogDataCommandError = async (output, context) => {
|
|
994
|
-
const parsedOutput = {
|
|
995
|
-
...output,
|
|
996
|
-
body: await parseErrorBody(output.body, context),
|
|
997
|
-
};
|
|
998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
-
switch (errorCode) {
|
|
1000
|
-
case "InvalidParameterException":
|
|
1001
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1002
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "RepositoryNotFoundException":
|
|
1004
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1005
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ServerException":
|
|
1007
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1008
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "UnsupportedCommandException":
|
|
1010
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1011
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1012
|
-
default:
|
|
1013
|
-
const parsedBody = parsedOutput.body;
|
|
1014
|
-
return throwDefaultError({
|
|
1015
|
-
output,
|
|
1016
|
-
parsedBody,
|
|
1017
|
-
errorCode,
|
|
1018
|
-
});
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
const de_SetRepositoryPolicyCommand = async (output, context) => {
|
|
1022
|
-
if (output.statusCode >= 300) {
|
|
1023
|
-
return de_SetRepositoryPolicyCommandError(output, context);
|
|
1024
|
-
}
|
|
1025
|
-
const data = await parseBody(output.body, context);
|
|
1026
|
-
let contents = {};
|
|
1027
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1028
|
-
const response = {
|
|
1029
|
-
$metadata: deserializeMetadata(output),
|
|
1030
|
-
...contents,
|
|
1031
|
-
};
|
|
1032
|
-
return response;
|
|
1033
|
-
};
|
|
1034
|
-
exports.de_SetRepositoryPolicyCommand = de_SetRepositoryPolicyCommand;
|
|
1035
|
-
const de_SetRepositoryPolicyCommandError = async (output, context) => {
|
|
1036
|
-
const parsedOutput = {
|
|
1037
|
-
...output,
|
|
1038
|
-
body: await parseErrorBody(output.body, context),
|
|
1039
|
-
};
|
|
1040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
-
switch (errorCode) {
|
|
1042
|
-
case "InvalidParameterException":
|
|
1043
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1044
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "RepositoryNotFoundException":
|
|
1046
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1047
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1048
|
-
case "ServerException":
|
|
1049
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1050
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1051
|
-
case "UnsupportedCommandException":
|
|
1052
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1053
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1054
|
-
default:
|
|
1055
|
-
const parsedBody = parsedOutput.body;
|
|
1056
|
-
return throwDefaultError({
|
|
1057
|
-
output,
|
|
1058
|
-
parsedBody,
|
|
1059
|
-
errorCode,
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
};
|
|
1063
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1064
|
-
if (output.statusCode >= 300) {
|
|
1065
|
-
return de_TagResourceCommandError(output, context);
|
|
1066
|
-
}
|
|
1067
|
-
const data = await parseBody(output.body, context);
|
|
1068
|
-
let contents = {};
|
|
1069
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1070
|
-
const response = {
|
|
1071
|
-
$metadata: deserializeMetadata(output),
|
|
1072
|
-
...contents,
|
|
1073
|
-
};
|
|
1074
|
-
return response;
|
|
1075
|
-
};
|
|
1076
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1077
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1078
|
-
const parsedOutput = {
|
|
1079
|
-
...output,
|
|
1080
|
-
body: await parseErrorBody(output.body, context),
|
|
1081
|
-
};
|
|
1082
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1083
|
-
switch (errorCode) {
|
|
1084
|
-
case "InvalidParameterException":
|
|
1085
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1086
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "InvalidTagParameterException":
|
|
1088
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1089
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "RepositoryNotFoundException":
|
|
1091
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1092
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ServerException":
|
|
1094
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1095
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1096
|
-
case "TooManyTagsException":
|
|
1097
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1098
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "UnsupportedCommandException":
|
|
1100
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1101
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1102
|
-
default:
|
|
1103
|
-
const parsedBody = parsedOutput.body;
|
|
1104
|
-
return throwDefaultError({
|
|
1105
|
-
output,
|
|
1106
|
-
parsedBody,
|
|
1107
|
-
errorCode,
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1112
|
-
if (output.statusCode >= 300) {
|
|
1113
|
-
return de_UntagResourceCommandError(output, context);
|
|
1114
|
-
}
|
|
1115
|
-
const data = await parseBody(output.body, context);
|
|
1116
|
-
let contents = {};
|
|
1117
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1118
|
-
const response = {
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
...contents,
|
|
1121
|
-
};
|
|
1122
|
-
return response;
|
|
1123
|
-
};
|
|
1124
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1125
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1126
|
-
const parsedOutput = {
|
|
1127
|
-
...output,
|
|
1128
|
-
body: await parseErrorBody(output.body, context),
|
|
1129
|
-
};
|
|
1130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
-
switch (errorCode) {
|
|
1132
|
-
case "InvalidParameterException":
|
|
1133
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1134
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "InvalidTagParameterException":
|
|
1136
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
1137
|
-
throw await de_InvalidTagParameterExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "RepositoryNotFoundException":
|
|
1139
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1140
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "ServerException":
|
|
1142
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1143
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "TooManyTagsException":
|
|
1145
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
1146
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "UnsupportedCommandException":
|
|
1148
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1149
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1150
|
-
default:
|
|
1151
|
-
const parsedBody = parsedOutput.body;
|
|
1152
|
-
return throwDefaultError({
|
|
1153
|
-
output,
|
|
1154
|
-
parsedBody,
|
|
1155
|
-
errorCode,
|
|
1156
|
-
});
|
|
1157
|
-
}
|
|
1158
|
-
};
|
|
1159
|
-
const de_UploadLayerPartCommand = async (output, context) => {
|
|
1160
|
-
if (output.statusCode >= 300) {
|
|
1161
|
-
return de_UploadLayerPartCommandError(output, context);
|
|
1162
|
-
}
|
|
1163
|
-
const data = await parseBody(output.body, context);
|
|
1164
|
-
let contents = {};
|
|
1165
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1166
|
-
const response = {
|
|
1167
|
-
$metadata: deserializeMetadata(output),
|
|
1168
|
-
...contents,
|
|
1169
|
-
};
|
|
1170
|
-
return response;
|
|
1171
|
-
};
|
|
1172
|
-
exports.de_UploadLayerPartCommand = de_UploadLayerPartCommand;
|
|
1173
|
-
const de_UploadLayerPartCommandError = async (output, context) => {
|
|
1174
|
-
const parsedOutput = {
|
|
1175
|
-
...output,
|
|
1176
|
-
body: await parseErrorBody(output.body, context),
|
|
1177
|
-
};
|
|
1178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
-
switch (errorCode) {
|
|
1180
|
-
case "InvalidLayerPartException":
|
|
1181
|
-
case "com.amazonaws.ecrpublic#InvalidLayerPartException":
|
|
1182
|
-
throw await de_InvalidLayerPartExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "InvalidParameterException":
|
|
1184
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1185
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "LimitExceededException":
|
|
1187
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1188
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1189
|
-
case "RegistryNotFoundException":
|
|
1190
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1191
|
-
throw await de_RegistryNotFoundExceptionRes(parsedOutput, context);
|
|
1192
|
-
case "RepositoryNotFoundException":
|
|
1193
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1194
|
-
throw await de_RepositoryNotFoundExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "ServerException":
|
|
1196
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1197
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "UnsupportedCommandException":
|
|
1199
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1200
|
-
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "UploadNotFoundException":
|
|
1202
|
-
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
1203
|
-
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
1204
|
-
default:
|
|
1205
|
-
const parsedBody = parsedOutput.body;
|
|
1206
|
-
return throwDefaultError({
|
|
1207
|
-
output,
|
|
1208
|
-
parsedBody,
|
|
1209
|
-
errorCode,
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
};
|
|
1213
|
-
const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
|
|
1214
|
-
const body = parsedOutput.body;
|
|
1215
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1216
|
-
const exception = new models_0_1.EmptyUploadException({
|
|
1217
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1218
|
-
...deserialized,
|
|
1219
|
-
});
|
|
1220
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1221
|
-
};
|
|
1222
|
-
const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1223
|
-
const body = parsedOutput.body;
|
|
1224
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1225
|
-
const exception = new models_0_1.ImageAlreadyExistsException({
|
|
1226
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1227
|
-
...deserialized,
|
|
1228
|
-
});
|
|
1229
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1230
|
-
};
|
|
1231
|
-
const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) => {
|
|
1232
|
-
const body = parsedOutput.body;
|
|
1233
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1234
|
-
const exception = new models_0_1.ImageDigestDoesNotMatchException({
|
|
1235
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1236
|
-
...deserialized,
|
|
1237
|
-
});
|
|
1238
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1239
|
-
};
|
|
1240
|
-
const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1241
|
-
const body = parsedOutput.body;
|
|
1242
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1243
|
-
const exception = new models_0_1.ImageNotFoundException({
|
|
1244
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1245
|
-
...deserialized,
|
|
1246
|
-
});
|
|
1247
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1248
|
-
};
|
|
1249
|
-
const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1250
|
-
const body = parsedOutput.body;
|
|
1251
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1252
|
-
const exception = new models_0_1.ImageTagAlreadyExistsException({
|
|
1253
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1254
|
-
...deserialized,
|
|
1255
|
-
});
|
|
1256
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1257
|
-
};
|
|
1258
|
-
const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
|
|
1259
|
-
const body = parsedOutput.body;
|
|
1260
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1261
|
-
const exception = new models_0_1.InvalidLayerException({
|
|
1262
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1263
|
-
...deserialized,
|
|
1264
|
-
});
|
|
1265
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1266
|
-
};
|
|
1267
|
-
const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
|
|
1268
|
-
const body = parsedOutput.body;
|
|
1269
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1270
|
-
const exception = new models_0_1.InvalidLayerPartException({
|
|
1271
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1272
|
-
...deserialized,
|
|
1273
|
-
});
|
|
1274
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1275
|
-
};
|
|
1276
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1277
|
-
const body = parsedOutput.body;
|
|
1278
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1279
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
1280
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1281
|
-
...deserialized,
|
|
1282
|
-
});
|
|
1283
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1284
|
-
};
|
|
1285
|
-
const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
|
|
1286
|
-
const body = parsedOutput.body;
|
|
1287
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1288
|
-
const exception = new models_0_1.InvalidTagParameterException({
|
|
1289
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1290
|
-
...deserialized,
|
|
1291
|
-
});
|
|
1292
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1293
|
-
};
|
|
1294
|
-
const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1295
|
-
const body = parsedOutput.body;
|
|
1296
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1297
|
-
const exception = new models_0_1.LayerAlreadyExistsException({
|
|
1298
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1299
|
-
...deserialized,
|
|
1300
|
-
});
|
|
1301
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1302
|
-
};
|
|
1303
|
-
const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
|
|
1304
|
-
const body = parsedOutput.body;
|
|
1305
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1306
|
-
const exception = new models_0_1.LayerPartTooSmallException({
|
|
1307
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1308
|
-
...deserialized,
|
|
1309
|
-
});
|
|
1310
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1311
|
-
};
|
|
1312
|
-
const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1313
|
-
const body = parsedOutput.body;
|
|
1314
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1315
|
-
const exception = new models_0_1.LayersNotFoundException({
|
|
1316
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1317
|
-
...deserialized,
|
|
1318
|
-
});
|
|
1319
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1320
|
-
};
|
|
1321
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1322
|
-
const body = parsedOutput.body;
|
|
1323
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1324
|
-
const exception = new models_0_1.LimitExceededException({
|
|
1325
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1326
|
-
...deserialized,
|
|
1327
|
-
});
|
|
1328
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1329
|
-
};
|
|
1330
|
-
const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1331
|
-
const body = parsedOutput.body;
|
|
1332
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1333
|
-
const exception = new models_0_1.ReferencedImagesNotFoundException({
|
|
1334
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1335
|
-
...deserialized,
|
|
1336
|
-
});
|
|
1337
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1338
|
-
};
|
|
1339
|
-
const de_RegistryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1340
|
-
const body = parsedOutput.body;
|
|
1341
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1342
|
-
const exception = new models_0_1.RegistryNotFoundException({
|
|
1343
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1344
|
-
...deserialized,
|
|
1345
|
-
});
|
|
1346
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1347
|
-
};
|
|
1348
|
-
const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1349
|
-
const body = parsedOutput.body;
|
|
1350
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1351
|
-
const exception = new models_0_1.RepositoryAlreadyExistsException({
|
|
1352
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1353
|
-
...deserialized,
|
|
1354
|
-
});
|
|
1355
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1356
|
-
};
|
|
1357
|
-
const de_RepositoryCatalogDataNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1358
|
-
const body = parsedOutput.body;
|
|
1359
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1360
|
-
const exception = new models_0_1.RepositoryCatalogDataNotFoundException({
|
|
1361
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1362
|
-
...deserialized,
|
|
1363
|
-
});
|
|
1364
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1365
|
-
};
|
|
1366
|
-
const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
1367
|
-
const body = parsedOutput.body;
|
|
1368
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1369
|
-
const exception = new models_0_1.RepositoryNotEmptyException({
|
|
1370
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1371
|
-
...deserialized,
|
|
1372
|
-
});
|
|
1373
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1374
|
-
};
|
|
1375
|
-
const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1376
|
-
const body = parsedOutput.body;
|
|
1377
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1378
|
-
const exception = new models_0_1.RepositoryNotFoundException({
|
|
1379
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1380
|
-
...deserialized,
|
|
1381
|
-
});
|
|
1382
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1383
|
-
};
|
|
1384
|
-
const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1385
|
-
const body = parsedOutput.body;
|
|
1386
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1387
|
-
const exception = new models_0_1.RepositoryPolicyNotFoundException({
|
|
1388
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1389
|
-
...deserialized,
|
|
1390
|
-
});
|
|
1391
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1392
|
-
};
|
|
1393
|
-
const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
1394
|
-
const body = parsedOutput.body;
|
|
1395
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1396
|
-
const exception = new models_0_1.ServerException({
|
|
1397
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1398
|
-
...deserialized,
|
|
1399
|
-
});
|
|
1400
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1401
|
-
};
|
|
1402
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1403
|
-
const body = parsedOutput.body;
|
|
1404
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1405
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
1406
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1407
|
-
...deserialized,
|
|
1408
|
-
});
|
|
1409
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1410
|
-
};
|
|
1411
|
-
const de_UnsupportedCommandExceptionRes = async (parsedOutput, context) => {
|
|
1412
|
-
const body = parsedOutput.body;
|
|
1413
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1414
|
-
const exception = new models_0_1.UnsupportedCommandException({
|
|
1415
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1416
|
-
...deserialized,
|
|
1417
|
-
});
|
|
1418
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1419
|
-
};
|
|
1420
|
-
const de_UploadNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1421
|
-
const body = parsedOutput.body;
|
|
1422
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1423
|
-
const exception = new models_0_1.UploadNotFoundException({
|
|
1424
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1425
|
-
...deserialized,
|
|
1426
|
-
});
|
|
1427
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1428
|
-
};
|
|
1429
|
-
const se_CreateRepositoryRequest = (input, context) => {
|
|
1430
|
-
return (0, smithy_client_1.take)(input, {
|
|
1431
|
-
catalogData: (_) => se_RepositoryCatalogDataInput(_, context),
|
|
1432
|
-
repositoryName: [],
|
|
1433
|
-
tags: smithy_client_1._json,
|
|
1434
|
-
});
|
|
1435
|
-
};
|
|
1436
|
-
const se_PutRepositoryCatalogDataRequest = (input, context) => {
|
|
1437
|
-
return (0, smithy_client_1.take)(input, {
|
|
1438
|
-
catalogData: (_) => se_RepositoryCatalogDataInput(_, context),
|
|
1439
|
-
registryId: [],
|
|
1440
|
-
repositoryName: [],
|
|
1441
|
-
});
|
|
1442
|
-
};
|
|
1443
|
-
const se_RepositoryCatalogDataInput = (input, context) => {
|
|
1444
|
-
return (0, smithy_client_1.take)(input, {
|
|
1445
|
-
aboutText: [],
|
|
1446
|
-
architectures: smithy_client_1._json,
|
|
1447
|
-
description: [],
|
|
1448
|
-
logoImageBlob: context.base64Encoder,
|
|
1449
|
-
operatingSystems: smithy_client_1._json,
|
|
1450
|
-
usageText: [],
|
|
1451
|
-
});
|
|
1452
|
-
};
|
|
1453
|
-
const se_UploadLayerPartRequest = (input, context) => {
|
|
1454
|
-
return (0, smithy_client_1.take)(input, {
|
|
1455
|
-
layerPartBlob: context.base64Encoder,
|
|
1456
|
-
partFirstByte: [],
|
|
1457
|
-
partLastByte: [],
|
|
1458
|
-
registryId: [],
|
|
1459
|
-
repositoryName: [],
|
|
1460
|
-
uploadId: [],
|
|
1461
|
-
});
|
|
1462
|
-
};
|
|
1463
|
-
const de_AuthorizationData = (output, context) => {
|
|
1464
|
-
return (0, smithy_client_1.take)(output, {
|
|
1465
|
-
authorizationToken: smithy_client_1.expectString,
|
|
1466
|
-
expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1467
|
-
});
|
|
1468
|
-
};
|
|
1469
|
-
const de_CreateRepositoryResponse = (output, context) => {
|
|
1470
|
-
return (0, smithy_client_1.take)(output, {
|
|
1471
|
-
catalogData: smithy_client_1._json,
|
|
1472
|
-
repository: (_) => de_Repository(_, context),
|
|
1473
|
-
});
|
|
1474
|
-
};
|
|
1475
|
-
const de_DeleteRepositoryResponse = (output, context) => {
|
|
1476
|
-
return (0, smithy_client_1.take)(output, {
|
|
1477
|
-
repository: (_) => de_Repository(_, context),
|
|
1478
|
-
});
|
|
1479
|
-
};
|
|
1480
|
-
const de_DescribeImagesResponse = (output, context) => {
|
|
1481
|
-
return (0, smithy_client_1.take)(output, {
|
|
1482
|
-
imageDetails: (_) => de_ImageDetailList(_, context),
|
|
1483
|
-
nextToken: smithy_client_1.expectString,
|
|
1484
|
-
});
|
|
1485
|
-
};
|
|
1486
|
-
const de_DescribeImageTagsResponse = (output, context) => {
|
|
1487
|
-
return (0, smithy_client_1.take)(output, {
|
|
1488
|
-
imageTagDetails: (_) => de_ImageTagDetailList(_, context),
|
|
1489
|
-
nextToken: smithy_client_1.expectString,
|
|
1490
|
-
});
|
|
1491
|
-
};
|
|
1492
|
-
const de_DescribeRepositoriesResponse = (output, context) => {
|
|
1493
|
-
return (0, smithy_client_1.take)(output, {
|
|
1494
|
-
nextToken: smithy_client_1.expectString,
|
|
1495
|
-
repositories: (_) => de_RepositoryList(_, context),
|
|
1496
|
-
});
|
|
1497
|
-
};
|
|
1498
|
-
const de_GetAuthorizationTokenResponse = (output, context) => {
|
|
1499
|
-
return (0, smithy_client_1.take)(output, {
|
|
1500
|
-
authorizationData: (_) => de_AuthorizationData(_, context),
|
|
1501
|
-
});
|
|
1502
|
-
};
|
|
1503
|
-
const de_ImageDetail = (output, context) => {
|
|
1504
|
-
return (0, smithy_client_1.take)(output, {
|
|
1505
|
-
artifactMediaType: smithy_client_1.expectString,
|
|
1506
|
-
imageDigest: smithy_client_1.expectString,
|
|
1507
|
-
imageManifestMediaType: smithy_client_1.expectString,
|
|
1508
|
-
imagePushedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1509
|
-
imageSizeInBytes: smithy_client_1.expectLong,
|
|
1510
|
-
imageTags: smithy_client_1._json,
|
|
1511
|
-
registryId: smithy_client_1.expectString,
|
|
1512
|
-
repositoryName: smithy_client_1.expectString,
|
|
1513
|
-
});
|
|
1514
|
-
};
|
|
1515
|
-
const de_ImageDetailList = (output, context) => {
|
|
1516
|
-
const retVal = (output || [])
|
|
1517
|
-
.filter((e) => e != null)
|
|
1518
|
-
.map((entry) => {
|
|
1519
|
-
return de_ImageDetail(entry, context);
|
|
1520
|
-
});
|
|
1521
|
-
return retVal;
|
|
1522
|
-
};
|
|
1523
|
-
const de_ImageTagDetail = (output, context) => {
|
|
1524
|
-
return (0, smithy_client_1.take)(output, {
|
|
1525
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1526
|
-
imageDetail: (_) => de_ReferencedImageDetail(_, context),
|
|
1527
|
-
imageTag: smithy_client_1.expectString,
|
|
1528
|
-
});
|
|
1529
|
-
};
|
|
1530
|
-
const de_ImageTagDetailList = (output, context) => {
|
|
1531
|
-
const retVal = (output || [])
|
|
1532
|
-
.filter((e) => e != null)
|
|
1533
|
-
.map((entry) => {
|
|
1534
|
-
return de_ImageTagDetail(entry, context);
|
|
1535
|
-
});
|
|
1536
|
-
return retVal;
|
|
1537
|
-
};
|
|
1538
|
-
const de_ReferencedImageDetail = (output, context) => {
|
|
1539
|
-
return (0, smithy_client_1.take)(output, {
|
|
1540
|
-
artifactMediaType: smithy_client_1.expectString,
|
|
1541
|
-
imageDigest: smithy_client_1.expectString,
|
|
1542
|
-
imageManifestMediaType: smithy_client_1.expectString,
|
|
1543
|
-
imagePushedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1544
|
-
imageSizeInBytes: smithy_client_1.expectLong,
|
|
1545
|
-
});
|
|
1546
|
-
};
|
|
1547
|
-
const de_Repository = (output, context) => {
|
|
1548
|
-
return (0, smithy_client_1.take)(output, {
|
|
1549
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1550
|
-
registryId: smithy_client_1.expectString,
|
|
1551
|
-
repositoryArn: smithy_client_1.expectString,
|
|
1552
|
-
repositoryName: smithy_client_1.expectString,
|
|
1553
|
-
repositoryUri: smithy_client_1.expectString,
|
|
1554
|
-
});
|
|
1555
|
-
};
|
|
1556
|
-
const de_RepositoryList = (output, context) => {
|
|
1557
|
-
const retVal = (output || [])
|
|
1558
|
-
.filter((e) => e != null)
|
|
1559
|
-
.map((entry) => {
|
|
1560
|
-
return de_Repository(entry, context);
|
|
1561
|
-
});
|
|
1562
|
-
return retVal;
|
|
1563
|
-
};
|
|
1564
|
-
const deserializeMetadata = (output) => ({
|
|
1565
|
-
httpStatusCode: output.statusCode,
|
|
1566
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1567
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1568
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1569
|
-
});
|
|
1570
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1571
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ECRPUBLICServiceException_1.ECRPUBLICServiceException);
|
|
1572
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1573
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1574
|
-
const contents = {
|
|
1575
|
-
protocol,
|
|
1576
|
-
hostname,
|
|
1577
|
-
port,
|
|
1578
|
-
method: "POST",
|
|
1579
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1580
|
-
headers,
|
|
1581
|
-
};
|
|
1582
|
-
if (resolvedHostname !== undefined) {
|
|
1583
|
-
contents.hostname = resolvedHostname;
|
|
1584
|
-
}
|
|
1585
|
-
if (body !== undefined) {
|
|
1586
|
-
contents.body = body;
|
|
1587
|
-
}
|
|
1588
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
1589
|
-
};
|
|
1590
|
-
function sharedHeaders(operation) {
|
|
1591
|
-
return {
|
|
1592
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1593
|
-
"x-amz-target": `SpencerFrontendService.${operation}`,
|
|
1594
|
-
};
|
|
1595
|
-
}
|
|
1596
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1597
|
-
if (encoded.length) {
|
|
1598
|
-
return JSON.parse(encoded);
|
|
1599
|
-
}
|
|
1600
|
-
return {};
|
|
1601
|
-
});
|
|
1602
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1603
|
-
const value = await parseBody(errorBody, context);
|
|
1604
|
-
value.message = value.message ?? value.Message;
|
|
1605
|
-
return value;
|
|
1606
|
-
};
|
|
1607
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1608
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1609
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1610
|
-
let cleanValue = rawValue;
|
|
1611
|
-
if (typeof cleanValue === "number") {
|
|
1612
|
-
cleanValue = cleanValue.toString();
|
|
1613
|
-
}
|
|
1614
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1615
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1616
|
-
}
|
|
1617
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1618
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1619
|
-
}
|
|
1620
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1621
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1622
|
-
}
|
|
1623
|
-
return cleanValue;
|
|
1624
|
-
};
|
|
1625
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1626
|
-
if (headerKey !== undefined) {
|
|
1627
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1628
|
-
}
|
|
1629
|
-
if (data.code !== undefined) {
|
|
1630
|
-
return sanitizeErrorCode(data.code);
|
|
1631
|
-
}
|
|
1632
|
-
if (data["__type"] !== undefined) {
|
|
1633
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1634
|
-
}
|
|
1635
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|