@aws-sdk/client-iottwinmaker 3.224.0 → 3.227.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 (55) hide show
  1. package/dist-cjs/IoTTwinMaker.js +75 -0
  2. package/dist-cjs/commands/CreateSyncJobCommand.js +46 -0
  3. package/dist-cjs/commands/DeleteSyncJobCommand.js +46 -0
  4. package/dist-cjs/commands/GetSyncJobCommand.js +46 -0
  5. package/dist-cjs/commands/ListSyncJobsCommand.js +46 -0
  6. package/dist-cjs/commands/ListSyncResourcesCommand.js +46 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/endpoint/ruleset.js +1 -10
  9. package/dist-cjs/models/models_0.js +111 -3
  10. package/dist-cjs/pagination/ListSyncJobsPaginator.js +36 -0
  11. package/dist-cjs/pagination/ListSyncResourcesPaginator.js +36 -0
  12. package/dist-cjs/pagination/index.js +2 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +510 -2
  14. package/dist-es/IoTTwinMaker.js +75 -0
  15. package/dist-es/commands/CreateSyncJobCommand.js +42 -0
  16. package/dist-es/commands/DeleteSyncJobCommand.js +42 -0
  17. package/dist-es/commands/GetSyncJobCommand.js +42 -0
  18. package/dist-es/commands/ListSyncJobsCommand.js +42 -0
  19. package/dist-es/commands/ListSyncResourcesCommand.js +42 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/endpoint/ruleset.js +1 -10
  22. package/dist-es/models/models_0.js +93 -0
  23. package/dist-es/pagination/ListSyncJobsPaginator.js +32 -0
  24. package/dist-es/pagination/ListSyncResourcesPaginator.js +32 -0
  25. package/dist-es/pagination/index.js +2 -0
  26. package/dist-es/protocols/Aws_restJson1.js +499 -1
  27. package/dist-types/IoTTwinMaker.d.ts +35 -0
  28. package/dist-types/IoTTwinMakerClient.d.ts +7 -2
  29. package/dist-types/commands/CreateSyncJobCommand.d.ts +37 -0
  30. package/dist-types/commands/DeleteSyncJobCommand.d.ts +37 -0
  31. package/dist-types/commands/GetSyncJobCommand.d.ts +37 -0
  32. package/dist-types/commands/ListSyncJobsCommand.d.ts +37 -0
  33. package/dist-types/commands/ListSyncResourcesCommand.d.ts +37 -0
  34. package/dist-types/commands/index.d.ts +5 -0
  35. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  36. package/dist-types/models/models_0.d.ts +421 -1
  37. package/dist-types/pagination/ListSyncJobsPaginator.d.ts +4 -0
  38. package/dist-types/pagination/ListSyncResourcesPaginator.d.ts +4 -0
  39. package/dist-types/pagination/index.d.ts +2 -0
  40. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  41. package/dist-types/ts3.4/IoTTwinMaker.d.ts +85 -0
  42. package/dist-types/ts3.4/IoTTwinMakerClient.d.ts +30 -0
  43. package/dist-types/ts3.4/commands/CreateSyncJobCommand.d.ts +37 -0
  44. package/dist-types/ts3.4/commands/DeleteSyncJobCommand.d.ts +37 -0
  45. package/dist-types/ts3.4/commands/GetSyncJobCommand.d.ts +34 -0
  46. package/dist-types/ts3.4/commands/ListSyncJobsCommand.d.ts +34 -0
  47. package/dist-types/ts3.4/commands/ListSyncResourcesCommand.d.ts +38 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  49. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  50. package/dist-types/ts3.4/models/models_0.d.ts +200 -0
  51. package/dist-types/ts3.4/pagination/ListSyncJobsPaginator.d.ts +11 -0
  52. package/dist-types/ts3.4/pagination/ListSyncResourcesPaginator.d.ts +11 -0
  53. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  54. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  55. package/package.json +28 -28
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListScenesCommand = exports.deserializeAws_restJson1ListEntitiesCommand = exports.deserializeAws_restJson1ListComponentTypesCommand = exports.deserializeAws_restJson1GetWorkspaceCommand = exports.deserializeAws_restJson1GetSceneCommand = exports.deserializeAws_restJson1GetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetPropertyValueCommand = exports.deserializeAws_restJson1GetPricingPlanCommand = exports.deserializeAws_restJson1GetEntityCommand = exports.deserializeAws_restJson1GetComponentTypeCommand = exports.deserializeAws_restJson1ExecuteQueryCommand = exports.deserializeAws_restJson1DeleteWorkspaceCommand = exports.deserializeAws_restJson1DeleteSceneCommand = exports.deserializeAws_restJson1DeleteEntityCommand = exports.deserializeAws_restJson1DeleteComponentTypeCommand = exports.deserializeAws_restJson1CreateWorkspaceCommand = exports.deserializeAws_restJson1CreateSceneCommand = exports.deserializeAws_restJson1CreateEntityCommand = exports.deserializeAws_restJson1CreateComponentTypeCommand = exports.deserializeAws_restJson1BatchPutPropertyValuesCommand = exports.serializeAws_restJson1UpdateWorkspaceCommand = exports.serializeAws_restJson1UpdateSceneCommand = exports.serializeAws_restJson1UpdatePricingPlanCommand = exports.serializeAws_restJson1UpdateEntityCommand = exports.serializeAws_restJson1UpdateComponentTypeCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListWorkspacesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListScenesCommand = exports.serializeAws_restJson1ListEntitiesCommand = exports.serializeAws_restJson1ListComponentTypesCommand = exports.serializeAws_restJson1GetWorkspaceCommand = exports.serializeAws_restJson1GetSceneCommand = exports.serializeAws_restJson1GetPropertyValueHistoryCommand = exports.serializeAws_restJson1GetPropertyValueCommand = exports.serializeAws_restJson1GetPricingPlanCommand = exports.serializeAws_restJson1GetEntityCommand = exports.serializeAws_restJson1GetComponentTypeCommand = exports.serializeAws_restJson1ExecuteQueryCommand = exports.serializeAws_restJson1DeleteWorkspaceCommand = exports.serializeAws_restJson1DeleteSceneCommand = exports.serializeAws_restJson1DeleteEntityCommand = exports.serializeAws_restJson1DeleteComponentTypeCommand = exports.serializeAws_restJson1CreateWorkspaceCommand = exports.serializeAws_restJson1CreateSceneCommand = exports.serializeAws_restJson1CreateEntityCommand = exports.serializeAws_restJson1CreateComponentTypeCommand = exports.serializeAws_restJson1BatchPutPropertyValuesCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateWorkspaceCommand = exports.deserializeAws_restJson1UpdateSceneCommand = exports.deserializeAws_restJson1UpdatePricingPlanCommand = exports.deserializeAws_restJson1UpdateEntityCommand = exports.deserializeAws_restJson1UpdateComponentTypeCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkspacesCommand = void 0;
3
+ exports.deserializeAws_restJson1GetPropertyValueCommand = exports.deserializeAws_restJson1GetPricingPlanCommand = exports.deserializeAws_restJson1GetEntityCommand = exports.deserializeAws_restJson1GetComponentTypeCommand = exports.deserializeAws_restJson1ExecuteQueryCommand = exports.deserializeAws_restJson1DeleteWorkspaceCommand = exports.deserializeAws_restJson1DeleteSyncJobCommand = exports.deserializeAws_restJson1DeleteSceneCommand = exports.deserializeAws_restJson1DeleteEntityCommand = exports.deserializeAws_restJson1DeleteComponentTypeCommand = exports.deserializeAws_restJson1CreateWorkspaceCommand = exports.deserializeAws_restJson1CreateSyncJobCommand = exports.deserializeAws_restJson1CreateSceneCommand = exports.deserializeAws_restJson1CreateEntityCommand = exports.deserializeAws_restJson1CreateComponentTypeCommand = exports.deserializeAws_restJson1BatchPutPropertyValuesCommand = exports.serializeAws_restJson1UpdateWorkspaceCommand = exports.serializeAws_restJson1UpdateSceneCommand = exports.serializeAws_restJson1UpdatePricingPlanCommand = exports.serializeAws_restJson1UpdateEntityCommand = exports.serializeAws_restJson1UpdateComponentTypeCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListWorkspacesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSyncResourcesCommand = exports.serializeAws_restJson1ListSyncJobsCommand = exports.serializeAws_restJson1ListScenesCommand = exports.serializeAws_restJson1ListEntitiesCommand = exports.serializeAws_restJson1ListComponentTypesCommand = exports.serializeAws_restJson1GetWorkspaceCommand = exports.serializeAws_restJson1GetSyncJobCommand = exports.serializeAws_restJson1GetSceneCommand = exports.serializeAws_restJson1GetPropertyValueHistoryCommand = exports.serializeAws_restJson1GetPropertyValueCommand = exports.serializeAws_restJson1GetPricingPlanCommand = exports.serializeAws_restJson1GetEntityCommand = exports.serializeAws_restJson1GetComponentTypeCommand = exports.serializeAws_restJson1ExecuteQueryCommand = exports.serializeAws_restJson1DeleteWorkspaceCommand = exports.serializeAws_restJson1DeleteSyncJobCommand = exports.serializeAws_restJson1DeleteSceneCommand = exports.serializeAws_restJson1DeleteEntityCommand = exports.serializeAws_restJson1DeleteComponentTypeCommand = exports.serializeAws_restJson1CreateWorkspaceCommand = exports.serializeAws_restJson1CreateSyncJobCommand = exports.serializeAws_restJson1CreateSceneCommand = exports.serializeAws_restJson1CreateEntityCommand = exports.serializeAws_restJson1CreateComponentTypeCommand = exports.serializeAws_restJson1BatchPutPropertyValuesCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateWorkspaceCommand = exports.deserializeAws_restJson1UpdateSceneCommand = exports.deserializeAws_restJson1UpdatePricingPlanCommand = exports.deserializeAws_restJson1UpdateEntityCommand = exports.deserializeAws_restJson1UpdateComponentTypeCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkspacesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSyncResourcesCommand = exports.deserializeAws_restJson1ListSyncJobsCommand = exports.deserializeAws_restJson1ListScenesCommand = exports.deserializeAws_restJson1ListEntitiesCommand = exports.deserializeAws_restJson1ListComponentTypesCommand = exports.deserializeAws_restJson1GetWorkspaceCommand = exports.deserializeAws_restJson1GetSyncJobCommand = exports.deserializeAws_restJson1GetSceneCommand = exports.deserializeAws_restJson1GetPropertyValueHistoryCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const IoTTwinMakerServiceException_1 = require("../models/IoTTwinMakerServiceException");
@@ -47,6 +47,7 @@ const serializeAws_restJson1CreateComponentTypeCommand = async (input, context)
47
47
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
48
48
  let body;
