@aws-sdk/client-transfer 3.50.0 → 3.53.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/CHANGELOG.md +31 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/TransferServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +134 -3
- package/dist-cjs/protocols/Aws_json1_1.js +378 -1302
- package/dist-es/index.js +1 -0
- package/dist-es/models/TransferServiceException.js +12 -0
- package/dist-es/models/models_0.js +123 -1
- package/dist-es/protocols/Aws_json1_1.js +789 -1422
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/TransferServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +137 -74
- package/dist-types/ts3.4/Transfer.d.ts +165 -0
- package/dist-types/ts3.4/TransferClient.d.ts +105 -0
- package/dist-types/ts3.4/commands/CreateAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateServerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteServerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteSshPublicKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeSecurityPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeServerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWorkflowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ImportSshPublicKeyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccessesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSecurityPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListServersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendWorkflowStepStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartServerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopServerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TestIdentityProviderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateServerCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +32 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/TransferServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1353 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAccessesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExecutionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListSecurityPoliciesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListServersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_1ListExecutionsCommand = exports.deserializeAws_jso
|
|
|
4
4
|
exports.deserializeAws_json1_1UpdateUserCommand = exports.deserializeAws_json1_1UpdateServerCommand = exports.deserializeAws_json1_1UpdateAccessCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TestIdentityProviderCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopServerCommand = exports.deserializeAws_json1_1StartServerCommand = exports.deserializeAws_json1_1SendWorkflowStepStateCommand = exports.deserializeAws_json1_1ListWorkflowsCommand = exports.deserializeAws_json1_1ListUsersCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListServersCommand = exports.deserializeAws_json1_1ListSecurityPoliciesCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const TransferServiceException_1 = require("../models/TransferServiceException");
|
|
7
9
|
const serializeAws_json1_1CreateAccessCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -349,59 +351,28 @@ const deserializeAws_json1_1CreateAccessCommandError = async (output, context) =
|
|
|
349
351
|
switch (errorCode) {
|
|
350
352
|
case "InternalServiceError":
|
|
351
353
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
352
|
-
|
|
353
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
354
|
-
name: errorCode,
|
|
355
|
-
$metadata: deserializeMetadata(output),
|
|
356
|
-
};
|
|
357
|
-
break;
|
|
354
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
358
355
|
case "InvalidRequestException":
|
|
359
356
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
360
|
-
|
|
361
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
362
|
-
name: errorCode,
|
|
363
|
-
$metadata: deserializeMetadata(output),
|
|
364
|
-
};
|
|
365
|
-
break;
|
|
357
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
366
358
|
case "ResourceExistsException":
|
|
367
359
|
case "com.amazonaws.transfer#ResourceExistsException":
|
|
368
|
-
|
|
369
|
-
...(await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context)),
|
|
370
|
-
name: errorCode,
|
|
371
|
-
$metadata: deserializeMetadata(output),
|
|
372
|
-
};
|
|
373
|
-
break;
|
|
360
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
374
361
|
case "ResourceNotFoundException":
|
|
375
362
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
376
|
-
|
|
377
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
378
|
-
name: errorCode,
|
|
379
|
-
$metadata: deserializeMetadata(output),
|
|
380
|
-
};
|
|
381
|
-
break;
|
|
363
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
382
364
|
case "ServiceUnavailableException":
|
|
383
365
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
384
|
-
|
|
385
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
386
|
-
name: errorCode,
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
};
|
|
389
|
-
break;
|
|
366
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
390
367
|
default:
|
|
391
368
|
const parsedBody = parsedOutput.body;
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
...parsedBody,
|
|
395
|
-
name: `${errorCode}`,
|
|
396
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
369
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
370
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
397
371
|
$fault: "client",
|
|
398
372
|
$metadata: deserializeMetadata(output),
|
|
399
|
-
};
|
|
373
|
+
});
|
|
374
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
400
375
|
}
|
|
401
|
-
const message = response.message || response.Message || errorCode;
|
|
402
|
-
response.message = message;
|
|
403
|
-
delete response.Message;
|
|
404
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
405
376
|
};
|
|
406
377
|
const deserializeAws_json1_1CreateServerCommand = async (output, context) => {
|
|
407
378
|
if (output.statusCode >= 300) {
|
|
@@ -428,75 +399,34 @@ const deserializeAws_json1_1CreateServerCommandError = async (output, context) =
|
|
|
428
399
|
switch (errorCode) {
|
|
429
400
|
case "AccessDeniedException":
|
|
430
401
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
431
|
-
|
|
432
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
433
|
-
name: errorCode,
|
|
434
|
-
$metadata: deserializeMetadata(output),
|
|
435
|
-
};
|
|
436
|
-
break;
|
|
402
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
437
403
|
case "InternalServiceError":
|
|
438
404
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
439
|
-
|
|
440
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
441
|
-
name: errorCode,
|
|
442
|
-
$metadata: deserializeMetadata(output),
|
|
443
|
-
};
|
|
444
|
-
break;
|
|
405
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
445
406
|
case "InvalidRequestException":
|
|
446
407
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
447
|
-
|
|
448
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
449
|
-
name: errorCode,
|
|
450
|
-
$metadata: deserializeMetadata(output),
|
|
451
|
-
};
|
|
452
|
-
break;
|
|
408
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
453
409
|
case "ResourceExistsException":
|
|
454
410
|
case "com.amazonaws.transfer#ResourceExistsException":
|
|
455
|
-
|
|
456
|
-
...(await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context)),
|
|
457
|
-
name: errorCode,
|
|
458
|
-
$metadata: deserializeMetadata(output),
|
|
459
|
-
};
|
|
460
|
-
break;
|
|
411
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
461
412
|
case "ResourceNotFoundException":
|
|
462
413
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
463
|
-
|
|
464
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
465
|
-
name: errorCode,
|
|
466
|
-
$metadata: deserializeMetadata(output),
|
|
467
|
-
};
|
|
468
|
-
break;
|
|
414
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
469
415
|
case "ServiceUnavailableException":
|
|
470
416
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
471
|
-
|
|
472
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
473
|
-
name: errorCode,
|
|
474
|
-
$metadata: deserializeMetadata(output),
|
|
475
|
-
};
|
|
476
|
-
break;
|
|
417
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
477
418
|
case "ThrottlingException":
|
|
478
419
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
479
|
-
|
|
480
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
481
|
-
name: errorCode,
|
|
482
|
-
$metadata: deserializeMetadata(output),
|
|
483
|
-
};
|
|
484
|
-
break;
|
|
420
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
485
421
|
default:
|
|
486
422
|
const parsedBody = parsedOutput.body;
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
...parsedBody,
|
|
490
|
-
name: `${errorCode}`,
|
|
491
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
423
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
424
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
492
425
|
$fault: "client",
|
|
493
426
|
$metadata: deserializeMetadata(output),
|
|
494
|
-
};
|
|
427
|
+
});
|
|
428
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
495
429
|
}
|
|
496
|
-
const message = response.message || response.Message || errorCode;
|
|
497
|
-
response.message = message;
|
|
498
|
-
delete response.Message;
|
|
499
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
500
430
|
};
|
|
501
431
|
const deserializeAws_json1_1CreateUserCommand = async (output, context) => {
|
|
502
432
|
if (output.statusCode >= 300) {
|
|
@@ -523,59 +453,28 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
|
|
|
523
453
|
switch (errorCode) {
|
|
524
454
|
case "InternalServiceError":
|
|
525
455
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
526
|
-
|
|
527
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
528
|
-
name: errorCode,
|
|
529
|
-
$metadata: deserializeMetadata(output),
|
|
530
|
-
};
|
|
531
|
-
break;
|
|
456
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
532
457
|
case "InvalidRequestException":
|
|
533
458
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
534
|
-
|
|
535
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
536
|
-
name: errorCode,
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
};
|
|
539
|
-
break;
|
|
459
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
540
460
|
case "ResourceExistsException":
|
|
541
461
|
case "com.amazonaws.transfer#ResourceExistsException":
|
|
542
|
-
|
|
543
|
-
...(await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context)),
|
|
544
|
-
name: errorCode,
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
};
|
|
547
|
-
break;
|
|
462
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
548
463
|
case "ResourceNotFoundException":
|
|
549
464
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
550
|
-
|
|
551
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
552
|
-
name: errorCode,
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
};
|
|
555
|
-
break;
|
|
465
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
556
466
|
case "ServiceUnavailableException":
|
|
557
467
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
558
|
-
|
|
559
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
560
|
-
name: errorCode,
|
|
561
|
-
$metadata: deserializeMetadata(output),
|
|
562
|
-
};
|
|
563
|
-
break;
|
|
468
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
564
469
|
default:
|
|
565
470
|
const parsedBody = parsedOutput.body;
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
...parsedBody,
|
|
569
|
-
name: `${errorCode}`,
|
|
570
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
471
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
472
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
571
473
|
$fault: "client",
|
|
572
474
|
$metadata: deserializeMetadata(output),
|
|
573
|
-
};
|
|
475
|
+
});
|
|
476
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
574
477
|
}
|
|
575
|
-
const message = response.message || response.Message || errorCode;
|
|
576
|
-
response.message = message;
|
|
577
|
-
delete response.Message;
|
|
578
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
579
478
|
};
|
|
580
479
|
const deserializeAws_json1_1CreateWorkflowCommand = async (output, context) => {
|
|
581
480
|
if (output.statusCode >= 300) {
|
|
@@ -602,67 +501,31 @@ const deserializeAws_json1_1CreateWorkflowCommandError = async (output, context)
|
|
|
602
501
|
switch (errorCode) {
|
|
603
502
|
case "AccessDeniedException":
|
|
604
503
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
605
|
-
|
|
606
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
607
|
-
name: errorCode,
|
|
608
|
-
$metadata: deserializeMetadata(output),
|
|
609
|
-
};
|
|
610
|
-
break;
|
|
504
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
611
505
|
case "InternalServiceError":
|
|
612
506
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
613
|
-
|
|
614
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
615
|
-
name: errorCode,
|
|
616
|
-
$metadata: deserializeMetadata(output),
|
|
617
|
-
};
|
|
618
|
-
break;
|
|
507
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
619
508
|
case "InvalidRequestException":
|
|
620
509
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
621
|
-
|
|
622
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
623
|
-
name: errorCode,
|
|
624
|
-
$metadata: deserializeMetadata(output),
|
|
625
|
-
};
|
|
626
|
-
break;
|
|
510
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
627
511
|
case "ResourceExistsException":
|
|
628
512
|
case "com.amazonaws.transfer#ResourceExistsException":
|
|
629
|
-
|
|
630
|
-
...(await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context)),
|
|
631
|
-
name: errorCode,
|
|
632
|
-
$metadata: deserializeMetadata(output),
|
|
633
|
-
};
|
|
634
|
-
break;
|
|
513
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
635
514
|
case "ServiceUnavailableException":
|
|
636
515
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
637
|
-
|
|
638
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
639
|
-
name: errorCode,
|
|
640
|
-
$metadata: deserializeMetadata(output),
|
|
641
|
-
};
|
|
642
|
-
break;
|
|
516
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
643
517
|
case "ThrottlingException":
|
|
644
518
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
645
|
-
|
|
646
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
647
|
-
name: errorCode,
|
|
648
|
-
$metadata: deserializeMetadata(output),
|
|
649
|
-
};
|
|
650
|
-
break;
|
|
519
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
651
520
|
default:
|
|
652
521
|
const parsedBody = parsedOutput.body;
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
...parsedBody,
|
|
656
|
-
name: `${errorCode}`,
|
|
657
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
522
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
523
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
658
524
|
$fault: "client",
|
|
659
525
|
$metadata: deserializeMetadata(output),
|
|
660
|
-
};
|
|
526
|
+
});
|
|
527
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
661
528
|
}
|
|
662
|
-
const message = response.message || response.Message || errorCode;
|
|
663
|
-
response.message = message;
|
|
664
|
-
delete response.Message;
|
|
665
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
666
529
|
};
|
|
667
530
|
const deserializeAws_json1_1DeleteAccessCommand = async (output, context) => {
|
|
668
531
|
if (output.statusCode >= 300) {
|
|
@@ -686,51 +549,25 @@ const deserializeAws_json1_1DeleteAccessCommandError = async (output, context) =
|
|
|
686
549
|
switch (errorCode) {
|
|
687
550
|
case "InternalServiceError":
|
|
688
551
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
689
|
-
|
|
690
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
691
|
-
name: errorCode,
|
|
692
|
-
$metadata: deserializeMetadata(output),
|
|
693
|
-
};
|
|
694
|
-
break;
|
|
552
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
695
553
|
case "InvalidRequestException":
|
|
696
554
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
697
|
-
|
|
698
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
699
|
-
name: errorCode,
|
|
700
|
-
$metadata: deserializeMetadata(output),
|
|
701
|
-
};
|
|
702
|
-
break;
|
|
555
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
703
556
|
case "ResourceNotFoundException":
|
|
704
557
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
705
|
-
|
|
706
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
707
|
-
name: errorCode,
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
};
|
|
710
|
-
break;
|
|
558
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
711
559
|
case "ServiceUnavailableException":
|
|
712
560
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
713
|
-
|
|
714
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
715
|
-
name: errorCode,
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
};
|
|
718
|
-
break;
|
|
561
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
719
562
|
default:
|
|
720
563
|
const parsedBody = parsedOutput.body;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
...parsedBody,
|
|
724
|
-
name: `${errorCode}`,
|
|
725
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
564
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
565
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
726
566
|
$fault: "client",
|
|
727
567
|
$metadata: deserializeMetadata(output),
|
|
728
|
-
};
|
|
568
|
+
});
|
|
569
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
729
570
|
}
|
|
730
|
-
const message = response.message || response.Message || errorCode;
|
|
731
|
-
response.message = message;
|
|
732
|
-
delete response.Message;
|
|
733
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
734
571
|
};
|
|
735
572
|
const deserializeAws_json1_1DeleteServerCommand = async (output, context) => {
|
|
736
573
|
if (output.statusCode >= 300) {
|
|
@@ -754,59 +591,28 @@ const deserializeAws_json1_1DeleteServerCommandError = async (output, context) =
|
|
|
754
591
|
switch (errorCode) {
|
|
755
592
|
case "AccessDeniedException":
|
|
756
593
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
757
|
-
|
|
758
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
759
|
-
name: errorCode,
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
};
|
|
762
|
-
break;
|
|
594
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
763
595
|
case "InternalServiceError":
|
|
764
596
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
765
|
-
|
|
766
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
767
|
-
name: errorCode,
|
|
768
|
-
$metadata: deserializeMetadata(output),
|
|
769
|
-
};
|
|
770
|
-
break;
|
|
597
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
771
598
|
case "InvalidRequestException":
|
|
772
599
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
773
|
-
|
|
774
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
775
|
-
name: errorCode,
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
};
|
|
778
|
-
break;
|
|
600
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
779
601
|
case "ResourceNotFoundException":
|
|
780
602
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
781
|
-
|
|
782
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
783
|
-
name: errorCode,
|
|
784
|
-
$metadata: deserializeMetadata(output),
|
|
785
|
-
};
|
|
786
|
-
break;
|
|
603
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
787
604
|
case "ServiceUnavailableException":
|
|
788
605
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
789
|
-
|
|
790
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
791
|
-
name: errorCode,
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
};
|
|
794
|
-
break;
|
|
606
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
795
607
|
default:
|
|
796
608
|
const parsedBody = parsedOutput.body;
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
...parsedBody,
|
|
800
|
-
name: `${errorCode}`,
|
|
801
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
609
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
610
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
802
611
|
$fault: "client",
|
|
803
612
|
$metadata: deserializeMetadata(output),
|
|
804
|
-
};
|
|
613
|
+
});
|
|
614
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
805
615
|
}
|
|
806
|
-
const message = response.message || response.Message || errorCode;
|
|
807
|
-
response.message = message;
|
|
808
|
-
delete response.Message;
|
|
809
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
810
616
|
};
|
|
811
617
|
const deserializeAws_json1_1DeleteSshPublicKeyCommand = async (output, context) => {
|
|
812
618
|
if (output.statusCode >= 300) {
|
|
@@ -830,59 +636,28 @@ const deserializeAws_json1_1DeleteSshPublicKeyCommandError = async (output, cont
|
|
|
830
636
|
switch (errorCode) {
|
|
831
637
|
case "InternalServiceError":
|
|
832
638
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
833
|
-
|
|
834
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
835
|
-
name: errorCode,
|
|
836
|
-
$metadata: deserializeMetadata(output),
|
|
837
|
-
};
|
|
838
|
-
break;
|
|
639
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
839
640
|
case "InvalidRequestException":
|
|
840
641
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
841
|
-
|
|
842
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
843
|
-
name: errorCode,
|
|
844
|
-
$metadata: deserializeMetadata(output),
|
|
845
|
-
};
|
|
846
|
-
break;
|
|
642
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
847
643
|
case "ResourceNotFoundException":
|
|
848
644
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
849
|
-
|
|
850
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
851
|
-
name: errorCode,
|
|
852
|
-
$metadata: deserializeMetadata(output),
|
|
853
|
-
};
|
|
854
|
-
break;
|
|
645
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
855
646
|
case "ServiceUnavailableException":
|
|
856
647
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
857
|
-
|
|
858
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
859
|
-
name: errorCode,
|
|
860
|
-
$metadata: deserializeMetadata(output),
|
|
861
|
-
};
|
|
862
|
-
break;
|
|
648
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
863
649
|
case "ThrottlingException":
|
|
864
650
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
865
|
-
|
|
866
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
867
|
-
name: errorCode,
|
|
868
|
-
$metadata: deserializeMetadata(output),
|
|
869
|
-
};
|
|
870
|
-
break;
|
|
651
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
871
652
|
default:
|
|
872
653
|
const parsedBody = parsedOutput.body;
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
...parsedBody,
|
|
876
|
-
name: `${errorCode}`,
|
|
877
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
654
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
655
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
878
656
|
$fault: "client",
|
|
879
657
|
$metadata: deserializeMetadata(output),
|
|
880
|
-
};
|
|
658
|
+
});
|
|
659
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
881
660
|
}
|
|
882
|
-
const message = response.message || response.Message || errorCode;
|
|
883
|
-
response.message = message;
|
|
884
|
-
delete response.Message;
|
|
885
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
886
661
|
};
|
|
887
662
|
const deserializeAws_json1_1DeleteUserCommand = async (output, context) => {
|
|
888
663
|
if (output.statusCode >= 300) {
|
|
@@ -906,51 +681,25 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
|
|
|
906
681
|
switch (errorCode) {
|
|
907
682
|
case "InternalServiceError":
|
|
908
683
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
909
|
-
|
|
910
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
911
|
-
name: errorCode,
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
};
|
|
914
|
-
break;
|
|
684
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
915
685
|
case "InvalidRequestException":
|
|
916
686
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
917
|
-
|
|
918
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
919
|
-
name: errorCode,
|
|
920
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
-
};
|
|
922
|
-
break;
|
|
687
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
923
688
|
case "ResourceNotFoundException":
|
|
924
689
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
925
|
-
|
|
926
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
927
|
-
name: errorCode,
|
|
928
|
-
$metadata: deserializeMetadata(output),
|
|
929
|
-
};
|
|
930
|
-
break;
|
|
690
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
931
691
|
case "ServiceUnavailableException":
|
|
932
692
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
933
|
-
|
|
934
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
935
|
-
name: errorCode,
|
|
936
|
-
$metadata: deserializeMetadata(output),
|
|
937
|
-
};
|
|
938
|
-
break;
|
|
693
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
939
694
|
default:
|
|
940
695
|
const parsedBody = parsedOutput.body;
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
...parsedBody,
|
|
944
|
-
name: `${errorCode}`,
|
|
945
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
696
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
697
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
946
698
|
$fault: "client",
|
|
947
699
|
$metadata: deserializeMetadata(output),
|
|
948
|
-
};
|
|
700
|
+
});
|
|
701
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
949
702
|
}
|
|
950
|
-
const message = response.message || response.Message || errorCode;
|
|
951
|
-
response.message = message;
|
|
952
|
-
delete response.Message;
|
|
953
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
954
703
|
};
|
|
955
704
|
const deserializeAws_json1_1DeleteWorkflowCommand = async (output, context) => {
|
|
956
705
|
if (output.statusCode >= 300) {
|
|
@@ -974,59 +723,28 @@ const deserializeAws_json1_1DeleteWorkflowCommandError = async (output, context)
|
|
|
974
723
|
switch (errorCode) {
|
|
975
724
|
case "AccessDeniedException":
|
|
976
725
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
977
|
-
|
|
978
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
979
|
-
name: errorCode,
|
|
980
|
-
$metadata: deserializeMetadata(output),
|
|
981
|
-
};
|
|
982
|
-
break;
|
|
726
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
983
727
|
case "InternalServiceError":
|
|
984
728
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
985
|
-
|
|
986
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
987
|
-
name: errorCode,
|
|
988
|
-
$metadata: deserializeMetadata(output),
|
|
989
|
-
};
|
|
990
|
-
break;
|
|
729
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
991
730
|
case "InvalidRequestException":
|
|
992
731
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
993
|
-
|
|
994
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
995
|
-
name: errorCode,
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
};
|
|
998
|
-
break;
|
|
732
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
999
733
|
case "ResourceNotFoundException":
|
|
1000
734
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1001
|
-
|
|
1002
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1003
|
-
name: errorCode,
|
|
1004
|
-
$metadata: deserializeMetadata(output),
|
|
1005
|
-
};
|
|
1006
|
-
break;
|
|
735
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1007
736
|
case "ServiceUnavailableException":
|
|
1008
737
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1009
|
-
|
|
1010
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1011
|
-
name: errorCode,
|
|
1012
|
-
$metadata: deserializeMetadata(output),
|
|
1013
|
-
};
|
|
1014
|
-
break;
|
|
738
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1015
739
|
default:
|
|
1016
740
|
const parsedBody = parsedOutput.body;
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
...parsedBody,
|
|
1020
|
-
name: `${errorCode}`,
|
|
1021
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
741
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
742
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1022
743
|
$fault: "client",
|
|
1023
744
|
$metadata: deserializeMetadata(output),
|
|
1024
|
-
};
|
|
745
|
+
});
|
|
746
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1025
747
|
}
|
|
1026
|
-
const message = response.message || response.Message || errorCode;
|
|
1027
|
-
response.message = message;
|
|
1028
|
-
delete response.Message;
|
|
1029
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1030
748
|
};
|
|
1031
749
|
const deserializeAws_json1_1DescribeAccessCommand = async (output, context) => {
|
|
1032
750
|
if (output.statusCode >= 300) {
|
|
@@ -1053,51 +771,25 @@ const deserializeAws_json1_1DescribeAccessCommandError = async (output, context)
|
|
|
1053
771
|
switch (errorCode) {
|
|
1054
772
|
case "InternalServiceError":
|
|
1055
773
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1056
|
-
|
|
1057
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1058
|
-
name: errorCode,
|
|
1059
|
-
$metadata: deserializeMetadata(output),
|
|
1060
|
-
};
|
|
1061
|
-
break;
|
|
774
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1062
775
|
case "InvalidRequestException":
|
|
1063
776
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1064
|
-
|
|
1065
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1066
|
-
name: errorCode,
|
|
1067
|
-
$metadata: deserializeMetadata(output),
|
|
1068
|
-
};
|
|
1069
|
-
break;
|
|
777
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1070
778
|
case "ResourceNotFoundException":
|
|
1071
779
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1072
|
-
|
|
1073
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1074
|
-
name: errorCode,
|
|
1075
|
-
$metadata: deserializeMetadata(output),
|
|
1076
|
-
};
|
|
1077
|
-
break;
|
|
780
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1078
781
|
case "ServiceUnavailableException":
|
|
1079
782
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1080
|
-
|
|
1081
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1082
|
-
name: errorCode,
|
|
1083
|
-
$metadata: deserializeMetadata(output),
|
|
1084
|
-
};
|
|
1085
|
-
break;
|
|
783
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1086
784
|
default:
|
|
1087
785
|
const parsedBody = parsedOutput.body;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
...parsedBody,
|
|
1091
|
-
name: `${errorCode}`,
|
|
1092
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
786
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
787
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1093
788
|
$fault: "client",
|
|
1094
789
|
$metadata: deserializeMetadata(output),
|
|
1095
|
-
};
|
|
790
|
+
});
|
|
791
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1096
792
|
}
|
|
1097
|
-
const message = response.message || response.Message || errorCode;
|
|
1098
|
-
response.message = message;
|
|
1099
|
-
delete response.Message;
|
|
1100
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1101
793
|
};
|
|
1102
794
|
const deserializeAws_json1_1DescribeExecutionCommand = async (output, context) => {
|
|
1103
795
|
if (output.statusCode >= 300) {
|
|
@@ -1124,51 +816,25 @@ const deserializeAws_json1_1DescribeExecutionCommandError = async (output, conte
|
|
|
1124
816
|
switch (errorCode) {
|
|
1125
817
|
case "InternalServiceError":
|
|
1126
818
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1127
|
-
|
|
1128
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1129
|
-
name: errorCode,
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
};
|
|
1132
|
-
break;
|
|
819
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1133
820
|
case "InvalidRequestException":
|
|
1134
821
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1135
|
-
|
|
1136
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1137
|
-
name: errorCode,
|
|
1138
|
-
$metadata: deserializeMetadata(output),
|
|
1139
|
-
};
|
|
1140
|
-
break;
|
|
822
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1141
823
|
case "ResourceNotFoundException":
|
|
1142
824
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1143
|
-
|
|
1144
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1145
|
-
name: errorCode,
|
|
1146
|
-
$metadata: deserializeMetadata(output),
|
|
1147
|
-
};
|
|
1148
|
-
break;
|
|
825
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1149
826
|
case "ServiceUnavailableException":
|
|
1150
827
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1151
|
-
|
|
1152
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1153
|
-
name: errorCode,
|
|
1154
|
-
$metadata: deserializeMetadata(output),
|
|
1155
|
-
};
|
|
1156
|
-
break;
|
|
828
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1157
829
|
default:
|
|
1158
830
|
const parsedBody = parsedOutput.body;
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
...parsedBody,
|
|
1162
|
-
name: `${errorCode}`,
|
|
1163
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
831
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
832
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1164
833
|
$fault: "client",
|
|
1165
834
|
$metadata: deserializeMetadata(output),
|
|
1166
|
-
};
|
|
835
|
+
});
|
|
836
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1167
837
|
}
|
|
1168
|
-
const message = response.message || response.Message || errorCode;
|
|
1169
|
-
response.message = message;
|
|
1170
|
-
delete response.Message;
|
|
1171
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1172
838
|
};
|
|
1173
839
|
const deserializeAws_json1_1DescribeSecurityPolicyCommand = async (output, context) => {
|
|
1174
840
|
if (output.statusCode >= 300) {
|
|
@@ -1195,51 +861,25 @@ const deserializeAws_json1_1DescribeSecurityPolicyCommandError = async (output,
|
|
|
1195
861
|
switch (errorCode) {
|
|
1196
862
|
case "InternalServiceError":
|
|
1197
863
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1198
|
-
|
|
1199
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1200
|
-
name: errorCode,
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
};
|
|
1203
|
-
break;
|
|
864
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1204
865
|
case "InvalidRequestException":
|
|
1205
866
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1206
|
-
|
|
1207
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1208
|
-
name: errorCode,
|
|
1209
|
-
$metadata: deserializeMetadata(output),
|
|
1210
|
-
};
|
|
1211
|
-
break;
|
|
867
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1212
868
|
case "ResourceNotFoundException":
|
|
1213
869
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1214
|
-
|
|
1215
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1216
|
-
name: errorCode,
|
|
1217
|
-
$metadata: deserializeMetadata(output),
|
|
1218
|
-
};
|
|
1219
|
-
break;
|
|
870
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1220
871
|
case "ServiceUnavailableException":
|
|
1221
872
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1222
|
-
|
|
1223
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1224
|
-
name: errorCode,
|
|
1225
|
-
$metadata: deserializeMetadata(output),
|
|
1226
|
-
};
|
|
1227
|
-
break;
|
|
873
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1228
874
|
default:
|
|
1229
875
|
const parsedBody = parsedOutput.body;
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
...parsedBody,
|
|
1233
|
-
name: `${errorCode}`,
|
|
1234
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
876
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
877
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1235
878
|
$fault: "client",
|
|
1236
879
|
$metadata: deserializeMetadata(output),
|
|
1237
|
-
};
|
|
880
|
+
});
|
|
881
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1238
882
|
}
|
|
1239
|
-
const message = response.message || response.Message || errorCode;
|
|
1240
|
-
response.message = message;
|
|
1241
|
-
delete response.Message;
|
|
1242
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1243
883
|
};
|
|
1244
884
|
const deserializeAws_json1_1DescribeServerCommand = async (output, context) => {
|
|
1245
885
|
if (output.statusCode >= 300) {
|
|
@@ -1266,51 +906,25 @@ const deserializeAws_json1_1DescribeServerCommandError = async (output, context)
|
|
|
1266
906
|
switch (errorCode) {
|
|
1267
907
|
case "InternalServiceError":
|
|
1268
908
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1269
|
-
|
|
1270
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1271
|
-
name: errorCode,
|
|
1272
|
-
$metadata: deserializeMetadata(output),
|
|
1273
|
-
};
|
|
1274
|
-
break;
|
|
909
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1275
910
|
case "InvalidRequestException":
|
|
1276
911
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1277
|
-
|
|
1278
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1279
|
-
name: errorCode,
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
};
|
|
1282
|
-
break;
|
|
912
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1283
913
|
case "ResourceNotFoundException":
|
|
1284
914
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1285
|
-
|
|
1286
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1287
|
-
name: errorCode,
|
|
1288
|
-
$metadata: deserializeMetadata(output),
|
|
1289
|
-
};
|
|
1290
|
-
break;
|
|
915
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1291
916
|
case "ServiceUnavailableException":
|
|
1292
917
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1293
|
-
|
|
1294
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1295
|
-
name: errorCode,
|
|
1296
|
-
$metadata: deserializeMetadata(output),
|
|
1297
|
-
};
|
|
1298
|
-
break;
|
|
918
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1299
919
|
default:
|
|
1300
920
|
const parsedBody = parsedOutput.body;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
...parsedBody,
|
|
1304
|
-
name: `${errorCode}`,
|
|
1305
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
921
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
922
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1306
923
|
$fault: "client",
|
|
1307
924
|
$metadata: deserializeMetadata(output),
|
|
1308
|
-
};
|
|
925
|
+
});
|
|
926
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1309
927
|
}
|
|
1310
|
-
const message = response.message || response.Message || errorCode;
|
|
1311
|
-
response.message = message;
|
|
1312
|
-
delete response.Message;
|
|
1313
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1314
928
|
};
|
|
1315
929
|
const deserializeAws_json1_1DescribeUserCommand = async (output, context) => {
|
|
1316
930
|
if (output.statusCode >= 300) {
|
|
@@ -1337,51 +951,25 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
1337
951
|
switch (errorCode) {
|
|
1338
952
|
case "InternalServiceError":
|
|
1339
953
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1340
|
-
|
|
1341
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1342
|
-
name: errorCode,
|
|
1343
|
-
$metadata: deserializeMetadata(output),
|
|
1344
|
-
};
|
|
1345
|
-
break;
|
|
954
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1346
955
|
case "InvalidRequestException":
|
|
1347
956
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1348
|
-
|
|
1349
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1350
|
-
name: errorCode,
|
|
1351
|
-
$metadata: deserializeMetadata(output),
|
|
1352
|
-
};
|
|
1353
|
-
break;
|
|
957
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1354
958
|
case "ResourceNotFoundException":
|
|
1355
959
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1356
|
-
|
|
1357
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1358
|
-
name: errorCode,
|
|
1359
|
-
$metadata: deserializeMetadata(output),
|
|
1360
|
-
};
|
|
1361
|
-
break;
|
|
960
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1362
961
|
case "ServiceUnavailableException":
|
|
1363
962
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1364
|
-
|
|
1365
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1366
|
-
name: errorCode,
|
|
1367
|
-
$metadata: deserializeMetadata(output),
|
|
1368
|
-
};
|
|
1369
|
-
break;
|
|
963
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1370
964
|
default:
|
|
1371
965
|
const parsedBody = parsedOutput.body;
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
...parsedBody,
|
|
1375
|
-
name: `${errorCode}`,
|
|
1376
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
966
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
967
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1377
968
|
$fault: "client",
|
|
1378
969
|
$metadata: deserializeMetadata(output),
|
|
1379
|
-
};
|
|
970
|
+
});
|
|
971
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1380
972
|
}
|
|
1381
|
-
const message = response.message || response.Message || errorCode;
|
|
1382
|
-
response.message = message;
|
|
1383
|
-
delete response.Message;
|
|
1384
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1385
973
|
};
|
|
1386
974
|
const deserializeAws_json1_1DescribeWorkflowCommand = async (output, context) => {
|
|
1387
975
|
if (output.statusCode >= 300) {
|
|
@@ -1408,51 +996,25 @@ const deserializeAws_json1_1DescribeWorkflowCommandError = async (output, contex
|
|
|
1408
996
|
switch (errorCode) {
|
|
1409
997
|
case "InternalServiceError":
|
|
1410
998
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1411
|
-
|
|
1412
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1413
|
-
name: errorCode,
|
|
1414
|
-
$metadata: deserializeMetadata(output),
|
|
1415
|
-
};
|
|
1416
|
-
break;
|
|
999
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1417
1000
|
case "InvalidRequestException":
|
|
1418
1001
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1419
|
-
|
|
1420
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1421
|
-
name: errorCode,
|
|
1422
|
-
$metadata: deserializeMetadata(output),
|
|
1423
|
-
};
|
|
1424
|
-
break;
|
|
1002
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1425
1003
|
case "ResourceNotFoundException":
|
|
1426
1004
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1427
|
-
|
|
1428
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1429
|
-
name: errorCode,
|
|
1430
|
-
$metadata: deserializeMetadata(output),
|
|
1431
|
-
};
|
|
1432
|
-
break;
|
|
1005
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1433
1006
|
case "ServiceUnavailableException":
|
|
1434
1007
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1435
|
-
|
|
1436
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1437
|
-
name: errorCode,
|
|
1438
|
-
$metadata: deserializeMetadata(output),
|
|
1439
|
-
};
|
|
1440
|
-
break;
|
|
1008
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1441
1009
|
default:
|
|
1442
1010
|
const parsedBody = parsedOutput.body;
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
...parsedBody,
|
|
1446
|
-
name: `${errorCode}`,
|
|
1447
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1011
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1012
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1448
1013
|
$fault: "client",
|
|
1449
1014
|
$metadata: deserializeMetadata(output),
|
|
1450
|
-
};
|
|
1015
|
+
});
|
|
1016
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1451
1017
|
}
|
|
1452
|
-
const message = response.message || response.Message || errorCode;
|
|
1453
|
-
response.message = message;
|
|
1454
|
-
delete response.Message;
|
|
1455
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1456
1018
|
};
|
|
1457
1019
|
const deserializeAws_json1_1ImportSshPublicKeyCommand = async (output, context) => {
|
|
1458
1020
|
if (output.statusCode >= 300) {
|
|
@@ -1479,67 +1041,31 @@ const deserializeAws_json1_1ImportSshPublicKeyCommandError = async (output, cont
|
|
|
1479
1041
|
switch (errorCode) {
|
|
1480
1042
|
case "InternalServiceError":
|
|
1481
1043
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1482
|
-
|
|
1483
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1484
|
-
name: errorCode,
|
|
1485
|
-
$metadata: deserializeMetadata(output),
|
|
1486
|
-
};
|
|
1487
|
-
break;
|
|
1044
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1488
1045
|
case "InvalidRequestException":
|
|
1489
1046
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1490
|
-
|
|
1491
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1492
|
-
name: errorCode,
|
|
1493
|
-
$metadata: deserializeMetadata(output),
|
|
1494
|
-
};
|
|
1495
|
-
break;
|
|
1047
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1496
1048
|
case "ResourceExistsException":
|
|
1497
1049
|
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1498
|
-
|
|
1499
|
-
...(await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context)),
|
|
1500
|
-
name: errorCode,
|
|
1501
|
-
$metadata: deserializeMetadata(output),
|
|
1502
|
-
};
|
|
1503
|
-
break;
|
|
1050
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
1504
1051
|
case "ResourceNotFoundException":
|
|
1505
1052
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1506
|
-
|
|
1507
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1508
|
-
name: errorCode,
|
|
1509
|
-
$metadata: deserializeMetadata(output),
|
|
1510
|
-
};
|
|
1511
|
-
break;
|
|
1053
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1512
1054
|
case "ServiceUnavailableException":
|
|
1513
1055
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1514
|
-
|
|
1515
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1516
|
-
name: errorCode,
|
|
1517
|
-
$metadata: deserializeMetadata(output),
|
|
1518
|
-
};
|
|
1519
|
-
break;
|
|
1056
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1520
1057
|
case "ThrottlingException":
|
|
1521
1058
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
1522
|
-
|
|
1523
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1524
|
-
name: errorCode,
|
|
1525
|
-
$metadata: deserializeMetadata(output),
|
|
1526
|
-
};
|
|
1527
|
-
break;
|
|
1059
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1528
1060
|
default:
|
|
1529
1061
|
const parsedBody = parsedOutput.body;
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
...parsedBody,
|
|
1533
|
-
name: `${errorCode}`,
|
|
1534
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1062
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1063
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1535
1064
|
$fault: "client",
|
|
1536
1065
|
$metadata: deserializeMetadata(output),
|
|
1537
|
-
};
|
|
1066
|
+
});
|
|
1067
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1538
1068
|
}
|
|
1539
|
-
const message = response.message || response.Message || errorCode;
|
|
1540
|
-
response.message = message;
|
|
1541
|
-
delete response.Message;
|
|
1542
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1543
1069
|
};
|
|
1544
1070
|
const deserializeAws_json1_1ListAccessesCommand = async (output, context) => {
|
|
1545
1071
|
if (output.statusCode >= 300) {
|
|
@@ -1566,59 +1092,28 @@ const deserializeAws_json1_1ListAccessesCommandError = async (output, context) =
|
|
|
1566
1092
|
switch (errorCode) {
|
|
1567
1093
|
case "InternalServiceError":
|
|
1568
1094
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1569
|
-
|
|
1570
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1571
|
-
name: errorCode,
|
|
1572
|
-
$metadata: deserializeMetadata(output),
|
|
1573
|
-
};
|
|
1574
|
-
break;
|
|
1095
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1575
1096
|
case "InvalidNextTokenException":
|
|
1576
1097
|
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1577
|
-
|
|
1578
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1579
|
-
name: errorCode,
|
|
1580
|
-
$metadata: deserializeMetadata(output),
|
|
1581
|
-
};
|
|
1582
|
-
break;
|
|
1098
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1583
1099
|
case "InvalidRequestException":
|
|
1584
1100
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1585
|
-
|
|
1586
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1587
|
-
name: errorCode,
|
|
1588
|
-
$metadata: deserializeMetadata(output),
|
|
1589
|
-
};
|
|
1590
|
-
break;
|
|
1101
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1591
1102
|
case "ResourceNotFoundException":
|
|
1592
1103
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1593
|
-
|
|
1594
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1595
|
-
name: errorCode,
|
|
1596
|
-
$metadata: deserializeMetadata(output),
|
|
1597
|
-
};
|
|
1598
|
-
break;
|
|
1104
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1599
1105
|
case "ServiceUnavailableException":
|
|
1600
1106
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1601
|
-
|
|
1602
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1603
|
-
name: errorCode,
|
|
1604
|
-
$metadata: deserializeMetadata(output),
|
|
1605
|
-
};
|
|
1606
|
-
break;
|
|
1107
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1607
1108
|
default:
|
|
1608
1109
|
const parsedBody = parsedOutput.body;
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
...parsedBody,
|
|
1612
|
-
name: `${errorCode}`,
|
|
1613
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1110
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1111
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1614
1112
|
$fault: "client",
|
|
1615
1113
|
$metadata: deserializeMetadata(output),
|
|
1616
|
-
};
|
|
1114
|
+
});
|
|
1115
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1617
1116
|
}
|
|
1618
|
-
const message = response.message || response.Message || errorCode;
|
|
1619
|
-
response.message = message;
|
|
1620
|
-
delete response.Message;
|
|
1621
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1622
1117
|
};
|
|
1623
1118
|
const deserializeAws_json1_1ListExecutionsCommand = async (output, context) => {
|
|
1624
1119
|
if (output.statusCode >= 300) {
|
|
@@ -1645,59 +1140,28 @@ const deserializeAws_json1_1ListExecutionsCommandError = async (output, context)
|
|
|
1645
1140
|
switch (errorCode) {
|
|
1646
1141
|
case "InternalServiceError":
|
|
1647
1142
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1648
|
-
|
|
1649
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1650
|
-
name: errorCode,
|
|
1651
|
-
$metadata: deserializeMetadata(output),
|
|
1652
|
-
};
|
|
1653
|
-
break;
|
|
1143
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1654
1144
|
case "InvalidNextTokenException":
|
|
1655
1145
|
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1656
|
-
|
|
1657
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1658
|
-
name: errorCode,
|
|
1659
|
-
$metadata: deserializeMetadata(output),
|
|
1660
|
-
};
|
|
1661
|
-
break;
|
|
1146
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1662
1147
|
case "InvalidRequestException":
|
|
1663
1148
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1664
|
-
|
|
1665
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1666
|
-
name: errorCode,
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
};
|
|
1669
|
-
break;
|
|
1149
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1670
1150
|
case "ResourceNotFoundException":
|
|
1671
1151
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1672
|
-
|
|
1673
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1674
|
-
name: errorCode,
|
|
1675
|
-
$metadata: deserializeMetadata(output),
|
|
1676
|
-
};
|
|
1677
|
-
break;
|
|
1152
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1678
1153
|
case "ServiceUnavailableException":
|
|
1679
1154
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1680
|
-
|
|
1681
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1682
|
-
name: errorCode,
|
|
1683
|
-
$metadata: deserializeMetadata(output),
|
|
1684
|
-
};
|
|
1685
|
-
break;
|
|
1155
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1686
1156
|
default:
|
|
1687
1157
|
const parsedBody = parsedOutput.body;
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
...parsedBody,
|
|
1691
|
-
name: `${errorCode}`,
|
|
1692
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1158
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1159
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1693
1160
|
$fault: "client",
|
|
1694
1161
|
$metadata: deserializeMetadata(output),
|
|
1695
|
-
};
|
|
1162
|
+
});
|
|
1163
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1696
1164
|
}
|
|
1697
|
-
const message = response.message || response.Message || errorCode;
|
|
1698
|
-
response.message = message;
|
|
1699
|
-
delete response.Message;
|
|
1700
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1701
1165
|
};
|
|
1702
1166
|
const deserializeAws_json1_1ListSecurityPoliciesCommand = async (output, context) => {
|
|
1703
1167
|
if (output.statusCode >= 300) {
|
|
@@ -1724,51 +1188,25 @@ const deserializeAws_json1_1ListSecurityPoliciesCommandError = async (output, co
|
|
|
1724
1188
|
switch (errorCode) {
|
|
1725
1189
|
case "InternalServiceError":
|
|
1726
1190
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1727
|
-
|
|
1728
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1729
|
-
name: errorCode,
|
|
1730
|
-
$metadata: deserializeMetadata(output),
|
|
1731
|
-
};
|
|
1732
|
-
break;
|
|
1191
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1733
1192
|
case "InvalidNextTokenException":
|
|
1734
1193
|
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1735
|
-
|
|
1736
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1737
|
-
name: errorCode,
|
|
1738
|
-
$metadata: deserializeMetadata(output),
|
|
1739
|
-
};
|
|
1740
|
-
break;
|
|
1194
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1741
1195
|
case "InvalidRequestException":
|
|
1742
1196
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1743
|
-
|
|
1744
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1745
|
-
name: errorCode,
|
|
1746
|
-
$metadata: deserializeMetadata(output),
|
|
1747
|
-
};
|
|
1748
|
-
break;
|
|
1197
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1749
1198
|
case "ServiceUnavailableException":
|
|
1750
1199
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1751
|
-
|
|
1752
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1753
|
-
name: errorCode,
|
|
1754
|
-
$metadata: deserializeMetadata(output),
|
|
1755
|
-
};
|
|
1756
|
-
break;
|
|
1200
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1757
1201
|
default:
|
|
1758
1202
|
const parsedBody = parsedOutput.body;
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
...parsedBody,
|
|
1762
|
-
name: `${errorCode}`,
|
|
1763
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1203
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1204
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1764
1205
|
$fault: "client",
|
|
1765
1206
|
$metadata: deserializeMetadata(output),
|
|
1766
|
-
};
|
|
1207
|
+
});
|
|
1208
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1767
1209
|
}
|
|
1768
|
-
const message = response.message || response.Message || errorCode;
|
|
1769
|
-
response.message = message;
|
|
1770
|
-
delete response.Message;
|
|
1771
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1772
1210
|
};
|
|
1773
1211
|
const deserializeAws_json1_1ListServersCommand = async (output, context) => {
|
|
1774
1212
|
if (output.statusCode >= 300) {
|
|
@@ -1795,51 +1233,25 @@ const deserializeAws_json1_1ListServersCommandError = async (output, context) =>
|
|
|
1795
1233
|
switch (errorCode) {
|
|
1796
1234
|
case "InternalServiceError":
|
|
1797
1235
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1798
|
-
|
|
1799
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1800
|
-
name: errorCode,
|
|
1801
|
-
$metadata: deserializeMetadata(output),
|
|
1802
|
-
};
|
|
1803
|
-
break;
|
|
1236
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1804
1237
|
case "InvalidNextTokenException":
|
|
1805
1238
|
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1806
|
-
|
|
1807
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1808
|
-
name: errorCode,
|
|
1809
|
-
$metadata: deserializeMetadata(output),
|
|
1810
|
-
};
|
|
1811
|
-
break;
|
|
1239
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1812
1240
|
case "InvalidRequestException":
|
|
1813
1241
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1814
|
-
|
|
1815
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1816
|
-
name: errorCode,
|
|
1817
|
-
$metadata: deserializeMetadata(output),
|
|
1818
|
-
};
|
|
1819
|
-
break;
|
|
1242
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1820
1243
|
case "ServiceUnavailableException":
|
|
1821
1244
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1822
|
-
|
|
1823
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1824
|
-
name: errorCode,
|
|
1825
|
-
$metadata: deserializeMetadata(output),
|
|
1826
|
-
};
|
|
1827
|
-
break;
|
|
1245
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1828
1246
|
default:
|
|
1829
1247
|
const parsedBody = parsedOutput.body;
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
...parsedBody,
|
|
1833
|
-
name: `${errorCode}`,
|
|
1834
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1248
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1249
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1835
1250
|
$fault: "client",
|
|
1836
1251
|
$metadata: deserializeMetadata(output),
|
|
1837
|
-
};
|
|
1252
|
+
});
|
|
1253
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1838
1254
|
}
|
|
1839
|
-
const message = response.message || response.Message || errorCode;
|
|
1840
|
-
response.message = message;
|
|
1841
|
-
delete response.Message;
|
|
1842
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1843
1255
|
};
|
|
1844
1256
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1845
1257
|
if (output.statusCode >= 300) {
|
|
@@ -1866,51 +1278,25 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1866
1278
|
switch (errorCode) {
|
|
1867
1279
|
case "InternalServiceError":
|
|
1868
1280
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1869
|
-
|
|
1870
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1871
|
-
name: errorCode,
|
|
1872
|
-
$metadata: deserializeMetadata(output),
|
|
1873
|
-
};
|
|
1874
|
-
break;
|
|
1281
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1875
1282
|
case "InvalidNextTokenException":
|
|
1876
1283
|
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1877
|
-
|
|
1878
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1879
|
-
name: errorCode,
|
|
1880
|
-
$metadata: deserializeMetadata(output),
|
|
1881
|
-
};
|
|
1882
|
-
break;
|
|
1284
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1883
1285
|
case "InvalidRequestException":
|
|
1884
1286
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1885
|
-
|
|
1886
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1887
|
-
name: errorCode,
|
|
1888
|
-
$metadata: deserializeMetadata(output),
|
|
1889
|
-
};
|
|
1890
|
-
break;
|
|
1287
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1891
1288
|
case "ServiceUnavailableException":
|
|
1892
1289
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1893
|
-
|
|
1894
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1895
|
-
name: errorCode,
|
|
1896
|
-
$metadata: deserializeMetadata(output),
|
|
1897
|
-
};
|
|
1898
|
-
break;
|
|
1290
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1899
1291
|
default:
|
|
1900
1292
|
const parsedBody = parsedOutput.body;
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
...parsedBody,
|
|
1904
|
-
name: `${errorCode}`,
|
|
1905
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1293
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1294
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1906
1295
|
$fault: "client",
|
|
1907
1296
|
$metadata: deserializeMetadata(output),
|
|
1908
|
-
};
|
|
1297
|
+
});
|
|
1298
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1909
1299
|
}
|
|
1910
|
-
const message = response.message || response.Message || errorCode;
|
|
1911
|
-
response.message = message;
|
|
1912
|
-
delete response.Message;
|
|
1913
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1914
1300
|
};
|
|
1915
1301
|
const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
|
|
1916
1302
|
if (output.statusCode >= 300) {
|
|
@@ -1937,59 +1323,28 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
1937
1323
|
switch (errorCode) {
|
|
1938
1324
|
case "InternalServiceError":
|
|
1939
1325
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
1940
|
-
|
|
1941
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
1942
|
-
name: errorCode,
|
|
1943
|
-
$metadata: deserializeMetadata(output),
|
|
1944
|
-
};
|
|
1945
|
-
break;
|
|
1326
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1946
1327
|
case "InvalidNextTokenException":
|
|
1947
1328
|
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1948
|
-
|
|
1949
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1950
|
-
name: errorCode,
|
|
1951
|
-
$metadata: deserializeMetadata(output),
|
|
1952
|
-
};
|
|
1953
|
-
break;
|
|
1329
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1954
1330
|
case "InvalidRequestException":
|
|
1955
1331
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1956
|
-
|
|
1957
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1958
|
-
name: errorCode,
|
|
1959
|
-
$metadata: deserializeMetadata(output),
|
|
1960
|
-
};
|
|
1961
|
-
break;
|
|
1332
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1962
1333
|
case "ResourceNotFoundException":
|
|
1963
1334
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1964
|
-
|
|
1965
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1966
|
-
name: errorCode,
|
|
1967
|
-
$metadata: deserializeMetadata(output),
|
|
1968
|
-
};
|
|
1969
|
-
break;
|
|
1335
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1970
1336
|
case "ServiceUnavailableException":
|
|
1971
1337
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1972
|
-
|
|
1973
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1974
|
-
name: errorCode,
|
|
1975
|
-
$metadata: deserializeMetadata(output),
|
|
1976
|
-
};
|
|
1977
|
-
break;
|
|
1338
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1978
1339
|
default:
|
|
1979
1340
|
const parsedBody = parsedOutput.body;
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
...parsedBody,
|
|
1983
|
-
name: `${errorCode}`,
|
|
1984
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1341
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1342
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1985
1343
|
$fault: "client",
|
|
1986
1344
|
$metadata: deserializeMetadata(output),
|
|
1987
|
-
};
|
|
1345
|
+
});
|
|
1346
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1988
1347
|
}
|
|
1989
|
-
const message = response.message || response.Message || errorCode;
|
|
1990
|
-
response.message = message;
|
|
1991
|
-
delete response.Message;
|
|
1992
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1993
1348
|
};
|
|
1994
1349
|
const deserializeAws_json1_1ListWorkflowsCommand = async (output, context) => {
|
|
1995
1350
|
if (output.statusCode >= 300) {
|
|
@@ -2016,51 +1371,25 @@ const deserializeAws_json1_1ListWorkflowsCommandError = async (output, context)
|
|
|
2016
1371
|
switch (errorCode) {
|
|
2017
1372
|
case "InternalServiceError":
|
|
2018
1373
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2019
|
-
|
|
2020
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2021
|
-
name: errorCode,
|
|
2022
|
-
$metadata: deserializeMetadata(output),
|
|
2023
|
-
};
|
|
2024
|
-
break;
|
|
1374
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2025
1375
|
case "InvalidNextTokenException":
|
|
2026
1376
|
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2027
|
-
|
|
2028
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2029
|
-
name: errorCode,
|
|
2030
|
-
$metadata: deserializeMetadata(output),
|
|
2031
|
-
};
|
|
2032
|
-
break;
|
|
1377
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2033
1378
|
case "InvalidRequestException":
|
|
2034
1379
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2035
|
-
|
|
2036
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2037
|
-
name: errorCode,
|
|
2038
|
-
$metadata: deserializeMetadata(output),
|
|
2039
|
-
};
|
|
2040
|
-
break;
|
|
1380
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2041
1381
|
case "ServiceUnavailableException":
|
|
2042
1382
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2043
|
-
|
|
2044
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2045
|
-
name: errorCode,
|
|
2046
|
-
$metadata: deserializeMetadata(output),
|
|
2047
|
-
};
|
|
2048
|
-
break;
|
|
1383
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2049
1384
|
default:
|
|
2050
1385
|
const parsedBody = parsedOutput.body;
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
...parsedBody,
|
|
2054
|
-
name: `${errorCode}`,
|
|
2055
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1386
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1387
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2056
1388
|
$fault: "client",
|
|
2057
1389
|
$metadata: deserializeMetadata(output),
|
|
2058
|
-
};
|
|
1390
|
+
});
|
|
1391
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2059
1392
|
}
|
|
2060
|
-
const message = response.message || response.Message || errorCode;
|
|
2061
|
-
response.message = message;
|
|
2062
|
-
delete response.Message;
|
|
2063
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2064
1393
|
};
|
|
2065
1394
|
const deserializeAws_json1_1SendWorkflowStepStateCommand = async (output, context) => {
|
|
2066
1395
|
if (output.statusCode >= 300) {
|
|
@@ -2087,67 +1416,31 @@ const deserializeAws_json1_1SendWorkflowStepStateCommandError = async (output, c
|
|
|
2087
1416
|
switch (errorCode) {
|
|
2088
1417
|
case "AccessDeniedException":
|
|
2089
1418
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
2090
|
-
|
|
2091
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2092
|
-
name: errorCode,
|
|
2093
|
-
$metadata: deserializeMetadata(output),
|
|
2094
|
-
};
|
|
2095
|
-
break;
|
|
1419
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2096
1420
|
case "InternalServiceError":
|
|
2097
1421
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2098
|
-
|
|
2099
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2100
|
-
name: errorCode,
|
|
2101
|
-
$metadata: deserializeMetadata(output),
|
|
2102
|
-
};
|
|
2103
|
-
break;
|
|
1422
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2104
1423
|
case "InvalidRequestException":
|
|
2105
1424
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2106
|
-
|
|
2107
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2108
|
-
name: errorCode,
|
|
2109
|
-
$metadata: deserializeMetadata(output),
|
|
2110
|
-
};
|
|
2111
|
-
break;
|
|
1425
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2112
1426
|
case "ResourceNotFoundException":
|
|
2113
1427
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2114
|
-
|
|
2115
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2116
|
-
name: errorCode,
|
|
2117
|
-
$metadata: deserializeMetadata(output),
|
|
2118
|
-
};
|
|
2119
|
-
break;
|
|
1428
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2120
1429
|
case "ServiceUnavailableException":
|
|
2121
1430
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2122
|
-
|
|
2123
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2124
|
-
name: errorCode,
|
|
2125
|
-
$metadata: deserializeMetadata(output),
|
|
2126
|
-
};
|
|
2127
|
-
break;
|
|
1431
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2128
1432
|
case "ThrottlingException":
|
|
2129
1433
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
2130
|
-
|
|
2131
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2132
|
-
name: errorCode,
|
|
2133
|
-
$metadata: deserializeMetadata(output),
|
|
2134
|
-
};
|
|
2135
|
-
break;
|
|
1434
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2136
1435
|
default:
|
|
2137
1436
|
const parsedBody = parsedOutput.body;
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
...parsedBody,
|
|
2141
|
-
name: `${errorCode}`,
|
|
2142
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1437
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1438
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2143
1439
|
$fault: "client",
|
|
2144
1440
|
$metadata: deserializeMetadata(output),
|
|
2145
|
-
};
|
|
1441
|
+
});
|
|
1442
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2146
1443
|
}
|
|
2147
|
-
const message = response.message || response.Message || errorCode;
|
|
2148
|
-
response.message = message;
|
|
2149
|
-
delete response.Message;
|
|
2150
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2151
1444
|
};
|
|
2152
1445
|
const deserializeAws_json1_1StartServerCommand = async (output, context) => {
|
|
2153
1446
|
if (output.statusCode >= 300) {
|
|
@@ -2171,59 +1464,28 @@ const deserializeAws_json1_1StartServerCommandError = async (output, context) =>
|
|
|
2171
1464
|
switch (errorCode) {
|
|
2172
1465
|
case "InternalServiceError":
|
|
2173
1466
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2174
|
-
|
|
2175
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2176
|
-
name: errorCode,
|
|
2177
|
-
$metadata: deserializeMetadata(output),
|
|
2178
|
-
};
|
|
2179
|
-
break;
|
|
1467
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2180
1468
|
case "InvalidRequestException":
|
|
2181
1469
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2182
|
-
|
|
2183
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2184
|
-
name: errorCode,
|
|
2185
|
-
$metadata: deserializeMetadata(output),
|
|
2186
|
-
};
|
|
2187
|
-
break;
|
|
1470
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2188
1471
|
case "ResourceNotFoundException":
|
|
2189
1472
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2190
|
-
|
|
2191
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2192
|
-
name: errorCode,
|
|
2193
|
-
$metadata: deserializeMetadata(output),
|
|
2194
|
-
};
|
|
2195
|
-
break;
|
|
1473
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2196
1474
|
case "ServiceUnavailableException":
|
|
2197
1475
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2198
|
-
|
|
2199
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2200
|
-
name: errorCode,
|
|
2201
|
-
$metadata: deserializeMetadata(output),
|
|
2202
|
-
};
|
|
2203
|
-
break;
|
|
1476
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2204
1477
|
case "ThrottlingException":
|
|
2205
1478
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
2206
|
-
|
|
2207
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2208
|
-
name: errorCode,
|
|
2209
|
-
$metadata: deserializeMetadata(output),
|
|
2210
|
-
};
|
|
2211
|
-
break;
|
|
1479
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2212
1480
|
default:
|
|
2213
1481
|
const parsedBody = parsedOutput.body;
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
...parsedBody,
|
|
2217
|
-
name: `${errorCode}`,
|
|
2218
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1482
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1483
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2219
1484
|
$fault: "client",
|
|
2220
1485
|
$metadata: deserializeMetadata(output),
|
|
2221
|
-
};
|
|
1486
|
+
});
|
|
1487
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2222
1488
|
}
|
|
2223
|
-
const message = response.message || response.Message || errorCode;
|
|
2224
|
-
response.message = message;
|
|
2225
|
-
delete response.Message;
|
|
2226
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2227
1489
|
};
|
|
2228
1490
|
const deserializeAws_json1_1StopServerCommand = async (output, context) => {
|
|
2229
1491
|
if (output.statusCode >= 300) {
|
|
@@ -2247,59 +1509,28 @@ const deserializeAws_json1_1StopServerCommandError = async (output, context) =>
|
|
|
2247
1509
|
switch (errorCode) {
|
|
2248
1510
|
case "InternalServiceError":
|
|
2249
1511
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2250
|
-
|
|
2251
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2252
|
-
name: errorCode,
|
|
2253
|
-
$metadata: deserializeMetadata(output),
|
|
2254
|
-
};
|
|
2255
|
-
break;
|
|
1512
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2256
1513
|
case "InvalidRequestException":
|
|
2257
1514
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2258
|
-
|
|
2259
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2260
|
-
name: errorCode,
|
|
2261
|
-
$metadata: deserializeMetadata(output),
|
|
2262
|
-
};
|
|
2263
|
-
break;
|
|
1515
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2264
1516
|
case "ResourceNotFoundException":
|
|
2265
1517
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2266
|
-
|
|
2267
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2268
|
-
name: errorCode,
|
|
2269
|
-
$metadata: deserializeMetadata(output),
|
|
2270
|
-
};
|
|
2271
|
-
break;
|
|
1518
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2272
1519
|
case "ServiceUnavailableException":
|
|
2273
1520
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2274
|
-
|
|
2275
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2276
|
-
name: errorCode,
|
|
2277
|
-
$metadata: deserializeMetadata(output),
|
|
2278
|
-
};
|
|
2279
|
-
break;
|
|
1521
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2280
1522
|
case "ThrottlingException":
|
|
2281
1523
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
2282
|
-
|
|
2283
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2284
|
-
name: errorCode,
|
|
2285
|
-
$metadata: deserializeMetadata(output),
|
|
2286
|
-
};
|
|
2287
|
-
break;
|
|
1524
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2288
1525
|
default:
|
|
2289
1526
|
const parsedBody = parsedOutput.body;
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
...parsedBody,
|
|
2293
|
-
name: `${errorCode}`,
|
|
2294
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1527
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1528
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2295
1529
|
$fault: "client",
|
|
2296
1530
|
$metadata: deserializeMetadata(output),
|
|
2297
|
-
};
|
|
1531
|
+
});
|
|
1532
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2298
1533
|
}
|
|
2299
|
-
const message = response.message || response.Message || errorCode;
|
|
2300
|
-
response.message = message;
|
|
2301
|
-
delete response.Message;
|
|
2302
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2303
1534
|
};
|
|
2304
1535
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
2305
1536
|
if (output.statusCode >= 300) {
|
|
@@ -2323,51 +1554,25 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2323
1554
|
switch (errorCode) {
|
|
2324
1555
|
case "InternalServiceError":
|
|
2325
1556
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2326
|
-
|
|
2327
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2328
|
-
name: errorCode,
|
|
2329
|
-
$metadata: deserializeMetadata(output),
|
|
2330
|
-
};
|
|
2331
|
-
break;
|
|
1557
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2332
1558
|
case "InvalidRequestException":
|
|
2333
1559
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2334
|
-
|
|
2335
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2336
|
-
name: errorCode,
|
|
2337
|
-
$metadata: deserializeMetadata(output),
|
|
2338
|
-
};
|
|
2339
|
-
break;
|
|
1560
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2340
1561
|
case "ResourceNotFoundException":
|
|
2341
1562
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2342
|
-
|
|
2343
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2344
|
-
name: errorCode,
|
|
2345
|
-
$metadata: deserializeMetadata(output),
|
|
2346
|
-
};
|
|
2347
|
-
break;
|
|
1563
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2348
1564
|
case "ServiceUnavailableException":
|
|
2349
1565
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2350
|
-
|
|
2351
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2352
|
-
name: errorCode,
|
|
2353
|
-
$metadata: deserializeMetadata(output),
|
|
2354
|
-
};
|
|
2355
|
-
break;
|
|
1566
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2356
1567
|
default:
|
|
2357
1568
|
const parsedBody = parsedOutput.body;
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
...parsedBody,
|
|
2361
|
-
name: `${errorCode}`,
|
|
2362
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1569
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1570
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2363
1571
|
$fault: "client",
|
|
2364
1572
|
$metadata: deserializeMetadata(output),
|
|
2365
|
-
};
|
|
1573
|
+
});
|
|
1574
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2366
1575
|
}
|
|
2367
|
-
const message = response.message || response.Message || errorCode;
|
|
2368
|
-
response.message = message;
|
|
2369
|
-
delete response.Message;
|
|
2370
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2371
1576
|
};
|
|
2372
1577
|
const deserializeAws_json1_1TestIdentityProviderCommand = async (output, context) => {
|
|
2373
1578
|
if (output.statusCode >= 300) {
|
|
@@ -2394,51 +1599,25 @@ const deserializeAws_json1_1TestIdentityProviderCommandError = async (output, co
|
|
|
2394
1599
|
switch (errorCode) {
|
|
2395
1600
|
case "InternalServiceError":
|
|
2396
1601
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2397
|
-
|
|
2398
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2399
|
-
name: errorCode,
|
|
2400
|
-
$metadata: deserializeMetadata(output),
|
|
2401
|
-
};
|
|
2402
|
-
break;
|
|
1602
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2403
1603
|
case "InvalidRequestException":
|
|
2404
1604
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2405
|
-
|
|
2406
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2407
|
-
name: errorCode,
|
|
2408
|
-
$metadata: deserializeMetadata(output),
|
|
2409
|
-
};
|
|
2410
|
-
break;
|
|
1605
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2411
1606
|
case "ResourceNotFoundException":
|
|
2412
1607
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2413
|
-
|
|
2414
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2415
|
-
name: errorCode,
|
|
2416
|
-
$metadata: deserializeMetadata(output),
|
|
2417
|
-
};
|
|
2418
|
-
break;
|
|
1608
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2419
1609
|
case "ServiceUnavailableException":
|
|
2420
1610
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2421
|
-
|
|
2422
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2423
|
-
name: errorCode,
|
|
2424
|
-
$metadata: deserializeMetadata(output),
|
|
2425
|
-
};
|
|
2426
|
-
break;
|
|
1611
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2427
1612
|
default:
|
|
2428
1613
|
const parsedBody = parsedOutput.body;
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
...parsedBody,
|
|
2432
|
-
name: `${errorCode}`,
|
|
2433
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1614
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1615
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2434
1616
|
$fault: "client",
|
|
2435
1617
|
$metadata: deserializeMetadata(output),
|
|
2436
|
-
};
|
|
1618
|
+
});
|
|
1619
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2437
1620
|
}
|
|
2438
|
-
const message = response.message || response.Message || errorCode;
|
|
2439
|
-
response.message = message;
|
|
2440
|
-
delete response.Message;
|
|
2441
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2442
1621
|
};
|
|
2443
1622
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
2444
1623
|
if (output.statusCode >= 300) {
|
|
@@ -2462,51 +1641,25 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2462
1641
|
switch (errorCode) {
|
|
2463
1642
|
case "InternalServiceError":
|
|
2464
1643
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2465
|
-
|
|
2466
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2467
|
-
name: errorCode,
|
|
2468
|
-
$metadata: deserializeMetadata(output),
|
|
2469
|
-
};
|
|
2470
|
-
break;
|
|
1644
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2471
1645
|
case "InvalidRequestException":
|
|
2472
1646
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2473
|
-
|
|
2474
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2475
|
-
name: errorCode,
|
|
2476
|
-
$metadata: deserializeMetadata(output),
|
|
2477
|
-
};
|
|
2478
|
-
break;
|
|
1647
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2479
1648
|
case "ResourceNotFoundException":
|
|
2480
1649
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2481
|
-
|
|
2482
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2483
|
-
name: errorCode,
|
|
2484
|
-
$metadata: deserializeMetadata(output),
|
|
2485
|
-
};
|
|
2486
|
-
break;
|
|
1650
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2487
1651
|
case "ServiceUnavailableException":
|
|
2488
1652
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2489
|
-
|
|
2490
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2491
|
-
name: errorCode,
|
|
2492
|
-
$metadata: deserializeMetadata(output),
|
|
2493
|
-
};
|
|
2494
|
-
break;
|
|
1653
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2495
1654
|
default:
|
|
2496
1655
|
const parsedBody = parsedOutput.body;
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
...parsedBody,
|
|
2500
|
-
name: `${errorCode}`,
|
|
2501
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1656
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1657
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2502
1658
|
$fault: "client",
|
|
2503
1659
|
$metadata: deserializeMetadata(output),
|
|
2504
|
-
};
|
|
1660
|
+
});
|
|
1661
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2505
1662
|
}
|
|
2506
|
-
const message = response.message || response.Message || errorCode;
|
|
2507
|
-
response.message = message;
|
|
2508
|
-
delete response.Message;
|
|
2509
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2510
1663
|
};
|
|
2511
1664
|
const deserializeAws_json1_1UpdateAccessCommand = async (output, context) => {
|
|
2512
1665
|
if (output.statusCode >= 300) {
|
|
@@ -2533,59 +1686,28 @@ const deserializeAws_json1_1UpdateAccessCommandError = async (output, context) =
|
|
|
2533
1686
|
switch (errorCode) {
|
|
2534
1687
|
case "InternalServiceError":
|
|
2535
1688
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2536
|
-
|
|
2537
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2538
|
-
name: errorCode,
|
|
2539
|
-
$metadata: deserializeMetadata(output),
|
|
2540
|
-
};
|
|
2541
|
-
break;
|
|
1689
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2542
1690
|
case "InvalidRequestException":
|
|
2543
1691
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2544
|
-
|
|
2545
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2546
|
-
name: errorCode,
|
|
2547
|
-
$metadata: deserializeMetadata(output),
|
|
2548
|
-
};
|
|
2549
|
-
break;
|
|
1692
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2550
1693
|
case "ResourceExistsException":
|
|
2551
1694
|
case "com.amazonaws.transfer#ResourceExistsException":
|
|
2552
|
-
|
|
2553
|
-
...(await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context)),
|
|
2554
|
-
name: errorCode,
|
|
2555
|
-
$metadata: deserializeMetadata(output),
|
|
2556
|
-
};
|
|
2557
|
-
break;
|
|
1695
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
2558
1696
|
case "ResourceNotFoundException":
|
|
2559
1697
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2560
|
-
|
|
2561
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2562
|
-
name: errorCode,
|
|
2563
|
-
$metadata: deserializeMetadata(output),
|
|
2564
|
-
};
|
|
2565
|
-
break;
|
|
1698
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2566
1699
|
case "ServiceUnavailableException":
|
|
2567
1700
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2568
|
-
|
|
2569
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2570
|
-
name: errorCode,
|
|
2571
|
-
$metadata: deserializeMetadata(output),
|
|
2572
|
-
};
|
|
2573
|
-
break;
|
|
1701
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2574
1702
|
default:
|
|
2575
1703
|
const parsedBody = parsedOutput.body;
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
...parsedBody,
|
|
2579
|
-
name: `${errorCode}`,
|
|
2580
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1704
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1705
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2581
1706
|
$fault: "client",
|
|
2582
1707
|
$metadata: deserializeMetadata(output),
|
|
2583
|
-
};
|
|
1708
|
+
});
|
|
1709
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2584
1710
|
}
|
|
2585
|
-
const message = response.message || response.Message || errorCode;
|
|
2586
|
-
response.message = message;
|
|
2587
|
-
delete response.Message;
|
|
2588
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2589
1711
|
};
|
|
2590
1712
|
const deserializeAws_json1_1UpdateServerCommand = async (output, context) => {
|
|
2591
1713
|
if (output.statusCode >= 300) {
|
|
@@ -2612,83 +1734,37 @@ const deserializeAws_json1_1UpdateServerCommandError = async (output, context) =
|
|
|
2612
1734
|
switch (errorCode) {
|
|
2613
1735
|
case "AccessDeniedException":
|
|
2614
1736
|
case "com.amazonaws.transfer#AccessDeniedException":
|
|
2615
|
-
|
|
2616
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2617
|
-
name: errorCode,
|
|
2618
|
-
$metadata: deserializeMetadata(output),
|
|
2619
|
-
};
|
|
2620
|
-
break;
|
|
1737
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2621
1738
|
case "ConflictException":
|
|
2622
1739
|
case "com.amazonaws.transfer#ConflictException":
|
|
2623
|
-
|
|
2624
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2625
|
-
name: errorCode,
|
|
2626
|
-
$metadata: deserializeMetadata(output),
|
|
2627
|
-
};
|
|
2628
|
-
break;
|
|
1740
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2629
1741
|
case "InternalServiceError":
|
|
2630
1742
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2631
|
-
|
|
2632
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2633
|
-
name: errorCode,
|
|
2634
|
-
$metadata: deserializeMetadata(output),
|
|
2635
|
-
};
|
|
2636
|
-
break;
|
|
1743
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2637
1744
|
case "InvalidRequestException":
|
|
2638
1745
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2639
|
-
|
|
2640
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2641
|
-
name: errorCode,
|
|
2642
|
-
$metadata: deserializeMetadata(output),
|
|
2643
|
-
};
|
|
2644
|
-
break;
|
|
1746
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2645
1747
|
case "ResourceExistsException":
|
|
2646
1748
|
case "com.amazonaws.transfer#ResourceExistsException":
|
|
2647
|
-
|
|
2648
|
-
...(await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context)),
|
|
2649
|
-
name: errorCode,
|
|
2650
|
-
$metadata: deserializeMetadata(output),
|
|
2651
|
-
};
|
|
2652
|
-
break;
|
|
1749
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
2653
1750
|
case "ResourceNotFoundException":
|
|
2654
1751
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2655
|
-
|
|
2656
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2657
|
-
name: errorCode,
|
|
2658
|
-
$metadata: deserializeMetadata(output),
|
|
2659
|
-
};
|
|
2660
|
-
break;
|
|
1752
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2661
1753
|
case "ServiceUnavailableException":
|
|
2662
1754
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2663
|
-
|
|
2664
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2665
|
-
name: errorCode,
|
|
2666
|
-
$metadata: deserializeMetadata(output),
|
|
2667
|
-
};
|
|
2668
|
-
break;
|
|
1755
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2669
1756
|
case "ThrottlingException":
|
|
2670
1757
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
2671
|
-
|
|
2672
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2673
|
-
name: errorCode,
|
|
2674
|
-
$metadata: deserializeMetadata(output),
|
|
2675
|
-
};
|
|
2676
|
-
break;
|
|
1758
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2677
1759
|
default:
|
|
2678
1760
|
const parsedBody = parsedOutput.body;
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
...parsedBody,
|
|
2682
|
-
name: `${errorCode}`,
|
|
2683
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1761
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1762
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2684
1763
|
$fault: "client",
|
|
2685
1764
|
$metadata: deserializeMetadata(output),
|
|
2686
|
-
};
|
|
1765
|
+
});
|
|
1766
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2687
1767
|
}
|
|
2688
|
-
const message = response.message || response.Message || errorCode;
|
|
2689
|
-
response.message = message;
|
|
2690
|
-
delete response.Message;
|
|
2691
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2692
1768
|
};
|
|
2693
1769
|
const deserializeAws_json1_1UpdateUserCommand = async (output, context) => {
|
|
2694
1770
|
if (output.statusCode >= 300) {
|
|
@@ -2715,158 +1791,109 @@ const deserializeAws_json1_1UpdateUserCommandError = async (output, context) =>
|
|
|
2715
1791
|
switch (errorCode) {
|
|
2716
1792
|
case "InternalServiceError":
|
|
2717
1793
|
case "com.amazonaws.transfer#InternalServiceError":
|
|
2718
|
-
|
|
2719
|
-
...(await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)),
|
|
2720
|
-
name: errorCode,
|
|
2721
|
-
$metadata: deserializeMetadata(output),
|
|
2722
|
-
};
|
|
2723
|
-
break;
|
|
1794
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
2724
1795
|
case "InvalidRequestException":
|
|
2725
1796
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2726
|
-
|
|
2727
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2728
|
-
name: errorCode,
|
|
2729
|
-
$metadata: deserializeMetadata(output),
|
|
2730
|
-
};
|
|
2731
|
-
break;
|
|
1797
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2732
1798
|
case "ResourceNotFoundException":
|
|
2733
1799
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2734
|
-
|
|
2735
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2736
|
-
name: errorCode,
|
|
2737
|
-
$metadata: deserializeMetadata(output),
|
|
2738
|
-
};
|
|
2739
|
-
break;
|
|
1800
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2740
1801
|
case "ServiceUnavailableException":
|
|
2741
1802
|
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2742
|
-
|
|
2743
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2744
|
-
name: errorCode,
|
|
2745
|
-
$metadata: deserializeMetadata(output),
|
|
2746
|
-
};
|
|
2747
|
-
break;
|
|
1803
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2748
1804
|
case "ThrottlingException":
|
|
2749
1805
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
2750
|
-
|
|
2751
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2752
|
-
name: errorCode,
|
|
2753
|
-
$metadata: deserializeMetadata(output),
|
|
2754
|
-
};
|
|
2755
|
-
break;
|
|
1806
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2756
1807
|
default:
|
|
2757
1808
|
const parsedBody = parsedOutput.body;
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
...parsedBody,
|
|
2761
|
-
name: `${errorCode}`,
|
|
2762
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1809
|
+
response = new TransferServiceException_1.TransferServiceException({
|
|
1810
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2763
1811
|
$fault: "client",
|
|
2764
1812
|
$metadata: deserializeMetadata(output),
|
|
2765
|
-
};
|
|
1813
|
+
});
|
|
1814
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2766
1815
|
}
|
|
2767
|
-
const message = response.message || response.Message || errorCode;
|
|
2768
|
-
response.message = message;
|
|
2769
|
-
delete response.Message;
|
|
2770
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2771
1816
|
};
|
|
2772
1817
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2773
1818
|
const body = parsedOutput.body;
|
|
2774
1819
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
2775
|
-
const
|
|
2776
|
-
name: "AccessDeniedException",
|
|
2777
|
-
$fault: "client",
|
|
1820
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2778
1821
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2779
1822
|
...deserialized,
|
|
2780
|
-
};
|
|
2781
|
-
return
|
|
1823
|
+
});
|
|
1824
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2782
1825
|
};
|
|
2783
1826
|
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2784
1827
|
const body = parsedOutput.body;
|
|
2785
1828
|
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
2786
|
-
const
|
|
2787
|
-
name: "ConflictException",
|
|
2788
|
-
$fault: "client",
|
|
1829
|
+
const exception = new models_0_1.ConflictException({
|
|
2789
1830
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2790
1831
|
...deserialized,
|
|
2791
|
-
};
|
|
2792
|
-
return
|
|
1832
|
+
});
|
|
1833
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2793
1834
|
};
|
|
2794
1835
|
const deserializeAws_json1_1InternalServiceErrorResponse = async (parsedOutput, context) => {
|
|
2795
1836
|
const body = parsedOutput.body;
|
|
2796
1837
|
const deserialized = deserializeAws_json1_1InternalServiceError(body, context);
|
|
2797
|
-
const
|
|
2798
|
-
name: "InternalServiceError",
|
|
2799
|
-
$fault: "server",
|
|
1838
|
+
const exception = new models_0_1.InternalServiceError({
|
|
2800
1839
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2801
1840
|
...deserialized,
|
|
2802
|
-
};
|
|
2803
|
-
return
|
|
1841
|
+
});
|
|
1842
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2804
1843
|
};
|
|
2805
1844
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
2806
1845
|
const body = parsedOutput.body;
|
|
2807
1846
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
2808
|
-
const
|
|
2809
|
-
name: "InvalidNextTokenException",
|
|
2810
|
-
$fault: "client",
|
|
1847
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
2811
1848
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2812
1849
|
...deserialized,
|
|
2813
|
-
};
|
|
2814
|
-
return
|
|
1850
|
+
});
|
|
1851
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2815
1852
|
};
|
|
2816
1853
|
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
2817
1854
|
const body = parsedOutput.body;
|
|
2818
1855
|
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
2819
|
-
const
|
|
2820
|
-
name: "InvalidRequestException",
|
|
2821
|
-
$fault: "client",
|
|
1856
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
2822
1857
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2823
1858
|
...deserialized,
|
|
2824
|
-
};
|
|
2825
|
-
return
|
|
1859
|
+
});
|
|
1860
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2826
1861
|
};
|
|
2827
1862
|
const deserializeAws_json1_1ResourceExistsExceptionResponse = async (parsedOutput, context) => {
|
|
2828
1863
|
const body = parsedOutput.body;
|
|
2829
1864
|
const deserialized = deserializeAws_json1_1ResourceExistsException(body, context);
|
|
2830
|
-
const
|
|
2831
|
-
name: "ResourceExistsException",
|
|
2832
|
-
$fault: "client",
|
|
1865
|
+
const exception = new models_0_1.ResourceExistsException({
|
|
2833
1866
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2834
1867
|
...deserialized,
|
|
2835
|
-
};
|
|
2836
|
-
return
|
|
1868
|
+
});
|
|
1869
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2837
1870
|
};
|
|
2838
1871
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2839
1872
|
const body = parsedOutput.body;
|
|
2840
1873
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2841
|
-
const
|
|
2842
|
-
name: "ResourceNotFoundException",
|
|
2843
|
-
$fault: "client",
|
|
1874
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2844
1875
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2845
1876
|
...deserialized,
|
|
2846
|
-
};
|
|
2847
|
-
return
|
|
1877
|
+
});
|
|
1878
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2848
1879
|
};
|
|
2849
1880
|
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
2850
1881
|
const body = parsedOutput.body;
|
|
2851
1882
|
const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
2852
|
-
const
|
|
2853
|
-
name: "ServiceUnavailableException",
|
|
2854
|
-
$fault: "server",
|
|
1883
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
2855
1884
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2856
1885
|
...deserialized,
|
|
2857
|
-
};
|
|
2858
|
-
return
|
|
1886
|
+
});
|
|
1887
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2859
1888
|
};
|
|
2860
1889
|
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2861
1890
|
const body = parsedOutput.body;
|
|
2862
1891
|
const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
2863
|
-
const
|
|
2864
|
-
name: "ThrottlingException",
|
|
2865
|
-
$fault: "client",
|
|
1892
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2866
1893
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2867
1894
|
...deserialized,
|
|
2868
|
-
};
|
|
2869
|
-
return
|
|
1895
|
+
});
|
|
1896
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2870
1897
|
};
|
|
2871
1898
|
const serializeAws_json1_1AddressAllocationIds = (input, context) => {
|
|
2872
1899
|
return input
|
|
@@ -2887,6 +1914,8 @@ const serializeAws_json1_1CopyStepDetails = (input, context) => {
|
|
|
2887
1914
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2888
1915
|
...(input.OverwriteExisting !== undefined &&
|
|
2889
1916
|
input.OverwriteExisting !== null && { OverwriteExisting: input.OverwriteExisting }),
|
|
1917
|
+
...(input.SourceFileLocation !== undefined &&
|
|
1918
|
+
input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
|
|
2890
1919
|
};
|
|
2891
1920
|
};
|
|
2892
1921
|
const serializeAws_json1_1CreateAccessRequest = (input, context) => {
|
|
@@ -2923,6 +1952,14 @@ const serializeAws_json1_1CreateServerRequest = (input, context) => {
|
|
|
2923
1952
|
...(input.IdentityProviderType !== undefined &&
|
|
2924
1953
|
input.IdentityProviderType !== null && { IdentityProviderType: input.IdentityProviderType }),
|
|
2925
1954
|
...(input.LoggingRole !== undefined && input.LoggingRole !== null && { LoggingRole: input.LoggingRole }),
|
|
1955
|
+
...(input.PostAuthenticationLoginBanner !== undefined &&
|
|
1956
|
+
input.PostAuthenticationLoginBanner !== null && {
|
|
1957
|
+
PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
|
|
1958
|
+
}),
|
|
1959
|
+
...(input.PreAuthenticationLoginBanner !== undefined &&
|
|
1960
|
+
input.PreAuthenticationLoginBanner !== null && {
|
|
1961
|
+
PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
|
|
1962
|
+
}),
|
|
2926
1963
|
...(input.ProtocolDetails !== undefined &&
|
|
2927
1964
|
input.ProtocolDetails !== null && {
|
|
2928
1965
|
ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
|
|
@@ -2973,6 +2010,8 @@ const serializeAws_json1_1CreateWorkflowRequest = (input, context) => {
|
|
|
2973
2010
|
const serializeAws_json1_1CustomStepDetails = (input, context) => {
|
|
2974
2011
|
return {
|
|
2975
2012
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2013
|
+
...(input.SourceFileLocation !== undefined &&
|
|
2014
|
+
input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
|
|
2976
2015
|
...(input.Target !== undefined && input.Target !== null && { Target: input.Target }),
|
|
2977
2016
|
...(input.TimeoutSeconds !== undefined &&
|
|
2978
2017
|
input.TimeoutSeconds !== null && { TimeoutSeconds: input.TimeoutSeconds }),
|
|
@@ -3000,6 +2039,8 @@ const serializeAws_json1_1DeleteSshPublicKeyRequest = (input, context) => {
|
|
|
3000
2039
|
const serializeAws_json1_1DeleteStepDetails = (input, context) => {
|
|
3001
2040
|
return {
|
|
3002
2041
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2042
|
+
...(input.SourceFileLocation !== undefined &&
|
|
2043
|
+
input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
|
|
3003
2044
|
};
|
|
3004
2045
|
};
|
|
3005
2046
|
const serializeAws_json1_1DeleteUserRequest = (input, context) => {
|
|
@@ -3302,6 +2343,8 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
3302
2343
|
const serializeAws_json1_1TagStepDetails = (input, context) => {
|
|
3303
2344
|
return {
|
|
3304
2345
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2346
|
+
...(input.SourceFileLocation !== undefined &&
|
|
2347
|
+
input.SourceFileLocation !== null && { SourceFileLocation: input.SourceFileLocation }),
|
|
3305
2348
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1S3Tags(input.Tags, context) }),
|
|
3306
2349
|
};
|
|
3307
2350
|
};
|
|
@@ -3353,6 +2396,14 @@ const serializeAws_json1_1UpdateServerRequest = (input, context) => {
|
|
|
3353
2396
|
IdentityProviderDetails: serializeAws_json1_1IdentityProviderDetails(input.IdentityProviderDetails, context),
|
|
3354
2397
|
}),
|
|
3355
2398
|
...(input.LoggingRole !== undefined && input.LoggingRole !== null && { LoggingRole: input.LoggingRole }),
|
|
2399
|
+
...(input.PostAuthenticationLoginBanner !== undefined &&
|
|
2400
|
+
input.PostAuthenticationLoginBanner !== null && {
|
|
2401
|
+
PostAuthenticationLoginBanner: input.PostAuthenticationLoginBanner,
|
|
2402
|
+
}),
|
|
2403
|
+
...(input.PreAuthenticationLoginBanner !== undefined &&
|
|
2404
|
+
input.PreAuthenticationLoginBanner !== null && {
|
|
2405
|
+
PreAuthenticationLoginBanner: input.PreAuthenticationLoginBanner,
|
|
2406
|
+
}),
|
|
3356
2407
|
...(input.ProtocolDetails !== undefined &&
|
|
3357
2408
|
input.ProtocolDetails !== null && {
|
|
3358
2409
|
ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
|
|
@@ -3434,7 +2485,7 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
|
3434
2485
|
};
|
|
3435
2486
|
};
|
|
3436
2487
|
const deserializeAws_json1_1AddressAllocationIds = (output, context) => {
|
|
3437
|
-
|
|
2488
|
+
const retVal = (output || [])
|
|
3438
2489
|
.filter((e) => e != null)
|
|
3439
2490
|
.map((entry) => {
|
|
3440
2491
|
if (entry === null) {
|
|
@@ -3442,6 +2493,7 @@ const deserializeAws_json1_1AddressAllocationIds = (output, context) => {
|
|
|
3442
2493
|
}
|
|
3443
2494
|
return smithy_client_1.expectString(entry);
|
|
3444
2495
|
});
|
|
2496
|
+
return retVal;
|
|
3445
2497
|
};
|
|
3446
2498
|
const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
3447
2499
|
return {
|
|
@@ -3455,6 +2507,7 @@ const deserializeAws_json1_1CopyStepDetails = (output, context) => {
|
|
|
3455
2507
|
: undefined,
|
|
3456
2508
|
Name: smithy_client_1.expectString(output.Name),
|
|
3457
2509
|
OverwriteExisting: smithy_client_1.expectString(output.OverwriteExisting),
|
|
2510
|
+
SourceFileLocation: smithy_client_1.expectString(output.SourceFileLocation),
|
|
3458
2511
|
};
|
|
3459
2512
|
};
|
|
3460
2513
|
const deserializeAws_json1_1CreateAccessResponse = (output, context) => {
|
|
@@ -3482,6 +2535,7 @@ const deserializeAws_json1_1CreateWorkflowResponse = (output, context) => {
|
|
|
3482
2535
|
const deserializeAws_json1_1CustomStepDetails = (output, context) => {
|
|
3483
2536
|
return {
|
|
3484
2537
|
Name: smithy_client_1.expectString(output.Name),
|
|
2538
|
+
SourceFileLocation: smithy_client_1.expectString(output.SourceFileLocation),
|
|
3485
2539
|
Target: smithy_client_1.expectString(output.Target),
|
|
3486
2540
|
TimeoutSeconds: smithy_client_1.expectInt32(output.TimeoutSeconds),
|
|
3487
2541
|
};
|
|
@@ -3489,6 +2543,7 @@ const deserializeAws_json1_1CustomStepDetails = (output, context) => {
|
|
|
3489
2543
|
const deserializeAws_json1_1DeleteStepDetails = (output, context) => {
|
|
3490
2544
|
return {
|
|
3491
2545
|
Name: smithy_client_1.expectString(output.Name),
|
|
2546
|
+
SourceFileLocation: smithy_client_1.expectString(output.SourceFileLocation),
|
|
3492
2547
|
};
|
|
3493
2548
|
};
|
|
3494
2549
|
const deserializeAws_json1_1DescribeAccessResponse = (output, context) => {
|
|
@@ -3569,6 +2624,8 @@ const deserializeAws_json1_1DescribedServer = (output, context) => {
|
|
|
3569
2624
|
: undefined,
|
|
3570
2625
|
IdentityProviderType: smithy_client_1.expectString(output.IdentityProviderType),
|
|
3571
2626
|
LoggingRole: smithy_client_1.expectString(output.LoggingRole),
|
|
2627
|
+
PostAuthenticationLoginBanner: smithy_client_1.expectString(output.PostAuthenticationLoginBanner),
|
|
2628
|
+
PreAuthenticationLoginBanner: smithy_client_1.expectString(output.PreAuthenticationLoginBanner),
|
|
3572
2629
|
ProtocolDetails: output.ProtocolDetails !== undefined && output.ProtocolDetails !== null
|
|
3573
2630
|
? deserializeAws_json1_1ProtocolDetails(output.ProtocolDetails, context)
|
|
3574
2631
|
: undefined,
|
|
@@ -3703,7 +2760,7 @@ const deserializeAws_json1_1ExecutionStepResult = (output, context) => {
|
|
|
3703
2760
|
};
|
|
3704
2761
|
};
|
|
3705
2762
|
const deserializeAws_json1_1ExecutionStepResults = (output, context) => {
|
|
3706
|
-
|
|
2763
|
+
const retVal = (output || [])
|
|
3707
2764
|
.filter((e) => e != null)
|
|
3708
2765
|
.map((entry) => {
|
|
3709
2766
|
if (entry === null) {
|
|
@@ -3711,6 +2768,7 @@ const deserializeAws_json1_1ExecutionStepResults = (output, context) => {
|
|
|
3711
2768
|
}
|
|
3712
2769
|
return deserializeAws_json1_1ExecutionStepResult(entry, context);
|
|
3713
2770
|
});
|
|
2771
|
+
return retVal;
|
|
3714
2772
|
};
|
|
3715
2773
|
const deserializeAws_json1_1FileLocation = (output, context) => {
|
|
3716
2774
|
return {
|
|
@@ -3729,7 +2787,7 @@ const deserializeAws_json1_1HomeDirectoryMapEntry = (output, context) => {
|
|
|
3729
2787
|
};
|
|
3730
2788
|
};
|
|
3731
2789
|
const deserializeAws_json1_1HomeDirectoryMappings = (output, context) => {
|
|
3732
|
-
|
|
2790
|
+
const retVal = (output || [])
|
|
3733
2791
|
.filter((e) => e != null)
|
|
3734
2792
|
.map((entry) => {
|
|
3735
2793
|
if (entry === null) {
|
|
@@ -3737,6 +2795,7 @@ const deserializeAws_json1_1HomeDirectoryMappings = (output, context) => {
|
|
|
3737
2795
|
}
|
|
3738
2796
|
return deserializeAws_json1_1HomeDirectoryMapEntry(entry, context);
|
|
3739
2797
|
});
|
|
2798
|
+
return retVal;
|
|
3740
2799
|
};
|
|
3741
2800
|
const deserializeAws_json1_1IdentityProviderDetails = (output, context) => {
|
|
3742
2801
|
return {
|
|
@@ -3796,7 +2855,7 @@ const deserializeAws_json1_1ListedAccess = (output, context) => {
|
|
|
3796
2855
|
};
|
|
3797
2856
|
};
|
|
3798
2857
|
const deserializeAws_json1_1ListedAccesses = (output, context) => {
|
|
3799
|
-
|
|
2858
|
+
const retVal = (output || [])
|
|
3800
2859
|
.filter((e) => e != null)
|
|
3801
2860
|
.map((entry) => {
|
|
3802
2861
|
if (entry === null) {
|
|
@@ -3804,6 +2863,7 @@ const deserializeAws_json1_1ListedAccesses = (output, context) => {
|
|
|
3804
2863
|
}
|
|
3805
2864
|
return deserializeAws_json1_1ListedAccess(entry, context);
|
|
3806
2865
|
});
|
|
2866
|
+
return retVal;
|
|
3807
2867
|
};
|
|
3808
2868
|
const deserializeAws_json1_1ListedExecution = (output, context) => {
|
|
3809
2869
|
return {
|
|
@@ -3818,7 +2878,7 @@ const deserializeAws_json1_1ListedExecution = (output, context) => {
|
|
|
3818
2878
|
};
|
|
3819
2879
|
};
|
|
3820
2880
|
const deserializeAws_json1_1ListedExecutions = (output, context) => {
|
|
3821
|
-
|
|
2881
|
+
const retVal = (output || [])
|
|
3822
2882
|
.filter((e) => e != null)
|
|
3823
2883
|
.map((entry) => {
|
|
3824
2884
|
if (entry === null) {
|
|
@@ -3826,6 +2886,7 @@ const deserializeAws_json1_1ListedExecutions = (output, context) => {
|
|
|
3826
2886
|
}
|
|
3827
2887
|
return deserializeAws_json1_1ListedExecution(entry, context);
|
|
3828
2888
|
});
|
|
2889
|
+
return retVal;
|
|
3829
2890
|
};
|
|
3830
2891
|
const deserializeAws_json1_1ListedServer = (output, context) => {
|
|
3831
2892
|
return {
|
|
@@ -3840,7 +2901,7 @@ const deserializeAws_json1_1ListedServer = (output, context) => {
|
|
|
3840
2901
|
};
|
|
3841
2902
|
};
|
|
3842
2903
|
const deserializeAws_json1_1ListedServers = (output, context) => {
|
|
3843
|
-
|
|
2904
|
+
const retVal = (output || [])
|
|
3844
2905
|
.filter((e) => e != null)
|
|
3845
2906
|
.map((entry) => {
|
|
3846
2907
|
if (entry === null) {
|
|
@@ -3848,6 +2909,7 @@ const deserializeAws_json1_1ListedServers = (output, context) => {
|
|
|
3848
2909
|
}
|
|
3849
2910
|
return deserializeAws_json1_1ListedServer(entry, context);
|
|
3850
2911
|
});
|
|
2912
|
+
return retVal;
|
|
3851
2913
|
};
|
|
3852
2914
|
const deserializeAws_json1_1ListedUser = (output, context) => {
|
|
3853
2915
|
return {
|
|
@@ -3860,7 +2922,7 @@ const deserializeAws_json1_1ListedUser = (output, context) => {
|
|
|
3860
2922
|
};
|
|
3861
2923
|
};
|
|
3862
2924
|
const deserializeAws_json1_1ListedUsers = (output, context) => {
|
|
3863
|
-
|
|
2925
|
+
const retVal = (output || [])
|
|
3864
2926
|
.filter((e) => e != null)
|
|
3865
2927
|
.map((entry) => {
|
|
3866
2928
|
if (entry === null) {
|
|
@@ -3868,6 +2930,7 @@ const deserializeAws_json1_1ListedUsers = (output, context) => {
|
|
|
3868
2930
|
}
|
|
3869
2931
|
return deserializeAws_json1_1ListedUser(entry, context);
|
|
3870
2932
|
});
|
|
2933
|
+
return retVal;
|
|
3871
2934
|
};
|
|
3872
2935
|
const deserializeAws_json1_1ListedWorkflow = (output, context) => {
|
|
3873
2936
|
return {
|
|
@@ -3877,7 +2940,7 @@ const deserializeAws_json1_1ListedWorkflow = (output, context) => {
|
|
|
3877
2940
|
};
|
|
3878
2941
|
};
|
|
3879
2942
|
const deserializeAws_json1_1ListedWorkflows = (output, context) => {
|
|
3880
|
-
|
|
2943
|
+
const retVal = (output || [])
|
|
3881
2944
|
.filter((e) => e != null)
|
|
3882
2945
|
.map((entry) => {
|
|
3883
2946
|
if (entry === null) {
|
|
@@ -3885,6 +2948,7 @@ const deserializeAws_json1_1ListedWorkflows = (output, context) => {
|
|
|
3885
2948
|
}
|
|
3886
2949
|
return deserializeAws_json1_1ListedWorkflow(entry, context);
|
|
3887
2950
|
});
|
|
2951
|
+
return retVal;
|
|
3888
2952
|
};
|
|
3889
2953
|
const deserializeAws_json1_1ListExecutionsResponse = (output, context) => {
|
|
3890
2954
|
return {
|
|
@@ -3942,7 +3006,7 @@ const deserializeAws_json1_1LoggingConfiguration = (output, context) => {
|
|
|
3942
3006
|
};
|
|
3943
3007
|
};
|
|
3944
3008
|
const deserializeAws_json1_1OnUploadWorkflowDetails = (output, context) => {
|
|
3945
|
-
|
|
3009
|
+
const retVal = (output || [])
|
|
3946
3010
|
.filter((e) => e != null)
|
|
3947
3011
|
.map((entry) => {
|
|
3948
3012
|
if (entry === null) {
|
|
@@ -3950,6 +3014,7 @@ const deserializeAws_json1_1OnUploadWorkflowDetails = (output, context) => {
|
|
|
3950
3014
|
}
|
|
3951
3015
|
return deserializeAws_json1_1WorkflowDetail(entry, context);
|
|
3952
3016
|
});
|
|
3017
|
+
return retVal;
|
|
3953
3018
|
};
|
|
3954
3019
|
const deserializeAws_json1_1PosixProfile = (output, context) => {
|
|
3955
3020
|
return {
|
|
@@ -3967,7 +3032,7 @@ const deserializeAws_json1_1ProtocolDetails = (output, context) => {
|
|
|
3967
3032
|
};
|
|
3968
3033
|
};
|
|
3969
3034
|
const deserializeAws_json1_1Protocols = (output, context) => {
|
|
3970
|
-
|
|
3035
|
+
const retVal = (output || [])
|
|
3971
3036
|
.filter((e) => e != null)
|
|
3972
3037
|
.map((entry) => {
|
|
3973
3038
|
if (entry === null) {
|
|
@@ -3975,6 +3040,7 @@ const deserializeAws_json1_1Protocols = (output, context) => {
|
|
|
3975
3040
|
}
|
|
3976
3041
|
return smithy_client_1.expectString(entry);
|
|
3977
3042
|
});
|
|
3043
|
+
return retVal;
|
|
3978
3044
|
};
|
|
3979
3045
|
const deserializeAws_json1_1ResourceExistsException = (output, context) => {
|
|
3980
3046
|
return {
|
|
@@ -4011,7 +3077,7 @@ const deserializeAws_json1_1S3Tag = (output, context) => {
|
|
|
4011
3077
|
};
|
|
4012
3078
|
};
|
|
4013
3079
|
const deserializeAws_json1_1S3Tags = (output, context) => {
|
|
4014
|
-
|
|
3080
|
+
const retVal = (output || [])
|
|
4015
3081
|
.filter((e) => e != null)
|
|
4016
3082
|
.map((entry) => {
|
|
4017
3083
|
if (entry === null) {
|
|
@@ -4019,9 +3085,10 @@ const deserializeAws_json1_1S3Tags = (output, context) => {
|
|
|
4019
3085
|
}
|
|
4020
3086
|
return deserializeAws_json1_1S3Tag(entry, context);
|
|
4021
3087
|
});
|
|
3088
|
+
return retVal;
|
|
4022
3089
|
};
|
|
4023
3090
|
const deserializeAws_json1_1SecondaryGids = (output, context) => {
|
|
4024
|
-
|
|
3091
|
+
const retVal = (output || [])
|
|
4025
3092
|
.filter((e) => e != null)
|
|
4026
3093
|
.map((entry) => {
|
|
4027
3094
|
if (entry === null) {
|
|
@@ -4029,9 +3096,10 @@ const deserializeAws_json1_1SecondaryGids = (output, context) => {
|
|
|
4029
3096
|
}
|
|
4030
3097
|
return smithy_client_1.expectLong(entry);
|
|
4031
3098
|
});
|
|
3099
|
+
return retVal;
|
|
4032
3100
|
};
|
|
4033
3101
|
const deserializeAws_json1_1SecurityGroupIds = (output, context) => {
|
|
4034
|
-
|
|
3102
|
+
const retVal = (output || [])
|
|
4035
3103
|
.filter((e) => e != null)
|
|
4036
3104
|
.map((entry) => {
|
|
4037
3105
|
if (entry === null) {
|
|
@@ -4039,9 +3107,10 @@ const deserializeAws_json1_1SecurityGroupIds = (output, context) => {
|
|
|
4039
3107
|
}
|
|
4040
3108
|
return smithy_client_1.expectString(entry);
|
|
4041
3109
|
});
|
|
3110
|
+
return retVal;
|
|
4042
3111
|
};
|
|
4043
3112
|
const deserializeAws_json1_1SecurityPolicyNames = (output, context) => {
|
|
4044
|
-
|
|
3113
|
+
const retVal = (output || [])
|
|
4045
3114
|
.filter((e) => e != null)
|
|
4046
3115
|
.map((entry) => {
|
|
4047
3116
|
if (entry === null) {
|
|
@@ -4049,9 +3118,10 @@ const deserializeAws_json1_1SecurityPolicyNames = (output, context) => {
|
|
|
4049
3118
|
}
|
|
4050
3119
|
return smithy_client_1.expectString(entry);
|
|
4051
3120
|
});
|
|
3121
|
+
return retVal;
|
|
4052
3122
|
};
|
|
4053
3123
|
const deserializeAws_json1_1SecurityPolicyOptions = (output, context) => {
|
|
4054
|
-
|
|
3124
|
+
const retVal = (output || [])
|
|
4055
3125
|
.filter((e) => e != null)
|
|
4056
3126
|
.map((entry) => {
|
|
4057
3127
|
if (entry === null) {
|
|
@@ -4059,6 +3129,7 @@ const deserializeAws_json1_1SecurityPolicyOptions = (output, context) => {
|
|
|
4059
3129
|
}
|
|
4060
3130
|
return smithy_client_1.expectString(entry);
|
|
4061
3131
|
});
|
|
3132
|
+
return retVal;
|
|
4062
3133
|
};
|
|
4063
3134
|
const deserializeAws_json1_1SendWorkflowStepStateResponse = (output, context) => {
|
|
4064
3135
|
return {};
|
|
@@ -4085,7 +3156,7 @@ const deserializeAws_json1_1SshPublicKey = (output, context) => {
|
|
|
4085
3156
|
};
|
|
4086
3157
|
};
|
|
4087
3158
|
const deserializeAws_json1_1SshPublicKeys = (output, context) => {
|
|
4088
|
-
|
|
3159
|
+
const retVal = (output || [])
|
|
4089
3160
|
.filter((e) => e != null)
|
|
4090
3161
|
.map((entry) => {
|
|
4091
3162
|
if (entry === null) {
|
|
@@ -4093,9 +3164,10 @@ const deserializeAws_json1_1SshPublicKeys = (output, context) => {
|
|
|
4093
3164
|
}
|
|
4094
3165
|
return deserializeAws_json1_1SshPublicKey(entry, context);
|
|
4095
3166
|
});
|
|
3167
|
+
return retVal;
|
|
4096
3168
|
};
|
|
4097
3169
|
const deserializeAws_json1_1SubnetIds = (output, context) => {
|
|
4098
|
-
|
|
3170
|
+
const retVal = (output || [])
|
|
4099
3171
|
.filter((e) => e != null)
|
|
4100
3172
|
.map((entry) => {
|
|
4101
3173
|
if (entry === null) {
|
|
@@ -4103,6 +3175,7 @@ const deserializeAws_json1_1SubnetIds = (output, context) => {
|
|
|
4103
3175
|
}
|
|
4104
3176
|
return smithy_client_1.expectString(entry);
|
|
4105
3177
|
});
|
|
3178
|
+
return retVal;
|
|
4106
3179
|
};
|
|
4107
3180
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
4108
3181
|
return {
|
|
@@ -4111,7 +3184,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
4111
3184
|
};
|
|
4112
3185
|
};
|
|
4113
3186
|
const deserializeAws_json1_1Tags = (output, context) => {
|
|
4114
|
-
|
|
3187
|
+
const retVal = (output || [])
|
|
4115
3188
|
.filter((e) => e != null)
|
|
4116
3189
|
.map((entry) => {
|
|
4117
3190
|
if (entry === null) {
|
|
@@ -4119,10 +3192,12 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
4119
3192
|
}
|
|
4120
3193
|
return deserializeAws_json1_1Tag(entry, context);
|
|
4121
3194
|
});
|
|
3195
|
+
return retVal;
|
|
4122
3196
|
};
|
|
4123
3197
|
const deserializeAws_json1_1TagStepDetails = (output, context) => {
|
|
4124
3198
|
return {
|
|
4125
3199
|
Name: smithy_client_1.expectString(output.Name),
|
|
3200
|
+
SourceFileLocation: smithy_client_1.expectString(output.SourceFileLocation),
|
|
4126
3201
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4127
3202
|
? deserializeAws_json1_1S3Tags(output.Tags, context)
|
|
4128
3203
|
: undefined,
|
|
@@ -4196,7 +3271,7 @@ const deserializeAws_json1_1WorkflowStep = (output, context) => {
|
|
|
4196
3271
|
};
|
|
4197
3272
|
};
|
|
4198
3273
|
const deserializeAws_json1_1WorkflowSteps = (output, context) => {
|
|
4199
|
-
|
|
3274
|
+
const retVal = (output || [])
|
|
4200
3275
|
.filter((e) => e != null)
|
|
4201
3276
|
.map((entry) => {
|
|
4202
3277
|
if (entry === null) {
|
|
@@ -4204,6 +3279,7 @@ const deserializeAws_json1_1WorkflowSteps = (output, context) => {
|
|
|
4204
3279
|
}
|
|
4205
3280
|
return deserializeAws_json1_1WorkflowStep(entry, context);
|
|
4206
3281
|
});
|
|
3282
|
+
return retVal;
|
|
4207
3283
|
};
|
|
4208
3284
|
const deserializeMetadata = (output) => {
|
|
4209
3285
|
var _a;
|