@aws-sdk/client-appflow 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/CreateConnectorProfileCommand.js +2 -2
- package/dist-cjs/commands/CreateFlowCommand.js +2 -2
- package/dist-cjs/commands/DeleteConnectorProfileCommand.js +2 -2
- package/dist-cjs/commands/DeleteFlowCommand.js +2 -2
- package/dist-cjs/commands/DescribeConnectorCommand.js +2 -2
- package/dist-cjs/commands/DescribeConnectorEntityCommand.js +2 -2
- package/dist-cjs/commands/DescribeConnectorProfilesCommand.js +2 -2
- package/dist-cjs/commands/DescribeConnectorsCommand.js +2 -2
- package/dist-cjs/commands/DescribeFlowCommand.js +2 -2
- package/dist-cjs/commands/DescribeFlowExecutionRecordsCommand.js +2 -2
- package/dist-cjs/commands/ListConnectorEntitiesCommand.js +2 -2
- package/dist-cjs/commands/ListConnectorsCommand.js +2 -2
- package/dist-cjs/commands/ListFlowsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/RegisterConnectorCommand.js +2 -2
- package/dist-cjs/commands/StartFlowCommand.js +2 -2
- package/dist-cjs/commands/StopFlowCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UnregisterConnectorCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateConnectorProfileCommand.js +2 -2
- package/dist-cjs/commands/UpdateFlowCommand.js +2 -2
- package/dist-cjs/models/models_0.js +798 -1164
- package/dist-cjs/protocols/Aws_restJson1.js +245 -400
- package/dist-es/commands/CreateConnectorProfileCommand.js +3 -3
- package/dist-es/commands/CreateFlowCommand.js +3 -3
- package/dist-es/commands/DeleteConnectorProfileCommand.js +3 -3
- package/dist-es/commands/DeleteFlowCommand.js +3 -3
- package/dist-es/commands/DescribeConnectorCommand.js +3 -3
- package/dist-es/commands/DescribeConnectorEntityCommand.js +3 -3
- package/dist-es/commands/DescribeConnectorProfilesCommand.js +3 -3
- package/dist-es/commands/DescribeConnectorsCommand.js +3 -3
- package/dist-es/commands/DescribeFlowCommand.js +3 -3
- package/dist-es/commands/DescribeFlowExecutionRecordsCommand.js +3 -3
- package/dist-es/commands/ListConnectorEntitiesCommand.js +3 -3
- package/dist-es/commands/ListConnectorsCommand.js +3 -3
- package/dist-es/commands/ListFlowsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/RegisterConnectorCommand.js +3 -3
- package/dist-es/commands/StartFlowCommand.js +3 -3
- package/dist-es/commands/StopFlowCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UnregisterConnectorCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateConnectorProfileCommand.js +3 -3
- package/dist-es/commands/UpdateFlowCommand.js +3 -3
- package/dist-es/models/models_0.js +191 -740
- package/dist-es/protocols/Aws_restJson1.js +315 -402
- package/dist-types/models/models_0.d.ts +732 -1098
- package/dist-types/ts3.4/models/models_0.d.ts +366 -732
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AppflowServiceException as __BaseException } from "../models/AppflowServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, ConnectorAuthenticationException, ConnectorServerException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnsupportedOperationException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateConnectorProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -328,7 +328,7 @@ export var serializeAws_restJson1ListFlowsCommand = function (input, context) {
|
|
|
328
328
|
});
|
|
329
329
|
}); };
|
|
330
330
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
331
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
331
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
332
332
|
return __generator(this, function (_c) {
|
|
333
333
|
switch (_c.label) {
|
|
334
334
|
case 0: return [4, context.endpoint()];
|
|
@@ -336,16 +336,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
336
336
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
337
337
|
headers = {};
|
|
338
338
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
339
|
-
|
|
340
|
-
labelValue = input.resourceArn;
|
|
341
|
-
if (labelValue.length <= 0) {
|
|
342
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
343
|
-
}
|
|
344
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
348
|
-
}
|
|
339
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
349
340
|
return [2, new __HttpRequest({
|
|
350
341
|
protocol: protocol,
|
|
351
342
|
hostname: hostname,
|
|
@@ -433,7 +424,7 @@ export var serializeAws_restJson1StopFlowCommand = function (input, context) { r
|
|
|
433
424
|
});
|
|
434
425
|
}); };
|
|
435
426
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
436
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
427
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
437
428
|
return __generator(this, function (_c) {
|
|
438
429
|
switch (_c.label) {
|
|
439
430
|
case 0: return [4, context.endpoint()];
|
|
@@ -443,16 +434,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
443
434
|
"content-type": "application/json",
|
|
444
435
|
};
|
|
445
436
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
446
|
-
|
|
447
|
-
labelValue = input.resourceArn;
|
|
448
|
-
if (labelValue.length <= 0) {
|
|
449
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
450
|
-
}
|
|
451
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
452
|
-
}
|
|
453
|
-
else {
|
|
454
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
455
|
-
}
|
|
437
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
456
438
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
457
439
|
return [2, new __HttpRequest({
|
|
458
440
|
protocol: protocol,
|
|
@@ -491,7 +473,7 @@ export var serializeAws_restJson1UnregisterConnectorCommand = function (input, c
|
|
|
491
473
|
});
|
|
492
474
|
}); };
|
|
493
475
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
494
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
476
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
495
477
|
return __generator(this, function (_c) {
|
|
496
478
|
switch (_c.label) {
|
|
497
479
|
case 0: return [4, context.endpoint()];
|
|
@@ -499,17 +481,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
499
481
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
500
482
|
headers = {};
|
|
501
483
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
}
|
|
507
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
508
|
-
}
|
|
509
|
-
else {
|
|
510
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
511
|
-
}
|
|
512
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
484
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
485
|
+
query = map({
|
|
486
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
487
|
+
});
|
|
513
488
|
return [2, new __HttpRequest({
|
|
514
489
|
protocol: protocol,
|
|
515
490
|
hostname: hostname,
|
|
@@ -587,24 +562,23 @@ export var deserializeAws_restJson1CreateConnectorProfileCommand = function (out
|
|
|
587
562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
588
563
|
return [2, deserializeAws_restJson1CreateConnectorProfileCommandError(output, context)];
|
|
589
564
|
}
|
|
590
|
-
contents = {
|
|
565
|
+
contents = map({
|
|
591
566
|
$metadata: deserializeMetadata(output),
|
|
592
|
-
|
|
593
|
-
};
|
|
567
|
+
});
|
|
594
568
|
_a = __expectNonNull;
|
|
595
569
|
_b = __expectObject;
|
|
596
570
|
return [4, parseBody(output.body, context)];
|
|
597
571
|
case 1:
|
|
598
572
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
599
|
-
if (data.connectorProfileArn
|
|
573
|
+
if (data.connectorProfileArn != null) {
|
|
600
574
|
contents.connectorProfileArn = __expectString(data.connectorProfileArn);
|
|
601
575
|
}
|
|
602
|
-
return [2,
|
|
576
|
+
return [2, contents];
|
|
603
577
|
}
|
|
604
578
|
});
|
|
605
579
|
}); };
|
|
606
580
|
var deserializeAws_restJson1CreateConnectorProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
607
|
-
var parsedOutput, _a,
|
|
581
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
608
582
|
var _c;
|
|
609
583
|
return __generator(this, function (_d) {
|
|
610
584
|
switch (_d.label) {
|
|
@@ -641,14 +615,14 @@ var deserializeAws_restJson1CreateConnectorProfileCommandError = function (outpu
|
|
|
641
615
|
case 11: throw _d.sent();
|
|
642
616
|
case 12:
|
|
643
617
|
parsedBody = parsedOutput.body;
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
$metadata: $metadata,
|
|
618
|
+
throwDefaultError({
|
|
619
|
+
output: output,
|
|
620
|
+
parsedBody: parsedBody,
|
|
621
|
+
exceptionCtor: __BaseException,
|
|
622
|
+
errorCode: errorCode,
|
|
650
623
|
});
|
|
651
|
-
|
|
624
|
+
_d.label = 13;
|
|
625
|
+
case 13: return [2];
|
|
652
626
|
}
|
|
653
627
|
});
|
|
654
628
|
}); };
|
|
@@ -660,28 +634,26 @@ export var deserializeAws_restJson1CreateFlowCommand = function (output, context
|
|
|
660
634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
635
|
return [2, deserializeAws_restJson1CreateFlowCommandError(output, context)];
|
|
662
636
|
}
|
|
663
|
-
contents = {
|
|
637
|
+
contents = map({
|
|
664
638
|
$metadata: deserializeMetadata(output),
|
|
665
|
-
|
|
666
|
-
flowStatus: undefined,
|
|
667
|
-
};
|
|
639
|
+
});
|
|
668
640
|
_a = __expectNonNull;
|
|
669
641
|
_b = __expectObject;
|
|
670
642
|
return [4, parseBody(output.body, context)];
|
|
671
643
|
case 1:
|
|
672
644
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
673
|
-
if (data.flowArn
|
|
645
|
+
if (data.flowArn != null) {
|
|
674
646
|
contents.flowArn = __expectString(data.flowArn);
|
|
675
647
|
}
|
|
676
|
-
if (data.flowStatus
|
|
648
|
+
if (data.flowStatus != null) {
|
|
677
649
|
contents.flowStatus = __expectString(data.flowStatus);
|
|
678
650
|
}
|
|
679
|
-
return [2,
|
|
651
|
+
return [2, contents];
|
|
680
652
|
}
|
|
681
653
|
});
|
|
682
654
|
}); };
|
|
683
655
|
var deserializeAws_restJson1CreateFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
684
|
-
var parsedOutput, _a,
|
|
656
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
685
657
|
var _c;
|
|
686
658
|
return __generator(this, function (_d) {
|
|
687
659
|
switch (_d.label) {
|
|
@@ -726,14 +698,14 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
|
|
|
726
698
|
case 15: throw _d.sent();
|
|
727
699
|
case 16:
|
|
728
700
|
parsedBody = parsedOutput.body;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
$metadata: $metadata,
|
|
701
|
+
throwDefaultError({
|
|
702
|
+
output: output,
|
|
703
|
+
parsedBody: parsedBody,
|
|
704
|
+
exceptionCtor: __BaseException,
|
|
705
|
+
errorCode: errorCode,
|
|
735
706
|
});
|
|
736
|
-
|
|
707
|
+
_d.label = 17;
|
|
708
|
+
case 17: return [2];
|
|
737
709
|
}
|
|
738
710
|
});
|
|
739
711
|
}); };
|
|
@@ -745,18 +717,18 @@ export var deserializeAws_restJson1DeleteConnectorProfileCommand = function (out
|
|
|
745
717
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
746
718
|
return [2, deserializeAws_restJson1DeleteConnectorProfileCommandError(output, context)];
|
|
747
719
|
}
|
|
748
|
-
contents = {
|
|
720
|
+
contents = map({
|
|
749
721
|
$metadata: deserializeMetadata(output),
|
|
750
|
-
};
|
|
722
|
+
});
|
|
751
723
|
return [4, collectBody(output.body, context)];
|
|
752
724
|
case 1:
|
|
753
725
|
_a.sent();
|
|
754
|
-
return [2,
|
|
726
|
+
return [2, contents];
|
|
755
727
|
}
|
|
756
728
|
});
|
|
757
729
|
}); };
|
|
758
730
|
var deserializeAws_restJson1DeleteConnectorProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
759
|
-
var parsedOutput, _a,
|
|
731
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
760
732
|
var _c;
|
|
761
733
|
return __generator(this, function (_d) {
|
|
762
734
|
switch (_d.label) {
|
|
@@ -785,14 +757,14 @@ var deserializeAws_restJson1DeleteConnectorProfileCommandError = function (outpu
|
|
|
785
757
|
case 7: throw _d.sent();
|
|
786
758
|
case 8:
|
|
787
759
|
parsedBody = parsedOutput.body;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
$metadata: $metadata,
|
|
760
|
+
throwDefaultError({
|
|
761
|
+
output: output,
|
|
762
|
+
parsedBody: parsedBody,
|
|
763
|
+
exceptionCtor: __BaseException,
|
|
764
|
+
errorCode: errorCode,
|
|
794
765
|
});
|
|
795
|
-
|
|
766
|
+
_d.label = 9;
|
|
767
|
+
case 9: return [2];
|
|
796
768
|
}
|
|
797
769
|
});
|
|
798
770
|
}); };
|
|
@@ -804,18 +776,18 @@ export var deserializeAws_restJson1DeleteFlowCommand = function (output, context
|
|
|
804
776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
777
|
return [2, deserializeAws_restJson1DeleteFlowCommandError(output, context)];
|
|
806
778
|
}
|
|
807
|
-
contents = {
|
|
779
|
+
contents = map({
|
|
808
780
|
$metadata: deserializeMetadata(output),
|
|
809
|
-
};
|
|
781
|
+
});
|
|
810
782
|
return [4, collectBody(output.body, context)];
|
|
811
783
|
case 1:
|
|
812
784
|
_a.sent();
|
|
813
|
-
return [2,
|
|
785
|
+
return [2, contents];
|
|
814
786
|
}
|
|
815
787
|
});
|
|
816
788
|
}); };
|
|
817
789
|
var deserializeAws_restJson1DeleteFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
818
|
-
var parsedOutput, _a,
|
|
790
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
819
791
|
var _c;
|
|
820
792
|
return __generator(this, function (_d) {
|
|
821
793
|
switch (_d.label) {
|
|
@@ -844,14 +816,14 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
|
|
|
844
816
|
case 7: throw _d.sent();
|
|
845
817
|
case 8:
|
|
846
818
|
parsedBody = parsedOutput.body;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
$metadata: $metadata,
|
|
819
|
+
throwDefaultError({
|
|
820
|
+
output: output,
|
|
821
|
+
parsedBody: parsedBody,
|
|
822
|
+
exceptionCtor: __BaseException,
|
|
823
|
+
errorCode: errorCode,
|
|
853
824
|
});
|
|
854
|
-
|
|
825
|
+
_d.label = 9;
|
|
826
|
+
case 9: return [2];
|
|
855
827
|
}
|
|
856
828
|
});
|
|
857
829
|
}); };
|
|
@@ -863,24 +835,23 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
|
|
|
863
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
864
836
|
return [2, deserializeAws_restJson1DescribeConnectorCommandError(output, context)];
|
|
865
837
|
}
|
|
866
|
-
contents = {
|
|
838
|
+
contents = map({
|
|
867
839
|
$metadata: deserializeMetadata(output),
|
|
868
|
-
|
|
869
|
-
};
|
|
840
|
+
});
|
|
870
841
|
_a = __expectNonNull;
|
|
871
842
|
_b = __expectObject;
|
|
872
843
|
return [4, parseBody(output.body, context)];
|
|
873
844
|
case 1:
|
|
874
845
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
875
|
-
if (data.connectorConfiguration
|
|
846
|
+
if (data.connectorConfiguration != null) {
|
|
876
847
|
contents.connectorConfiguration = deserializeAws_restJson1ConnectorConfiguration(data.connectorConfiguration, context);
|
|
877
848
|
}
|
|
878
|
-
return [2,
|
|
849
|
+
return [2, contents];
|
|
879
850
|
}
|
|
880
851
|
});
|
|
881
852
|
}); };
|
|
882
853
|
var deserializeAws_restJson1DescribeConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
883
|
-
var parsedOutput, _a,
|
|
854
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
884
855
|
var _c;
|
|
885
856
|
return __generator(this, function (_d) {
|
|
886
857
|
switch (_d.label) {
|
|
@@ -909,14 +880,14 @@ var deserializeAws_restJson1DescribeConnectorCommandError = function (output, co
|
|
|
909
880
|
case 7: throw _d.sent();
|
|
910
881
|
case 8:
|
|
911
882
|
parsedBody = parsedOutput.body;
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
$metadata: $metadata,
|
|
883
|
+
throwDefaultError({
|
|
884
|
+
output: output,
|
|
885
|
+
parsedBody: parsedBody,
|
|
886
|
+
exceptionCtor: __BaseException,
|
|
887
|
+
errorCode: errorCode,
|
|
918
888
|
});
|
|
919
|
-
|
|
889
|
+
_d.label = 9;
|
|
890
|
+
case 9: return [2];
|
|
920
891
|
}
|
|
921
892
|
});
|
|
922
893
|
}); };
|
|
@@ -928,24 +899,23 @@ export var deserializeAws_restJson1DescribeConnectorEntityCommand = function (ou
|
|
|
928
899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
929
900
|
return [2, deserializeAws_restJson1DescribeConnectorEntityCommandError(output, context)];
|
|
930
901
|
}
|
|
931
|
-
contents = {
|
|
902
|
+
contents = map({
|
|
932
903
|
$metadata: deserializeMetadata(output),
|
|
933
|
-
|
|
934
|
-
};
|
|
904
|
+
});
|
|
935
905
|
_a = __expectNonNull;
|
|
936
906
|
_b = __expectObject;
|
|
937
907
|
return [4, parseBody(output.body, context)];
|
|
938
908
|
case 1:
|
|
939
909
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
940
|
-
if (data.connectorEntityFields
|
|
910
|
+
if (data.connectorEntityFields != null) {
|
|
941
911
|
contents.connectorEntityFields = deserializeAws_restJson1ConnectorEntityFieldList(data.connectorEntityFields, context);
|
|
942
912
|
}
|
|
943
|
-
return [2,
|
|
913
|
+
return [2, contents];
|
|
944
914
|
}
|
|
945
915
|
});
|
|
946
916
|
}); };
|
|
947
917
|
var deserializeAws_restJson1DescribeConnectorEntityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
948
|
-
var parsedOutput, _a,
|
|
918
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
949
919
|
var _c;
|
|
950
920
|
return __generator(this, function (_d) {
|
|
951
921
|
switch (_d.label) {
|
|
@@ -982,14 +952,14 @@ var deserializeAws_restJson1DescribeConnectorEntityCommandError = function (outp
|
|
|
982
952
|
case 11: throw _d.sent();
|
|
983
953
|
case 12:
|
|
984
954
|
parsedBody = parsedOutput.body;
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
$metadata: $metadata,
|
|
955
|
+
throwDefaultError({
|
|
956
|
+
output: output,
|
|
957
|
+
parsedBody: parsedBody,
|
|
958
|
+
exceptionCtor: __BaseException,
|
|
959
|
+
errorCode: errorCode,
|
|
991
960
|
});
|
|
992
|
-
|
|
961
|
+
_d.label = 13;
|
|
962
|
+
case 13: return [2];
|
|
993
963
|
}
|
|
994
964
|
});
|
|
995
965
|
}); };
|
|
@@ -1001,28 +971,26 @@ export var deserializeAws_restJson1DescribeConnectorProfilesCommand = function (
|
|
|
1001
971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1002
972
|
return [2, deserializeAws_restJson1DescribeConnectorProfilesCommandError(output, context)];
|
|
1003
973
|
}
|
|
1004
|
-
contents = {
|
|
974
|
+
contents = map({
|
|
1005
975
|
$metadata: deserializeMetadata(output),
|
|
1006
|
-
|
|
1007
|
-
nextToken: undefined,
|
|
1008
|
-
};
|
|
976
|
+
});
|
|
1009
977
|
_a = __expectNonNull;
|
|
1010
978
|
_b = __expectObject;
|
|
1011
979
|
return [4, parseBody(output.body, context)];
|
|
1012
980
|
case 1:
|
|
1013
981
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1014
|
-
if (data.connectorProfileDetails
|
|
982
|
+
if (data.connectorProfileDetails != null) {
|
|
1015
983
|
contents.connectorProfileDetails = deserializeAws_restJson1ConnectorProfileDetailList(data.connectorProfileDetails, context);
|
|
1016
984
|
}
|
|
1017
|
-
if (data.nextToken
|
|
985
|
+
if (data.nextToken != null) {
|
|
1018
986
|
contents.nextToken = __expectString(data.nextToken);
|
|
1019
987
|
}
|
|
1020
|
-
return [2,
|
|
988
|
+
return [2, contents];
|
|
1021
989
|
}
|
|
1022
990
|
});
|
|
1023
991
|
}); };
|
|
1024
992
|
var deserializeAws_restJson1DescribeConnectorProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1025
|
-
var parsedOutput, _a,
|
|
993
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1026
994
|
var _c;
|
|
1027
995
|
return __generator(this, function (_d) {
|
|
1028
996
|
switch (_d.label) {
|
|
@@ -1047,14 +1015,14 @@ var deserializeAws_restJson1DescribeConnectorProfilesCommandError = function (ou
|
|
|
1047
1015
|
case 5: throw _d.sent();
|
|
1048
1016
|
case 6:
|
|
1049
1017
|
parsedBody = parsedOutput.body;
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
$metadata: $metadata,
|
|
1018
|
+
throwDefaultError({
|
|
1019
|
+
output: output,
|
|
1020
|
+
parsedBody: parsedBody,
|
|
1021
|
+
exceptionCtor: __BaseException,
|
|
1022
|
+
errorCode: errorCode,
|
|
1056
1023
|
});
|
|
1057
|
-
|
|
1024
|
+
_d.label = 7;
|
|
1025
|
+
case 7: return [2];
|
|
1058
1026
|
}
|
|
1059
1027
|
});
|
|
1060
1028
|
}); };
|
|
@@ -1066,32 +1034,29 @@ export var deserializeAws_restJson1DescribeConnectorsCommand = function (output,
|
|
|
1066
1034
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1067
1035
|
return [2, deserializeAws_restJson1DescribeConnectorsCommandError(output, context)];
|
|
1068
1036
|
}
|
|
1069
|
-
contents = {
|
|
1037
|
+
contents = map({
|
|
1070
1038
|
$metadata: deserializeMetadata(output),
|
|
1071
|
-
|
|
1072
|
-
connectors: undefined,
|
|
1073
|
-
nextToken: undefined,
|
|
1074
|
-
};
|
|
1039
|
+
});
|
|
1075
1040
|
_a = __expectNonNull;
|
|
1076
1041
|
_b = __expectObject;
|
|
1077
1042
|
return [4, parseBody(output.body, context)];
|
|
1078
1043
|
case 1:
|
|
1079
1044
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1080
|
-
if (data.connectorConfigurations
|
|
1045
|
+
if (data.connectorConfigurations != null) {
|
|
1081
1046
|
contents.connectorConfigurations = deserializeAws_restJson1ConnectorConfigurationsMap(data.connectorConfigurations, context);
|
|
1082
1047
|
}
|
|
1083
|
-
if (data.connectors
|
|
1048
|
+
if (data.connectors != null) {
|
|
1084
1049
|
contents.connectors = deserializeAws_restJson1ConnectorList(data.connectors, context);
|
|
1085
1050
|
}
|
|
1086
|
-
if (data.nextToken
|
|
1051
|
+
if (data.nextToken != null) {
|
|
1087
1052
|
contents.nextToken = __expectString(data.nextToken);
|
|
1088
1053
|
}
|
|
1089
|
-
return [2,
|
|
1054
|
+
return [2, contents];
|
|
1090
1055
|
}
|
|
1091
1056
|
});
|
|
1092
1057
|
}); };
|
|
1093
1058
|
var deserializeAws_restJson1DescribeConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1094
|
-
var parsedOutput, _a,
|
|
1059
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1095
1060
|
var _c;
|
|
1096
1061
|
return __generator(this, function (_d) {
|
|
1097
1062
|
switch (_d.label) {
|
|
@@ -1116,14 +1081,14 @@ var deserializeAws_restJson1DescribeConnectorsCommandError = function (output, c
|
|
|
1116
1081
|
case 5: throw _d.sent();
|
|
1117
1082
|
case 6:
|
|
1118
1083
|
parsedBody = parsedOutput.body;
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
$metadata: $metadata,
|
|
1084
|
+
throwDefaultError({
|
|
1085
|
+
output: output,
|
|
1086
|
+
parsedBody: parsedBody,
|
|
1087
|
+
exceptionCtor: __BaseException,
|
|
1088
|
+
errorCode: errorCode,
|
|
1125
1089
|
});
|
|
1126
|
-
|
|
1090
|
+
_d.label = 7;
|
|
1091
|
+
case 7: return [2];
|
|
1127
1092
|
}
|
|
1128
1093
|
});
|
|
1129
1094
|
}); };
|
|
@@ -1135,84 +1100,68 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
|
|
|
1135
1100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1136
1101
|
return [2, deserializeAws_restJson1DescribeFlowCommandError(output, context)];
|
|
1137
1102
|
}
|
|
1138
|
-
contents = {
|
|
1103
|
+
contents = map({
|
|
1139
1104
|
$metadata: deserializeMetadata(output),
|
|
1140
|
-
|
|
1141
|
-
createdBy: undefined,
|
|
1142
|
-
description: undefined,
|
|
1143
|
-
destinationFlowConfigList: undefined,
|
|
1144
|
-
flowArn: undefined,
|
|
1145
|
-
flowName: undefined,
|
|
1146
|
-
flowStatus: undefined,
|
|
1147
|
-
flowStatusMessage: undefined,
|
|
1148
|
-
kmsArn: undefined,
|
|
1149
|
-
lastRunExecutionDetails: undefined,
|
|
1150
|
-
lastUpdatedAt: undefined,
|
|
1151
|
-
lastUpdatedBy: undefined,
|
|
1152
|
-
sourceFlowConfig: undefined,
|
|
1153
|
-
tags: undefined,
|
|
1154
|
-
tasks: undefined,
|
|
1155
|
-
triggerConfig: undefined,
|
|
1156
|
-
};
|
|
1105
|
+
});
|
|
1157
1106
|
_a = __expectNonNull;
|
|
1158
1107
|
_b = __expectObject;
|
|
1159
1108
|
return [4, parseBody(output.body, context)];
|
|
1160
1109
|
case 1:
|
|
1161
1110
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1162
|
-
if (data.createdAt
|
|
1111
|
+
if (data.createdAt != null) {
|
|
1163
1112
|
contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
|
|
1164
1113
|
}
|
|
1165
|
-
if (data.createdBy
|
|
1114
|
+
if (data.createdBy != null) {
|
|
1166
1115
|
contents.createdBy = __expectString(data.createdBy);
|
|
1167
1116
|
}
|
|
1168
|
-
if (data.description
|
|
1117
|
+
if (data.description != null) {
|
|
1169
1118
|
contents.description = __expectString(data.description);
|
|
1170
1119
|
}
|
|
1171
|
-
if (data.destinationFlowConfigList
|
|
1120
|
+
if (data.destinationFlowConfigList != null) {
|
|
1172
1121
|
contents.destinationFlowConfigList = deserializeAws_restJson1DestinationFlowConfigList(data.destinationFlowConfigList, context);
|
|
1173
1122
|
}
|
|
1174
|
-
if (data.flowArn
|
|
1123
|
+
if (data.flowArn != null) {
|
|
1175
1124
|
contents.flowArn = __expectString(data.flowArn);
|
|
1176
1125
|
}
|
|
1177
|
-
if (data.flowName
|
|
1126
|
+
if (data.flowName != null) {
|
|
1178
1127
|
contents.flowName = __expectString(data.flowName);
|
|
1179
1128
|
}
|
|
1180
|
-
if (data.flowStatus
|
|
1129
|
+
if (data.flowStatus != null) {
|
|
1181
1130
|
contents.flowStatus = __expectString(data.flowStatus);
|
|
1182
1131
|
}
|
|
1183
|
-
if (data.flowStatusMessage
|
|
1132
|
+
if (data.flowStatusMessage != null) {
|
|
1184
1133
|
contents.flowStatusMessage = __expectString(data.flowStatusMessage);
|
|
1185
1134
|
}
|
|
1186
|
-
if (data.kmsArn
|
|
1135
|
+
if (data.kmsArn != null) {
|
|
1187
1136
|
contents.kmsArn = __expectString(data.kmsArn);
|
|
1188
1137
|
}
|
|
1189
|
-
if (data.lastRunExecutionDetails
|
|
1138
|
+
if (data.lastRunExecutionDetails != null) {
|
|
1190
1139
|
contents.lastRunExecutionDetails = deserializeAws_restJson1ExecutionDetails(data.lastRunExecutionDetails, context);
|
|
1191
1140
|
}
|
|
1192
|
-
if (data.lastUpdatedAt
|
|
1141
|
+
if (data.lastUpdatedAt != null) {
|
|
1193
1142
|
contents.lastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdatedAt)));
|
|
1194
1143
|
}
|
|
1195
|
-
if (data.lastUpdatedBy
|
|
1144
|
+
if (data.lastUpdatedBy != null) {
|
|
1196
1145
|
contents.lastUpdatedBy = __expectString(data.lastUpdatedBy);
|
|
1197
1146
|
}
|
|
1198
|
-
if (data.sourceFlowConfig
|
|
1147
|
+
if (data.sourceFlowConfig != null) {
|
|
1199
1148
|
contents.sourceFlowConfig = deserializeAws_restJson1SourceFlowConfig(data.sourceFlowConfig, context);
|
|
1200
1149
|
}
|
|
1201
|
-
if (data.tags
|
|
1150
|
+
if (data.tags != null) {
|
|
1202
1151
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1203
1152
|
}
|
|
1204
|
-
if (data.tasks
|
|
1153
|
+
if (data.tasks != null) {
|
|
1205
1154
|
contents.tasks = deserializeAws_restJson1Tasks(data.tasks, context);
|
|
1206
1155
|
}
|
|
1207
|
-
if (data.triggerConfig
|
|
1156
|
+
if (data.triggerConfig != null) {
|
|
1208
1157
|
contents.triggerConfig = deserializeAws_restJson1TriggerConfig(data.triggerConfig, context);
|
|
1209
1158
|
}
|
|
1210
|
-
return [2,
|
|
1159
|
+
return [2, contents];
|
|
1211
1160
|
}
|
|
1212
1161
|
});
|
|
1213
1162
|
}); };
|
|
1214
1163
|
var deserializeAws_restJson1DescribeFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1215
|
-
var parsedOutput, _a,
|
|
1164
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1216
1165
|
var _c;
|
|
1217
1166
|
return __generator(this, function (_d) {
|
|
1218
1167
|
switch (_d.label) {
|
|
@@ -1237,14 +1186,14 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
|
|
|
1237
1186
|
case 5: throw _d.sent();
|
|
1238
1187
|
case 6:
|
|
1239
1188
|
parsedBody = parsedOutput.body;
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
$metadata: $metadata,
|
|
1189
|
+
throwDefaultError({
|
|
1190
|
+
output: output,
|
|
1191
|
+
parsedBody: parsedBody,
|
|
1192
|
+
exceptionCtor: __BaseException,
|
|
1193
|
+
errorCode: errorCode,
|
|
1246
1194
|
});
|
|
1247
|
-
|
|
1195
|
+
_d.label = 7;
|
|
1196
|
+
case 7: return [2];
|
|
1248
1197
|
}
|
|
1249
1198
|
});
|
|
1250
1199
|
}); };
|
|
@@ -1256,28 +1205,26 @@ export var deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = functio
|
|
|
1256
1205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1257
1206
|
return [2, deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError(output, context)];
|
|
1258
1207
|
}
|
|
1259
|
-
contents = {
|
|
1208
|
+
contents = map({
|
|
1260
1209
|
$metadata: deserializeMetadata(output),
|
|
1261
|
-
|
|
1262
|
-
nextToken: undefined,
|
|
1263
|
-
};
|
|
1210
|
+
});
|
|
1264
1211
|
_a = __expectNonNull;
|
|
1265
1212
|
_b = __expectObject;
|
|
1266
1213
|
return [4, parseBody(output.body, context)];
|
|
1267
1214
|
case 1:
|
|
1268
1215
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1269
|
-
if (data.flowExecutions
|
|
1216
|
+
if (data.flowExecutions != null) {
|
|
1270
1217
|
contents.flowExecutions = deserializeAws_restJson1FlowExecutionList(data.flowExecutions, context);
|
|
1271
1218
|
}
|
|
1272
|
-
if (data.nextToken
|
|
1219
|
+
if (data.nextToken != null) {
|
|
1273
1220
|
contents.nextToken = __expectString(data.nextToken);
|
|
1274
1221
|
}
|
|
1275
|
-
return [2,
|
|
1222
|
+
return [2, contents];
|
|
1276
1223
|
}
|
|
1277
1224
|
});
|
|
1278
1225
|
}); };
|
|
1279
1226
|
var deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1280
|
-
var parsedOutput, _a,
|
|
1227
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1281
1228
|
var _c;
|
|
1282
1229
|
return __generator(this, function (_d) {
|
|
1283
1230
|
switch (_d.label) {
|
|
@@ -1306,14 +1253,14 @@ var deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = function
|
|
|
1306
1253
|
case 7: throw _d.sent();
|
|
1307
1254
|
case 8:
|
|
1308
1255
|
parsedBody = parsedOutput.body;
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
$metadata: $metadata,
|
|
1256
|
+
throwDefaultError({
|
|
1257
|
+
output: output,
|
|
1258
|
+
parsedBody: parsedBody,
|
|
1259
|
+
exceptionCtor: __BaseException,
|
|
1260
|
+
errorCode: errorCode,
|
|
1315
1261
|
});
|
|
1316
|
-
|
|
1262
|
+
_d.label = 9;
|
|
1263
|
+
case 9: return [2];
|
|
1317
1264
|
}
|
|
1318
1265
|
});
|
|
1319
1266
|
}); };
|
|
@@ -1325,24 +1272,23 @@ export var deserializeAws_restJson1ListConnectorEntitiesCommand = function (outp
|
|
|
1325
1272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1326
1273
|
return [2, deserializeAws_restJson1ListConnectorEntitiesCommandError(output, context)];
|
|
1327
1274
|
}
|
|
1328
|
-
contents = {
|
|
1275
|
+
contents = map({
|
|
1329
1276
|
$metadata: deserializeMetadata(output),
|
|
1330
|
-
|
|
1331
|
-
};
|
|
1277
|
+
});
|
|
1332
1278
|
_a = __expectNonNull;
|
|
1333
1279
|
_b = __expectObject;
|
|
1334
1280
|
return [4, parseBody(output.body, context)];
|
|
1335
1281
|
case 1:
|
|
1336
1282
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1337
|
-
if (data.connectorEntityMap
|
|
1283
|
+
if (data.connectorEntityMap != null) {
|
|
1338
1284
|
contents.connectorEntityMap = deserializeAws_restJson1ConnectorEntityMap(data.connectorEntityMap, context);
|
|
1339
1285
|
}
|
|
1340
|
-
return [2,
|
|
1286
|
+
return [2, contents];
|
|
1341
1287
|
}
|
|
1342
1288
|
});
|
|
1343
1289
|
}); };
|
|
1344
1290
|
var deserializeAws_restJson1ListConnectorEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1345
|
-
var parsedOutput, _a,
|
|
1291
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1346
1292
|
var _c;
|
|
1347
1293
|
return __generator(this, function (_d) {
|
|
1348
1294
|
switch (_d.label) {
|
|
@@ -1379,14 +1325,14 @@ var deserializeAws_restJson1ListConnectorEntitiesCommandError = function (output
|
|
|
1379
1325
|
case 11: throw _d.sent();
|
|
1380
1326
|
case 12:
|
|
1381
1327
|
parsedBody = parsedOutput.body;
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
$metadata: $metadata,
|
|
1328
|
+
throwDefaultError({
|
|
1329
|
+
output: output,
|
|
1330
|
+
parsedBody: parsedBody,
|
|
1331
|
+
exceptionCtor: __BaseException,
|
|
1332
|
+
errorCode: errorCode,
|
|
1388
1333
|
});
|
|
1389
|
-
|
|
1334
|
+
_d.label = 13;
|
|
1335
|
+
case 13: return [2];
|
|
1390
1336
|
}
|
|
1391
1337
|
});
|
|
1392
1338
|
}); };
|
|
@@ -1398,28 +1344,26 @@ export var deserializeAws_restJson1ListConnectorsCommand = function (output, con
|
|
|
1398
1344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1399
1345
|
return [2, deserializeAws_restJson1ListConnectorsCommandError(output, context)];
|
|
1400
1346
|
}
|
|
1401
|
-
contents = {
|
|
1347
|
+
contents = map({
|
|
1402
1348
|
$metadata: deserializeMetadata(output),
|
|
1403
|
-
|
|
1404
|
-
nextToken: undefined,
|
|
1405
|
-
};
|
|
1349
|
+
});
|
|
1406
1350
|
_a = __expectNonNull;
|
|
1407
1351
|
_b = __expectObject;
|
|
1408
1352
|
return [4, parseBody(output.body, context)];
|
|
1409
1353
|
case 1:
|
|
1410
1354
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1411
|
-
if (data.connectors
|
|
1355
|
+
if (data.connectors != null) {
|
|
1412
1356
|
contents.connectors = deserializeAws_restJson1ConnectorList(data.connectors, context);
|
|
1413
1357
|
}
|
|
1414
|
-
if (data.nextToken
|
|
1358
|
+
if (data.nextToken != null) {
|
|
1415
1359
|
contents.nextToken = __expectString(data.nextToken);
|
|
1416
1360
|
}
|
|
1417
|
-
return [2,
|
|
1361
|
+
return [2, contents];
|
|
1418
1362
|
}
|
|
1419
1363
|
});
|
|
1420
1364
|
}); };
|
|
1421
1365
|
var deserializeAws_restJson1ListConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1422
|
-
var parsedOutput, _a,
|
|
1366
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1423
1367
|
var _c;
|
|
1424
1368
|
return __generator(this, function (_d) {
|
|
1425
1369
|
switch (_d.label) {
|
|
@@ -1444,14 +1388,14 @@ var deserializeAws_restJson1ListConnectorsCommandError = function (output, conte
|
|
|
1444
1388
|
case 5: throw _d.sent();
|
|
1445
1389
|
case 6:
|
|
1446
1390
|
parsedBody = parsedOutput.body;
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
$metadata: $metadata,
|
|
1391
|
+
throwDefaultError({
|
|
1392
|
+
output: output,
|
|
1393
|
+
parsedBody: parsedBody,
|
|
1394
|
+
exceptionCtor: __BaseException,
|
|
1395
|
+
errorCode: errorCode,
|
|
1453
1396
|
});
|
|
1454
|
-
|
|
1397
|
+
_d.label = 7;
|
|
1398
|
+
case 7: return [2];
|
|
1455
1399
|
}
|
|
1456
1400
|
});
|
|
1457
1401
|
}); };
|
|
@@ -1463,28 +1407,26 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
|
|
|
1463
1407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1464
1408
|
return [2, deserializeAws_restJson1ListFlowsCommandError(output, context)];
|
|
1465
1409
|
}
|
|
1466
|
-
contents = {
|
|
1410
|
+
contents = map({
|
|
1467
1411
|
$metadata: deserializeMetadata(output),
|
|
1468
|
-
|
|
1469
|
-
nextToken: undefined,
|
|
1470
|
-
};
|
|
1412
|
+
});
|
|
1471
1413
|
_a = __expectNonNull;
|
|
1472
1414
|
_b = __expectObject;
|
|
1473
1415
|
return [4, parseBody(output.body, context)];
|
|
1474
1416
|
case 1:
|
|
1475
1417
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1476
|
-
if (data.flows
|
|
1418
|
+
if (data.flows != null) {
|
|
1477
1419
|
contents.flows = deserializeAws_restJson1FlowList(data.flows, context);
|
|
1478
1420
|
}
|
|
1479
|
-
if (data.nextToken
|
|
1421
|
+
if (data.nextToken != null) {
|
|
1480
1422
|
contents.nextToken = __expectString(data.nextToken);
|
|
1481
1423
|
}
|
|
1482
|
-
return [2,
|
|
1424
|
+
return [2, contents];
|
|
1483
1425
|
}
|
|
1484
1426
|
});
|
|
1485
1427
|
}); };
|
|
1486
1428
|
var deserializeAws_restJson1ListFlowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1487
|
-
var parsedOutput, _a,
|
|
1429
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1488
1430
|
var _c;
|
|
1489
1431
|
return __generator(this, function (_d) {
|
|
1490
1432
|
switch (_d.label) {
|
|
@@ -1509,14 +1451,14 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
|
|
|
1509
1451
|
case 5: throw _d.sent();
|
|
1510
1452
|
case 6:
|
|
1511
1453
|
parsedBody = parsedOutput.body;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
$metadata: $metadata,
|
|
1454
|
+
throwDefaultError({
|
|
1455
|
+
output: output,
|
|
1456
|
+
parsedBody: parsedBody,
|
|
1457
|
+
exceptionCtor: __BaseException,
|
|
1458
|
+
errorCode: errorCode,
|
|
1518
1459
|
});
|
|
1519
|
-
|
|
1460
|
+
_d.label = 7;
|
|
1461
|
+
case 7: return [2];
|
|
1520
1462
|
}
|
|
1521
1463
|
});
|
|
1522
1464
|
}); };
|
|
@@ -1528,24 +1470,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1528
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1529
1471
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1530
1472
|
}
|
|
1531
|
-
contents = {
|
|
1473
|
+
contents = map({
|
|
1532
1474
|
$metadata: deserializeMetadata(output),
|
|
1533
|
-
|
|
1534
|
-
};
|
|
1475
|
+
});
|
|
1535
1476
|
_a = __expectNonNull;
|
|
1536
1477
|
_b = __expectObject;
|
|
1537
1478
|
return [4, parseBody(output.body, context)];
|
|
1538
1479
|
case 1:
|
|
1539
1480
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1540
|
-
if (data.tags
|
|
1481
|
+
if (data.tags != null) {
|
|
1541
1482
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1542
1483
|
}
|
|
1543
|
-
return [2,
|
|
1484
|
+
return [2, contents];
|
|
1544
1485
|
}
|
|
1545
1486
|
});
|
|
1546
1487
|
}); };
|
|
1547
1488
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1548
|
-
var parsedOutput, _a,
|
|
1489
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1549
1490
|
var _c;
|
|
1550
1491
|
return __generator(this, function (_d) {
|
|
1551
1492
|
switch (_d.label) {
|
|
@@ -1574,14 +1515,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1574
1515
|
case 7: throw _d.sent();
|
|
1575
1516
|
case 8:
|
|
1576
1517
|
parsedBody = parsedOutput.body;
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
$metadata: $metadata,
|
|
1518
|
+
throwDefaultError({
|
|
1519
|
+
output: output,
|
|
1520
|
+
parsedBody: parsedBody,
|
|
1521
|
+
exceptionCtor: __BaseException,
|
|
1522
|
+
errorCode: errorCode,
|
|
1583
1523
|
});
|
|
1584
|
-
|
|
1524
|
+
_d.label = 9;
|
|
1525
|
+
case 9: return [2];
|
|
1585
1526
|
}
|
|
1586
1527
|
});
|
|
1587
1528
|
}); };
|
|
@@ -1593,24 +1534,23 @@ export var deserializeAws_restJson1RegisterConnectorCommand = function (output,
|
|
|
1593
1534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1594
1535
|
return [2, deserializeAws_restJson1RegisterConnectorCommandError(output, context)];
|
|
1595
1536
|
}
|
|
1596
|
-
contents = {
|
|
1537
|
+
contents = map({
|
|
1597
1538
|
$metadata: deserializeMetadata(output),
|
|
1598
|
-
|
|
1599
|
-
};
|
|
1539
|
+
});
|
|
1600
1540
|
_a = __expectNonNull;
|
|
1601
1541
|
_b = __expectObject;
|
|
1602
1542
|
return [4, parseBody(output.body, context)];
|
|
1603
1543
|
case 1:
|
|
1604
1544
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1605
|
-
if (data.connectorArn
|
|
1545
|
+
if (data.connectorArn != null) {
|
|
1606
1546
|
contents.connectorArn = __expectString(data.connectorArn);
|
|
1607
1547
|
}
|
|
1608
|
-
return [2,
|
|
1548
|
+
return [2, contents];
|
|
1609
1549
|
}
|
|
1610
1550
|
});
|
|
1611
1551
|
}); };
|
|
1612
1552
|
var deserializeAws_restJson1RegisterConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1613
|
-
var parsedOutput, _a,
|
|
1553
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1614
1554
|
var _c;
|
|
1615
1555
|
return __generator(this, function (_d) {
|
|
1616
1556
|
switch (_d.label) {
|
|
@@ -1663,14 +1603,14 @@ var deserializeAws_restJson1RegisterConnectorCommandError = function (output, co
|
|
|
1663
1603
|
case 19: throw _d.sent();
|
|
1664
1604
|
case 20:
|
|
1665
1605
|
parsedBody = parsedOutput.body;
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
$metadata: $metadata,
|
|
1606
|
+
throwDefaultError({
|
|
1607
|
+
output: output,
|
|
1608
|
+
parsedBody: parsedBody,
|
|
1609
|
+
exceptionCtor: __BaseException,
|
|
1610
|
+
errorCode: errorCode,
|
|
1672
1611
|
});
|
|
1673
|
-
|
|
1612
|
+
_d.label = 21;
|
|
1613
|
+
case 21: return [2];
|
|
1674
1614
|
}
|
|
1675
1615
|
});
|
|
1676
1616
|
}); };
|
|
@@ -1682,32 +1622,29 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
|
|
|
1682
1622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1683
1623
|
return [2, deserializeAws_restJson1StartFlowCommandError(output, context)];
|
|
1684
1624
|
}
|
|
1685
|
-
contents = {
|
|
1625
|
+
contents = map({
|
|
1686
1626
|
$metadata: deserializeMetadata(output),
|
|
1687
|
-
|
|
1688
|
-
flowArn: undefined,
|
|
1689
|
-
flowStatus: undefined,
|
|
1690
|
-
};
|
|
1627
|
+
});
|
|
1691
1628
|
_a = __expectNonNull;
|
|
1692
1629
|
_b = __expectObject;
|
|
1693
1630
|
return [4, parseBody(output.body, context)];
|
|
1694
1631
|
case 1:
|
|
1695
1632
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1696
|
-
if (data.executionId
|
|
1633
|
+
if (data.executionId != null) {
|
|
1697
1634
|
contents.executionId = __expectString(data.executionId);
|
|
1698
1635
|
}
|
|
1699
|
-
if (data.flowArn
|
|
1636
|
+
if (data.flowArn != null) {
|
|
1700
1637
|
contents.flowArn = __expectString(data.flowArn);
|
|
1701
1638
|
}
|
|
1702
|
-
if (data.flowStatus
|
|
1639
|
+
if (data.flowStatus != null) {
|
|
1703
1640
|
contents.flowStatus = __expectString(data.flowStatus);
|
|
1704
1641
|
}
|
|
1705
|
-
return [2,
|
|
1642
|
+
return [2, contents];
|
|
1706
1643
|
}
|
|
1707
1644
|
});
|
|
1708
1645
|
}); };
|
|
1709
1646
|
var deserializeAws_restJson1StartFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1710
|
-
var parsedOutput, _a,
|
|
1647
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1711
1648
|
var _c;
|
|
1712
1649
|
return __generator(this, function (_d) {
|
|
1713
1650
|
switch (_d.label) {
|
|
@@ -1740,14 +1677,14 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
|
|
|
1740
1677
|
case 9: throw _d.sent();
|
|
1741
1678
|
case 10:
|
|
1742
1679
|
parsedBody = parsedOutput.body;
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
$metadata: $metadata,
|
|
1680
|
+
throwDefaultError({
|
|
1681
|
+
output: output,
|
|
1682
|
+
parsedBody: parsedBody,
|
|
1683
|
+
exceptionCtor: __BaseException,
|
|
1684
|
+
errorCode: errorCode,
|
|
1749
1685
|
});
|
|
1750
|
-
|
|
1686
|
+
_d.label = 11;
|
|
1687
|
+
case 11: return [2];
|
|
1751
1688
|
}
|
|
1752
1689
|
});
|
|
1753
1690
|
}); };
|
|
@@ -1759,28 +1696,26 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
|
|
|
1759
1696
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1760
1697
|
return [2, deserializeAws_restJson1StopFlowCommandError(output, context)];
|
|
1761
1698
|
}
|
|
1762
|
-
contents = {
|
|
1699
|
+
contents = map({
|
|
1763
1700
|
$metadata: deserializeMetadata(output),
|
|
1764
|
-
|
|
1765
|
-
flowStatus: undefined,
|
|
1766
|
-
};
|
|
1701
|
+
});
|
|
1767
1702
|
_a = __expectNonNull;
|
|
1768
1703
|
_b = __expectObject;
|
|
1769
1704
|
return [4, parseBody(output.body, context)];
|
|
1770
1705
|
case 1:
|
|
1771
1706
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1772
|
-
if (data.flowArn
|
|
1707
|
+
if (data.flowArn != null) {
|
|
1773
1708
|
contents.flowArn = __expectString(data.flowArn);
|
|
1774
1709
|
}
|
|
1775
|
-
if (data.flowStatus
|
|
1710
|
+
if (data.flowStatus != null) {
|
|
1776
1711
|
contents.flowStatus = __expectString(data.flowStatus);
|
|
1777
1712
|
}
|
|
1778
|
-
return [2,
|
|
1713
|
+
return [2, contents];
|
|
1779
1714
|
}
|
|
1780
1715
|
});
|
|
1781
1716
|
}); };
|
|
1782
1717
|
var deserializeAws_restJson1StopFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1783
|
-
var parsedOutput, _a,
|
|
1718
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1784
1719
|
var _c;
|
|
1785
1720
|
return __generator(this, function (_d) {
|
|
1786
1721
|
switch (_d.label) {
|
|
@@ -1813,14 +1748,14 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
|
|
|
1813
1748
|
case 9: throw _d.sent();
|
|
1814
1749
|
case 10:
|
|
1815
1750
|
parsedBody = parsedOutput.body;
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
$metadata: $metadata,
|
|
1751
|
+
throwDefaultError({
|
|
1752
|
+
output: output,
|
|
1753
|
+
parsedBody: parsedBody,
|
|
1754
|
+
exceptionCtor: __BaseException,
|
|
1755
|
+
errorCode: errorCode,
|
|
1822
1756
|
});
|
|
1823
|
-
|
|
1757
|
+
_d.label = 11;
|
|
1758
|
+
case 11: return [2];
|
|
1824
1759
|
}
|
|
1825
1760
|
});
|
|
1826
1761
|
}); };
|
|
@@ -1832,18 +1767,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1832
1767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1833
1768
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1834
1769
|
}
|
|
1835
|
-
contents = {
|
|
1770
|
+
contents = map({
|
|
1836
1771
|
$metadata: deserializeMetadata(output),
|
|
1837
|
-
};
|
|
1772
|
+
});
|
|
1838
1773
|
return [4, collectBody(output.body, context)];
|
|
1839
1774
|
case 1:
|
|
1840
1775
|
_a.sent();
|
|
1841
|
-
return [2,
|
|
1776
|
+
return [2, contents];
|
|
1842
1777
|
}
|
|
1843
1778
|
});
|
|
1844
1779
|
}); };
|
|
1845
1780
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1846
|
-
var parsedOutput, _a,
|
|
1781
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1847
1782
|
var _c;
|
|
1848
1783
|
return __generator(this, function (_d) {
|
|
1849
1784
|
switch (_d.label) {
|
|
@@ -1872,14 +1807,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1872
1807
|
case 7: throw _d.sent();
|
|
1873
1808
|
case 8:
|
|
1874
1809
|
parsedBody = parsedOutput.body;
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
$metadata: $metadata,
|
|
1810
|
+
throwDefaultError({
|
|
1811
|
+
output: output,
|
|
1812
|
+
parsedBody: parsedBody,
|
|
1813
|
+
exceptionCtor: __BaseException,
|
|
1814
|
+
errorCode: errorCode,
|
|
1881
1815
|
});
|
|
1882
|
-
|
|
1816
|
+
_d.label = 9;
|
|
1817
|
+
case 9: return [2];
|
|
1883
1818
|
}
|
|
1884
1819
|
});
|
|
1885
1820
|
}); };
|
|
@@ -1891,18 +1826,18 @@ export var deserializeAws_restJson1UnregisterConnectorCommand = function (output
|
|
|
1891
1826
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1892
1827
|
return [2, deserializeAws_restJson1UnregisterConnectorCommandError(output, context)];
|
|
1893
1828
|
}
|
|
1894
|
-
contents = {
|
|
1829
|
+
contents = map({
|
|
1895
1830
|
$metadata: deserializeMetadata(output),
|
|
1896
|
-
};
|
|
1831
|
+
});
|
|
1897
1832
|
return [4, collectBody(output.body, context)];
|
|
1898
1833
|
case 1:
|
|
1899
1834
|
_a.sent();
|
|
1900
|
-
return [2,
|
|
1835
|
+
return [2, contents];
|
|
1901
1836
|
}
|
|
1902
1837
|
});
|
|
1903
1838
|
}); };
|
|
1904
1839
|
var deserializeAws_restJson1UnregisterConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1905
|
-
var parsedOutput, _a,
|
|
1840
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1906
1841
|
var _c;
|
|
1907
1842
|
return __generator(this, function (_d) {
|
|
1908
1843
|
switch (_d.label) {
|
|
@@ -1931,14 +1866,14 @@ var deserializeAws_restJson1UnregisterConnectorCommandError = function (output,
|
|
|
1931
1866
|
case 7: throw _d.sent();
|
|
1932
1867
|
case 8:
|
|
1933
1868
|
parsedBody = parsedOutput.body;
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
$metadata: $metadata,
|
|
1869
|
+
throwDefaultError({
|
|
1870
|
+
output: output,
|
|
1871
|
+
parsedBody: parsedBody,
|
|
1872
|
+
exceptionCtor: __BaseException,
|
|
1873
|
+
errorCode: errorCode,
|
|
1940
1874
|
});
|
|
1941
|
-
|
|
1875
|
+
_d.label = 9;
|
|
1876
|
+
case 9: return [2];
|
|
1942
1877
|
}
|
|
1943
1878
|
});
|
|
1944
1879
|
}); };
|
|
@@ -1950,18 +1885,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1950
1885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1951
1886
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1952
1887
|
}
|
|
1953
|
-
contents = {
|
|
1888
|
+
contents = map({
|
|
1954
1889
|
$metadata: deserializeMetadata(output),
|
|
1955
|
-
};
|
|
1890
|
+
});
|
|
1956
1891
|
return [4, collectBody(output.body, context)];
|
|
1957
1892
|
case 1:
|
|
1958
1893
|
_a.sent();
|
|
1959
|
-
return [2,
|
|
1894
|
+
return [2, contents];
|
|
1960
1895
|
}
|
|
1961
1896
|
});
|
|
1962
1897
|
}); };
|
|
1963
1898
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1964
|
-
var parsedOutput, _a,
|
|
1899
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1965
1900
|
var _c;
|
|
1966
1901
|
return __generator(this, function (_d) {
|
|
1967
1902
|
switch (_d.label) {
|
|
@@ -1990,14 +1925,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1990
1925
|
case 7: throw _d.sent();
|
|
1991
1926
|
case 8:
|
|
1992
1927
|
parsedBody = parsedOutput.body;
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
$metadata: $metadata,
|
|
1928
|
+
throwDefaultError({
|
|
1929
|
+
output: output,
|
|
1930
|
+
parsedBody: parsedBody,
|
|
1931
|
+
exceptionCtor: __BaseException,
|
|
1932
|
+
errorCode: errorCode,
|
|
1999
1933
|
});
|
|
2000
|
-
|
|
1934
|
+
_d.label = 9;
|
|
1935
|
+
case 9: return [2];
|
|
2001
1936
|
}
|
|
2002
1937
|
});
|
|
2003
1938
|
}); };
|
|
@@ -2009,24 +1944,23 @@ export var deserializeAws_restJson1UpdateConnectorProfileCommand = function (out
|
|
|
2009
1944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2010
1945
|
return [2, deserializeAws_restJson1UpdateConnectorProfileCommandError(output, context)];
|
|
2011
1946
|
}
|
|
2012
|
-
contents = {
|
|
1947
|
+
contents = map({
|
|
2013
1948
|
$metadata: deserializeMetadata(output),
|
|
2014
|
-
|
|
2015
|
-
};
|
|
1949
|
+
});
|
|
2016
1950
|
_a = __expectNonNull;
|
|
2017
1951
|
_b = __expectObject;
|
|
2018
1952
|
return [4, parseBody(output.body, context)];
|
|
2019
1953
|
case 1:
|
|
2020
1954
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2021
|
-
if (data.connectorProfileArn
|
|
1955
|
+
if (data.connectorProfileArn != null) {
|
|
2022
1956
|
contents.connectorProfileArn = __expectString(data.connectorProfileArn);
|
|
2023
1957
|
}
|
|
2024
|
-
return [2,
|
|
1958
|
+
return [2, contents];
|
|
2025
1959
|
}
|
|
2026
1960
|
});
|
|
2027
1961
|
}); };
|
|
2028
1962
|
var deserializeAws_restJson1UpdateConnectorProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2029
|
-
var parsedOutput, _a,
|
|
1963
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2030
1964
|
var _c;
|
|
2031
1965
|
return __generator(this, function (_d) {
|
|
2032
1966
|
switch (_d.label) {
|
|
@@ -2063,14 +1997,14 @@ var deserializeAws_restJson1UpdateConnectorProfileCommandError = function (outpu
|
|
|
2063
1997
|
case 11: throw _d.sent();
|
|
2064
1998
|
case 12:
|
|
2065
1999
|
parsedBody = parsedOutput.body;
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
$metadata: $metadata,
|
|
2000
|
+
throwDefaultError({
|
|
2001
|
+
output: output,
|
|
2002
|
+
parsedBody: parsedBody,
|
|
2003
|
+
exceptionCtor: __BaseException,
|
|
2004
|
+
errorCode: errorCode,
|
|
2072
2005
|
});
|
|
2073
|
-
|
|
2006
|
+
_d.label = 13;
|
|
2007
|
+
case 13: return [2];
|
|
2074
2008
|
}
|
|
2075
2009
|
});
|
|
2076
2010
|
}); };
|
|
@@ -2082,24 +2016,23 @@ export var deserializeAws_restJson1UpdateFlowCommand = function (output, context
|
|
|
2082
2016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2083
2017
|
return [2, deserializeAws_restJson1UpdateFlowCommandError(output, context)];
|
|
2084
2018
|
}
|
|
2085
|
-
contents = {
|
|
2019
|
+
contents = map({
|
|
2086
2020
|
$metadata: deserializeMetadata(output),
|
|
2087
|
-
|
|
2088
|
-
};
|
|
2021
|
+
});
|
|
2089
2022
|
_a = __expectNonNull;
|
|
2090
2023
|
_b = __expectObject;
|
|
2091
2024
|
return [4, parseBody(output.body, context)];
|
|
2092
2025
|
case 1:
|
|
2093
2026
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2094
|
-
if (data.flowStatus
|
|
2027
|
+
if (data.flowStatus != null) {
|
|
2095
2028
|
contents.flowStatus = __expectString(data.flowStatus);
|
|
2096
2029
|
}
|
|
2097
|
-
return [2,
|
|
2030
|
+
return [2, contents];
|
|
2098
2031
|
}
|
|
2099
2032
|
});
|
|
2100
2033
|
}); };
|
|
2101
2034
|
var deserializeAws_restJson1UpdateFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2102
|
-
var parsedOutput, _a,
|
|
2035
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2103
2036
|
var _c;
|
|
2104
2037
|
return __generator(this, function (_d) {
|
|
2105
2038
|
switch (_d.label) {
|
|
@@ -2144,23 +2077,24 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
|
|
|
2144
2077
|
case 15: throw _d.sent();
|
|
2145
2078
|
case 16:
|
|
2146
2079
|
parsedBody = parsedOutput.body;
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
$metadata: $metadata,
|
|
2080
|
+
throwDefaultError({
|
|
2081
|
+
output: output,
|
|
2082
|
+
parsedBody: parsedBody,
|
|
2083
|
+
exceptionCtor: __BaseException,
|
|
2084
|
+
errorCode: errorCode,
|
|
2153
2085
|
});
|
|
2154
|
-
|
|
2086
|
+
_d.label = 17;
|
|
2087
|
+
case 17: return [2];
|
|
2155
2088
|
}
|
|
2156
2089
|
});
|
|
2157
2090
|
}); };
|
|
2091
|
+
var map = __map;
|
|
2158
2092
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2159
2093
|
var contents, data, exception;
|
|
2160
2094
|
return __generator(this, function (_a) {
|
|
2161
|
-
contents = {};
|
|
2095
|
+
contents = map({});
|
|
2162
2096
|
data = parsedOutput.body;
|
|
2163
|
-
if (data.message
|
|
2097
|
+
if (data.message != null) {
|
|
2164
2098
|
contents.message = __expectString(data.message);
|
|
2165
2099
|
}
|
|
2166
2100
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2170,9 +2104,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
2170
2104
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2171
2105
|
var contents, data, exception;
|
|
2172
2106
|
return __generator(this, function (_a) {
|
|
2173
|
-
contents = {};
|
|
2107
|
+
contents = map({});
|
|
2174
2108
|
data = parsedOutput.body;
|
|
2175
|
-
if (data.message
|
|
2109
|
+
if (data.message != null) {
|
|
2176
2110
|
contents.message = __expectString(data.message);
|
|
2177
2111
|
}
|
|
2178
2112
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2182,9 +2116,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2182
2116
|
var deserializeAws_restJson1ConnectorAuthenticationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2183
2117
|
var contents, data, exception;
|
|
2184
2118
|
return __generator(this, function (_a) {
|
|
2185
|
-
contents = {};
|
|
2119
|
+
contents = map({});
|
|
2186
2120
|
data = parsedOutput.body;
|
|
2187
|
-
if (data.message
|
|
2121
|
+
if (data.message != null) {
|
|
2188
2122
|
contents.message = __expectString(data.message);
|
|
2189
2123
|
}
|
|
2190
2124
|
exception = new ConnectorAuthenticationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2194,9 +2128,9 @@ var deserializeAws_restJson1ConnectorAuthenticationExceptionResponse = function
|
|
|
2194
2128
|
var deserializeAws_restJson1ConnectorServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2195
2129
|
var contents, data, exception;
|
|
2196
2130
|
return __generator(this, function (_a) {
|
|
2197
|
-
contents = {};
|
|
2131
|
+
contents = map({});
|
|
2198
2132
|
data = parsedOutput.body;
|
|
2199
|
-
if (data.message
|
|
2133
|
+
if (data.message != null) {
|
|
2200
2134
|
contents.message = __expectString(data.message);
|
|
2201
2135
|
}
|
|
2202
2136
|
exception = new ConnectorServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2206,9 +2140,9 @@ var deserializeAws_restJson1ConnectorServerExceptionResponse = function (parsedO
|
|
|
2206
2140
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2207
2141
|
var contents, data, exception;
|
|
2208
2142
|
return __generator(this, function (_a) {
|
|
2209
|
-
contents = {};
|
|
2143
|
+
contents = map({});
|
|
2210
2144
|
data = parsedOutput.body;
|
|
2211
|
-
if (data.message
|
|
2145
|
+
if (data.message != null) {
|
|
2212
2146
|
contents.message = __expectString(data.message);
|
|
2213
2147
|
}
|
|
2214
2148
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2218,9 +2152,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
2218
2152
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2219
2153
|
var contents, data, exception;
|
|
2220
2154
|
return __generator(this, function (_a) {
|
|
2221
|
-
contents = {};
|
|
2155
|
+
contents = map({});
|
|
2222
2156
|
data = parsedOutput.body;
|
|
2223
|
-
if (data.message
|
|
2157
|
+
if (data.message != null) {
|
|
2224
2158
|
contents.message = __expectString(data.message);
|
|
2225
2159
|
}
|
|
2226
2160
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2230,9 +2164,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2230
2164
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2231
2165
|
var contents, data, exception;
|
|
2232
2166
|
return __generator(this, function (_a) {
|
|
2233
|
-
contents = {};
|
|
2167
|
+
contents = map({});
|
|
2234
2168
|
data = parsedOutput.body;
|
|
2235
|
-
if (data.message
|
|
2169
|
+
if (data.message != null) {
|
|
2236
2170
|
contents.message = __expectString(data.message);
|
|
2237
2171
|
}
|
|
2238
2172
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2242,9 +2176,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2242
2176
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2243
2177
|
var contents, data, exception;
|
|
2244
2178
|
return __generator(this, function (_a) {
|
|
2245
|
-
contents = {};
|
|
2179
|
+
contents = map({});
|
|
2246
2180
|
data = parsedOutput.body;
|
|
2247
|
-
if (data.message
|
|
2181
|
+
if (data.message != null) {
|
|
2248
2182
|
contents.message = __expectString(data.message);
|
|
2249
2183
|
}
|
|
2250
2184
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2254,9 +2188,9 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
2254
2188
|
var deserializeAws_restJson1UnsupportedOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2255
2189
|
var contents, data, exception;
|
|
2256
2190
|
return __generator(this, function (_a) {
|
|
2257
|
-
contents = {};
|
|
2191
|
+
contents = map({});
|
|
2258
2192
|
data = parsedOutput.body;
|
|
2259
|
-
if (data.message
|
|
2193
|
+
if (data.message != null) {
|
|
2260
2194
|
contents.message = __expectString(data.message);
|
|
2261
2195
|
}
|
|
2262
2196
|
exception = new UnsupportedOperationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2266,9 +2200,9 @@ var deserializeAws_restJson1UnsupportedOperationExceptionResponse = function (pa
|
|
|
2266
2200
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2267
2201
|
var contents, data, exception;
|
|
2268
2202
|
return __generator(this, function (_a) {
|
|
2269
|
-
contents = {};
|
|
2203
|
+
contents = map({});
|
|
2270
2204
|
data = parsedOutput.body;
|
|
2271
|
-
if (data.message
|
|
2205
|
+
if (data.message != null) {
|
|
2272
2206
|
contents.message = __expectString(data.message);
|
|
2273
2207
|
}
|
|
2274
2208
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2345,9 +2279,6 @@ var serializeAws_restJson1ConnectorProfileNameList = function (input, context) {
|
|
|
2345
2279
|
return input
|
|
2346
2280
|
.filter(function (e) { return e != null; })
|
|
2347
2281
|
.map(function (entry) {
|
|
2348
|
-
if (entry === null) {
|
|
2349
|
-
return null;
|
|
2350
|
-
}
|
|
2351
2282
|
return entry;
|
|
2352
2283
|
});
|
|
2353
2284
|
};
|
|
@@ -2395,9 +2326,6 @@ var serializeAws_restJson1ConnectorTypeList = function (input, context) {
|
|
|
2395
2326
|
return input
|
|
2396
2327
|
.filter(function (e) { return e != null; })
|
|
2397
2328
|
.map(function (entry) {
|
|
2398
|
-
if (entry === null) {
|
|
2399
|
-
return null;
|
|
2400
|
-
}
|
|
2401
2329
|
return entry;
|
|
2402
2330
|
});
|
|
2403
2331
|
};
|
|
@@ -2498,9 +2426,6 @@ var serializeAws_restJson1DestinationFlowConfigList = function (input, context)
|
|
|
2498
2426
|
return input
|
|
2499
2427
|
.filter(function (e) { return e != null; })
|
|
2500
2428
|
.map(function (entry) {
|
|
2501
|
-
if (entry === null) {
|
|
2502
|
-
return null;
|
|
2503
|
-
}
|
|
2504
2429
|
return serializeAws_restJson1DestinationFlowConfig(entry, context);
|
|
2505
2430
|
});
|
|
2506
2431
|
};
|
|
@@ -2551,9 +2476,6 @@ var serializeAws_restJson1IdFieldNameList = function (input, context) {
|
|
|
2551
2476
|
return input
|
|
2552
2477
|
.filter(function (e) { return e != null; })
|
|
2553
2478
|
.map(function (entry) {
|
|
2554
|
-
if (entry === null) {
|
|
2555
|
-
return null;
|
|
2556
|
-
}
|
|
2557
2479
|
return entry;
|
|
2558
2480
|
});
|
|
2559
2481
|
};
|
|
@@ -2613,9 +2535,6 @@ var serializeAws_restJson1OAuthScopeList = function (input, context) {
|
|
|
2613
2535
|
return input
|
|
2614
2536
|
.filter(function (e) { return e != null; })
|
|
2615
2537
|
.map(function (entry) {
|
|
2616
|
-
if (entry === null) {
|
|
2617
|
-
return null;
|
|
2618
|
-
}
|
|
2619
2538
|
return entry;
|
|
2620
2539
|
});
|
|
2621
2540
|
};
|
|
@@ -2779,9 +2698,6 @@ var serializeAws_restJson1SourceFields = function (input, context) {
|
|
|
2779
2698
|
return input
|
|
2780
2699
|
.filter(function (e) { return e != null; })
|
|
2781
2700
|
.map(function (entry) {
|
|
2782
|
-
if (entry === null) {
|
|
2783
|
-
return null;
|
|
2784
|
-
}
|
|
2785
2701
|
return entry;
|
|
2786
2702
|
});
|
|
2787
2703
|
};
|
|
@@ -2828,9 +2744,6 @@ var serializeAws_restJson1Tasks = function (input, context) {
|
|
|
2828
2744
|
return input
|
|
2829
2745
|
.filter(function (e) { return e != null; })
|
|
2830
2746
|
.map(function (entry) {
|
|
2831
|
-
if (entry === null) {
|
|
2832
|
-
return null;
|
|
2833
|
-
}
|
|
2834
2747
|
return serializeAws_restJson1Task(entry, context);
|
|
2835
2748
|
});
|
|
2836
2749
|
};
|