@aws-sdk/client-appflow 3.48.0 → 3.52.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 +38 -0
- package/dist-cjs/Appflow.js +60 -0
- package/dist-cjs/commands/DescribeConnectorCommand.js +36 -0
- package/dist-cjs/commands/ListConnectorsCommand.js +36 -0
- package/dist-cjs/commands/RegisterConnectorCommand.js +36 -0
- package/dist-cjs/commands/UnregisterConnectorCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +239 -16
- package/dist-cjs/pagination/DescribeConnectorsPaginator.js +1 -0
- package/dist-cjs/pagination/ListConnectorsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +986 -1
- package/dist-es/Appflow.js +60 -0
- package/dist-es/commands/DescribeConnectorCommand.js +39 -0
- package/dist-es/commands/ListConnectorsCommand.js +39 -0
- package/dist-es/commands/RegisterConnectorCommand.js +39 -0
- package/dist-es/commands/UnregisterConnectorCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +168 -15
- package/dist-es/pagination/DescribeConnectorsPaginator.js +1 -0
- package/dist-es/pagination/ListConnectorsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +1032 -45
- package/dist-types/Appflow.d.ts +38 -4
- package/dist-types/AppflowClient.d.ts +6 -2
- package/dist-types/commands/CreateConnectorProfileCommand.d.ts +4 -4
- package/dist-types/commands/DescribeConnectorCommand.d.ts +37 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +37 -0
- package/dist-types/commands/RegisterConnectorCommand.d.ts +36 -0
- package/dist-types/commands/UnregisterConnectorCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +965 -52
- package/dist-types/pagination/ListConnectorsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/Appflow.d.ts +20 -0
- package/dist-types/ts3.4/AppflowClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/DescribeConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RegisterConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UnregisterConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +522 -16
- package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +40 -34
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_restJson1CreateConnectorProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
@@ -12,8 +12,9 @@ export var serializeAws_restJson1CreateConnectorProfileCommand = function (input
|
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
14
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/create-connector-profile";
|
|
15
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.connectionMode !== undefined &&
|
|
16
|
-
input.connectionMode !== null && { connectionMode: input.connectionMode })), (input.
|
|
15
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.connectionMode !== undefined &&
|
|
16
|
+
input.connectionMode !== null && { connectionMode: input.connectionMode })), (input.connectorLabel !== undefined &&
|
|
17
|
+
input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.connectorProfileConfig !== undefined &&
|
|
17
18
|
input.connectorProfileConfig !== null && {
|
|
18
19
|
connectorProfileConfig: serializeAws_restJson1ConnectorProfileConfig(input.connectorProfileConfig, context),
|
|
19
20
|
})), (input.connectorProfileName !== undefined &&
|
|
@@ -113,6 +114,31 @@ export var serializeAws_restJson1DeleteFlowCommand = function (input, context) {
|
|
|
113
114
|
}
|
|
114
115
|
});
|
|
115
116
|
}); };
|
|
117
|
+
export var serializeAws_restJson1DescribeConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
119
|
+
return __generator(this, function (_c) {
|
|
120
|
+
switch (_c.label) {
|
|
121
|
+
case 0: return [4, context.endpoint()];
|
|
122
|
+
case 1:
|
|
123
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
124
|
+
headers = {
|
|
125
|
+
"content-type": "application/json",
|
|
126
|
+
};
|
|
127
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-connector";
|
|
128
|
+
body = JSON.stringify(__assign(__assign({}, (input.connectorLabel !== undefined &&
|
|
129
|
+
input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })));
|
|
130
|
+
return [2, new __HttpRequest({
|
|
131
|
+
protocol: protocol,
|
|
132
|
+
hostname: hostname,
|
|
133
|
+
port: port,
|
|
134
|
+
method: "POST",
|
|
135
|
+
headers: headers,
|
|
136
|
+
path: resolvedPath,
|
|
137
|
+
body: body,
|
|
138
|
+
})];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}); };
|
|
116
142
|
export var serializeAws_restJson1DescribeConnectorEntityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
143
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
118
144
|
return __generator(this, function (_c) {
|
|
@@ -124,7 +150,7 @@ export var serializeAws_restJson1DescribeConnectorEntityCommand = function (inpu
|
|
|
124
150
|
"content-type": "application/json",
|
|
125
151
|
};
|
|
126
152
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-connector-entity";
|
|
127
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.connectorEntityName !== undefined &&
|
|
153
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorEntityName !== undefined &&
|
|
128
154
|
input.connectorEntityName !== null && { connectorEntityName: input.connectorEntityName })), (input.connectorProfileName !== undefined &&
|
|
129
155
|
input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })));
|
|
130
156
|
return [2, new __HttpRequest({
|
|
@@ -150,7 +176,8 @@ export var serializeAws_restJson1DescribeConnectorProfilesCommand = function (in
|
|
|
150
176
|
"content-type": "application/json",
|
|
151
177
|
};
|
|
152
178
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-connector-profiles";
|
|
153
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.
|
|
179
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.connectorLabel !== undefined &&
|
|
180
|
+
input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.connectorProfileNames !== undefined &&
|
|
154
181
|
input.connectorProfileNames !== null && {
|
|
155
182
|
connectorProfileNames: serializeAws_restJson1ConnectorProfileNameList(input.connectorProfileNames, context),
|
|
156
183
|
})), (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 })));
|
|
@@ -177,10 +204,10 @@ export var serializeAws_restJson1DescribeConnectorsCommand = function (input, co
|
|
|
177
204
|
"content-type": "application/json",
|
|
178
205
|
};
|
|
179
206
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-connectors";
|
|
180
|
-
body = JSON.stringify(__assign(__assign({}, (input.connectorTypes !== undefined &&
|
|
207
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.connectorTypes !== undefined &&
|
|
181
208
|
input.connectorTypes !== null && {
|
|
182
209
|
connectorTypes: serializeAws_restJson1ConnectorTypeList(input.connectorTypes, context),
|
|
183
|
-
})), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
210
|
+
})), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
184
211
|
return [2, new __HttpRequest({
|
|
185
212
|
protocol: protocol,
|
|
186
213
|
hostname: hostname,
|
|
@@ -252,7 +279,7 @@ export var serializeAws_restJson1ListConnectorEntitiesCommand = function (input,
|
|
|
252
279
|
"content-type": "application/json",
|
|
253
280
|
};
|
|
254
281
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-connector-entities";
|
|
255
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.connectorProfileName !== undefined &&
|
|
282
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorProfileName !== undefined &&
|
|
256
283
|
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
284
|
return [2, new __HttpRequest({
|
|
258
285
|
protocol: protocol,
|
|
@@ -266,6 +293,30 @@ export var serializeAws_restJson1ListConnectorEntitiesCommand = function (input,
|
|
|
266
293
|
}
|
|
267
294
|
});
|
|
268
295
|
}); };
|
|
296
|
+
export var serializeAws_restJson1ListConnectorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
297
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
298
|
+
return __generator(this, function (_c) {
|
|
299
|
+
switch (_c.label) {
|
|
300
|
+
case 0: return [4, context.endpoint()];
|
|
301
|
+
case 1:
|
|
302
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
303
|
+
headers = {
|
|
304
|
+
"content-type": "application/json",
|
|
305
|
+
};
|
|
306
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-connectors";
|
|
307
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
308
|
+
return [2, new __HttpRequest({
|
|
309
|
+
protocol: protocol,
|
|
310
|
+
hostname: hostname,
|
|
311
|
+
port: port,
|
|
312
|
+
method: "POST",
|
|
313
|
+
headers: headers,
|
|
314
|
+
path: resolvedPath,
|
|
315
|
+
body: body,
|
|
316
|
+
})];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}); };
|
|
269
320
|
export var serializeAws_restJson1ListFlowsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
270
321
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
271
322
|
return __generator(this, function (_c) {
|
|
@@ -321,6 +372,35 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
321
372
|
}
|
|
322
373
|
});
|
|
323
374
|
}); };
|
|
375
|
+
export var serializeAws_restJson1RegisterConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
376
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
377
|
+
return __generator(this, function (_c) {
|
|
378
|
+
switch (_c.label) {
|
|
379
|
+
case 0: return [4, context.endpoint()];
|
|
380
|
+
case 1:
|
|
381
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
382
|
+
headers = {
|
|
383
|
+
"content-type": "application/json",
|
|
384
|
+
};
|
|
385
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/register-connector";
|
|
386
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.connectorLabel !== undefined &&
|
|
387
|
+
input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.connectorProvisioningConfig !== undefined &&
|
|
388
|
+
input.connectorProvisioningConfig !== null && {
|
|
389
|
+
connectorProvisioningConfig: serializeAws_restJson1ConnectorProvisioningConfig(input.connectorProvisioningConfig, context),
|
|
390
|
+
})), (input.connectorProvisioningType !== undefined &&
|
|
391
|
+
input.connectorProvisioningType !== null && { connectorProvisioningType: input.connectorProvisioningType })), (input.description !== undefined && input.description !== null && { description: input.description })));
|
|
392
|
+
return [2, new __HttpRequest({
|
|
393
|
+
protocol: protocol,
|
|
394
|
+
hostname: hostname,
|
|
395
|
+
port: port,
|
|
396
|
+
method: "POST",
|
|
397
|
+
headers: headers,
|
|
398
|
+
path: resolvedPath,
|
|
399
|
+
body: body,
|
|
400
|
+
})];
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
}); };
|
|
324
404
|
export var serializeAws_restJson1StartFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
325
405
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
326
406
|
return __generator(this, function (_c) {
|
|
@@ -403,6 +483,31 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
403
483
|
}
|
|
404
484
|
});
|
|
405
485
|
}); };
|
|
486
|
+
export var serializeAws_restJson1UnregisterConnectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
487
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
488
|
+
return __generator(this, function (_c) {
|
|
489
|
+
switch (_c.label) {
|
|
490
|
+
case 0: return [4, context.endpoint()];
|
|
491
|
+
case 1:
|
|
492
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
493
|
+
headers = {
|
|
494
|
+
"content-type": "application/json",
|
|
495
|
+
};
|
|
496
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/unregister-connector";
|
|
497
|
+
body = JSON.stringify(__assign(__assign({}, (input.connectorLabel !== undefined &&
|
|
498
|
+
input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete })));
|
|
499
|
+
return [2, new __HttpRequest({
|
|
500
|
+
protocol: protocol,
|
|
501
|
+
hostname: hostname,
|
|
502
|
+
port: port,
|
|
503
|
+
method: "POST",
|
|
504
|
+
headers: headers,
|
|
505
|
+
path: resolvedPath,
|
|
506
|
+
body: body,
|
|
507
|
+
})];
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
}); };
|
|
406
511
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
407
512
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
408
513
|
return __generator(this, function (_c) {
|
|
@@ -851,6 +956,84 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
|
|
|
851
956
|
}
|
|
852
957
|
});
|
|
853
958
|
}); };
|
|
959
|
+
export var deserializeAws_restJson1DescribeConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
960
|
+
var contents, data, _a, _b;
|
|
961
|
+
return __generator(this, function (_c) {
|
|
962
|
+
switch (_c.label) {
|
|
963
|
+
case 0:
|
|
964
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
965
|
+
return [2, deserializeAws_restJson1DescribeConnectorCommandError(output, context)];
|
|
966
|
+
}
|
|
967
|
+
contents = {
|
|
968
|
+
$metadata: deserializeMetadata(output),
|
|
969
|
+
connectorConfiguration: undefined,
|
|
970
|
+
};
|
|
971
|
+
_a = __expectNonNull;
|
|
972
|
+
_b = __expectObject;
|
|
973
|
+
return [4, parseBody(output.body, context)];
|
|
974
|
+
case 1:
|
|
975
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
976
|
+
if (data.connectorConfiguration !== undefined && data.connectorConfiguration !== null) {
|
|
977
|
+
contents.connectorConfiguration = deserializeAws_restJson1ConnectorConfiguration(data.connectorConfiguration, context);
|
|
978
|
+
}
|
|
979
|
+
return [2, Promise.resolve(contents)];
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
}); };
|
|
983
|
+
var deserializeAws_restJson1DescribeConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
984
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
985
|
+
var _f;
|
|
986
|
+
return __generator(this, function (_g) {
|
|
987
|
+
switch (_g.label) {
|
|
988
|
+
case 0:
|
|
989
|
+
_a = [__assign({}, output)];
|
|
990
|
+
_f = {};
|
|
991
|
+
return [4, parseBody(output.body, context)];
|
|
992
|
+
case 1:
|
|
993
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
994
|
+
errorCode = "UnknownError";
|
|
995
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
|
+
_b = errorCode;
|
|
997
|
+
switch (_b) {
|
|
998
|
+
case "InternalServerException": return [3, 2];
|
|
999
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
1000
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1001
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 4];
|
|
1002
|
+
case "ValidationException": return [3, 6];
|
|
1003
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 6];
|
|
1004
|
+
}
|
|
1005
|
+
return [3, 8];
|
|
1006
|
+
case 2:
|
|
1007
|
+
_c = [{}];
|
|
1008
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1009
|
+
case 3:
|
|
1010
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1011
|
+
return [3, 9];
|
|
1012
|
+
case 4:
|
|
1013
|
+
_d = [{}];
|
|
1014
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1015
|
+
case 5:
|
|
1016
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1017
|
+
return [3, 9];
|
|
1018
|
+
case 6:
|
|
1019
|
+
_e = [{}];
|
|
1020
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1021
|
+
case 7:
|
|
1022
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1023
|
+
return [3, 9];
|
|
1024
|
+
case 8:
|
|
1025
|
+
parsedBody = parsedOutput.body;
|
|
1026
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1027
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1028
|
+
_g.label = 9;
|
|
1029
|
+
case 9:
|
|
1030
|
+
message = response.message || response.Message || errorCode;
|
|
1031
|
+
response.message = message;
|
|
1032
|
+
delete response.Message;
|
|
1033
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1036
|
+
}); };
|
|
854
1037
|
export var deserializeAws_restJson1DescribeConnectorEntityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
855
1038
|
var contents, data, _a, _b;
|
|
856
1039
|
return __generator(this, function (_c) {
|
|
@@ -1030,6 +1213,7 @@ export var deserializeAws_restJson1DescribeConnectorsCommand = function (output,
|
|
|
1030
1213
|
contents = {
|
|
1031
1214
|
$metadata: deserializeMetadata(output),
|
|
1032
1215
|
connectorConfigurations: undefined,
|
|
1216
|
+
connectors: undefined,
|
|
1033
1217
|
nextToken: undefined,
|
|
1034
1218
|
};
|
|
1035
1219
|
_a = __expectNonNull;
|
|
@@ -1040,6 +1224,9 @@ export var deserializeAws_restJson1DescribeConnectorsCommand = function (output,
|
|
|
1040
1224
|
if (data.connectorConfigurations !== undefined && data.connectorConfigurations !== null) {
|
|
1041
1225
|
contents.connectorConfigurations = deserializeAws_restJson1ConnectorConfigurationsMap(data.connectorConfigurations, context);
|
|
1042
1226
|
}
|
|
1227
|
+
if (data.connectors !== undefined && data.connectors !== null) {
|
|
1228
|
+
contents.connectors = deserializeAws_restJson1ConnectorList(data.connectors, context);
|
|
1229
|
+
}
|
|
1043
1230
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1044
1231
|
contents.nextToken = __expectString(data.nextToken);
|
|
1045
1232
|
}
|
|
@@ -1399,6 +1586,80 @@ var deserializeAws_restJson1ListConnectorEntitiesCommandError = function (output
|
|
|
1399
1586
|
}
|
|
1400
1587
|
});
|
|
1401
1588
|
}); };
|
|
1589
|
+
export var deserializeAws_restJson1ListConnectorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1590
|
+
var contents, data, _a, _b;
|
|
1591
|
+
return __generator(this, function (_c) {
|
|
1592
|
+
switch (_c.label) {
|
|
1593
|
+
case 0:
|
|
1594
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
|
+
return [2, deserializeAws_restJson1ListConnectorsCommandError(output, context)];
|
|
1596
|
+
}
|
|
1597
|
+
contents = {
|
|
1598
|
+
$metadata: deserializeMetadata(output),
|
|
1599
|
+
connectors: undefined,
|
|
1600
|
+
nextToken: undefined,
|
|
1601
|
+
};
|
|
1602
|
+
_a = __expectNonNull;
|
|
1603
|
+
_b = __expectObject;
|
|
1604
|
+
return [4, parseBody(output.body, context)];
|
|
1605
|
+
case 1:
|
|
1606
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1607
|
+
if (data.connectors !== undefined && data.connectors !== null) {
|
|
1608
|
+
contents.connectors = deserializeAws_restJson1ConnectorList(data.connectors, context);
|
|
1609
|
+
}
|
|
1610
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1611
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1612
|
+
}
|
|
1613
|
+
return [2, Promise.resolve(contents)];
|
|
1614
|
+
}
|
|
1615
|
+
});
|
|
1616
|
+
}); };
|
|
1617
|
+
var deserializeAws_restJson1ListConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1618
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
1619
|
+
var _e;
|
|
1620
|
+
return __generator(this, function (_f) {
|
|
1621
|
+
switch (_f.label) {
|
|
1622
|
+
case 0:
|
|
1623
|
+
_a = [__assign({}, output)];
|
|
1624
|
+
_e = {};
|
|
1625
|
+
return [4, parseBody(output.body, context)];
|
|
1626
|
+
case 1:
|
|
1627
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1628
|
+
errorCode = "UnknownError";
|
|
1629
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
|
+
_b = errorCode;
|
|
1631
|
+
switch (_b) {
|
|
1632
|
+
case "InternalServerException": return [3, 2];
|
|
1633
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 2];
|
|
1634
|
+
case "ValidationException": return [3, 4];
|
|
1635
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 4];
|
|
1636
|
+
}
|
|
1637
|
+
return [3, 6];
|
|
1638
|
+
case 2:
|
|
1639
|
+
_c = [{}];
|
|
1640
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1641
|
+
case 3:
|
|
1642
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1643
|
+
return [3, 7];
|
|
1644
|
+
case 4:
|
|
1645
|
+
_d = [{}];
|
|
1646
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1647
|
+
case 5:
|
|
1648
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1649
|
+
return [3, 7];
|
|
1650
|
+
case 6:
|
|
1651
|
+
parsedBody = parsedOutput.body;
|
|
1652
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1653
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1654
|
+
_f.label = 7;
|
|
1655
|
+
case 7:
|
|
1656
|
+
message = response.message || response.Message || errorCode;
|
|
1657
|
+
response.message = message;
|
|
1658
|
+
delete response.Message;
|
|
1659
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1660
|
+
}
|
|
1661
|
+
});
|
|
1662
|
+
}); };
|
|
1402
1663
|
export var deserializeAws_restJson1ListFlowsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1403
1664
|
var contents, data, _a, _b;
|
|
1404
1665
|
return __generator(this, function (_c) {
|
|
@@ -1551,63 +1812,189 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1551
1812
|
}
|
|
1552
1813
|
});
|
|
1553
1814
|
}); };
|
|
1554
|
-
export var
|
|
1815
|
+
export var deserializeAws_restJson1RegisterConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1555
1816
|
var contents, data, _a, _b;
|
|
1556
1817
|
return __generator(this, function (_c) {
|
|
1557
1818
|
switch (_c.label) {
|
|
1558
1819
|
case 0:
|
|
1559
1820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1560
|
-
return [2,
|
|
1821
|
+
return [2, deserializeAws_restJson1RegisterConnectorCommandError(output, context)];
|
|
1561
1822
|
}
|
|
1562
1823
|
contents = {
|
|
1563
1824
|
$metadata: deserializeMetadata(output),
|
|
1564
|
-
|
|
1565
|
-
flowArn: undefined,
|
|
1566
|
-
flowStatus: undefined,
|
|
1825
|
+
connectorArn: undefined,
|
|
1567
1826
|
};
|
|
1568
1827
|
_a = __expectNonNull;
|
|
1569
1828
|
_b = __expectObject;
|
|
1570
1829
|
return [4, parseBody(output.body, context)];
|
|
1571
1830
|
case 1:
|
|
1572
1831
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1573
|
-
if (data.
|
|
1574
|
-
contents.
|
|
1575
|
-
}
|
|
1576
|
-
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
1577
|
-
contents.flowArn = __expectString(data.flowArn);
|
|
1578
|
-
}
|
|
1579
|
-
if (data.flowStatus !== undefined && data.flowStatus !== null) {
|
|
1580
|
-
contents.flowStatus = __expectString(data.flowStatus);
|
|
1832
|
+
if (data.connectorArn !== undefined && data.connectorArn !== null) {
|
|
1833
|
+
contents.connectorArn = __expectString(data.connectorArn);
|
|
1581
1834
|
}
|
|
1582
1835
|
return [2, Promise.resolve(contents)];
|
|
1583
1836
|
}
|
|
1584
1837
|
});
|
|
1585
1838
|
}); };
|
|
1586
|
-
var
|
|
1587
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1588
|
-
var
|
|
1589
|
-
return __generator(this, function (
|
|
1590
|
-
switch (
|
|
1839
|
+
var deserializeAws_restJson1RegisterConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1840
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, parsedBody, message;
|
|
1841
|
+
var _m;
|
|
1842
|
+
return __generator(this, function (_o) {
|
|
1843
|
+
switch (_o.label) {
|
|
1591
1844
|
case 0:
|
|
1592
1845
|
_a = [__assign({}, output)];
|
|
1593
|
-
|
|
1846
|
+
_m = {};
|
|
1594
1847
|
return [4, parseBody(output.body, context)];
|
|
1595
1848
|
case 1:
|
|
1596
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1849
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1597
1850
|
errorCode = "UnknownError";
|
|
1598
1851
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
1852
|
_b = errorCode;
|
|
1600
1853
|
switch (_b) {
|
|
1601
|
-
case "
|
|
1602
|
-
case "com.amazonaws.appflow#
|
|
1603
|
-
case "
|
|
1604
|
-
case "com.amazonaws.appflow#
|
|
1605
|
-
case "
|
|
1606
|
-
case "com.amazonaws.appflow#
|
|
1607
|
-
case "
|
|
1608
|
-
case "com.amazonaws.appflow#
|
|
1854
|
+
case "AccessDeniedException": return [3, 2];
|
|
1855
|
+
case "com.amazonaws.appflow#AccessDeniedException": return [3, 2];
|
|
1856
|
+
case "ConflictException": return [3, 4];
|
|
1857
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 4];
|
|
1858
|
+
case "ConnectorAuthenticationException": return [3, 6];
|
|
1859
|
+
case "com.amazonaws.appflow#ConnectorAuthenticationException": return [3, 6];
|
|
1860
|
+
case "ConnectorServerException": return [3, 8];
|
|
1861
|
+
case "com.amazonaws.appflow#ConnectorServerException": return [3, 8];
|
|
1862
|
+
case "InternalServerException": return [3, 10];
|
|
1863
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 10];
|
|
1864
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1865
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 12];
|
|
1866
|
+
case "ServiceQuotaExceededException": return [3, 14];
|
|
1867
|
+
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3, 14];
|
|
1868
|
+
case "ThrottlingException": return [3, 16];
|
|
1869
|
+
case "com.amazonaws.appflow#ThrottlingException": return [3, 16];
|
|
1870
|
+
case "ValidationException": return [3, 18];
|
|
1871
|
+
case "com.amazonaws.appflow#ValidationException": return [3, 18];
|
|
1609
1872
|
}
|
|
1610
|
-
return [3,
|
|
1873
|
+
return [3, 20];
|
|
1874
|
+
case 2:
|
|
1875
|
+
_c = [{}];
|
|
1876
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1877
|
+
case 3:
|
|
1878
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1879
|
+
return [3, 21];
|
|
1880
|
+
case 4:
|
|
1881
|
+
_d = [{}];
|
|
1882
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1883
|
+
case 5:
|
|
1884
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1885
|
+
return [3, 21];
|
|
1886
|
+
case 6:
|
|
1887
|
+
_e = [{}];
|
|
1888
|
+
return [4, deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)];
|
|
1889
|
+
case 7:
|
|
1890
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1891
|
+
return [3, 21];
|
|
1892
|
+
case 8:
|
|
1893
|
+
_f = [{}];
|
|
1894
|
+
return [4, deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)];
|
|
1895
|
+
case 9:
|
|
1896
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1897
|
+
return [3, 21];
|
|
1898
|
+
case 10:
|
|
1899
|
+
_g = [{}];
|
|
1900
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1901
|
+
case 11:
|
|
1902
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1903
|
+
return [3, 21];
|
|
1904
|
+
case 12:
|
|
1905
|
+
_h = [{}];
|
|
1906
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1907
|
+
case 13:
|
|
1908
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1909
|
+
return [3, 21];
|
|
1910
|
+
case 14:
|
|
1911
|
+
_j = [{}];
|
|
1912
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1913
|
+
case 15:
|
|
1914
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1915
|
+
return [3, 21];
|
|
1916
|
+
case 16:
|
|
1917
|
+
_k = [{}];
|
|
1918
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1919
|
+
case 17:
|
|
1920
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1921
|
+
return [3, 21];
|
|
1922
|
+
case 18:
|
|
1923
|
+
_l = [{}];
|
|
1924
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1925
|
+
case 19:
|
|
1926
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1927
|
+
return [3, 21];
|
|
1928
|
+
case 20:
|
|
1929
|
+
parsedBody = parsedOutput.body;
|
|
1930
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1931
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1932
|
+
_o.label = 21;
|
|
1933
|
+
case 21:
|
|
1934
|
+
message = response.message || response.Message || errorCode;
|
|
1935
|
+
response.message = message;
|
|
1936
|
+
delete response.Message;
|
|
1937
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1938
|
+
}
|
|
1939
|
+
});
|
|
1940
|
+
}); };
|
|
1941
|
+
export var deserializeAws_restJson1StartFlowCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1942
|
+
var contents, data, _a, _b;
|
|
1943
|
+
return __generator(this, function (_c) {
|
|
1944
|
+
switch (_c.label) {
|
|
1945
|
+
case 0:
|
|
1946
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1947
|
+
return [2, deserializeAws_restJson1StartFlowCommandError(output, context)];
|
|
1948
|
+
}
|
|
1949
|
+
contents = {
|
|
1950
|
+
$metadata: deserializeMetadata(output),
|
|
1951
|
+
executionId: undefined,
|
|
1952
|
+
flowArn: undefined,
|
|
1953
|
+
flowStatus: undefined,
|
|
1954
|
+
};
|
|
1955
|
+
_a = __expectNonNull;
|
|
1956
|
+
_b = __expectObject;
|
|
1957
|
+
return [4, parseBody(output.body, context)];
|
|
1958
|
+
case 1:
|
|
1959
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1960
|
+
if (data.executionId !== undefined && data.executionId !== null) {
|
|
1961
|
+
contents.executionId = __expectString(data.executionId);
|
|
1962
|
+
}
|
|
1963
|
+
if (data.flowArn !== undefined && data.flowArn !== null) {
|
|
1964
|
+
contents.flowArn = __expectString(data.flowArn);
|
|
1965
|
+
}
|
|
1966
|
+
if (data.flowStatus !== undefined && data.flowStatus !== null) {
|
|
1967
|
+
contents.flowStatus = __expectString(data.flowStatus);
|
|
1968
|
+
}
|
|
1969
|
+
return [2, Promise.resolve(contents)];
|
|
1970
|
+
}
|
|
1971
|
+
});
|
|
1972
|
+
}); };
|
|
1973
|
+
var deserializeAws_restJson1StartFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1974
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1975
|
+
var _g;
|
|
1976
|
+
return __generator(this, function (_h) {
|
|
1977
|
+
switch (_h.label) {
|
|
1978
|
+
case 0:
|
|
1979
|
+
_a = [__assign({}, output)];
|
|
1980
|
+
_g = {};
|
|
1981
|
+
return [4, parseBody(output.body, context)];
|
|
1982
|
+
case 1:
|
|
1983
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1984
|
+
errorCode = "UnknownError";
|
|
1985
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1986
|
+
_b = errorCode;
|
|
1987
|
+
switch (_b) {
|
|
1988
|
+
case "ConflictException": return [3, 2];
|
|
1989
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
1990
|
+
case "InternalServerException": return [3, 4];
|
|
1991
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 4];
|
|
1992
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1993
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 6];
|
|
1994
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
1995
|
+
case "com.amazonaws.appflow#ServiceQuotaExceededException": return [3, 8];
|
|
1996
|
+
}
|
|
1997
|
+
return [3, 10];
|
|
1611
1998
|
case 2:
|
|
1612
1999
|
_c = [{}];
|
|
1613
2000
|
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -1807,6 +2194,78 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1807
2194
|
}
|
|
1808
2195
|
});
|
|
1809
2196
|
}); };
|
|
2197
|
+
export var deserializeAws_restJson1UnregisterConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2198
|
+
var contents;
|
|
2199
|
+
return __generator(this, function (_a) {
|
|
2200
|
+
switch (_a.label) {
|
|
2201
|
+
case 0:
|
|
2202
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2203
|
+
return [2, deserializeAws_restJson1UnregisterConnectorCommandError(output, context)];
|
|
2204
|
+
}
|
|
2205
|
+
contents = {
|
|
2206
|
+
$metadata: deserializeMetadata(output),
|
|
2207
|
+
};
|
|
2208
|
+
return [4, collectBody(output.body, context)];
|
|
2209
|
+
case 1:
|
|
2210
|
+
_a.sent();
|
|
2211
|
+
return [2, Promise.resolve(contents)];
|
|
2212
|
+
}
|
|
2213
|
+
});
|
|
2214
|
+
}); };
|
|
2215
|
+
var deserializeAws_restJson1UnregisterConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2216
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
2217
|
+
var _f;
|
|
2218
|
+
return __generator(this, function (_g) {
|
|
2219
|
+
switch (_g.label) {
|
|
2220
|
+
case 0:
|
|
2221
|
+
_a = [__assign({}, output)];
|
|
2222
|
+
_f = {};
|
|
2223
|
+
return [4, parseBody(output.body, context)];
|
|
2224
|
+
case 1:
|
|
2225
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2226
|
+
errorCode = "UnknownError";
|
|
2227
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
|
+
_b = errorCode;
|
|
2229
|
+
switch (_b) {
|
|
2230
|
+
case "ConflictException": return [3, 2];
|
|
2231
|
+
case "com.amazonaws.appflow#ConflictException": return [3, 2];
|
|
2232
|
+
case "InternalServerException": return [3, 4];
|
|
2233
|
+
case "com.amazonaws.appflow#InternalServerException": return [3, 4];
|
|
2234
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2235
|
+
case "com.amazonaws.appflow#ResourceNotFoundException": return [3, 6];
|
|
2236
|
+
}
|
|
2237
|
+
return [3, 8];
|
|
2238
|
+
case 2:
|
|
2239
|
+
_c = [{}];
|
|
2240
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2241
|
+
case 3:
|
|
2242
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2243
|
+
return [3, 9];
|
|
2244
|
+
case 4:
|
|
2245
|
+
_d = [{}];
|
|
2246
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2247
|
+
case 5:
|
|
2248
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2249
|
+
return [3, 9];
|
|
2250
|
+
case 6:
|
|
2251
|
+
_e = [{}];
|
|
2252
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2253
|
+
case 7:
|
|
2254
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2255
|
+
return [3, 9];
|
|
2256
|
+
case 8:
|
|
2257
|
+
parsedBody = parsedOutput.body;
|
|
2258
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2259
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2260
|
+
_g.label = 9;
|
|
2261
|
+
case 9:
|
|
2262
|
+
message = response.message || response.Message || errorCode;
|
|
2263
|
+
response.message = message;
|
|
2264
|
+
delete response.Message;
|
|
2265
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2266
|
+
}
|
|
2267
|
+
});
|
|
2268
|
+
}); };
|
|
1810
2269
|
export var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1811
2270
|
var contents;
|
|
1812
2271
|
return __generator(this, function (_a) {
|
|
@@ -2083,6 +2542,22 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
|
|
|
2083
2542
|
}
|
|
2084
2543
|
});
|
|
2085
2544
|
}); };
|
|
2545
|
+
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2546
|
+
var contents, data;
|
|
2547
|
+
return __generator(this, function (_a) {
|
|
2548
|
+
contents = {
|
|
2549
|
+
name: "AccessDeniedException",
|
|
2550
|
+
$fault: "client",
|
|
2551
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2552
|
+
message: undefined,
|
|
2553
|
+
};
|
|
2554
|
+
data = parsedOutput.body;
|
|
2555
|
+
if (data.message !== undefined && data.message !== null) {
|
|
2556
|
+
contents.message = __expectString(data.message);
|
|
2557
|
+
}
|
|
2558
|
+
return [2, contents];
|
|
2559
|
+
});
|
|
2560
|
+
}); };
|
|
2086
2561
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2087
2562
|
var contents, data;
|
|
2088
2563
|
return __generator(this, function (_a) {
|
|
@@ -2179,6 +2654,22 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2179
2654
|
return [2, contents];
|
|
2180
2655
|
});
|
|
2181
2656
|
}); };
|
|
2657
|
+
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2658
|
+
var contents, data;
|
|
2659
|
+
return __generator(this, function (_a) {
|
|
2660
|
+
contents = {
|
|
2661
|
+
name: "ThrottlingException",
|
|
2662
|
+
$fault: "client",
|
|
2663
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2664
|
+
message: undefined,
|
|
2665
|
+
};
|
|
2666
|
+
data = parsedOutput.body;
|
|
2667
|
+
if (data.message !== undefined && data.message !== null) {
|
|
2668
|
+
contents.message = __expectString(data.message);
|
|
2669
|
+
}
|
|
2670
|
+
return [2, contents];
|
|
2671
|
+
});
|
|
2672
|
+
}); };
|
|
2182
2673
|
var deserializeAws_restJson1UnsupportedOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2183
2674
|
var contents, data;
|
|
2184
2675
|
return __generator(this, function (_a) {
|
|
@@ -2224,6 +2715,9 @@ var serializeAws_restJson1AmplitudeConnectorProfileProperties = function (input,
|
|
|
2224
2715
|
var serializeAws_restJson1AmplitudeSourceProperties = function (input, context) {
|
|
2225
2716
|
return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
|
|
2226
2717
|
};
|
|
2718
|
+
var serializeAws_restJson1ApiKeyCredentials = function (input, context) {
|
|
2719
|
+
return __assign(__assign({}, (input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey })), (input.apiSecretKey !== undefined && input.apiSecretKey !== null && { apiSecretKey: input.apiSecretKey }));
|
|
2720
|
+
};
|
|
2227
2721
|
var serializeAws_restJson1BasicAuthCredentials = function (input, context) {
|
|
2228
2722
|
return __assign(__assign({}, (input.password !== undefined && input.password !== null && { password: input.password })), (input.username !== undefined && input.username !== null && { username: input.username }));
|
|
2229
2723
|
};
|
|
@@ -2231,7 +2725,8 @@ var serializeAws_restJson1ConnectorOAuthRequest = function (input, context) {
|
|
|
2231
2725
|
return __assign(__assign({}, (input.authCode !== undefined && input.authCode !== null && { authCode: input.authCode })), (input.redirectUri !== undefined && input.redirectUri !== null && { redirectUri: input.redirectUri }));
|
|
2232
2726
|
};
|
|
2233
2727
|
var serializeAws_restJson1ConnectorOperator = function (input, context) {
|
|
2234
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined && input.Amplitude !== null && { Amplitude: input.Amplitude })), (input.
|
|
2728
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined && input.Amplitude !== null && { Amplitude: input.Amplitude })), (input.CustomConnector !== undefined &&
|
|
2729
|
+
input.CustomConnector !== null && { CustomConnector: input.CustomConnector })), (input.Datadog !== undefined && input.Datadog !== null && { Datadog: input.Datadog })), (input.Dynatrace !== undefined && input.Dynatrace !== null && { Dynatrace: input.Dynatrace })), (input.GoogleAnalytics !== undefined &&
|
|
2235
2730
|
input.GoogleAnalytics !== null && { GoogleAnalytics: input.GoogleAnalytics })), (input.InforNexus !== undefined && input.InforNexus !== null && { InforNexus: input.InforNexus })), (input.Marketo !== undefined && input.Marketo !== null && { Marketo: input.Marketo })), (input.S3 !== undefined && input.S3 !== null && { S3: input.S3 })), (input.SAPOData !== undefined && input.SAPOData !== null && { SAPOData: input.SAPOData })), (input.Salesforce !== undefined && input.Salesforce !== null && { Salesforce: input.Salesforce })), (input.ServiceNow !== undefined && input.ServiceNow !== null && { ServiceNow: input.ServiceNow })), (input.Singular !== undefined && input.Singular !== null && { Singular: input.Singular })), (input.Slack !== undefined && input.Slack !== null && { Slack: input.Slack })), (input.Trendmicro !== undefined && input.Trendmicro !== null && { Trendmicro: input.Trendmicro })), (input.Veeva !== undefined && input.Veeva !== null && { Veeva: input.Veeva })), (input.Zendesk !== undefined && input.Zendesk !== null && { Zendesk: input.Zendesk }));
|
|
2236
2731
|
};
|
|
2237
2732
|
var serializeAws_restJson1ConnectorProfileConfig = function (input, context) {
|
|
@@ -2244,9 +2739,12 @@ var serializeAws_restJson1ConnectorProfileConfig = function (input, context) {
|
|
|
2244
2739
|
}));
|
|
2245
2740
|
};
|
|
2246
2741
|
var serializeAws_restJson1ConnectorProfileCredentials = function (input, context) {
|
|
2247
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
|
|
2742
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
|
|
2248
2743
|
input.Amplitude !== null && {
|
|
2249
2744
|
Amplitude: serializeAws_restJson1AmplitudeConnectorProfileCredentials(input.Amplitude, context),
|
|
2745
|
+
})), (input.CustomConnector !== undefined &&
|
|
2746
|
+
input.CustomConnector !== null && {
|
|
2747
|
+
CustomConnector: serializeAws_restJson1CustomConnectorProfileCredentials(input.CustomConnector, context),
|
|
2250
2748
|
})), (input.Datadog !== undefined &&
|
|
2251
2749
|
input.Datadog !== null && {
|
|
2252
2750
|
Datadog: serializeAws_restJson1DatadogConnectorProfileCredentials(input.Datadog, context),
|
|
@@ -2304,9 +2802,12 @@ var serializeAws_restJson1ConnectorProfileNameList = function (input, context) {
|
|
|
2304
2802
|
});
|
|
2305
2803
|
};
|
|
2306
2804
|
var serializeAws_restJson1ConnectorProfileProperties = function (input, context) {
|
|
2307
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
|
|
2805
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
|
|
2308
2806
|
input.Amplitude !== null && {
|
|
2309
2807
|
Amplitude: serializeAws_restJson1AmplitudeConnectorProfileProperties(input.Amplitude, context),
|
|
2808
|
+
})), (input.CustomConnector !== undefined &&
|
|
2809
|
+
input.CustomConnector !== null && {
|
|
2810
|
+
CustomConnector: serializeAws_restJson1CustomConnectorProfileProperties(input.CustomConnector, context),
|
|
2310
2811
|
})), (input.Datadog !== undefined &&
|
|
2311
2812
|
input.Datadog !== null && {
|
|
2312
2813
|
Datadog: serializeAws_restJson1DatadogConnectorProfileProperties(input.Datadog, context),
|
|
@@ -2353,6 +2854,12 @@ var serializeAws_restJson1ConnectorProfileProperties = function (input, context)
|
|
|
2353
2854
|
Zendesk: serializeAws_restJson1ZendeskConnectorProfileProperties(input.Zendesk, context),
|
|
2354
2855
|
}));
|
|
2355
2856
|
};
|
|
2857
|
+
var serializeAws_restJson1ConnectorProvisioningConfig = function (input, context) {
|
|
2858
|
+
return __assign({}, (input.lambda !== undefined &&
|
|
2859
|
+
input.lambda !== null && {
|
|
2860
|
+
lambda: serializeAws_restJson1LambdaConnectorProvisioningConfig(input.lambda, context),
|
|
2861
|
+
}));
|
|
2862
|
+
};
|
|
2356
2863
|
var serializeAws_restJson1ConnectorTypeList = function (input, context) {
|
|
2357
2864
|
return input
|
|
2358
2865
|
.filter(function (e) { return e != null; })
|
|
@@ -2363,10 +2870,73 @@ var serializeAws_restJson1ConnectorTypeList = function (input, context) {
|
|
|
2363
2870
|
return entry;
|
|
2364
2871
|
});
|
|
2365
2872
|
};
|
|
2873
|
+
var serializeAws_restJson1CredentialsMap = function (input, context) {
|
|
2874
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2875
|
+
var _b;
|
|
2876
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2877
|
+
if (value === null) {
|
|
2878
|
+
return acc;
|
|
2879
|
+
}
|
|
2880
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2881
|
+
}, {});
|
|
2882
|
+
};
|
|
2883
|
+
var serializeAws_restJson1CustomAuthCredentials = function (input, context) {
|
|
2884
|
+
return __assign(__assign({}, (input.credentialsMap !== undefined &&
|
|
2885
|
+
input.credentialsMap !== null && {
|
|
2886
|
+
credentialsMap: serializeAws_restJson1CredentialsMap(input.credentialsMap, context),
|
|
2887
|
+
})), (input.customAuthenticationType !== undefined &&
|
|
2888
|
+
input.customAuthenticationType !== null && { customAuthenticationType: input.customAuthenticationType }));
|
|
2889
|
+
};
|
|
2890
|
+
var serializeAws_restJson1CustomConnectorDestinationProperties = function (input, context) {
|
|
2891
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.customProperties !== undefined &&
|
|
2892
|
+
input.customProperties !== null && {
|
|
2893
|
+
customProperties: serializeAws_restJson1CustomProperties(input.customProperties, context),
|
|
2894
|
+
})), (input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName })), (input.errorHandlingConfig !== undefined &&
|
|
2895
|
+
input.errorHandlingConfig !== null && {
|
|
2896
|
+
errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
|
|
2897
|
+
})), (input.idFieldNames !== undefined &&
|
|
2898
|
+
input.idFieldNames !== null && {
|
|
2899
|
+
idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
|
|
2900
|
+
})), (input.writeOperationType !== undefined &&
|
|
2901
|
+
input.writeOperationType !== null && { writeOperationType: input.writeOperationType }));
|
|
2902
|
+
};
|
|
2903
|
+
var serializeAws_restJson1CustomConnectorProfileCredentials = function (input, context) {
|
|
2904
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.apiKey !== undefined &&
|
|
2905
|
+
input.apiKey !== null && { apiKey: serializeAws_restJson1ApiKeyCredentials(input.apiKey, context) })), (input.authenticationType !== undefined &&
|
|
2906
|
+
input.authenticationType !== null && { authenticationType: input.authenticationType })), (input.basic !== undefined &&
|
|
2907
|
+
input.basic !== null && { basic: serializeAws_restJson1BasicAuthCredentials(input.basic, context) })), (input.custom !== undefined &&
|
|
2908
|
+
input.custom !== null && { custom: serializeAws_restJson1CustomAuthCredentials(input.custom, context) })), (input.oauth2 !== undefined &&
|
|
2909
|
+
input.oauth2 !== null && { oauth2: serializeAws_restJson1OAuth2Credentials(input.oauth2, context) }));
|
|
2910
|
+
};
|
|
2911
|
+
var serializeAws_restJson1CustomConnectorProfileProperties = function (input, context) {
|
|
2912
|
+
return __assign(__assign({}, (input.oAuth2Properties !== undefined &&
|
|
2913
|
+
input.oAuth2Properties !== null && {
|
|
2914
|
+
oAuth2Properties: serializeAws_restJson1OAuth2Properties(input.oAuth2Properties, context),
|
|
2915
|
+
})), (input.profileProperties !== undefined &&
|
|
2916
|
+
input.profileProperties !== null && {
|
|
2917
|
+
profileProperties: serializeAws_restJson1ProfilePropertiesMap(input.profileProperties, context),
|
|
2918
|
+
}));
|
|
2919
|
+
};
|
|
2920
|
+
var serializeAws_restJson1CustomConnectorSourceProperties = function (input, context) {
|
|
2921
|
+
return __assign(__assign({}, (input.customProperties !== undefined &&
|
|
2922
|
+
input.customProperties !== null && {
|
|
2923
|
+
customProperties: serializeAws_restJson1CustomProperties(input.customProperties, context),
|
|
2924
|
+
})), (input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName }));
|
|
2925
|
+
};
|
|
2366
2926
|
var serializeAws_restJson1CustomerProfilesDestinationProperties = function (input, context) {
|
|
2367
2927
|
return __assign(__assign({}, (input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName })), (input.objectTypeName !== undefined &&
|
|
2368
2928
|
input.objectTypeName !== null && { objectTypeName: input.objectTypeName }));
|
|
2369
2929
|
};
|
|
2930
|
+
var serializeAws_restJson1CustomProperties = function (input, context) {
|
|
2931
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2932
|
+
var _b;
|
|
2933
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2934
|
+
if (value === null) {
|
|
2935
|
+
return acc;
|
|
2936
|
+
}
|
|
2937
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2938
|
+
}, {});
|
|
2939
|
+
};
|
|
2370
2940
|
var serializeAws_restJson1DatadogConnectorProfileCredentials = function (input, context) {
|
|
2371
2941
|
return __assign(__assign({}, (input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey })), (input.applicationKey !== undefined &&
|
|
2372
2942
|
input.applicationKey !== null && { applicationKey: input.applicationKey }));
|
|
@@ -2378,7 +2948,10 @@ var serializeAws_restJson1DatadogSourceProperties = function (input, context) {
|
|
|
2378
2948
|
return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
|
|
2379
2949
|
};
|
|
2380
2950
|
var serializeAws_restJson1DestinationConnectorProperties = function (input, context) {
|
|
2381
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.
|
|
2951
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CustomConnector !== undefined &&
|
|
2952
|
+
input.CustomConnector !== null && {
|
|
2953
|
+
CustomConnector: serializeAws_restJson1CustomConnectorDestinationProperties(input.CustomConnector, context),
|
|
2954
|
+
})), (input.CustomerProfiles !== undefined &&
|
|
2382
2955
|
input.CustomerProfiles !== null && {
|
|
2383
2956
|
CustomerProfiles: serializeAws_restJson1CustomerProfilesDestinationProperties(input.CustomerProfiles, context),
|
|
2384
2957
|
})), (input.EventBridge !== undefined &&
|
|
@@ -2394,7 +2967,10 @@ var serializeAws_restJson1DestinationConnectorProperties = function (input, cont
|
|
|
2394
2967
|
input.Redshift !== null && {
|
|
2395
2968
|
Redshift: serializeAws_restJson1RedshiftDestinationProperties(input.Redshift, context),
|
|
2396
2969
|
})), (input.S3 !== undefined &&
|
|
2397
|
-
input.S3 !== null && { S3: serializeAws_restJson1S3DestinationProperties(input.S3, context) })), (input.
|
|
2970
|
+
input.S3 !== null && { S3: serializeAws_restJson1S3DestinationProperties(input.S3, context) })), (input.SAPOData !== undefined &&
|
|
2971
|
+
input.SAPOData !== null && {
|
|
2972
|
+
SAPOData: serializeAws_restJson1SAPODataDestinationProperties(input.SAPOData, context),
|
|
2973
|
+
})), (input.Salesforce !== undefined &&
|
|
2398
2974
|
input.Salesforce !== null && {
|
|
2399
2975
|
Salesforce: serializeAws_restJson1SalesforceDestinationProperties(input.Salesforce, context),
|
|
2400
2976
|
})), (input.Snowflake !== undefined &&
|
|
@@ -2409,7 +2985,7 @@ var serializeAws_restJson1DestinationConnectorProperties = function (input, cont
|
|
|
2409
2985
|
}));
|
|
2410
2986
|
};
|
|
2411
2987
|
var serializeAws_restJson1DestinationFlowConfig = function (input, context) {
|
|
2412
|
-
return __assign(__assign(__assign({}, (input.connectorProfileName !== undefined &&
|
|
2988
|
+
return __assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorProfileName !== undefined &&
|
|
2413
2989
|
input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.destinationConnectorProperties !== undefined &&
|
|
2414
2990
|
input.destinationConnectorProperties !== null && {
|
|
2415
2991
|
destinationConnectorProperties: serializeAws_restJson1DestinationConnectorProperties(input.destinationConnectorProperties, context),
|
|
@@ -2495,6 +3071,9 @@ var serializeAws_restJson1InforNexusConnectorProfileProperties = function (input
|
|
|
2495
3071
|
var serializeAws_restJson1InforNexusSourceProperties = function (input, context) {
|
|
2496
3072
|
return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
|
|
2497
3073
|
};
|
|
3074
|
+
var serializeAws_restJson1LambdaConnectorProvisioningConfig = function (input, context) {
|
|
3075
|
+
return __assign({}, (input.lambdaArn !== undefined && input.lambdaArn !== null && { lambdaArn: input.lambdaArn }));
|
|
3076
|
+
};
|
|
2498
3077
|
var serializeAws_restJson1LookoutMetricsDestinationProperties = function (input, context) {
|
|
2499
3078
|
return {};
|
|
2500
3079
|
};
|
|
@@ -2510,6 +3089,16 @@ var serializeAws_restJson1MarketoConnectorProfileProperties = function (input, c
|
|
|
2510
3089
|
var serializeAws_restJson1MarketoSourceProperties = function (input, context) {
|
|
2511
3090
|
return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
|
|
2512
3091
|
};
|
|
3092
|
+
var serializeAws_restJson1OAuth2Credentials = function (input, context) {
|
|
3093
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.oAuthRequest !== undefined &&
|
|
3094
|
+
input.oAuthRequest !== null && {
|
|
3095
|
+
oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
|
|
3096
|
+
})), (input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }));
|
|
3097
|
+
};
|
|
3098
|
+
var serializeAws_restJson1OAuth2Properties = function (input, context) {
|
|
3099
|
+
return __assign(__assign({}, (input.oAuth2GrantType !== undefined &&
|
|
3100
|
+
input.oAuth2GrantType !== null && { oAuth2GrantType: input.oAuth2GrantType })), (input.tokenUrl !== undefined && input.tokenUrl !== null && { tokenUrl: input.tokenUrl }));
|
|
3101
|
+
};
|
|
2513
3102
|
var serializeAws_restJson1OAuthCredentials = function (input, context) {
|
|
2514
3103
|
return __assign(__assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.oAuthRequest !== undefined &&
|
|
2515
3104
|
input.oAuthRequest !== null && {
|
|
@@ -2533,6 +3122,16 @@ var serializeAws_restJson1OAuthScopeList = function (input, context) {
|
|
|
2533
3122
|
var serializeAws_restJson1PrefixConfig = function (input, context) {
|
|
2534
3123
|
return __assign(__assign({}, (input.prefixFormat !== undefined && input.prefixFormat !== null && { prefixFormat: input.prefixFormat })), (input.prefixType !== undefined && input.prefixType !== null && { prefixType: input.prefixType }));
|
|
2535
3124
|
};
|
|
3125
|
+
var serializeAws_restJson1ProfilePropertiesMap = function (input, context) {
|
|
3126
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
3127
|
+
var _b;
|
|
3128
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
3129
|
+
if (value === null) {
|
|
3130
|
+
return acc;
|
|
3131
|
+
}
|
|
3132
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
3133
|
+
}, {});
|
|
3134
|
+
};
|
|
2536
3135
|
var serializeAws_restJson1RedshiftConnectorProfileCredentials = function (input, context) {
|
|
2537
3136
|
return __assign(__assign({}, (input.password !== undefined && input.password !== null && { password: input.password })), (input.username !== undefined && input.username !== null && { username: input.username }));
|
|
2538
3137
|
};
|
|
@@ -2613,6 +3212,19 @@ var serializeAws_restJson1SAPODataConnectorProfileProperties = function (input,
|
|
|
2613
3212
|
})), (input.portNumber !== undefined && input.portNumber !== null && { portNumber: input.portNumber })), (input.privateLinkServiceName !== undefined &&
|
|
2614
3213
|
input.privateLinkServiceName !== null && { privateLinkServiceName: input.privateLinkServiceName }));
|
|
2615
3214
|
};
|
|
3215
|
+
var serializeAws_restJson1SAPODataDestinationProperties = function (input, context) {
|
|
3216
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.errorHandlingConfig !== undefined &&
|
|
3217
|
+
input.errorHandlingConfig !== null && {
|
|
3218
|
+
errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
|
|
3219
|
+
})), (input.idFieldNames !== undefined &&
|
|
3220
|
+
input.idFieldNames !== null && {
|
|
3221
|
+
idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
|
|
3222
|
+
})), (input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath })), (input.successResponseHandlingConfig !== undefined &&
|
|
3223
|
+
input.successResponseHandlingConfig !== null && {
|
|
3224
|
+
successResponseHandlingConfig: serializeAws_restJson1SuccessResponseHandlingConfig(input.successResponseHandlingConfig, context),
|
|
3225
|
+
})), (input.writeOperationType !== undefined &&
|
|
3226
|
+
input.writeOperationType !== null && { writeOperationType: input.writeOperationType }));
|
|
3227
|
+
};
|
|
2616
3228
|
var serializeAws_restJson1SAPODataSourceProperties = function (input, context) {
|
|
2617
3229
|
return __assign({}, (input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath }));
|
|
2618
3230
|
};
|
|
@@ -2671,9 +3283,12 @@ var serializeAws_restJson1SnowflakeDestinationProperties = function (input, cont
|
|
|
2671
3283
|
input.intermediateBucketName !== null && { intermediateBucketName: input.intermediateBucketName })), (input.object !== undefined && input.object !== null && { object: input.object }));
|
|
2672
3284
|
};
|
|
2673
3285
|
var serializeAws_restJson1SourceConnectorProperties = function (input, context) {
|
|
2674
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
|
|
3286
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
|
|
2675
3287
|
input.Amplitude !== null && {
|
|
2676
3288
|
Amplitude: serializeAws_restJson1AmplitudeSourceProperties(input.Amplitude, context),
|
|
3289
|
+
})), (input.CustomConnector !== undefined &&
|
|
3290
|
+
input.CustomConnector !== null && {
|
|
3291
|
+
CustomConnector: serializeAws_restJson1CustomConnectorSourceProperties(input.CustomConnector, context),
|
|
2677
3292
|
})), (input.Datadog !== undefined &&
|
|
2678
3293
|
input.Datadog !== null && { Datadog: serializeAws_restJson1DatadogSourceProperties(input.Datadog, context) })), (input.Dynatrace !== undefined &&
|
|
2679
3294
|
input.Dynatrace !== null && {
|
|
@@ -2713,7 +3328,7 @@ var serializeAws_restJson1SourceFields = function (input, context) {
|
|
|
2713
3328
|
});
|
|
2714
3329
|
};
|
|
2715
3330
|
var serializeAws_restJson1SourceFlowConfig = function (input, context) {
|
|
2716
|
-
return __assign(__assign(__assign(__assign({}, (input.connectorProfileName !== undefined &&
|
|
3331
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorProfileName !== undefined &&
|
|
2717
3332
|
input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.incrementalPullConfig !== undefined &&
|
|
2718
3333
|
input.incrementalPullConfig !== null && {
|
|
2719
3334
|
incrementalPullConfig: serializeAws_restJson1IncrementalPullConfig(input.incrementalPullConfig, context),
|
|
@@ -2722,6 +3337,9 @@ var serializeAws_restJson1SourceFlowConfig = function (input, context) {
|
|
|
2722
3337
|
sourceConnectorProperties: serializeAws_restJson1SourceConnectorProperties(input.sourceConnectorProperties, context),
|
|
2723
3338
|
}));
|
|
2724
3339
|
};
|
|
3340
|
+
var serializeAws_restJson1SuccessResponseHandlingConfig = function (input, context) {
|
|
3341
|
+
return __assign(__assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }));
|
|
3342
|
+
};
|
|
2725
3343
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
2726
3344
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
2727
3345
|
var _b;
|
|
@@ -2847,24 +3465,104 @@ var deserializeAws_restJson1AmplitudeSourceProperties = function (output, contex
|
|
|
2847
3465
|
object: __expectString(output.object),
|
|
2848
3466
|
};
|
|
2849
3467
|
};
|
|
3468
|
+
var deserializeAws_restJson1AuthCodeUrlList = function (output, context) {
|
|
3469
|
+
return (output || [])
|
|
3470
|
+
.filter(function (e) { return e != null; })
|
|
3471
|
+
.map(function (entry) {
|
|
3472
|
+
if (entry === null) {
|
|
3473
|
+
return null;
|
|
3474
|
+
}
|
|
3475
|
+
return __expectString(entry);
|
|
3476
|
+
});
|
|
3477
|
+
};
|
|
3478
|
+
var deserializeAws_restJson1AuthenticationConfig = function (output, context) {
|
|
3479
|
+
return {
|
|
3480
|
+
customAuthConfigs: output.customAuthConfigs !== undefined && output.customAuthConfigs !== null
|
|
3481
|
+
? deserializeAws_restJson1CustomAuthConfigList(output.customAuthConfigs, context)
|
|
3482
|
+
: undefined,
|
|
3483
|
+
isApiKeyAuthSupported: __expectBoolean(output.isApiKeyAuthSupported),
|
|
3484
|
+
isBasicAuthSupported: __expectBoolean(output.isBasicAuthSupported),
|
|
3485
|
+
isCustomAuthSupported: __expectBoolean(output.isCustomAuthSupported),
|
|
3486
|
+
isOAuth2Supported: __expectBoolean(output.isOAuth2Supported),
|
|
3487
|
+
oAuth2Defaults: output.oAuth2Defaults !== undefined && output.oAuth2Defaults !== null
|
|
3488
|
+
? deserializeAws_restJson1OAuth2Defaults(output.oAuth2Defaults, context)
|
|
3489
|
+
: undefined,
|
|
3490
|
+
};
|
|
3491
|
+
};
|
|
3492
|
+
var deserializeAws_restJson1AuthParameter = function (output, context) {
|
|
3493
|
+
return {
|
|
3494
|
+
connectorSuppliedValues: output.connectorSuppliedValues !== undefined && output.connectorSuppliedValues !== null
|
|
3495
|
+
? deserializeAws_restJson1ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
|
|
3496
|
+
: undefined,
|
|
3497
|
+
description: __expectString(output.description),
|
|
3498
|
+
isRequired: __expectBoolean(output.isRequired),
|
|
3499
|
+
isSensitiveField: __expectBoolean(output.isSensitiveField),
|
|
3500
|
+
key: __expectString(output.key),
|
|
3501
|
+
label: __expectString(output.label),
|
|
3502
|
+
};
|
|
3503
|
+
};
|
|
3504
|
+
var deserializeAws_restJson1AuthParameterList = function (output, context) {
|
|
3505
|
+
return (output || [])
|
|
3506
|
+
.filter(function (e) { return e != null; })
|
|
3507
|
+
.map(function (entry) {
|
|
3508
|
+
if (entry === null) {
|
|
3509
|
+
return null;
|
|
3510
|
+
}
|
|
3511
|
+
return deserializeAws_restJson1AuthParameter(entry, context);
|
|
3512
|
+
});
|
|
3513
|
+
};
|
|
2850
3514
|
var deserializeAws_restJson1ConnectorConfiguration = function (output, context) {
|
|
2851
3515
|
return {
|
|
3516
|
+
authenticationConfig: output.authenticationConfig !== undefined && output.authenticationConfig !== null
|
|
3517
|
+
? deserializeAws_restJson1AuthenticationConfig(output.authenticationConfig, context)
|
|
3518
|
+
: undefined,
|
|
2852
3519
|
canUseAsDestination: __expectBoolean(output.canUseAsDestination),
|
|
2853
3520
|
canUseAsSource: __expectBoolean(output.canUseAsSource),
|
|
3521
|
+
connectorArn: __expectString(output.connectorArn),
|
|
3522
|
+
connectorDescription: __expectString(output.connectorDescription),
|
|
3523
|
+
connectorLabel: __expectString(output.connectorLabel),
|
|
2854
3524
|
connectorMetadata: output.connectorMetadata !== undefined && output.connectorMetadata !== null
|
|
2855
3525
|
? deserializeAws_restJson1ConnectorMetadata(output.connectorMetadata, context)
|
|
2856
3526
|
: undefined,
|
|
3527
|
+
connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
|
|
3528
|
+
? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
|
|
3529
|
+
: undefined,
|
|
3530
|
+
connectorName: __expectString(output.connectorName),
|
|
3531
|
+
connectorOwner: __expectString(output.connectorOwner),
|
|
3532
|
+
connectorProvisioningConfig: output.connectorProvisioningConfig !== undefined && output.connectorProvisioningConfig !== null
|
|
3533
|
+
? deserializeAws_restJson1ConnectorProvisioningConfig(output.connectorProvisioningConfig, context)
|
|
3534
|
+
: undefined,
|
|
3535
|
+
connectorProvisioningType: __expectString(output.connectorProvisioningType),
|
|
3536
|
+
connectorRuntimeSettings: output.connectorRuntimeSettings !== undefined && output.connectorRuntimeSettings !== null
|
|
3537
|
+
? deserializeAws_restJson1ConnectorRuntimeSettingList(output.connectorRuntimeSettings, context)
|
|
3538
|
+
: undefined,
|
|
3539
|
+
connectorType: __expectString(output.connectorType),
|
|
3540
|
+
connectorVersion: __expectString(output.connectorVersion),
|
|
2857
3541
|
isPrivateLinkEnabled: __expectBoolean(output.isPrivateLinkEnabled),
|
|
2858
3542
|
isPrivateLinkEndpointUrlRequired: __expectBoolean(output.isPrivateLinkEndpointUrlRequired),
|
|
3543
|
+
logoURL: __expectString(output.logoURL),
|
|
3544
|
+
registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
|
|
3545
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
|
|
3546
|
+
: undefined,
|
|
3547
|
+
registeredBy: __expectString(output.registeredBy),
|
|
3548
|
+
supportedApiVersions: output.supportedApiVersions !== undefined && output.supportedApiVersions !== null
|
|
3549
|
+
? deserializeAws_restJson1SupportedApiVersionList(output.supportedApiVersions, context)
|
|
3550
|
+
: undefined,
|
|
2859
3551
|
supportedDestinationConnectors: output.supportedDestinationConnectors !== undefined && output.supportedDestinationConnectors !== null
|
|
2860
3552
|
? deserializeAws_restJson1ConnectorTypeList(output.supportedDestinationConnectors, context)
|
|
2861
3553
|
: undefined,
|
|
3554
|
+
supportedOperators: output.supportedOperators !== undefined && output.supportedOperators !== null
|
|
3555
|
+
? deserializeAws_restJson1SupportedOperatorList(output.supportedOperators, context)
|
|
3556
|
+
: undefined,
|
|
2862
3557
|
supportedSchedulingFrequencies: output.supportedSchedulingFrequencies !== undefined && output.supportedSchedulingFrequencies !== null
|
|
2863
3558
|
? deserializeAws_restJson1SchedulingFrequencyTypeList(output.supportedSchedulingFrequencies, context)
|
|
2864
3559
|
: undefined,
|
|
2865
3560
|
supportedTriggerTypes: output.supportedTriggerTypes !== undefined && output.supportedTriggerTypes !== null
|
|
2866
3561
|
? deserializeAws_restJson1TriggerTypeList(output.supportedTriggerTypes, context)
|
|
2867
3562
|
: undefined,
|
|
3563
|
+
supportedWriteOperations: output.supportedWriteOperations !== undefined && output.supportedWriteOperations !== null
|
|
3564
|
+
? deserializeAws_restJson1SupportedWriteOperationList(output.supportedWriteOperations, context)
|
|
3565
|
+
: undefined,
|
|
2868
3566
|
};
|
|
2869
3567
|
};
|
|
2870
3568
|
var deserializeAws_restJson1ConnectorConfigurationsMap = function (output, context) {
|
|
@@ -2877,6 +3575,25 @@ var deserializeAws_restJson1ConnectorConfigurationsMap = function (output, conte
|
|
|
2877
3575
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ConnectorConfiguration(value, context), _b));
|
|
2878
3576
|
}, {});
|
|
2879
3577
|
};
|
|
3578
|
+
var deserializeAws_restJson1ConnectorDetail = function (output, context) {
|
|
3579
|
+
return {
|
|
3580
|
+
applicationType: __expectString(output.applicationType),
|
|
3581
|
+
connectorDescription: __expectString(output.connectorDescription),
|
|
3582
|
+
connectorLabel: __expectString(output.connectorLabel),
|
|
3583
|
+
connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
|
|
3584
|
+
? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
|
|
3585
|
+
: undefined,
|
|
3586
|
+
connectorName: __expectString(output.connectorName),
|
|
3587
|
+
connectorOwner: __expectString(output.connectorOwner),
|
|
3588
|
+
connectorProvisioningType: __expectString(output.connectorProvisioningType),
|
|
3589
|
+
connectorType: __expectString(output.connectorType),
|
|
3590
|
+
connectorVersion: __expectString(output.connectorVersion),
|
|
3591
|
+
registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
|
|
3592
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
|
|
3593
|
+
: undefined,
|
|
3594
|
+
registeredBy: __expectString(output.registeredBy),
|
|
3595
|
+
};
|
|
3596
|
+
};
|
|
2880
3597
|
var deserializeAws_restJson1ConnectorEntity = function (output, context) {
|
|
2881
3598
|
return {
|
|
2882
3599
|
hasNestedEntities: __expectBoolean(output.hasNestedEntities),
|
|
@@ -2886,12 +3603,19 @@ var deserializeAws_restJson1ConnectorEntity = function (output, context) {
|
|
|
2886
3603
|
};
|
|
2887
3604
|
var deserializeAws_restJson1ConnectorEntityField = function (output, context) {
|
|
2888
3605
|
return {
|
|
3606
|
+
customProperties: output.customProperties !== undefined && output.customProperties !== null
|
|
3607
|
+
? deserializeAws_restJson1CustomProperties(output.customProperties, context)
|
|
3608
|
+
: undefined,
|
|
3609
|
+
defaultValue: __expectString(output.defaultValue),
|
|
2889
3610
|
description: __expectString(output.description),
|
|
2890
3611
|
destinationProperties: output.destinationProperties !== undefined && output.destinationProperties !== null
|
|
2891
3612
|
? deserializeAws_restJson1DestinationFieldProperties(output.destinationProperties, context)
|
|
2892
3613
|
: undefined,
|
|
2893
3614
|
identifier: __expectString(output.identifier),
|
|
3615
|
+
isDeprecated: __expectBoolean(output.isDeprecated),
|
|
3616
|
+
isPrimaryKey: __expectBoolean(output.isPrimaryKey),
|
|
2894
3617
|
label: __expectString(output.label),
|
|
3618
|
+
parentIdentifier: __expectString(output.parentIdentifier),
|
|
2895
3619
|
sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
|
|
2896
3620
|
? deserializeAws_restJson1SourceFieldProperties(output.sourceProperties, context)
|
|
2897
3621
|
: undefined,
|
|
@@ -2930,6 +3654,16 @@ var deserializeAws_restJson1ConnectorEntityMap = function (output, context) {
|
|
|
2930
3654
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ConnectorEntityList(value, context), _b));
|
|
2931
3655
|
}, {});
|
|
2932
3656
|
};
|
|
3657
|
+
var deserializeAws_restJson1ConnectorList = function (output, context) {
|
|
3658
|
+
return (output || [])
|
|
3659
|
+
.filter(function (e) { return e != null; })
|
|
3660
|
+
.map(function (entry) {
|
|
3661
|
+
if (entry === null) {
|
|
3662
|
+
return null;
|
|
3663
|
+
}
|
|
3664
|
+
return deserializeAws_restJson1ConnectorDetail(entry, context);
|
|
3665
|
+
});
|
|
3666
|
+
};
|
|
2933
3667
|
var deserializeAws_restJson1ConnectorMetadata = function (output, context) {
|
|
2934
3668
|
return {
|
|
2935
3669
|
Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
|
|
@@ -2997,9 +3731,20 @@ var deserializeAws_restJson1ConnectorMetadata = function (output, context) {
|
|
|
2997
3731
|
: undefined,
|
|
2998
3732
|
};
|
|
2999
3733
|
};
|
|
3734
|
+
var deserializeAws_restJson1ConnectorModeList = function (output, context) {
|
|
3735
|
+
return (output || [])
|
|
3736
|
+
.filter(function (e) { return e != null; })
|
|
3737
|
+
.map(function (entry) {
|
|
3738
|
+
if (entry === null) {
|
|
3739
|
+
return null;
|
|
3740
|
+
}
|
|
3741
|
+
return __expectString(entry);
|
|
3742
|
+
});
|
|
3743
|
+
};
|
|
3000
3744
|
var deserializeAws_restJson1ConnectorOperator = function (output, context) {
|
|
3001
3745
|
return {
|
|
3002
3746
|
Amplitude: __expectString(output.Amplitude),
|
|
3747
|
+
CustomConnector: __expectString(output.CustomConnector),
|
|
3003
3748
|
Datadog: __expectString(output.Datadog),
|
|
3004
3749
|
Dynatrace: __expectString(output.Dynatrace),
|
|
3005
3750
|
GoogleAnalytics: __expectString(output.GoogleAnalytics),
|
|
@@ -3019,6 +3764,7 @@ var deserializeAws_restJson1ConnectorOperator = function (output, context) {
|
|
|
3019
3764
|
var deserializeAws_restJson1ConnectorProfile = function (output, context) {
|
|
3020
3765
|
return {
|
|
3021
3766
|
connectionMode: __expectString(output.connectionMode),
|
|
3767
|
+
connectorLabel: __expectString(output.connectorLabel),
|
|
3022
3768
|
connectorProfileArn: __expectString(output.connectorProfileArn),
|
|
3023
3769
|
connectorProfileName: __expectString(output.connectorProfileName),
|
|
3024
3770
|
connectorProfileProperties: output.connectorProfileProperties !== undefined && output.connectorProfileProperties !== null
|
|
@@ -3052,6 +3798,9 @@ var deserializeAws_restJson1ConnectorProfileProperties = function (output, conte
|
|
|
3052
3798
|
Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
|
|
3053
3799
|
? deserializeAws_restJson1AmplitudeConnectorProfileProperties(output.Amplitude, context)
|
|
3054
3800
|
: undefined,
|
|
3801
|
+
CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
|
|
3802
|
+
? deserializeAws_restJson1CustomConnectorProfileProperties(output.CustomConnector, context)
|
|
3803
|
+
: undefined,
|
|
3055
3804
|
Datadog: output.Datadog !== undefined && output.Datadog !== null
|
|
3056
3805
|
? deserializeAws_restJson1DatadogConnectorProfileProperties(output.Datadog, context)
|
|
3057
3806
|
: undefined,
|
|
@@ -3102,6 +3851,56 @@ var deserializeAws_restJson1ConnectorProfileProperties = function (output, conte
|
|
|
3102
3851
|
: undefined,
|
|
3103
3852
|
};
|
|
3104
3853
|
};
|
|
3854
|
+
var deserializeAws_restJson1ConnectorProvisioningConfig = function (output, context) {
|
|
3855
|
+
return {
|
|
3856
|
+
lambda: output.lambda !== undefined && output.lambda !== null
|
|
3857
|
+
? deserializeAws_restJson1LambdaConnectorProvisioningConfig(output.lambda, context)
|
|
3858
|
+
: undefined,
|
|
3859
|
+
};
|
|
3860
|
+
};
|
|
3861
|
+
var deserializeAws_restJson1ConnectorRuntimeSetting = function (output, context) {
|
|
3862
|
+
return {
|
|
3863
|
+
connectorSuppliedValueOptions: output.connectorSuppliedValueOptions !== undefined && output.connectorSuppliedValueOptions !== null
|
|
3864
|
+
? deserializeAws_restJson1ConnectorSuppliedValueOptionList(output.connectorSuppliedValueOptions, context)
|
|
3865
|
+
: undefined,
|
|
3866
|
+
dataType: __expectString(output.dataType),
|
|
3867
|
+
description: __expectString(output.description),
|
|
3868
|
+
isRequired: __expectBoolean(output.isRequired),
|
|
3869
|
+
key: __expectString(output.key),
|
|
3870
|
+
label: __expectString(output.label),
|
|
3871
|
+
scope: __expectString(output.scope),
|
|
3872
|
+
};
|
|
3873
|
+
};
|
|
3874
|
+
var deserializeAws_restJson1ConnectorRuntimeSettingList = function (output, context) {
|
|
3875
|
+
return (output || [])
|
|
3876
|
+
.filter(function (e) { return e != null; })
|
|
3877
|
+
.map(function (entry) {
|
|
3878
|
+
if (entry === null) {
|
|
3879
|
+
return null;
|
|
3880
|
+
}
|
|
3881
|
+
return deserializeAws_restJson1ConnectorRuntimeSetting(entry, context);
|
|
3882
|
+
});
|
|
3883
|
+
};
|
|
3884
|
+
var deserializeAws_restJson1ConnectorSuppliedValueList = function (output, context) {
|
|
3885
|
+
return (output || [])
|
|
3886
|
+
.filter(function (e) { return e != null; })
|
|
3887
|
+
.map(function (entry) {
|
|
3888
|
+
if (entry === null) {
|
|
3889
|
+
return null;
|
|
3890
|
+
}
|
|
3891
|
+
return __expectString(entry);
|
|
3892
|
+
});
|
|
3893
|
+
};
|
|
3894
|
+
var deserializeAws_restJson1ConnectorSuppliedValueOptionList = function (output, context) {
|
|
3895
|
+
return (output || [])
|
|
3896
|
+
.filter(function (e) { return e != null; })
|
|
3897
|
+
.map(function (entry) {
|
|
3898
|
+
if (entry === null) {
|
|
3899
|
+
return null;
|
|
3900
|
+
}
|
|
3901
|
+
return __expectString(entry);
|
|
3902
|
+
});
|
|
3903
|
+
};
|
|
3105
3904
|
var deserializeAws_restJson1ConnectorTypeList = function (output, context) {
|
|
3106
3905
|
return (output || [])
|
|
3107
3906
|
.filter(function (e) { return e != null; })
|
|
@@ -3112,6 +3911,57 @@ var deserializeAws_restJson1ConnectorTypeList = function (output, context) {
|
|
|
3112
3911
|
return __expectString(entry);
|
|
3113
3912
|
});
|
|
3114
3913
|
};
|
|
3914
|
+
var deserializeAws_restJson1CustomAuthConfig = function (output, context) {
|
|
3915
|
+
return {
|
|
3916
|
+
authParameters: output.authParameters !== undefined && output.authParameters !== null
|
|
3917
|
+
? deserializeAws_restJson1AuthParameterList(output.authParameters, context)
|
|
3918
|
+
: undefined,
|
|
3919
|
+
customAuthenticationType: __expectString(output.customAuthenticationType),
|
|
3920
|
+
};
|
|
3921
|
+
};
|
|
3922
|
+
var deserializeAws_restJson1CustomAuthConfigList = function (output, context) {
|
|
3923
|
+
return (output || [])
|
|
3924
|
+
.filter(function (e) { return e != null; })
|
|
3925
|
+
.map(function (entry) {
|
|
3926
|
+
if (entry === null) {
|
|
3927
|
+
return null;
|
|
3928
|
+
}
|
|
3929
|
+
return deserializeAws_restJson1CustomAuthConfig(entry, context);
|
|
3930
|
+
});
|
|
3931
|
+
};
|
|
3932
|
+
var deserializeAws_restJson1CustomConnectorDestinationProperties = function (output, context) {
|
|
3933
|
+
return {
|
|
3934
|
+
customProperties: output.customProperties !== undefined && output.customProperties !== null
|
|
3935
|
+
? deserializeAws_restJson1CustomProperties(output.customProperties, context)
|
|
3936
|
+
: undefined,
|
|
3937
|
+
entityName: __expectString(output.entityName),
|
|
3938
|
+
errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
|
|
3939
|
+
? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
|
|
3940
|
+
: undefined,
|
|
3941
|
+
idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
|
|
3942
|
+
? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
|
|
3943
|
+
: undefined,
|
|
3944
|
+
writeOperationType: __expectString(output.writeOperationType),
|
|
3945
|
+
};
|
|
3946
|
+
};
|
|
3947
|
+
var deserializeAws_restJson1CustomConnectorProfileProperties = function (output, context) {
|
|
3948
|
+
return {
|
|
3949
|
+
oAuth2Properties: output.oAuth2Properties !== undefined && output.oAuth2Properties !== null
|
|
3950
|
+
? deserializeAws_restJson1OAuth2Properties(output.oAuth2Properties, context)
|
|
3951
|
+
: undefined,
|
|
3952
|
+
profileProperties: output.profileProperties !== undefined && output.profileProperties !== null
|
|
3953
|
+
? deserializeAws_restJson1ProfilePropertiesMap(output.profileProperties, context)
|
|
3954
|
+
: undefined,
|
|
3955
|
+
};
|
|
3956
|
+
};
|
|
3957
|
+
var deserializeAws_restJson1CustomConnectorSourceProperties = function (output, context) {
|
|
3958
|
+
return {
|
|
3959
|
+
customProperties: output.customProperties !== undefined && output.customProperties !== null
|
|
3960
|
+
? deserializeAws_restJson1CustomProperties(output.customProperties, context)
|
|
3961
|
+
: undefined,
|
|
3962
|
+
entityName: __expectString(output.entityName),
|
|
3963
|
+
};
|
|
3964
|
+
};
|
|
3115
3965
|
var deserializeAws_restJson1CustomerProfilesDestinationProperties = function (output, context) {
|
|
3116
3966
|
return {
|
|
3117
3967
|
domainName: __expectString(output.domainName),
|
|
@@ -3121,6 +3971,16 @@ var deserializeAws_restJson1CustomerProfilesDestinationProperties = function (ou
|
|
|
3121
3971
|
var deserializeAws_restJson1CustomerProfilesMetadata = function (output, context) {
|
|
3122
3972
|
return {};
|
|
3123
3973
|
};
|
|
3974
|
+
var deserializeAws_restJson1CustomProperties = function (output, context) {
|
|
3975
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
3976
|
+
var _b;
|
|
3977
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
3978
|
+
if (value === null) {
|
|
3979
|
+
return acc;
|
|
3980
|
+
}
|
|
3981
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
3982
|
+
}, {});
|
|
3983
|
+
};
|
|
3124
3984
|
var deserializeAws_restJson1DatadogConnectorProfileProperties = function (output, context) {
|
|
3125
3985
|
return {
|
|
3126
3986
|
instanceUrl: __expectString(output.instanceUrl),
|
|
@@ -3136,6 +3996,9 @@ var deserializeAws_restJson1DatadogSourceProperties = function (output, context)
|
|
|
3136
3996
|
};
|
|
3137
3997
|
var deserializeAws_restJson1DestinationConnectorProperties = function (output, context) {
|
|
3138
3998
|
return {
|
|
3999
|
+
CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
|
|
4000
|
+
? deserializeAws_restJson1CustomConnectorDestinationProperties(output.CustomConnector, context)
|
|
4001
|
+
: undefined,
|
|
3139
4002
|
CustomerProfiles: output.CustomerProfiles !== undefined && output.CustomerProfiles !== null
|
|
3140
4003
|
? deserializeAws_restJson1CustomerProfilesDestinationProperties(output.CustomerProfiles, context)
|
|
3141
4004
|
: undefined,
|
|
@@ -3154,6 +4017,9 @@ var deserializeAws_restJson1DestinationConnectorProperties = function (output, c
|
|
|
3154
4017
|
S3: output.S3 !== undefined && output.S3 !== null
|
|
3155
4018
|
? deserializeAws_restJson1S3DestinationProperties(output.S3, context)
|
|
3156
4019
|
: undefined,
|
|
4020
|
+
SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
|
|
4021
|
+
? deserializeAws_restJson1SAPODataDestinationProperties(output.SAPOData, context)
|
|
4022
|
+
: undefined,
|
|
3157
4023
|
Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
|
|
3158
4024
|
? deserializeAws_restJson1SalesforceDestinationProperties(output.Salesforce, context)
|
|
3159
4025
|
: undefined,
|
|
@@ -3171,6 +4037,7 @@ var deserializeAws_restJson1DestinationConnectorProperties = function (output, c
|
|
|
3171
4037
|
var deserializeAws_restJson1DestinationFieldProperties = function (output, context) {
|
|
3172
4038
|
return {
|
|
3173
4039
|
isCreatable: __expectBoolean(output.isCreatable),
|
|
4040
|
+
isDefaultedOnCreate: __expectBoolean(output.isDefaultedOnCreate),
|
|
3174
4041
|
isNullable: __expectBoolean(output.isNullable),
|
|
3175
4042
|
isUpdatable: __expectBoolean(output.isUpdatable),
|
|
3176
4043
|
isUpsertable: __expectBoolean(output.isUpsertable),
|
|
@@ -3181,6 +4048,7 @@ var deserializeAws_restJson1DestinationFieldProperties = function (output, conte
|
|
|
3181
4048
|
};
|
|
3182
4049
|
var deserializeAws_restJson1DestinationFlowConfig = function (output, context) {
|
|
3183
4050
|
return {
|
|
4051
|
+
apiVersion: __expectString(output.apiVersion),
|
|
3184
4052
|
connectorProfileName: __expectString(output.connectorProfileName),
|
|
3185
4053
|
connectorType: __expectString(output.connectorType),
|
|
3186
4054
|
destinationConnectorProperties: output.destinationConnectorProperties !== undefined && output.destinationConnectorProperties !== null
|
|
@@ -3277,13 +4145,21 @@ var deserializeAws_restJson1ExecutionResult = function (output, context) {
|
|
|
3277
4145
|
};
|
|
3278
4146
|
var deserializeAws_restJson1FieldTypeDetails = function (output, context) {
|
|
3279
4147
|
return {
|
|
4148
|
+
fieldLengthRange: output.fieldLengthRange !== undefined && output.fieldLengthRange !== null
|
|
4149
|
+
? deserializeAws_restJson1Range(output.fieldLengthRange, context)
|
|
4150
|
+
: undefined,
|
|
3280
4151
|
fieldType: __expectString(output.fieldType),
|
|
4152
|
+
fieldValueRange: output.fieldValueRange !== undefined && output.fieldValueRange !== null
|
|
4153
|
+
? deserializeAws_restJson1Range(output.fieldValueRange, context)
|
|
4154
|
+
: undefined,
|
|
3281
4155
|
filterOperators: output.filterOperators !== undefined && output.filterOperators !== null
|
|
3282
4156
|
? deserializeAws_restJson1FilterOperatorList(output.filterOperators, context)
|
|
3283
4157
|
: undefined,
|
|
4158
|
+
supportedDateFormat: __expectString(output.supportedDateFormat),
|
|
3284
4159
|
supportedValues: output.supportedValues !== undefined && output.supportedValues !== null
|
|
3285
4160
|
? deserializeAws_restJson1SupportedValueList(output.supportedValues, context)
|
|
3286
4161
|
: undefined,
|
|
4162
|
+
valueRegexPattern: __expectString(output.valueRegexPattern),
|
|
3287
4163
|
};
|
|
3288
4164
|
};
|
|
3289
4165
|
var deserializeAws_restJson1FilterOperatorList = function (output, context) {
|
|
@@ -3303,6 +4179,7 @@ var deserializeAws_restJson1FlowDefinition = function (output, context) {
|
|
|
3303
4179
|
: undefined,
|
|
3304
4180
|
createdBy: __expectString(output.createdBy),
|
|
3305
4181
|
description: __expectString(output.description),
|
|
4182
|
+
destinationConnectorLabel: __expectString(output.destinationConnectorLabel),
|
|
3306
4183
|
destinationConnectorType: __expectString(output.destinationConnectorType),
|
|
3307
4184
|
flowArn: __expectString(output.flowArn),
|
|
3308
4185
|
flowName: __expectString(output.flowName),
|
|
@@ -3314,6 +4191,7 @@ var deserializeAws_restJson1FlowDefinition = function (output, context) {
|
|
|
3314
4191
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
3315
4192
|
: undefined,
|
|
3316
4193
|
lastUpdatedBy: __expectString(output.lastUpdatedBy),
|
|
4194
|
+
sourceConnectorLabel: __expectString(output.sourceConnectorLabel),
|
|
3317
4195
|
sourceConnectorType: __expectString(output.sourceConnectorType),
|
|
3318
4196
|
tags: output.tags !== undefined && output.tags !== null
|
|
3319
4197
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
@@ -3402,6 +4280,11 @@ var deserializeAws_restJson1InforNexusSourceProperties = function (output, conte
|
|
|
3402
4280
|
object: __expectString(output.object),
|
|
3403
4281
|
};
|
|
3404
4282
|
};
|
|
4283
|
+
var deserializeAws_restJson1LambdaConnectorProvisioningConfig = function (output, context) {
|
|
4284
|
+
return {
|
|
4285
|
+
lambdaArn: __expectString(output.lambdaArn),
|
|
4286
|
+
};
|
|
4287
|
+
};
|
|
3405
4288
|
var deserializeAws_restJson1LookoutMetricsDestinationProperties = function (output, context) {
|
|
3406
4289
|
return {};
|
|
3407
4290
|
};
|
|
@@ -3418,6 +4301,38 @@ var deserializeAws_restJson1MarketoSourceProperties = function (output, context)
|
|
|
3418
4301
|
object: __expectString(output.object),
|
|
3419
4302
|
};
|
|
3420
4303
|
};
|
|
4304
|
+
var deserializeAws_restJson1OAuth2Defaults = function (output, context) {
|
|
4305
|
+
return {
|
|
4306
|
+
authCodeUrls: output.authCodeUrls !== undefined && output.authCodeUrls !== null
|
|
4307
|
+
? deserializeAws_restJson1AuthCodeUrlList(output.authCodeUrls, context)
|
|
4308
|
+
: undefined,
|
|
4309
|
+
oauth2GrantTypesSupported: output.oauth2GrantTypesSupported !== undefined && output.oauth2GrantTypesSupported !== null
|
|
4310
|
+
? deserializeAws_restJson1OAuth2GrantTypeSupportedList(output.oauth2GrantTypesSupported, context)
|
|
4311
|
+
: undefined,
|
|
4312
|
+
oauthScopes: output.oauthScopes !== undefined && output.oauthScopes !== null
|
|
4313
|
+
? deserializeAws_restJson1OAuthScopeList(output.oauthScopes, context)
|
|
4314
|
+
: undefined,
|
|
4315
|
+
tokenUrls: output.tokenUrls !== undefined && output.tokenUrls !== null
|
|
4316
|
+
? deserializeAws_restJson1TokenUrlList(output.tokenUrls, context)
|
|
4317
|
+
: undefined,
|
|
4318
|
+
};
|
|
4319
|
+
};
|
|
4320
|
+
var deserializeAws_restJson1OAuth2GrantTypeSupportedList = function (output, context) {
|
|
4321
|
+
return (output || [])
|
|
4322
|
+
.filter(function (e) { return e != null; })
|
|
4323
|
+
.map(function (entry) {
|
|
4324
|
+
if (entry === null) {
|
|
4325
|
+
return null;
|
|
4326
|
+
}
|
|
4327
|
+
return __expectString(entry);
|
|
4328
|
+
});
|
|
4329
|
+
};
|
|
4330
|
+
var deserializeAws_restJson1OAuth2Properties = function (output, context) {
|
|
4331
|
+
return {
|
|
4332
|
+
oAuth2GrantType: __expectString(output.oAuth2GrantType),
|
|
4333
|
+
tokenUrl: __expectString(output.tokenUrl),
|
|
4334
|
+
};
|
|
4335
|
+
};
|
|
3421
4336
|
var deserializeAws_restJson1OAuthProperties = function (output, context) {
|
|
3422
4337
|
return {
|
|
3423
4338
|
authCodeUrl: __expectString(output.authCodeUrl),
|
|
@@ -3450,6 +4365,22 @@ var deserializeAws_restJson1PrivateConnectionProvisioningState = function (outpu
|
|
|
3450
4365
|
status: __expectString(output.status),
|
|
3451
4366
|
};
|
|
3452
4367
|
};
|
|
4368
|
+
var deserializeAws_restJson1ProfilePropertiesMap = function (output, context) {
|
|
4369
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
4370
|
+
var _b;
|
|
4371
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
4372
|
+
if (value === null) {
|
|
4373
|
+
return acc;
|
|
4374
|
+
}
|
|
4375
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
4376
|
+
}, {});
|
|
4377
|
+
};
|
|
4378
|
+
var deserializeAws_restJson1Range = function (output, context) {
|
|
4379
|
+
return {
|
|
4380
|
+
maximum: __limitedParseDouble(output.maximum),
|
|
4381
|
+
minimum: __limitedParseDouble(output.minimum),
|
|
4382
|
+
};
|
|
4383
|
+
};
|
|
3453
4384
|
var deserializeAws_restJson1RedshiftConnectorProfileProperties = function (output, context) {
|
|
3454
4385
|
return {
|
|
3455
4386
|
bucketName: __expectString(output.bucketName),
|
|
@@ -3563,6 +4494,21 @@ var deserializeAws_restJson1SAPODataConnectorProfileProperties = function (outpu
|
|
|
3563
4494
|
privateLinkServiceName: __expectString(output.privateLinkServiceName),
|
|
3564
4495
|
};
|
|
3565
4496
|
};
|
|
4497
|
+
var deserializeAws_restJson1SAPODataDestinationProperties = function (output, context) {
|
|
4498
|
+
return {
|
|
4499
|
+
errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
|
|
4500
|
+
? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
|
|
4501
|
+
: undefined,
|
|
4502
|
+
idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
|
|
4503
|
+
? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
|
|
4504
|
+
: undefined,
|
|
4505
|
+
objectPath: __expectString(output.objectPath),
|
|
4506
|
+
successResponseHandlingConfig: output.successResponseHandlingConfig !== undefined && output.successResponseHandlingConfig !== null
|
|
4507
|
+
? deserializeAws_restJson1SuccessResponseHandlingConfig(output.successResponseHandlingConfig, context)
|
|
4508
|
+
: undefined,
|
|
4509
|
+
writeOperationType: __expectString(output.writeOperationType),
|
|
4510
|
+
};
|
|
4511
|
+
};
|
|
3566
4512
|
var deserializeAws_restJson1SAPODataMetadata = function (output, context) {
|
|
3567
4513
|
return {};
|
|
3568
4514
|
};
|
|
@@ -3672,6 +4618,9 @@ var deserializeAws_restJson1SourceConnectorProperties = function (output, contex
|
|
|
3672
4618
|
Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
|
|
3673
4619
|
? deserializeAws_restJson1AmplitudeSourceProperties(output.Amplitude, context)
|
|
3674
4620
|
: undefined,
|
|
4621
|
+
CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
|
|
4622
|
+
? deserializeAws_restJson1CustomConnectorSourceProperties(output.CustomConnector, context)
|
|
4623
|
+
: undefined,
|
|
3675
4624
|
Datadog: output.Datadog !== undefined && output.Datadog !== null
|
|
3676
4625
|
? deserializeAws_restJson1DatadogSourceProperties(output.Datadog, context)
|
|
3677
4626
|
: undefined,
|
|
@@ -3720,6 +4669,7 @@ var deserializeAws_restJson1SourceFieldProperties = function (output, context) {
|
|
|
3720
4669
|
return {
|
|
3721
4670
|
isQueryable: __expectBoolean(output.isQueryable),
|
|
3722
4671
|
isRetrievable: __expectBoolean(output.isRetrievable),
|
|
4672
|
+
isTimestampFieldForIncrementalQueries: __expectBoolean(output.isTimestampFieldForIncrementalQueries),
|
|
3723
4673
|
};
|
|
3724
4674
|
};
|
|
3725
4675
|
var deserializeAws_restJson1SourceFields = function (output, context) {
|
|
@@ -3734,6 +4684,7 @@ var deserializeAws_restJson1SourceFields = function (output, context) {
|
|
|
3734
4684
|
};
|
|
3735
4685
|
var deserializeAws_restJson1SourceFlowConfig = function (output, context) {
|
|
3736
4686
|
return {
|
|
4687
|
+
apiVersion: __expectString(output.apiVersion),
|
|
3737
4688
|
connectorProfileName: __expectString(output.connectorProfileName),
|
|
3738
4689
|
connectorType: __expectString(output.connectorType),
|
|
3739
4690
|
incrementalPullConfig: output.incrementalPullConfig !== undefined && output.incrementalPullConfig !== null
|
|
@@ -3744,6 +4695,22 @@ var deserializeAws_restJson1SourceFlowConfig = function (output, context) {
|
|
|
3744
4695
|
: undefined,
|
|
3745
4696
|
};
|
|
3746
4697
|
};
|
|
4698
|
+
var deserializeAws_restJson1SuccessResponseHandlingConfig = function (output, context) {
|
|
4699
|
+
return {
|
|
4700
|
+
bucketName: __expectString(output.bucketName),
|
|
4701
|
+
bucketPrefix: __expectString(output.bucketPrefix),
|
|
4702
|
+
};
|
|
4703
|
+
};
|
|
4704
|
+
var deserializeAws_restJson1SupportedApiVersionList = function (output, context) {
|
|
4705
|
+
return (output || [])
|
|
4706
|
+
.filter(function (e) { return e != null; })
|
|
4707
|
+
.map(function (entry) {
|
|
4708
|
+
if (entry === null) {
|
|
4709
|
+
return null;
|
|
4710
|
+
}
|
|
4711
|
+
return __expectString(entry);
|
|
4712
|
+
});
|
|
4713
|
+
};
|
|
3747
4714
|
var deserializeAws_restJson1SupportedFieldTypeDetails = function (output, context) {
|
|
3748
4715
|
return {
|
|
3749
4716
|
v1: output.v1 !== undefined && output.v1 !== null
|
|
@@ -3751,6 +4718,16 @@ var deserializeAws_restJson1SupportedFieldTypeDetails = function (output, contex
|
|
|
3751
4718
|
: undefined,
|
|
3752
4719
|
};
|
|
3753
4720
|
};
|
|
4721
|
+
var deserializeAws_restJson1SupportedOperatorList = function (output, context) {
|
|
4722
|
+
return (output || [])
|
|
4723
|
+
.filter(function (e) { return e != null; })
|
|
4724
|
+
.map(function (entry) {
|
|
4725
|
+
if (entry === null) {
|
|
4726
|
+
return null;
|
|
4727
|
+
}
|
|
4728
|
+
return __expectString(entry);
|
|
4729
|
+
});
|
|
4730
|
+
};
|
|
3754
4731
|
var deserializeAws_restJson1SupportedValueList = function (output, context) {
|
|
3755
4732
|
return (output || [])
|
|
3756
4733
|
.filter(function (e) { return e != null; })
|
|
@@ -3816,6 +4793,16 @@ var deserializeAws_restJson1Tasks = function (output, context) {
|
|
|
3816
4793
|
return deserializeAws_restJson1Task(entry, context);
|
|
3817
4794
|
});
|
|
3818
4795
|
};
|
|
4796
|
+
var deserializeAws_restJson1TokenUrlList = function (output, context) {
|
|
4797
|
+
return (output || [])
|
|
4798
|
+
.filter(function (e) { return e != null; })
|
|
4799
|
+
.map(function (entry) {
|
|
4800
|
+
if (entry === null) {
|
|
4801
|
+
return null;
|
|
4802
|
+
}
|
|
4803
|
+
return __expectString(entry);
|
|
4804
|
+
});
|
|
4805
|
+
};
|
|
3819
4806
|
var deserializeAws_restJson1TrendmicroConnectorProfileProperties = function (output, context) {
|
|
3820
4807
|
return {};
|
|
3821
4808
|
};
|