@aws-sdk/client-appflow 3.47.2 → 3.51.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist-cjs/Appflow.js +60 -0
  3. package/dist-cjs/commands/DescribeConnectorCommand.js +36 -0
  4. package/dist-cjs/commands/ListConnectorsCommand.js +36 -0
  5. package/dist-cjs/commands/RegisterConnectorCommand.js +36 -0
  6. package/dist-cjs/commands/UnregisterConnectorCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +226 -16
  9. package/dist-cjs/pagination/DescribeConnectorsPaginator.js +1 -0
  10. package/dist-cjs/pagination/ListConnectorsPaginator.js +35 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +933 -1
  13. package/dist-es/Appflow.js +60 -0
  14. package/dist-es/commands/DescribeConnectorCommand.js +39 -0
  15. package/dist-es/commands/ListConnectorsCommand.js +39 -0
  16. package/dist-es/commands/RegisterConnectorCommand.js +39 -0
  17. package/dist-es/commands/UnregisterConnectorCommand.js +39 -0
  18. package/dist-es/commands/index.js +4 -0
  19. package/dist-es/models/models_0.js +159 -15
  20. package/dist-es/pagination/DescribeConnectorsPaginator.js +1 -0
  21. package/dist-es/pagination/ListConnectorsPaginator.js +74 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +961 -17
  24. package/dist-types/Appflow.d.ts +38 -4
  25. package/dist-types/AppflowClient.d.ts +6 -2
  26. package/dist-types/commands/CreateConnectorProfileCommand.d.ts +4 -4
  27. package/dist-types/commands/DescribeConnectorCommand.d.ts +37 -0
  28. package/dist-types/commands/ListConnectorsCommand.d.ts +37 -0
  29. package/dist-types/commands/RegisterConnectorCommand.d.ts +36 -0
  30. package/dist-types/commands/UnregisterConnectorCommand.d.ts +36 -0
  31. package/dist-types/commands/index.d.ts +4 -0
  32. package/dist-types/models/models_0.d.ts +887 -42
  33. package/dist-types/pagination/ListConnectorsPaginator.d.ts +4 -0
  34. package/dist-types/pagination/index.d.ts +1 -0
  35. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  36. package/dist-types/ts3.4/Appflow.d.ts +20 -0
  37. package/dist-types/ts3.4/AppflowClient.d.ts +6 -2
  38. package/dist-types/ts3.4/commands/DescribeConnectorCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/RegisterConnectorCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/UnregisterConnectorCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +491 -16
  44. package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +4 -0
  45. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  47. package/package.json +39 -33
@@ -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.connectorProfileConfig !== undefined &&
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.connectorProfileNames !== undefined &&
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,6 +1812,132 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
1551
1812
  }
1552
1813
  });
1553
1814
  }); };
1815
+ export var deserializeAws_restJson1RegisterConnectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1816
+ var contents, data, _a, _b;
1817
+ return __generator(this, function (_c) {
1818
+ switch (_c.label) {
1819
+ case 0:
1820
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1821
+ return [2, deserializeAws_restJson1RegisterConnectorCommandError(output, context)];
1822
+ }
1823
+ contents = {
1824
+ $metadata: deserializeMetadata(output),
1825
+ connectorArn: undefined,
1826
+ };
1827
+ _a = __expectNonNull;
1828
+ _b = __expectObject;
1829
+ return [4, parseBody(output.body, context)];
1830
+ case 1:
1831
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1832
+ if (data.connectorArn !== undefined && data.connectorArn !== null) {
1833
+ contents.connectorArn = __expectString(data.connectorArn);
1834
+ }
1835
+ return [2, Promise.resolve(contents)];
1836
+ }
1837
+ });
1838
+ }); };
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) {
1844
+ case 0:
1845
+ _a = [__assign({}, output)];
1846
+ _m = {};
1847
+ return [4, parseBody(output.body, context)];
1848
+ case 1:
1849
+ parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
1850
+ errorCode = "UnknownError";
1851
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1852
+ _b = errorCode;
1853
+ switch (_b) {
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];
1872
+ }
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
+ }); };
1554
1941
  export var deserializeAws_restJson1StartFlowCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1555
1942
  var contents, data, _a, _b;
1556
1943
  return __generator(this, function (_c) {
@@ -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) {
@@ -2163,11 +2638,27 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
2163
2638
  return [2, contents];
2164
2639
  });
2165
2640
  }); };
2166
- var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
2641
+ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
2642
+ var contents, data;
2643
+ return __generator(this, function (_a) {
2644
+ contents = {
2645
+ name: "ServiceQuotaExceededException",
2646
+ $fault: "client",
2647
+ $metadata: deserializeMetadata(parsedOutput),
2648
+ message: undefined,
2649
+ };
2650
+ data = parsedOutput.body;
2651
+ if (data.message !== undefined && data.message !== null) {
2652
+ contents.message = __expectString(data.message);
2653
+ }
2654
+ return [2, contents];
2655
+ });
2656
+ }); };
2657
+ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
2167
2658
  var contents, data;