49
49
  body = JSON.stringify({
50
+ ...(input.componentTypeName != null && { componentTypeName: input.componentTypeName }),
50
51
  ...(input.description != null && { description: input.description }),
51
52
  ...(input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) }),
52
53
  ...(input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) }),
@@ -148,6 +149,38 @@ const serializeAws_restJson1CreateSceneCommand = async (input, context) => {
148
149
  });
149
150
  };
150
151
  exports.serializeAws_restJson1CreateSceneCommand = serializeAws_restJson1CreateSceneCommand;
152
+ const serializeAws_restJson1CreateSyncJobCommand = async (input, context) => {
153
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
154
+ const headers = {
155
+ "content-type": "application/json",
156
+ };
157
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
158
+ "/workspaces/{workspaceId}/sync-jobs/{syncSource}";
159
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
160
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
161
+ let body;
162
+ body = JSON.stringify({
163
+ ...(input.syncRole != null && { syncRole: input.syncRole }),
164
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
165
+ });
166
+ let { hostname: resolvedHostname } = await context.endpoint();
167
+ if (context.disableHostPrefix !== true) {
168
+ resolvedHostname = "api." + resolvedHostname;
169
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
170
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
171
+ }
172
+ }
173
+ return new protocol_http_1.HttpRequest({
174
+ protocol,
175
+ hostname: resolvedHostname,
176
+ port,
177
+ method: "POST",
178
+ headers,
179
+ path: resolvedPath,
180
+ body,
181
+ });
182
+ };
183
+ exports.serializeAws_restJson1CreateSyncJobCommand = serializeAws_restJson1CreateSyncJobCommand;
151
184
  const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
