@aws-sdk/client-payment-cryptography 3.504.0 → 3.507.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/index.js +27 -736
- package/dist-es/protocols/Aws_json1_0.js +54 -763
- package/package.json +3 -3
|
@@ -124,7 +124,7 @@ export const se_UpdateAliasCommand = async (input, context) => {
|
|
|
124
124
|
};
|
|
125
125
|
export const de_CreateAliasCommand = async (output, context) => {
|
|
126
126
|
if (output.statusCode >= 300) {
|
|
127
|
-
return
|
|
127
|
+
return de_CommandError(output, context);
|
|
128
128
|
}
|
|
129
129
|
const data = await parseBody(output.body, context);
|
|
130
130
|
let contents = {};
|
|
@@ -135,49 +135,9 @@ export const de_CreateAliasCommand = async (output, context) => {
|
|
|
135
135
|
};
|
|
136
136
|
return response;
|
|
137
137
|
};
|
|
138
|
-
const de_CreateAliasCommandError = async (output, context) => {
|
|
139
|
-
const parsedOutput = {
|
|
140
|
-
...output,
|
|
141
|
-
body: await parseErrorBody(output.body, context),
|
|
142
|
-
};
|
|
143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
144
|
-
switch (errorCode) {
|
|
145
|
-
case "AccessDeniedException":
|
|
146
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
147
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
148
|
-
case "ConflictException":
|
|
149
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
150
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
151
|
-
case "InternalServerException":
|
|
152
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
153
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
154
|
-
case "ResourceNotFoundException":
|
|
155
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
156
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
157
|
-
case "ServiceQuotaExceededException":
|
|
158
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
159
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
160
|
-
case "ServiceUnavailableException":
|
|
161
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
162
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
163
|
-
case "ThrottlingException":
|
|
164
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
165
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
166
|
-
case "ValidationException":
|
|
167
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
168
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
169
|
-
default:
|
|
170
|
-
const parsedBody = parsedOutput.body;
|
|
171
|
-
return throwDefaultError({
|
|
172
|
-
output,
|
|
173
|
-
parsedBody,
|
|
174
|
-
errorCode,
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
138
|
export const de_CreateKeyCommand = async (output, context) => {
|
|
179
139
|
if (output.statusCode >= 300) {
|
|
180
|
-
return
|
|
140
|
+
return de_CommandError(output, context);
|
|
181
141
|
}
|
|
182
142
|
const data = await parseBody(output.body, context);
|
|
183
143
|
let contents = {};
|
|
@@ -188,49 +148,9 @@ export const de_CreateKeyCommand = async (output, context) => {
|
|
|
188
148
|
};
|
|
189
149
|
return response;
|
|
190
150
|
};
|
|
191
|
-
const de_CreateKeyCommandError = async (output, context) => {
|
|
192
|
-
const parsedOutput = {
|
|
193
|
-
...output,
|
|
194
|
-
body: await parseErrorBody(output.body, context),
|
|
195
|
-
};
|
|
196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
197
|
-
switch (errorCode) {
|
|
198
|
-
case "AccessDeniedException":
|
|
199
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
200
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
201
|
-
case "ConflictException":
|
|
202
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
203
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
204
|
-
case "InternalServerException":
|
|
205
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
206
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
207
|
-
case "ResourceNotFoundException":
|
|
208
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
209
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
210
|
-
case "ServiceQuotaExceededException":
|
|
211
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
212
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
213
|
-
case "ServiceUnavailableException":
|
|
214
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
215
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
216
|
-
case "ThrottlingException":
|
|
217
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
218
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
219
|
-
case "ValidationException":
|
|
220
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
222
|
-
default:
|
|
223
|
-
const parsedBody = parsedOutput.body;
|
|
224
|
-
return throwDefaultError({
|
|
225
|
-
output,
|
|
226
|
-
parsedBody,
|
|
227
|
-
errorCode,
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
151
|
export const de_DeleteAliasCommand = async (output, context) => {
|
|
232
152
|
if (output.statusCode >= 300) {
|
|
233
|
-
return
|
|
153
|
+
return de_CommandError(output, context);
|
|
234
154
|
}
|
|
235
155
|
const data = await parseBody(output.body, context);
|
|
236
156
|
let contents = {};
|
|
@@ -241,46 +161,9 @@ export const de_DeleteAliasCommand = async (output, context) => {
|
|
|
241
161
|
};
|
|
242
162
|
return response;
|
|
243
163
|
};
|
|
244
|
-
const de_DeleteAliasCommandError = async (output, context) => {
|
|
245
|
-
const parsedOutput = {
|
|
246
|
-
...output,
|
|
247
|
-
body: await parseErrorBody(output.body, context),
|
|
248
|
-
};
|
|
249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
250
|
-
switch (errorCode) {
|
|
251
|
-
case "AccessDeniedException":
|
|
252
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
253
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
254
|
-
case "ConflictException":
|
|
255
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
256
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
257
|
-
case "InternalServerException":
|
|
258
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
259
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
260
|
-
case "ResourceNotFoundException":
|
|
261
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
262
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
263
|
-
case "ServiceUnavailableException":
|
|
264
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
265
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
266
|
-
case "ThrottlingException":
|
|
267
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
268
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
269
|
-
case "ValidationException":
|
|
270
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
271
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
272
|
-
default:
|
|
273
|
-
const parsedBody = parsedOutput.body;
|
|
274
|
-
return throwDefaultError({
|
|
275
|
-
output,
|
|
276
|
-
parsedBody,
|
|
277
|
-
errorCode,
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
164
|
export const de_DeleteKeyCommand = async (output, context) => {
|
|
282
165
|
if (output.statusCode >= 300) {
|
|
283
|
-
return
|
|
166
|
+
return de_CommandError(output, context);
|
|
284
167
|
}
|
|
285
168
|
const data = await parseBody(output.body, context);
|
|
286
169
|
let contents = {};
|
|
@@ -291,46 +174,9 @@ export const de_DeleteKeyCommand = async (output, context) => {
|
|
|
291
174
|
};
|
|
292
175
|
return response;
|
|
293
176
|
};
|
|
294
|
-
const de_DeleteKeyCommandError = async (output, context) => {
|
|
295
|
-
const parsedOutput = {
|
|
296
|
-
...output,
|
|
297
|
-
body: await parseErrorBody(output.body, context),
|
|
298
|
-
};
|
|
299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
300
|
-
switch (errorCode) {
|
|
301
|
-
case "AccessDeniedException":
|
|
302
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
303
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
304
|
-
case "ConflictException":
|
|
305
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
306
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
307
|
-
case "InternalServerException":
|
|
308
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
309
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
310
|
-
case "ResourceNotFoundException":
|
|
311
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
312
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
313
|
-
case "ServiceUnavailableException":
|
|
314
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
315
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
316
|
-
case "ThrottlingException":
|
|
317
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
318
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
319
|
-
case "ValidationException":
|
|
320
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
321
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
322
|
-
default:
|
|
323
|
-
const parsedBody = parsedOutput.body;
|
|
324
|
-
return throwDefaultError({
|
|
325
|
-
output,
|
|
326
|
-
parsedBody,
|
|
327
|
-
errorCode,
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
177
|
export const de_ExportKeyCommand = async (output, context) => {
|
|
332
178
|
if (output.statusCode >= 300) {
|
|
333
|
-
return
|
|
179
|
+
return de_CommandError(output, context);
|
|
334
180
|
}
|
|
335
181
|
const data = await parseBody(output.body, context);
|
|
336
182
|
let contents = {};
|
|
@@ -341,46 +187,9 @@ export const de_ExportKeyCommand = async (output, context) => {
|
|
|
341
187
|
};
|
|
342
188
|
return response;
|
|
343
189
|
};
|
|
344
|
-
const de_ExportKeyCommandError = async (output, context) => {
|
|
345
|
-
const parsedOutput = {
|
|
346
|
-
...output,
|
|
347
|
-
body: await parseErrorBody(output.body, context),
|
|
348
|
-
};
|
|
349
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
350
|
-
switch (errorCode) {
|
|
351
|
-
case "AccessDeniedException":
|
|
352
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
353
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
354
|
-
case "ConflictException":
|
|
355
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
356
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
357
|
-
case "InternalServerException":
|
|
358
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
359
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
360
|
-
case "ResourceNotFoundException":
|
|
361
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
362
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
363
|
-
case "ServiceUnavailableException":
|
|
364
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
365
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
366
|
-
case "ThrottlingException":
|
|
367
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
368
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
369
|
-
case "ValidationException":
|
|
370
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
371
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
372
|
-
default:
|
|
373
|
-
const parsedBody = parsedOutput.body;
|
|
374
|
-
return throwDefaultError({
|
|
375
|
-
output,
|
|
376
|
-
parsedBody,
|
|
377
|
-
errorCode,
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
};
|
|
381
190
|
export const de_GetAliasCommand = async (output, context) => {
|
|
382
191
|
if (output.statusCode >= 300) {
|
|
383
|
-
return
|
|
192
|
+
return de_CommandError(output, context);
|
|
384
193
|
}
|
|
385
194
|
const data = await parseBody(output.body, context);
|
|
386
195
|
let contents = {};
|
|
@@ -391,43 +200,9 @@ export const de_GetAliasCommand = async (output, context) => {
|
|
|
391
200
|
};
|
|
392
201
|
return response;
|
|
393
202
|
};
|
|
394
|
-
const de_GetAliasCommandError = async (output, context) => {
|
|
395
|
-
const parsedOutput = {
|
|
396
|
-
...output,
|
|
397
|
-
body: await parseErrorBody(output.body, context),
|
|
398
|
-
};
|
|
399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
400
|
-
switch (errorCode) {
|
|
401
|
-
case "AccessDeniedException":
|
|
402
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
403
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
404
|
-
case "InternalServerException":
|
|
405
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
406
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
407
|
-
case "ResourceNotFoundException":
|
|
408
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
409
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
410
|
-
case "ServiceUnavailableException":
|
|
411
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
412
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
413
|
-
case "ThrottlingException":
|
|
414
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
415
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
416
|
-
case "ValidationException":
|
|
417
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
418
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
419
|
-
default:
|
|
420
|
-
const parsedBody = parsedOutput.body;
|
|
421
|
-
return throwDefaultError({
|
|
422
|
-
output,
|
|
423
|
-
parsedBody,
|
|
424
|
-
errorCode,
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
203
|
export const de_GetKeyCommand = async (output, context) => {
|
|
429
204
|
if (output.statusCode >= 300) {
|
|
430
|
-
return
|
|
205
|
+
return de_CommandError(output, context);
|
|
431
206
|
}
|
|
432
207
|
const data = await parseBody(output.body, context);
|
|
433
208
|
let contents = {};
|
|
@@ -438,43 +213,9 @@ export const de_GetKeyCommand = async (output, context) => {
|
|
|
438
213
|
};
|
|
439
214
|
return response;
|
|
440
215
|
};
|
|
441
|
-
const de_GetKeyCommandError = async (output, context) => {
|
|
442
|
-
const parsedOutput = {
|
|
443
|
-
...output,
|
|
444
|
-
body: await parseErrorBody(output.body, context),
|
|
445
|
-
};
|
|
446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
447
|
-
switch (errorCode) {
|
|
448
|
-
case "AccessDeniedException":
|
|
449
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
450
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
451
|
-
case "InternalServerException":
|
|
452
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
453
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
454
|
-
case "ResourceNotFoundException":
|
|
455
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
456
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
457
|
-
case "ServiceUnavailableException":
|
|
458
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
459
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
460
|
-
case "ThrottlingException":
|
|
461
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
462
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
463
|
-
case "ValidationException":
|
|
464
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
465
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
466
|
-
default:
|
|
467
|
-
const parsedBody = parsedOutput.body;
|
|
468
|
-
return throwDefaultError({
|
|
469
|
-
output,
|
|
470
|
-
parsedBody,
|
|
471
|
-
errorCode,
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
216
|
export const de_GetParametersForExportCommand = async (output, context) => {
|
|
476
217
|
if (output.statusCode >= 300) {
|
|
477
|
-
return
|
|
218
|
+
return de_CommandError(output, context);
|
|
478
219
|
}
|
|
479
220
|
const data = await parseBody(output.body, context);
|
|
480
221
|
let contents = {};
|
|
@@ -485,49 +226,9 @@ export const de_GetParametersForExportCommand = async (output, context) => {
|
|
|
485
226
|
};
|
|
486
227
|
return response;
|
|
487
228
|
};
|
|
488
|
-
const de_GetParametersForExportCommandError = async (output, context) => {
|
|
489
|
-
const parsedOutput = {
|
|
490
|
-
...output,
|
|
491
|
-
body: await parseErrorBody(output.body, context),
|
|
492
|
-
};
|
|
493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
494
|
-
switch (errorCode) {
|
|
495
|
-
case "AccessDeniedException":
|
|
496
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
497
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
498
|
-
case "ConflictException":
|
|
499
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
500
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
501
|
-
case "InternalServerException":
|
|
502
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
503
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
504
|
-
case "ResourceNotFoundException":
|
|
505
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
506
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ServiceQuotaExceededException":
|
|
508
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
509
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
510
|
-
case "ServiceUnavailableException":
|
|
511
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
512
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ThrottlingException":
|
|
514
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
515
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
516
|
-
case "ValidationException":
|
|
517
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
518
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
519
|
-
default:
|
|
520
|
-
const parsedBody = parsedOutput.body;
|
|
521
|
-
return throwDefaultError({
|
|
522
|
-
output,
|
|
523
|
-
parsedBody,
|
|
524
|
-
errorCode,
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
229
|
export const de_GetParametersForImportCommand = async (output, context) => {
|
|
529
230
|
if (output.statusCode >= 300) {
|
|
530
|
-
return
|
|
231
|
+
return de_CommandError(output, context);
|
|
531
232
|
}
|
|
532
233
|
const data = await parseBody(output.body, context);
|
|
533
234
|
let contents = {};
|
|
@@ -538,49 +239,9 @@ export const de_GetParametersForImportCommand = async (output, context) => {
|
|
|
538
239
|
};
|
|
539
240
|
return response;
|
|
540
241
|
};
|
|
541
|
-
const de_GetParametersForImportCommandError = async (output, context) => {
|
|
542
|
-
const parsedOutput = {
|
|
543
|
-
...output,
|
|
544
|
-
body: await parseErrorBody(output.body, context),
|
|
545
|
-
};
|
|
546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
-
switch (errorCode) {
|
|
548
|
-
case "AccessDeniedException":
|
|
549
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
550
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
551
|
-
case "ConflictException":
|
|
552
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
553
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
554
|
-
case "InternalServerException":
|
|
555
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
556
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ResourceNotFoundException":
|
|
558
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
559
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ServiceQuotaExceededException":
|
|
561
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
562
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ServiceUnavailableException":
|
|
564
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
565
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ThrottlingException":
|
|
567
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
568
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ValidationException":
|
|
570
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
571
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
572
|
-
default:
|
|
573
|
-
const parsedBody = parsedOutput.body;
|
|
574
|
-
return throwDefaultError({
|
|
575
|
-
output,
|
|
576
|
-
parsedBody,
|
|
577
|
-
errorCode,
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
242
|
export const de_GetPublicKeyCertificateCommand = async (output, context) => {
|
|
582
243
|
if (output.statusCode >= 300) {
|
|
583
|
-
return
|
|
244
|
+
return de_CommandError(output, context);
|
|
584
245
|
}
|
|
585
246
|
const data = await parseBody(output.body, context);
|
|
586
247
|
let contents = {};
|
|
@@ -591,190 +252,22 @@ export const de_GetPublicKeyCertificateCommand = async (output, context) => {
|
|
|
591
252
|
};
|
|
592
253
|
return response;
|
|
593
254
|
};
|
|
594
|
-
const de_GetPublicKeyCertificateCommandError = async (output, context) => {
|
|
595
|
-
const parsedOutput = {
|
|
596
|
-
...output,
|
|
597
|
-
body: await parseErrorBody(output.body, context),
|
|
598
|
-
};
|
|
599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
-
switch (errorCode) {
|
|
601
|
-
case "AccessDeniedException":
|
|
602
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
603
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
604
|
-
case "InternalServerException":
|
|
605
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
606
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
607
|
-
case "ResourceNotFoundException":
|
|
608
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
609
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
610
|
-
case "ServiceUnavailableException":
|
|
611
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
612
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
613
|
-
case "ThrottlingException":
|
|
614
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
615
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
616
|
-
case "ValidationException":
|
|
617
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
619
|
-
default:
|
|
620
|
-
const parsedBody = parsedOutput.body;
|
|
621
|
-
return throwDefaultError({
|
|
622
|
-
output,
|
|
623
|
-
parsedBody,
|
|
624
|
-
errorCode,
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
255
|
export const de_ImportKeyCommand = async (output, context) => {
|
|
629
256
|
if (output.statusCode >= 300) {
|
|
630
|
-
return
|
|
631
|
-
}
|
|
632
|
-
const data = await parseBody(output.body, context);
|
|
633
|
-
let contents = {};
|
|
634
|
-
contents = de_ImportKeyOutput(data, context);
|
|
635
|
-
const response = {
|
|
636
|
-
$metadata: deserializeMetadata(output),
|
|
637
|
-
...contents,
|
|
638
|
-
};
|
|
639
|
-
return response;
|
|
640
|
-
};
|
|
641
|
-
const de_ImportKeyCommandError = async (output, context) => {
|
|
642
|
-
const parsedOutput = {
|
|
643
|
-
...output,
|
|
644
|
-
body: await parseErrorBody(output.body, context),
|
|
645
|
-
};
|
|
646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
|
-
switch (errorCode) {
|
|
648
|
-
case "AccessDeniedException":
|
|
649
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
650
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ConflictException":
|
|
652
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
653
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
654
|
-
case "InternalServerException":
|
|
655
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
656
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ResourceNotFoundException":
|
|
658
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ServiceQuotaExceededException":
|
|
661
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
662
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ServiceUnavailableException":
|
|
664
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
665
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
666
|
-
case "ThrottlingException":
|
|
667
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
668
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ValidationException":
|
|
670
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
671
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
export const de_ListAliasesCommand = async (output, context) => {
|
|
682
|
-
if (output.statusCode >= 300) {
|
|
683
|
-
return de_ListAliasesCommandError(output, context);
|
|
684
|
-
}
|
|
685
|
-
const data = await parseBody(output.body, context);
|
|
686
|
-
let contents = {};
|
|
687
|
-
contents = _json(data);
|
|
688
|
-
const response = {
|
|
689
|
-
$metadata: deserializeMetadata(output),
|
|
690
|
-
...contents,
|
|
691
|
-
};
|
|
692
|
-
return response;
|
|
693
|
-
};
|
|
694
|
-
const de_ListAliasesCommandError = async (output, context) => {
|
|
695
|
-
const parsedOutput = {
|
|
696
|
-
...output,
|
|
697
|
-
body: await parseErrorBody(output.body, context),
|
|
698
|
-
};
|
|
699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
-
switch (errorCode) {
|
|
701
|
-
case "AccessDeniedException":
|
|
702
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
703
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
704
|
-
case "InternalServerException":
|
|
705
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
706
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
707
|
-
case "ResourceNotFoundException":
|
|
708
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
709
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
710
|
-
case "ServiceUnavailableException":
|
|
711
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
712
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
713
|
-
case "ThrottlingException":
|
|
714
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
715
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
716
|
-
case "ValidationException":
|
|
717
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
718
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
719
|
-
default:
|
|
720
|
-
const parsedBody = parsedOutput.body;
|
|
721
|
-
return throwDefaultError({
|
|
722
|
-
output,
|
|
723
|
-
parsedBody,
|
|
724
|
-
errorCode,
|
|
725
|
-
});
|
|
726
|
-
}
|
|
727
|
-
};
|
|
728
|
-
export const de_ListKeysCommand = async (output, context) => {
|
|
729
|
-
if (output.statusCode >= 300) {
|
|
730
|
-
return de_ListKeysCommandError(output, context);
|
|
731
|
-
}
|
|
732
|
-
const data = await parseBody(output.body, context);
|
|
733
|
-
let contents = {};
|
|
734
|
-
contents = _json(data);
|
|
735
|
-
const response = {
|
|
736
|
-
$metadata: deserializeMetadata(output),
|
|
737
|
-
...contents,
|
|
738
|
-
};
|
|
739
|
-
return response;
|
|
740
|
-
};
|
|
741
|
-
const de_ListKeysCommandError = async (output, context) => {
|
|
742
|
-
const parsedOutput = {
|
|
743
|
-
...output,
|
|
744
|
-
body: await parseErrorBody(output.body, context),
|
|
745
|
-
};
|
|
746
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
747
|
-
switch (errorCode) {
|
|
748
|
-
case "AccessDeniedException":
|
|
749
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
750
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
751
|
-
case "InternalServerException":
|
|
752
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
753
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
754
|
-
case "ResourceNotFoundException":
|
|
755
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
756
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
757
|
-
case "ServiceUnavailableException":
|
|
758
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
759
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
760
|
-
case "ThrottlingException":
|
|
761
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
762
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
763
|
-
case "ValidationException":
|
|
764
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
765
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
766
|
-
default:
|
|
767
|
-
const parsedBody = parsedOutput.body;
|
|
768
|
-
return throwDefaultError({
|
|
769
|
-
output,
|
|
770
|
-
parsedBody,
|
|
771
|
-
errorCode,
|
|
772
|
-
});
|
|
257
|
+
return de_CommandError(output, context);
|
|
773
258
|
}
|
|
259
|
+
const data = await parseBody(output.body, context);
|
|
260
|
+
let contents = {};
|
|
261
|
+
contents = de_ImportKeyOutput(data, context);
|
|
262
|
+
const response = {
|
|
263
|
+
$metadata: deserializeMetadata(output),
|
|
264
|
+
...contents,
|
|
265
|
+
};
|
|
266
|
+
return response;
|
|
774
267
|
};
|
|
775
|
-
export const
|
|
268
|
+
export const de_ListAliasesCommand = async (output, context) => {
|
|
776
269
|
if (output.statusCode >= 300) {
|
|
777
|
-
return
|
|
270
|
+
return de_CommandError(output, context);
|
|
778
271
|
}
|
|
779
272
|
const data = await parseBody(output.body, context);
|
|
780
273
|
let contents = {};
|
|
@@ -785,43 +278,35 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
785
278
|
};
|
|
786
279
|
return response;
|
|
787
280
|
};
|
|
788
|
-
const
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
281
|
+
export const de_ListKeysCommand = async (output, context) => {
|
|
282
|
+
if (output.statusCode >= 300) {
|
|
283
|
+
return de_CommandError(output, context);
|
|
284
|
+
}
|
|
285
|
+
const data = await parseBody(output.body, context);
|
|
286
|
+
let contents = {};
|
|
287
|
+
contents = _json(data);
|
|
288
|
+
const response = {
|
|
289
|
+
$metadata: deserializeMetadata(output),
|
|
290
|
+
...contents,
|
|
792
291
|
};
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
case "InternalServerException":
|
|
799
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ResourceNotFoundException":
|
|
802
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
803
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ServiceUnavailableException":
|
|
805
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
806
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
807
|
-
case "ThrottlingException":
|
|
808
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
809
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
810
|
-
case "ValidationException":
|
|
811
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
812
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
813
|
-
default:
|
|
814
|
-
const parsedBody = parsedOutput.body;
|
|
815
|
-
return throwDefaultError({
|
|
816
|
-
output,
|
|
817
|
-
parsedBody,
|
|
818
|
-
errorCode,
|
|
819
|
-
});
|
|
292
|
+
return response;
|
|
293
|
+
};
|
|
294
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
295
|
+
if (output.statusCode >= 300) {
|
|
296
|
+
return de_CommandError(output, context);
|
|
820
297
|
}
|
|
298
|
+
const data = await parseBody(output.body, context);
|
|
299
|
+
let contents = {};
|
|
300
|
+
contents = _json(data);
|
|
301
|
+
const response = {
|
|
302
|
+
$metadata: deserializeMetadata(output),
|
|
303
|
+
...contents,
|
|
304
|
+
};
|
|
305
|
+
return response;
|
|
821
306
|
};
|
|
822
307
|
export const de_RestoreKeyCommand = async (output, context) => {
|
|
823
308
|
if (output.statusCode >= 300) {
|
|
824
|
-
return
|
|
309
|
+
return de_CommandError(output, context);
|
|
825
310
|
}
|
|
826
311
|
const data = await parseBody(output.body, context);
|
|
827
312
|
let contents = {};
|
|
@@ -832,49 +317,9 @@ export const de_RestoreKeyCommand = async (output, context) => {
|
|
|
832
317
|
};
|
|
833
318
|
return response;
|
|
834
319
|
};
|
|
835
|
-
const de_RestoreKeyCommandError = async (output, context) => {
|
|
836
|
-
const parsedOutput = {
|
|
837
|
-
...output,
|
|
838
|
-
body: await parseErrorBody(output.body, context),
|
|
839
|
-
};
|
|
840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
-
switch (errorCode) {
|
|
842
|
-
case "AccessDeniedException":
|
|
843
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
844
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
845
|
-
case "ConflictException":
|
|
846
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
847
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
848
|
-
case "InternalServerException":
|
|
849
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
850
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
851
|
-
case "ResourceNotFoundException":
|
|
852
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
853
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
854
|
-
case "ServiceQuotaExceededException":
|
|
855
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
856
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
857
|
-
case "ServiceUnavailableException":
|
|
858
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
859
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
860
|
-
case "ThrottlingException":
|
|
861
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
862
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
863
|
-
case "ValidationException":
|
|
864
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
865
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
866
|
-
default:
|
|
867
|
-
const parsedBody = parsedOutput.body;
|
|
868
|
-
return throwDefaultError({
|
|
869
|
-
output,
|
|
870
|
-
parsedBody,
|
|
871
|
-
errorCode,
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
};
|
|
875
320
|
export const de_StartKeyUsageCommand = async (output, context) => {
|
|
876
321
|
if (output.statusCode >= 300) {
|
|
877
|
-
return
|
|
322
|
+
return de_CommandError(output, context);
|
|
878
323
|
}
|
|
879
324
|
const data = await parseBody(output.body, context);
|
|
880
325
|
let contents = {};
|
|
@@ -885,49 +330,9 @@ export const de_StartKeyUsageCommand = async (output, context) => {
|
|
|
885
330
|
};
|
|
886
331
|
return response;
|
|
887
332
|
};
|
|
888
|
-
const de_StartKeyUsageCommandError = async (output, context) => {
|
|
889
|
-
const parsedOutput = {
|
|
890
|
-
...output,
|
|
891
|
-
body: await parseErrorBody(output.body, context),
|
|
892
|
-
};
|
|
893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
|
-
switch (errorCode) {
|
|
895
|
-
case "AccessDeniedException":
|
|
896
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
897
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
898
|
-
case "ConflictException":
|
|
899
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
900
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
901
|
-
case "InternalServerException":
|
|
902
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
903
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
904
|
-
case "ResourceNotFoundException":
|
|
905
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
906
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
907
|
-
case "ServiceQuotaExceededException":
|
|
908
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
909
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ServiceUnavailableException":
|
|
911
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
912
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
913
|
-
case "ThrottlingException":
|
|
914
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
915
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
916
|
-
case "ValidationException":
|
|
917
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
918
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
|
-
default:
|
|
920
|
-
const parsedBody = parsedOutput.body;
|
|
921
|
-
return throwDefaultError({
|
|
922
|
-
output,
|
|
923
|
-
parsedBody,
|
|
924
|
-
errorCode,
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
|
-
};
|
|
928
333
|
export const de_StopKeyUsageCommand = async (output, context) => {
|
|
929
334
|
if (output.statusCode >= 300) {
|
|
930
|
-
return
|
|
335
|
+
return de_CommandError(output, context);
|
|
931
336
|
}
|
|
932
337
|
const data = await parseBody(output.body, context);
|
|
933
338
|
let contents = {};
|
|
@@ -938,49 +343,9 @@ export const de_StopKeyUsageCommand = async (output, context) => {
|
|
|
938
343
|
};
|
|
939
344
|
return response;
|
|
940
345
|
};
|
|
941
|
-
const de_StopKeyUsageCommandError = async (output, context) => {
|
|
942
|
-
const parsedOutput = {
|
|
943
|
-
...output,
|
|
944
|
-
body: await parseErrorBody(output.body, context),
|
|
945
|
-
};
|
|
946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
|
-
switch (errorCode) {
|
|
948
|
-
case "AccessDeniedException":
|
|
949
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
950
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
951
|
-
case "ConflictException":
|
|
952
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
953
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
954
|
-
case "InternalServerException":
|
|
955
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
956
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
957
|
-
case "ResourceNotFoundException":
|
|
958
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
959
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
960
|
-
case "ServiceQuotaExceededException":
|
|
961
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
962
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
963
|
-
case "ServiceUnavailableException":
|
|
964
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
965
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ThrottlingException":
|
|
967
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
968
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ValidationException":
|
|
970
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
971
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
972
|
-
default:
|
|
973
|
-
const parsedBody = parsedOutput.body;
|
|
974
|
-
return throwDefaultError({
|
|
975
|
-
output,
|
|
976
|
-
parsedBody,
|
|
977
|
-
errorCode,
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
};
|
|
981
346
|
export const de_TagResourceCommand = async (output, context) => {
|
|
982
347
|
if (output.statusCode >= 300) {
|
|
983
|
-
return
|
|
348
|
+
return de_CommandError(output, context);
|
|
984
349
|
}
|
|
985
350
|
const data = await parseBody(output.body, context);
|
|
986
351
|
let contents = {};
|
|
@@ -991,49 +356,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
991
356
|
};
|
|
992
357
|
return response;
|
|
993
358
|
};
|
|
994
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
995
|
-
const parsedOutput = {
|
|
996
|
-
...output,
|
|
997
|
-
body: await parseErrorBody(output.body, context),
|
|
998
|
-
};
|
|
999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
-
switch (errorCode) {
|
|
1001
|
-
case "AccessDeniedException":
|
|
1002
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1003
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "ConflictException":
|
|
1005
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1006
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "InternalServerException":
|
|
1008
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1009
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ResourceNotFoundException":
|
|
1011
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1012
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ServiceQuotaExceededException":
|
|
1014
|
-
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
1015
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ServiceUnavailableException":
|
|
1017
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1018
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ThrottlingException":
|
|
1020
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ValidationException":
|
|
1023
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode,
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
};
|
|
1034
359
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1035
360
|
if (output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
361
|
+
return de_CommandError(output, context);
|
|
1037
362
|
}
|
|
1038
363
|
const data = await parseBody(output.body, context);
|
|
1039
364
|
let contents = {};
|
|
@@ -1044,46 +369,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1044
369
|
};
|
|
1045
370
|
return response;
|
|
1046
371
|
};
|
|
1047
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1048
|
-
const parsedOutput = {
|
|
1049
|
-
...output,
|
|
1050
|
-
body: await parseErrorBody(output.body, context),
|
|
1051
|
-
};
|
|
1052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
-
switch (errorCode) {
|
|
1054
|
-
case "AccessDeniedException":
|
|
1055
|
-
case "com.amazonaws.paymentcryptography#AccessDeniedException":
|
|
1056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1057
|
-
case "ConflictException":
|
|
1058
|
-
case "com.amazonaws.paymentcryptography#ConflictException":
|
|
1059
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "InternalServerException":
|
|
1061
|
-
case "com.amazonaws.paymentcryptography#InternalServerException":
|
|
1062
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ResourceNotFoundException":
|
|
1064
|
-
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1065
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ServiceUnavailableException":
|
|
1067
|
-
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1068
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ThrottlingException":
|
|
1070
|
-
case "com.amazonaws.paymentcryptography#ThrottlingException":
|
|
1071
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ValidationException":
|
|
1073
|
-
case "com.amazonaws.paymentcryptography#ValidationException":
|
|
1074
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1075
|
-
default:
|
|
1076
|
-
const parsedBody = parsedOutput.body;
|
|
1077
|
-
return throwDefaultError({
|
|
1078
|
-
output,
|
|
1079
|
-
parsedBody,
|
|
1080
|
-
errorCode,
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
};
|
|
1084
372
|
export const de_UpdateAliasCommand = async (output, context) => {
|
|
1085
373
|
if (output.statusCode >= 300) {
|
|
1086
|
-
return
|
|
374
|
+
return de_CommandError(output, context);
|
|
1087
375
|
}
|
|
1088
376
|
const data = await parseBody(output.body, context);
|
|
1089
377
|
let contents = {};
|
|
@@ -1094,7 +382,7 @@ export const de_UpdateAliasCommand = async (output, context) => {
|
|
|
1094
382
|
};
|
|
1095
383
|
return response;
|
|
1096
384
|
};
|
|
1097
|
-
const
|
|
385
|
+
const de_CommandError = async (output, context) => {
|
|
1098
386
|
const parsedOutput = {
|
|
1099
387
|
...output,
|
|
1100
388
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1113,6 +401,9 @@ const de_UpdateAliasCommandError = async (output, context) => {
|
|
|
1113
401
|
case "ResourceNotFoundException":
|
|
1114
402
|
case "com.amazonaws.paymentcryptography#ResourceNotFoundException":
|
|
1115
403
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
404
|
+
case "ServiceQuotaExceededException":
|
|
405
|
+
case "com.amazonaws.paymentcryptography#ServiceQuotaExceededException":
|
|
406
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1116
407
|
case "ServiceUnavailableException":
|
|
1117
408
|
case "com.amazonaws.paymentcryptography#ServiceUnavailableException":
|
|
1118
409
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|