2168
2659
  return __generator(this, function (_a) {
2169
2660
  contents = {
2170
- name: "ServiceQuotaExceededException",
2661
+ name: "ThrottlingException",
2171
2662
  $fault: "client",
2172
2663
  $metadata: deserializeMetadata(parsedOutput),
2173
2664
  message: undefined,
@@ -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.Datadog !== undefined && input.Datadog !== null && { Datadog: input.Datadog })), (input.Dynatrace !== undefined && input.Dynatrace !== null && { Dynatrace: input.Dynatrace })), (input.GoogleAnalytics !== undefined &&
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.CustomerProfiles !== undefined &&
2951
+ return __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 &&
@@ -2409,7 +2982,7 @@ var serializeAws_restJson1DestinationConnectorProperties = function (input, cont
2409
2982
  }));
2410
2983
  };
2411
2984
  var serializeAws_restJson1DestinationFlowConfig = function (input, context) {
2412
- return __assign(__assign(__assign({}, (input.connectorProfileName !== undefined &&
2985
+ return __assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorProfileName !== undefined &&
2413
2986
  input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.destinationConnectorProperties !== undefined &&
2414
2987
  input.destinationConnectorProperties !== null && {
2415
2988
  destinationConnectorProperties: serializeAws_restJson1DestinationConnectorProperties(input.destinationConnectorProperties, context),
@@ -2495,6 +3068,9 @@ var serializeAws_restJson1InforNexusConnectorProfileProperties = function (input
2495
3068
  var serializeAws_restJson1InforNexusSourceProperties = function (input, context) {
2496
3069
  return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2497
3070
  };
3071
+ var serializeAws_restJson1LambdaConnectorProvisioningConfig = function (input, context) {
3072
+ return __assign({}, (input.lambdaArn !== undefined && input.lambdaArn !== null && { lambdaArn: input.lambdaArn }));
3073
+ };
2498
3074
  var serializeAws_restJson1LookoutMetricsDestinationProperties = function (input, context) {
2499
3075
  return {};
2500
3076
  };
@@ -2510,6 +3086,16 @@ var serializeAws_restJson1MarketoConnectorProfileProperties = function (input, c
2510
3086
  var serializeAws_restJson1MarketoSourceProperties = function (input, context) {
2511
3087
  return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2512
3088
  };
3089
+ var serializeAws_restJson1OAuth2Credentials = function (input, context) {
3090
+ 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 &&
3091
+ input.oAuthRequest !== null && {
3092
+ oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
3093
+ })), (input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }));
3094
+ };
3095
+ var serializeAws_restJson1OAuth2Properties = function (input, context) {
3096
+ return __assign(__assign({}, (input.oAuth2GrantType !== undefined &&
3097
+ input.oAuth2GrantType !== null && { oAuth2GrantType: input.oAuth2GrantType })), (input.tokenUrl !== undefined && input.tokenUrl !== null && { tokenUrl: input.tokenUrl }));
3098
+ };
2513
3099
  var serializeAws_restJson1OAuthCredentials = function (input, context) {
2514
3100
  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
3101
  input.oAuthRequest !== null && {
@@ -2533,6 +3119,16 @@ var serializeAws_restJson1OAuthScopeList = function (input, context) {
2533
3119
  var serializeAws_restJson1PrefixConfig = function (input, context) {
2534
3120
  return __assign(__assign({}, (input.prefixFormat !== undefined && input.prefixFormat !== null && { prefixFormat: input.prefixFormat })), (input.prefixType !== undefined && input.prefixType !== null && { prefixType: input.prefixType }));
2535
3121
  };
3122
+ var serializeAws_restJson1ProfilePropertiesMap = function (input, context) {
3123
+ return Object.entries(input).reduce(function (acc, _a) {
3124
+ var _b;
3125
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
3126
+ if (value === null) {
3127
+ return acc;
3128
+ }
3129
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
3130
+ }, {});
3131
+ };
2536
3132
  var serializeAws_restJson1RedshiftConnectorProfileCredentials = function (input, context) {
2537
3133
  return __assign(__assign({}, (input.password !== undefined && input.password !== null && { password: input.password })), (input.username !== undefined && input.username !== null && { username: input.username }));
2538
3134
  };
@@ -2671,9 +3267,12 @@ var serializeAws_restJson1SnowflakeDestinationProperties = function (input, cont
2671
3267
  input.intermediateBucketName !== null && { intermediateBucketName: input.intermediateBucketName })), (input.object !== undefined && input.object !== null && { object: input.object }));
2672
3268
  };
2673
3269
  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 &&
3270
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
2675
3271
  input.Amplitude !== null && {
2676
3272
  Amplitude: serializeAws_restJson1AmplitudeSourceProperties(input.Amplitude, context),
3273
+ })), (input.CustomConnector !== undefined &&
3274
+ input.CustomConnector !== null && {
3275
+ CustomConnector: serializeAws_restJson1CustomConnectorSourceProperties(input.CustomConnector, context),
2677
3276
  })), (input.Datadog !== undefined &&
2678
3277
  input.Datadog !== null && { Datadog: serializeAws_restJson1DatadogSourceProperties(input.Datadog, context) })), (input.Dynatrace !== undefined &&
2679
3278
  input.Dynatrace !== null && {
@@ -2713,7 +3312,7 @@ var serializeAws_restJson1SourceFields = function (input, context) {
2713
3312
  });
2714
3313
  };