152
185
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
186
  const headers = {
@@ -262,6 +295,32 @@ const serializeAws_restJson1DeleteSceneCommand = async (input, context) => {
262
295
  });
263
296
  };
264
297
  exports.serializeAws_restJson1DeleteSceneCommand = serializeAws_restJson1DeleteSceneCommand;
298
+ const serializeAws_restJson1DeleteSyncJobCommand = async (input, context) => {
299
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
300
+ const headers = {};
301
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
302
+ "/workspaces/{workspaceId}/sync-jobs/{syncSource}";
303
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
304
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
305
+ let body;
306
+ let { hostname: resolvedHostname } = await context.endpoint();
307
+ if (context.disableHostPrefix !== true) {
308
+ resolvedHostname = "api." + resolvedHostname;
309
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
310
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
311
+ }
312
+ }
313
+ return new protocol_http_1.HttpRequest({
314
+ protocol,
315
+ hostname: resolvedHostname,
316
+ port,
317
+ method: "DELETE",
318
+ headers,
319
+ path: resolvedPath,
320
+ body,
321
+ });
322
+ };
323
+ exports.serializeAws_restJson1DeleteSyncJobCommand = serializeAws_restJson1DeleteSyncJobCommand;
265
324
  const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
266
325
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
326
  const headers = {};
@@ -510,6 +569,34 @@ const serializeAws_restJson1GetSceneCommand = async (input, context) => {
510
569
  });
511
570
  };
512
571
  exports.serializeAws_restJson1GetSceneCommand = serializeAws_restJson1GetSceneCommand;
