@aws-sdk/client-appflow 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/Appflow.js +0 -1
- package/{dist/cjs → dist-cjs}/AppflowClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CreateConnectorProfileCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateFlowCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteConnectorProfileCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteFlowCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeConnectorEntityCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeConnectorProfilesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeConnectorsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeFlowCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeFlowExecutionRecordsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListConnectorEntitiesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListFlowsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartFlowCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StopFlowCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateConnectorProfileCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateFlowCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/DescribeConnectorProfilesPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/DescribeConnectorsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/DescribeFlowExecutionRecordsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListFlowsPaginator.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +15 -16
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/Appflow.js +1 -45
- package/dist-es/AppflowClient.js +37 -0
- package/{dist/es → dist-es}/commands/CreateConnectorProfileCommand.js +4 -33
- package/{dist/es → dist-es}/commands/CreateFlowCommand.js +4 -33
- package/{dist/es → dist-es}/commands/DeleteConnectorProfileCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteFlowCommand.js +4 -32
- package/{dist/es → dist-es}/commands/DescribeConnectorEntityCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DescribeConnectorProfilesCommand.js +4 -34
- package/{dist/es → dist-es}/commands/DescribeConnectorsCommand.js +4 -34
- package/{dist/es → dist-es}/commands/DescribeFlowCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeFlowExecutionRecordsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListConnectorEntitiesCommand.js +4 -33
- package/{dist/es → dist-es}/commands/ListFlowsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/StartFlowCommand.js +4 -31
- package/{dist/es → dist-es}/commands/StopFlowCommand.js +4 -32
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateConnectorProfileCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateFlowCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -484
- package/{dist/es → dist-es}/pagination/DescribeConnectorProfilesPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/DescribeConnectorsPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/DescribeFlowExecutionRecordsPaginator.js +16 -29
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListFlowsPaginator.js +16 -29
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +438 -444
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/Appflow.d.ts +1 -1
- package/{dist/types → dist-types}/AppflowClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateConnectorProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteConnectorProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeConnectorEntityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeConnectorProfilesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeConnectorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeFlowExecutionRecordsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListConnectorEntitiesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListFlowsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateConnectorProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeConnectorProfilesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeConnectorsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/DescribeFlowExecutionRecordsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListFlowsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Appflow.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/AppflowClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CreateConnectorProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteConnectorProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeConnectorEntityCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeConnectorProfilesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeConnectorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeFlowExecutionRecordsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListConnectorEntitiesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListFlowsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateConnectorProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateFlowCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeConnectorProfilesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeConnectorsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeFlowExecutionRecordsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListFlowsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/Appflow.ts +0 -663
- package/AppflowClient.ts +0 -353
- package/commands/CreateConnectorProfileCommand.ts +0 -97
- package/commands/CreateFlowCommand.ts +0 -97
- package/commands/DeleteConnectorProfileCommand.ts +0 -94
- package/commands/DeleteFlowCommand.ts +0 -96
- package/commands/DescribeConnectorEntityCommand.ts +0 -95
- package/commands/DescribeConnectorProfilesCommand.ts +0 -101
- package/commands/DescribeConnectorsCommand.ts +0 -98
- package/commands/DescribeFlowCommand.ts +0 -94
- package/commands/DescribeFlowExecutionRecordsCommand.ts +0 -99
- package/commands/ListConnectorEntitiesCommand.ts +0 -97
- package/commands/ListFlowsCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/StartFlowCommand.ts +0 -95
- package/commands/StopFlowCommand.ts +0 -96
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateConnectorProfileCommand.ts +0 -94
- package/commands/UpdateFlowCommand.ts +0 -94
- package/dist/cjs/Appflow.js.map +0 -1
- package/dist/cjs/AppflowClient.js.map +0 -1
- package/dist/cjs/commands/CreateConnectorProfileCommand.js.map +0 -1
- package/dist/cjs/commands/CreateFlowCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteConnectorProfileCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteFlowCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeConnectorEntityCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeConnectorProfilesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeConnectorsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeFlowCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeFlowExecutionRecordsCommand.js.map +0 -1
- package/dist/cjs/commands/ListConnectorEntitiesCommand.js.map +0 -1
- package/dist/cjs/commands/ListFlowsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StartFlowCommand.js.map +0 -1
- package/dist/cjs/commands/StopFlowCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateConnectorProfileCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateFlowCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/DescribeConnectorProfilesPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeConnectorsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeFlowExecutionRecordsPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListFlowsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Appflow.js.map +0 -1
- package/dist/es/AppflowClient.js +0 -86
- package/dist/es/AppflowClient.js.map +0 -1
- package/dist/es/commands/CreateConnectorProfileCommand.js.map +0 -1
- package/dist/es/commands/CreateFlowCommand.js.map +0 -1
- package/dist/es/commands/DeleteConnectorProfileCommand.js.map +0 -1
- package/dist/es/commands/DeleteFlowCommand.js.map +0 -1
- package/dist/es/commands/DescribeConnectorEntityCommand.js.map +0 -1
- package/dist/es/commands/DescribeConnectorProfilesCommand.js.map +0 -1
- package/dist/es/commands/DescribeConnectorsCommand.js.map +0 -1
- package/dist/es/commands/DescribeFlowCommand.js.map +0 -1
- package/dist/es/commands/DescribeFlowExecutionRecordsCommand.js.map +0 -1
- package/dist/es/commands/ListConnectorEntitiesCommand.js.map +0 -1
- package/dist/es/commands/ListFlowsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/StartFlowCommand.js.map +0 -1
- package/dist/es/commands/StopFlowCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateConnectorProfileCommand.js.map +0 -1
- package/dist/es/commands/UpdateFlowCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -27
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/DescribeConnectorProfilesPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeConnectorsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeFlowExecutionRecordsPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListFlowsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -5012
- package/pagination/DescribeConnectorProfilesPaginator.ts +0 -58
- package/pagination/DescribeConnectorsPaginator.ts +0 -57
- package/pagination/DescribeFlowExecutionRecordsPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListFlowsPaginator.ts +0 -54
- package/protocols/Aws_restJson1.ts +0 -5151
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateConnectorProfileCommand = function (input
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -18,7 +18,7 @@ export var serializeAws_restJson1CreateConnectorProfileCommand = function (input
|
|
|
18
18
|
connectorProfileConfig: serializeAws_restJson1ConnectorProfileConfig(input.connectorProfileConfig, context),
|
|
19
19
|
})), (input.connectorProfileName !== undefined &&
|
|
20
20
|
input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.kmsArn !== undefined && input.kmsArn !== null && { kmsArn: input.kmsArn })));
|
|
21
|
-
return [2
|
|
21
|
+
return [2, new __HttpRequest({
|
|
22
22
|
protocol: protocol,
|
|
23
23
|
hostname: hostname,
|
|
24
24
|
port: port,
|
|
@@ -34,7 +34,7 @@ export var serializeAws_restJson1CreateFlowCommand = function (input, context) {
|
|
|
34
34
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
35
35
|
return __generator(this, function (_c) {
|
|
36
36
|
switch (_c.label) {
|
|
37
|
-
case 0: return [4
|
|
37
|
+
case 0: return [4, context.endpoint()];
|
|
38
38
|
case 1:
|
|
39
39
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
40
40
|
headers = {
|
|
@@ -52,7 +52,7 @@ export var serializeAws_restJson1CreateFlowCommand = function (input, context) {
|
|
|
52
52
|
input.triggerConfig !== null && {
|
|
53
53
|
triggerConfig: serializeAws_restJson1TriggerConfig(input.triggerConfig, context),
|
|
54
54
|
})));
|
|
55
|
-
return [2
|
|
55
|
+
return [2, new __HttpRequest({
|
|
56
56
|
protocol: protocol,
|
|
57
57
|
hostname: hostname,
|
|
58
58
|
port: port,
|
|
@@ -68,7 +68,7 @@ export var serializeAws_restJson1DeleteConnectorProfileCommand = function (input
|
|
|
68
68
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
69
69
|
return __generator(this, function (_c) {
|
|
70
70
|
switch (_c.label) {
|
|
71
|
-
case 0: return [4
|
|
71
|
+
case 0: return [4, context.endpoint()];
|
|
72
72
|
case 1:
|
|
73
73
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
74
74
|
headers = {
|
|
@@ -77,7 +77,7 @@ export var serializeAws_restJson1DeleteConnectorProfileCommand = function (input
|
|
|
77
77
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-connector-profile";
|
|
78
78
|
body = JSON.stringify(__assign(__assign({}, (input.connectorProfileName !== undefined &&
|
|
79
79
|
input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete })));
|
|
80
|
-
return [2
|
|
80
|
+
return [2, new __HttpRequest({
|
|
81
81
|
protocol: protocol,
|
|
82
82
|
hostname: hostname,
|
|
83
83
|
port: port,
|
|
@@ -93,7 +93,7 @@ export var serializeAws_restJson1DeleteFlowCommand = function (input, context) {
|
|
|
93
93
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
94
94
|
return __generator(this, function (_c) {
|
|
95
95
|
switch (_c.label) {
|
|
96
|
-
case 0: return [4
|
|
96
|
+
case 0: return [4, context.endpoint()];
|
|
97
97
|
case 1:
|
|
98
98
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
99
99
|
headers = {
|
|
@@ -101,7 +101,7 @@ export var serializeAws_restJson1DeleteFlowCommand = function (input, context) {
|
|
|
101
101
|
};
|
|
102
102
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-flow";
|
|
103
103
|
body = JSON.stringify(__assign(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })), (input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete })));
|
|
104
|
-
return [2
|
|
104
|
+
return [2, new __HttpRequest({
|
|
105
105
|
protocol: protocol,
|
|
106
106
|
hostname: hostname,
|
|
107
107
|
port: port,
|
|
@@ -117,7 +117,7 @@ export var serializeAws_restJson1DescribeConnectorEntityCommand = function (inpu
|
|
|
117
117
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
118
118
|
return __generator(this, function (_c) {
|
|
119
119
|
switch (_c.label) {
|
|
120
|
-
case 0: return [4
|
|
120
|
+
case 0: return [4, context.endpoint()];
|
|
121
121
|
case 1:
|
|
122
122
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
123
123
|
headers = {
|
|
@@ -127,7 +127,7 @@ export var serializeAws_restJson1DescribeConnectorEntityCommand = function (inpu
|
|
|
127
127
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.connectorEntityName !== undefined &&
|
|
128
128
|
input.connectorEntityName !== null && { connectorEntityName: input.connectorEntityName })), (input.connectorProfileName !== undefined &&
|
|
129
129
|
input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })));
|
|
130
|
-
return [2
|
|
130
|
+
return [2, new __HttpRequest({
|
|
131
131
|
protocol: protocol,
|
|
132
132
|
hostname: hostname,
|
|
133
133
|
port: port,
|
|
@@ -143,7 +143,7 @@ export var serializeAws_restJson1DescribeConnectorProfilesCommand = function (in
|
|
|
143
143
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
144
144
|
return __generator(this, function (_c) {
|
|
145
145
|
switch (_c.label) {
|
|
146
|
-
case 0: return [4
|
|
146
|
+
case 0: return [4, context.endpoint()];
|
|
147
147
|
case 1:
|
|
148
148
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
149
149
|
headers = {
|
|
@@ -154,7 +154,7 @@ export var serializeAws_restJson1DescribeConnectorProfilesCommand = function (in
|
|
|
154
154
|
input.connectorProfileNames !== null && {
|
|
155
155
|
connectorProfileNames: serializeAws_restJson1ConnectorProfileNameList(input.connectorProfileNames, context),
|
|
156
156
|
})), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
157
|
-
return [2
|
|
157
|
+
return [2, new __HttpRequest({
|
|
158
158
|
protocol: protocol,
|
|
159
159
|
hostname: hostname,
|
|
160
160
|
port: port,
|
|
@@ -170,7 +170,7 @@ export var serializeAws_restJson1DescribeConnectorsCommand = function (input, co
|
|
|
170
170
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
171
171
|
return __generator(this, function (_c) {
|
|
172
172
|
switch (_c.label) {
|
|
173
|
-
case 0: return [4
|
|
173
|
+
case 0: return [4, context.endpoint()];
|
|
174
174
|
case 1:
|
|
175
175
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
176
176
|
headers = {
|
|
@@ -181,7 +181,7 @@ export var serializeAws_restJson1DescribeConnectorsCommand = function (input, co
|
|
|
181
181
|
input.connectorTypes !== null && {
|
|
182
182
|
connectorTypes: serializeAws_restJson1ConnectorTypeList(input.connectorTypes, context),
|
|
183
183
|
})), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
184
|
-
return [2
|
|
184
|
+
return [2, new __HttpRequest({
|
|
185
185
|
protocol: protocol,
|
|
186
186
|
hostname: hostname,
|
|
187
187
|
port: port,
|
|
@@ -197,7 +197,7 @@ export var serializeAws_restJson1DescribeFlowCommand = function (input, context)
|
|
|
197
197
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
198
198
|
return __generator(this, function (_c) {
|
|
199
199
|
switch (_c.label) {
|
|
200
|
-
case 0: return [4
|
|
200
|
+
case 0: return [4, context.endpoint()];
|
|
201
201
|
case 1:
|
|
202
202
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
203
203
|
headers = {
|
|
@@ -205,7 +205,7 @@ export var serializeAws_restJson1DescribeFlowCommand = function (input, context)
|
|
|
205
205
|
};
|
|
206
206
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-flow";
|
|
207
207
|
body = JSON.stringify(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })));
|
|
208
|
-
return [2
|
|
208
|
+
return [2, new __HttpRequest({
|
|
209
209
|
protocol: protocol,
|
|
210
210
|
hostname: hostname,
|
|
211
211
|
port: port,
|
|
@@ -221,7 +221,7 @@ export var serializeAws_restJson1DescribeFlowExecutionRecordsCommand = function
|
|
|
221
221
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
222
222
|
return __generator(this, function (_c) {
|
|
223
223
|
switch (_c.label) {
|
|
224
|
-
case 0: return [4
|
|
224
|
+
case 0: return [4, context.endpoint()];
|
|
225
225
|
case 1:
|
|
226
226
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
227
227
|
headers = {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_restJson1DescribeFlowExecutionRecordsCommand = function
|
|
|
229
229
|
};
|
|
230
230
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-flow-execution-records";
|
|
231
231
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, new __HttpRequest({
|
|
233
233
|
protocol: protocol,
|
|
234
234
|
hostname: hostname,
|
|
235
235
|
port: port,
|
|
@@ -245,7 +245,7 @@ export var serializeAws_restJson1ListConnectorEntitiesCommand = function (input,
|
|
|
245
245
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
246
246
|
return __generator(this, function (_c) {
|
|
247
247
|
switch (_c.label) {
|
|
248
|
-
case 0: return [4
|
|
248
|
+
case 0: return [4, context.endpoint()];
|
|
249
249
|
case 1:
|
|
250
250
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
251
251
|
headers = {
|
|
@@ -254,7 +254,7 @@ export var serializeAws_restJson1ListConnectorEntitiesCommand = function (input,
|
|
|
254
254
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-connector-entities";
|
|
255
255
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.connectorProfileName !== undefined &&
|
|
256
256
|
input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.entitiesPath !== undefined && input.entitiesPath !== null && { entitiesPath: input.entitiesPath })));
|
|
257
|
-
return [2
|
|
257
|
+
return [2, new __HttpRequest({
|
|
258
258
|
protocol: protocol,
|
|
259
259
|
hostname: hostname,
|
|
260
260
|
port: port,
|
|
@@ -270,7 +270,7 @@ export var serializeAws_restJson1ListFlowsCommand = function (input, context) {
|
|
|
270
270
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
271
271
|
return __generator(this, function (_c) {
|
|
272
272
|
switch (_c.label) {
|
|
273
|
-
case 0: return [4
|
|
273
|
+
case 0: return [4, context.endpoint()];
|
|
274
274
|
case 1:
|
|
275
275
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
276
276
|
headers = {
|
|
@@ -278,7 +278,7 @@ export var serializeAws_restJson1ListFlowsCommand = function (input, context) {
|
|
|
278
278
|
};
|
|
279
279
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-flows";
|
|
280
280
|
body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
281
|
-
return [2
|
|
281
|
+
return [2, new __HttpRequest({
|
|
282
282
|
protocol: protocol,
|
|
283
283
|
hostname: hostname,
|
|
284
284
|
port: port,
|
|
@@ -294,7 +294,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
294
294
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
295
295
|
return __generator(this, function (_c) {
|
|
296
296
|
switch (_c.label) {
|
|
297
|
-
case 0: return [4
|
|
297
|
+
case 0: return [4, context.endpoint()];
|
|
298
298
|
case 1:
|
|
299
299
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
300
300
|
headers = {};
|
|
@@ -309,7 +309,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
309
309
|
else {
|
|
310
310
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
311
311
|
}
|
|
312
|
-
return [2
|
|
312
|
+
return [2, new __HttpRequest({
|
|
313
313
|
protocol: protocol,
|
|
314
314
|
hostname: hostname,
|
|
315
315
|
port: port,
|
|
@@ -325,7 +325,7 @@ export var serializeAws_restJson1StartFlowCommand = function (input, context) {
|
|
|
325
325
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
326
326
|
return __generator(this, function (_c) {
|
|
327
327
|
switch (_c.label) {
|
|
328
|
-
case 0: return [4
|
|
328
|
+
case 0: return [4, context.endpoint()];
|
|
329
329
|
case 1:
|
|
330
330
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
331
331
|
headers = {
|
|
@@ -333,7 +333,7 @@ export var serializeAws_restJson1StartFlowCommand = function (input, context) {
|
|
|
333
333
|
};
|
|
334
334
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-flow";
|
|
335
335
|
body = JSON.stringify(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })));
|
|
336
|
-
return [2
|
|
336
|
+
return [2, new __HttpRequest({
|
|
337
337
|
protocol: protocol,
|
|
338
338
|
hostname: hostname,
|
|
339
339
|
port: port,
|
|
@@ -349,7 +349,7 @@ export var serializeAws_restJson1StopFlowCommand = function (input, context) { r
|
|
|
349
349
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
350
350
|
return __generator(this, function (_c) {
|
|
351
351
|
switch (_c.label) {
|
|
352
|
-
case 0: return [4
|
|
352
|
+
case 0: return [4, context.endpoint()];
|
|
353
353
|
case 1:
|
|
354
354
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
355
355
|
headers = {
|
|
@@ -357,7 +357,7 @@ export var serializeAws_restJson1StopFlowCommand = function (input, context) { r
|
|
|
357
357
|
};
|
|
358
358
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stop-flow";
|
|
359
359
|
body = JSON.stringify(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })));
|
|
360
|
-
return [2
|
|
360
|
+
return [2, new __HttpRequest({
|
|
361
361
|
protocol: protocol,
|
|
362
362
|
hostname: hostname,
|
|
363
363
|
port: port,
|
|
@@ -373,7 +373,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
373
373
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
374
374
|
return __generator(this, function (_c) {
|
|
375
375
|
switch (_c.label) {
|
|
376
|
-
case 0: return [4
|
|
376
|
+
case 0: return [4, context.endpoint()];
|
|
377
377
|
case 1:
|
|
378
378
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
379
379
|
headers = {
|
|
@@ -391,7 +391,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
391
391
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
392
392
|
}
|
|
393
393
|
body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
394
|
-
return [2
|
|
394
|
+
return [2, new __HttpRequest({
|
|
395
395
|
protocol: protocol,
|
|
396
396
|
hostname: hostname,
|
|
397
397
|
port: port,
|
|
@@ -407,7 +407,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
407
407
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
408
408
|
return __generator(this, function (_c) {
|
|
409
409
|
switch (_c.label) {
|
|
410
|
-
case 0: return [4
|
|
410
|
+
case 0: return [4, context.endpoint()];
|
|
411
411
|
case 1:
|
|
412
412
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
413
413
|
headers = {};
|
|
@@ -423,7 +423,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
423
423
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
424
424
|
}
|
|
425
425
|
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
426
|
-
return [2
|
|
426
|
+
return [2, new __HttpRequest({
|
|
427
427
|
protocol: protocol,
|
|
428
428
|
hostname: hostname,
|
|
429
429
|
port: port,
|
|
@@ -440,7 +440,7 @@ export var serializeAws_restJson1UpdateConnectorProfileCommand = function (input
|
|
|
440
440
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
441
441
|
return __generator(this, function (_c) {
|
|
442
442
|
switch (_c.label) {
|
|
443
|
-
case 0: return [4
|
|
443
|
+
case 0: return [4, context.endpoint()];
|
|
444
444
|
case 1:
|
|
445
445
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
446
446
|
headers = {
|
|
@@ -453,7 +453,7 @@ export var serializeAws_restJson1UpdateConnectorProfileCommand = function (input
|
|
|
453
453
|
connectorProfileConfig: serializeAws_restJson1ConnectorProfileConfig(input.connectorProfileConfig, context),
|
|
454
454
|
})), (input.connectorProfileName !== undefined &&
|
|
455
455
|
input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })));
|
|
456
|
-
return [2
|
|
456
|
+
return [2, new __HttpRequest({
|
|
457
457
|
protocol: protocol,
|
|
458
458
|
hostname: hostname,
|
|
459
459
|
port: port,
|
|
@@ -469,7 +469,7 @@ export var serializeAws_restJson1UpdateFlowCommand = function (input, context) {
|
|
|
469
469
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
470
470
|
return __generator(this, function (_c) {
|
|
471
471
|
switch (_c.label) {
|
|
472
|
-
case 0: return [4
|
|
472
|
+
case 0: return [4, context.endpoint()];
|
|
473
473
|
case 1:
|
|
474
474
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
475
475
|
headers = {
|
|
@@ -487,7 +487,7 @@ export var serializeAws_restJson1UpdateFlowCommand = function (input, context) {
|
|
|
487
487
|
input.triggerConfig !== null && {
|
|
488
488
|
triggerConfig: serializeAws_restJson1TriggerConfig(input.triggerConfig, context),
|
|
489
489
|
})));
|
|
490
|
-
return [2
|
|
490
|
+
return [2, new __HttpRequest({
|
|
491
491
|
protocol: protocol,
|
|
492
492
|
hostname: hostname,
|
|
493
493
|
port: port,
|
|
@@ -505,7 +505,7 @@ export var deserializeAws_restJson1CreateConnectorProfileCommand = function (out
|
|
|
505
505
|
switch (_c.label) {
|
|
506
506
|
case 0:
|
|
507
507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
508
|
-
return [2
|
|
508
|
+
return [2, deserializeAws_restJson1CreateConnectorProfileCommandError(output, context)];
|
|
509
509
|
}
|
|
510
510
|
contents = {
|
|
511
511
|
$metadata: deserializeMetadata(output),
|
|
@@ -513,13 +513,13 @@ export var deserializeAws_restJson1CreateConnectorProfileCommand = function (out
|
|
|
513
513
|
};
|
|
514
514
|
_a = __expectNonNull;
|
|
515
515
|
_b = __expectObject;
|
|
516
|
-
return [4
|
|
516
|
+
return [4, parseBody(output.body, context)];
|
|
517
517
|
case 1:
|
|
518
518
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
519
519
|
if (data.connectorProfileArn !== undefined && data.connectorProfileArn !== null) {
|
|
520
520
|
contents.connectorProfileArn = __expectString(data.connectorProfileArn);
|
|
521
521
|
}
|
|
522
|
-
return [2
|
|
522
|
+
return [2, Promise.resolve(contents)];
|
|
523
523
|
}
|
|
524
524
|
});
|
|
525
525
|
}); };
|
|
@@ -531,55 +531,55 @@ var deserializeAws_restJson1CreateConnectorProfileCommandError = function (outpu
|
|
|
531
531
|
case 0:
|
|
532
532
|
_a = [__assign({}, output)];
|
|
533
533
|
_h = {};
|
|
534
|
-
return [4
|
|
534
|
+
return [4, parseBody(output.body, context)];
|
|
535
535
|
case 1:
|
|
536
536
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
537
537
|
errorCode = "UnknownError";
|
|
538
538
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
539
|
_b = errorCode;
|
|
540
540
|
switch (_b) {
|
|
541
|
-
case "ConflictException": return [3
|
|
542
|
-
case "com.amazonaws.appflow#ConflictException": return [3
|
|
543
|
-
case "ConnectorAuthenticationException": return [3
|
|
544
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3
|
|
545
|
-
case "InternalServerException": return [3
|
|
546
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
547
|
-
case "ServiceQuotaExceededException": return [3
|
|
548
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3
|
|
549
|
-
case "ValidationException": return [3
|
|
550
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
551
|
-
}
|
|
552
|
-
return [3
|
|
541
|
+
case "ConflictException": return [3, 2];
|
|
542
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
543
|
+
case "ConnectorAuthenticationException": return [3, 4];
|
|
544
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3, 4];
|
|
545
|
+
case "InternalServerException": return [3, 6];
|
|
546
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 6];
|
|
547
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
548
|
+
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3, 8];
|
|
549
|
+
case "ValidationException": return [3, 10];
|
|
550
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 10];
|
|
551
|
+
}
|
|
552
|
+
return [3, 12];
|
|
553
553
|
case 2:
|
|
554
554
|
_c = [{}];
|
|
555
|
-
return [4
|
|
555
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
556
556
|
case 3:
|
|
557
557
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
558
|
-
return [3
|
|
558
|
+
return [3, 13];
|
|
559
559
|
case 4:
|
|
560
560
|
_d = [{}];
|
|
561
|
-
return [4
|
|
561
|
+
return [4, deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)];
|
|
562
562
|
case 5:
|
|
563
563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
564
|
-
return [3
|
|
564
|
+
return [3, 13];
|
|
565
565
|
case 6:
|
|
566
566
|
_e = [{}];
|
|
567
|
-
return [4
|
|
567
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
568
568
|
case 7:
|
|
569
569
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
570
|
-
return [3
|
|
570
|
+
return [3, 13];
|
|
571
571
|
case 8:
|
|
572
572
|
_f = [{}];
|
|
573
|
-
return [4
|
|
573
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
574
574
|
case 9:
|
|
575
575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
576
|
-
return [3
|
|
576
|
+
return [3, 13];
|
|
577
577
|
case 10:
|
|
578
578
|
_g = [{}];
|
|
579
|
-
return [4
|
|
579
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
580
580
|
case 11:
|
|
581
581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
582
|
-
return [3
|
|
582
|
+
return [3, 13];
|
|
583
583
|
case 12:
|
|
584
584
|
parsedBody = parsedOutput.body;
|
|
585
585
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -589,7 +589,7 @@ var deserializeAws_restJson1CreateConnectorProfileCommandError = function (outpu
|
|
|
589
589
|
message = response.message || response.Message || errorCode;
|
|
590
590
|
response.message = message;
|
|
591
591
|
delete response.Message;
|
|
592
|
-
return [2
|
|
592
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
593
593
|
}
|
|
594
594
|
});
|
|
595
595
|
}); };
|
|
@@ -599,7 +599,7 @@ export var deserializeAws_restJson1CreateFlowCommand = function (output, context
|
|
|
599
599
|
switch (_c.label) {
|
|
600
600
|
case 0:
|
|
601
601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
602
|
-
return [2
|
|
602
|
+
return [2, deserializeAws_restJson1CreateFlowCommandError(output, context)];
|
|
603
603
|
}
|
|
604
604
|
contents = {
|
|
605
605
|
$metadata: deserializeMetadata(output),
|
|
@@ -608,7 +608,7 @@ export var deserializeAws_restJson1CreateFlowCommand = function (output, context
|
|
|
608
608
|
};
|
|
609
609
|
_a = __expectNonNull;
|
|
610
610
|
_b = __expectObject;
|
|
611
|
-
return [4
|
|
611
|
+
return [4, parseBody(output.body, context)];
|
|
612
612
|
case 1:
|
|
613
613
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
614
614
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -617,7 +617,7 @@ export var deserializeAws_restJson1CreateFlowCommand = function (output, context
|
|
|
617
617
|
if (data.flowStatus !== undefined && data.flowStatus !== null) {
|
|
618
618
|
contents.flowStatus = __expectString(data.flowStatus);
|
|
619
619
|
}
|
|
620
|
-
return [2
|
|
620
|
+
return [2, Promise.resolve(contents)];
|
|
621
621
|
}
|
|
622
622
|
});
|
|
623
623
|
}); };
|
|
@@ -629,71 +629,71 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
|
|
|
629
629
|
case 0:
|
|
630
630
|
_a = [__assign({}, output)];
|
|
631
631
|
_k = {};
|
|
632
|
-
return [4
|
|
632
|
+
return [4, parseBody(output.body, context)];
|
|
633
633
|
case 1:
|
|
634
634
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
635
635
|
errorCode = "UnknownError";
|
|
636
636
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
637
|
_b = errorCode;
|
|
638
638
|
switch (_b) {
|
|
639
|
-
case "ConflictException": return [3
|
|
640
|
-
case "com.amazonaws.appflow#ConflictException": return [3
|
|
641
|
-
case "ConnectorAuthenticationException": return [3
|
|
642
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3
|
|
643
|
-
case "ConnectorServerException": return [3
|
|
644
|
-
case "com.amazonaws.appflow#ConnectorServerException": return [3
|
|
645
|
-
case "InternalServerException": return [3
|
|
646
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
647
|
-
case "ResourceNotFoundException": return [3
|
|
648
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
649
|
-
case "ServiceQuotaExceededException": return [3
|
|
650
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3
|
|
651
|
-
case "ValidationException": return [3
|
|
652
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
653
|
-
}
|
|
654
|
-
return [3
|
|
639
|
+
case "ConflictException": return [3, 2];
|
|
640
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
641
|
+
case "ConnectorAuthenticationException": return [3, 4];
|
|
642
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3, 4];
|
|
643
|
+
case "ConnectorServerException": return [3, 6];
|
|
644
|
+
case "com.amazonaws.appflow#ConnectorServerException": return [3, 6];
|
|
645
|
+
case "InternalServerException": return [3, 8];
|
|
646
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 8];
|
|
647
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
648
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 10];
|
|
649
|
+
case "ServiceQuotaExceededException": return [3, 12];
|
|
650
|
+
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3, 12];
|
|
651
|
+
case "ValidationException": return [3, 14];
|
|
652
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 14];
|
|
653
|
+
}
|
|
654
|
+
return [3, 16];
|
|
655
655
|
case 2:
|
|
656
656
|
_c = [{}];
|
|
657
|
-
return [4
|
|
657
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
658
658
|
case 3:
|
|
659
659
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
660
|
-
return [3
|
|
660
|
+
return [3, 17];
|
|
661
661
|
case 4:
|
|
662
662
|
_d = [{}];
|
|
663
|
-
return [4
|
|
663
|
+
return [4, deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)];
|
|
664
664
|
case 5:
|
|
665
665
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
666
|
-
return [3
|
|
666
|
+
return [3, 17];
|
|
667
667
|
case 6:
|
|
668
668
|
_e = [{}];
|
|
669
|
-
return [4
|
|
669
|
+
return [4, deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)];
|
|
670
670
|
case 7:
|
|
671
671
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
672
|
-
return [3
|
|
672
|
+
return [3, 17];
|
|
673
673
|
case 8:
|
|
674
674
|
_f = [{}];
|
|
675
|
-
return [4
|
|
675
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
676
676
|
case 9:
|
|
677
677
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
678
|
-
return [3
|
|
678
|
+
return [3, 17];
|
|
679
679
|
case 10:
|
|
680
680
|
_g = [{}];
|
|
681
|
-
return [4
|
|
681
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
682
682
|
case 11:
|
|
683
683
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
684
|
-
return [3
|
|
684
|
+
return [3, 17];
|
|
685
685
|
case 12:
|
|
686
686
|
_h = [{}];
|
|
687
|
-
return [4
|
|
687
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
688
688
|
case 13:
|
|
689
689
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
690
|
-
return [3
|
|
690
|
+
return [3, 17];
|
|
691
691
|
case 14:
|
|
692
692
|
_j = [{}];
|
|
693
|
-
return [4
|
|
693
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
694
694
|
case 15:
|
|
695
695
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
696
|
-
return [3
|
|
696
|
+
return [3, 17];
|
|
697
697
|
case 16:
|
|
698
698
|
parsedBody = parsedOutput.body;
|
|
699
699
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -703,7 +703,7 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
|
|
|
703
703
|
message = response.message || response.Message || errorCode;
|
|
704
704
|
response.message = message;
|
|
705
705
|
delete response.Message;
|
|
706
|
-
return [2
|
|
706
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
707
707
|
}
|
|
708
708
|
});
|
|
709
709
|
}); };
|
|
@@ -713,15 +713,15 @@ export var deserializeAws_restJson1DeleteConnectorProfileCommand = function (out
|
|
|
713
713
|
switch (_a.label) {
|
|
714
714
|
case 0:
|
|
715
715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
716
|
-
return [2
|
|
716
|
+
return [2, deserializeAws_restJson1DeleteConnectorProfileCommandError(output, context)];
|
|
717
717
|
}
|
|
718
718
|
contents = {
|
|
719
719
|
$metadata: deserializeMetadata(output),
|
|
720
720
|
};
|
|
721
|
-
return [4
|
|
721
|
+
return [4, collectBody(output.body, context)];
|
|
722
722
|
case 1:
|
|
723
723
|
_a.sent();
|
|
724
|
-
return [2
|
|
724
|
+
return [2, Promise.resolve(contents)];
|
|
725
725
|
}
|
|
726
726
|
});
|
|
727
727
|
}); };
|
|
@@ -733,39 +733,39 @@ var deserializeAws_restJson1DeleteConnectorProfileCommandError = function (outpu
|
|
|
733
733
|
case 0:
|
|
734
734
|
_a = [__assign({}, output)];
|
|
735
735
|
_f = {};
|
|
736
|
-
return [4
|
|
736
|
+
return [4, parseBody(output.body, context)];
|
|
737
737
|
case 1:
|
|
738
738
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
739
739
|
errorCode = "UnknownError";
|
|
740
740
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
741
|
_b = errorCode;
|
|
742
742
|
switch (_b) {
|
|
743
|
-
case "ConflictException": return [3
|
|
744
|
-
case "com.amazonaws.appflow#ConflictException": return [3
|
|
745
|
-
case "InternalServerException": return [3
|
|
746
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
747
|
-
case "ResourceNotFoundException": return [3
|
|
748
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
749
|
-
}
|
|
750
|
-
return [3
|
|
743
|
+
case "ConflictException": return [3, 2];
|
|
744
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
745
|
+
case "InternalServerException": return [3, 4];
|
|
746
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 4];
|
|
747
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
748
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 6];
|
|
749
|
+
}
|
|
750
|
+
return [3, 8];
|
|
751
751
|
case 2:
|
|
752
752
|
_c = [{}];
|
|
753
|
-
return [4
|
|
753
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
754
754
|
case 3:
|
|
755
755
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
756
|
-
return [3
|
|
756
|
+
return [3, 9];
|
|
757
757
|
case 4:
|
|
758
758
|
_d = [{}];
|
|
759
|
-
return [4
|
|
759
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
760
760
|
case 5:
|
|
761
761
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
762
|
-
return [3
|
|
762
|
+
return [3, 9];
|
|
763
763
|
case 6:
|
|
764
764
|
_e = [{}];
|
|
765
|
-
return [4
|
|
765
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
766
766
|
case 7:
|
|
767
767
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
768
|
-
return [3
|
|
768
|
+
return [3, 9];
|
|
769
769
|
case 8:
|
|
770
770
|
parsedBody = parsedOutput.body;
|
|
771
771
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -775,7 +775,7 @@ var deserializeAws_restJson1DeleteConnectorProfileCommandError = function (outpu
|
|
|
775
775
|
message = response.message || response.Message || errorCode;
|
|
776
776
|
response.message = message;
|
|
777
777
|
delete response.Message;
|
|
778
|
-
return [2
|
|
778
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
779
779
|
}
|
|
780
780
|
});
|
|
781
781
|
}); };
|
|
@@ -785,15 +785,15 @@ export var deserializeAws_restJson1DeleteFlowCommand = function (output, context
|
|
|
785
785
|
switch (_a.label) {
|
|
786
786
|
case 0:
|
|
787
787
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
788
|
-
return [2
|
|
788
|
+
return [2, deserializeAws_restJson1DeleteFlowCommandError(output, context)];
|
|
789
789
|
}
|
|
790
790
|
contents = {
|
|
791
791
|
$metadata: deserializeMetadata(output),
|
|
792
792
|
};
|
|
793
|
-
return [4
|
|
793
|
+
return [4, collectBody(output.body, context)];
|
|
794
794
|
case 1:
|
|
795
795
|
_a.sent();
|
|
796
|
-
return [2
|
|
796
|
+
return [2, Promise.resolve(contents)];
|
|
797
797
|
}
|
|
798
798
|
});
|
|
799
799
|
}); };
|
|
@@ -805,39 +805,39 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
|
|
|
805
805
|
case 0:
|
|
806
806
|
_a = [__assign({}, output)];
|
|
807
807
|
_f = {};
|
|
808
|
-
return [4
|
|
808
|
+
return [4, parseBody(output.body, context)];
|
|
809
809
|
case 1:
|
|
810
810
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
811
811
|
errorCode = "UnknownError";
|
|
812
812
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
813
813
|
_b = errorCode;
|
|
814
814
|
switch (_b) {
|
|
815
|
-
case "ConflictException": return [3
|
|
816
|
-
case "com.amazonaws.appflow#ConflictException": return [3
|
|
817
|
-
case "InternalServerException": return [3
|
|
818
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
819
|
-
case "ResourceNotFoundException": return [3
|
|
820
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
821
|
-
}
|
|
822
|
-
return [3
|
|
815
|
+
case "ConflictException": return [3, 2];
|
|
816
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
817
|
+
case "InternalServerException": return [3, 4];
|
|
818
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 4];
|
|
819
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
820
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 6];
|
|
821
|
+
}
|
|
822
|
+
return [3, 8];
|
|
823
823
|
case 2:
|
|
824
824
|
_c = [{}];
|
|
825
|
-
return [4
|
|
825
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
826
826
|
case 3:
|
|
827
827
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
828
|
-
return [3
|
|
828
|
+
return [3, 9];
|
|
829
829
|
case 4:
|
|
830
830
|
_d = [{}];
|
|
831
|
-
return [4
|
|
831
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
832
832
|
case 5:
|
|
833
833
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
834
|
-
return [3
|
|
834
|
+
return [3, 9];
|
|
835
835
|
case 6:
|
|
836
836
|
_e = [{}];
|
|
837
|
-
return [4
|
|
837
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
838
838
|
case 7:
|
|
839
839
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
840
|
-
return [3
|
|
840
|
+
return [3, 9];
|
|
841
841
|
case 8:
|
|
842
842
|
parsedBody = parsedOutput.body;
|
|
843
843
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -847,7 +847,7 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
|
|
|
847
847
|
message = response.message || response.Message || errorCode;
|
|
848
848
|
response.message = message;
|
|
849
849
|
delete response.Message;
|
|
850
|
-
return [2
|
|
850
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
851
851
|
}
|
|
852
852
|
});
|
|
853
853
|
}); };
|
|
@@ -857,7 +857,7 @@ export var deserializeAws_restJson1DescribeConnectorEntityCommand = function (ou
|
|
|
857
857
|
switch (_c.label) {
|
|
858
858
|
case 0:
|
|
859
859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
|
-
return [2
|
|
860
|
+
return [2, deserializeAws_restJson1DescribeConnectorEntityCommandError(output, context)];
|
|
861
861
|
}
|
|
862
862
|
contents = {
|
|
863
863
|
$metadata: deserializeMetadata(output),
|
|
@@ -865,13 +865,13 @@ export var deserializeAws_restJson1DescribeConnectorEntityCommand = function (ou
|
|
|
865
865
|
};
|
|
866
866
|
_a = __expectNonNull;
|
|
867
867
|
_b = __expectObject;
|
|
868
|
-
return [4
|
|
868
|
+
return [4, parseBody(output.body, context)];
|
|
869
869
|
case 1:
|
|
870
870
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
871
871
|
if (data.connectorEntityFields !== undefined && data.connectorEntityFields !== null) {
|
|
872
872
|
contents.connectorEntityFields = deserializeAws_restJson1ConnectorEntityFieldList(data.connectorEntityFields, context);
|
|
873
873
|
}
|
|
874
|
-
return [2
|
|
874
|
+
return [2, Promise.resolve(contents)];
|
|
875
875
|
}
|
|
876
876
|
});
|
|
877
877
|
}); };
|
|
@@ -883,55 +883,55 @@ var deserializeAws_restJson1DescribeConnectorEntityCommandError = function (outp
|
|
|
883
883
|
case 0:
|
|
884
884
|
_a = [__assign({}, output)];
|
|
885
885
|
_h = {};
|
|
886
|
-
return [4
|
|
886
|
+
return [4, parseBody(output.body, context)];
|
|
887
887
|
case 1:
|
|
888
888
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
889
889
|
errorCode = "UnknownError";
|
|
890
890
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
891
|
_b = errorCode;
|
|
892
892
|
switch (_b) {
|
|
893
|
-
case "ConnectorAuthenticationException": return [3
|
|
894
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3
|
|
895
|
-
case "ConnectorServerException": return [3
|
|
896
|
-
case "com.amazonaws.appflow#ConnectorServerException": return [3
|
|
897
|
-
case "InternalServerException": return [3
|
|
898
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
899
|
-
case "ResourceNotFoundException": return [3
|
|
900
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
901
|
-
case "ValidationException": return [3
|
|
902
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
903
|
-
}
|
|
904
|
-
return [3
|
|
893
|
+
case "ConnectorAuthenticationException": return [3, 2];
|
|
894
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3, 2];
|
|
895
|
+
case "ConnectorServerException": return [3, 4];
|
|
896
|
+
case "com.amazonaws.appflow#ConnectorServerException": return [3, 4];
|
|
897
|
+
case "InternalServerException": return [3, 6];
|
|
898
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 6];
|
|
899
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
900
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 8];
|
|
901
|
+
case "ValidationException": return [3, 10];
|
|
902
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 10];
|
|
903
|
+
}
|
|
904
|
+
return [3, 12];
|
|
905
905
|
case 2:
|
|
906
906
|
_c = [{}];
|
|
907
|
-
return [4
|
|
907
|
+
return [4, deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)];
|
|
908
908
|
case 3:
|
|
909
909
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
910
|
-
return [3
|
|
910
|
+
return [3, 13];
|
|
911
911
|
case 4:
|
|
912
912
|
_d = [{}];
|
|
913
|
-
return [4
|
|
913
|
+
return [4, deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)];
|
|
914
914
|
case 5:
|
|
915
915
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
916
|
-
return [3
|
|
916
|
+
return [3, 13];
|
|
917
917
|
case 6:
|
|
918
918
|
_e = [{}];
|
|
919
|
-
return [4
|
|
919
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
920
920
|
case 7:
|
|
921
921
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
922
|
-
return [3
|
|
922
|
+
return [3, 13];
|
|
923
923
|
case 8:
|
|
924
924
|
_f = [{}];
|
|
925
|
-
return [4
|
|
925
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
926
926
|
case 9:
|
|
927
927
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
928
|
-
return [3
|
|
928
|
+
return [3, 13];
|
|
929
929
|
case 10:
|
|
930
930
|
_g = [{}];
|
|
931
|
-
return [4
|
|
931
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
932
932
|
case 11:
|
|
933
933
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
934
|
-
return [3
|
|
934
|
+
return [3, 13];
|
|
935
935
|
case 12:
|
|
936
936
|
parsedBody = parsedOutput.body;
|
|
937
937
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -941,7 +941,7 @@ var deserializeAws_restJson1DescribeConnectorEntityCommandError = function (outp
|
|
|
941
941
|
message = response.message || response.Message || errorCode;
|
|
942
942
|
response.message = message;
|
|
943
943
|
delete response.Message;
|
|
944
|
-
return [2
|
|
944
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
945
945
|
}
|
|
946
946
|
});
|
|
947
947
|
}); };
|
|
@@ -951,7 +951,7 @@ export var deserializeAws_restJson1DescribeConnectorProfilesCommand = function (
|
|
|
951
951
|
switch (_c.label) {
|
|
952
952
|
case 0:
|
|
953
953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
954
|
-
return [2
|
|
954
|
+
return [2, deserializeAws_restJson1DescribeConnectorProfilesCommandError(output, context)];
|
|
955
955
|
}
|
|
956
956
|
contents = {
|
|
957
957
|
$metadata: deserializeMetadata(output),
|
|
@@ -960,7 +960,7 @@ export var deserializeAws_restJson1DescribeConnectorProfilesCommand = function (
|
|
|
960
960
|
};
|
|
961
961
|
_a = __expectNonNull;
|
|
962
962
|
_b = __expectObject;
|
|
963
|
-
return [4
|
|
963
|
+
return [4, parseBody(output.body, context)];
|
|
964
964
|
case 1:
|
|
965
965
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
966
966
|
if (data.connectorProfileDetails !== undefined && data.connectorProfileDetails !== null) {
|
|
@@ -969,7 +969,7 @@ export var deserializeAws_restJson1DescribeConnectorProfilesCommand = function (
|
|
|
969
969
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
970
970
|
contents.nextToken = __expectString(data.nextToken);
|
|
971
971
|
}
|
|
972
|
-
return [2
|
|
972
|
+
return [2, Promise.resolve(contents)];
|
|
973
973
|
}
|
|
974
974
|
});
|
|
975
975
|
}); };
|
|
@@ -981,31 +981,31 @@ var deserializeAws_restJson1DescribeConnectorProfilesCommandError = function (ou
|
|
|
981
981
|
case 0:
|
|
982
982
|
_a = [__assign({}, output)];
|
|
983
983
|
_e = {};
|
|
984
|
-
return [4
|
|
984
|
+
return [4, parseBody(output.body, context)];
|
|
985
985
|
case 1:
|
|
986
986
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
987
987
|
errorCode = "UnknownError";
|
|
988
988
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
989
|
_b = errorCode;
|
|
990
990
|
switch (_b) {
|
|
991
|
-
case "InternalServerException": return [3
|
|
992
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
993
|
-
case "ValidationException": return [3
|
|
994
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
991
|
+
case "InternalServerException": return [3, 2];
|
|
992
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
993
|
+
case "ValidationException": return [3, 4];
|
|
994
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 4];
|
|
995
995
|
}
|
|
996
|
-
return [3
|
|
996
|
+
return [3, 6];
|
|
997
997
|
case 2:
|
|
998
998
|
_c = [{}];
|
|
999
|
-
return [4
|
|
999
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1000
1000
|
case 3:
|
|
1001
1001
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1002
|
-
return [3
|
|
1002
|
+
return [3, 7];
|
|
1003
1003
|
case 4:
|
|
1004
1004
|
_d = [{}];
|
|
1005
|
-
return [4
|
|
1005
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1006
1006
|
case 5:
|
|
1007
1007
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1008
|
-
return [3
|
|
1008
|
+
return [3, 7];
|
|
1009
1009
|
case 6:
|
|
1010
1010
|
parsedBody = parsedOutput.body;
|
|
1011
1011
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1015,7 +1015,7 @@ var deserializeAws_restJson1DescribeConnectorProfilesCommandError = function (ou
|
|
|
1015
1015
|
message = response.message || response.Message || errorCode;
|
|
1016
1016
|
response.message = message;
|
|
1017
1017
|
delete response.Message;
|
|
1018
|
-
return [2
|
|
1018
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1019
1019
|
}
|
|
1020
1020
|
});
|
|
1021
1021
|
}); };
|
|
@@ -1025,7 +1025,7 @@ export var deserializeAws_restJson1DescribeConnectorsCommand = function (output,
|
|
|
1025
1025
|
switch (_c.label) {
|
|
1026
1026
|
case 0:
|
|
1027
1027
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
|
-
return [2
|
|
1028
|
+
return [2, deserializeAws_restJson1DescribeConnectorsCommandError(output, context)];
|
|
1029
1029
|
}
|
|
1030
1030
|
contents = {
|
|
1031
1031
|
$metadata: deserializeMetadata(output),
|
|
@@ -1034,7 +1034,7 @@ export var deserializeAws_restJson1DescribeConnectorsCommand = function (output,
|
|
|
1034
1034
|
};
|
|
1035
1035
|
_a = __expectNonNull;
|
|
1036
1036
|
_b = __expectObject;
|
|
1037
|
-
return [4
|
|
1037
|
+
return [4, parseBody(output.body, context)];
|
|
1038
1038
|
case 1:
|
|
1039
1039
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1040
1040
|
if (data.connectorConfigurations !== undefined && data.connectorConfigurations !== null) {
|
|
@@ -1043,7 +1043,7 @@ export var deserializeAws_restJson1DescribeConnectorsCommand = function (output,
|
|
|
1043
1043
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1044
1044
|
contents.nextToken = __expectString(data.nextToken);
|
|
1045
1045
|
}
|
|
1046
|
-
return [2
|
|
1046
|
+
return [2, Promise.resolve(contents)];
|
|
1047
1047
|
}
|
|
1048
1048
|
});
|
|
1049
1049
|
}); };
|
|
@@ -1055,31 +1055,31 @@ var deserializeAws_restJson1DescribeConnectorsCommandError = function (output, c
|
|
|
1055
1055
|
case 0:
|
|
1056
1056
|
_a = [__assign({}, output)];
|
|
1057
1057
|
_e = {};
|
|
1058
|
-
return [4
|
|
1058
|
+
return [4, parseBody(output.body, context)];
|
|
1059
1059
|
case 1:
|
|
1060
1060
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1061
1061
|
errorCode = "UnknownError";
|
|
1062
1062
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
1063
|
_b = errorCode;
|
|
1064
1064
|
switch (_b) {
|
|
1065
|
-
case "InternalServerException": return [3
|
|
1066
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1067
|
-
case "ValidationException": return [3
|
|
1068
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
1065
|
+
case "InternalServerException": return [3, 2];
|
|
1066
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
1067
|
+
case "ValidationException": return [3, 4];
|
|
1068
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 4];
|
|
1069
1069
|
}
|
|
1070
|
-
return [3
|
|
1070
|
+
return [3, 6];
|
|
1071
1071
|
case 2:
|
|
1072
1072
|
_c = [{}];
|
|
1073
|
-
return [4
|
|
1073
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1074
1074
|
case 3:
|
|
1075
1075
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1076
|
-
return [3
|
|
1076
|
+
return [3, 7];
|
|
1077
1077
|
case 4:
|
|
1078
1078
|
_d = [{}];
|
|
1079
|
-
return [4
|
|
1079
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1080
1080
|
case 5:
|
|
1081
1081
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1082
|
-
return [3
|
|
1082
|
+
return [3, 7];
|
|
1083
1083
|
case 6:
|
|
1084
1084
|
parsedBody = parsedOutput.body;
|
|
1085
1085
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1089,7 +1089,7 @@ var deserializeAws_restJson1DescribeConnectorsCommandError = function (output, c
|
|
|
1089
1089
|
message = response.message || response.Message || errorCode;
|
|
1090
1090
|
response.message = message;
|
|
1091
1091
|
delete response.Message;
|
|
1092
|
-
return [2
|
|
1092
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1093
1093
|
}
|
|
1094
1094
|
});
|
|
1095
1095
|
}); };
|
|
@@ -1099,7 +1099,7 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
|
|
|
1099
1099
|
switch (_c.label) {
|
|
1100
1100
|
case 0:
|
|
1101
1101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1102
|
-
return [2
|
|
1102
|
+
return [2, deserializeAws_restJson1DescribeFlowCommandError(output, context)];
|
|
1103
1103
|
}
|
|
1104
1104
|
contents = {
|
|
1105
1105
|
$metadata: deserializeMetadata(output),
|
|
@@ -1122,7 +1122,7 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
|
|
|
1122
1122
|
};
|
|
1123
1123
|
_a = __expectNonNull;
|
|
1124
1124
|
_b = __expectObject;
|
|
1125
|
-
return [4
|
|
1125
|
+
return [4, parseBody(output.body, context)];
|
|
1126
1126
|
case 1:
|
|
1127
1127
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1128
1128
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
@@ -1173,7 +1173,7 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
|
|
|
1173
1173
|
if (data.triggerConfig !== undefined && data.triggerConfig !== null) {
|
|
1174
1174
|
contents.triggerConfig = deserializeAws_restJson1TriggerConfig(data.triggerConfig, context);
|
|
1175
1175
|
}
|
|
1176
|
-
return [2
|
|
1176
|
+
return [2, Promise.resolve(contents)];
|
|
1177
1177
|
}
|
|
1178
1178
|
});
|
|
1179
1179
|
}); };
|
|
@@ -1185,31 +1185,31 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
|
|
|
1185
1185
|
case 0:
|
|
1186
1186
|
_a = [__assign({}, output)];
|
|
1187
1187
|
_e = {};
|
|
1188
|
-
return [4
|
|
1188
|
+
return [4, parseBody(output.body, context)];
|
|
1189
1189
|
case 1:
|
|
1190
1190
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1191
1191
|
errorCode = "UnknownError";
|
|
1192
1192
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
1193
|
_b = errorCode;
|
|
1194
1194
|
switch (_b) {
|
|
1195
|
-
case "InternalServerException": return [3
|
|
1196
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1197
|
-
case "ResourceNotFoundException": return [3
|
|
1198
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
1195
|
+
case "InternalServerException": return [3, 2];
|
|
1196
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
1197
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1198
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 4];
|
|
1199
1199
|
}
|
|
1200
|
-
return [3
|
|
1200
|
+
return [3, 6];
|
|
1201
1201
|
case 2:
|
|
1202
1202
|
_c = [{}];
|
|
1203
|
-
return [4
|
|
1203
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1204
1204
|
case 3:
|
|
1205
1205
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1206
|
-
return [3
|
|
1206
|
+
return [3, 7];
|
|
1207
1207
|
case 4:
|
|
1208
1208
|
_d = [{}];
|
|
1209
|
-
return [4
|
|
1209
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1210
1210
|
case 5:
|
|
1211
1211
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1212
|
-
return [3
|
|
1212
|
+
return [3, 7];
|
|
1213
1213
|
case 6:
|
|
1214
1214
|
parsedBody = parsedOutput.body;
|
|
1215
1215
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1219,7 +1219,7 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
|
|
|
1219
1219
|
message = response.message || response.Message || errorCode;
|
|
1220
1220
|
response.message = message;
|
|
1221
1221
|
delete response.Message;
|
|
1222
|
-
return [2
|
|
1222
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1223
1223
|
}
|
|
1224
1224
|
});
|
|
1225
1225
|
}); };
|
|
@@ -1229,7 +1229,7 @@ export var deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = functio
|
|
|
1229
1229
|
switch (_c.label) {
|
|
1230
1230
|
case 0:
|
|
1231
1231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1232
|
-
return [2
|
|
1232
|
+
return [2, deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError(output, context)];
|
|
1233
1233
|
}
|
|
1234
1234
|
contents = {
|
|
1235
1235
|
$metadata: deserializeMetadata(output),
|
|
@@ -1238,7 +1238,7 @@ export var deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = functio
|
|
|
1238
1238
|
};
|
|
1239
1239
|
_a = __expectNonNull;
|
|
1240
1240
|
_b = __expectObject;
|
|
1241
|
-
return [4
|
|
1241
|
+
return [4, parseBody(output.body, context)];
|
|
1242
1242
|
case 1:
|
|
1243
1243
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1244
1244
|
if (data.flowExecutions !== undefined && data.flowExecutions !== null) {
|
|
@@ -1247,7 +1247,7 @@ export var deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = functio
|
|
|
1247
1247
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1248
1248
|
contents.nextToken = __expectString(data.nextToken);
|
|
1249
1249
|
}
|
|
1250
|
-
return [2
|
|
1250
|
+
return [2, Promise.resolve(contents)];
|
|
1251
1251
|
}
|
|
1252
1252
|
});
|
|
1253
1253
|
}); };
|
|
@@ -1259,39 +1259,39 @@ var deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = function
|
|
|
1259
1259
|
case 0:
|
|
1260
1260
|
_a = [__assign({}, output)];
|
|
1261
1261
|
_f = {};
|
|
1262
|
-
return [4
|
|
1262
|
+
return [4, parseBody(output.body, context)];
|
|
1263
1263
|
case 1:
|
|
1264
1264
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1265
1265
|
errorCode = "UnknownError";
|
|
1266
1266
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
1267
|
_b = errorCode;
|
|
1268
1268
|
switch (_b) {
|
|
1269
|
-
case "InternalServerException": return [3
|
|
1270
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1271
|
-
case "ResourceNotFoundException": return [3
|
|
1272
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
1273
|
-
case "ValidationException": return [3
|
|
1274
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
1275
|
-
}
|
|
1276
|
-
return [3
|
|
1269
|
+
case "InternalServerException": return [3, 2];
|
|
1270
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
1271
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1272
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 4];
|
|
1273
|
+
case "ValidationException": return [3, 6];
|
|
1274
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 6];
|
|
1275
|
+
}
|
|
1276
|
+
return [3, 8];
|
|
1277
1277
|
case 2:
|
|
1278
1278
|
_c = [{}];
|
|
1279
|
-
return [4
|
|
1279
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1280
1280
|
case 3:
|
|
1281
1281
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1282
|
-
return [3
|
|
1282
|
+
return [3, 9];
|
|
1283
1283
|
case 4:
|
|
1284
1284
|
_d = [{}];
|
|
1285
|
-
return [4
|
|
1285
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1286
1286
|
case 5:
|
|
1287
1287
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1288
|
-
return [3
|
|
1288
|
+
return [3, 9];
|
|
1289
1289
|
case 6:
|
|
1290
1290
|
_e = [{}];
|
|
1291
|
-
return [4
|
|
1291
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1292
1292
|
case 7:
|
|
1293
1293
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1294
|
-
return [3
|
|
1294
|
+
return [3, 9];
|
|
1295
1295
|
case 8:
|
|
1296
1296
|
parsedBody = parsedOutput.body;
|
|
1297
1297
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1301,7 +1301,7 @@ var deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = function
|
|
|
1301
1301
|
message = response.message || response.Message || errorCode;
|
|
1302
1302
|
response.message = message;
|
|
1303
1303
|
delete response.Message;
|
|
1304
|
-
return [2
|
|
1304
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1305
1305
|
}
|
|
1306
1306
|
});
|
|
1307
1307
|
}); };
|
|
@@ -1311,7 +1311,7 @@ export var deserializeAws_restJson1ListConnectorEntitiesCommand = function (outp
|
|
|
1311
1311
|
switch (_c.label) {
|
|
1312
1312
|
case 0:
|
|
1313
1313
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1314
|
-
return [2
|
|
1314
|
+
return [2, deserializeAws_restJson1ListConnectorEntitiesCommandError(output, context)];
|
|
1315
1315
|
}
|
|
1316
1316
|
contents = {
|
|
1317
1317
|
$metadata: deserializeMetadata(output),
|
|
@@ -1319,13 +1319,13 @@ export var deserializeAws_restJson1ListConnectorEntitiesCommand = function (outp
|
|
|
1319
1319
|
};
|
|
1320
1320
|
_a = __expectNonNull;
|
|
1321
1321
|
_b = __expectObject;
|
|
1322
|
-
return [4
|
|
1322
|
+
return [4, parseBody(output.body, context)];
|
|
1323
1323
|
case 1:
|
|
1324
1324
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1325
1325
|
if (data.connectorEntityMap !== undefined && data.connectorEntityMap !== null) {
|
|
1326
1326
|
contents.connectorEntityMap = deserializeAws_restJson1ConnectorEntityMap(data.connectorEntityMap, context);
|
|
1327
1327
|
}
|
|
1328
|
-
return [2
|
|
1328
|
+
return [2, Promise.resolve(contents)];
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
1331
1331
|
}); };
|
|
@@ -1337,55 +1337,55 @@ var deserializeAws_restJson1ListConnectorEntitiesCommandError = function (output
|
|
|
1337
1337
|
case 0:
|
|
1338
1338
|
_a = [__assign({}, output)];
|
|
1339
1339
|
_h = {};
|
|
1340
|
-
return [4
|
|
1340
|
+
return [4, parseBody(output.body, context)];
|
|
1341
1341
|
case 1:
|
|
1342
1342
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1343
1343
|
errorCode = "UnknownError";
|
|
1344
1344
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
1345
|
_b = errorCode;
|
|
1346
1346
|
switch (_b) {
|
|
1347
|
-
case "ConnectorAuthenticationException": return [3
|
|
1348
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3
|
|
1349
|
-
case "ConnectorServerException": return [3
|
|
1350
|
-
case "com.amazonaws.appflow#ConnectorServerException": return [3
|
|
1351
|
-
case "InternalServerException": return [3
|
|
1352
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1353
|
-
case "ResourceNotFoundException": return [3
|
|
1354
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
1355
|
-
case "ValidationException": return [3
|
|
1356
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
1357
|
-
}
|
|
1358
|
-
return [3
|
|
1347
|
+
case "ConnectorAuthenticationException": return [3, 2];
|
|
1348
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3, 2];
|
|
1349
|
+
case "ConnectorServerException": return [3, 4];
|
|
1350
|
+
case "com.amazonaws.appflow#ConnectorServerException": return [3, 4];
|
|
1351
|
+
case "InternalServerException": return [3, 6];
|
|
1352
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 6];
|
|
1353
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1354
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 8];
|
|
1355
|
+
case "ValidationException": return [3, 10];
|
|
1356
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 10];
|
|
1357
|
+
}
|
|
1358
|
+
return [3, 12];
|
|
1359
1359
|
case 2:
|
|
1360
1360
|
_c = [{}];
|
|
1361
|
-
return [4
|
|
1361
|
+
return [4, deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)];
|
|
1362
1362
|
case 3:
|
|
1363
1363
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1364
|
-
return [3
|
|
1364
|
+
return [3, 13];
|
|
1365
1365
|
case 4:
|
|
1366
1366
|
_d = [{}];
|
|
1367
|
-
return [4
|
|
1367
|
+
return [4, deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)];
|
|
1368
1368
|
case 5:
|
|
1369
1369
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1370
|
-
return [3
|
|
1370
|
+
return [3, 13];
|
|
1371
1371
|
case 6:
|
|
1372
1372
|
_e = [{}];
|
|
1373
|
-
return [4
|
|
1373
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1374
1374
|
case 7:
|
|
1375
1375
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1376
|
-
return [3
|
|
1376
|
+
return [3, 13];
|
|
1377
1377
|
case 8:
|
|
1378
1378
|
_f = [{}];
|
|
1379
|
-
return [4
|
|
1379
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1380
1380
|
case 9:
|
|
1381
1381
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1382
|
-
return [3
|
|
1382
|
+
return [3, 13];
|
|
1383
1383
|
case 10:
|
|
1384
1384
|
_g = [{}];
|
|
1385
|
-
return [4
|
|
1385
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1386
1386
|
case 11:
|
|
1387
1387
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1388
|
-
return [3
|
|
1388
|
+
return [3, 13];
|
|
1389
1389
|
case 12:
|
|
1390
1390
|
parsedBody = parsedOutput.body;
|
|
1391
1391
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1395,7 +1395,7 @@ var deserializeAws_restJson1ListConnectorEntitiesCommandError = function (output
|
|
|
1395
1395
|
message = response.message || response.Message || errorCode;
|
|
1396
1396
|
response.message = message;
|
|
1397
1397
|
delete response.Message;
|
|
1398
|
-
return [2
|
|
1398
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1399
1399
|
}
|
|
1400
1400
|
});
|
|
1401
1401
|
}); };
|
|
@@ -1405,7 +1405,7 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
|
|
|
1405
1405
|
switch (_c.label) {
|
|
1406
1406
|
case 0:
|
|
1407
1407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1408
|
-
return [2
|
|
1408
|
+
return [2, deserializeAws_restJson1ListFlowsCommandError(output, context)];
|
|
1409
1409
|
}
|
|
1410
1410
|
contents = {
|
|
1411
1411
|
$metadata: deserializeMetadata(output),
|
|
@@ -1414,7 +1414,7 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
|
|
|
1414
1414
|
};
|
|
1415
1415
|
_a = __expectNonNull;
|
|
1416
1416
|
_b = __expectObject;
|
|
1417
|
-
return [4
|
|
1417
|
+
return [4, parseBody(output.body, context)];
|
|
1418
1418
|
case 1:
|
|
1419
1419
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1420
1420
|
if (data.flows !== undefined && data.flows !== null) {
|
|
@@ -1423,7 +1423,7 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
|
|
|
1423
1423
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1424
1424
|
contents.nextToken = __expectString(data.nextToken);
|
|
1425
1425
|
}
|
|
1426
|
-
return [2
|
|
1426
|
+
return [2, Promise.resolve(contents)];
|
|
1427
1427
|
}
|
|
1428
1428
|
});
|
|
1429
1429
|
}); };
|
|
@@ -1435,31 +1435,31 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
|
|
|
1435
1435
|
case 0:
|
|
1436
1436
|
_a = [__assign({}, output)];
|
|
1437
1437
|
_e = {};
|
|
1438
|
-
return [4
|
|
1438
|
+
return [4, parseBody(output.body, context)];
|
|
1439
1439
|
case 1:
|
|
1440
1440
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1441
1441
|
errorCode = "UnknownError";
|
|
1442
1442
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1443
|
_b = errorCode;
|
|
1444
1444
|
switch (_b) {
|
|
1445
|
-
case "InternalServerException": return [3
|
|
1446
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1447
|
-
case "ValidationException": return [3
|
|
1448
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
1445
|
+
case "InternalServerException": return [3, 2];
|
|
1446
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
1447
|
+
case "ValidationException": return [3, 4];
|
|
1448
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 4];
|
|
1449
1449
|
}
|
|
1450
|
-
return [3
|
|
1450
|
+
return [3, 6];
|
|
1451
1451
|
case 2:
|
|
1452
1452
|
_c = [{}];
|
|
1453
|
-
return [4
|
|
1453
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1454
1454
|
case 3:
|
|
1455
1455
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1456
|
-
return [3
|
|
1456
|
+
return [3, 7];
|
|
1457
1457
|
case 4:
|
|
1458
1458
|
_d = [{}];
|
|
1459
|
-
return [4
|
|
1459
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1460
1460
|
case 5:
|
|
1461
1461
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1462
|
-
return [3
|
|
1462
|
+
return [3, 7];
|
|
1463
1463
|
case 6:
|
|
1464
1464
|
parsedBody = parsedOutput.body;
|
|
1465
1465
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1469,7 +1469,7 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
|
|
|
1469
1469
|
message = response.message || response.Message || errorCode;
|
|
1470
1470
|
response.message = message;
|
|
1471
1471
|
delete response.Message;
|
|
1472
|
-
return [2
|
|
1472
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1473
1473
|
}
|
|
1474
1474
|
});
|
|
1475
1475
|
}); };
|
|
@@ -1479,7 +1479,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1479
1479
|
switch (_c.label) {
|
|
1480
1480
|
case 0:
|
|
1481
1481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1482
|
-
return [2
|
|
1482
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1483
1483
|
}
|
|
1484
1484
|
contents = {
|
|
1485
1485
|
$metadata: deserializeMetadata(output),
|
|
@@ -1487,13 +1487,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1487
1487
|
};
|
|
1488
1488
|
_a = __expectNonNull;
|
|
1489
1489
|
_b = __expectObject;
|
|
1490
|
-
return [4
|
|
1490
|
+
return [4, parseBody(output.body, context)];
|
|
1491
1491
|
case 1:
|
|
1492
1492
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1493
1493
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1494
1494
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1495
1495
|
}
|
|
1496
|
-
return [2
|
|
1496
|
+
return [2, Promise.resolve(contents)];
|
|
1497
1497
|
}
|
|
1498
1498
|
});
|
|
1499
1499
|
}); };
|
|
@@ -1505,39 +1505,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1505
1505
|
case 0:
|
|
1506
1506
|
_a = [__assign({}, output)];
|
|
1507
1507
|
_f = {};
|
|
1508
|
-
return [4
|
|
1508
|
+
return [4, parseBody(output.body, context)];
|
|
1509
1509
|
case 1:
|
|
1510
1510
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1511
1511
|
errorCode = "UnknownError";
|
|
1512
1512
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
1513
|
_b = errorCode;
|
|
1514
1514
|
switch (_b) {
|
|
1515
|
-
case "InternalServerException": return [3
|
|
1516
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1517
|
-
case "ResourceNotFoundException": return [3
|
|
1518
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
1519
|
-
case "ValidationException": return [3
|
|
1520
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
1521
|
-
}
|
|
1522
|
-
return [3
|
|
1515
|
+
case "InternalServerException": return [3, 2];
|
|
1516
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
1517
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1518
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 4];
|
|
1519
|
+
case "ValidationException": return [3, 6];
|
|
1520
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 6];
|
|
1521
|
+
}
|
|
1522
|
+
return [3, 8];
|
|
1523
1523
|
case 2:
|
|
1524
1524
|
_c = [{}];
|
|
1525
|
-
return [4
|
|
1525
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1526
1526
|
case 3:
|
|
1527
1527
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1528
|
-
return [3
|
|
1528
|
+
return [3, 9];
|
|
1529
1529
|
case 4:
|
|
1530
1530
|
_d = [{}];
|
|
1531
|
-
return [4
|
|
1531
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1532
1532
|
case 5:
|
|
1533
1533
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1534
|
-
return [3
|
|
1534
|
+
return [3, 9];
|
|
1535
1535
|
case 6:
|
|
1536
1536
|
_e = [{}];
|
|
1537
|
-
return [4
|
|
1537
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1538
1538
|
case 7:
|
|
1539
1539
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1540
|
-
return [3
|
|
1540
|
+
return [3, 9];
|
|
1541
1541
|
case 8:
|
|
1542
1542
|
parsedBody = parsedOutput.body;
|
|
1543
1543
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1547,7 +1547,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1547
1547
|
message = response.message || response.Message || errorCode;
|
|
1548
1548
|
response.message = message;
|
|
1549
1549
|
delete response.Message;
|
|
1550
|
-
return [2
|
|
1550
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1551
1551
|
}
|
|
1552
1552
|
});
|
|
1553
1553
|
}); };
|
|
@@ -1557,7 +1557,7 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
|
|
|
1557
1557
|
switch (_c.label) {
|
|
1558
1558
|
case 0:
|
|
1559
1559
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1560
|
-
return [2
|
|
1560
|
+
return [2, deserializeAws_restJson1StartFlowCommandError(output, context)];
|
|
1561
1561
|
}
|
|
1562
1562
|
contents = {
|
|
1563
1563
|
$metadata: deserializeMetadata(output),
|
|
@@ -1567,7 +1567,7 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
|
|
|
1567
1567
|
};
|
|
1568
1568
|
_a = __expectNonNull;
|
|
1569
1569
|
_b = __expectObject;
|
|
1570
|
-
return [4
|
|
1570
|
+
return [4, parseBody(output.body, context)];
|
|
1571
1571
|
case 1:
|
|
1572
1572
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1573
1573
|
if (data.executionId !== undefined && data.executionId !== null) {
|
|
@@ -1579,7 +1579,7 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
|
|
|
1579
1579
|
if (data.flowStatus !== undefined && data.flowStatus !== null) {
|
|
1580
1580
|
contents.flowStatus = __expectString(data.flowStatus);
|
|
1581
1581
|
}
|
|
1582
|
-
return [2
|
|
1582
|
+
return [2, Promise.resolve(contents)];
|
|
1583
1583
|
}
|
|
1584
1584
|
});
|
|
1585
1585
|
}); };
|
|
@@ -1591,47 +1591,47 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
|
|
|
1591
1591
|
case 0:
|
|
1592
1592
|
_a = [__assign({}, output)];
|
|
1593
1593
|
_g = {};
|
|
1594
|
-
return [4
|
|
1594
|
+
return [4, parseBody(output.body, context)];
|
|
1595
1595
|
case 1:
|
|
1596
1596
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1597
1597
|
errorCode = "UnknownError";
|
|
1598
1598
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
1599
|
_b = errorCode;
|
|
1600
1600
|
switch (_b) {
|
|
1601
|
-
case "ConflictException": return [3
|
|
1602
|
-
case "com.amazonaws.appflow#ConflictException": return [3
|
|
1603
|
-
case "InternalServerException": return [3
|
|
1604
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1605
|
-
case "ResourceNotFoundException": return [3
|
|
1606
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
1607
|
-
case "ServiceQuotaExceededException": return [3
|
|
1608
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3
|
|
1609
|
-
}
|
|
1610
|
-
return [3
|
|
1601
|
+
case "ConflictException": return [3, 2];
|
|
1602
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
1603
|
+
case "InternalServerException": return [3, 4];
|
|
1604
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 4];
|
|
1605
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1606
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 6];
|
|
1607
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
1608
|
+
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3, 8];
|
|
1609
|
+
}
|
|
1610
|
+
return [3, 10];
|
|
1611
1611
|
case 2:
|
|
1612
1612
|
_c = [{}];
|
|
1613
|
-
return [4
|
|
1613
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1614
1614
|
case 3:
|
|
1615
1615
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1616
|
-
return [3
|
|
1616
|
+
return [3, 11];
|
|
1617
1617
|
case 4:
|
|
1618
1618
|
_d = [{}];
|
|
1619
|
-
return [4
|
|
1619
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1620
1620
|
case 5:
|
|
1621
1621
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1622
|
-
return [3
|
|
1622
|
+
return [3, 11];
|
|
1623
1623
|
case 6:
|
|
1624
1624
|
_e = [{}];
|
|
1625
|
-
return [4
|
|
1625
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1626
1626
|
case 7:
|
|
1627
1627
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1628
|
-
return [3
|
|
1628
|
+
return [3, 11];
|
|
1629
1629
|
case 8:
|
|
1630
1630
|
_f = [{}];
|
|
1631
|
-
return [4
|
|
1631
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1632
1632
|
case 9:
|
|
1633
1633
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1634
|
-
return [3
|
|
1634
|
+
return [3, 11];
|
|
1635
1635
|
case 10:
|
|
1636
1636
|
parsedBody = parsedOutput.body;
|
|
1637
1637
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1641,7 +1641,7 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
|
|
|
1641
1641
|
message = response.message || response.Message || errorCode;
|
|
1642
1642
|
response.message = message;
|
|
1643
1643
|
delete response.Message;
|
|
1644
|
-
return [2
|
|
1644
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1645
1645
|
}
|
|
1646
1646
|
});
|
|
1647
1647
|
}); };
|
|
@@ -1651,7 +1651,7 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
|
|
|
1651
1651
|
switch (_c.label) {
|
|
1652
1652
|
case 0:
|
|
1653
1653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1654
|
-
return [2
|
|
1654
|
+
return [2, deserializeAws_restJson1StopFlowCommandError(output, context)];
|
|
1655
1655
|
}
|
|
1656
1656
|
contents = {
|
|
1657
1657
|
$metadata: deserializeMetadata(output),
|
|
@@ -1660,7 +1660,7 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
|
|
|
1660
1660
|
};
|
|
1661
1661
|
_a = __expectNonNull;
|
|
1662
1662
|
_b = __expectObject;
|
|
1663
|
-
return [4
|
|
1663
|
+
return [4, parseBody(output.body, context)];
|
|
1664
1664
|
case 1:
|
|
1665
1665
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1666
1666
|
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
@@ -1669,7 +1669,7 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
|
|
|
1669
1669
|
if (data.flowStatus !== undefined && data.flowStatus !== null) {
|
|
1670
1670
|
contents.flowStatus = __expectString(data.flowStatus);
|
|
1671
1671
|
}
|
|
1672
|
-
return [2
|
|
1672
|
+
return [2, Promise.resolve(contents)];
|
|
1673
1673
|
}
|
|
1674
1674
|
});
|
|
1675
1675
|
}); };
|
|
@@ -1681,47 +1681,47 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
|
|
|
1681
1681
|
case 0:
|
|
1682
1682
|
_a = [__assign({}, output)];
|
|
1683
1683
|
_g = {};
|
|
1684
|
-
return [4
|
|
1684
|
+
return [4, parseBody(output.body, context)];
|
|
1685
1685
|
case 1:
|
|
1686
1686
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1687
1687
|
errorCode = "UnknownError";
|
|
1688
1688
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1689
1689
|
_b = errorCode;
|
|
1690
1690
|
switch (_b) {
|
|
1691
|
-
case "ConflictException": return [3
|
|
1692
|
-
case "com.amazonaws.appflow#ConflictException": return [3
|
|
1693
|
-
case "InternalServerException": return [3
|
|
1694
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1695
|
-
case "ResourceNotFoundException": return [3
|
|
1696
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
1697
|
-
case "UnsupportedOperationException": return [3
|
|
1698
|
-
case "com.amazonaws.appflow#UnsupportedOperationException": return [3
|
|
1699
|
-
}
|
|
1700
|
-
return [3
|
|
1691
|
+
case "ConflictException": return [3, 2];
|
|
1692
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
1693
|
+
case "InternalServerException": return [3, 4];
|
|
1694
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 4];
|
|
1695
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1696
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 6];
|
|
1697
|
+
case "UnsupportedOperationException": return [3, 8];
|
|
1698
|
+
case "com.amazonaws.appflow#UnsupportedOperationException": return [3, 8];
|
|
1699
|
+
}
|
|
1700
|
+
return [3, 10];
|
|
1701
1701
|
case 2:
|
|
1702
1702
|
_c = [{}];
|
|
1703
|
-
return [4
|
|
1703
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1704
1704
|
case 3:
|
|
1705
1705
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1706
|
-
return [3
|
|
1706
|
+
return [3, 11];
|
|
1707
1707
|
case 4:
|
|
1708
1708
|
_d = [{}];
|
|
1709
|
-
return [4
|
|
1709
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1710
1710
|
case 5:
|
|
1711
1711
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1712
|
-
return [3
|
|
1712
|
+
return [3, 11];
|
|
1713
1713
|
case 6:
|
|
1714
1714
|
_e = [{}];
|
|
1715
|
-
return [4
|
|
1715
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1716
1716
|
case 7:
|
|
1717
1717
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1718
|
-
return [3
|
|
1718
|
+
return [3, 11];
|
|
1719
1719
|
case 8:
|
|
1720
1720
|
_f = [{}];
|
|
1721
|
-
return [4
|
|
1721
|
+
return [4, deserializeAws_restJson1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1722
1722
|
case 9:
|
|
1723
1723
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1724
|
-
return [3
|
|
1724
|
+
return [3, 11];
|
|
1725
1725
|
case 10:
|
|
1726
1726
|
parsedBody = parsedOutput.body;
|
|
1727
1727
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1731,7 +1731,7 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
|
|
|
1731
1731
|
message = response.message || response.Message || errorCode;
|
|
1732
1732
|
response.message = message;
|
|
1733
1733
|
delete response.Message;
|
|
1734
|
-
return [2
|
|
1734
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1735
1735
|
}
|
|
1736
1736
|
});
|
|
1737
1737
|
}); };
|
|
@@ -1741,15 +1741,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1741
1741
|
switch (_a.label) {
|
|
1742
1742
|
case 0:
|
|
1743
1743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1744
|
-
return [2
|
|
1744
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1745
1745
|
}
|
|
1746
1746
|
contents = {
|
|
1747
1747
|
$metadata: deserializeMetadata(output),
|
|
1748
1748
|
};
|
|
1749
|
-
return [4
|
|
1749
|
+
return [4, collectBody(output.body, context)];
|
|
1750
1750
|
case 1:
|
|
1751
1751
|
_a.sent();
|
|
1752
|
-
return [2
|
|
1752
|
+
return [2, Promise.resolve(contents)];
|
|
1753
1753
|
}
|
|
1754
1754
|
});
|
|
1755
1755
|
}); };
|
|
@@ -1761,39 +1761,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1761
1761
|
case 0:
|
|
1762
1762
|
_a = [__assign({}, output)];
|
|
1763
1763
|
_f = {};
|
|
1764
|
-
return [4
|
|
1764
|
+
return [4, parseBody(output.body, context)];
|
|
1765
1765
|
case 1:
|
|
1766
1766
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1767
1767
|
errorCode = "UnknownError";
|
|
1768
1768
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
1769
|
_b = errorCode;
|
|
1770
1770
|
switch (_b) {
|
|
1771
|
-
case "InternalServerException": return [3
|
|
1772
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1773
|
-
case "ResourceNotFoundException": return [3
|
|
1774
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
1775
|
-
case "ValidationException": return [3
|
|
1776
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
1777
|
-
}
|
|
1778
|
-
return [3
|
|
1771
|
+
case "InternalServerException": return [3, 2];
|
|
1772
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
1773
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1774
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 4];
|
|
1775
|
+
case "ValidationException": return [3, 6];
|
|
1776
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 6];
|
|
1777
|
+
}
|
|
1778
|
+
return [3, 8];
|
|
1779
1779
|
case 2:
|
|
1780
1780
|
_c = [{}];
|
|
1781
|
-
return [4
|
|
1781
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1782
1782
|
case 3:
|
|
1783
1783
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1784
|
-
return [3
|
|
1784
|
+
return [3, 9];
|
|
1785
1785
|
case 4:
|
|
1786
1786
|
_d = [{}];
|
|
1787
|
-
return [4
|
|
1787
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1788
1788
|
case 5:
|
|
1789
1789
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1790
|
-
return [3
|
|
1790
|
+
return [3, 9];
|
|
1791
1791
|
case 6:
|
|
1792
1792
|
_e = [{}];
|
|
1793
|
-
return [4
|
|
1793
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1794
1794
|
case 7:
|
|
1795
1795
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1796
|
-
return [3
|
|
1796
|
+
return [3, 9];
|
|
1797
1797
|
case 8:
|
|
1798
1798
|
parsedBody = parsedOutput.body;
|
|
1799
1799
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1803,7 +1803,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1803
1803
|
message = response.message || response.Message || errorCode;
|
|
1804
1804
|
response.message = message;
|
|
1805
1805
|
delete response.Message;
|
|
1806
|
-
return [2
|
|
1806
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1807
1807
|
}
|
|
1808
1808
|
});
|
|
1809
1809
|
}); };
|
|
@@ -1813,15 +1813,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1813
1813
|
switch (_a.label) {
|
|
1814
1814
|
case 0:
|
|
1815
1815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1816
|
-
return [2
|
|
1816
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1817
1817
|
}
|
|
1818
1818
|
contents = {
|
|
1819
1819
|
$metadata: deserializeMetadata(output),
|
|
1820
1820
|
};
|
|
1821
|
-
return [4
|
|
1821
|
+
return [4, collectBody(output.body, context)];
|
|
1822
1822
|
case 1:
|
|
1823
1823
|
_a.sent();
|
|
1824
|
-
return [2
|
|
1824
|
+
return [2, Promise.resolve(contents)];
|
|
1825
1825
|
}
|
|
1826
1826
|
});
|
|
1827
1827
|
}); };
|
|
@@ -1833,39 +1833,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1833
1833
|
case 0:
|
|
1834
1834
|
_a = [__assign({}, output)];
|
|
1835
1835
|
_f = {};
|
|
1836
|
-
return [4
|
|
1836
|
+
return [4, parseBody(output.body, context)];
|
|
1837
1837
|
case 1:
|
|
1838
1838
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1839
1839
|
errorCode = "UnknownError";
|
|
1840
1840
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
1841
|
_b = errorCode;
|
|
1842
1842
|
switch (_b) {
|
|
1843
|
-
case "InternalServerException": return [3
|
|
1844
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1845
|
-
case "ResourceNotFoundException": return [3
|
|
1846
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
1847
|
-
case "ValidationException": return [3
|
|
1848
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
1849
|
-
}
|
|
1850
|
-
return [3
|
|
1843
|
+
case "InternalServerException": return [3, 2];
|
|
1844
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
1845
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1846
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 4];
|
|
1847
|
+
case "ValidationException": return [3, 6];
|
|
1848
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 6];
|
|
1849
|
+
}
|
|
1850
|
+
return [3, 8];
|
|
1851
1851
|
case 2:
|
|
1852
1852
|
_c = [{}];
|
|
1853
|
-
return [4
|
|
1853
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1854
1854
|
case 3:
|
|
1855
1855
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1856
|
-
return [3
|
|
1856
|
+
return [3, 9];
|
|
1857
1857
|
case 4:
|
|
1858
1858
|
_d = [{}];
|
|
1859
|
-
return [4
|
|
1859
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1860
1860
|
case 5:
|
|
1861
1861
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1862
|
-
return [3
|
|
1862
|
+
return [3, 9];
|
|
1863
1863
|
case 6:
|
|
1864
1864
|
_e = [{}];
|
|
1865
|
-
return [4
|
|
1865
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1866
1866
|
case 7:
|
|
1867
1867
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1868
|
-
return [3
|
|
1868
|
+
return [3, 9];
|
|
1869
1869
|
case 8:
|
|
1870
1870
|
parsedBody = parsedOutput.body;
|
|
1871
1871
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1875,7 +1875,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1875
1875
|
message = response.message || response.Message || errorCode;
|
|
1876
1876
|
response.message = message;
|
|
1877
1877
|
delete response.Message;
|
|
1878
|
-
return [2
|
|
1878
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1879
1879
|
}
|
|
1880
1880
|
});
|
|
1881
1881
|
}); };
|
|
@@ -1885,7 +1885,7 @@ export var deserializeAws_restJson1UpdateConnectorProfileCommand = function (out
|
|
|
1885
1885
|
switch (_c.label) {
|
|
1886
1886
|
case 0:
|
|
1887
1887
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1888
|
-
return [2
|
|
1888
|
+
return [2, deserializeAws_restJson1UpdateConnectorProfileCommandError(output, context)];
|
|
1889
1889
|
}
|
|
1890
1890
|
contents = {
|
|
1891
1891
|
$metadata: deserializeMetadata(output),
|
|
@@ -1893,13 +1893,13 @@ export var deserializeAws_restJson1UpdateConnectorProfileCommand = function (out
|
|
|
1893
1893
|
};
|
|
1894
1894
|
_a = __expectNonNull;
|
|
1895
1895
|
_b = __expectObject;
|
|
1896
|
-
return [4
|
|
1896
|
+
return [4, parseBody(output.body, context)];
|
|
1897
1897
|
case 1:
|
|
1898
1898
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1899
1899
|
if (data.connectorProfileArn !== undefined && data.connectorProfileArn !== null) {
|
|
1900
1900
|
contents.connectorProfileArn = __expectString(data.connectorProfileArn);
|
|
1901
1901
|
}
|
|
1902
|
-
return [2
|
|
1902
|
+
return [2, Promise.resolve(contents)];
|
|
1903
1903
|
}
|
|
1904
1904
|
});
|
|
1905
1905
|
}); };
|
|
@@ -1911,55 +1911,55 @@ var deserializeAws_restJson1UpdateConnectorProfileCommandError = function (outpu
|
|
|
1911
1911
|
case 0:
|
|
1912
1912
|
_a = [__assign({}, output)];
|
|
1913
1913
|
_h = {};
|
|
1914
|
-
return [4
|
|
1914
|
+
return [4, parseBody(output.body, context)];
|
|
1915
1915
|
case 1:
|
|
1916
1916
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1917
1917
|
errorCode = "UnknownError";
|
|
1918
1918
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
1919
|
_b = errorCode;
|
|
1920
1920
|
switch (_b) {
|
|
1921
|
-
case "ConflictException": return [3
|
|
1922
|
-
case "com.amazonaws.appflow#ConflictException": return [3
|
|
1923
|
-
case "ConnectorAuthenticationException": return [3
|
|
1924
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3
|
|
1925
|
-
case "InternalServerException": return [3
|
|
1926
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
1927
|
-
case "ResourceNotFoundException": return [3
|
|
1928
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
1929
|
-
case "ValidationException": return [3
|
|
1930
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
1931
|
-
}
|
|
1932
|
-
return [3
|
|
1921
|
+
case "ConflictException": return [3, 2];
|
|
1922
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
1923
|
+
case "ConnectorAuthenticationException": return [3, 4];
|
|
1924
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3, 4];
|
|
1925
|
+
case "InternalServerException": return [3, 6];
|
|
1926
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 6];
|
|
1927
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1928
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 8];
|
|
1929
|
+
case "ValidationException": return [3, 10];
|
|
1930
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 10];
|
|
1931
|
+
}
|
|
1932
|
+
return [3, 12];
|
|
1933
1933
|
case 2:
|
|
1934
1934
|
_c = [{}];
|
|
1935
|
-
return [4
|
|
1935
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1936
1936
|
case 3:
|
|
1937
1937
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1938
|
-
return [3
|
|
1938
|
+
return [3, 13];
|
|
1939
1939
|
case 4:
|
|
1940
1940
|
_d = [{}];
|
|
1941
|
-
return [4
|
|
1941
|
+
return [4, deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)];
|
|
1942
1942
|
case 5:
|
|
1943
1943
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1944
|
-
return [3
|
|
1944
|
+
return [3, 13];
|
|
1945
1945
|
case 6:
|
|
1946
1946
|
_e = [{}];
|
|
1947
|
-
return [4
|
|
1947
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1948
1948
|
case 7:
|
|
1949
1949
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1950
|
-
return [3
|
|
1950
|
+
return [3, 13];
|
|
1951
1951
|
case 8:
|
|
1952
1952
|
_f = [{}];
|
|
1953
|
-
return [4
|
|
1953
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1954
1954
|
case 9:
|
|
1955
1955
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1956
|
-
return [3
|
|
1956
|
+
return [3, 13];
|
|
1957
1957
|
case 10:
|
|
1958
1958
|
_g = [{}];
|
|
1959
|
-
return [4
|
|
1959
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1960
1960
|
case 11:
|
|
1961
1961
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1962
|
-
return [3
|
|
1962
|
+
return [3, 13];
|
|
1963
1963
|
case 12:
|
|
1964
1964
|
parsedBody = parsedOutput.body;
|
|
1965
1965
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1969,7 +1969,7 @@ var deserializeAws_restJson1UpdateConnectorProfileCommandError = function (outpu
|
|
|
1969
1969
|
message = response.message || response.Message || errorCode;
|
|
1970
1970
|
response.message = message;
|
|
1971
1971
|
delete response.Message;
|
|
1972
|
-
return [2
|
|
1972
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1973
1973
|
}
|
|
1974
1974
|
});
|
|
1975
1975
|
}); };
|
|
@@ -1979,7 +1979,7 @@ export var deserializeAws_restJson1UpdateFlowCommand = function (output, context
|
|
|
1979
1979
|
switch (_c.label) {
|
|
1980
1980
|
case 0:
|
|
1981
1981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1982
|
-
return [2
|
|
1982
|
+
return [2, deserializeAws_restJson1UpdateFlowCommandError(output, context)];
|
|
1983
1983
|
}
|
|
1984
1984
|
contents = {
|
|
1985
1985
|
$metadata: deserializeMetadata(output),
|
|
@@ -1987,13 +1987,13 @@ export var deserializeAws_restJson1UpdateFlowCommand = function (output, context
|
|
|
1987
1987
|
};
|
|
1988
1988
|
_a = __expectNonNull;
|
|
1989
1989
|
_b = __expectObject;
|
|
1990
|
-
return [4
|
|
1990
|
+
return [4, parseBody(output.body, context)];
|
|
1991
1991
|
case 1:
|
|
1992
1992
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1993
1993
|
if (data.flowStatus !== undefined && data.flowStatus !== null) {
|
|
1994
1994
|
contents.flowStatus = __expectString(data.flowStatus);
|
|
1995
1995
|
}
|
|
1996
|
-
return [2
|
|
1996
|
+
return [2, Promise.resolve(contents)];
|
|
1997
1997
|
}
|
|
1998
1998
|
});
|
|
1999
1999
|
}); };
|
|
@@ -2005,71 +2005,71 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
|
|
|
2005
2005
|
case 0:
|
|
2006
2006
|
_a = [__assign({}, output)];
|
|
2007
2007
|
_k = {};
|
|
2008
|
-
return [4
|
|
2008
|
+
return [4, parseBody(output.body, context)];
|
|
2009
2009
|
case 1:
|
|
2010
2010
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
2011
2011
|
errorCode = "UnknownError";
|
|
2012
2012
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
2013
|
_b = errorCode;
|
|
2014
2014
|
switch (_b) {
|
|
2015
|
-
case "ConflictException": return [3
|
|
2016
|
-
case "com.amazonaws.appflow#ConflictException": return [3
|
|
2017
|
-
case "ConnectorAuthenticationException": return [3
|
|
2018
|
-
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3
|
|
2019
|
-
case "ConnectorServerException": return [3
|
|
2020
|
-
case "com.amazonaws.appflow#ConnectorServerException": return [3
|
|
2021
|
-
case "InternalServerException": return [3
|
|
2022
|
-
case "com.amazonaws.appflow#InternalServerException": return [3
|
|
2023
|
-
case "ResourceNotFoundException": return [3
|
|
2024
|
-
case "com.amazonaws.appflow#ResourceNotFoundException": return [3
|
|
2025
|
-
case "ServiceQuotaExceededException": return [3
|
|
2026
|
-
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3
|
|
2027
|
-
case "ValidationException": return [3
|
|
2028
|
-
case "com.amazonaws.appflow#ValidationException": return [3
|
|
2029
|
-
}
|
|
2030
|
-
return [3
|
|
2015
|
+
case "ConflictException": return [3, 2];
|
|
2016
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
2017
|
+
case "ConnectorAuthenticationException": return [3, 4];
|
|
2018
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3, 4];
|
|
2019
|
+
case "ConnectorServerException": return [3, 6];
|
|
2020
|
+
case "com.amazonaws.appflow#ConnectorServerException": return [3, 6];
|
|
2021
|
+
case "InternalServerException": return [3, 8];
|
|
2022
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 8];
|
|
2023
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2024
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 10];
|
|
2025
|
+
case "ServiceQuotaExceededException": return [3, 12];
|
|
2026
|
+
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3, 12];
|
|
2027
|
+
case "ValidationException": return [3, 14];
|
|
2028
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 14];
|
|
2029
|
+
}
|
|
2030
|
+
return [3, 16];
|
|
2031
2031
|
case 2:
|
|
2032
2032
|
_c = [{}];
|
|
2033
|
-
return [4
|
|
2033
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2034
2034
|
case 3:
|
|
2035
2035
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2036
|
-
return [3
|
|
2036
|
+
return [3, 17];
|
|
2037
2037
|
case 4:
|
|
2038
2038
|
_d = [{}];
|
|
2039
|
-
return [4
|
|
2039
|
+
return [4, deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)];
|
|
2040
2040
|
case 5:
|
|
2041
2041
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2042
|
-
return [3
|
|
2042
|
+
return [3, 17];
|
|
2043
2043
|
case 6:
|
|
2044
2044
|
_e = [{}];
|
|
2045
|
-
return [4
|
|
2045
|
+
return [4, deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)];
|
|
2046
2046
|
case 7:
|
|
2047
2047
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2048
|
-
return [3
|
|
2048
|
+
return [3, 17];
|
|
2049
2049
|
case 8:
|
|
2050
2050
|
_f = [{}];
|
|
2051
|
-
return [4
|
|
2051
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2052
2052
|
case 9:
|
|
2053
2053
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2054
|
-
return [3
|
|
2054
|
+
return [3, 17];
|
|
2055
2055
|
case 10:
|
|
2056
2056
|
_g = [{}];
|
|
2057
|
-
return [4
|
|
2057
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2058
2058
|
case 11:
|
|
2059
2059
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2060
|
-
return [3
|
|
2060
|
+
return [3, 17];
|
|
2061
2061
|
case 12:
|
|
2062
2062
|
_h = [{}];
|
|
2063
|
-
return [4
|
|
2063
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2064
2064
|
case 13:
|
|
2065
2065
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2066
|
-
return [3
|
|
2066
|
+
return [3, 17];
|
|
2067
2067
|
case 14:
|
|
2068
2068
|
_j = [{}];
|
|
2069
|
-
return [4
|
|
2069
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2070
2070
|
case 15:
|
|
2071
2071
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2072
|
-
return [3
|
|
2072
|
+
return [3, 17];
|
|
2073
2073
|
case 16:
|
|
2074
2074
|
parsedBody = parsedOutput.body;
|
|
2075
2075
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2079,7 +2079,7 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
|
|
|
2079
2079
|
message = response.message || response.Message || errorCode;
|
|
2080
2080
|
response.message = message;
|
|
2081
2081
|
delete response.Message;
|
|
2082
|
-
return [2
|
|
2082
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2083
2083
|
}
|
|
2084
2084
|
});
|
|
2085
2085
|
}); };
|
|
@@ -2096,7 +2096,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2096
2096
|
if (data.message !== undefined && data.message !== null) {
|
|
2097
2097
|
contents.message = __expectString(data.message);
|
|
2098
2098
|
}
|
|
2099
|
-
return [2
|
|
2099
|
+
return [2, contents];
|
|
2100
2100
|
});
|
|
2101
2101
|
}); };
|
|
2102
2102
|
var deserializeAws_restJson1ConnectorAuthenticationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2112,7 +2112,7 @@ var deserializeAws_restJson1ConnectorAuthenticationExceptionResponse = function
|
|
|
2112
2112
|
if (data.message !== undefined && data.message !== null) {
|
|
2113
2113
|
contents.message = __expectString(data.message);
|
|
2114
2114
|
}
|
|
2115
|
-
return [2
|
|
2115
|
+
return [2, contents];
|
|
2116
2116
|
});
|
|
2117
2117
|
}); };
|
|
2118
2118
|
var deserializeAws_restJson1ConnectorServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2128,7 +2128,7 @@ var deserializeAws_restJson1ConnectorServerExceptionResponse = function (parsedO
|
|
|
2128
2128
|
if (data.message !== undefined && data.message !== null) {
|
|
2129
2129
|
contents.message = __expectString(data.message);
|
|
2130
2130
|
}
|
|
2131
|
-
return [2
|
|
2131
|
+
return [2, contents];
|
|
2132
2132
|
});
|
|
2133
2133
|
}); };
|
|
2134
2134
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2144,7 +2144,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
2144
2144
|
if (data.message !== undefined && data.message !== null) {
|
|
2145
2145
|
contents.message = __expectString(data.message);
|
|
2146
2146
|
}
|
|
2147
|
-
return [2
|
|
2147
|
+
return [2, contents];
|
|
2148
2148
|
});
|
|
2149
2149
|
}); };
|
|
2150
2150
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2160,7 +2160,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2160
2160
|
if (data.message !== undefined && data.message !== null) {
|
|
2161
2161
|
contents.message = __expectString(data.message);
|
|
2162
2162
|
}
|
|
2163
|
-
return [2
|
|
2163
|
+
return [2, contents];
|
|
2164
2164
|
});
|
|
2165
2165
|
}); };
|
|
2166
2166
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2176,7 +2176,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2176
2176
|
if (data.message !== undefined && data.message !== null) {
|
|
2177
2177
|
contents.message = __expectString(data.message);
|
|
2178
2178
|
}
|
|
2179
|
-
return [2
|
|
2179
|
+
return [2, contents];
|
|
2180
2180
|
});
|
|
2181
2181
|
}); };
|
|
2182
2182
|
var deserializeAws_restJson1UnsupportedOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2192,7 +2192,7 @@ var deserializeAws_restJson1UnsupportedOperationExceptionResponse = function (pa
|
|
|
2192
2192
|
if (data.message !== undefined && data.message !== null) {
|
|
2193
2193
|
contents.message = __expectString(data.message);
|
|
2194
2194
|
}
|
|
2195
|
-
return [2
|
|
2195
|
+
return [2, contents];
|
|
2196
2196
|
});
|
|
2197
2197
|
}); };
|
|
2198
2198
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2208,7 +2208,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
2208
2208
|
if (data.message !== undefined && data.message !== null) {
|
|
2209
2209
|
contents.message = __expectString(data.message);
|
|
2210
2210
|
}
|
|
2211
|
-
return [2
|
|
2211
|
+
return [2, contents];
|
|
2212
2212
|
});
|
|
2213
2213
|
}); };
|
|
2214
2214
|
var serializeAws_restJson1AggregationConfig = function (input, context) {
|
|
@@ -3915,7 +3915,6 @@ var deserializeMetadata = function (output) {
|
|
|
3915
3915
|
cfId: output.headers["x-amz-cf-id"],
|
|
3916
3916
|
});
|
|
3917
3917
|
};
|
|
3918
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3919
3918
|
var collectBody = function (streamBody, context) {
|
|
3920
3919
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3921
3920
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3923,7 +3922,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3923
3922
|
}
|
|
3924
3923
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3925
3924
|
};
|
|
3926
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3927
3925
|
var collectBodyString = function (streamBody, context) {
|
|
3928
3926
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3929
3927
|
};
|
|
@@ -3942,9 +3940,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3942
3940
|
return {};
|
|
3943
3941
|
});
|
|
3944
3942
|
};
|
|
3945
|
-
/**
|
|
3946
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3947
|
-
*/
|
|
3948
3943
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3949
3944
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3950
3945
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -3969,4 +3964,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3969
3964
|
}
|
|
3970
3965
|
return "";
|
|
3971
3966
|
};
|
|
3972
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|