@aws-sdk/client-shield 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 +75 -1022
- package/dist-es/protocols/Aws_json1_1.js +81 -1028
- package/package.json +3 -3
|
@@ -220,7 +220,7 @@ export const se_UpdateSubscriptionCommand = async (input, context) => {
|
|
|
220
220
|
};
|
|
221
221
|
export const de_AssociateDRTLogBucketCommand = async (output, context) => {
|
|
222
222
|
if (output.statusCode >= 300) {
|
|
223
|
-
return
|
|
223
|
+
return de_CommandError(output, context);
|
|
224
224
|
}
|
|
225
225
|
const data = await parseBody(output.body, context);
|
|
226
226
|
let contents = {};
|
|
@@ -231,49 +231,9 @@ export const de_AssociateDRTLogBucketCommand = async (output, context) => {
|
|
|
231
231
|
};
|
|
232
232
|
return response;
|
|
233
233
|
};
|
|
234
|
-
const de_AssociateDRTLogBucketCommandError = async (output, context) => {
|
|
235
|
-
const parsedOutput = {
|
|
236
|
-
...output,
|
|
237
|
-
body: await parseErrorBody(output.body, context),
|
|
238
|
-
};
|
|
239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
240
|
-
switch (errorCode) {
|
|
241
|
-
case "AccessDeniedForDependencyException":
|
|
242
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
243
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
244
|
-
case "InternalErrorException":
|
|
245
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
246
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
247
|
-
case "InvalidOperationException":
|
|
248
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
249
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
250
|
-
case "InvalidParameterException":
|
|
251
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
252
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
253
|
-
case "LimitsExceededException":
|
|
254
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
255
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
256
|
-
case "NoAssociatedRoleException":
|
|
257
|
-
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
258
|
-
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
259
|
-
case "OptimisticLockException":
|
|
260
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
261
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
262
|
-
case "ResourceNotFoundException":
|
|
263
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
264
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
265
|
-
default:
|
|
266
|
-
const parsedBody = parsedOutput.body;
|
|
267
|
-
return throwDefaultError({
|
|
268
|
-
output,
|
|
269
|
-
parsedBody,
|
|
270
|
-
errorCode,
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
234
|
export const de_AssociateDRTRoleCommand = async (output, context) => {
|
|
275
235
|
if (output.statusCode >= 300) {
|
|
276
|
-
return
|
|
236
|
+
return de_CommandError(output, context);
|
|
277
237
|
}
|
|
278
238
|
const data = await parseBody(output.body, context);
|
|
279
239
|
let contents = {};
|
|
@@ -284,43 +244,9 @@ export const de_AssociateDRTRoleCommand = async (output, context) => {
|
|
|
284
244
|
};
|
|
285
245
|
return response;
|
|
286
246
|
};
|
|
287
|
-
const de_AssociateDRTRoleCommandError = async (output, context) => {
|
|
288
|
-
const parsedOutput = {
|
|
289
|
-
...output,
|
|
290
|
-
body: await parseErrorBody(output.body, context),
|
|
291
|
-
};
|
|
292
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
293
|
-
switch (errorCode) {
|
|
294
|
-
case "AccessDeniedForDependencyException":
|
|
295
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
296
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
297
|
-
case "InternalErrorException":
|
|
298
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
299
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
300
|
-
case "InvalidOperationException":
|
|
301
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
302
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
303
|
-
case "InvalidParameterException":
|
|
304
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
305
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
306
|
-
case "OptimisticLockException":
|
|
307
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
308
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
309
|
-
case "ResourceNotFoundException":
|
|
310
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
311
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
312
|
-
default:
|
|
313
|
-
const parsedBody = parsedOutput.body;
|
|
314
|
-
return throwDefaultError({
|
|
315
|
-
output,
|
|
316
|
-
parsedBody,
|
|
317
|
-
errorCode,
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
247
|
export const de_AssociateHealthCheckCommand = async (output, context) => {
|
|
322
248
|
if (output.statusCode >= 300) {
|
|
323
|
-
return
|
|
249
|
+
return de_CommandError(output, context);
|
|
324
250
|
}
|
|
325
251
|
const data = await parseBody(output.body, context);
|
|
326
252
|
let contents = {};
|
|
@@ -331,43 +257,9 @@ export const de_AssociateHealthCheckCommand = async (output, context) => {
|
|
|
331
257
|
};
|
|
332
258
|
return response;
|
|
333
259
|
};
|
|
334
|
-
const de_AssociateHealthCheckCommandError = async (output, context) => {
|
|
335
|
-
const parsedOutput = {
|
|
336
|
-
...output,
|
|
337
|
-
body: await parseErrorBody(output.body, context),
|
|
338
|
-
};
|
|
339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
340
|
-
switch (errorCode) {
|
|
341
|
-
case "InternalErrorException":
|
|
342
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
343
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
344
|
-
case "InvalidParameterException":
|
|
345
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
346
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
347
|
-
case "InvalidResourceException":
|
|
348
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
349
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
350
|
-
case "LimitsExceededException":
|
|
351
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
352
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
353
|
-
case "OptimisticLockException":
|
|
354
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
355
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
356
|
-
case "ResourceNotFoundException":
|
|
357
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
358
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
359
|
-
default:
|
|
360
|
-
const parsedBody = parsedOutput.body;
|
|
361
|
-
return throwDefaultError({
|
|
362
|
-
output,
|
|
363
|
-
parsedBody,
|
|
364
|
-
errorCode,
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
260
|
export const de_AssociateProactiveEngagementDetailsCommand = async (output, context) => {
|
|
369
261
|
if (output.statusCode >= 300) {
|
|
370
|
-
return
|
|
262
|
+
return de_CommandError(output, context);
|
|
371
263
|
}
|
|
372
264
|
const data = await parseBody(output.body, context);
|
|
373
265
|
let contents = {};
|
|
@@ -378,40 +270,9 @@ export const de_AssociateProactiveEngagementDetailsCommand = async (output, cont
|
|
|
378
270
|
};
|
|
379
271
|
return response;
|
|
380
272
|
};
|
|
381
|
-
const de_AssociateProactiveEngagementDetailsCommandError = 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 "InternalErrorException":
|
|
389
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
390
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
391
|
-
case "InvalidOperationException":
|
|
392
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
393
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
394
|
-
case "InvalidParameterException":
|
|
395
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
396
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
397
|
-
case "OptimisticLockException":
|
|
398
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
399
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ResourceNotFoundException":
|
|
401
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
403
|
-
default:
|
|
404
|
-
const parsedBody = parsedOutput.body;
|
|
405
|
-
return throwDefaultError({
|
|
406
|
-
output,
|
|
407
|
-
parsedBody,
|
|
408
|
-
errorCode,
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
273
|
export const de_CreateProtectionCommand = async (output, context) => {
|
|
413
274
|
if (output.statusCode >= 300) {
|
|
414
|
-
return
|
|
275
|
+
return de_CommandError(output, context);
|
|
415
276
|
}
|
|
416
277
|
const data = await parseBody(output.body, context);
|
|
417
278
|
let contents = {};
|
|
@@ -422,49 +283,9 @@ export const de_CreateProtectionCommand = async (output, context) => {
|
|
|
422
283
|
};
|
|
423
284
|
return response;
|
|
424
285
|
};
|
|
425
|
-
const de_CreateProtectionCommandError = async (output, context) => {
|
|
426
|
-
const parsedOutput = {
|
|
427
|
-
...output,
|
|
428
|
-
body: await parseErrorBody(output.body, context),
|
|
429
|
-
};
|
|
430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
431
|
-
switch (errorCode) {
|
|
432
|
-
case "InternalErrorException":
|
|
433
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
434
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
435
|
-
case "InvalidOperationException":
|
|
436
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
437
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
438
|
-
case "InvalidParameterException":
|
|
439
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
440
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
441
|
-
case "InvalidResourceException":
|
|
442
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
443
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
444
|
-
case "LimitsExceededException":
|
|
445
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
446
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
447
|
-
case "OptimisticLockException":
|
|
448
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
449
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
450
|
-
case "ResourceAlreadyExistsException":
|
|
451
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
452
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
453
|
-
case "ResourceNotFoundException":
|
|
454
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
456
|
-
default:
|
|
457
|
-
const parsedBody = parsedOutput.body;
|
|
458
|
-
return throwDefaultError({
|
|
459
|
-
output,
|
|
460
|
-
parsedBody,
|
|
461
|
-
errorCode,
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
286
|
export const de_CreateProtectionGroupCommand = async (output, context) => {
|
|
466
287
|
if (output.statusCode >= 300) {
|
|
467
|
-
return
|
|
288
|
+
return de_CommandError(output, context);
|
|
468
289
|
}
|
|
469
290
|
const data = await parseBody(output.body, context);
|
|
470
291
|
let contents = {};
|
|
@@ -475,43 +296,9 @@ export const de_CreateProtectionGroupCommand = async (output, context) => {
|
|
|
475
296
|
};
|
|
476
297
|
return response;
|
|
477
298
|
};
|
|
478
|
-
const de_CreateProtectionGroupCommandError = async (output, context) => {
|
|
479
|
-
const parsedOutput = {
|
|
480
|
-
...output,
|
|
481
|
-
body: await parseErrorBody(output.body, context),
|
|
482
|
-
};
|
|
483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
|
-
switch (errorCode) {
|
|
485
|
-
case "InternalErrorException":
|
|
486
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
487
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
488
|
-
case "InvalidParameterException":
|
|
489
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
490
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
491
|
-
case "LimitsExceededException":
|
|
492
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
493
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
494
|
-
case "OptimisticLockException":
|
|
495
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
496
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
497
|
-
case "ResourceAlreadyExistsException":
|
|
498
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
499
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
500
|
-
case "ResourceNotFoundException":
|
|
501
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
502
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
503
|
-
default:
|
|
504
|
-
const parsedBody = parsedOutput.body;
|
|
505
|
-
return throwDefaultError({
|
|
506
|
-
output,
|
|
507
|
-
parsedBody,
|
|
508
|
-
errorCode,
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
299
|
export const de_CreateSubscriptionCommand = async (output, context) => {
|
|
513
300
|
if (output.statusCode >= 300) {
|
|
514
|
-
return
|
|
301
|
+
return de_CommandError(output, context);
|
|
515
302
|
}
|
|
516
303
|
const data = await parseBody(output.body, context);
|
|
517
304
|
let contents = {};
|
|
@@ -522,31 +309,9 @@ export const de_CreateSubscriptionCommand = async (output, context) => {
|
|
|
522
309
|
};
|
|
523
310
|
return response;
|
|
524
311
|
};
|
|
525
|
-
const de_CreateSubscriptionCommandError = async (output, context) => {
|
|
526
|
-
const parsedOutput = {
|
|
527
|
-
...output,
|
|
528
|
-
body: await parseErrorBody(output.body, context),
|
|
529
|
-
};
|
|
530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
|
-
switch (errorCode) {
|
|
532
|
-
case "InternalErrorException":
|
|
533
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
534
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
535
|
-
case "ResourceAlreadyExistsException":
|
|
536
|
-
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
537
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
538
|
-
default:
|
|
539
|
-
const parsedBody = parsedOutput.body;
|
|
540
|
-
return throwDefaultError({
|
|
541
|
-
output,
|
|
542
|
-
parsedBody,
|
|
543
|
-
errorCode,
|
|
544
|
-
});
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
312
|
export const de_DeleteProtectionCommand = async (output, context) => {
|
|
548
313
|
if (output.statusCode >= 300) {
|
|
549
|
-
return
|
|
314
|
+
return de_CommandError(output, context);
|
|
550
315
|
}
|
|
551
316
|
const data = await parseBody(output.body, context);
|
|
552
317
|
let contents = {};
|
|
@@ -557,34 +322,9 @@ export const de_DeleteProtectionCommand = async (output, context) => {
|
|
|
557
322
|
};
|
|
558
323
|
return response;
|
|
559
324
|
};
|
|
560
|
-
const de_DeleteProtectionCommandError = async (output, context) => {
|
|
561
|
-
const parsedOutput = {
|
|
562
|
-
...output,
|
|
563
|
-
body: await parseErrorBody(output.body, context),
|
|
564
|
-
};
|
|
565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
566
|
-
switch (errorCode) {
|
|
567
|
-
case "InternalErrorException":
|
|
568
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
569
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
570
|
-
case "OptimisticLockException":
|
|
571
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
572
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
573
|
-
case "ResourceNotFoundException":
|
|
574
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
575
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
576
|
-
default:
|
|
577
|
-
const parsedBody = parsedOutput.body;
|
|
578
|
-
return throwDefaultError({
|
|
579
|
-
output,
|
|
580
|
-
parsedBody,
|
|
581
|
-
errorCode,
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
325
|
export const de_DeleteProtectionGroupCommand = async (output, context) => {
|
|
586
326
|
if (output.statusCode >= 300) {
|
|
587
|
-
return
|
|
327
|
+
return de_CommandError(output, context);
|
|
588
328
|
}
|
|
589
329
|
const data = await parseBody(output.body, context);
|
|
590
330
|
let contents = {};
|
|
@@ -595,34 +335,9 @@ export const de_DeleteProtectionGroupCommand = async (output, context) => {
|
|
|
595
335
|
};
|
|
596
336
|
return response;
|
|
597
337
|
};
|
|
598
|
-
const de_DeleteProtectionGroupCommandError = async (output, context) => {
|
|
599
|
-
const parsedOutput = {
|
|
600
|
-
...output,
|
|
601
|
-
body: await parseErrorBody(output.body, context),
|
|
602
|
-
};
|
|
603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
|
-
switch (errorCode) {
|
|
605
|
-
case "InternalErrorException":
|
|
606
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
607
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
608
|
-
case "OptimisticLockException":
|
|
609
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
610
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
611
|
-
case "ResourceNotFoundException":
|
|
612
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
613
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
614
|
-
default:
|
|
615
|
-
const parsedBody = parsedOutput.body;
|
|
616
|
-
return throwDefaultError({
|
|
617
|
-
output,
|
|
618
|
-
parsedBody,
|
|
619
|
-
errorCode,
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
338
|
export const de_DeleteSubscriptionCommand = async (output, context) => {
|
|
624
339
|
if (output.statusCode >= 300) {
|
|
625
|
-
return
|
|
340
|
+
return de_CommandError(output, context);
|
|
626
341
|
}
|
|
627
342
|
const data = await parseBody(output.body, context);
|
|
628
343
|
let contents = {};
|
|
@@ -633,34 +348,9 @@ export const de_DeleteSubscriptionCommand = async (output, context) => {
|
|
|
633
348
|
};
|
|
634
349
|
return response;
|
|
635
350
|
};
|
|
636
|
-
const de_DeleteSubscriptionCommandError = async (output, context) => {
|
|
637
|
-
const parsedOutput = {
|
|
638
|
-
...output,
|
|
639
|
-
body: await parseErrorBody(output.body, context),
|
|
640
|
-
};
|
|
641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
|
-
switch (errorCode) {
|
|
643
|
-
case "InternalErrorException":
|
|
644
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
645
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
646
|
-
case "LockedSubscriptionException":
|
|
647
|
-
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
648
|
-
throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
|
|
649
|
-
case "ResourceNotFoundException":
|
|
650
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
651
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
652
|
-
default:
|
|
653
|
-
const parsedBody = parsedOutput.body;
|
|
654
|
-
return throwDefaultError({
|
|
655
|
-
output,
|
|
656
|
-
parsedBody,
|
|
657
|
-
errorCode,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
351
|
export const de_DescribeAttackCommand = async (output, context) => {
|
|
662
352
|
if (output.statusCode >= 300) {
|
|
663
|
-
return
|
|
353
|
+
return de_CommandError(output, context);
|
|
664
354
|
}
|
|
665
355
|
const data = await parseBody(output.body, context);
|
|
666
356
|
let contents = {};
|
|
@@ -671,31 +361,9 @@ export const de_DescribeAttackCommand = async (output, context) => {
|
|
|
671
361
|
};
|
|
672
362
|
return response;
|
|
673
363
|
};
|
|
674
|
-
const de_DescribeAttackCommandError = async (output, context) => {
|
|
675
|
-
const parsedOutput = {
|
|
676
|
-
...output,
|
|
677
|
-
body: await parseErrorBody(output.body, context),
|
|
678
|
-
};
|
|
679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
|
-
switch (errorCode) {
|
|
681
|
-
case "AccessDeniedException":
|
|
682
|
-
case "com.amazonaws.shield#AccessDeniedException":
|
|
683
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
684
|
-
case "InternalErrorException":
|
|
685
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
686
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
687
|
-
default:
|
|
688
|
-
const parsedBody = parsedOutput.body;
|
|
689
|
-
return throwDefaultError({
|
|
690
|
-
output,
|
|
691
|
-
parsedBody,
|
|
692
|
-
errorCode,
|
|
693
|
-
});
|
|
694
|
-
}
|
|
695
|
-
};
|
|
696
364
|
export const de_DescribeAttackStatisticsCommand = async (output, context) => {
|
|
697
365
|
if (output.statusCode >= 300) {
|
|
698
|
-
return
|
|
366
|
+
return de_CommandError(output, context);
|
|
699
367
|
}
|
|
700
368
|
const data = await parseBody(output.body, context);
|
|
701
369
|
let contents = {};
|
|
@@ -706,28 +374,9 @@ export const de_DescribeAttackStatisticsCommand = async (output, context) => {
|
|
|
706
374
|
};
|
|
707
375
|
return response;
|
|
708
376
|
};
|
|
709
|
-
const de_DescribeAttackStatisticsCommandError = async (output, context) => {
|
|
710
|
-
const parsedOutput = {
|
|
711
|
-
...output,
|
|
712
|
-
body: await parseErrorBody(output.body, context),
|
|
713
|
-
};
|
|
714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
|
-
switch (errorCode) {
|
|
716
|
-
case "InternalErrorException":
|
|
717
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
718
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
719
|
-
default:
|
|
720
|
-
const parsedBody = parsedOutput.body;
|
|
721
|
-
return throwDefaultError({
|
|
722
|
-
output,
|
|
723
|
-
parsedBody,
|
|
724
|
-
errorCode,
|
|
725
|
-
});
|
|
726
|
-
}
|
|
727
|
-
};
|
|
728
377
|
export const de_DescribeDRTAccessCommand = async (output, context) => {
|
|
729
378
|
if (output.statusCode >= 300) {
|
|
730
|
-
return
|
|
379
|
+
return de_CommandError(output, context);
|
|
731
380
|
}
|
|
732
381
|
const data = await parseBody(output.body, context);
|
|
733
382
|
let contents = {};
|
|
@@ -738,31 +387,9 @@ export const de_DescribeDRTAccessCommand = async (output, context) => {
|
|
|
738
387
|
};
|
|
739
388
|
return response;
|
|
740
389
|
};
|
|
741
|
-
const de_DescribeDRTAccessCommandError = 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 "InternalErrorException":
|
|
749
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
750
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ResourceNotFoundException":
|
|
752
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
753
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
754
|
-
default:
|
|
755
|
-
const parsedBody = parsedOutput.body;
|
|
756
|
-
return throwDefaultError({
|
|
757
|
-
output,
|
|
758
|
-
parsedBody,
|
|
759
|
-
errorCode,
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
390
|
export const de_DescribeEmergencyContactSettingsCommand = async (output, context) => {
|
|
764
391
|
if (output.statusCode >= 300) {
|
|
765
|
-
return
|
|
392
|
+
return de_CommandError(output, context);
|
|
766
393
|
}
|
|
767
394
|
const data = await parseBody(output.body, context);
|
|
768
395
|
let contents = {};
|
|
@@ -773,31 +400,9 @@ export const de_DescribeEmergencyContactSettingsCommand = async (output, context
|
|
|
773
400
|
};
|
|
774
401
|
return response;
|
|
775
402
|
};
|
|
776
|
-
const de_DescribeEmergencyContactSettingsCommandError = async (output, context) => {
|
|
777
|
-
const parsedOutput = {
|
|
778
|
-
...output,
|
|
779
|
-
body: await parseErrorBody(output.body, context),
|
|
780
|
-
};
|
|
781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
-
switch (errorCode) {
|
|
783
|
-
case "InternalErrorException":
|
|
784
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
785
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ResourceNotFoundException":
|
|
787
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
788
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
789
|
-
default:
|
|
790
|
-
const parsedBody = parsedOutput.body;
|
|
791
|
-
return throwDefaultError({
|
|
792
|
-
output,
|
|
793
|
-
parsedBody,
|
|
794
|
-
errorCode,
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
403
|
export const de_DescribeProtectionCommand = async (output, context) => {
|
|
799
404
|
if (output.statusCode >= 300) {
|
|
800
|
-
return
|
|
405
|
+
return de_CommandError(output, context);
|
|
801
406
|
}
|
|
802
407
|
const data = await parseBody(output.body, context);
|
|
803
408
|
let contents = {};
|
|
@@ -808,34 +413,9 @@ export const de_DescribeProtectionCommand = async (output, context) => {
|
|
|
808
413
|
};
|
|
809
414
|
return response;
|
|
810
415
|
};
|
|
811
|
-
const de_DescribeProtectionCommandError = async (output, context) => {
|
|
812
|
-
const parsedOutput = {
|
|
813
|
-
...output,
|
|
814
|
-
body: await parseErrorBody(output.body, context),
|
|
815
|
-
};
|
|
816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
|
-
switch (errorCode) {
|
|
818
|
-
case "InternalErrorException":
|
|
819
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
820
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
821
|
-
case "InvalidParameterException":
|
|
822
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
823
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ResourceNotFoundException":
|
|
825
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
826
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
827
|
-
default:
|
|
828
|
-
const parsedBody = parsedOutput.body;
|
|
829
|
-
return throwDefaultError({
|
|
830
|
-
output,
|
|
831
|
-
parsedBody,
|
|
832
|
-
errorCode,
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
};
|
|
836
416
|
export const de_DescribeProtectionGroupCommand = async (output, context) => {
|
|
837
417
|
if (output.statusCode >= 300) {
|
|
838
|
-
return
|
|
418
|
+
return de_CommandError(output, context);
|
|
839
419
|
}
|
|
840
420
|
const data = await parseBody(output.body, context);
|
|
841
421
|
let contents = {};
|
|
@@ -846,31 +426,9 @@ export const de_DescribeProtectionGroupCommand = async (output, context) => {
|
|
|
846
426
|
};
|
|
847
427
|
return response;
|
|
848
428
|
};
|
|
849
|
-
const de_DescribeProtectionGroupCommandError = 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 "InternalErrorException":
|
|
857
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
858
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ResourceNotFoundException":
|
|
860
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
861
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
862
|
-
default:
|
|
863
|
-
const parsedBody = parsedOutput.body;
|
|
864
|
-
return throwDefaultError({
|
|
865
|
-
output,
|
|
866
|
-
parsedBody,
|
|
867
|
-
errorCode,
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
429
|
export const de_DescribeSubscriptionCommand = async (output, context) => {
|
|
872
430
|
if (output.statusCode >= 300) {
|
|
873
|
-
return
|
|
431
|
+
return de_CommandError(output, context);
|
|
874
432
|
}
|
|
875
433
|
const data = await parseBody(output.body, context);
|
|
876
434
|
let contents = {};
|
|
@@ -881,31 +439,9 @@ export const de_DescribeSubscriptionCommand = async (output, context) => {
|
|
|
881
439
|
};
|
|
882
440
|
return response;
|
|
883
441
|
};
|
|
884
|
-
const de_DescribeSubscriptionCommandError = async (output, context) => {
|
|
885
|
-
const parsedOutput = {
|
|
886
|
-
...output,
|
|
887
|
-
body: await parseErrorBody(output.body, context),
|
|
888
|
-
};
|
|
889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
-
switch (errorCode) {
|
|
891
|
-
case "InternalErrorException":
|
|
892
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
893
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ResourceNotFoundException":
|
|
895
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
896
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
897
|
-
default:
|
|
898
|
-
const parsedBody = parsedOutput.body;
|
|
899
|
-
return throwDefaultError({
|
|
900
|
-
output,
|
|
901
|
-
parsedBody,
|
|
902
|
-
errorCode,
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
};
|
|
906
442
|
export const de_DisableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
907
443
|
if (output.statusCode >= 300) {
|
|
908
|
-
return
|
|
444
|
+
return de_CommandError(output, context);
|
|
909
445
|
}
|
|
910
446
|
const data = await parseBody(output.body, context);
|
|
911
447
|
let contents = {};
|
|
@@ -916,40 +452,9 @@ export const de_DisableApplicationLayerAutomaticResponseCommand = async (output,
|
|
|
916
452
|
};
|
|
917
453
|
return response;
|
|
918
454
|
};
|
|
919
|
-
const de_DisableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
920
|
-
const parsedOutput = {
|
|
921
|
-
...output,
|
|
922
|
-
body: await parseErrorBody(output.body, context),
|
|
923
|
-
};
|
|
924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
-
switch (errorCode) {
|
|
926
|
-
case "InternalErrorException":
|
|
927
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
928
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
929
|
-
case "InvalidOperationException":
|
|
930
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
931
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
932
|
-
case "InvalidParameterException":
|
|
933
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
934
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
935
|
-
case "OptimisticLockException":
|
|
936
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
937
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ResourceNotFoundException":
|
|
939
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
940
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
941
|
-
default:
|
|
942
|
-
const parsedBody = parsedOutput.body;
|
|
943
|
-
return throwDefaultError({
|
|
944
|
-
output,
|
|
945
|
-
parsedBody,
|
|
946
|
-
errorCode,
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
};
|
|
950
455
|
export const de_DisableProactiveEngagementCommand = async (output, context) => {
|
|
951
456
|
if (output.statusCode >= 300) {
|
|
952
|
-
return
|
|
457
|
+
return de_CommandError(output, context);
|
|
953
458
|
}
|
|
954
459
|
const data = await parseBody(output.body, context);
|
|
955
460
|
let contents = {};
|
|
@@ -960,40 +465,9 @@ export const de_DisableProactiveEngagementCommand = async (output, context) => {
|
|
|
960
465
|
};
|
|
961
466
|
return response;
|
|
962
467
|
};
|
|
963
|
-
const de_DisableProactiveEngagementCommandError = async (output, context) => {
|
|
964
|
-
const parsedOutput = {
|
|
965
|
-
...output,
|
|
966
|
-
body: await parseErrorBody(output.body, context),
|
|
967
|
-
};
|
|
968
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
-
switch (errorCode) {
|
|
970
|
-
case "InternalErrorException":
|
|
971
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
972
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
973
|
-
case "InvalidOperationException":
|
|
974
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
975
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
976
|
-
case "InvalidParameterException":
|
|
977
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
978
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
979
|
-
case "OptimisticLockException":
|
|
980
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
981
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ResourceNotFoundException":
|
|
983
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
985
|
-
default:
|
|
986
|
-
const parsedBody = parsedOutput.body;
|
|
987
|
-
return throwDefaultError({
|
|
988
|
-
output,
|
|
989
|
-
parsedBody,
|
|
990
|
-
errorCode,
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
};
|
|
994
468
|
export const de_DisassociateDRTLogBucketCommand = async (output, context) => {
|
|
995
469
|
if (output.statusCode >= 300) {
|
|
996
|
-
return
|
|
470
|
+
return de_CommandError(output, context);
|
|
997
471
|
}
|
|
998
472
|
const data = await parseBody(output.body, context);
|
|
999
473
|
let contents = {};
|
|
@@ -1004,43 +478,9 @@ export const de_DisassociateDRTLogBucketCommand = async (output, context) => {
|
|
|
1004
478
|
};
|
|
1005
479
|
return response;
|
|
1006
480
|
};
|
|
1007
|
-
const de_DisassociateDRTLogBucketCommandError = async (output, context) => {
|
|
1008
|
-
const parsedOutput = {
|
|
1009
|
-
...output,
|
|
1010
|
-
body: await parseErrorBody(output.body, context),
|
|
1011
|
-
};
|
|
1012
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
|
-
switch (errorCode) {
|
|
1014
|
-
case "AccessDeniedForDependencyException":
|
|
1015
|
-
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
1016
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "InternalErrorException":
|
|
1018
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1019
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "InvalidOperationException":
|
|
1021
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1022
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "NoAssociatedRoleException":
|
|
1024
|
-
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
1025
|
-
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "OptimisticLockException":
|
|
1027
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1028
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "ResourceNotFoundException":
|
|
1030
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1031
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1032
|
-
default:
|
|
1033
|
-
const parsedBody = parsedOutput.body;
|
|
1034
|
-
return throwDefaultError({
|
|
1035
|
-
output,
|
|
1036
|
-
parsedBody,
|
|
1037
|
-
errorCode,
|
|
1038
|
-
});
|
|
1039
|
-
}
|
|
1040
|
-
};
|
|
1041
481
|
export const de_DisassociateDRTRoleCommand = async (output, context) => {
|
|
1042
482
|
if (output.statusCode >= 300) {
|
|
1043
|
-
return
|
|
483
|
+
return de_CommandError(output, context);
|
|
1044
484
|
}
|
|
1045
485
|
const data = await parseBody(output.body, context);
|
|
1046
486
|
let contents = {};
|
|
@@ -1051,37 +491,9 @@ export const de_DisassociateDRTRoleCommand = async (output, context) => {
|
|
|
1051
491
|
};
|
|
1052
492
|
return response;
|
|
1053
493
|
};
|
|
1054
|
-
const de_DisassociateDRTRoleCommandError = async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context),
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
-
switch (errorCode) {
|
|
1061
|
-
case "InternalErrorException":
|
|
1062
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1063
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "InvalidOperationException":
|
|
1065
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1066
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "OptimisticLockException":
|
|
1068
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1069
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ResourceNotFoundException":
|
|
1071
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1072
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1073
|
-
default:
|
|
1074
|
-
const parsedBody = parsedOutput.body;
|
|
1075
|
-
return throwDefaultError({
|
|
1076
|
-
output,
|
|
1077
|
-
parsedBody,
|
|
1078
|
-
errorCode,
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
};
|
|
1082
494
|
export const de_DisassociateHealthCheckCommand = async (output, context) => {
|
|
1083
495
|
if (output.statusCode >= 300) {
|
|
1084
|
-
return
|
|
496
|
+
return de_CommandError(output, context);
|
|
1085
497
|
}
|
|
1086
498
|
const data = await parseBody(output.body, context);
|
|
1087
499
|
let contents = {};
|
|
@@ -1092,40 +504,9 @@ export const de_DisassociateHealthCheckCommand = async (output, context) => {
|
|
|
1092
504
|
};
|
|
1093
505
|
return response;
|
|
1094
506
|
};
|
|
1095
|
-
const de_DisassociateHealthCheckCommandError = async (output, context) => {
|
|
1096
|
-
const parsedOutput = {
|
|
1097
|
-
...output,
|
|
1098
|
-
body: await parseErrorBody(output.body, context),
|
|
1099
|
-
};
|
|
1100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
-
switch (errorCode) {
|
|
1102
|
-
case "InternalErrorException":
|
|
1103
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1104
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "InvalidParameterException":
|
|
1106
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1107
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "InvalidResourceException":
|
|
1109
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1110
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "OptimisticLockException":
|
|
1112
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1113
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ResourceNotFoundException":
|
|
1115
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1116
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
return throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
errorCode,
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
};
|
|
1126
507
|
export const de_EnableApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
1127
508
|
if (output.statusCode >= 300) {
|
|
1128
|
-
return
|
|
509
|
+
return de_CommandError(output, context);
|
|
1129
510
|
}
|
|
1130
511
|
const data = await parseBody(output.body, context);
|
|
1131
512
|
let contents = {};
|
|
@@ -1136,43 +517,9 @@ export const de_EnableApplicationLayerAutomaticResponseCommand = async (output,
|
|
|
1136
517
|
};
|
|
1137
518
|
return response;
|
|
1138
519
|
};
|
|
1139
|
-
const de_EnableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1140
|
-
const parsedOutput = {
|
|
1141
|
-
...output,
|
|
1142
|
-
body: await parseErrorBody(output.body, context),
|
|
1143
|
-
};
|
|
1144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
-
switch (errorCode) {
|
|
1146
|
-
case "InternalErrorException":
|
|
1147
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1148
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "InvalidOperationException":
|
|
1150
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1151
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "InvalidParameterException":
|
|
1153
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1154
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "LimitsExceededException":
|
|
1156
|
-
case "com.amazonaws.shield#LimitsExceededException":
|
|
1157
|
-
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "OptimisticLockException":
|
|
1159
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1160
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ResourceNotFoundException":
|
|
1162
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1163
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1164
|
-
default:
|
|
1165
|
-
const parsedBody = parsedOutput.body;
|
|
1166
|
-
return throwDefaultError({
|
|
1167
|
-
output,
|
|
1168
|
-
parsedBody,
|
|
1169
|
-
errorCode,
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
520
|
export const de_EnableProactiveEngagementCommand = async (output, context) => {
|
|
1174
521
|
if (output.statusCode >= 300) {
|
|
1175
|
-
return
|
|
522
|
+
return de_CommandError(output, context);
|
|
1176
523
|
}
|
|
1177
524
|
const data = await parseBody(output.body, context);
|
|
1178
525
|
let contents = {};
|
|
@@ -1183,40 +530,9 @@ export const de_EnableProactiveEngagementCommand = async (output, context) => {
|
|
|
1183
530
|
};
|
|
1184
531
|
return response;
|
|
1185
532
|
};
|
|
1186
|
-
const de_EnableProactiveEngagementCommandError = async (output, context) => {
|
|
1187
|
-
const parsedOutput = {
|
|
1188
|
-
...output,
|
|
1189
|
-
body: await parseErrorBody(output.body, context),
|
|
1190
|
-
};
|
|
1191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1192
|
-
switch (errorCode) {
|
|
1193
|
-
case "InternalErrorException":
|
|
1194
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1195
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "InvalidOperationException":
|
|
1197
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1198
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "InvalidParameterException":
|
|
1200
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1201
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "OptimisticLockException":
|
|
1203
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1204
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "ResourceNotFoundException":
|
|
1206
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1208
|
-
default:
|
|
1209
|
-
const parsedBody = parsedOutput.body;
|
|
1210
|
-
return throwDefaultError({
|
|
1211
|
-
output,
|
|
1212
|
-
parsedBody,
|
|
1213
|
-
errorCode,
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
533
|
export const de_GetSubscriptionStateCommand = async (output, context) => {
|
|
1218
534
|
if (output.statusCode >= 300) {
|
|
1219
|
-
return
|
|
535
|
+
return de_CommandError(output, context);
|
|
1220
536
|
}
|
|
1221
537
|
const data = await parseBody(output.body, context);
|
|
1222
538
|
let contents = {};
|
|
@@ -1227,104 +543,22 @@ export const de_GetSubscriptionStateCommand = async (output, context) => {
|
|
|
1227
543
|
};
|
|
1228
544
|
return response;
|
|
1229
545
|
};
|
|
1230
|
-
const de_GetSubscriptionStateCommandError = async (output, context) => {
|
|
1231
|
-
const parsedOutput = {
|
|
1232
|
-
...output,
|
|
1233
|
-
body: await parseErrorBody(output.body, context),
|
|
1234
|
-
};
|
|
1235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
-
switch (errorCode) {
|
|
1237
|
-
case "InternalErrorException":
|
|
1238
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1239
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1240
|
-
default:
|
|
1241
|
-
const parsedBody = parsedOutput.body;
|
|
1242
|
-
return throwDefaultError({
|
|
1243
|
-
output,
|
|
1244
|
-
parsedBody,
|
|
1245
|
-
errorCode,
|
|
1246
|
-
});
|
|
1247
|
-
}
|
|
1248
|
-
};
|
|
1249
546
|
export const de_ListAttacksCommand = async (output, context) => {
|
|
1250
547
|
if (output.statusCode >= 300) {
|
|
1251
|
-
return
|
|
1252
|
-
}
|
|
1253
|
-
const data = await parseBody(output.body, context);
|
|
1254
|
-
let contents = {};
|
|
1255
|
-
contents = de_ListAttacksResponse(data, context);
|
|
1256
|
-
const response = {
|
|
1257
|
-
$metadata: deserializeMetadata(output),
|
|
1258
|
-
...contents,
|
|
1259
|
-
};
|
|
1260
|
-
return response;
|
|
1261
|
-
};
|
|
1262
|
-
const de_ListAttacksCommandError = async (output, context) => {
|
|
1263
|
-
const parsedOutput = {
|
|
1264
|
-
...output,
|
|
1265
|
-
body: await parseErrorBody(output.body, context),
|
|
1266
|
-
};
|
|
1267
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
|
-
switch (errorCode) {
|
|
1269
|
-
case "InternalErrorException":
|
|
1270
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1271
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "InvalidOperationException":
|
|
1273
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1274
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "InvalidParameterException":
|
|
1276
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1277
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1278
|
-
default:
|
|
1279
|
-
const parsedBody = parsedOutput.body;
|
|
1280
|
-
return throwDefaultError({
|
|
1281
|
-
output,
|
|
1282
|
-
parsedBody,
|
|
1283
|
-
errorCode,
|
|
1284
|
-
});
|
|
1285
|
-
}
|
|
1286
|
-
};
|
|
1287
|
-
export const de_ListProtectionGroupsCommand = async (output, context) => {
|
|
1288
|
-
if (output.statusCode >= 300) {
|
|
1289
|
-
return de_ListProtectionGroupsCommandError(output, context);
|
|
548
|
+
return de_CommandError(output, context);
|
|
1290
549
|
}
|
|
1291
550
|
const data = await parseBody(output.body, context);
|
|
1292
551
|
let contents = {};
|
|
1293
|
-
contents =
|
|
1294
|
-
const response = {
|
|
1295
|
-
$metadata: deserializeMetadata(output),
|
|
1296
|
-
...contents,
|
|
1297
|
-
};
|
|
1298
|
-
return response;
|
|
1299
|
-
};
|
|
1300
|
-
const de_ListProtectionGroupsCommandError = async (output, context) => {
|
|
1301
|
-
const parsedOutput = {
|
|
1302
|
-
...output,
|
|
1303
|
-
body: await parseErrorBody(output.body, context),
|
|
1304
|
-
};
|
|
1305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
-
switch (errorCode) {
|
|
1307
|
-
case "InternalErrorException":
|
|
1308
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1309
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "InvalidPaginationTokenException":
|
|
1311
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1312
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ResourceNotFoundException":
|
|
1314
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1315
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1316
|
-
default:
|
|
1317
|
-
const parsedBody = parsedOutput.body;
|
|
1318
|
-
return throwDefaultError({
|
|
1319
|
-
output,
|
|
1320
|
-
parsedBody,
|
|
1321
|
-
errorCode,
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
552
|
+
contents = de_ListAttacksResponse(data, context);
|
|
553
|
+
const response = {
|
|
554
|
+
$metadata: deserializeMetadata(output),
|
|
555
|
+
...contents,
|
|
556
|
+
};
|
|
557
|
+
return response;
|
|
1324
558
|
};
|
|
1325
|
-
export const
|
|
559
|
+
export const de_ListProtectionGroupsCommand = async (output, context) => {
|
|
1326
560
|
if (output.statusCode >= 300) {
|
|
1327
|
-
return
|
|
561
|
+
return de_CommandError(output, context);
|
|
1328
562
|
}
|
|
1329
563
|
const data = await parseBody(output.body, context);
|
|
1330
564
|
let contents = {};
|
|
@@ -1335,34 +569,22 @@ export const de_ListProtectionsCommand = async (output, context) => {
|
|
|
1335
569
|
};
|
|
1336
570
|
return response;
|
|
1337
571
|
};
|
|
1338
|
-
const
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
body: await parseErrorBody(output.body, context),
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "InternalErrorException":
|
|
1346
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1347
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "InvalidPaginationTokenException":
|
|
1349
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1350
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "ResourceNotFoundException":
|
|
1352
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1353
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1354
|
-
default:
|
|
1355
|
-
const parsedBody = parsedOutput.body;
|
|
1356
|
-
return throwDefaultError({
|
|
1357
|
-
output,
|
|
1358
|
-
parsedBody,
|
|
1359
|
-
errorCode,
|
|
1360
|
-
});
|
|
572
|
+
export const de_ListProtectionsCommand = async (output, context) => {
|
|
573
|
+
if (output.statusCode >= 300) {
|
|
574
|
+
return de_CommandError(output, context);
|
|
1361
575
|
}
|
|
576
|
+
const data = await parseBody(output.body, context);
|
|
577
|
+
let contents = {};
|
|
578
|
+
contents = _json(data);
|
|
579
|
+
const response = {
|
|
580
|
+
$metadata: deserializeMetadata(output),
|
|
581
|
+
...contents,
|
|
582
|
+
};
|
|
583
|
+
return response;
|
|
1362
584
|
};
|
|
1363
585
|
export const de_ListResourcesInProtectionGroupCommand = async (output, context) => {
|
|
1364
586
|
if (output.statusCode >= 300) {
|
|
1365
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
1366
588
|
}
|
|
1367
589
|
const data = await parseBody(output.body, context);
|
|
1368
590
|
let contents = {};
|
|
@@ -1373,34 +595,9 @@ export const de_ListResourcesInProtectionGroupCommand = async (output, context)
|
|
|
1373
595
|
};
|
|
1374
596
|
return response;
|
|
1375
597
|
};
|
|
1376
|
-
const de_ListResourcesInProtectionGroupCommandError = async (output, context) => {
|
|
1377
|
-
const parsedOutput = {
|
|
1378
|
-
...output,
|
|
1379
|
-
body: await parseErrorBody(output.body, context),
|
|
1380
|
-
};
|
|
1381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
-
switch (errorCode) {
|
|
1383
|
-
case "InternalErrorException":
|
|
1384
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1385
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "InvalidPaginationTokenException":
|
|
1387
|
-
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
1388
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "ResourceNotFoundException":
|
|
1390
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1391
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1392
|
-
default:
|
|
1393
|
-
const parsedBody = parsedOutput.body;
|
|
1394
|
-
return throwDefaultError({
|
|
1395
|
-
output,
|
|
1396
|
-
parsedBody,
|
|
1397
|
-
errorCode,
|
|
1398
|
-
});
|
|
1399
|
-
}
|
|
1400
|
-
};
|
|
1401
598
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1402
599
|
if (output.statusCode >= 300) {
|
|
1403
|
-
return
|
|
600
|
+
return de_CommandError(output, context);
|
|
1404
601
|
}
|
|
1405
602
|
const data = await parseBody(output.body, context);
|
|
1406
603
|
let contents = {};
|
|
@@ -1411,34 +608,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1411
608
|
};
|
|
1412
609
|
return response;
|
|
1413
610
|
};
|
|
1414
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1415
|
-
const parsedOutput = {
|
|
1416
|
-
...output,
|
|
1417
|
-
body: await parseErrorBody(output.body, context),
|
|
1418
|
-
};
|
|
1419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
|
-
switch (errorCode) {
|
|
1421
|
-
case "InternalErrorException":
|
|
1422
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1423
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "InvalidResourceException":
|
|
1425
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1426
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "ResourceNotFoundException":
|
|
1428
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody,
|
|
1435
|
-
errorCode,
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
};
|
|
1439
611
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1440
612
|
if (output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
613
|
+
return de_CommandError(output, context);
|
|
1442
614
|
}
|
|
1443
615
|
const data = await parseBody(output.body, context);
|
|
1444
616
|
let contents = {};
|
|
@@ -1449,37 +621,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1449
621
|
};
|
|
1450
622
|
return response;
|
|
1451
623
|
};
|
|
1452
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context),
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "InternalErrorException":
|
|
1460
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1461
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "InvalidParameterException":
|
|
1463
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1464
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "InvalidResourceException":
|
|
1466
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1467
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ResourceNotFoundException":
|
|
1469
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1470
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1471
|
-
default:
|
|
1472
|
-
const parsedBody = parsedOutput.body;
|
|
1473
|
-
return throwDefaultError({
|
|
1474
|
-
output,
|
|
1475
|
-
parsedBody,
|
|
1476
|
-
errorCode,
|
|
1477
|
-
});
|
|
1478
|
-
}
|
|
1479
|
-
};
|
|
1480
624
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1481
625
|
if (output.statusCode >= 300) {
|
|
1482
|
-
return
|
|
626
|
+
return de_CommandError(output, context);
|
|
1483
627
|
}
|
|
1484
628
|
const data = await parseBody(output.body, context);
|
|
1485
629
|
let contents = {};
|
|
@@ -1490,37 +634,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1490
634
|
};
|
|
1491
635
|
return response;
|
|
1492
636
|
};
|
|
1493
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1494
|
-
const parsedOutput = {
|
|
1495
|
-
...output,
|
|
1496
|
-
body: await parseErrorBody(output.body, context),
|
|
1497
|
-
};
|
|
1498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1499
|
-
switch (errorCode) {
|
|
1500
|
-
case "InternalErrorException":
|
|
1501
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1502
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "InvalidParameterException":
|
|
1504
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1505
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "InvalidResourceException":
|
|
1507
|
-
case "com.amazonaws.shield#InvalidResourceException":
|
|
1508
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "ResourceNotFoundException":
|
|
1510
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1511
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1512
|
-
default:
|
|
1513
|
-
const parsedBody = parsedOutput.body;
|
|
1514
|
-
return throwDefaultError({
|
|
1515
|
-
output,
|
|
1516
|
-
parsedBody,
|
|
1517
|
-
errorCode,
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
637
|
export const de_UpdateApplicationLayerAutomaticResponseCommand = async (output, context) => {
|
|
1522
638
|
if (output.statusCode >= 300) {
|
|
1523
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
1524
640
|
}
|
|
1525
641
|
const data = await parseBody(output.body, context);
|
|
1526
642
|
let contents = {};
|
|
@@ -1531,40 +647,9 @@ export const de_UpdateApplicationLayerAutomaticResponseCommand = async (output,
|
|
|
1531
647
|
};
|
|
1532
648
|
return response;
|
|
1533
649
|
};
|
|
1534
|
-
const de_UpdateApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1535
|
-
const parsedOutput = {
|
|
1536
|
-
...output,
|
|
1537
|
-
body: await parseErrorBody(output.body, context),
|
|
1538
|
-
};
|
|
1539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
|
-
switch (errorCode) {
|
|
1541
|
-
case "InternalErrorException":
|
|
1542
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1543
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "InvalidOperationException":
|
|
1545
|
-
case "com.amazonaws.shield#InvalidOperationException":
|
|
1546
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "InvalidParameterException":
|
|
1548
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1549
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "OptimisticLockException":
|
|
1551
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1552
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ResourceNotFoundException":
|
|
1554
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1555
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1556
|
-
default:
|
|
1557
|
-
const parsedBody = parsedOutput.body;
|
|
1558
|
-
return throwDefaultError({
|
|
1559
|
-
output,
|
|
1560
|
-
parsedBody,
|
|
1561
|
-
errorCode,
|
|
1562
|
-
});
|
|
1563
|
-
}
|
|
1564
|
-
};
|
|
1565
650
|
export const de_UpdateEmergencyContactSettingsCommand = async (output, context) => {
|
|
1566
651
|
if (output.statusCode >= 300) {
|
|
1567
|
-
return
|
|
652
|
+
return de_CommandError(output, context);
|
|
1568
653
|
}
|
|
1569
654
|
const data = await parseBody(output.body, context);
|
|
1570
655
|
let contents = {};
|
|
@@ -1575,37 +660,9 @@ export const de_UpdateEmergencyContactSettingsCommand = async (output, context)
|
|
|
1575
660
|
};
|
|
1576
661
|
return response;
|
|
1577
662
|
};
|
|
1578
|
-
const de_UpdateEmergencyContactSettingsCommandError = async (output, context) => {
|
|
1579
|
-
const parsedOutput = {
|
|
1580
|
-
...output,
|
|
1581
|
-
body: await parseErrorBody(output.body, context),
|
|
1582
|
-
};
|
|
1583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
|
-
switch (errorCode) {
|
|
1585
|
-
case "InternalErrorException":
|
|
1586
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1587
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "InvalidParameterException":
|
|
1589
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1590
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "OptimisticLockException":
|
|
1592
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1593
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "ResourceNotFoundException":
|
|
1595
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1596
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1597
|
-
default:
|
|
1598
|
-
const parsedBody = parsedOutput.body;
|
|
1599
|
-
return throwDefaultError({
|
|
1600
|
-
output,
|
|
1601
|
-
parsedBody,
|
|
1602
|
-
errorCode,
|
|
1603
|
-
});
|
|
1604
|
-
}
|
|
1605
|
-
};
|
|
1606
663
|
export const de_UpdateProtectionGroupCommand = async (output, context) => {
|
|
1607
664
|
if (output.statusCode >= 300) {
|
|
1608
|
-
return
|
|
665
|
+
return de_CommandError(output, context);
|
|
1609
666
|
}
|
|
1610
667
|
const data = await parseBody(output.body, context);
|
|
1611
668
|
let contents = {};
|
|
@@ -1616,37 +673,9 @@ export const de_UpdateProtectionGroupCommand = async (output, context) => {
|
|
|
1616
673
|
};
|
|
1617
674
|
return response;
|
|
1618
675
|
};
|
|
1619
|
-
const de_UpdateProtectionGroupCommandError = async (output, context) => {
|
|
1620
|
-
const parsedOutput = {
|
|
1621
|
-
...output,
|
|
1622
|
-
body: await parseErrorBody(output.body, context),
|
|
1623
|
-
};
|
|
1624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
|
-
switch (errorCode) {
|
|
1626
|
-
case "InternalErrorException":
|
|
1627
|
-
case "com.amazonaws.shield#InternalErrorException":
|
|
1628
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1629
|
-
case "InvalidParameterException":
|
|
1630
|
-
case "com.amazonaws.shield#InvalidParameterException":
|
|
1631
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "OptimisticLockException":
|
|
1633
|
-
case "com.amazonaws.shield#OptimisticLockException":
|
|
1634
|
-
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "ResourceNotFoundException":
|
|
1636
|
-
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1638
|
-
default:
|
|
1639
|
-
const parsedBody = parsedOutput.body;
|
|
1640
|
-
return throwDefaultError({
|
|
1641
|
-
output,
|
|
1642
|
-
parsedBody,
|
|
1643
|
-
errorCode,
|
|
1644
|
-
});
|
|
1645
|
-
}
|
|
1646
|
-
};
|
|
1647
676
|
export const de_UpdateSubscriptionCommand = async (output, context) => {
|
|
1648
677
|
if (output.statusCode >= 300) {
|
|
1649
|
-
return
|
|
678
|
+
return de_CommandError(output, context);
|
|
1650
679
|
}
|
|
1651
680
|
const data = await parseBody(output.body, context);
|
|
1652
681
|
let contents = {};
|
|
@@ -1657,28 +686,52 @@ export const de_UpdateSubscriptionCommand = async (output, context) => {
|
|
|
1657
686
|
};
|
|
1658
687
|
return response;
|
|
1659
688
|
};
|
|
1660
|
-
const
|
|
689
|
+
const de_CommandError = async (output, context) => {
|
|
1661
690
|
const parsedOutput = {
|
|
1662
691
|
...output,
|
|
1663
692
|
body: await parseErrorBody(output.body, context),
|
|
1664
693
|
};
|
|
1665
694
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
695
|
switch (errorCode) {
|
|
696
|
+
case "AccessDeniedForDependencyException":
|
|
697
|
+
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
698
|
+
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
1667
699
|
case "InternalErrorException":
|
|
1668
700
|
case "com.amazonaws.shield#InternalErrorException":
|
|
1669
701
|
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
702
|
+
case "InvalidOperationException":
|
|
703
|
+
case "com.amazonaws.shield#InvalidOperationException":
|
|
704
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1670
705
|
case "InvalidParameterException":
|
|
1671
706
|
case "com.amazonaws.shield#InvalidParameterException":
|
|
1672
707
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "
|
|
1674
|
-
case "com.amazonaws.shield#
|
|
1675
|
-
throw await
|
|
708
|
+
case "LimitsExceededException":
|
|
709
|
+
case "com.amazonaws.shield#LimitsExceededException":
|
|
710
|
+
throw await de_LimitsExceededExceptionRes(parsedOutput, context);
|
|
711
|
+
case "NoAssociatedRoleException":
|
|
712
|
+
case "com.amazonaws.shield#NoAssociatedRoleException":
|
|
713
|
+
throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context);
|
|
1676
714
|
case "OptimisticLockException":
|
|
1677
715
|
case "com.amazonaws.shield#OptimisticLockException":
|
|
1678
716
|
throw await de_OptimisticLockExceptionRes(parsedOutput, context);
|
|
1679
717
|
case "ResourceNotFoundException":
|
|
1680
718
|
case "com.amazonaws.shield#ResourceNotFoundException":
|
|
1681
719
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
720
|
+
case "InvalidResourceException":
|
|
721
|
+
case "com.amazonaws.shield#InvalidResourceException":
|
|
722
|
+
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
723
|
+
case "ResourceAlreadyExistsException":
|
|
724
|
+
case "com.amazonaws.shield#ResourceAlreadyExistsException":
|
|
725
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
726
|
+
case "LockedSubscriptionException":
|
|
727
|
+
case "com.amazonaws.shield#LockedSubscriptionException":
|
|
728
|
+
throw await de_LockedSubscriptionExceptionRes(parsedOutput, context);
|
|
729
|
+
case "AccessDeniedException":
|
|
730
|
+
case "com.amazonaws.shield#AccessDeniedException":
|
|
731
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
732
|
+
case "InvalidPaginationTokenException":
|
|
733
|
+
case "com.amazonaws.shield#InvalidPaginationTokenException":
|
|
734
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
1682
735
|
default:
|
|
1683
736
|
const parsedBody = parsedOutput.body;
|
|
1684
737
|
return throwDefaultError({
|