572
+ const serializeAws_restJson1GetSyncJobCommand = async (input, context) => {
573
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
574
+ const headers = {};
575
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sync-jobs/{syncSource}";
576
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
577
+ const query = map({
578
+ workspace: [, input.workspaceId],
579
+ });
580
+ let body;
581
+ let { hostname: resolvedHostname } = await context.endpoint();
582
+ if (context.disableHostPrefix !== true) {
583
+ resolvedHostname = "api." + resolvedHostname;
584
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
585
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
586
+ }
587
+ }
588
+ return new protocol_http_1.HttpRequest({
589
+ protocol,
590
+ hostname: resolvedHostname,
591
+ port,
592
+ method: "GET",
593
+ headers,
594
+ path: resolvedPath,
595
+ query,
596
+ body,
597
+ });
598
+ };
599
+ exports.serializeAws_restJson1GetSyncJobCommand = serializeAws_restJson1GetSyncJobCommand;
513
600
  const serializeAws_restJson1GetWorkspaceCommand = async (input, context) => {
514
601
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
515
602
  const headers = {};
@@ -627,6 +714,69 @@ const serializeAws_restJson1ListScenesCommand = async (input, context) => {
627
714
  });
628
715
  };
629
716
  exports.serializeAws_restJson1ListScenesCommand = serializeAws_restJson1ListScenesCommand;
717
+ const serializeAws_restJson1ListSyncJobsCommand = async (input, context) => {
718
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
719
+ const headers = {
720
+ "content-type": "application/json",
721
+ };
722
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/sync-jobs-list";
723
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
724
+ let body;
725
+ body = JSON.stringify({
726
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
727
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
728
+ });
729
+ let { hostname: resolvedHostname } = await context.endpoint();
730
+ if (context.disableHostPrefix !== true) {
731
+ resolvedHostname = "api." + resolvedHostname;
732
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
733
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
734
+ }
735
+ }
736
+ return new protocol_http_1.HttpRequest({
737
+ protocol,
738
+ hostname: resolvedHostname,
739
+ port,
740
+ method: "POST",
741
+ headers,
742
+ path: resolvedPath,
743
+ body,
744
+ });
745
+ };
746
+ exports.serializeAws_restJson1ListSyncJobsCommand = serializeAws_restJson1ListSyncJobsCommand;
747
+ const serializeAws_restJson1ListSyncResourcesCommand = async (input, context) => {
748
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
749
+ const headers = {
750
+ "content-type": "application/json",
751
+ };
752
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
753
+ "/workspaces/{workspaceId}/sync-jobs/{syncSource}/resources-list";
754
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
755
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
756
+ let body;
757
+ body = JSON.stringify({
758
+ ...(input.filters != null && { filters: serializeAws_restJson1SyncResourceFilters(input.filters, context) }),
759
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
760
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
761
+ });
762
+ let { hostname: resolvedHostname } = await context.endpoint();
763
+ if (context.disableHostPrefix !== true) {
764
+ resolvedHostname = "api." + resolvedHostname;
765
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
766
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
767
+ }
768
+ }
769
+ return new protocol_http_1.HttpRequest({
770
+ protocol,
771
+ hostname: resolvedHostname,
772
+ port,
773
+ method: "POST",
774
+ headers,
775
+ path: resolvedPath,
776
+ body,
777
+ });
778
+ };
779
+ exports.serializeAws_restJson1ListSyncResourcesCommand = serializeAws_restJson1ListSyncResourcesCommand;
630
780
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
631
781
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
632
782
  const headers = {
@@ -757,6 +907,7 @@ const serializeAws_restJson1UpdateComponentTypeCommand = async (input, context)
757
907
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
758
908
  let body;
759
909
  body = JSON.stringify({
910
+ ...(input.componentTypeName != null && { componentTypeName: input.componentTypeName }),
760
911
  ...(input.description != null && { description: input.description }),
761
912
  ...(input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) }),
762
913
  ...(input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) }),
@@ -1126,6 +1277,61 @@ const deserializeAws_restJson1CreateSceneCommandError = async (output, context)
1126
1277
  });
1127
1278
  }
1128
1279
  };
