@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
  "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),
@@ -2208,6 +2752,7 @@ const serializeAws_restJson1DestinationConnectorProperties = (input, context) =>
2208
2752
  };
2209
2753
  const serializeAws_restJson1DestinationFlowConfig = (input, context) => {
2210
2754
  return {
2755
+ ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
2211
2756
  ...(input.connectorProfileName !== undefined &&
2212
2757
  input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
2213
2758
  ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
@@ -2336,6 +2881,11 @@ const serializeAws_restJson1InforNexusSourceProperties = (input, context) => {
2336
2881
  ...(input.object !== undefined && input.object !== null && { object: input.object }),
2337
2882
  };
2338
2883
  };
2884
+ const serializeAws_restJson1LambdaConnectorProvisioningConfig = (input, context) => {
2885
+ return {
2886
+ ...(input.lambdaArn !== undefined && input.lambdaArn !== null && { lambdaArn: input.lambdaArn }),
2887
+ };
2888
+ };
2339
2889
  const serializeAws_restJson1LookoutMetricsDestinationProperties = (input, context) => {
2340
2890
  return {};
2341
2891
  };
@@ -2360,6 +2910,25 @@ const serializeAws_restJson1MarketoSourceProperties = (input, context) => {
2360
2910
  ...(input.object !== undefined && input.object !== null && { object: input.object }),
2361
2911
  };
2362
2912
  };
2913
+ const serializeAws_restJson1OAuth2Credentials = (input, context) => {
2914
+ return {
2915
+ ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2916
+ ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
2917
+ ...(input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret }),
2918
+ ...(input.oAuthRequest !== undefined &&
2919
+ input.oAuthRequest !== null && {
2920
+ oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2921
+ }),
2922
+ ...(input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }),
2923
+ };
2924
+ };
2925
+ const serializeAws_restJson1OAuth2Properties = (input, context) => {
2926
+ return {
2927
+ ...(input.oAuth2GrantType !== undefined &&
2928
+ input.oAuth2GrantType !== null && { oAuth2GrantType: input.oAuth2GrantType }),
2929
+ ...(input.tokenUrl !== undefined && input.tokenUrl !== null && { tokenUrl: input.tokenUrl }),
2930
+ };
2931
+ };
2363
2932
  const serializeAws_restJson1OAuthCredentials = (input, context) => {
2364
2933
  return {
2365
2934
  ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
@@ -2396,6 +2965,17 @@ const serializeAws_restJson1PrefixConfig = (input, context) => {
2396
2965
  ...(input.prefixType !== undefined && input.prefixType !== null && { prefixType: input.prefixType }),
2397
2966
  };
2398
2967
  };
2968
+ const serializeAws_restJson1ProfilePropertiesMap = (input, context) => {
2969
+ return Object.entries(input).reduce((acc, [key, value]) => {
2970
+ if (value === null) {
2971
+ return acc;
2972
+ }
2973
+ return {
2974
+ ...acc,
2975
+ [key]: value,
2976
+ };
2977
+ }, {});
2978
+ };
2399
2979
  const serializeAws_restJson1RedshiftConnectorProfileCredentials = (input, context) => {
2400
2980
  return {
2401
2981
  ...(input.password !== undefined && input.password !== null && { password: input.password }),
@@ -2640,6 +3220,10 @@ const serializeAws_restJson1SourceConnectorProperties = (input, context) => {
2640
3220
  input.Amplitude !== null && {
2641
3221
  Amplitude: serializeAws_restJson1AmplitudeSourceProperties(input.Amplitude, context),
2642
3222
  }),
3223
+ ...(input.CustomConnector !== undefined &&
3224
+ input.CustomConnector !== null && {
3225
+ CustomConnector: serializeAws_restJson1CustomConnectorSourceProperties(input.CustomConnector, context),
3226
+ }),
2643
3227
  ...(input.Datadog !== undefined &&
2644
3228
  input.Datadog !== null && { Datadog: serializeAws_restJson1DatadogSourceProperties(input.Datadog, context) }),
2645
3229
  ...(input.Dynatrace !== undefined &&
@@ -2694,6 +3278,7 @@ const serializeAws_restJson1SourceFields = (input, context) => {
2694
3278
  };
2695
3279
  const serializeAws_restJson1SourceFlowConfig = (input, context) => {
2696
3280
  return {
3281
+ ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
2697
3282
  ...(input.connectorProfileName !== undefined &&
2698
3283
  input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
2699
3284
  ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
@@ -2882,24 +3467,104 @@ const deserializeAws_restJson1AmplitudeSourceProperties = (output, context) => {
2882
3467
  object: smithy_client_1.expectString(output.object),
2883
3468
  };
2884
3469
  };
3470
+ const deserializeAws_restJson1AuthCodeUrlList = (output, context) => {
3471
+ return (output || [])
3472
+ .filter((e) => e != null)
3473
+ .map((entry) => {
3474
+ if (entry === null) {
3475
+ return null;
3476
+ }
3477
+ return smithy_client_1.expectString(entry);
3478
+ });
3479
+ };
3480
+ const deserializeAws_restJson1AuthenticationConfig = (output, context) => {
3481
+ return {
3482
+ customAuthConfigs: output.customAuthConfigs !== undefined && output.customAuthConfigs !== null
3483
+ ? deserializeAws_restJson1CustomAuthConfigList(output.customAuthConfigs, context)
3484
+ : undefined,
3485
+ isApiKeyAuthSupported: smithy_client_1.expectBoolean(output.isApiKeyAuthSupported),
3486
+ isBasicAuthSupported: smithy_client_1.expectBoolean(output.isBasicAuthSupported),
3487
+ isCustomAuthSupported: smithy_client_1.expectBoolean(output.isCustomAuthSupported),
3488
+ isOAuth2Supported: smithy_client_1.expectBoolean(output.isOAuth2Supported),
3489
+ oAuth2Defaults: output.oAuth2Defaults !== undefined && output.oAuth2Defaults !== null
3490
+ ? deserializeAws_restJson1OAuth2Defaults(output.oAuth2Defaults, context)
3491
+ : undefined,
3492
+ };
3493
+ };
3494
+ const deserializeAws_restJson1AuthParameter = (output, context) => {
3495
+ return {
3496
+ connectorSuppliedValues: output.connectorSuppliedValues !== undefined && output.connectorSuppliedValues !== null
3497
+ ? deserializeAws_restJson1ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
3498
+ : undefined,
3499
+ description: smithy_client_1.expectString(output.description),
3500
+ isRequired: smithy_client_1.expectBoolean(output.isRequired),
3501
+ isSensitiveField: smithy_client_1.expectBoolean(output.isSensitiveField),
3502
+ key: smithy_client_1.expectString(output.key),
3503
+ label: smithy_client_1.expectString(output.label),
3504
+ };
3505
+ };
3506
+ const deserializeAws_restJson1AuthParameterList = (output, context) => {
3507
+ return (output || [])
3508
+ .filter((e) => e != null)
3509
+ .map((entry) => {
3510
+ if (entry === null) {
3511
+ return null;
3512
+ }
3513
+ return deserializeAws_restJson1AuthParameter(entry, context);
3514
+ });
3515
+ };
2885
3516
  const deserializeAws_restJson1ConnectorConfiguration = (output, context) => {
2886
3517
  return {
3518
+ authenticationConfig: output.authenticationConfig !== undefined && output.authenticationConfig !== null
3519
+ ? deserializeAws_restJson1AuthenticationConfig(output.authenticationConfig, context)
3520
+ : undefined,
2887
3521
  canUseAsDestination: smithy_client_1.expectBoolean(output.canUseAsDestination),
2888
3522
  canUseAsSource: smithy_client_1.expectBoolean(output.canUseAsSource),
3523
+ connectorArn: smithy_client_1.expectString(output.connectorArn),
3524
+ connectorDescription: smithy_client_1.expectString(output.connectorDescription),
3525
+ connectorLabel: smithy_client_1.expectString(output.connectorLabel),
2889
3526
  connectorMetadata: output.connectorMetadata !== undefined && output.connectorMetadata !== null
2890
3527
  ? deserializeAws_restJson1ConnectorMetadata(output.connectorMetadata, context)
2891
3528
  : undefined,
3529
+ connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
3530
+ ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3531
+ : undefined,
3532
+ connectorName: smithy_client_1.expectString(output.connectorName),
3533
+ connectorOwner: smithy_client_1.expectString(output.connectorOwner),
3534
+ connectorProvisioningConfig: output.connectorProvisioningConfig !== undefined && output.connectorProvisioningConfig !== null
3535
+ ? deserializeAws_restJson1ConnectorProvisioningConfig(output.connectorProvisioningConfig, context)
3536
+ : undefined,
3537
+ connectorProvisioningType: smithy_client_1.expectString(output.connectorProvisioningType),
3538
+ connectorRuntimeSettings: output.connectorRuntimeSettings !== undefined && output.connectorRuntimeSettings !== null
3539
+ ? deserializeAws_restJson1ConnectorRuntimeSettingList(output.connectorRuntimeSettings, context)
3540
+ : undefined,
3541
+ connectorType: smithy_client_1.expectString(output.connectorType),
3542
+ connectorVersion: smithy_client_1.expectString(output.connectorVersion),
2892
3543
  isPrivateLinkEnabled: smithy_client_1.expectBoolean(output.isPrivateLinkEnabled),
2893
3544
  isPrivateLinkEndpointUrlRequired: smithy_client_1.expectBoolean(output.isPrivateLinkEndpointUrlRequired),
3545
+ logoURL: smithy_client_1.expectString(output.logoURL),
3546
+ registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
3547
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.registeredAt)))
3548
+ : undefined,
3549
+ registeredBy: smithy_client_1.expectString(output.registeredBy),
3550
+ supportedApiVersions: output.supportedApiVersions !== undefined && output.supportedApiVersions !== null
3551
+ ? deserializeAws_restJson1SupportedApiVersionList(output.supportedApiVersions, context)
3552
+ : undefined,
2894
3553
  supportedDestinationConnectors: output.supportedDestinationConnectors !== undefined && output.supportedDestinationConnectors !== null
2895
3554
  ? deserializeAws_restJson1ConnectorTypeList(output.supportedDestinationConnectors, context)
2896
3555
  : undefined,
3556
+ supportedOperators: output.supportedOperators !== undefined && output.supportedOperators !== null
3557
+ ? deserializeAws_restJson1SupportedOperatorList(output.supportedOperators, context)
3558
+ : undefined,
2897
3559
  supportedSchedulingFrequencies: output.supportedSchedulingFrequencies !== undefined && output.supportedSchedulingFrequencies !== null
2898
3560
  ? deserializeAws_restJson1SchedulingFrequencyTypeList(output.supportedSchedulingFrequencies, context)
2899
3561
  : undefined,
2900
3562
  supportedTriggerTypes: output.supportedTriggerTypes !== undefined && output.supportedTriggerTypes !== null
2901
3563
  ? deserializeAws_restJson1TriggerTypeList(output.supportedTriggerTypes, context)
2902
3564
  : undefined,
3565
+ supportedWriteOperations: output.supportedWriteOperations !== undefined && output.supportedWriteOperations !== null
3566
+ ? deserializeAws_restJson1SupportedWriteOperationList(output.supportedWriteOperations, context)
3567
+ : undefined,
2903
3568
  };
2904
3569
  };
2905
3570
  const deserializeAws_restJson1ConnectorConfigurationsMap = (output, context) => {
@@ -2913,6 +3578,25 @@ const deserializeAws_restJson1ConnectorConfigurationsMap = (output, context) =>
2913
3578
  };
2914
3579
  }, {});
2915
3580
  };
