@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.
Files changed (47) hide show
  1. package/CHANGELOG.md +38 -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 +239 -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 +986 -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 +168 -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 +1032 -45
  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 +965 -52
  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 +522 -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 +40 -34
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UpdateFlowCommand = exports.deserializeAws_restJson1UpdateConnectorProfileCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopFlowCommand = exports.deserializeAws_restJson1StartFlowCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListFlowsCommand = exports.deserializeAws_restJson1ListConnectorEntitiesCommand = exports.deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.deserializeAws_restJson1DescribeFlowCommand = exports.deserializeAws_restJson1DescribeConnectorsCommand = exports.deserializeAws_restJson1DescribeConnectorProfilesCommand = exports.deserializeAws_restJson1DescribeConnectorEntityCommand = exports.deserializeAws_restJson1DeleteFlowCommand = exports.deserializeAws_restJson1DeleteConnectorProfileCommand = exports.deserializeAws_restJson1CreateFlowCommand = exports.deserializeAws_restJson1CreateConnectorProfileCommand = exports.serializeAws_restJson1UpdateFlowCommand = exports.serializeAws_restJson1UpdateConnectorProfileCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopFlowCommand = exports.serializeAws_restJson1StartFlowCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListFlowsCommand = exports.serializeAws_restJson1ListConnectorEntitiesCommand = exports.serializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.serializeAws_restJson1DescribeFlowCommand = exports.serializeAws_restJson1DescribeConnectorsCommand = exports.serializeAws_restJson1DescribeConnectorProfilesCommand = exports.serializeAws_restJson1DescribeConnectorEntityCommand = exports.serializeAws_restJson1DeleteFlowCommand = exports.serializeAws_restJson1DeleteConnectorProfileCommand = exports.serializeAws_restJson1CreateFlowCommand = exports.serializeAws_restJson1CreateConnectorProfileCommand = void 0;
3
+ exports.deserializeAws_restJson1UpdateFlowCommand = exports.deserializeAws_restJson1UpdateConnectorProfileCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnregisterConnectorCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopFlowCommand = exports.deserializeAws_restJson1StartFlowCommand = exports.deserializeAws_restJson1RegisterConnectorCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListFlowsCommand = exports.deserializeAws_restJson1ListConnectorsCommand = exports.deserializeAws_restJson1ListConnectorEntitiesCommand = exports.deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.deserializeAws_restJson1DescribeFlowCommand = exports.deserializeAws_restJson1DescribeConnectorsCommand = exports.deserializeAws_restJson1DescribeConnectorProfilesCommand = exports.deserializeAws_restJson1DescribeConnectorEntityCommand = exports.deserializeAws_restJson1DescribeConnectorCommand = exports.deserializeAws_restJson1DeleteFlowCommand = exports.deserializeAws_restJson1DeleteConnectorProfileCommand = exports.deserializeAws_restJson1CreateFlowCommand = exports.deserializeAws_restJson1CreateConnectorProfileCommand = exports.serializeAws_restJson1UpdateFlowCommand = exports.serializeAws_restJson1UpdateConnectorProfileCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1UnregisterConnectorCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopFlowCommand = exports.serializeAws_restJson1StartFlowCommand = exports.serializeAws_restJson1RegisterConnectorCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListFlowsCommand = exports.serializeAws_restJson1ListConnectorsCommand = exports.serializeAws_restJson1ListConnectorEntitiesCommand = exports.serializeAws_restJson1DescribeFlowExecutionRecordsCommand = exports.serializeAws_restJson1DescribeFlowCommand = exports.serializeAws_restJson1DescribeConnectorsCommand = exports.serializeAws_restJson1DescribeConnectorProfilesCommand = exports.serializeAws_restJson1DescribeConnectorEntityCommand = exports.serializeAws_restJson1DescribeConnectorCommand = exports.serializeAws_restJson1DeleteFlowCommand = exports.serializeAws_restJson1DeleteConnectorProfileCommand = exports.serializeAws_restJson1CreateFlowCommand = exports.serializeAws_restJson1CreateConnectorProfileCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const serializeAws_restJson1CreateConnectorProfileCommand = async (input, context) => {
@@ -13,6 +13,8 @@ const serializeAws_restJson1CreateConnectorProfileCommand = async (input, contex
13
13
  body = JSON.stringify({
14
14
  ...(input.connectionMode !== undefined &&
15
15
  input.connectionMode !== null && { connectionMode: input.connectionMode }),
16
+ ...(input.connectorLabel !== undefined &&
17
+ input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
16
18
  ...(input.connectorProfileConfig !== undefined &&
17
19
  input.connectorProfileConfig !== null && {
18
20
  connectorProfileConfig: serializeAws_restJson1ConnectorProfileConfig(input.connectorProfileConfig, context),
@@ -116,6 +118,29 @@ const serializeAws_restJson1DeleteFlowCommand = async (input, context) => {
116
118
  });
117
119
  };
118
120
  exports.serializeAws_restJson1DeleteFlowCommand = serializeAws_restJson1DeleteFlowCommand;
121
+ const serializeAws_restJson1DescribeConnectorCommand = async (input, context) => {
122
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
+ const headers = {
124
+ "content-type": "application/json",
125
+ };
126
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector";
127
+ let body;
128
+ body = JSON.stringify({
129
+ ...(input.connectorLabel !== undefined &&
130
+ input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
131
+ ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
132
+ });
133
+ return new protocol_http_1.HttpRequest({
134
+ protocol,
135
+ hostname,
136
+ port,
137
+ method: "POST",
138
+ headers,
139
+ path: resolvedPath,
140
+ body,
141
+ });
142
+ };
143
+ exports.serializeAws_restJson1DescribeConnectorCommand = serializeAws_restJson1DescribeConnectorCommand;
119
144
  const serializeAws_restJson1DescribeConnectorEntityCommand = async (input, context) => {
120
145
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
146
  const headers = {
@@ -124,6 +149,7 @@ const serializeAws_restJson1DescribeConnectorEntityCommand = async (input, conte
124
149
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-entity";
125
150
  let body;
126
151
  body = JSON.stringify({
152
+ ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
127
153
  ...(input.connectorEntityName !== undefined &&
128
154
  input.connectorEntityName !== null && { connectorEntityName: input.connectorEntityName }),
129
155
  ...(input.connectorProfileName !== undefined &&
@@ -149,6 +175,8 @@ const serializeAws_restJson1DescribeConnectorProfilesCommand = async (input, con
149
175
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-profiles";
150
176
  let body;
151
177
  body = JSON.stringify({
178
+ ...(input.connectorLabel !== undefined &&
179
+ input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
152
180
  ...(input.connectorProfileNames !== undefined &&
153
181
  input.connectorProfileNames !== null && {
154
182
  connectorProfileNames: serializeAws_restJson1ConnectorProfileNameList(input.connectorProfileNames, context),
@@ -180,6 +208,7 @@ const serializeAws_restJson1DescribeConnectorsCommand = async (input, context) =
180
208
  input.connectorTypes !== null && {
181
209
  connectorTypes: serializeAws_restJson1ConnectorTypeList(input.connectorTypes, context),
182
210
  }),
211
+ ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
183
212
  ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
184
213
  });
185
214
  return new protocol_http_1.HttpRequest({
@@ -245,6 +274,7 @@ const serializeAws_restJson1ListConnectorEntitiesCommand = async (input, context
245
274
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-connector-entities";
246
275
  let body;
247
276
  body = JSON.stringify({
277
+ ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
248
278
  ...(input.connectorProfileName !== undefined &&
249
279
  input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
250
280
  ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
@@ -261,6 +291,28 @@ const serializeAws_restJson1ListConnectorEntitiesCommand = async (input, context
261
291
  });
262
292
  };
263
293
  exports.serializeAws_restJson1ListConnectorEntitiesCommand = serializeAws_restJson1ListConnectorEntitiesCommand;
294
+ const serializeAws_restJson1ListConnectorsCommand = async (input, context) => {
295
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
296
+ const headers = {
297
+ "content-type": "application/json",
298
+ };
299
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-connectors";
300
+ let body;
301
+ body = JSON.stringify({
302
+ ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
303
+ ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
304
+ });
305
+ return new protocol_http_1.HttpRequest({
306
+ protocol,
307
+ hostname,
308
+ port,
309
+ method: "POST",
310
+ headers,
311
+ path: resolvedPath,
312
+ body,
313
+ });
314
+ };
315
+ exports.serializeAws_restJson1ListConnectorsCommand = serializeAws_restJson1ListConnectorsCommand;
264
316
  const serializeAws_restJson1ListFlowsCommand = async (input, context) => {
265
317
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
266
318
  const headers = {
@@ -309,6 +361,35 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
309
361
  });
310
362
  };
311
363
  exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
364
+ const serializeAws_restJson1RegisterConnectorCommand = async (input, context) => {
365
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
366
+ const headers = {
367
+ "content-type": "application/json",
368
+ };
369
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/register-connector";
370
+ let body;
371
+ body = JSON.stringify({
372
+ ...(input.connectorLabel !== undefined &&
373
+ input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
374
+ ...(input.connectorProvisioningConfig !== undefined &&
375
+ input.connectorProvisioningConfig !== null && {
376
+ connectorProvisioningConfig: serializeAws_restJson1ConnectorProvisioningConfig(input.connectorProvisioningConfig, context),
377
+ }),
378
+ ...(input.connectorProvisioningType !== undefined &&
379
+ input.connectorProvisioningType !== null && { connectorProvisioningType: input.connectorProvisioningType }),
380
+ ...(input.description !== undefined && input.description !== null && { description: input.description }),
381
+ });
382
+ return new protocol_http_1.HttpRequest({
383
+ protocol,
384
+ hostname,
385
+ port,
386
+ method: "POST",
387
+ headers,
388
+ path: resolvedPath,
389
+ body,
390
+ });
391
+ };
392
+ exports.serializeAws_restJson1RegisterConnectorCommand = serializeAws_restJson1RegisterConnectorCommand;
312
393
  const serializeAws_restJson1StartFlowCommand = async (input, context) => {
313
394
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
314
395
  const headers = {
@@ -382,6 +463,29 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
382
463
  });
383
464
  };
384
465
  exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
466
+ const serializeAws_restJson1UnregisterConnectorCommand = async (input, context) => {
467
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
468
+ const headers = {
469
+ "content-type": "application/json",
470
+ };
471
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/unregister-connector";
472
+ let body;
473
+ body = JSON.stringify({
474
+ ...(input.connectorLabel !== undefined &&
475
+ input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
476
+ ...(input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete }),
477
+ });
478
+ return new protocol_http_1.HttpRequest({
479
+ protocol,
480
+ hostname,
481
+ port,
482
+ method: "POST",
483
+ headers,
484
+ path: resolvedPath,
485
+ body,
486
+ });
487
+ };
488
+ exports.serializeAws_restJson1UnregisterConnectorCommand = serializeAws_restJson1UnregisterConnectorCommand;
385
489
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
386
490
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
387
491
  const headers = {};
@@ -776,6 +880,70 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
776
880
  delete response.Message;
777
881
  return Promise.reject(Object.assign(new Error(message), response));
778
882
  };
883
+ const deserializeAws_restJson1DescribeConnectorCommand = async (output, context) => {
884
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
885
+ return deserializeAws_restJson1DescribeConnectorCommandError(output, context);
886
+ }
887
+ const contents = {
888
+ $metadata: deserializeMetadata(output),
889
+ connectorConfiguration: undefined,
890
+ };
891
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
892
+ if (data.connectorConfiguration !== undefined && data.connectorConfiguration !== null) {
893
+ contents.connectorConfiguration = deserializeAws_restJson1ConnectorConfiguration(data.connectorConfiguration, context);
894
+ }
895
+ return Promise.resolve(contents);
896
+ };
897
+ exports.deserializeAws_restJson1DescribeConnectorCommand = deserializeAws_restJson1DescribeConnectorCommand;
898
+ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, context) => {
899
+ const parsedOutput = {
900
+ ...output,
901
+ body: await parseBody(output.body, context),
902
+ };
903
+ let response;
904
+ let errorCode = "UnknownError";
905
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
906
+ switch (errorCode) {
907
+ case "InternalServerException":
908
+ case "com.amazonaws.appflow#InternalServerException":
909
+ response = {
910
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
911
+ name: errorCode,
912
+ $metadata: deserializeMetadata(output),
913
+ };
914
+ break;
915
+ case "ResourceNotFoundException":
916
+ case "com.amazonaws.appflow#ResourceNotFoundException":
917
+ response = {
918
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
919
+ name: errorCode,
920
+ $metadata: deserializeMetadata(output),
921
+ };
922
+ break;
923
+ case "ValidationException":
924
+ case "com.amazonaws.appflow#ValidationException":
925
+ response = {
926
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
927
+ name: errorCode,
928
+ $metadata: deserializeMetadata(output),
929
+ };
930
+ break;
931
+ default:
932
+ const parsedBody = parsedOutput.body;
933
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
934
+ response = {
935
+ ...parsedBody,
936
+ name: `${errorCode}`,
937
+ message: parsedBody.message || parsedBody.Message || errorCode,
938
+ $fault: "client",
939
+ $metadata: deserializeMetadata(output),
940
+ };
941
+ }
942
+ const message = response.message || response.Message || errorCode;
943
+ response.message = message;
944
+ delete response.Message;
945
+ return Promise.reject(Object.assign(new Error(message), response));
946
+ };
779
947
  const deserializeAws_restJson1DescribeConnectorEntityCommand = async (output, context) => {
780
948
  if (output.statusCode !== 200 && output.statusCode >= 300) {
781
949
  return deserializeAws_restJson1DescribeConnectorEntityCommandError(output, context);
@@ -923,12 +1091,16 @@ const deserializeAws_restJson1DescribeConnectorsCommand = async (output, context
923
1091
  const contents = {
924
1092
  $metadata: deserializeMetadata(output),
925
1093
  connectorConfigurations: undefined,
1094
+ connectors: undefined,
926
1095
  nextToken: undefined,
927
1096
  };
928
1097
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
929
1098
  if (data.connectorConfigurations !== undefined && data.connectorConfigurations !== null) {
930
1099
  contents.connectorConfigurations = deserializeAws_restJson1ConnectorConfigurationsMap(data.connectorConfigurations, context);
931
1100
  }
1101
+ if (data.connectors !== undefined && data.connectors !== null) {
1102
+ contents.connectors = deserializeAws_restJson1ConnectorList(data.connectors, context);
1103
+ }
932
1104
  if (data.nextToken !== undefined && data.nextToken !== null) {
933
1105
  contents.nextToken = smithy_client_1.expectString(data.nextToken);
934
1106
  }
@@ -1240,6 +1412,66 @@ const deserializeAws_restJson1ListConnectorEntitiesCommandError = async (output,
1240
1412
  delete response.Message;
1241
1413
  return Promise.reject(Object.assign(new Error(message), response));
1242
1414
  };
1415
+ const deserializeAws_restJson1ListConnectorsCommand = async (output, context) => {
1416
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1417
+ return deserializeAws_restJson1ListConnectorsCommandError(output, context);
1418
+ }
1419
+ const contents = {
1420
+ $metadata: deserializeMetadata(output),
1421
+ connectors: undefined,
1422
+ nextToken: undefined,
1423
+ };
1424
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1425
+ if (data.connectors !== undefined && data.connectors !== null) {
1426
+ contents.connectors = deserializeAws_restJson1ConnectorList(data.connectors, context);
1427
+ }
1428
+ if (data.nextToken !== undefined && data.nextToken !== null) {
1429
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
1430
+ }
1431
+ return Promise.resolve(contents);
1432
+ };
1433
+ exports.deserializeAws_restJson1ListConnectorsCommand = deserializeAws_restJson1ListConnectorsCommand;
1434
+ const deserializeAws_restJson1ListConnectorsCommandError = async (output, context) => {
1435
+ const parsedOutput = {
1436
+ ...output,
1437
+ body: await parseBody(output.body, context),
1438
+ };
1439
+ let response;
1440
+ let errorCode = "UnknownError";
1441
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1442
+ switch (errorCode) {
1443
+ case "InternalServerException":
1444
+ case "com.amazonaws.appflow#InternalServerException":
1445
+ response = {
1446
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
1447
+ name: errorCode,
1448
+ $metadata: deserializeMetadata(output),
1449
+ };
1450
+ break;
1451
+ case "ValidationException":
1452
+ case "com.amazonaws.appflow#ValidationException":
1453
+ response = {
1454
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
1455
+ name: errorCode,
1456
+ $metadata: deserializeMetadata(output),
1457
+ };
1458
+ break;
1459
+ default:
1460
+ const parsedBody = parsedOutput.body;
1461
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1462
+ response = {
1463
+ ...parsedBody,
1464
+ name: `${errorCode}`,
1465
+ message: parsedBody.message || parsedBody.Message || errorCode,
1466
+ $fault: "client",
1467
+ $metadata: deserializeMetadata(output),
1468
+ };
1469
+ }
1470
+ const message = response.message || response.Message || errorCode;
1471
+ response.message = message;
1472
+ delete response.Message;
1473
+ return Promise.reject(Object.assign(new Error(message), response));
1474
+ };
1243
1475
  const deserializeAws_restJson1ListFlowsCommand = async (output, context) => {
1244
1476
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1245
1477
  return deserializeAws_restJson1ListFlowsCommandError(output, context);
@@ -1364,6 +1596,118 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1364
1596
  delete response.Message;
1365
1597
  return Promise.reject(Object.assign(new Error(message), response));
1366
1598
  };
1599
+ const deserializeAws_restJson1RegisterConnectorCommand = async (output, context) => {
1600
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1601
+ return deserializeAws_restJson1RegisterConnectorCommandError(output, context);
1602
+ }
1603
+ const contents = {
1604
+ $metadata: deserializeMetadata(output),
1605
+ connectorArn: undefined,
1606
+ };
1607
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1608
+ if (data.connectorArn !== undefined && data.connectorArn !== null) {
1609
+ contents.connectorArn = smithy_client_1.expectString(data.connectorArn);
1610
+ }
1611
+ return Promise.resolve(contents);
1612
+ };
1613
+ exports.deserializeAws_restJson1RegisterConnectorCommand = deserializeAws_restJson1RegisterConnectorCommand;
1614
+ const deserializeAws_restJson1RegisterConnectorCommandError = async (output, context) => {
1615
+ const parsedOutput = {
1616
+ ...output,
1617
+ body: await parseBody(output.body, context),
1618
+ };
1619
+ let response;
1620
+ let errorCode = "UnknownError";
1621
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1622
+ switch (errorCode) {
1623
+ case "AccessDeniedException":
1624
+ case "com.amazonaws.appflow#AccessDeniedException":
1625
+ response = {
1626
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
1627
+ name: errorCode,
1628
+ $metadata: deserializeMetadata(output),
1629
+ };
1630
+ break;
1631
+ case "ConflictException":
1632
+ case "com.amazonaws.appflow#ConflictException":
1633
+ response = {
1634
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
1635
+ name: errorCode,
1636
+ $metadata: deserializeMetadata(output),
1637
+ };
1638
+ break;
1639
+ case "ConnectorAuthenticationException":
1640
+ case "com.amazonaws.appflow#ConnectorAuthenticationException":
1641
+ response = {
1642
+ ...(await deserializeAws_restJson1ConnectorAuthenticationExceptionResponse(parsedOutput, context)),
1643
+ name: errorCode,
1644
+ $metadata: deserializeMetadata(output),
1645
+ };
1646
+ break;
1647
+ case "ConnectorServerException":
1648
+ case "com.amazonaws.appflow#ConnectorServerException":
1649
+ response = {
1650
+ ...(await deserializeAws_restJson1ConnectorServerExceptionResponse(parsedOutput, context)),
1651
+ name: errorCode,
1652
+ $metadata: deserializeMetadata(output),
1653
+ };
1654
+ break;
1655
+ case "InternalServerException":
1656
+ case "com.amazonaws.appflow#InternalServerException":
1657
+ response = {
1658
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
1659
+ name: errorCode,
1660
+ $metadata: deserializeMetadata(output),
1661
+ };
1662
+ break;
1663
+ case "ResourceNotFoundException":
1664
+ case "com.amazonaws.appflow#ResourceNotFoundException":
1665
+ response = {
1666
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1667
+ name: errorCode,
1668
+ $metadata: deserializeMetadata(output),
1669
+ };
1670
+ break;
1671
+ case "ServiceQuotaExceededException":
1672
+ case "com.amazonaws.appflow#ServiceQuotaExceededException":
1673
+ response = {
1674
+ ...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
1675
+ name: errorCode,
1676
+ $metadata: deserializeMetadata(output),
1677
+ };
1678
+ break;
1679
+ case "ThrottlingException":
1680
+ case "com.amazonaws.appflow#ThrottlingException":
1681
+ response = {
1682
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
1683
+ name: errorCode,
1684
+ $metadata: deserializeMetadata(output),
1685
+ };
1686
+ break;
1687
+ case "ValidationException":
1688
+ case "com.amazonaws.appflow#ValidationException":
1689
+ response = {
1690
+ ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
1691
+ name: errorCode,
1692
+ $metadata: deserializeMetadata(output),
1693
+ };
1694
+ break;
1695
+ default:
1696
+ const parsedBody = parsedOutput.body;
1697
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1698
+ response = {
1699
+ ...parsedBody,
1700
+ name: `${errorCode}`,
1701
+ message: parsedBody.message || parsedBody.Message || errorCode,
1702
+ $fault: "client",
1703
+ $metadata: deserializeMetadata(output),
1704
+ };
1705
+ }
1706
+ const message = response.message || response.Message || errorCode;
1707
+ response.message = message;
1708
+ delete response.Message;
1709
+ return Promise.reject(Object.assign(new Error(message), response));
1710
+ };
1367
1711
  const deserializeAws_restJson1StartFlowCommand = async (output, context) => {
1368
1712
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1369
1713
  return deserializeAws_restJson1StartFlowCommandError(output, context);
@@ -1580,6 +1924,66 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1580
1924
  delete response.Message;
1581
1925
  return Promise.reject(Object.assign(new Error(message), response));
1582
1926
  };
1927
+ const deserializeAws_restJson1UnregisterConnectorCommand = async (output, context) => {
1928
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1929
+ return deserializeAws_restJson1UnregisterConnectorCommandError(output, context);
1930
+ }
1931
+ const contents = {
1932
+ $metadata: deserializeMetadata(output),
1933
+ };
1934
+ await collectBody(output.body, context);
1935
+ return Promise.resolve(contents);
1936
+ };
1937
+ exports.deserializeAws_restJson1UnregisterConnectorCommand = deserializeAws_restJson1UnregisterConnectorCommand;
1938
+ const deserializeAws_restJson1UnregisterConnectorCommandError = async (output, context) => {
1939
+ const parsedOutput = {
1940
+ ...output,
1941
+ body: await parseBody(output.body, context),
1942
+ };
1943
+ let response;
1944
+ let errorCode = "UnknownError";
1945
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1946
+ switch (errorCode) {
1947
+ case "ConflictException":
1948
+ case "com.amazonaws.appflow#ConflictException":
1949
+ response = {
1950
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
1951
+ name: errorCode,
1952
+ $metadata: deserializeMetadata(output),
1953
+ };
1954
+ break;
1955
+ case "InternalServerException":
1956
+ case "com.amazonaws.appflow#InternalServerException":
1957
+ response = {
1958
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
1959
+ name: errorCode,
1960
+ $metadata: deserializeMetadata(output),
1961
+ };
1962
+ break;
1963
+ case "ResourceNotFoundException":
1964
+ case "com.amazonaws.appflow#ResourceNotFoundException":
1965
+ response = {
1966
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1967
+ name: errorCode,
1968
+ $metadata: deserializeMetadata(output),
1969
+ };
1970
+ break;
1971
+ default:
1972
+ const parsedBody = parsedOutput.body;
1973
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1974
+ response = {
1975
+ ...parsedBody,
1976
+ name: `${errorCode}`,
1977
+ message: parsedBody.message || parsedBody.Message || errorCode,
1978
+ $fault: "client",
1979
+ $metadata: deserializeMetadata(output),
1980
+ };
1981
+ }
1982
+ const message = response.message || response.Message || errorCode;
1983
+ response.message = message;
1984
+ delete response.Message;
1985
+ return Promise.reject(Object.assign(new Error(message), response));
1986
+ };
1583
1987
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
1584
1988
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1585
1989
  return deserializeAws_restJson1UntagResourceCommandError(output, context);
@@ -1816,6 +2220,19 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
1816
2220
  delete response.Message;
1817
2221
  return Promise.reject(Object.assign(new Error(message), response));
1818
2222
  };
2223
+ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
2224
+ const contents = {
2225
+ name: "AccessDeniedException",
2226
+ $fault: "client",
2227
+ $metadata: deserializeMetadata(parsedOutput),
2228
+ message: undefined,
2229
+ };
2230
+ const data = parsedOutput.body;
2231
+ if (data.message !== undefined && data.message !== null) {
2232
+ contents.message = smithy_client_1.expectString(data.message);
2233
+ }
2234
+ return contents;
2235
+ };
1819
2236
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
1820
2237
  const contents = {
1821
2238
  name: "ConflictException",
@@ -1894,6 +2311,19 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1894
2311
  }
1895
2312
  return contents;
1896
2313
  };
2314
+ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
2315
+ const contents = {
2316
+ name: "ThrottlingException",
2317
+ $fault: "client",
2318
+ $metadata: deserializeMetadata(parsedOutput),
2319
+ message: undefined,
2320
+ };
2321
+ const data = parsedOutput.body;
2322
+ if (data.message !== undefined && data.message !== null) {
2323
+ contents.message = smithy_client_1.expectString(data.message);
2324
+ }
2325
+ return contents;
2326
+ };
1897
2327
  const deserializeAws_restJson1UnsupportedOperationExceptionResponse = async (parsedOutput, context) => {
1898
2328
  const contents = {
1899
2329
  name: "UnsupportedOperationException",
@@ -1940,6 +2370,12 @@ const serializeAws_restJson1AmplitudeSourceProperties = (input, context) => {
1940
2370
  ...(input.object !== undefined && input.object !== null && { object: input.object }),
1941
2371
  };
1942
2372
  };
2373
+ const serializeAws_restJson1ApiKeyCredentials = (input, context) => {
2374
+ return {
2375
+ ...(input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey }),
2376
+ ...(input.apiSecretKey !== undefined && input.apiSecretKey !== null && { apiSecretKey: input.apiSecretKey }),
2377
+ };
2378
+ };
1943
2379
  const serializeAws_restJson1BasicAuthCredentials = (input, context) => {
1944
2380
  return {
1945
2381
  ...(input.password !== undefined && input.password !== null && { password: input.password }),
@@ -1955,6 +2391,8 @@ const serializeAws_restJson1ConnectorOAuthRequest = (input, context) => {
1955
2391
  const serializeAws_restJson1ConnectorOperator = (input, context) => {
1956
2392
  return {
1957
2393
  ...(input.Amplitude !== undefined && input.Amplitude !== null && { Amplitude: input.Amplitude }),
2394
+ ...(input.CustomConnector !== undefined &&
2395
+ input.CustomConnector !== null && { CustomConnector: input.CustomConnector }),
1958
2396
  ...(input.Datadog !== undefined && input.Datadog !== null && { Datadog: input.Datadog }),
1959
2397
  ...(input.Dynatrace !== undefined && input.Dynatrace !== null && { Dynatrace: input.Dynatrace }),
1960
2398
  ...(input.GoogleAnalytics !== undefined &&
@@ -1990,6 +2428,10 @@ const serializeAws_restJson1ConnectorProfileCredentials = (input, context) => {
1990
2428
  input.Amplitude !== null && {
1991
2429
  Amplitude: serializeAws_restJson1AmplitudeConnectorProfileCredentials(input.Amplitude, context),
1992
2430
  }),
2431
+ ...(input.CustomConnector !== undefined &&
2432
+ input.CustomConnector !== null && {
2433
+ CustomConnector: serializeAws_restJson1CustomConnectorProfileCredentials(input.CustomConnector, context),
2434
+ }),
1993
2435
  ...(input.Datadog !== undefined &&
1994
2436
  input.Datadog !== null && {
1995
2437
  Datadog: serializeAws_restJson1DatadogConnectorProfileCredentials(input.Datadog, context),
@@ -2068,6 +2510,10 @@ const serializeAws_restJson1ConnectorProfileProperties = (input, context) => {
2068
2510
  input.Amplitude !== null && {
2069
2511
  Amplitude: serializeAws_restJson1AmplitudeConnectorProfileProperties(input.Amplitude, context),
2070
2512
  }),
2513
+ ...(input.CustomConnector !== undefined &&
2514
+ input.CustomConnector !== null && {
2515
+ CustomConnector: serializeAws_restJson1CustomConnectorProfileProperties(input.CustomConnector, context),
2516
+ }),
2071
2517
  ...(input.Datadog !== undefined &&
2072
2518
  input.Datadog !== null && {
2073
2519
  Datadog: serializeAws_restJson1DatadogConnectorProfileProperties(input.Datadog, context),
@@ -2130,6 +2576,14 @@ const serializeAws_restJson1ConnectorProfileProperties = (input, context) => {
2130
2576
  }),
2131
2577
  };
2132
2578
  };
2579
+ const serializeAws_restJson1ConnectorProvisioningConfig = (input, context) => {
2580
+ return {
2581
+ ...(input.lambda !== undefined &&
2582
+ input.lambda !== null && {
2583
+ lambda: serializeAws_restJson1LambdaConnectorProvisioningConfig(input.lambda, context),
2584
+ }),
2585
+ };
2586
+ };
2133
2587
  const serializeAws_restJson1ConnectorTypeList = (input, context) => {
2134
2588
  return input
2135
2589
  .filter((e) => e != null)
@@ -2140,6 +2594,81 @@ const serializeAws_restJson1ConnectorTypeList = (input, context) => {
2140
2594
  return entry;
2141
2595
  });
2142
2596
  };
2597
+ const serializeAws_restJson1CredentialsMap = (input, context) => {
2598
+ return Object.entries(input).reduce((acc, [key, value]) => {
2599
+ if (value === null) {
2600
+ return acc;
2601
+ }
2602
+ return {
2603
+ ...acc,
2604
+ [key]: value,
2605
+ };
2606
+ }, {});
2607
+ };
2608
+ const serializeAws_restJson1CustomAuthCredentials = (input, context) => {
2609
+ return {
2610
+ ...(input.credentialsMap !== undefined &&
2611
+ input.credentialsMap !== null && {
2612
+ credentialsMap: serializeAws_restJson1CredentialsMap(input.credentialsMap, context),
2613
+ }),
2614
+ ...(input.customAuthenticationType !== undefined &&
2615
+ input.customAuthenticationType !== null && { customAuthenticationType: input.customAuthenticationType }),
2616
+ };
2617
+ };
2618
+ const serializeAws_restJson1CustomConnectorDestinationProperties = (input, context) => {
2619
+ return {
2620
+ ...(input.customProperties !== undefined &&
2621
+ input.customProperties !== null && {
2622
+ customProperties: serializeAws_restJson1CustomProperties(input.customProperties, context),
2623
+ }),
2624
+ ...(input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName }),
2625
+ ...(input.errorHandlingConfig !== undefined &&
2626
+ input.errorHandlingConfig !== null && {
2627
+ errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2628
+ }),
2629
+ ...(input.idFieldNames !== undefined &&
2630
+ input.idFieldNames !== null && {
2631
+ idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
2632
+ }),
2633
+ ...(input.writeOperationType !== undefined &&
2634
+ input.writeOperationType !== null && { writeOperationType: input.writeOperationType }),
2635
+ };
2636
+ };
2637
+ const serializeAws_restJson1CustomConnectorProfileCredentials = (input, context) => {
2638
+ return {
2639
+ ...(input.apiKey !== undefined &&
2640
+ input.apiKey !== null && { apiKey: serializeAws_restJson1ApiKeyCredentials(input.apiKey, context) }),
2641
+ ...(input.authenticationType !== undefined &&
2642
+ input.authenticationType !== null && { authenticationType: input.authenticationType }),
2643
+ ...(input.basic !== undefined &&
2644
+ input.basic !== null && { basic: serializeAws_restJson1BasicAuthCredentials(input.basic, context) }),
2645
+ ...(input.custom !== undefined &&
2646
+ input.custom !== null && { custom: serializeAws_restJson1CustomAuthCredentials(input.custom, context) }),
2647
+ ...(input.oauth2 !== undefined &&
2648
+ input.oauth2 !== null && { oauth2: serializeAws_restJson1OAuth2Credentials(input.oauth2, context) }),
2649
+ };
2650
+ };
2651
+ const serializeAws_restJson1CustomConnectorProfileProperties = (input, context) => {
2652
+ return {
2653
+ ...(input.oAuth2Properties !== undefined &&
2654
+ input.oAuth2Properties !== null && {
2655
+ oAuth2Properties: serializeAws_restJson1OAuth2Properties(input.oAuth2Properties, context),
2656
+ }),
2657
+ ...(input.profileProperties !== undefined &&
2658
+ input.profileProperties !== null && {
2659
+ profileProperties: serializeAws_restJson1ProfilePropertiesMap(input.profileProperties, context),
2660
+ }),
2661
+ };
2662
+ };
2663
+ const serializeAws_restJson1CustomConnectorSourceProperties = (input, context) => {
2664
+ return {
2665
+ ...(input.customProperties !== undefined &&
2666
+ input.customProperties !== null && {
2667
+ customProperties: serializeAws_restJson1CustomProperties(input.customProperties, context),
2668
+ }),
2669
+ ...(input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName }),
2670
+ };
2671
+ };
2143
2672
  const serializeAws_restJson1CustomerProfilesDestinationProperties = (input, context) => {
2144
2673
  return {
2145
2674
  ...(input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName }),
@@ -2147,6 +2676,17 @@ const serializeAws_restJson1CustomerProfilesDestinationProperties = (input, cont
2147
2676
  input.objectTypeName !== null && { objectTypeName: input.objectTypeName }),
2148
2677
  };
2149
2678
  };
2679
+ const serializeAws_restJson1CustomProperties = (input, context) => {
2680
+ return Object.entries(input).reduce((acc, [key, value]) => {
2681
+ if (value === null) {
2682
+ return acc;
2683
+ }
2684
+ return {
2685
+ ...acc,
2686
+ [key]: value,
2687
+ };
2688
+ }, {});
2689
+ };
2150
2690
  const serializeAws_restJson1DatadogConnectorProfileCredentials = (input, context) => {
2151
2691
  return {
2152
2692
  ...(input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey }),
@@ -2166,6 +2706,10 @@ const serializeAws_restJson1DatadogSourceProperties = (input, context) => {
2166
2706
  };
2167
2707
  const serializeAws_restJson1DestinationConnectorProperties = (input, context) => {
2168
2708
  return {
2709
+ ...(input.CustomConnector !== undefined &&
2710
+ input.CustomConnector !== null && {
2711
+ CustomConnector: serializeAws_restJson1CustomConnectorDestinationProperties(input.CustomConnector, context),
2712
+ }),
2169
2713
  ...(input.CustomerProfiles !== undefined &&
2170
2714
  input.CustomerProfiles !== null && {
2171
2715
  CustomerProfiles: serializeAws_restJson1CustomerProfilesDestinationProperties(input.CustomerProfiles, context),
@@ -2188,6 +2732,10 @@ const serializeAws_restJson1DestinationConnectorProperties = (input, context) =>
2188
2732
  }),
2189
2733
  ...(input.S3 !== undefined &&
2190
2734
  input.S3 !== null && { S3: serializeAws_restJson1S3DestinationProperties(input.S3, context) }),
2735
+ ...(input.SAPOData !== undefined &&
2736
+ input.SAPOData !== null && {
2737
+ SAPOData: serializeAws_restJson1SAPODataDestinationProperties(input.SAPOData, context),
2738
+ }),
2191
2739
  ...(input.Salesforce !== undefined &&
2192
2740
  input.Salesforce !== null && {
2193
2741
  Salesforce: serializeAws_restJson1SalesforceDestinationProperties(input.Salesforce, context),
@@ -2208,6 +2756,7 @@ const serializeAws_restJson1DestinationConnectorProperties = (input, context) =>
2208
2756
  };
2209
2757
  const serializeAws_restJson1DestinationFlowConfig = (input, context) => {
2210
2758
  return {
2759
+ ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
2211
2760
  ...(input.connectorProfileName !== undefined &&
2212
2761
  input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
2213
2762
  ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
@@ -2336,6 +2885,11 @@ const serializeAws_restJson1InforNexusSourceProperties = (input, context) => {
2336
2885
  ...(input.object !== undefined && input.object !== null && { object: input.object }),
2337
2886
  };
2338
2887
  };
2888
+ const serializeAws_restJson1LambdaConnectorProvisioningConfig = (input, context) => {
2889
+ return {
2890
+ ...(input.lambdaArn !== undefined && input.lambdaArn !== null && { lambdaArn: input.lambdaArn }),
2891
+ };
2892
+ };
2339
2893
  const serializeAws_restJson1LookoutMetricsDestinationProperties = (input, context) => {
2340
2894
  return {};
2341
2895
  };
@@ -2360,6 +2914,25 @@ const serializeAws_restJson1MarketoSourceProperties = (input, context) => {
2360
2914
  ...(input.object !== undefined && input.object !== null && { object: input.object }),
2361
2915
  };
2362
2916
  };
2917
+ const serializeAws_restJson1OAuth2Credentials = (input, context) => {
2918
+ return {
2919
+ ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2920
+ ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
2921
+ ...(input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret }),
2922
+ ...(input.oAuthRequest !== undefined &&
2923
+ input.oAuthRequest !== null && {
2924
+ oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2925
+ }),
2926
+ ...(input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }),
2927
+ };
2928
+ };
2929
+ const serializeAws_restJson1OAuth2Properties = (input, context) => {
2930
+ return {
2931
+ ...(input.oAuth2GrantType !== undefined &&
2932
+ input.oAuth2GrantType !== null && { oAuth2GrantType: input.oAuth2GrantType }),
2933
+ ...(input.tokenUrl !== undefined && input.tokenUrl !== null && { tokenUrl: input.tokenUrl }),
2934
+ };
2935
+ };
2363
2936
  const serializeAws_restJson1OAuthCredentials = (input, context) => {
2364
2937
  return {
2365
2938
  ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
@@ -2396,6 +2969,17 @@ const serializeAws_restJson1PrefixConfig = (input, context) => {
2396
2969
  ...(input.prefixType !== undefined && input.prefixType !== null && { prefixType: input.prefixType }),
2397
2970
  };
2398
2971
  };
2972
+ const serializeAws_restJson1ProfilePropertiesMap = (input, context) => {
2973
+ return Object.entries(input).reduce((acc, [key, value]) => {
2974
+ if (value === null) {
2975
+ return acc;
2976
+ }
2977
+ return {
2978
+ ...acc,
2979
+ [key]: value,
2980
+ };
2981
+ }, {});
2982
+ };
2399
2983
  const serializeAws_restJson1RedshiftConnectorProfileCredentials = (input, context) => {
2400
2984
  return {
2401
2985
  ...(input.password !== undefined && input.password !== null && { password: input.password }),
@@ -2531,6 +3115,25 @@ const serializeAws_restJson1SAPODataConnectorProfileProperties = (input, context
2531
3115
  input.privateLinkServiceName !== null && { privateLinkServiceName: input.privateLinkServiceName }),
2532
3116
  };
2533
3117
  };
3118
+ const serializeAws_restJson1SAPODataDestinationProperties = (input, context) => {
3119
+ return {
3120
+ ...(input.errorHandlingConfig !== undefined &&
3121
+ input.errorHandlingConfig !== null && {
3122
+ errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
3123
+ }),
3124
+ ...(input.idFieldNames !== undefined &&
3125
+ input.idFieldNames !== null && {
3126
+ idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
3127
+ }),
3128
+ ...(input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath }),
3129
+ ...(input.successResponseHandlingConfig !== undefined &&
3130
+ input.successResponseHandlingConfig !== null && {
3131
+ successResponseHandlingConfig: serializeAws_restJson1SuccessResponseHandlingConfig(input.successResponseHandlingConfig, context),
3132
+ }),
3133
+ ...(input.writeOperationType !== undefined &&
3134
+ input.writeOperationType !== null && { writeOperationType: input.writeOperationType }),
3135
+ };
3136
+ };
2534
3137
  const serializeAws_restJson1SAPODataSourceProperties = (input, context) => {
2535
3138
  return {
2536
3139
  ...(input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath }),
@@ -2640,6 +3243,10 @@ const serializeAws_restJson1SourceConnectorProperties = (input, context) => {
2640
3243
  input.Amplitude !== null && {
2641
3244
  Amplitude: serializeAws_restJson1AmplitudeSourceProperties(input.Amplitude, context),
2642
3245
  }),
3246
+ ...(input.CustomConnector !== undefined &&
3247
+ input.CustomConnector !== null && {
3248
+ CustomConnector: serializeAws_restJson1CustomConnectorSourceProperties(input.CustomConnector, context),
3249
+ }),
2643
3250
  ...(input.Datadog !== undefined &&
2644
3251
  input.Datadog !== null && { Datadog: serializeAws_restJson1DatadogSourceProperties(input.Datadog, context) }),
2645
3252
  ...(input.Dynatrace !== undefined &&
@@ -2694,6 +3301,7 @@ const serializeAws_restJson1SourceFields = (input, context) => {
2694
3301
  };
2695
3302
  const serializeAws_restJson1SourceFlowConfig = (input, context) => {
2696
3303
  return {
3304
+ ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
2697
3305
  ...(input.connectorProfileName !== undefined &&
2698
3306
  input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
2699
3307
  ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
@@ -2707,6 +3315,12 @@ const serializeAws_restJson1SourceFlowConfig = (input, context) => {
2707
3315
  }),
2708
3316
  };
2709
3317
  };
3318
+ const serializeAws_restJson1SuccessResponseHandlingConfig = (input, context) => {
3319
+ return {
3320
+ ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
3321
+ ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
3322
+ };
3323
+ };
2710
3324
  const serializeAws_restJson1TagMap = (input, context) => {
2711
3325
  return Object.entries(input).reduce((acc, [key, value]) => {
2712
3326
  if (value === null) {
@@ -2882,24 +3496,104 @@ const deserializeAws_restJson1AmplitudeSourceProperties = (output, context) => {
2882
3496
  object: smithy_client_1.expectString(output.object),
2883
3497
  };
2884
3498
  };
3499
+ const deserializeAws_restJson1AuthCodeUrlList = (output, context) => {
3500
+ return (output || [])
3501
+ .filter((e) => e != null)
3502
+ .map((entry) => {
3503
+ if (entry === null) {
3504
+ return null;
3505
+ }
3506
+ return smithy_client_1.expectString(entry);
3507
+ });
3508
+ };
3509
+ const deserializeAws_restJson1AuthenticationConfig = (output, context) => {
3510
+ return {
3511
+ customAuthConfigs: output.customAuthConfigs !== undefined && output.customAuthConfigs !== null
3512
+ ? deserializeAws_restJson1CustomAuthConfigList(output.customAuthConfigs, context)
3513
+ : undefined,
3514
+ isApiKeyAuthSupported: smithy_client_1.expectBoolean(output.isApiKeyAuthSupported),
3515
+ isBasicAuthSupported: smithy_client_1.expectBoolean(output.isBasicAuthSupported),
3516
+ isCustomAuthSupported: smithy_client_1.expectBoolean(output.isCustomAuthSupported),
3517
+ isOAuth2Supported: smithy_client_1.expectBoolean(output.isOAuth2Supported),
3518
+ oAuth2Defaults: output.oAuth2Defaults !== undefined && output.oAuth2Defaults !== null
3519
+ ? deserializeAws_restJson1OAuth2Defaults(output.oAuth2Defaults, context)
3520
+ : undefined,
3521
+ };
3522
+ };
3523
+ const deserializeAws_restJson1AuthParameter = (output, context) => {
3524
+ return {
3525
+ connectorSuppliedValues: output.connectorSuppliedValues !== undefined && output.connectorSuppliedValues !== null
3526
+ ? deserializeAws_restJson1ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
3527
+ : undefined,
3528
+ description: smithy_client_1.expectString(output.description),
3529
+ isRequired: smithy_client_1.expectBoolean(output.isRequired),
3530
+ isSensitiveField: smithy_client_1.expectBoolean(output.isSensitiveField),
3531
+ key: smithy_client_1.expectString(output.key),
3532
+ label: smithy_client_1.expectString(output.label),
3533
+ };
3534
+ };
3535
+ const deserializeAws_restJson1AuthParameterList = (output, context) => {
3536
+ return (output || [])
3537
+ .filter((e) => e != null)
3538
+ .map((entry) => {
3539
+ if (entry === null) {
3540
+ return null;
3541
+ }
3542
+ return deserializeAws_restJson1AuthParameter(entry, context);
3543
+ });
3544
+ };
2885
3545
  const deserializeAws_restJson1ConnectorConfiguration = (output, context) => {
2886
3546
  return {
3547
+ authenticationConfig: output.authenticationConfig !== undefined && output.authenticationConfig !== null
3548
+ ? deserializeAws_restJson1AuthenticationConfig(output.authenticationConfig, context)
3549
+ : undefined,
2887
3550
  canUseAsDestination: smithy_client_1.expectBoolean(output.canUseAsDestination),
2888
3551
  canUseAsSource: smithy_client_1.expectBoolean(output.canUseAsSource),
3552
+ connectorArn: smithy_client_1.expectString(output.connectorArn),
3553
+ connectorDescription: smithy_client_1.expectString(output.connectorDescription),
3554
+ connectorLabel: smithy_client_1.expectString(output.connectorLabel),
2889
3555
  connectorMetadata: output.connectorMetadata !== undefined && output.connectorMetadata !== null
2890
3556
  ? deserializeAws_restJson1ConnectorMetadata(output.connectorMetadata, context)
2891
3557
  : undefined,
3558
+ connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
3559
+ ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3560
+ : undefined,
3561
+ connectorName: smithy_client_1.expectString(output.connectorName),
3562
+ connectorOwner: smithy_client_1.expectString(output.connectorOwner),
3563
+ connectorProvisioningConfig: output.connectorProvisioningConfig !== undefined && output.connectorProvisioningConfig !== null
3564
+ ? deserializeAws_restJson1ConnectorProvisioningConfig(output.connectorProvisioningConfig, context)
3565
+ : undefined,
3566
+ connectorProvisioningType: smithy_client_1.expectString(output.connectorProvisioningType),
3567
+ connectorRuntimeSettings: output.connectorRuntimeSettings !== undefined && output.connectorRuntimeSettings !== null
3568
+ ? deserializeAws_restJson1ConnectorRuntimeSettingList(output.connectorRuntimeSettings, context)
3569
+ : undefined,
3570
+ connectorType: smithy_client_1.expectString(output.connectorType),
3571
+ connectorVersion: smithy_client_1.expectString(output.connectorVersion),
2892
3572
  isPrivateLinkEnabled: smithy_client_1.expectBoolean(output.isPrivateLinkEnabled),
2893
3573
  isPrivateLinkEndpointUrlRequired: smithy_client_1.expectBoolean(output.isPrivateLinkEndpointUrlRequired),
3574
+ logoURL: smithy_client_1.expectString(output.logoURL),
3575
+ registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
3576
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.registeredAt)))
3577
+ : undefined,
3578
+ registeredBy: smithy_client_1.expectString(output.registeredBy),
3579
+ supportedApiVersions: output.supportedApiVersions !== undefined && output.supportedApiVersions !== null
3580
+ ? deserializeAws_restJson1SupportedApiVersionList(output.supportedApiVersions, context)
3581
+ : undefined,
2894
3582
  supportedDestinationConnectors: output.supportedDestinationConnectors !== undefined && output.supportedDestinationConnectors !== null
2895
3583
  ? deserializeAws_restJson1ConnectorTypeList(output.supportedDestinationConnectors, context)
2896
3584
  : undefined,
3585
+ supportedOperators: output.supportedOperators !== undefined && output.supportedOperators !== null
3586
+ ? deserializeAws_restJson1SupportedOperatorList(output.supportedOperators, context)
3587
+ : undefined,
2897
3588
  supportedSchedulingFrequencies: output.supportedSchedulingFrequencies !== undefined && output.supportedSchedulingFrequencies !== null
2898
3589
  ? deserializeAws_restJson1SchedulingFrequencyTypeList(output.supportedSchedulingFrequencies, context)
2899
3590
  : undefined,
2900
3591
  supportedTriggerTypes: output.supportedTriggerTypes !== undefined && output.supportedTriggerTypes !== null
2901
3592
  ? deserializeAws_restJson1TriggerTypeList(output.supportedTriggerTypes, context)
2902
3593
  : undefined,
3594
+ supportedWriteOperations: output.supportedWriteOperations !== undefined && output.supportedWriteOperations !== null
3595
+ ? deserializeAws_restJson1SupportedWriteOperationList(output.supportedWriteOperations, context)
3596
+ : undefined,
2903
3597
  };
2904
3598
  };
2905
3599
  const deserializeAws_restJson1ConnectorConfigurationsMap = (output, context) => {
@@ -2913,6 +3607,25 @@ const deserializeAws_restJson1ConnectorConfigurationsMap = (output, context) =>
2913
3607
  };
2914
3608
  }, {});
2915
3609
  };
3610
+ const deserializeAws_restJson1ConnectorDetail = (output, context) => {
3611
+ return {
3612
+ applicationType: smithy_client_1.expectString(output.applicationType),
3613
+ connectorDescription: smithy_client_1.expectString(output.connectorDescription),
3614
+ connectorLabel: smithy_client_1.expectString(output.connectorLabel),
3615
+ connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
3616
+ ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3617
+ : undefined,
3618
+ connectorName: smithy_client_1.expectString(output.connectorName),
3619
+ connectorOwner: smithy_client_1.expectString(output.connectorOwner),
3620
+ connectorProvisioningType: smithy_client_1.expectString(output.connectorProvisioningType),
3621
+ connectorType: smithy_client_1.expectString(output.connectorType),
3622
+ connectorVersion: smithy_client_1.expectString(output.connectorVersion),
3623
+ registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
3624
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.registeredAt)))
3625
+ : undefined,
3626
+ registeredBy: smithy_client_1.expectString(output.registeredBy),
3627
+ };
3628
+ };
2916
3629
  const deserializeAws_restJson1ConnectorEntity = (output, context) => {
2917
3630
  return {
2918
3631
  hasNestedEntities: smithy_client_1.expectBoolean(output.hasNestedEntities),
@@ -2922,12 +3635,19 @@ const deserializeAws_restJson1ConnectorEntity = (output, context) => {
2922
3635
  };
2923
3636
  const deserializeAws_restJson1ConnectorEntityField = (output, context) => {
2924
3637
  return {
3638
+ customProperties: output.customProperties !== undefined && output.customProperties !== null
3639
+ ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3640
+ : undefined,
3641
+ defaultValue: smithy_client_1.expectString(output.defaultValue),
2925
3642
  description: smithy_client_1.expectString(output.description),
2926
3643
  destinationProperties: output.destinationProperties !== undefined && output.destinationProperties !== null
2927
3644
  ? deserializeAws_restJson1DestinationFieldProperties(output.destinationProperties, context)
2928
3645
  : undefined,
2929
3646
  identifier: smithy_client_1.expectString(output.identifier),
3647
+ isDeprecated: smithy_client_1.expectBoolean(output.isDeprecated),
3648
+ isPrimaryKey: smithy_client_1.expectBoolean(output.isPrimaryKey),
2930
3649
  label: smithy_client_1.expectString(output.label),
3650
+ parentIdentifier: smithy_client_1.expectString(output.parentIdentifier),
2931
3651
  sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
2932
3652
  ? deserializeAws_restJson1SourceFieldProperties(output.sourceProperties, context)
2933
3653
  : undefined,
@@ -2967,6 +3687,16 @@ const deserializeAws_restJson1ConnectorEntityMap = (output, context) => {
2967
3687
  };
2968
3688
  }, {});
2969
3689
  };
3690
+ const deserializeAws_restJson1ConnectorList = (output, context) => {
3691
+ return (output || [])
3692
+ .filter((e) => e != null)
3693
+ .map((entry) => {
3694
+ if (entry === null) {
3695
+ return null;
3696
+ }
3697
+ return deserializeAws_restJson1ConnectorDetail(entry, context);
3698
+ });
3699
+ };
2970
3700
  const deserializeAws_restJson1ConnectorMetadata = (output, context) => {
2971
3701
  return {
2972
3702
  Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
@@ -3034,9 +3764,20 @@ const deserializeAws_restJson1ConnectorMetadata = (output, context) => {
3034
3764
  : undefined,
3035
3765
  };
3036
3766
  };
3767
+ const deserializeAws_restJson1ConnectorModeList = (output, context) => {
3768
+ return (output || [])
3769
+ .filter((e) => e != null)
3770
+ .map((entry) => {
3771
+ if (entry === null) {
3772
+ return null;
3773
+ }
3774
+ return smithy_client_1.expectString(entry);
3775
+ });
3776
+ };
3037
3777
  const deserializeAws_restJson1ConnectorOperator = (output, context) => {
3038
3778
  return {
3039
3779
  Amplitude: smithy_client_1.expectString(output.Amplitude),
3780
+ CustomConnector: smithy_client_1.expectString(output.CustomConnector),
3040
3781
  Datadog: smithy_client_1.expectString(output.Datadog),
3041
3782
  Dynatrace: smithy_client_1.expectString(output.Dynatrace),
3042
3783
  GoogleAnalytics: smithy_client_1.expectString(output.GoogleAnalytics),
@@ -3056,6 +3797,7 @@ const deserializeAws_restJson1ConnectorOperator = (output, context) => {
3056
3797
  const deserializeAws_restJson1ConnectorProfile = (output, context) => {
3057
3798
  return {
3058
3799
  connectionMode: smithy_client_1.expectString(output.connectionMode),
3800
+ connectorLabel: smithy_client_1.expectString(output.connectorLabel),
3059
3801
  connectorProfileArn: smithy_client_1.expectString(output.connectorProfileArn),
3060
3802
  connectorProfileName: smithy_client_1.expectString(output.connectorProfileName),
3061
3803
  connectorProfileProperties: output.connectorProfileProperties !== undefined && output.connectorProfileProperties !== null
@@ -3089,6 +3831,9 @@ const deserializeAws_restJson1ConnectorProfileProperties = (output, context) =>
3089
3831
  Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3090
3832
  ? deserializeAws_restJson1AmplitudeConnectorProfileProperties(output.Amplitude, context)
3091
3833
  : undefined,
3834
+ CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
3835
+ ? deserializeAws_restJson1CustomConnectorProfileProperties(output.CustomConnector, context)
3836
+ : undefined,
3092
3837
  Datadog: output.Datadog !== undefined && output.Datadog !== null
3093
3838
  ? deserializeAws_restJson1DatadogConnectorProfileProperties(output.Datadog, context)
3094
3839
  : undefined,
@@ -3139,6 +3884,56 @@ const deserializeAws_restJson1ConnectorProfileProperties = (output, context) =>
3139
3884
  : undefined,
3140
3885
  };
3141
3886
  };
3887
+ const deserializeAws_restJson1ConnectorProvisioningConfig = (output, context) => {
3888
+ return {
3889
+ lambda: output.lambda !== undefined && output.lambda !== null
3890
+ ? deserializeAws_restJson1LambdaConnectorProvisioningConfig(output.lambda, context)
3891
+ : undefined,
3892
+ };
3893
+ };
3894
+ const deserializeAws_restJson1ConnectorRuntimeSetting = (output, context) => {
3895
+ return {
3896
+ connectorSuppliedValueOptions: output.connectorSuppliedValueOptions !== undefined && output.connectorSuppliedValueOptions !== null
3897
+ ? deserializeAws_restJson1ConnectorSuppliedValueOptionList(output.connectorSuppliedValueOptions, context)
3898
+ : undefined,
3899
+ dataType: smithy_client_1.expectString(output.dataType),
3900
+ description: smithy_client_1.expectString(output.description),
3901
+ isRequired: smithy_client_1.expectBoolean(output.isRequired),
3902
+ key: smithy_client_1.expectString(output.key),
3903
+ label: smithy_client_1.expectString(output.label),
3904
+ scope: smithy_client_1.expectString(output.scope),
3905
+ };
3906
+ };
3907
+ const deserializeAws_restJson1ConnectorRuntimeSettingList = (output, context) => {
3908
+ return (output || [])
3909
+ .filter((e) => e != null)
3910
+ .map((entry) => {
3911
+ if (entry === null) {
3912
+ return null;
3913
+ }
3914
+ return deserializeAws_restJson1ConnectorRuntimeSetting(entry, context);
3915
+ });
3916
+ };
3917
+ const deserializeAws_restJson1ConnectorSuppliedValueList = (output, context) => {
3918
+ return (output || [])
3919
+ .filter((e) => e != null)
3920
+ .map((entry) => {
3921
+ if (entry === null) {
3922
+ return null;
3923
+ }
3924
+ return smithy_client_1.expectString(entry);
3925
+ });
3926
+ };
3927
+ const deserializeAws_restJson1ConnectorSuppliedValueOptionList = (output, context) => {
3928
+ return (output || [])
3929
+ .filter((e) => e != null)
3930
+ .map((entry) => {
3931
+ if (entry === null) {
3932
+ return null;
3933
+ }
3934
+ return smithy_client_1.expectString(entry);
3935
+ });
3936
+ };
3142
3937
  const deserializeAws_restJson1ConnectorTypeList = (output, context) => {
3143
3938
  return (output || [])
3144
3939
  .filter((e) => e != null)
@@ -3149,6 +3944,57 @@ const deserializeAws_restJson1ConnectorTypeList = (output, context) => {
3149
3944
  return smithy_client_1.expectString(entry);
3150
3945
  });
3151
3946
  };
3947
+ const deserializeAws_restJson1CustomAuthConfig = (output, context) => {
3948
+ return {
3949
+ authParameters: output.authParameters !== undefined && output.authParameters !== null
3950
+ ? deserializeAws_restJson1AuthParameterList(output.authParameters, context)
3951
+ : undefined,
3952
+ customAuthenticationType: smithy_client_1.expectString(output.customAuthenticationType),
3953
+ };
3954
+ };
3955
+ const deserializeAws_restJson1CustomAuthConfigList = (output, context) => {
3956
+ return (output || [])
3957
+ .filter((e) => e != null)
3958
+ .map((entry) => {
3959
+ if (entry === null) {
3960
+ return null;
3961
+ }
3962
+ return deserializeAws_restJson1CustomAuthConfig(entry, context);
3963
+ });
3964
+ };
3965
+ const deserializeAws_restJson1CustomConnectorDestinationProperties = (output, context) => {
3966
+ return {
3967
+ customProperties: output.customProperties !== undefined && output.customProperties !== null
3968
+ ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3969
+ : undefined,
3970
+ entityName: smithy_client_1.expectString(output.entityName),
3971
+ errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3972
+ ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3973
+ : undefined,
3974
+ idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
3975
+ ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
3976
+ : undefined,
3977
+ writeOperationType: smithy_client_1.expectString(output.writeOperationType),
3978
+ };
3979
+ };
3980
+ const deserializeAws_restJson1CustomConnectorProfileProperties = (output, context) => {
3981
+ return {
3982
+ oAuth2Properties: output.oAuth2Properties !== undefined && output.oAuth2Properties !== null
3983
+ ? deserializeAws_restJson1OAuth2Properties(output.oAuth2Properties, context)
3984
+ : undefined,
3985
+ profileProperties: output.profileProperties !== undefined && output.profileProperties !== null
3986
+ ? deserializeAws_restJson1ProfilePropertiesMap(output.profileProperties, context)
3987
+ : undefined,
3988
+ };
3989
+ };
3990
+ const deserializeAws_restJson1CustomConnectorSourceProperties = (output, context) => {
3991
+ return {
3992
+ customProperties: output.customProperties !== undefined && output.customProperties !== null
3993
+ ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3994
+ : undefined,
3995
+ entityName: smithy_client_1.expectString(output.entityName),
3996
+ };
3997
+ };
3152
3998
  const deserializeAws_restJson1CustomerProfilesDestinationProperties = (output, context) => {
3153
3999
  return {
3154
4000
  domainName: smithy_client_1.expectString(output.domainName),
@@ -3158,6 +4004,17 @@ const deserializeAws_restJson1CustomerProfilesDestinationProperties = (output, c
3158
4004
  const deserializeAws_restJson1CustomerProfilesMetadata = (output, context) => {
3159
4005
  return {};
3160
4006
  };
4007
+ const deserializeAws_restJson1CustomProperties = (output, context) => {
4008
+ return Object.entries(output).reduce((acc, [key, value]) => {
4009
+ if (value === null) {
4010
+ return acc;
4011
+ }
4012
+ return {
4013
+ ...acc,
4014
+ [key]: smithy_client_1.expectString(value),
4015
+ };
4016
+ }, {});
4017
+ };
3161
4018
  const deserializeAws_restJson1DatadogConnectorProfileProperties = (output, context) => {
3162
4019
  return {
3163
4020
  instanceUrl: smithy_client_1.expectString(output.instanceUrl),
@@ -3173,6 +4030,9 @@ const deserializeAws_restJson1DatadogSourceProperties = (output, context) => {
3173
4030
  };
3174
4031
  const deserializeAws_restJson1DestinationConnectorProperties = (output, context) => {
3175
4032
  return {
4033
+ CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
4034
+ ? deserializeAws_restJson1CustomConnectorDestinationProperties(output.CustomConnector, context)
4035
+ : undefined,
3176
4036
  CustomerProfiles: output.CustomerProfiles !== undefined && output.CustomerProfiles !== null
3177
4037
  ? deserializeAws_restJson1CustomerProfilesDestinationProperties(output.CustomerProfiles, context)
3178
4038
  : undefined,
@@ -3191,6 +4051,9 @@ const deserializeAws_restJson1DestinationConnectorProperties = (output, context)
3191
4051
  S3: output.S3 !== undefined && output.S3 !== null
3192
4052
  ? deserializeAws_restJson1S3DestinationProperties(output.S3, context)
3193
4053
  : undefined,
4054
+ SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
4055
+ ? deserializeAws_restJson1SAPODataDestinationProperties(output.SAPOData, context)
4056
+ : undefined,
3194
4057
  Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
3195
4058
  ? deserializeAws_restJson1SalesforceDestinationProperties(output.Salesforce, context)
3196
4059
  : undefined,
@@ -3208,6 +4071,7 @@ const deserializeAws_restJson1DestinationConnectorProperties = (output, context)
3208
4071
  const deserializeAws_restJson1DestinationFieldProperties = (output, context) => {
3209
4072
  return {
3210
4073
  isCreatable: smithy_client_1.expectBoolean(output.isCreatable),
4074
+ isDefaultedOnCreate: smithy_client_1.expectBoolean(output.isDefaultedOnCreate),
3211
4075
  isNullable: smithy_client_1.expectBoolean(output.isNullable),
3212
4076
  isUpdatable: smithy_client_1.expectBoolean(output.isUpdatable),
3213
4077
  isUpsertable: smithy_client_1.expectBoolean(output.isUpsertable),
@@ -3218,6 +4082,7 @@ const deserializeAws_restJson1DestinationFieldProperties = (output, context) =>
3218
4082
  };
3219
4083
  const deserializeAws_restJson1DestinationFlowConfig = (output, context) => {
3220
4084
  return {
4085
+ apiVersion: smithy_client_1.expectString(output.apiVersion),
3221
4086
  connectorProfileName: smithy_client_1.expectString(output.connectorProfileName),
3222
4087
  connectorType: smithy_client_1.expectString(output.connectorType),
3223
4088
  destinationConnectorProperties: output.destinationConnectorProperties !== undefined && output.destinationConnectorProperties !== null
@@ -3314,13 +4179,21 @@ const deserializeAws_restJson1ExecutionResult = (output, context) => {
3314
4179
  };
3315
4180
  const deserializeAws_restJson1FieldTypeDetails = (output, context) => {
3316
4181
  return {
4182
+ fieldLengthRange: output.fieldLengthRange !== undefined && output.fieldLengthRange !== null
4183
+ ? deserializeAws_restJson1Range(output.fieldLengthRange, context)
4184
+ : undefined,
3317
4185
  fieldType: smithy_client_1.expectString(output.fieldType),
4186
+ fieldValueRange: output.fieldValueRange !== undefined && output.fieldValueRange !== null
4187
+ ? deserializeAws_restJson1Range(output.fieldValueRange, context)
4188
+ : undefined,
3318
4189
  filterOperators: output.filterOperators !== undefined && output.filterOperators !== null
3319
4190
  ? deserializeAws_restJson1FilterOperatorList(output.filterOperators, context)
3320
4191
  : undefined,
4192
+ supportedDateFormat: smithy_client_1.expectString(output.supportedDateFormat),
3321
4193
  supportedValues: output.supportedValues !== undefined && output.supportedValues !== null
3322
4194
  ? deserializeAws_restJson1SupportedValueList(output.supportedValues, context)
3323
4195
  : undefined,
4196
+ valueRegexPattern: smithy_client_1.expectString(output.valueRegexPattern),
3324
4197
  };
3325
4198
  };
3326
4199
  const deserializeAws_restJson1FilterOperatorList = (output, context) => {
@@ -3340,6 +4213,7 @@ const deserializeAws_restJson1FlowDefinition = (output, context) => {
3340
4213
  : undefined,
3341
4214
  createdBy: smithy_client_1.expectString(output.createdBy),
3342
4215
  description: smithy_client_1.expectString(output.description),
4216
+ destinationConnectorLabel: smithy_client_1.expectString(output.destinationConnectorLabel),
3343
4217
  destinationConnectorType: smithy_client_1.expectString(output.destinationConnectorType),
3344
4218
  flowArn: smithy_client_1.expectString(output.flowArn),
3345
4219
  flowName: smithy_client_1.expectString(output.flowName),
@@ -3351,6 +4225,7 @@ const deserializeAws_restJson1FlowDefinition = (output, context) => {
3351
4225
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedAt)))
3352
4226
  : undefined,
3353
4227
  lastUpdatedBy: smithy_client_1.expectString(output.lastUpdatedBy),
4228
+ sourceConnectorLabel: smithy_client_1.expectString(output.sourceConnectorLabel),
3354
4229
  sourceConnectorType: smithy_client_1.expectString(output.sourceConnectorType),
3355
4230
  tags: output.tags !== undefined && output.tags !== null
3356
4231
  ? deserializeAws_restJson1TagMap(output.tags, context)
@@ -3439,6 +4314,11 @@ const deserializeAws_restJson1InforNexusSourceProperties = (output, context) =>
3439
4314
  object: smithy_client_1.expectString(output.object),
3440
4315
  };
3441
4316
  };
4317
+ const deserializeAws_restJson1LambdaConnectorProvisioningConfig = (output, context) => {
4318
+ return {
4319
+ lambdaArn: smithy_client_1.expectString(output.lambdaArn),
4320
+ };
4321
+ };
3442
4322
  const deserializeAws_restJson1LookoutMetricsDestinationProperties = (output, context) => {
3443
4323
  return {};
3444
4324
  };
@@ -3455,6 +4335,38 @@ const deserializeAws_restJson1MarketoSourceProperties = (output, context) => {
3455
4335
  object: smithy_client_1.expectString(output.object),
3456
4336
  };
3457
4337
  };
4338
+ const deserializeAws_restJson1OAuth2Defaults = (output, context) => {
4339
+ return {
4340
+ authCodeUrls: output.authCodeUrls !== undefined && output.authCodeUrls !== null
4341
+ ? deserializeAws_restJson1AuthCodeUrlList(output.authCodeUrls, context)
4342
+ : undefined,
4343
+ oauth2GrantTypesSupported: output.oauth2GrantTypesSupported !== undefined && output.oauth2GrantTypesSupported !== null
4344
+ ? deserializeAws_restJson1OAuth2GrantTypeSupportedList(output.oauth2GrantTypesSupported, context)
4345
+ : undefined,
4346
+ oauthScopes: output.oauthScopes !== undefined && output.oauthScopes !== null
4347
+ ? deserializeAws_restJson1OAuthScopeList(output.oauthScopes, context)
4348
+ : undefined,
4349
+ tokenUrls: output.tokenUrls !== undefined && output.tokenUrls !== null
4350
+ ? deserializeAws_restJson1TokenUrlList(output.tokenUrls, context)
4351
+ : undefined,
4352
+ };
4353
+ };
4354
+ const deserializeAws_restJson1OAuth2GrantTypeSupportedList = (output, context) => {
4355
+ return (output || [])
4356
+ .filter((e) => e != null)
4357
+ .map((entry) => {
4358
+ if (entry === null) {
4359
+ return null;
4360
+ }
4361
+ return smithy_client_1.expectString(entry);
4362
+ });
4363
+ };
4364
+ const deserializeAws_restJson1OAuth2Properties = (output, context) => {
4365
+ return {
4366
+ oAuth2GrantType: smithy_client_1.expectString(output.oAuth2GrantType),
4367
+ tokenUrl: smithy_client_1.expectString(output.tokenUrl),
4368
+ };
4369
+ };
3458
4370
  const deserializeAws_restJson1OAuthProperties = (output, context) => {
3459
4371
  return {
3460
4372
  authCodeUrl: smithy_client_1.expectString(output.authCodeUrl),
@@ -3487,6 +4399,23 @@ const deserializeAws_restJson1PrivateConnectionProvisioningState = (output, cont
3487
4399
  status: smithy_client_1.expectString(output.status),
3488
4400
  };
3489
4401
  };
4402
+ const deserializeAws_restJson1ProfilePropertiesMap = (output, context) => {
4403
+ return Object.entries(output).reduce((acc, [key, value]) => {
4404
+ if (value === null) {
4405
+ return acc;
4406
+ }
4407
+ return {
4408
+ ...acc,
4409
+ [key]: smithy_client_1.expectString(value),
4410
+ };
4411
+ }, {});
4412
+ };
4413
+ const deserializeAws_restJson1Range = (output, context) => {
4414
+ return {
4415
+ maximum: smithy_client_1.limitedParseDouble(output.maximum),
4416
+ minimum: smithy_client_1.limitedParseDouble(output.minimum),
4417
+ };
4418
+ };
3490
4419
  const deserializeAws_restJson1RedshiftConnectorProfileProperties = (output, context) => {
3491
4420
  return {
3492
4421
  bucketName: smithy_client_1.expectString(output.bucketName),
@@ -3600,6 +4529,21 @@ const deserializeAws_restJson1SAPODataConnectorProfileProperties = (output, cont
3600
4529
  privateLinkServiceName: smithy_client_1.expectString(output.privateLinkServiceName),
3601
4530
  };
3602
4531
  };
4532
+ const deserializeAws_restJson1SAPODataDestinationProperties = (output, context) => {
4533
+ return {
4534
+ errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
4535
+ ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4536
+ : undefined,
4537
+ idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
4538
+ ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
4539
+ : undefined,
4540
+ objectPath: smithy_client_1.expectString(output.objectPath),
4541
+ successResponseHandlingConfig: output.successResponseHandlingConfig !== undefined && output.successResponseHandlingConfig !== null
4542
+ ? deserializeAws_restJson1SuccessResponseHandlingConfig(output.successResponseHandlingConfig, context)
4543
+ : undefined,
4544
+ writeOperationType: smithy_client_1.expectString(output.writeOperationType),
4545
+ };
4546
+ };
3603
4547
  const deserializeAws_restJson1SAPODataMetadata = (output, context) => {
3604
4548
  return {};
3605
4549
  };
@@ -3709,6 +4653,9 @@ const deserializeAws_restJson1SourceConnectorProperties = (output, context) => {
3709
4653
  Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3710
4654
  ? deserializeAws_restJson1AmplitudeSourceProperties(output.Amplitude, context)
3711
4655
  : undefined,
4656
+ CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
4657
+ ? deserializeAws_restJson1CustomConnectorSourceProperties(output.CustomConnector, context)
4658
+ : undefined,
3712
4659
  Datadog: output.Datadog !== undefined && output.Datadog !== null
3713
4660
  ? deserializeAws_restJson1DatadogSourceProperties(output.Datadog, context)
3714
4661
  : undefined,
@@ -3757,6 +4704,7 @@ const deserializeAws_restJson1SourceFieldProperties = (output, context) => {
3757
4704
  return {
3758
4705
  isQueryable: smithy_client_1.expectBoolean(output.isQueryable),
3759
4706
  isRetrievable: smithy_client_1.expectBoolean(output.isRetrievable),
4707
+ isTimestampFieldForIncrementalQueries: smithy_client_1.expectBoolean(output.isTimestampFieldForIncrementalQueries),
3760
4708
  };
3761
4709
  };
3762
4710
  const deserializeAws_restJson1SourceFields = (output, context) => {
@@ -3771,6 +4719,7 @@ const deserializeAws_restJson1SourceFields = (output, context) => {
3771
4719
  };
3772
4720
  const deserializeAws_restJson1SourceFlowConfig = (output, context) => {
3773
4721
  return {
4722
+ apiVersion: smithy_client_1.expectString(output.apiVersion),
3774
4723
  connectorProfileName: smithy_client_1.expectString(output.connectorProfileName),
3775
4724
  connectorType: smithy_client_1.expectString(output.connectorType),
3776
4725
  incrementalPullConfig: output.incrementalPullConfig !== undefined && output.incrementalPullConfig !== null
@@ -3781,6 +4730,22 @@ const deserializeAws_restJson1SourceFlowConfig = (output, context) => {
3781
4730
  : undefined,
3782
4731
  };
3783
4732
  };
4733
+ const deserializeAws_restJson1SuccessResponseHandlingConfig = (output, context) => {
4734
+ return {
4735
+ bucketName: smithy_client_1.expectString(output.bucketName),
4736
+ bucketPrefix: smithy_client_1.expectString(output.bucketPrefix),
4737
+ };
4738
+ };
4739
+ const deserializeAws_restJson1SupportedApiVersionList = (output, context) => {
4740
+ return (output || [])
4741
+ .filter((e) => e != null)
4742
+ .map((entry) => {
4743
+ if (entry === null) {
4744
+ return null;
4745
+ }
4746
+ return smithy_client_1.expectString(entry);
4747
+ });
4748
+ };
3784
4749
  const deserializeAws_restJson1SupportedFieldTypeDetails = (output, context) => {
3785
4750
  return {
3786
4751
  v1: output.v1 !== undefined && output.v1 !== null
@@ -3788,6 +4753,16 @@ const deserializeAws_restJson1SupportedFieldTypeDetails = (output, context) => {
3788
4753
  : undefined,
3789
4754
  };
3790
4755
  };
4756
+ const deserializeAws_restJson1SupportedOperatorList = (output, context) => {
4757
+ return (output || [])
4758
+ .filter((e) => e != null)
4759
+ .map((entry) => {
4760
+ if (entry === null) {
4761
+ return null;
4762
+ }
4763
+ return smithy_client_1.expectString(entry);
4764
+ });
4765
+ };
3791
4766
  const deserializeAws_restJson1SupportedValueList = (output, context) => {
3792
4767
  return (output || [])
3793
4768
  .filter((e) => e != null)
@@ -3855,6 +4830,16 @@ const deserializeAws_restJson1Tasks = (output, context) => {
3855
4830
  return deserializeAws_restJson1Task(entry, context);
3856
4831
  });
3857
4832
  };
4833
+ const deserializeAws_restJson1TokenUrlList = (output, context) => {
4834
+ return (output || [])
4835
+ .filter((e) => e != null)
4836
+ .map((entry) => {
4837
+ if (entry === null) {
4838
+ return null;
4839
+ }
4840
+ return smithy_client_1.expectString(entry);
4841
+ });
4842
+ };
3858
4843
  const deserializeAws_restJson1TrendmicroConnectorProfileProperties = (output, context) => {
3859
4844
  return {};
3860
4845
  };