1280
+ const deserializeAws_restJson1CreateSyncJobCommand = async (output, context) => {
1281
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1282
+ return deserializeAws_restJson1CreateSyncJobCommandError(output, context);
1283
+ }
1284
+ const contents = map({
1285
+ $metadata: deserializeMetadata(output),
1286
+ });
1287
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1288
+ if (data.arn != null) {
1289
+ contents.arn = (0, smithy_client_1.expectString)(data.arn);
1290
+ }
1291
+ if (data.creationDateTime != null) {
1292
+ contents.creationDateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationDateTime)));
1293
+ }
1294
+ if (data.state != null) {
1295
+ contents.state = (0, smithy_client_1.expectString)(data.state);
1296
+ }
1297
+ return contents;
1298
+ };
1299
+ exports.deserializeAws_restJson1CreateSyncJobCommand = deserializeAws_restJson1CreateSyncJobCommand;
1300
+ const deserializeAws_restJson1CreateSyncJobCommandError = async (output, context) => {
1301
+ const parsedOutput = {
1302
+ ...output,
1303
+ body: await parseErrorBody(output.body, context),
1304
+ };
1305
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1306
+ switch (errorCode) {
1307
+ case "AccessDeniedException":
1308
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
1309
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1310
+ case "ConflictException":
1311
+ case "com.amazonaws.iottwinmaker#ConflictException":
1312
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1313
+ case "InternalServerException":
1314
+ case "com.amazonaws.iottwinmaker#InternalServerException":
1315
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1316
+ case "ServiceQuotaExceededException":
1317
+ case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
1318
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1319
+ case "ThrottlingException":
1320
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
1321
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1322
+ case "ValidationException":
1323
+ case "com.amazonaws.iottwinmaker#ValidationException":
1324
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1325
+ default:
1326
+ const parsedBody = parsedOutput.body;
1327
+ (0, smithy_client_1.throwDefaultError)({
1328
+ output,
1329
+ parsedBody,
1330
+ exceptionCtor: IoTTwinMakerServiceException_1.IoTTwinMakerServiceException,
1331
+ errorCode,
1332
+ });
1333
+ }
1334
+ };
1129
1335
  const deserializeAws_restJson1CreateWorkspaceCommand = async (output, context) => {
1130
1336
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1131
1337
  return deserializeAws_restJson1CreateWorkspaceCommandError(output, context);
@@ -1313,6 +1519,55 @@ const deserializeAws_restJson1DeleteSceneCommandError = async (output, context)
1313
1519
  });
1314
1520
  }
1315
1521
  };
1522
+ const deserializeAws_restJson1DeleteSyncJobCommand = async (output, context) => {
1523
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1524
+ return deserializeAws_restJson1DeleteSyncJobCommandError(output, context);
1525
+ }
1526
+ const contents = map({
1527
+ $metadata: deserializeMetadata(output),
1528
+ });
1529
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1530
+ if (data.state != null) {
1531
+ contents.state = (0, smithy_client_1.expectString)(data.state);
1532
+ }
1533
+ return contents;
1534
+ };
1535
+ exports.deserializeAws_restJson1DeleteSyncJobCommand = deserializeAws_restJson1DeleteSyncJobCommand;
1536
+ const deserializeAws_restJson1DeleteSyncJobCommandError = async (output, context) => {
1537
+ const parsedOutput = {
1538
+ ...output,
1539
+ body: await parseErrorBody(output.body, context),
1540
+ };
1541
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1542
+ switch (errorCode) {
1543
+ case "AccessDeniedException":
1544
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
1545
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1546
+ case "InternalServerException":
1547
+ case "com.amazonaws.iottwinmaker#InternalServerException":
1548
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1549
+ case "ResourceNotFoundException":
1550
+ case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
1551
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1552
+ case "ServiceQuotaExceededException":
1553
+ case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
1554
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1555
+ case "ThrottlingException":
1556
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
1557
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1558
+ case "ValidationException":
1559
+ case "com.amazonaws.iottwinmaker#ValidationException":
1560
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1561
+ default:
1562
+ const parsedBody = parsedOutput.body;
1563
+ (0, smithy_client_1.throwDefaultError)({
1564
+ output,
1565
+ parsedBody,
1566
+ exceptionCtor: IoTTwinMakerServiceException_1.IoTTwinMakerServiceException,
1567
+ errorCode,
1568
+ });
1569
+ }
1570
+ };
1316
1571
  const deserializeAws_restJson1DeleteWorkspaceCommand = async (output, context) => {
1317
1572
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1318
1573
  return deserializeAws_restJson1DeleteWorkspaceCommandError(output, context);
@@ -1425,6 +1680,9 @@ const deserializeAws_restJson1GetComponentTypeCommand = async (output, context)
1425
1680
  if (data.componentTypeId != null) {
1426
1681
  contents.componentTypeId = (0, smithy_client_1.expectString)(data.componentTypeId);
1427
1682
  }
1683
+ if (data.componentTypeName != null) {
1684
+ contents.componentTypeName = (0, smithy_client_1.expectString)(data.componentTypeName);
1685
+ }
1428
1686
  if (data.creationDateTime != null) {
1429
1687
  contents.creationDateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationDateTime)));
1430
1688
  }
@@ -1455,6 +1713,9 @@ const deserializeAws_restJson1GetComponentTypeCommand = async (output, context)
1455
1713
  if (data.status != null) {
1456
1714
  contents.status = deserializeAws_restJson1Status(data.status, context);
1457
1715
  }
1716
+ if (data.syncSource != null) {
1717
+ contents.syncSource = (0, smithy_client_1.expectString)(data.syncSource);
1718
+ }
1458
1719
  if (data.updateDateTime != null) {
1459
1720
  contents.updateDateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.updateDateTime)));
1460
1721
  }