3581
+ const deserializeAws_restJson1ConnectorDetail = (output, context) => {
3582
+ return {
3583
+ applicationType: smithy_client_1.expectString(output.applicationType),
3584
+ connectorDescription: smithy_client_1.expectString(output.connectorDescription),
3585
+ connectorLabel: smithy_client_1.expectString(output.connectorLabel),
3586
+ connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
3587
+ ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3588
+ : undefined,
3589
+ connectorName: smithy_client_1.expectString(output.connectorName),
3590
+ connectorOwner: smithy_client_1.expectString(output.connectorOwner),
3591
+ connectorProvisioningType: smithy_client_1.expectString(output.connectorProvisioningType),
3592
+ connectorType: smithy_client_1.expectString(output.connectorType),
3593
+ connectorVersion: smithy_client_1.expectString(output.connectorVersion),
3594
+ registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
3595
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.registeredAt)))
3596
+ : undefined,
3597
+ registeredBy: smithy_client_1.expectString(output.registeredBy),
3598
+ };
3599
+ };
2916
3600
  const deserializeAws_restJson1ConnectorEntity = (output, context) => {
2917
3601
  return {
2918
3602
  hasNestedEntities: smithy_client_1.expectBoolean(output.hasNestedEntities),
@@ -2922,12 +3606,19 @@ const deserializeAws_restJson1ConnectorEntity = (output, context) => {
2922
3606
  };
2923
3607
  const deserializeAws_restJson1ConnectorEntityField = (output, context) => {
2924
3608
  return {
3609
+ customProperties: output.customProperties !== undefined && output.customProperties !== null
3610
+ ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3611
+ : undefined,
3612
+ defaultValue: smithy_client_1.expectString(output.defaultValue),
2925
3613
  description: smithy_client_1.expectString(output.description),
2926
3614
  destinationProperties: output.destinationProperties !== undefined && output.destinationProperties !== null
2927
3615
  ? deserializeAws_restJson1DestinationFieldProperties(output.destinationProperties, context)
2928
3616
  : undefined,
2929
3617
  identifier: smithy_client_1.expectString(output.identifier),
3618
+ isDeprecated: smithy_client_1.expectBoolean(output.isDeprecated),
3619
+ isPrimaryKey: smithy_client_1.expectBoolean(output.isPrimaryKey),
2930
3620
  label: smithy_client_1.expectString(output.label),
3621
+ parentIdentifier: smithy_client_1.expectString(output.parentIdentifier),
2931
3622
  sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
2932
3623
  ? deserializeAws_restJson1SourceFieldProperties(output.sourceProperties, context)
2933
3624
  : undefined,
@@ -2967,6 +3658,16 @@ const deserializeAws_restJson1ConnectorEntityMap = (output, context) => {
2967
3658
  };
2968
3659
  }, {});
2969
3660
  };
3661
+ const deserializeAws_restJson1ConnectorList = (output, context) => {
3662
+ return (output || [])
3663
+ .filter((e) => e != null)
3664
+ .map((entry) => {
3665
+ if (entry === null) {
3666
+ return null;
3667
+ }
3668
+ return deserializeAws_restJson1ConnectorDetail(entry, context);
3669
+ });
3670
+ };
2970
3671
  const deserializeAws_restJson1ConnectorMetadata = (output, context) => {
2971
3672
  return {
2972
3673
  Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
@@ -3034,9 +3735,20 @@ const deserializeAws_restJson1ConnectorMetadata = (output, context) => {
3034
3735
  : undefined,
3035
3736
  };
3036
3737
  };
3738
+ const deserializeAws_restJson1ConnectorModeList = (output, context) => {
3739
+ return (output || [])
3740
+ .filter((e) => e != null)
3741
+ .map((entry) => {
3742
+ if (entry === null) {
3743
+ return null;
3744
+ }
3745
+ return smithy_client_1.expectString(entry);
3746
+ });
3747
+ };
3037
3748
  const deserializeAws_restJson1ConnectorOperator = (output, context) => {
3038
3749
  return {
3039
3750
  Amplitude: smithy_client_1.expectString(output.Amplitude),
3751
+ CustomConnector: smithy_client_1.expectString(output.CustomConnector),
3040
3752
  Datadog: smithy_client_1.expectString(output.Datadog),
3041
3753
  Dynatrace: smithy_client_1.expectString(output.Dynatrace),
3042
3754
  GoogleAnalytics: smithy_client_1.expectString(output.GoogleAnalytics),
@@ -3056,6 +3768,7 @@ const deserializeAws_restJson1ConnectorOperator = (output, context) => {
3056
3768
  const deserializeAws_restJson1ConnectorProfile = (output, context) => {
3057
3769
  return {
3058
3770
  connectionMode: smithy_client_1.expectString(output.connectionMode),
3771
+ connectorLabel: smithy_client_1.expectString(output.connectorLabel),
3059
3772
  connectorProfileArn: smithy_client_1.expectString(output.connectorProfileArn),
3060
3773
  connectorProfileName: smithy_client_1.expectString(output.connectorProfileName),
3061
3774
  connectorProfileProperties: output.connectorProfileProperties !== undefined && output.connectorProfileProperties !== null
@@ -3089,6 +3802,9 @@ const deserializeAws_restJson1ConnectorProfileProperties = (output, context) =>
3089
3802
  Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3090
3803
  ? deserializeAws_restJson1AmplitudeConnectorProfileProperties(output.Amplitude, context)
3091
3804
  : undefined,
3805
+ CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
3806
+ ? deserializeAws_restJson1CustomConnectorProfileProperties(output.CustomConnector, context)
3807
+ : undefined,
3092
3808
  Datadog: output.Datadog !== undefined && output.Datadog !== null
3093
3809
  ? deserializeAws_restJson1DatadogConnectorProfileProperties(output.Datadog, context)
3094
3810
  : undefined,
@@ -3139,6 +3855,56 @@ const deserializeAws_restJson1ConnectorProfileProperties = (output, context) =>
3139
3855
  : undefined,
3140
3856
  };
3141
3857
  };
3858
+ const deserializeAws_restJson1ConnectorProvisioningConfig = (output, context) => {
3859
+ return {
3860
+ lambda: output.lambda !== undefined && output.lambda !== null
3861
+ ? deserializeAws_restJson1LambdaConnectorProvisioningConfig(output.lambda, context)
3862
+ : undefined,
3863
+ };
3864
+ };
3865
+ const deserializeAws_restJson1ConnectorRuntimeSetting = (output, context) => {
3866
+ return {
3867
+ connectorSuppliedValueOptions: output.connectorSuppliedValueOptions !== undefined && output.connectorSuppliedValueOptions !== null
3868
+ ? deserializeAws_restJson1ConnectorSuppliedValueOptionList(output.connectorSuppliedValueOptions, context)
3869
+ : undefined,
3870
+ dataType: smithy_client_1.expectString(output.dataType),
3871
+ description: smithy_client_1.expectString(output.description),
3872
+ isRequired: smithy_client_1.expectBoolean(output.isRequired),
3873
+ key: smithy_client_1.expectString(output.key),
3874
+ label: smithy_client_1.expectString(output.label),
3875
+ scope: smithy_client_1.expectString(output.scope),
3876
+ };
3877
+ };
3878
+ const deserializeAws_restJson1ConnectorRuntimeSettingList = (output, context) => {
3879
+ return (output || [])
3880
+ .filter((e) => e != null)
3881
+ .map((entry) => {
3882
+ if (entry === null) {
3883
+ return null;
3884
+ }
3885
+ return deserializeAws_restJson1ConnectorRuntimeSetting(entry, context);
3886
+ });
3887
+ };
3888
+ const deserializeAws_restJson1ConnectorSuppliedValueList = (output, context) => {
3889
+ return (output || [])
3890
+ .filter((e) => e != null)
3891
+ .map((entry) => {
3892
+ if (entry === null) {
3893
+ return null;
3894
+ }
3895
+ return smithy_client_1.expectString(entry);
3896
+ });
3897
+ };
3898
+ const deserializeAws_restJson1ConnectorSuppliedValueOptionList = (output, context) => {
3899
+ return (output || [])
3900
+ .filter((e) => e != null)
3901
+ .map((entry) => {
3902
+ if (entry === null) {
3903
+ return null;
3904
+ }
3905
+ return smithy_client_1.expectString(entry);
3906
+ });
3907
+ };
3142
3908
  const deserializeAws_restJson1ConnectorTypeList = (output, context) => {
3143
3909
  return (output || [])
3144
3910
  .filter((e) => e != null)
@@ -3149,6 +3915,57 @@ const deserializeAws_restJson1ConnectorTypeList = (output, context) => {
3149
3915
  return smithy_client_1.expectString(entry);
3150
3916
  });
3151
3917
  };
3918
+ const deserializeAws_restJson1CustomAuthConfig = (output, context) => {
3919
+ return {
3920
+ authParameters: output.authParameters !== undefined && output.authParameters !== null
3921
+ ? deserializeAws_restJson1AuthParameterList(output.authParameters, context)
3922
+ : undefined,
3923
+ customAuthenticationType: smithy_client_1.expectString(output.customAuthenticationType),
3924
+ };
3925
+ };
3926
+ const deserializeAws_restJson1CustomAuthConfigList = (output, context) => {
3927
+ return (output || [])
3928
+ .filter((e) => e != null)
3929
+ .map((entry) => {
3930
+ if (entry === null) {
3931
+ return null;
3932
+ }
3933
+ return deserializeAws_restJson1CustomAuthConfig(entry, context);
3934
+ });
3935
+ };
3936
+ const deserializeAws_restJson1CustomConnectorDestinationProperties = (output, context) => {
3937
+ return {
3938
+ customProperties: output.customProperties !== undefined && output.customProperties !== null
3939
+ ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3940
+ : undefined,
3941
+ entityName: smithy_client_1.expectString(output.entityName),
3942
+ errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3943
+ ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3944
+ : undefined,
3945
+ idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
3946
+ ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
3947
+ : undefined,
3948
+ writeOperationType: smithy_client_1.expectString(output.writeOperationType),
3949
+ };
3950
+ };
3951
+ const deserializeAws_restJson1CustomConnectorProfileProperties = (output, context) => {
3952
+ return {
3953
+ oAuth2Properties: output.oAuth2Properties !== undefined && output.oAuth2Properties !== null
3954
+ ? deserializeAws_restJson1OAuth2Properties(output.oAuth2Properties, context)
3955
+ : undefined,
3956
+ profileProperties: output.profileProperties !== undefined && output.profileProperties !== null
3957
+ ? deserializeAws_restJson1ProfilePropertiesMap(output.profileProperties, context)
3958
+ : undefined,
3959
+ };
3960
+ };
3961
+ const deserializeAws_restJson1CustomConnectorSourceProperties = (output, context) => {
3962
+ return {
3963
+ customProperties: output.customProperties !== undefined && output.customProperties !== null
3964
+ ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3965
+ : undefined,
3966
+ entityName: smithy_client_1.expectString(output.entityName),
3967
+ };
3968
+ };
3152
3969
  const deserializeAws_restJson1CustomerProfilesDestinationProperties = (output, context) => {
3153
3970
  return {
3154
3971
  domainName: smithy_client_1.expectString(output.domainName),
@@ -3158,6 +3975,17 @@ const deserializeAws_restJson1CustomerProfilesDestinationProperties = (output, c
3158
3975
  const deserializeAws_restJson1CustomerProfilesMetadata = (output, context) => {
3159
3976
  return {};
3160
3977
  };
3978
+ const deserializeAws_restJson1CustomProperties = (output, context) => {
3979
+ return Object.entries(output).reduce((acc, [key, value]) => {
3980
+ if (value === null) {
3981
+ return acc;
3982
+ }
3983
+ return {
3984
+ ...acc,
3985
+ [key]: smithy_client_1.expectString(value),
3986
+ };
3987
+ }, {});
3988
+ };
3161
3989
  const deserializeAws_restJson1DatadogConnectorProfileProperties = (output, context) => {
3162
3990
  return {
3163
3991
  instanceUrl: smithy_client_1.expectString(output.instanceUrl),
@@ -3173,6 +4001,9 @@ const deserializeAws_restJson1DatadogSourceProperties = (output, context) => {
3173
4001
  };
3174
4002
  const deserializeAws_restJson1DestinationConnectorProperties = (output, context) => {
3175
4003
  return {
4004
+ CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
4005
+ ? deserializeAws_restJson1CustomConnectorDestinationProperties(output.CustomConnector, context)
4006
+ : undefined,
3176
4007
  CustomerProfiles: output.CustomerProfiles !== undefined && output.CustomerProfiles !== null
3177
4008
  ? deserializeAws_restJson1CustomerProfilesDestinationProperties(output.CustomerProfiles, context)
3178
4009
  : undefined,
@@ -3208,6 +4039,7 @@ const deserializeAws_restJson1DestinationConnectorProperties = (output, context)
3208
4039
  const deserializeAws_restJson1DestinationFieldProperties = (output, context) => {
3209
4040
  return {
3210
4041
  isCreatable: smithy_client_1.expectBoolean(output.isCreatable),
4042
+ isDefaultedOnCreate: smithy_client_1.expectBoolean(output.isDefaultedOnCreate),
3211
4043
  isNullable: smithy_client_1.expectBoolean(output.isNullable),
3212
4044
  isUpdatable: smithy_client_1.expectBoolean(output.isUpdatable),
3213
4045
  isUpsertable: smithy_client_1.expectBoolean(output.isUpsertable),
@@ -3218,6 +4050,7 @@ const deserializeAws_restJson1DestinationFieldProperties = (output, context) =>
3218
4050
  };
3219
4051
  const deserializeAws_restJson1DestinationFlowConfig = (output, context) => {
3220
4052
  return {
4053
+ apiVersion: smithy_client_1.expectString(output.apiVersion),
3221
4054
  connectorProfileName: smithy_client_1.expectString(output.connectorProfileName),
3222
4055
  connectorType: smithy_client_1.expectString(output.connectorType),
3223
4056
  destinationConnectorProperties: output.destinationConnectorProperties !== undefined && output.destinationConnectorProperties !== null
@@ -3314,13 +4147,21 @@ const deserializeAws_restJson1ExecutionResult = (output, context) => {
3314
4147
  };
3315
4148
  const deserializeAws_restJson1FieldTypeDetails = (output, context) => {
3316
4149
  return {
4150
+ fieldLengthRange: output.fieldLengthRange !== undefined && output.fieldLengthRange !== null
4151
+ ? deserializeAws_restJson1Range(output.fieldLengthRange, context)
4152
+ : undefined,
3317
4153
  fieldType: smithy_client_1.expectString(output.fieldType),
4154
+ fieldValueRange: output.fieldValueRange !== undefined && output.fieldValueRange !== null
4155
+ ? deserializeAws_restJson1Range(output.fieldValueRange, context)
4156
+ : undefined,
3318
4157
  filterOperators: output.filterOperators !== undefined && output.filterOperators !== null
3319
4158
  ? deserializeAws_restJson1FilterOperatorList(output.filterOperators, context)
3320
4159
  : undefined,
4160
+ supportedDateFormat: smithy_client_1.expectString(output.supportedDateFormat),
3321
4161
  supportedValues: output.supportedValues !== undefined && output.supportedValues !== null
3322
4162
  ? deserializeAws_restJson1SupportedValueList(output.supportedValues, context)
3323
4163
  : undefined,
4164
+ valueRegexPattern: smithy_client_1.expectString(output.valueRegexPattern),
3324
4165
  };
3325
4166
  };
3326
4167
  const deserializeAws_restJson1FilterOperatorList = (output, context) => {
@@ -3340,6 +4181,7 @@ const deserializeAws_restJson1FlowDefinition = (output, context) => {
3340
4181
  : undefined,
3341
4182
  createdBy: smithy_client_1.expectString(output.createdBy),
3342
4183
  description: smithy_client_1.expectString(output.description),
4184
+ destinationConnectorLabel: smithy_client_1.expectString(output.destinationConnectorLabel),
3343
4185
  destinationConnectorType: smithy_client_1.expectString(output.destinationConnectorType),
3344
4186
  flowArn: smithy_client_1.expectString(output.flowArn),
3345
4187
  flowName: smithy_client_1.expectString(output.flowName),
@@ -3351,6 +4193,7 @@ const deserializeAws_restJson1FlowDefinition = (output, context) => {
3351
4193
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedAt)))
3352
4194
  : undefined,
3353
4195
  lastUpdatedBy: smithy_client_1.expectString(output.lastUpdatedBy),
4196
+ sourceConnectorLabel: smithy_client_1.expectString(output.sourceConnectorLabel),
3354
4197
  sourceConnectorType: smithy_client_1.expectString(output.sourceConnectorType),
3355
4198
  tags: output.tags !== undefined && output.tags !== null
3356
4199
  ? deserializeAws_restJson1TagMap(output.tags, context)
@@ -3439,6 +4282,11 @@ const deserializeAws_restJson1InforNexusSourceProperties = (output, context) =>
3439
4282
  object: smithy_client_1.expectString(output.object),
3440
4283
  };
3441
4284
  };
4285
+ const deserializeAws_restJson1LambdaConnectorProvisioningConfig = (output, context) => {
4286
+ return {
4287
+ lambdaArn: smithy_client_1.expectString(output.lambdaArn),
4288
+ };
4289
+ };
3442
4290
  const deserializeAws_restJson1LookoutMetricsDestinationProperties = (output, context) => {
3443
4291
  return {};
3444
4292
  };
@@ -3455,6 +4303,38 @@ const deserializeAws_restJson1MarketoSourceProperties = (output, context) => {
3455
4303
  object: smithy_client_1.expectString(output.object),
3456
4304
  };
3457
4305
  };
4306
+ const deserializeAws_restJson1OAuth2Defaults = (output, context) => {
4307
+ return {
4308
+ authCodeUrls: output.authCodeUrls !== undefined && output.authCodeUrls !== null
4309
+ ? deserializeAws_restJson1AuthCodeUrlList(output.authCodeUrls, context)
4310
+ : undefined,
4311
+ oauth2GrantTypesSupported: output.oauth2GrantTypesSupported !== undefined && output.oauth2GrantTypesSupported !== null
4312
+ ? deserializeAws_restJson1OAuth2GrantTypeSupportedList(output.oauth2GrantTypesSupported, context)
4313
+ : undefined,
4314
+ oauthScopes: output.oauthScopes !== undefined && output.oauthScopes !== null
4315
+ ? deserializeAws_restJson1OAuthScopeList(output.oauthScopes, context)
4316
+ : undefined,
4317
+ tokenUrls: output.tokenUrls !== undefined && output.tokenUrls !== null
4318
+ ? deserializeAws_restJson1TokenUrlList(output.tokenUrls, context)
4319
+ : undefined,
4320
+ };
4321
+ };
4322
+ const deserializeAws_restJson1OAuth2GrantTypeSupportedList = (output, context) => {
4323
+ return (output || [])
4324
+ .filter((e) => e != null)
4325
+ .map((entry) => {
4326
+ if (entry === null) {
4327
+ return null;
4328
+ }
4329
+ return smithy_client_1.expectString(entry);
4330
+ });
4331
+ };
4332
+ const deserializeAws_restJson1OAuth2Properties = (output, context) => {
4333
+ return {
4334
+ oAuth2GrantType: smithy_client_1.expectString(output.oAuth2GrantType),
4335
+ tokenUrl: smithy_client_1.expectString(output.tokenUrl),
4336
+ };
4337
+ };
3458
4338
  const deserializeAws_restJson1OAuthProperties = (output, context) => {
3459
4339
  return {
3460
4340
  authCodeUrl: smithy_client_1.expectString(output.authCodeUrl),
@@ -3487,6 +4367,23 @@ const deserializeAws_restJson1PrivateConnectionProvisioningState = (output, cont
3487
4367
  status: smithy_client_1.expectString(output.status),
3488
4368
  };
3489
4369
  };
4370
+ const deserializeAws_restJson1ProfilePropertiesMap = (output, context) => {
4371
+ return Object.entries(output).reduce((acc, [key, value]) => {
4372
+ if (value === null) {
4373
+ return acc;
4374
+ }
4375
+ return {
4376
+ ...acc,
4377
+ [key]: smithy_client_1.expectString(value),
4378
+ };
4379
+ }, {});
4380
+ };
4381
+ const deserializeAws_restJson1Range = (output, context) => {
4382
+ return {
4383
+ maximum: smithy_client_1.limitedParseDouble(output.maximum),
4384
+ minimum: smithy_client_1.limitedParseDouble(output.minimum),
4385
+ };
4386
+ };
3490
4387
  const deserializeAws_restJson1RedshiftConnectorProfileProperties = (output, context) => {
3491
4388
  return {
3492
4389
  bucketName: smithy_client_1.expectString(output.bucketName),
@@ -3709,6 +4606,9 @@ const deserializeAws_restJson1SourceConnectorProperties = (output, context) => {
3709
4606
  Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3710
4607
  ? deserializeAws_restJson1AmplitudeSourceProperties(output.Amplitude, context)
3711
4608
  : undefined,
4609
+ CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
4610
+ ? deserializeAws_restJson1CustomConnectorSourceProperties(output.CustomConnector, context)
4611
+ : undefined,
3712
4612
  Datadog: output.Datadog !== undefined && output.Datadog !== null
3713
4613
  ? deserializeAws_restJson1DatadogSourceProperties(output.Datadog, context)
3714
4614
  : undefined,
@@ -3757,6 +4657,7 @@ const deserializeAws_restJson1SourceFieldProperties = (output, context) => {
3757
4657
  return {
3758
4658
  isQueryable: smithy_client_1.expectBoolean(output.isQueryable),
3759
4659
  isRetrievable: smithy_client_1.expectBoolean(output.isRetrievable),
4660
+ isTimestampFieldForIncrementalQueries: smithy_client_1.expectBoolean(output.isTimestampFieldForIncrementalQueries),
3760
4661
  };
3761
4662
  };
3762
4663
  const deserializeAws_restJson1SourceFields = (output, context) => {
@@ -3771,6 +4672,7 @@ const deserializeAws_restJson1SourceFields = (output, context) => {
3771
4672
  };
3772
4673
  const deserializeAws_restJson1SourceFlowConfig = (output, context) => {
3773
4674
  return {
4675
+ apiVersion: smithy_client_1.expectString(output.apiVersion),
3774
4676
  connectorProfileName: smithy_client_1.expectString(output.connectorProfileName),
3775
4677
  connectorType: smithy_client_1.expectString(output.connectorType),
3776
4678
  incrementalPullConfig: output.incrementalPullConfig !== undefined && output.incrementalPullConfig !== null
@@ -3781,6 +4683,16 @@ const deserializeAws_restJson1SourceFlowConfig = (output, context) => {
3781
4683
  : undefined,
3782
4684
  };
3783
4685
  };
4686
+ const deserializeAws_restJson1SupportedApiVersionList = (output, context) => {
4687
+ return (output || [])
4688
+ .filter((e) => e != null)
4689
+ .map((entry) => {
4690
+ if (entry === null) {
4691
+ return null;
4692
+ }
4693
+ return smithy_client_1.expectString(entry);
4694
+ });
4695
+ };
3784
4696
  const deserializeAws_restJson1SupportedFieldTypeDetails = (output, context) => {
3785
4697
  return {
3786
4698
  v1: output.v1 !== undefined && output.v1 !== null
@@ -3788,6 +4700,16 @@ const deserializeAws_restJson1SupportedFieldTypeDetails = (output, context) => {
3788
4700
  : undefined,
3789
4701
  };
3790
4702
  };
4703
+ const deserializeAws_restJson1SupportedOperatorList = (output, context) => {
4704
+ return (output || [])
4705
+ .filter((e) => e != null)
4706
+ .map((entry) => {
4707
+ if (entry === null) {
4708
+ return null;
4709
+ }
4710
+ return smithy_client_1.expectString(entry);
4711
+ });
4712
+ };
3791
4713
  const deserializeAws_restJson1SupportedValueList = (output, context) => {
3792
4714
  return (output || [])
3793
4715
  .filter((e) => e != null)
@@ -3855,6 +4777,16 @@ const deserializeAws_restJson1Tasks = (output, context) => {
3855
4777
  return deserializeAws_restJson1Task(entry, context);
3856
4778
  });
3857
4779
  };
4780
+ const deserializeAws_restJson1TokenUrlList = (output, context) => {
4781
+ return (output || [])
4782
+ .filter((e) => e != null)
4783
+ .map((entry) => {
4784
+ if (entry === null) {
4785
+ return null;
4786
+ }
4787
+ return smithy_client_1.expectString(entry);
4788
+ });
4789
+ };
3858
4790
  const deserializeAws_restJson1TrendmicroConnectorProfileProperties = (output, context) => {
3859
4791
  return {};
3860
4792
  };