2715
3314
  var serializeAws_restJson1SourceFlowConfig = function (input, context) {
2716
- return __assign(__assign(__assign(__assign({}, (input.connectorProfileName !== undefined &&
3315
+ return __assign(__assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorProfileName !== undefined &&
2717
3316
  input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.incrementalPullConfig !== undefined &&
2718
3317
  input.incrementalPullConfig !== null && {
2719
3318
  incrementalPullConfig: serializeAws_restJson1IncrementalPullConfig(input.incrementalPullConfig, context),
@@ -2847,24 +3446,104 @@ var deserializeAws_restJson1AmplitudeSourceProperties = function (output, contex
2847
3446
  object: __expectString(output.object),
2848
3447
  };
2849
3448
  };
3449
+ var deserializeAws_restJson1AuthCodeUrlList = function (output, context) {
3450
+ return (output || [])
3451
+ .filter(function (e) { return e != null; })
3452
+ .map(function (entry) {
3453
+ if (entry === null) {
3454
+ return null;
3455
+ }
3456
+ return __expectString(entry);
3457
+ });
3458
+ };
3459
+ var deserializeAws_restJson1AuthenticationConfig = function (output, context) {
3460
+ return {
3461
+ customAuthConfigs: output.customAuthConfigs !== undefined && output.customAuthConfigs !== null
3462
+ ? deserializeAws_restJson1CustomAuthConfigList(output.customAuthConfigs, context)
3463
+ : undefined,
3464
+ isApiKeyAuthSupported: __expectBoolean(output.isApiKeyAuthSupported),
3465
+ isBasicAuthSupported: __expectBoolean(output.isBasicAuthSupported),
3466
+ isCustomAuthSupported: __expectBoolean(output.isCustomAuthSupported),
3467
+ isOAuth2Supported: __expectBoolean(output.isOAuth2Supported),
3468
+ oAuth2Defaults: output.oAuth2Defaults !== undefined && output.oAuth2Defaults !== null
3469
+ ? deserializeAws_restJson1OAuth2Defaults(output.oAuth2Defaults, context)
3470
+ : undefined,
3471
+ };
3472
+ };
3473
+ var deserializeAws_restJson1AuthParameter = function (output, context) {
3474
+ return {
3475
+ connectorSuppliedValues: output.connectorSuppliedValues !== undefined && output.connectorSuppliedValues !== null
3476
+ ? deserializeAws_restJson1ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
3477
+ : undefined,
3478
+ description: __expectString(output.description),
3479
+ isRequired: __expectBoolean(output.isRequired),
3480
+ isSensitiveField: __expectBoolean(output.isSensitiveField),
3481
+ key: __expectString(output.key),
3482
+ label: __expectString(output.label),
3483
+ };
3484
+ };
3485
+ var deserializeAws_restJson1AuthParameterList = function (output, context) {
3486
+ return (output || [])
3487
+ .filter(function (e) { return e != null; })
3488
+ .map(function (entry) {
3489
+ if (entry === null) {
3490
+ return null;
3491
+ }
3492
+ return deserializeAws_restJson1AuthParameter(entry, context);
3493
+ });
3494
+ };
2850
3495
  var deserializeAws_restJson1ConnectorConfiguration = function (output, context) {
2851
3496
  return {
3497
+ authenticationConfig: output.authenticationConfig !== undefined && output.authenticationConfig !== null
3498
+ ? deserializeAws_restJson1AuthenticationConfig(output.authenticationConfig, context)
3499
+ : undefined,
2852
3500
  canUseAsDestination: __expectBoolean(output.canUseAsDestination),
2853
3501
  canUseAsSource: __expectBoolean(output.canUseAsSource),
3502
+ connectorArn: __expectString(output.connectorArn),
3503
+ connectorDescription: __expectString(output.connectorDescription),
3504
+ connectorLabel: __expectString(output.connectorLabel),
2854
3505
  connectorMetadata: output.connectorMetadata !== undefined && output.connectorMetadata !== null
2855
3506
  ? deserializeAws_restJson1ConnectorMetadata(output.connectorMetadata, context)
2856
3507
  : undefined,
3508
+ connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
3509
+ ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3510
+ : undefined,
3511
+ connectorName: __expectString(output.connectorName),
3512
+ connectorOwner: __expectString(output.connectorOwner),
3513
+ connectorProvisioningConfig: output.connectorProvisioningConfig !== undefined && output.connectorProvisioningConfig !== null
3514
+ ? deserializeAws_restJson1ConnectorProvisioningConfig(output.connectorProvisioningConfig, context)
3515
+ : undefined,
3516
+ connectorProvisioningType: __expectString(output.connectorProvisioningType),
3517
+ connectorRuntimeSettings: output.connectorRuntimeSettings !== undefined && output.connectorRuntimeSettings !== null
3518
+ ? deserializeAws_restJson1ConnectorRuntimeSettingList(output.connectorRuntimeSettings, context)
3519
+ : undefined,
3520
+ connectorType: __expectString(output.connectorType),
3521
+ connectorVersion: __expectString(output.connectorVersion),
2857
3522
  isPrivateLinkEnabled: __expectBoolean(output.isPrivateLinkEnabled),
2858
3523
  isPrivateLinkEndpointUrlRequired: __expectBoolean(output.isPrivateLinkEndpointUrlRequired),
3524
+ logoURL: __expectString(output.logoURL),
3525
+ registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
3526
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
3527
+ : undefined,
3528
+ registeredBy: __expectString(output.registeredBy),
3529
+ supportedApiVersions: output.supportedApiVersions !== undefined && output.supportedApiVersions !== null
3530
+ ? deserializeAws_restJson1SupportedApiVersionList(output.supportedApiVersions, context)
3531
+ : undefined,
2859
3532
  supportedDestinationConnectors: output.supportedDestinationConnectors !== undefined && output.supportedDestinationConnectors !== null
2860
3533
  ? deserializeAws_restJson1ConnectorTypeList(output.supportedDestinationConnectors, context)
2861
3534
  : undefined,
3535
+ supportedOperators: output.supportedOperators !== undefined && output.supportedOperators !== null
3536
+ ? deserializeAws_restJson1SupportedOperatorList(output.supportedOperators, context)
3537
+ : undefined,
2862
3538
  supportedSchedulingFrequencies: output.supportedSchedulingFrequencies !== undefined && output.supportedSchedulingFrequencies !== null
2863
3539
  ? deserializeAws_restJson1SchedulingFrequencyTypeList(output.supportedSchedulingFrequencies, context)
2864
3540
  : undefined,
2865
3541
  supportedTriggerTypes: output.supportedTriggerTypes !== undefined && output.supportedTriggerTypes !== null
2866
3542
  ? deserializeAws_restJson1TriggerTypeList(output.supportedTriggerTypes, context)
2867
3543
  : undefined,
3544
+ supportedWriteOperations: output.supportedWriteOperations !== undefined && output.supportedWriteOperations !== null
3545
+ ? deserializeAws_restJson1SupportedWriteOperationList(output.supportedWriteOperations, context)
3546
+ : undefined,
2868
3547
  };
2869
3548
  };
2870
3549
  var deserializeAws_restJson1ConnectorConfigurationsMap = function (output, context) {
@@ -2877,6 +3556,25 @@ var deserializeAws_restJson1ConnectorConfigurationsMap = function (output, conte
2877
3556
  return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ConnectorConfiguration(value, context), _b));
2878
3557
  }, {});
2879
3558
  };
3559
+ var deserializeAws_restJson1ConnectorDetail = function (output, context) {
3560
+ return {
3561
+ applicationType: __expectString(output.applicationType),
3562
+ connectorDescription: __expectString(output.connectorDescription),
3563
+ connectorLabel: __expectString(output.connectorLabel),
3564
+ connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
3565
+ ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3566
+ : undefined,
3567
+ connectorName: __expectString(output.connectorName),
3568
+ connectorOwner: __expectString(output.connectorOwner),
3569
+ connectorProvisioningType: __expectString(output.connectorProvisioningType),
3570
+ connectorType: __expectString(output.connectorType),
3571
+ connectorVersion: __expectString(output.connectorVersion),
3572
+ registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
3573
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
3574
+ : undefined,
3575
+ registeredBy: __expectString(output.registeredBy),
3576
+ };
3577
+ };
2880
3578
  var deserializeAws_restJson1ConnectorEntity = function (output, context) {
2881
3579
  return {
2882
3580
  hasNestedEntities: __expectBoolean(output.hasNestedEntities),
@@ -2886,12 +3584,19 @@ var deserializeAws_restJson1ConnectorEntity = function (output, context) {
2886
3584
  };
2887
3585
  var deserializeAws_restJson1ConnectorEntityField = function (output, context) {
2888
3586
  return {
3587
+ customProperties: output.customProperties !== undefined && output.customProperties !== null
3588
+ ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3589
+ : undefined,
3590
+ defaultValue: __expectString(output.defaultValue),
2889
3591
  description: __expectString(output.description),
2890
3592
  destinationProperties: output.destinationProperties !== undefined && output.destinationProperties !== null
2891
3593
  ? deserializeAws_restJson1DestinationFieldProperties(output.destinationProperties, context)
2892
3594
  : undefined,
2893
3595
  identifier: __expectString(output.identifier),
3596
+ isDeprecated: __expectBoolean(output.isDeprecated),
3597
+ isPrimaryKey: __expectBoolean(output.isPrimaryKey),
2894
3598
  label: __expectString(output.label),
3599
+ parentIdentifier: __expectString(output.parentIdentifier),
2895
3600
  sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
2896
3601
  ? deserializeAws_restJson1SourceFieldProperties(output.sourceProperties, context)
2897
3602
  : undefined,
@@ -2930,6 +3635,16 @@ var deserializeAws_restJson1ConnectorEntityMap = function (output, context) {
2930
3635
  return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ConnectorEntityList(value, context), _b));
2931
3636
  }, {});
2932
3637
  };
3638
+ var deserializeAws_restJson1ConnectorList = function (output, context) {
3639
+ return (output || [])
3640
+ .filter(function (e) { return e != null; })
3641
+ .map(function (entry) {
3642
+ if (entry === null) {
3643
+ return null;
3644
+ }
3645
+ return deserializeAws_restJson1ConnectorDetail(entry, context);
3646
+ });
3647
+ };
2933
3648
  var deserializeAws_restJson1ConnectorMetadata = function (output, context) {
2934
3649
  return {
2935
3650
  Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
@@ -2997,9 +3712,20 @@ var deserializeAws_restJson1ConnectorMetadata = function (output, context) {
2997
3712
  : undefined,
2998
3713
  };
2999
3714
  };
3715
+ var deserializeAws_restJson1ConnectorModeList = function (output, context) {
3716
+ return (output || [])
3717
+ .filter(function (e) { return e != null; })
3718
+ .map(function (entry) {
3719
+ if (entry === null) {
3720
+ return null;
3721
+ }
3722
+ return __expectString(entry);
3723
+ });
3724
+ };
3000
3725
  var deserializeAws_restJson1ConnectorOperator = function (output, context) {
3001
3726
  return {
3002
3727
  Amplitude: __expectString(output.Amplitude),
3728
+ CustomConnector: __expectString(output.CustomConnector),
3003
3729
  Datadog: __expectString(output.Datadog),
3004
3730
  Dynatrace: __expectString(output.Dynatrace),
3005
3731
  GoogleAnalytics: __expectString(output.GoogleAnalytics),
@@ -3019,6 +3745,7 @@ var deserializeAws_restJson1ConnectorOperator = function (output, context) {
3019
3745
  var deserializeAws_restJson1ConnectorProfile = function (output, context) {
3020
3746
  return {
3021
3747
  connectionMode: __expectString(output.connectionMode),
3748
+ connectorLabel: __expectString(output.connectorLabel),
3022
3749
  connectorProfileArn: __expectString(output.connectorProfileArn),
3023
3750
  connectorProfileName: __expectString(output.connectorProfileName),
3024
3751
  connectorProfileProperties: output.connectorProfileProperties !== undefined && output.connectorProfileProperties !== null
@@ -3052,6 +3779,9 @@ var deserializeAws_restJson1ConnectorProfileProperties = function (output, conte
3052
3779
  Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3053
3780
  ? deserializeAws_restJson1AmplitudeConnectorProfileProperties(output.Amplitude, context)
3054
3781
  : undefined,
3782
+ CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
3783
+ ? deserializeAws_restJson1CustomConnectorProfileProperties(output.CustomConnector, context)
3784
+ : undefined,
3055
3785
  Datadog: output.Datadog !== undefined && output.Datadog !== null
3056
3786
  ? deserializeAws_restJson1DatadogConnectorProfileProperties(output.Datadog, context)
3057
3787
  : undefined,
@@ -3102,6 +3832,56 @@ var deserializeAws_restJson1ConnectorProfileProperties = function (output, conte
3102
3832
  : undefined,
3103
3833
  };
3104
3834
  };
3835
+ var deserializeAws_restJson1ConnectorProvisioningConfig = function (output, context) {
3836
+ return {
3837
+ lambda: output.lambda !== undefined && output.lambda !== null
3838
+ ? deserializeAws_restJson1LambdaConnectorProvisioningConfig(output.lambda, context)
3839
+ : undefined,
3840
+ };
3841
+ };
3842
+ var deserializeAws_restJson1ConnectorRuntimeSetting = function (output, context) {
3843
+ return {
3844
+ connectorSuppliedValueOptions: output.connectorSuppliedValueOptions !== undefined && output.connectorSuppliedValueOptions !== null
3845
+ ? deserializeAws_restJson1ConnectorSuppliedValueOptionList(output.connectorSuppliedValueOptions, context)
3846
+ : undefined,
3847
+ dataType: __expectString(output.dataType),
3848
+ description: __expectString(output.description),
3849
+ isRequired: __expectBoolean(output.isRequired),
3850
+ key: __expectString(output.key),
3851
+ label: __expectString(output.label),
3852
+ scope: __expectString(output.scope),
3853
+ };
3854
+ };
3855
+ var deserializeAws_restJson1ConnectorRuntimeSettingList = function (output, context) {
3856
+ return (output || [])
3857
+ .filter(function (e) { return e != null; })
3858
+ .map(function (entry) {
3859
+ if (entry === null) {
3860
+ return null;
3861
+ }
3862
+ return deserializeAws_restJson1ConnectorRuntimeSetting(entry, context);
3863
+ });
3864
+ };
3865
+ var deserializeAws_restJson1ConnectorSuppliedValueList = function (output, context) {
3866
+ return (output || [])
3867
+ .filter(function (e) { return e != null; })
3868
+ .map(function (entry) {
3869
+ if (entry === null) {
3870
+ return null;
3871
+ }
3872
+ return __expectString(entry);
3873
+ });
3874
+ };
3875
+ var deserializeAws_restJson1ConnectorSuppliedValueOptionList = function (output, context) {
3876
+ return (output || [])
3877
+ .filter(function (e) { return e != null; })
3878
+ .map(function (entry) {
3879
+ if (entry === null) {
3880
+ return null;
3881
+ }
3882
+ return __expectString(entry);
3883
+ });
3884
+ };
3105
3885
  var deserializeAws_restJson1ConnectorTypeList = function (output, context) {
3106
3886
  return (output || [])
3107
3887
  .filter(function (e) { return e != null; })
@@ -3112,6 +3892,57 @@ var deserializeAws_restJson1ConnectorTypeList = function (output, context) {
3112
3892
  return __expectString(entry);
3113
3893
  });
3114
3894
  };
3895
+ var deserializeAws_restJson1CustomAuthConfig = function (output, context) {
3896
+ return {
3897
+ authParameters: output.authParameters !== undefined && output.authParameters !== null
3898
+ ? deserializeAws_restJson1AuthParameterList(output.authParameters, context)
3899
+ : undefined,
3900
+ customAuthenticationType: __expectString(output.customAuthenticationType),
3901
+ };
3902
+ };
3903
+ var deserializeAws_restJson1CustomAuthConfigList = function (output, context) {
3904
+ return (output || [])
3905
+ .filter(function (e) { return e != null; })
3906
+ .map(function (entry) {
3907
+ if (entry === null) {
3908
+ return null;
3909
+ }
3910
+ return deserializeAws_restJson1CustomAuthConfig(entry, context);
3911
+ });
3912
+ };
3913
+ var deserializeAws_restJson1CustomConnectorDestinationProperties = function (output, context) {
3914
+ return {
3915
+ customProperties: output.customProperties !== undefined && output.customProperties !== null
3916
+ ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3917
+ : undefined,
3918
+ entityName: __expectString(output.entityName),
3919
+ errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3920
+ ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3921
+ : undefined,
3922
+ idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
3923
+ ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
3924
+ : undefined,
3925
+ writeOperationType: __expectString(output.writeOperationType),
3926
+ };
3927
+ };
3928
+ var deserializeAws_restJson1CustomConnectorProfileProperties = function (output, context) {
3929
+ return {
3930
+ oAuth2Properties: output.oAuth2Properties !== undefined && output.oAuth2Properties !== null
3931
+ ? deserializeAws_restJson1OAuth2Properties(output.oAuth2Properties, context)
3932
+ : undefined,
3933
+ profileProperties: output.profileProperties !== undefined && output.profileProperties !== null
3934
+ ? deserializeAws_restJson1ProfilePropertiesMap(output.profileProperties, context)
3935
+ : undefined,
3936
+ };
3937
+ };
3938
+ var deserializeAws_restJson1CustomConnectorSourceProperties = function (output, context) {
3939
+ return {
3940
+ customProperties: output.customProperties !== undefined && output.customProperties !== null
3941
+ ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3942
+ : undefined,
3943
+ entityName: __expectString(output.entityName),
3944
+ };
3945
+ };
3115
3946
  var deserializeAws_restJson1CustomerProfilesDestinationProperties = function (output, context) {
3116
3947
  return {
3117
3948
  domainName: __expectString(output.domainName),
@@ -3121,6 +3952,16 @@ var deserializeAws_restJson1CustomerProfilesDestinationProperties = function (ou
3121
3952
  var deserializeAws_restJson1CustomerProfilesMetadata = function (output, context) {
3122
3953
  return {};
3123
3954
  };
3955
+ var deserializeAws_restJson1CustomProperties = function (output, context) {
3956
+ return Object.entries(output).reduce(function (acc, _a) {
3957
+ var _b;
3958
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
3959
+ if (value === null) {
3960
+ return acc;
3961
+ }
3962
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
3963
+ }, {});
3964
+ };
3124
3965
  var deserializeAws_restJson1DatadogConnectorProfileProperties = function (output, context) {
3125
3966
  return {
3126
3967
  instanceUrl: __expectString(output.instanceUrl),
@@ -3136,6 +3977,9 @@ var deserializeAws_restJson1DatadogSourceProperties = function (output, context)
3136
3977
  };
3137
3978
  var deserializeAws_restJson1DestinationConnectorProperties = function (output, context) {
3138
3979
  return {
3980
+ CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
3981
+ ? deserializeAws_restJson1CustomConnectorDestinationProperties(output.CustomConnector, context)
3982
+ : undefined,
3139
3983
  CustomerProfiles: output.CustomerProfiles !== undefined && output.CustomerProfiles !== null
3140
3984
  ? deserializeAws_restJson1CustomerProfilesDestinationProperties(output.CustomerProfiles, context)
3141
3985
  : undefined,
@@ -3171,6 +4015,7 @@ var deserializeAws_restJson1DestinationConnectorProperties = function (output, c
3171
4015
  var deserializeAws_restJson1DestinationFieldProperties = function (output, context) {
3172
4016
  return {
3173
4017
  isCreatable: __expectBoolean(output.isCreatable),
4018
+ isDefaultedOnCreate: __expectBoolean(output.isDefaultedOnCreate),
3174
4019
  isNullable: __expectBoolean(output.isNullable),
3175
4020
  isUpdatable: __expectBoolean(output.isUpdatable),
3176
4021
  isUpsertable: __expectBoolean(output.isUpsertable),
@@ -3181,6 +4026,7 @@ var deserializeAws_restJson1DestinationFieldProperties = function (output, conte
3181
4026
  };
3182
4027
  var deserializeAws_restJson1DestinationFlowConfig = function (output, context) {
3183
4028
  return {
4029
+ apiVersion: __expectString(output.apiVersion),
3184
4030
  connectorProfileName: __expectString(output.connectorProfileName),
3185
4031
  connectorType: __expectString(output.connectorType),
3186
4032
  destinationConnectorProperties: output.destinationConnectorProperties !== undefined && output.destinationConnectorProperties !== null
@@ -3277,13 +4123,21 @@ var deserializeAws_restJson1ExecutionResult = function (output, context) {
3277
4123
  };
3278
4124
  var deserializeAws_restJson1FieldTypeDetails = function (output, context) {
3279
4125
  return {
4126
+ fieldLengthRange: output.fieldLengthRange !== undefined && output.fieldLengthRange !== null
4127
+ ? deserializeAws_restJson1Range(output.fieldLengthRange, context)
4128
+ : undefined,
3280
4129
  fieldType: __expectString(output.fieldType),
4130
+ fieldValueRange: output.fieldValueRange !== undefined && output.fieldValueRange !== null
4131
+ ? deserializeAws_restJson1Range(output.fieldValueRange, context)
4132
+ : undefined,
3281
4133
  filterOperators: output.filterOperators !== undefined && output.filterOperators !== null
3282
4134
  ? deserializeAws_restJson1FilterOperatorList(output.filterOperators, context)
3283
4135
  : undefined,
4136
+ supportedDateFormat: __expectString(output.supportedDateFormat),
3284
4137
  supportedValues: output.supportedValues !== undefined && output.supportedValues !== null
3285
4138
  ? deserializeAws_restJson1SupportedValueList(output.supportedValues, context)
3286
4139
  : undefined,
4140
+ valueRegexPattern: __expectString(output.valueRegexPattern),
3287
4141
  };
3288
4142
  };
3289
4143
  var deserializeAws_restJson1FilterOperatorList = function (output, context) {
@@ -3303,6 +4157,7 @@ var deserializeAws_restJson1FlowDefinition = function (output, context) {
3303
4157
  : undefined,
3304
4158
  createdBy: __expectString(output.createdBy),
3305
4159
  description: __expectString(output.description),
4160
+ destinationConnectorLabel: __expectString(output.destinationConnectorLabel),
3306
4161
  destinationConnectorType: __expectString(output.destinationConnectorType),
3307
4162
  flowArn: __expectString(output.flowArn),
3308
4163
  flowName: __expectString(output.flowName),
@@ -3314,6 +4169,7 @@ var deserializeAws_restJson1FlowDefinition = function (output, context) {
3314
4169
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
3315
4170
  : undefined,
3316
4171
  lastUpdatedBy: __expectString(output.lastUpdatedBy),
4172
+ sourceConnectorLabel: __expectString(output.sourceConnectorLabel),
3317
4173
  sourceConnectorType: __expectString(output.sourceConnectorType),
3318
4174
  tags: output.tags !== undefined && output.tags !== null
3319
4175
  ? deserializeAws_restJson1TagMap(output.tags, context)
@@ -3402,6 +4258,11 @@ var deserializeAws_restJson1InforNexusSourceProperties = function (output, conte
3402
4258
  object: __expectString(output.object),
3403
4259
  };
3404
4260
  };
4261
+ var deserializeAws_restJson1LambdaConnectorProvisioningConfig = function (output, context) {
4262
+ return {
4263
+ lambdaArn: __expectString(output.lambdaArn),
4264
+ };
4265
+ };
3405
4266
  var deserializeAws_restJson1LookoutMetricsDestinationProperties = function (output, context) {
3406
4267
  return {};
3407
4268
  };
@@ -3418,6 +4279,38 @@ var deserializeAws_restJson1MarketoSourceProperties = function (output, context)
3418
4279
  object: __expectString(output.object),
3419
4280
  };
3420
4281
  };
4282
+ var deserializeAws_restJson1OAuth2Defaults = function (output, context) {
4283
+ return {
4284
+ authCodeUrls: output.authCodeUrls !== undefined && output.authCodeUrls !== null
4285
+ ? deserializeAws_restJson1AuthCodeUrlList(output.authCodeUrls, context)
4286
+ : undefined,
4287
+ oauth2GrantTypesSupported: output.oauth2GrantTypesSupported !== undefined && output.oauth2GrantTypesSupported !== null
4288
+ ? deserializeAws_restJson1OAuth2GrantTypeSupportedList(output.oauth2GrantTypesSupported, context)
4289
+ : undefined,
4290
+ oauthScopes: output.oauthScopes !== undefined && output.oauthScopes !== null
4291
+ ? deserializeAws_restJson1OAuthScopeList(output.oauthScopes, context)
4292
+ : undefined,
4293
+ tokenUrls: output.tokenUrls !== undefined && output.tokenUrls !== null
4294
+ ? deserializeAws_restJson1TokenUrlList(output.tokenUrls, context)
4295
+ : undefined,
4296
+ };
4297
+ };
4298
+ var deserializeAws_restJson1OAuth2GrantTypeSupportedList = function (output, context) {
4299
+ return (output || [])
4300
+ .filter(function (e) { return e != null; })
4301
+ .map(function (entry) {
4302
+ if (entry === null) {
4303
+ return null;
4304
+ }
4305
+ return __expectString(entry);
4306
+ });
4307
+ };
4308
+ var deserializeAws_restJson1OAuth2Properties = function (output, context) {
4309
+ return {
4310
+ oAuth2GrantType: __expectString(output.oAuth2GrantType),
4311
+ tokenUrl: __expectString(output.tokenUrl),
4312
+ };
4313
+ };
3421
4314
  var deserializeAws_restJson1OAuthProperties = function (output, context) {
3422
4315
  return {
3423
4316
  authCodeUrl: __expectString(output.authCodeUrl),
@@ -3450,6 +4343,22 @@ var deserializeAws_restJson1PrivateConnectionProvisioningState = function (outpu
3450
4343
  status: __expectString(output.status),
3451
4344
  };
3452
4345
  };
4346
+ var deserializeAws_restJson1ProfilePropertiesMap = function (output, context) {
4347
+ return Object.entries(output).reduce(function (acc, _a) {
4348
+ var _b;
4349
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
4350
+ if (value === null) {
4351
+ return acc;
4352
+ }
4353
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
4354
+ }, {});
4355
+ };
4356
+ var deserializeAws_restJson1Range = function (output, context) {
4357
+ return {
4358
+ maximum: __limitedParseDouble(output.maximum),
4359
+ minimum: __limitedParseDouble(output.minimum),
4360
+ };
4361
+ };
3453
4362
  var deserializeAws_restJson1RedshiftConnectorProfileProperties = function (output, context) {
3454
4363
  return {
3455
4364
  bucketName: __expectString(output.bucketName),
@@ -3672,6 +4581,9 @@ var deserializeAws_restJson1SourceConnectorProperties = function (output, contex
3672
4581
  Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3673
4582
  ? deserializeAws_restJson1AmplitudeSourceProperties(output.Amplitude, context)
3674
4583
  : undefined,
4584
+ CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
4585
+ ? deserializeAws_restJson1CustomConnectorSourceProperties(output.CustomConnector, context)
4586
+ : undefined,
3675
4587
  Datadog: output.Datadog !== undefined && output.Datadog !== null
3676
4588
  ? deserializeAws_restJson1DatadogSourceProperties(output.Datadog, context)
3677
4589
  : undefined,
@@ -3720,6 +4632,7 @@ var deserializeAws_restJson1SourceFieldProperties = function (output, context) {
3720
4632
  return {
3721
4633
  isQueryable: __expectBoolean(output.isQueryable),
3722
4634
  isRetrievable: __expectBoolean(output.isRetrievable),
4635
+ isTimestampFieldForIncrementalQueries: __expectBoolean(output.isTimestampFieldForIncrementalQueries),
3723
4636
  };
3724
4637
  };
3725
4638
  var deserializeAws_restJson1SourceFields = function (output, context) {
@@ -3734,6 +4647,7 @@ var deserializeAws_restJson1SourceFields = function (output, context) {
3734
4647
  };
3735
4648
  var deserializeAws_restJson1SourceFlowConfig = function (output, context) {
3736
4649
  return {
4650
+ apiVersion: __expectString(output.apiVersion),
3737
4651
  connectorProfileName: __expectString(output.connectorProfileName),
3738
4652
  connectorType: __expectString(output.connectorType),
3739
4653
  incrementalPullConfig: output.incrementalPullConfig !== undefined && output.incrementalPullConfig !== null
@@ -3744,6 +4658,16 @@ var deserializeAws_restJson1SourceFlowConfig = function (output, context) {
3744
4658
  : undefined,
3745
4659
  };
3746
4660
  };
4661
+ var deserializeAws_restJson1SupportedApiVersionList = function (output, context) {
4662
+ return (output || [])
4663
+ .filter(function (e) { return e != null; })
4664
+ .map(function (entry) {
4665
+ if (entry === null) {
4666
+ return null;
4667
+ }
4668
+ return __expectString(entry);
4669
+ });
4670
+ };
3747
4671
  var deserializeAws_restJson1SupportedFieldTypeDetails = function (output, context) {
3748
4672
  return {
3749
4673
  v1: output.v1 !== undefined && output.v1 !== null
@@ -3751,6 +4675,16 @@ var deserializeAws_restJson1SupportedFieldTypeDetails = function (output, contex
3751
4675
  : undefined,
3752
4676
  };
3753
4677
  };
4678
+ var deserializeAws_restJson1SupportedOperatorList = function (output, context) {
4679
+ return (output || [])
4680
+ .filter(function (e) { return e != null; })
4681
+ .map(function (entry) {
4682
+ if (entry === null) {
4683
+ return null;
4684
+ }
4685
+ return __expectString(entry);
4686
+ });
4687
+ };
3754
4688
  var deserializeAws_restJson1SupportedValueList = function (output, context) {
3755
4689
  return (output || [])
3756
4690
  .filter(function (e) { return e != null; })
@@ -3816,6 +4750,16 @@ var deserializeAws_restJson1Tasks = function (output, context) {
3816
4750
  return deserializeAws_restJson1Task(entry, context);
3817
4751
  });
3818
4752
  };
4753
+ var deserializeAws_restJson1TokenUrlList = function (output, context) {
4754
+ return (output || [])
4755
+ .filter(function (e) { return e != null; })
4756
+ .map(function (entry) {
4757
+ if (entry === null) {
4758
+ return null;
4759
+ }
4760
+ return __expectString(entry);
4761
+ });
4762
+ };
3819
4763
  var deserializeAws_restJson1TrendmicroConnectorProfileProperties = function (output, context) {
3820
4764
  return {};
3821
4765
  };