@@ -1531,6 +1792,9 @@ const deserializeAws_restJson1GetEntityCommand = async (output, context) => {
1531
1792
  if (data.status != null) {
1532
1793
  contents.status = deserializeAws_restJson1Status(data.status, context);
1533
1794
  }
1795
+ if (data.syncSource != null) {
1796
+ contents.syncSource = (0, smithy_client_1.expectString)(data.syncSource);
1797
+ }
1534
1798
  if (data.updateDateTime != null) {
1535
1799
  contents.updateDateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.updateDateTime)));
1536
1800
  }
@@ -1798,6 +2062,73 @@ const deserializeAws_restJson1GetSceneCommandError = async (output, context) =>
1798
2062
  });
1799
2063
  }
1800
2064
  };
2065
+ const deserializeAws_restJson1GetSyncJobCommand = async (output, context) => {
2066
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2067
+ return deserializeAws_restJson1GetSyncJobCommandError(output, context);
2068
+ }
2069
+ const contents = map({
2070
+ $metadata: deserializeMetadata(output),
2071
+ });
2072
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2073
+ if (data.arn != null) {
2074
+ contents.arn = (0, smithy_client_1.expectString)(data.arn);
2075
+ }
2076
+ if (data.creationDateTime != null) {
2077
+ contents.creationDateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationDateTime)));
2078
+ }
2079
+ if (data.status != null) {
2080
+ contents.status = deserializeAws_restJson1SyncJobStatus(data.status, context);
2081
+ }
2082
+ if (data.syncRole != null) {
2083
+ contents.syncRole = (0, smithy_client_1.expectString)(data.syncRole);
2084
+ }
2085
+ if (data.syncSource != null) {
2086
+ contents.syncSource = (0, smithy_client_1.expectString)(data.syncSource);
2087
+ }
2088
+ if (data.updateDateTime != null) {
2089
+ contents.updateDateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.updateDateTime)));
2090
+ }
2091
+ if (data.workspaceId != null) {
2092
+ contents.workspaceId = (0, smithy_client_1.expectString)(data.workspaceId);
2093
+ }
2094
+ return contents;
2095
+ };
2096
+ exports.deserializeAws_restJson1GetSyncJobCommand = deserializeAws_restJson1GetSyncJobCommand;
2097
+ const deserializeAws_restJson1GetSyncJobCommandError = async (output, context) => {
2098
+ const parsedOutput = {
2099
+ ...output,
2100
+ body: await parseErrorBody(output.body, context),
2101
+ };
2102
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2103
+ switch (errorCode) {
2104
+ case "AccessDeniedException":
2105
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
2106
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2107
+ case "InternalServerException":
2108
+ case "com.amazonaws.iottwinmaker#InternalServerException":
2109
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2110
+ case "ResourceNotFoundException":
2111
+ case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
2112
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2113
+ case "ServiceQuotaExceededException":
2114
+ case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
2115
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2116
+ case "ThrottlingException":
2117
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
2118
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2119
+ case "ValidationException":
2120
+ case "com.amazonaws.iottwinmaker#ValidationException":
2121
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2122
+ default:
2123
+ const parsedBody = parsedOutput.body;
2124
+ (0, smithy_client_1.throwDefaultError)({
2125
+ output,
2126
+ parsedBody,
2127
+ exceptionCtor: IoTTwinMakerServiceException_1.IoTTwinMakerServiceException,
2128
+ errorCode,
2129
+ });
2130
+ }
2131
+ };
1801
2132
  const deserializeAws_restJson1GetWorkspaceCommand = async (output, context) => {
1802
2133
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1803
2134
  return deserializeAws_restJson1GetWorkspaceCommandError(output, context);
@@ -2006,6 +2337,104 @@ const deserializeAws_restJson1ListScenesCommandError = async (output, context) =
2006
2337
  });
2007
2338
  }
2008
2339
  };
