@aws-sdk/client-cloudhsm 3.504.0 → 3.509.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 +22 -491
- package/dist-es/protocols/Aws_json1_1.js +21 -490
- package/package.json +3 -3
|
@@ -124,7 +124,7 @@ export const se_RemoveTagsFromResourceCommand = async (input, context) => {
|
|
|
124
124
|
};
|
|
125
125
|
export const de_AddTagsToResourceCommand = 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,34 +135,9 @@ export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
135
135
|
};
|
|
136
136
|
return response;
|
|
137
137
|
};
|
|
138
|
-
const de_AddTagsToResourceCommandError = 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 "CloudHsmInternalException":
|
|
146
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
147
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
148
|
-
case "CloudHsmServiceException":
|
|
149
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
150
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
151
|
-
case "InvalidRequestException":
|
|
152
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
153
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
154
|
-
default:
|
|
155
|
-
const parsedBody = parsedOutput.body;
|
|
156
|
-
return throwDefaultError({
|
|
157
|
-
output,
|
|
158
|
-
parsedBody,
|
|
159
|
-
errorCode,
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
138
|
export const de_CreateHapgCommand = async (output, context) => {
|
|
164
139
|
if (output.statusCode >= 300) {
|
|
165
|
-
return
|
|
140
|
+
return de_CommandError(output, context);
|
|
166
141
|
}
|
|
167
142
|
const data = await parseBody(output.body, context);
|
|
168
143
|
let contents = {};
|
|
@@ -173,34 +148,9 @@ export const de_CreateHapgCommand = async (output, context) => {
|
|
|
173
148
|
};
|
|
174
149
|
return response;
|
|
175
150
|
};
|
|
176
|
-
const de_CreateHapgCommandError = async (output, context) => {
|
|
177
|
-
const parsedOutput = {
|
|
178
|
-
...output,
|
|
179
|
-
body: await parseErrorBody(output.body, context),
|
|
180
|
-
};
|
|
181
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
182
|
-
switch (errorCode) {
|
|
183
|
-
case "CloudHsmInternalException":
|
|
184
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
185
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
186
|
-
case "CloudHsmServiceException":
|
|
187
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
188
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
189
|
-
case "InvalidRequestException":
|
|
190
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
191
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
192
|
-
default:
|
|
193
|
-
const parsedBody = parsedOutput.body;
|
|
194
|
-
return throwDefaultError({
|
|
195
|
-
output,
|
|
196
|
-
parsedBody,
|
|
197
|
-
errorCode,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
151
|
export const de_CreateHsmCommand = async (output, context) => {
|
|
202
152
|
if (output.statusCode >= 300) {
|
|
203
|
-
return
|
|
153
|
+
return de_CommandError(output, context);
|
|
204
154
|
}
|
|
205
155
|
const data = await parseBody(output.body, context);
|
|
206
156
|
let contents = {};
|
|
@@ -211,34 +161,9 @@ export const de_CreateHsmCommand = async (output, context) => {
|
|
|
211
161
|
};
|
|
212
162
|
return response;
|
|
213
163
|
};
|
|
214
|
-
const de_CreateHsmCommandError = async (output, context) => {
|
|
215
|
-
const parsedOutput = {
|
|
216
|
-
...output,
|
|
217
|
-
body: await parseErrorBody(output.body, context),
|
|
218
|
-
};
|
|
219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
220
|
-
switch (errorCode) {
|
|
221
|
-
case "CloudHsmInternalException":
|
|
222
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
223
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
224
|
-
case "CloudHsmServiceException":
|
|
225
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
226
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
227
|
-
case "InvalidRequestException":
|
|
228
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
229
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
230
|
-
default:
|
|
231
|
-
const parsedBody = parsedOutput.body;
|
|
232
|
-
return throwDefaultError({
|
|
233
|
-
output,
|
|
234
|
-
parsedBody,
|
|
235
|
-
errorCode,
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
164
|
export const de_CreateLunaClientCommand = async (output, context) => {
|
|
240
165
|
if (output.statusCode >= 300) {
|
|
241
|
-
return
|
|
166
|
+
return de_CommandError(output, context);
|
|
242
167
|
}
|
|
243
168
|
const data = await parseBody(output.body, context);
|
|
244
169
|
let contents = {};
|
|
@@ -249,34 +174,9 @@ export const de_CreateLunaClientCommand = async (output, context) => {
|
|
|
249
174
|
};
|
|
250
175
|
return response;
|
|
251
176
|
};
|
|
252
|
-
const de_CreateLunaClientCommandError = async (output, context) => {
|
|
253
|
-
const parsedOutput = {
|
|
254
|
-
...output,
|
|
255
|
-
body: await parseErrorBody(output.body, context),
|
|
256
|
-
};
|
|
257
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
258
|
-
switch (errorCode) {
|
|
259
|
-
case "CloudHsmInternalException":
|
|
260
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
261
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
262
|
-
case "CloudHsmServiceException":
|
|
263
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
264
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
265
|
-
case "InvalidRequestException":
|
|
266
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
267
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
268
|
-
default:
|
|
269
|
-
const parsedBody = parsedOutput.body;
|
|
270
|
-
return throwDefaultError({
|
|
271
|
-
output,
|
|
272
|
-
parsedBody,
|
|
273
|
-
errorCode,
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
177
|
export const de_DeleteHapgCommand = async (output, context) => {
|
|
278
178
|
if (output.statusCode >= 300) {
|
|
279
|
-
return
|
|
179
|
+
return de_CommandError(output, context);
|
|
280
180
|
}
|
|
281
181
|
const data = await parseBody(output.body, context);
|
|
282
182
|
let contents = {};
|
|
@@ -287,34 +187,9 @@ export const de_DeleteHapgCommand = async (output, context) => {
|
|
|
287
187
|
};
|
|
288
188
|
return response;
|
|
289
189
|
};
|
|
290
|
-
const de_DeleteHapgCommandError = async (output, context) => {
|
|
291
|
-
const parsedOutput = {
|
|
292
|
-
...output,
|
|
293
|
-
body: await parseErrorBody(output.body, context),
|
|
294
|
-
};
|
|
295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
296
|
-
switch (errorCode) {
|
|
297
|
-
case "CloudHsmInternalException":
|
|
298
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
299
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
300
|
-
case "CloudHsmServiceException":
|
|
301
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
302
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
303
|
-
case "InvalidRequestException":
|
|
304
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
305
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
306
|
-
default:
|
|
307
|
-
const parsedBody = parsedOutput.body;
|
|
308
|
-
return throwDefaultError({
|
|
309
|
-
output,
|
|
310
|
-
parsedBody,
|
|
311
|
-
errorCode,
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
190
|
export const de_DeleteHsmCommand = async (output, context) => {
|
|
316
191
|
if (output.statusCode >= 300) {
|
|
317
|
-
return
|
|
192
|
+
return de_CommandError(output, context);
|
|
318
193
|
}
|
|
319
194
|
const data = await parseBody(output.body, context);
|
|
320
195
|
let contents = {};
|
|
@@ -325,34 +200,9 @@ export const de_DeleteHsmCommand = async (output, context) => {
|
|
|
325
200
|
};
|
|
326
201
|
return response;
|
|
327
202
|
};
|
|
328
|
-
const de_DeleteHsmCommandError = async (output, context) => {
|
|
329
|
-
const parsedOutput = {
|
|
330
|
-
...output,
|
|
331
|
-
body: await parseErrorBody(output.body, context),
|
|
332
|
-
};
|
|
333
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
334
|
-
switch (errorCode) {
|
|
335
|
-
case "CloudHsmInternalException":
|
|
336
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
337
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
338
|
-
case "CloudHsmServiceException":
|
|
339
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
340
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
341
|
-
case "InvalidRequestException":
|
|
342
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
343
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
344
|
-
default:
|
|
345
|
-
const parsedBody = parsedOutput.body;
|
|
346
|
-
return throwDefaultError({
|
|
347
|
-
output,
|
|
348
|
-
parsedBody,
|
|
349
|
-
errorCode,
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
203
|
export const de_DeleteLunaClientCommand = async (output, context) => {
|
|
354
204
|
if (output.statusCode >= 300) {
|
|
355
|
-
return
|
|
205
|
+
return de_CommandError(output, context);
|
|
356
206
|
}
|
|
357
207
|
const data = await parseBody(output.body, context);
|
|
358
208
|
let contents = {};
|
|
@@ -363,34 +213,9 @@ export const de_DeleteLunaClientCommand = async (output, context) => {
|
|
|
363
213
|
};
|
|
364
214
|
return response;
|
|
365
215
|
};
|
|
366
|
-
const de_DeleteLunaClientCommandError = async (output, context) => {
|
|
367
|
-
const parsedOutput = {
|
|
368
|
-
...output,
|
|
369
|
-
body: await parseErrorBody(output.body, context),
|
|
370
|
-
};
|
|
371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
372
|
-
switch (errorCode) {
|
|
373
|
-
case "CloudHsmInternalException":
|
|
374
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
375
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
376
|
-
case "CloudHsmServiceException":
|
|
377
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
378
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
379
|
-
case "InvalidRequestException":
|
|
380
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
381
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
382
|
-
default:
|
|
383
|
-
const parsedBody = parsedOutput.body;
|
|
384
|
-
return throwDefaultError({
|
|
385
|
-
output,
|
|
386
|
-
parsedBody,
|
|
387
|
-
errorCode,
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
};
|
|
391
216
|
export const de_DescribeHapgCommand = async (output, context) => {
|
|
392
217
|
if (output.statusCode >= 300) {
|
|
393
|
-
return
|
|
218
|
+
return de_CommandError(output, context);
|
|
394
219
|
}
|
|
395
220
|
const data = await parseBody(output.body, context);
|
|
396
221
|
let contents = {};
|
|
@@ -401,34 +226,9 @@ export const de_DescribeHapgCommand = async (output, context) => {
|
|
|
401
226
|
};
|
|
402
227
|
return response;
|
|
403
228
|
};
|
|
404
|
-
const de_DescribeHapgCommandError = async (output, context) => {
|
|
405
|
-
const parsedOutput = {
|
|
406
|
-
...output,
|
|
407
|
-
body: await parseErrorBody(output.body, context),
|
|
408
|
-
};
|
|
409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
410
|
-
switch (errorCode) {
|
|
411
|
-
case "CloudHsmInternalException":
|
|
412
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
413
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
414
|
-
case "CloudHsmServiceException":
|
|
415
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
416
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
417
|
-
case "InvalidRequestException":
|
|
418
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
419
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
420
|
-
default:
|
|
421
|
-
const parsedBody = parsedOutput.body;
|
|
422
|
-
return throwDefaultError({
|
|
423
|
-
output,
|
|
424
|
-
parsedBody,
|
|
425
|
-
errorCode,
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
229
|
export const de_DescribeHsmCommand = async (output, context) => {
|
|
430
230
|
if (output.statusCode >= 300) {
|
|
431
|
-
return
|
|
231
|
+
return de_CommandError(output, context);
|
|
432
232
|
}
|
|
433
233
|
const data = await parseBody(output.body, context);
|
|
434
234
|
let contents = {};
|
|
@@ -439,34 +239,9 @@ export const de_DescribeHsmCommand = async (output, context) => {
|
|
|
439
239
|
};
|
|
440
240
|
return response;
|
|
441
241
|
};
|
|
442
|
-
const de_DescribeHsmCommandError = async (output, context) => {
|
|
443
|
-
const parsedOutput = {
|
|
444
|
-
...output,
|
|
445
|
-
body: await parseErrorBody(output.body, context),
|
|
446
|
-
};
|
|
447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
|
-
switch (errorCode) {
|
|
449
|
-
case "CloudHsmInternalException":
|
|
450
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
451
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
452
|
-
case "CloudHsmServiceException":
|
|
453
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
454
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
455
|
-
case "InvalidRequestException":
|
|
456
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
457
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
458
|
-
default:
|
|
459
|
-
const parsedBody = parsedOutput.body;
|
|
460
|
-
return throwDefaultError({
|
|
461
|
-
output,
|
|
462
|
-
parsedBody,
|
|
463
|
-
errorCode,
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
242
|
export const de_DescribeLunaClientCommand = async (output, context) => {
|
|
468
243
|
if (output.statusCode >= 300) {
|
|
469
|
-
return
|
|
244
|
+
return de_CommandError(output, context);
|
|
470
245
|
}
|
|
471
246
|
const data = await parseBody(output.body, context);
|
|
472
247
|
let contents = {};
|
|
@@ -477,34 +252,9 @@ export const de_DescribeLunaClientCommand = async (output, context) => {
|
|
|
477
252
|
};
|
|
478
253
|
return response;
|
|
479
254
|
};
|
|
480
|
-
const de_DescribeLunaClientCommandError = async (output, context) => {
|
|
481
|
-
const parsedOutput = {
|
|
482
|
-
...output,
|
|
483
|
-
body: await parseErrorBody(output.body, context),
|
|
484
|
-
};
|
|
485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
-
switch (errorCode) {
|
|
487
|
-
case "CloudHsmInternalException":
|
|
488
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
489
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
490
|
-
case "CloudHsmServiceException":
|
|
491
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
492
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
493
|
-
case "InvalidRequestException":
|
|
494
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
495
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
496
|
-
default:
|
|
497
|
-
const parsedBody = parsedOutput.body;
|
|
498
|
-
return throwDefaultError({
|
|
499
|
-
output,
|
|
500
|
-
parsedBody,
|
|
501
|
-
errorCode,
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
255
|
export const de_GetConfigCommand = async (output, context) => {
|
|
506
256
|
if (output.statusCode >= 300) {
|
|
507
|
-
return
|
|
257
|
+
return de_CommandError(output, context);
|
|
508
258
|
}
|
|
509
259
|
const data = await parseBody(output.body, context);
|
|
510
260
|
let contents = {};
|
|
@@ -515,34 +265,9 @@ export const de_GetConfigCommand = async (output, context) => {
|
|
|
515
265
|
};
|
|
516
266
|
return response;
|
|
517
267
|
};
|
|
518
|
-
const de_GetConfigCommandError = async (output, context) => {
|
|
519
|
-
const parsedOutput = {
|
|
520
|
-
...output,
|
|
521
|
-
body: await parseErrorBody(output.body, context),
|
|
522
|
-
};
|
|
523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
524
|
-
switch (errorCode) {
|
|
525
|
-
case "CloudHsmInternalException":
|
|
526
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
527
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
528
|
-
case "CloudHsmServiceException":
|
|
529
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
530
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
531
|
-
case "InvalidRequestException":
|
|
532
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
533
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
534
|
-
default:
|
|
535
|
-
const parsedBody = parsedOutput.body;
|
|
536
|
-
return throwDefaultError({
|
|
537
|
-
output,
|
|
538
|
-
parsedBody,
|
|
539
|
-
errorCode,
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
268
|
export const de_ListAvailableZonesCommand = async (output, context) => {
|
|
544
269
|
if (output.statusCode >= 300) {
|
|
545
|
-
return
|
|
270
|
+
return de_CommandError(output, context);
|
|
546
271
|
}
|
|
547
272
|
const data = await parseBody(output.body, context);
|
|
548
273
|
let contents = {};
|
|
@@ -553,34 +278,9 @@ export const de_ListAvailableZonesCommand = async (output, context) => {
|
|
|
553
278
|
};
|
|
554
279
|
return response;
|
|
555
280
|
};
|
|
556
|
-
const de_ListAvailableZonesCommandError = async (output, context) => {
|
|
557
|
-
const parsedOutput = {
|
|
558
|
-
...output,
|
|
559
|
-
body: await parseErrorBody(output.body, context),
|
|
560
|
-
};
|
|
561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
562
|
-
switch (errorCode) {
|
|
563
|
-
case "CloudHsmInternalException":
|
|
564
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
565
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
566
|
-
case "CloudHsmServiceException":
|
|
567
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
568
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
569
|
-
case "InvalidRequestException":
|
|
570
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
571
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
572
|
-
default:
|
|
573
|
-
const parsedBody = parsedOutput.body;
|
|
574
|
-
return throwDefaultError({
|
|
575
|
-
output,
|
|
576
|
-
parsedBody,
|
|
577
|
-
errorCode,
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
281
|
export const de_ListHapgsCommand = async (output, context) => {
|
|
582
282
|
if (output.statusCode >= 300) {
|
|
583
|
-
return
|
|
283
|
+
return de_CommandError(output, context);
|
|
584
284
|
}
|
|
585
285
|
const data = await parseBody(output.body, context);
|
|
586
286
|
let contents = {};
|
|
@@ -591,34 +291,9 @@ export const de_ListHapgsCommand = async (output, context) => {
|
|
|
591
291
|
};
|
|
592
292
|
return response;
|
|
593
293
|
};
|
|
594
|
-
const de_ListHapgsCommandError = 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 "CloudHsmInternalException":
|
|
602
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
603
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
604
|
-
case "CloudHsmServiceException":
|
|
605
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
606
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
607
|
-
case "InvalidRequestException":
|
|
608
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
609
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
610
|
-
default:
|
|
611
|
-
const parsedBody = parsedOutput.body;
|
|
612
|
-
return throwDefaultError({
|
|
613
|
-
output,
|
|
614
|
-
parsedBody,
|
|
615
|
-
errorCode,
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
294
|
export const de_ListHsmsCommand = async (output, context) => {
|
|
620
295
|
if (output.statusCode >= 300) {
|
|
621
|
-
return
|
|
296
|
+
return de_CommandError(output, context);
|
|
622
297
|
}
|
|
623
298
|
const data = await parseBody(output.body, context);
|
|
624
299
|
let contents = {};
|
|
@@ -629,34 +304,9 @@ export const de_ListHsmsCommand = async (output, context) => {
|
|
|
629
304
|
};
|
|
630
305
|
return response;
|
|
631
306
|
};
|
|
632
|
-
const de_ListHsmsCommandError = async (output, context) => {
|
|
633
|
-
const parsedOutput = {
|
|
634
|
-
...output,
|
|
635
|
-
body: await parseErrorBody(output.body, context),
|
|
636
|
-
};
|
|
637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
-
switch (errorCode) {
|
|
639
|
-
case "CloudHsmInternalException":
|
|
640
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
641
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
642
|
-
case "CloudHsmServiceException":
|
|
643
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
644
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
645
|
-
case "InvalidRequestException":
|
|
646
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
647
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
648
|
-
default:
|
|
649
|
-
const parsedBody = parsedOutput.body;
|
|
650
|
-
return throwDefaultError({
|
|
651
|
-
output,
|
|
652
|
-
parsedBody,
|
|
653
|
-
errorCode,
|
|
654
|
-
});
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
307
|
export const de_ListLunaClientsCommand = async (output, context) => {
|
|
658
308
|
if (output.statusCode >= 300) {
|
|
659
|
-
return
|
|
309
|
+
return de_CommandError(output, context);
|
|
660
310
|
}
|
|
661
311
|
const data = await parseBody(output.body, context);
|
|
662
312
|
let contents = {};
|
|
@@ -667,34 +317,9 @@ export const de_ListLunaClientsCommand = async (output, context) => {
|
|
|
667
317
|
};
|
|
668
318
|
return response;
|
|
669
319
|
};
|
|
670
|
-
const de_ListLunaClientsCommandError = async (output, context) => {
|
|
671
|
-
const parsedOutput = {
|
|
672
|
-
...output,
|
|
673
|
-
body: await parseErrorBody(output.body, context),
|
|
674
|
-
};
|
|
675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
|
-
switch (errorCode) {
|
|
677
|
-
case "CloudHsmInternalException":
|
|
678
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
679
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
680
|
-
case "CloudHsmServiceException":
|
|
681
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
682
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
683
|
-
case "InvalidRequestException":
|
|
684
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
685
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
686
|
-
default:
|
|
687
|
-
const parsedBody = parsedOutput.body;
|
|
688
|
-
return throwDefaultError({
|
|
689
|
-
output,
|
|
690
|
-
parsedBody,
|
|
691
|
-
errorCode,
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
};
|
|
695
320
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
696
321
|
if (output.statusCode >= 300) {
|
|
697
|
-
return
|
|
322
|
+
return de_CommandError(output, context);
|
|
698
323
|
}
|
|
699
324
|
const data = await parseBody(output.body, context);
|
|
700
325
|
let contents = {};
|
|
@@ -705,34 +330,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
705
330
|
};
|
|
706
331
|
return response;
|
|
707
332
|
};
|
|
708
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
709
|
-
const parsedOutput = {
|
|
710
|
-
...output,
|
|
711
|
-
body: await parseErrorBody(output.body, context),
|
|
712
|
-
};
|
|
713
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
714
|
-
switch (errorCode) {
|
|
715
|
-
case "CloudHsmInternalException":
|
|
716
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
717
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
718
|
-
case "CloudHsmServiceException":
|
|
719
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
720
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InvalidRequestException":
|
|
722
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
723
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
724
|
-
default:
|
|
725
|
-
const parsedBody = parsedOutput.body;
|
|
726
|
-
return throwDefaultError({
|
|
727
|
-
output,
|
|
728
|
-
parsedBody,
|
|
729
|
-
errorCode,
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
333
|
export const de_ModifyHapgCommand = async (output, context) => {
|
|
734
334
|
if (output.statusCode >= 300) {
|
|
735
|
-
return
|
|
335
|
+
return de_CommandError(output, context);
|
|
736
336
|
}
|
|
737
337
|
const data = await parseBody(output.body, context);
|
|
738
338
|
let contents = {};
|
|
@@ -743,34 +343,9 @@ export const de_ModifyHapgCommand = async (output, context) => {
|
|
|
743
343
|
};
|
|
744
344
|
return response;
|
|
745
345
|
};
|
|
746
|
-
const de_ModifyHapgCommandError = async (output, context) => {
|
|
747
|
-
const parsedOutput = {
|
|
748
|
-
...output,
|
|
749
|
-
body: await parseErrorBody(output.body, context),
|
|
750
|
-
};
|
|
751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
|
-
switch (errorCode) {
|
|
753
|
-
case "CloudHsmInternalException":
|
|
754
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
755
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
756
|
-
case "CloudHsmServiceException":
|
|
757
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
758
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
759
|
-
case "InvalidRequestException":
|
|
760
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
761
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
762
|
-
default:
|
|
763
|
-
const parsedBody = parsedOutput.body;
|
|
764
|
-
return throwDefaultError({
|
|
765
|
-
output,
|
|
766
|
-
parsedBody,
|
|
767
|
-
errorCode,
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
};
|
|
771
346
|
export const de_ModifyHsmCommand = async (output, context) => {
|
|
772
347
|
if (output.statusCode >= 300) {
|
|
773
|
-
return
|
|
348
|
+
return de_CommandError(output, context);
|
|
774
349
|
}
|
|
775
350
|
const data = await parseBody(output.body, context);
|
|
776
351
|
let contents = {};
|
|
@@ -781,34 +356,9 @@ export const de_ModifyHsmCommand = async (output, context) => {
|
|
|
781
356
|
};
|
|
782
357
|
return response;
|
|
783
358
|
};
|
|
784
|
-
const de_ModifyHsmCommandError = async (output, context) => {
|
|
785
|
-
const parsedOutput = {
|
|
786
|
-
...output,
|
|
787
|
-
body: await parseErrorBody(output.body, context),
|
|
788
|
-
};
|
|
789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
790
|
-
switch (errorCode) {
|
|
791
|
-
case "CloudHsmInternalException":
|
|
792
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException":
|
|
793
|
-
throw await de_CloudHsmInternalExceptionRes(parsedOutput, context);
|
|
794
|
-
case "CloudHsmServiceException":
|
|
795
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
796
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
797
|
-
case "InvalidRequestException":
|
|
798
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException":
|
|
799
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
800
|
-
default:
|
|
801
|
-
const parsedBody = parsedOutput.body;
|
|
802
|
-
return throwDefaultError({
|
|
803
|
-
output,
|
|
804
|
-
parsedBody,
|
|
805
|
-
errorCode,
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
359
|
export const de_ModifyLunaClientCommand = async (output, context) => {
|
|
810
360
|
if (output.statusCode >= 300) {
|
|
811
|
-
return
|
|
361
|
+
return de_CommandError(output, context);
|
|
812
362
|
}
|
|
813
363
|
const data = await parseBody(output.body, context);
|
|
814
364
|
let contents = {};
|
|
@@ -819,28 +369,9 @@ export const de_ModifyLunaClientCommand = async (output, context) => {
|
|
|
819
369
|
};
|
|
820
370
|
return response;
|
|
821
371
|
};
|
|
822
|
-
const de_ModifyLunaClientCommandError = async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context),
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "CloudHsmServiceException":
|
|
830
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException":
|
|
831
|
-
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
832
|
-
default:
|
|
833
|
-
const parsedBody = parsedOutput.body;
|
|
834
|
-
return throwDefaultError({
|
|
835
|
-
output,
|
|
836
|
-
parsedBody,
|
|
837
|
-
errorCode,
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
372
|
export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
842
373
|
if (output.statusCode >= 300) {
|
|
843
|
-
return
|
|
374
|
+
return de_CommandError(output, context);
|
|
844
375
|
}
|
|
845
376
|
const data = await parseBody(output.body, context);
|
|
846
377
|
let contents = {};
|
|
@@ -851,7 +382,7 @@ export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
|
851
382
|
};
|
|
852
383
|
return response;
|
|
853
384
|
};
|
|
854
|
-
const
|
|
385
|
+
const de_CommandError = async (output, context) => {
|
|
855
386
|
const parsedOutput = {
|
|
856
387
|
...output,
|
|
857
388
|
body: await parseErrorBody(output.body, context),
|