2340
+ const deserializeAws_restJson1ListSyncJobsCommand = async (output, context) => {
2341
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2342
+ return deserializeAws_restJson1ListSyncJobsCommandError(output, context);
2343
+ }
2344
+ const contents = map({
2345
+ $metadata: deserializeMetadata(output),
2346
+ });
2347
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2348
+ if (data.nextToken != null) {
2349
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2350
+ }
2351
+ if (data.syncJobSummaries != null) {
2352
+ contents.syncJobSummaries = deserializeAws_restJson1SyncJobSummaries(data.syncJobSummaries, context);
2353
+ }
2354
+ return contents;
2355
+ };
2356
+ exports.deserializeAws_restJson1ListSyncJobsCommand = deserializeAws_restJson1ListSyncJobsCommand;
2357
+ const deserializeAws_restJson1ListSyncJobsCommandError = async (output, context) => {
2358
+ const parsedOutput = {
2359
+ ...output,
2360
+ body: await parseErrorBody(output.body, context),
2361
+ };
2362
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2363
+ switch (errorCode) {
2364
+ case "AccessDeniedException":
2365
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
2366
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2367
+ case "InternalServerException":
2368
+ case "com.amazonaws.iottwinmaker#InternalServerException":
2369
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2370
+ case "ServiceQuotaExceededException":
2371
+ case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
2372
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2373
+ case "ThrottlingException":
2374
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
2375
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2376
+ case "ValidationException":
2377
+ case "com.amazonaws.iottwinmaker#ValidationException":
2378
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2379
+ default:
2380
+ const parsedBody = parsedOutput.body;
2381
+ (0, smithy_client_1.throwDefaultError)({
2382
+ output,
2383
+ parsedBody,
2384
+ exceptionCtor: IoTTwinMakerServiceException_1.IoTTwinMakerServiceException,
2385
+ errorCode,
2386
+ });
2387
+ }
2388
+ };
2389
+ const deserializeAws_restJson1ListSyncResourcesCommand = async (output, context) => {
2390
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2391
+ return deserializeAws_restJson1ListSyncResourcesCommandError(output, context);
2392
+ }
2393
+ const contents = map({
2394
+ $metadata: deserializeMetadata(output),
2395
+ });
2396
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2397
+ if (data.nextToken != null) {
2398
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
2399
+ }
2400
+ if (data.syncResources != null) {
2401
+ contents.syncResources = deserializeAws_restJson1SyncResourceSummaries(data.syncResources, context);
2402
+ }
2403
+ return contents;
2404
+ };
2405
+ exports.deserializeAws_restJson1ListSyncResourcesCommand = deserializeAws_restJson1ListSyncResourcesCommand;
2406
+ const deserializeAws_restJson1ListSyncResourcesCommandError = async (output, context) => {
2407
+ const parsedOutput = {
2408
+ ...output,
2409
+ body: await parseErrorBody(output.body, context),
2410
+ };
2411
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2412
+ switch (errorCode) {
2413
+ case "AccessDeniedException":
2414
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
2415
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2416
+ case "InternalServerException":
2417
+ case "com.amazonaws.iottwinmaker#InternalServerException":
2418
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2419
+ case "ServiceQuotaExceededException":
2420
+ case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
2421
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2422
+ case "ThrottlingException":
2423
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
2424
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2425
+ case "ValidationException":
2426
+ case "com.amazonaws.iottwinmaker#ValidationException":
2427
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2428
+ default:
2429
+ const parsedBody = parsedOutput.body;
2430
+ (0, smithy_client_1.throwDefaultError)({
2431
+ output,
2432
+ parsedBody,
2433
+ exceptionCtor: IoTTwinMakerServiceException_1.IoTTwinMakerServiceException,
2434
+ errorCode,
2435
+ });
2436
+ }
2437
+ };
2009
2438
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
2010
2439
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2011
2440
  return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
@@ -2795,6 +3224,7 @@ const serializeAws_restJson1PropertyDefinitionRequest = (input, context) => {
2795
3224
  }),
2796
3225
  ...(input.dataType != null && { dataType: serializeAws_restJson1DataType(input.dataType, context) }),
2797
3226
  ...(input.defaultValue != null && { defaultValue: serializeAws_restJson1DataValue(input.defaultValue, context) }),
3227
+ ...(input.displayName != null && { displayName: input.displayName }),
2798
3228
  ...(input.isExternalId != null && { isExternalId: input.isExternalId }),
2799
3229
  ...(input.isRequiredInEntity != null && { isRequiredInEntity: input.isRequiredInEntity }),
2800
3230
  ...(input.isStoredExternally != null && { isStoredExternally: input.isStoredExternally }),
@@ -2923,6 +3353,22 @@ const serializeAws_restJson1SelectedPropertyList = (input, context) => {
2923
3353
  return entry;
2924
3354
  });
2925
3355
  };
3356
+ const serializeAws_restJson1SyncResourceFilter = (input, context) => {
3357
+ return models_0_1.SyncResourceFilter.visit(input, {
3358
+ externalId: (value) => ({ externalId: value }),
3359
+ resourceId: (value) => ({ resourceId: value }),
3360
+ resourceType: (value) => ({ resourceType: value }),
3361
+ state: (value) => ({ state: value }),
3362
+ _: (name, value) => ({ name: value }),
3363
+ });
3364
+ };
3365
+ const serializeAws_restJson1SyncResourceFilters = (input, context) => {
3366
+ return input
3367
+ .filter((e) => e != null)
3368
+ .map((entry) => {
3369
+ return serializeAws_restJson1SyncResourceFilter(entry, context);
3370
+ });
3371
+ };
2926
3372
  const serializeAws_restJson1TabularConditions = (input, context) => {
2927
3373
  return {
2928
3374
  ...(input.orderBy != null && { orderBy: serializeAws_restJson1OrderByList(input.orderBy, context) }),
@@ -3002,6 +3448,7 @@ const deserializeAws_restJson1ComponentResponse = (output, context) => {
3002
3448
  ? deserializeAws_restJson1ComponentPropertyGroupResponses(output.propertyGroups, context)
3003
3449
  : undefined,
3004
3450
  status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
3451
+ syncSource: (0, smithy_client_1.expectString)(output.syncSource),
3005
3452
  };
3006
3453
  };
3007
3454
  const deserializeAws_restJson1ComponentsMap = (output, context) => {
@@ -3028,6 +3475,7 @@ const deserializeAws_restJson1ComponentTypeSummary = (output, context) => {
3028
3475
  return {
3029
3476
  arn: (0, smithy_client_1.expectString)(output.arn),
3030
3477
  componentTypeId: (0, smithy_client_1.expectString)(output.componentTypeId),
3478
+ componentTypeName: (0, smithy_client_1.expectString)(output.componentTypeName),
3031
3479
  creationDateTime: output.creationDateTime != null
3032
3480
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3033
3481
  : undefined,
@@ -3239,6 +3687,7 @@ const deserializeAws_restJson1PropertyDefinitionResponse = (output, context) =>
3239
3687
  configuration: output.configuration != null ? deserializeAws_restJson1Configuration(output.configuration, context) : undefined,
3240
3688
  dataType: output.dataType != null ? deserializeAws_restJson1DataType(output.dataType, context) : undefined,
3241
3689
  defaultValue: output.defaultValue != null ? deserializeAws_restJson1DataValue(output.defaultValue, context) : undefined,
3690
+ displayName: (0, smithy_client_1.expectString)(output.displayName),
3242
3691
  isExternalId: (0, smithy_client_1.expectBoolean)(output.isExternalId),
3243
3692
  isFinal: (0, smithy_client_1.expectBoolean)(output.isFinal),
3244
3693
  isImported: (0, smithy_client_1.expectBoolean)(output.isImported),
@@ -3469,6 +3918,65 @@ const deserializeAws_restJson1Status = (output, context) => {
3469
3918
  state: (0, smithy_client_1.expectString)(output.state),
3470
3919
  };
3471
3920
  };
3921
+ const deserializeAws_restJson1SyncJobStatus = (output, context) => {
3922
+ return {
3923
+ error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
3924
+ state: (0, smithy_client_1.expectString)(output.state),
3925
+ };
3926
+ };
3927
+ const deserializeAws_restJson1SyncJobSummaries = (output, context) => {
3928
+ const retVal = (output || [])
3929
+ .filter((e) => e != null)
3930
+ .map((entry) => {
3931
+ if (entry === null) {
3932
+ return null;
3933
+ }
3934
+ return deserializeAws_restJson1SyncJobSummary(entry, context);
3935
+ });
3936
+ return retVal;
3937
+ };
3938
+ const deserializeAws_restJson1SyncJobSummary = (output, context) => {
3939
+ return {
3940
+ arn: (0, smithy_client_1.expectString)(output.arn),
3941
+ creationDateTime: output.creationDateTime != null
3942
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3943
+ : undefined,
3944
+ status: output.status != null ? deserializeAws_restJson1SyncJobStatus(output.status, context) : undefined,
3945
+ syncSource: (0, smithy_client_1.expectString)(output.syncSource),
3946
+ updateDateTime: output.updateDateTime != null
3947
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
3948
+ : undefined,
3949
+ workspaceId: (0, smithy_client_1.expectString)(output.workspaceId),
3950
+ };
3951
+ };
3952
+ const deserializeAws_restJson1SyncResourceStatus = (output, context) => {
3953
+ return {
3954
+ error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
3955
+ state: (0, smithy_client_1.expectString)(output.state),
3956
+ };
3957
+ };
3958
+ const deserializeAws_restJson1SyncResourceSummaries = (output, context) => {
3959
+ const retVal = (output || [])
3960
+ .filter((e) => e != null)
3961
+ .map((entry) => {
3962
+ if (entry === null) {
3963
+ return null;
3964
+ }
3965
+ return deserializeAws_restJson1SyncResourceSummary(entry, context);
3966
+ });
3967
+ return retVal;
3968
+ };
3969
+ const deserializeAws_restJson1SyncResourceSummary = (output, context) => {
3970
+ return {
3971
+ externalId: (0, smithy_client_1.expectString)(output.externalId),
3972
+ resourceId: (0, smithy_client_1.expectString)(output.resourceId),
3973
+ resourceType: (0, smithy_client_1.expectString)(output.resourceType),
3974
+ status: output.status != null ? deserializeAws_restJson1SyncResourceStatus(output.status, context) : undefined,
3975
+ updateDateTime: output.updateDateTime != null
3976
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
3977
+ : undefined,
3978
+ };
3979
+ };
3472
3980
  const deserializeAws_restJson1TabularPropertyValue = (output, context) => {
3473
3981
  const retVal = (output || [])
3474
3982
  .filter((e) => e != null)