@aws-sdk/client-iottwinmaker 3.451.0 → 3.456.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 (76) hide show
  1. package/README.md +49 -2
  2. package/dist-cjs/IoTTwinMaker.js +12 -0
  3. package/dist-cjs/commands/CancelMetadataTransferJobCommand.js +51 -0
  4. package/dist-cjs/commands/CreateMetadataTransferJobCommand.js +51 -0
  5. package/dist-cjs/commands/GetMetadataTransferJobCommand.js +51 -0
  6. package/dist-cjs/commands/ListComponentsCommand.js +51 -0
  7. package/dist-cjs/commands/ListMetadataTransferJobsCommand.js +51 -0
  8. package/dist-cjs/commands/ListPropertiesCommand.js +51 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/models/models_0.js +60 -8
  11. package/dist-cjs/pagination/ListComponentsPaginator.js +29 -0
  12. package/dist-cjs/pagination/ListMetadataTransferJobsPaginator.js +29 -0
  13. package/dist-cjs/pagination/ListPropertiesPaginator.js +29 -0
  14. package/dist-cjs/pagination/index.js +3 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +570 -3
  16. package/dist-es/IoTTwinMaker.js +12 -0
  17. package/dist-es/commands/CancelMetadataTransferJobCommand.js +47 -0
  18. package/dist-es/commands/CreateMetadataTransferJobCommand.js +47 -0
  19. package/dist-es/commands/GetMetadataTransferJobCommand.js +47 -0
  20. package/dist-es/commands/ListComponentsCommand.js +47 -0
  21. package/dist-es/commands/ListMetadataTransferJobsCommand.js +47 -0
  22. package/dist-es/commands/ListPropertiesCommand.js +47 -0
  23. package/dist-es/commands/index.js +6 -0
  24. package/dist-es/models/models_0.js +59 -7
  25. package/dist-es/pagination/ListComponentsPaginator.js +25 -0
  26. package/dist-es/pagination/ListMetadataTransferJobsPaginator.js +25 -0
  27. package/dist-es/pagination/ListPropertiesPaginator.js +25 -0
  28. package/dist-es/pagination/index.js +3 -0
  29. package/dist-es/protocols/Aws_restJson1.js +556 -1
  30. package/dist-types/IoTTwinMaker.d.ts +43 -2
  31. package/dist-types/IoTTwinMakerClient.d.ts +9 -4
  32. package/dist-types/commands/BatchPutPropertyValuesCommand.d.ts +2 -0
  33. package/dist-types/commands/CancelMetadataTransferJobCommand.d.ts +107 -0
  34. package/dist-types/commands/CreateComponentTypeCommand.d.ts +5 -0
  35. package/dist-types/commands/CreateEntityCommand.d.ts +32 -0
  36. package/dist-types/commands/CreateMetadataTransferJobCommand.d.ts +153 -0
  37. package/dist-types/commands/CreateWorkspaceCommand.d.ts +2 -2
  38. package/dist-types/commands/DeleteWorkspaceCommand.d.ts +3 -1
  39. package/dist-types/commands/ExecuteQueryCommand.d.ts +4 -0
  40. package/dist-types/commands/GetComponentTypeCommand.d.ts +6 -0
  41. package/dist-types/commands/GetEntityCommand.d.ts +24 -0
  42. package/dist-types/commands/GetMetadataTransferJobCommand.d.ts +156 -0
  43. package/dist-types/commands/GetPropertyValueCommand.d.ts +2 -0
  44. package/dist-types/commands/GetPropertyValueHistoryCommand.d.ts +2 -0
  45. package/dist-types/commands/GetWorkspaceCommand.d.ts +5 -2
  46. package/dist-types/commands/ListComponentsCommand.d.ts +118 -0
  47. package/dist-types/commands/ListMetadataTransferJobsCommand.d.ts +116 -0
  48. package/dist-types/commands/ListPropertiesCommand.d.ts +167 -0
  49. package/dist-types/commands/ListWorkspacesCommand.d.ts +3 -0
  50. package/dist-types/commands/UpdateComponentTypeCommand.d.ts +5 -0
  51. package/dist-types/commands/UpdateEntityCommand.d.ts +33 -0
  52. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +1 -0
  53. package/dist-types/commands/index.d.ts +6 -0
  54. package/dist-types/index.d.ts +1 -2
  55. package/dist-types/models/models_0.d.ts +1118 -143
  56. package/dist-types/pagination/ListComponentsPaginator.d.ts +7 -0
  57. package/dist-types/pagination/ListMetadataTransferJobsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListPropertiesPaginator.d.ts +7 -0
  59. package/dist-types/pagination/index.d.ts +3 -0
  60. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  61. package/dist-types/ts3.4/IoTTwinMaker.d.ts +102 -0
  62. package/dist-types/ts3.4/IoTTwinMakerClient.d.ts +36 -0
  63. package/dist-types/ts3.4/commands/CancelMetadataTransferJobCommand.d.ts +42 -0
  64. package/dist-types/ts3.4/commands/CreateMetadataTransferJobCommand.d.ts +42 -0
  65. package/dist-types/ts3.4/commands/GetMetadataTransferJobCommand.d.ts +42 -0
  66. package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +38 -0
  67. package/dist-types/ts3.4/commands/ListMetadataTransferJobsCommand.d.ts +42 -0
  68. package/dist-types/ts3.4/commands/ListPropertiesCommand.d.ts +38 -0
  69. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +329 -24
  71. package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/ListMetadataTransferJobsPaginator.d.ts +11 -0
  73. package/dist-types/ts3.4/pagination/ListPropertiesPaginator.d.ts +11 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  75. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  76. package/package.json +2 -2
@@ -31,6 +31,30 @@ export const se_BatchPutPropertyValuesCommand = async (input, context) => {
31
31
  body,
32
32
  });
33
33
  };
34
+ export const se_CancelMetadataTransferJobCommand = async (input, context) => {
35
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
+ const headers = {};
37
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
38
+ "/metadata-transfer-jobs/{metadataTransferJobId}/cancel";
39
+ resolvedPath = __resolvedPath(resolvedPath, input, "metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
40
+ let body;
41
+ let { hostname: resolvedHostname } = await context.endpoint();
42
+ if (context.disableHostPrefix !== true) {
43
+ resolvedHostname = "api." + resolvedHostname;
44
+ if (!__isValidHostname(resolvedHostname)) {
45
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
46
+ }
47
+ }
48
+ return new __HttpRequest({
49
+ protocol,
50
+ hostname: resolvedHostname,
51
+ port,
52
+ method: "PUT",
53
+ headers,
54
+ path: resolvedPath,
55
+ body,
56
+ });
57
+ };
34
58
  export const se_CreateComponentTypeCommand = async (input, context) => {
35
59
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
60
  const headers = {
@@ -43,6 +67,7 @@ export const se_CreateComponentTypeCommand = async (input, context) => {
43
67
  let body;
44
68
  body = JSON.stringify(take(input, {
45
69
  componentTypeName: [],
70
+ compositeComponentTypes: (_) => _json(_),
46
71
  description: [],
47
72
  extendsFrom: (_) => _json(_),
48
73
  functions: (_) => _json(_),
@@ -78,6 +103,7 @@ export const se_CreateEntityCommand = async (input, context) => {
78
103
  let body;
79
104
  body = JSON.stringify(take(input, {
80
105
  components: (_) => se_ComponentsMapRequest(_, context),
106
+ compositeComponents: (_) => se_CompositeComponentsMapRequest(_, context),
81
107
  description: [],
82
108
  entityId: [],
83
109
  entityName: [],
@@ -101,6 +127,36 @@ export const se_CreateEntityCommand = async (input, context) => {
101
127
  body,
102
128
  });
103
129
  };
130
+ export const se_CreateMetadataTransferJobCommand = async (input, context) => {
131
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
132
+ const headers = {
133
+ "content-type": "application/json",
134
+ };
135
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata-transfer-jobs";
136
+ let body;
137
+ body = JSON.stringify(take(input, {
138
+ description: [],
139
+ destination: (_) => _json(_),
140
+ metadataTransferJobId: [],
141
+ sources: (_) => _json(_),
142
+ }));
143
+ let { hostname: resolvedHostname } = await context.endpoint();
144
+ if (context.disableHostPrefix !== true) {
145
+ resolvedHostname = "api." + resolvedHostname;
146
+ if (!__isValidHostname(resolvedHostname)) {
147
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
148
+ }
149
+ }
150
+ return new __HttpRequest({
151
+ protocol,
152
+ hostname: resolvedHostname,
153
+ port,
154
+ method: "POST",
155
+ headers,
156
+ path: resolvedPath,
157
+ body,
158
+ });
159
+ };
104
160
  export const se_CreateSceneCommand = async (input, context) => {
105
161
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
162
  const headers = {
@@ -403,6 +459,30 @@ export const se_GetEntityCommand = async (input, context) => {
403
459
  body,
404
460
  });
405
461
  };
462
+ export const se_GetMetadataTransferJobCommand = async (input, context) => {
463
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
464
+ const headers = {};
465
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
466
+ "/metadata-transfer-jobs/{metadataTransferJobId}";
467
+ resolvedPath = __resolvedPath(resolvedPath, input, "metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
468
+ let body;
469
+ let { hostname: resolvedHostname } = await context.endpoint();
470
+ if (context.disableHostPrefix !== true) {
471
+ resolvedHostname = "api." + resolvedHostname;
472
+ if (!__isValidHostname(resolvedHostname)) {
473
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
474
+ }
475
+ }
476
+ return new __HttpRequest({
477
+ protocol,
478
+ hostname: resolvedHostname,
479
+ port,
480
+ method: "GET",
481
+ headers,
482
+ path: resolvedPath,
483
+ body,
484
+ });
485
+ };
406
486
  export const se_GetPricingPlanCommand = async (input, context) => {
407
487
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
408
488
  const headers = {
@@ -439,6 +519,7 @@ export const se_GetPropertyValueCommand = async (input, context) => {
439
519
  let body;
440
520
  body = JSON.stringify(take(input, {
441
521
  componentName: [],
522
+ componentPath: [],
442
523
  componentTypeId: [],
443
524
  entityId: [],
444
525
  maxResults: [],
@@ -475,6 +556,7 @@ export const se_GetPropertyValueHistoryCommand = async (input, context) => {
475
556
  let body;
476
557
  body = JSON.stringify(take(input, {
477
558
  componentName: [],
559
+ componentPath: [],
478
560
  componentTypeId: [],
479
561
  endDateTime: (_) => Math.round(_.getTime() / 1000),
480
562
  endTime: [],
@@ -580,6 +662,38 @@ export const se_GetWorkspaceCommand = async (input, context) => {
580
662
  body,
581
663
  });
582
664
  };
665
+ export const se_ListComponentsCommand = async (input, context) => {
666
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
667
+ const headers = {
668
+ "content-type": "application/json",
669
+ };
670
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
671
+ "/workspaces/{workspaceId}/entities/{entityId}/components-list";
672
+ resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
673
+ resolvedPath = __resolvedPath(resolvedPath, input, "entityId", () => input.entityId, "{entityId}", false);
674
+ let body;
675
+ body = JSON.stringify(take(input, {
676
+ componentPath: [],
677
+ maxResults: [],
678
+ nextToken: [],
679
+ }));
680
+ let { hostname: resolvedHostname } = await context.endpoint();
681
+ if (context.disableHostPrefix !== true) {
682
+ resolvedHostname = "api." + resolvedHostname;
683
+ if (!__isValidHostname(resolvedHostname)) {
684
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
685
+ }
686
+ }
687
+ return new __HttpRequest({
688
+ protocol,
689
+ hostname: resolvedHostname,
690
+ port,
691
+ method: "POST",
692
+ headers,
693
+ path: resolvedPath,
694
+ body,
695
+ });
696
+ };
583
697
  export const se_ListComponentTypesCommand = async (input, context) => {
584
698
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
585
699
  const headers = {
@@ -641,6 +755,69 @@ export const se_ListEntitiesCommand = async (input, context) => {
641
755
  body,
642
756
  });
643
757
  };
758
+ export const se_ListMetadataTransferJobsCommand = async (input, context) => {
759
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
760
+ const headers = {
761
+ "content-type": "application/json",
762
+ };
763
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata-transfer-jobs-list";
764
+ let body;
765
+ body = JSON.stringify(take(input, {
766
+ destinationType: [],
767
+ filters: (_) => _json(_),
768
+ maxResults: [],
769
+ nextToken: [],
770
+ sourceType: [],
771
+ }));
772
+ let { hostname: resolvedHostname } = await context.endpoint();
773
+ if (context.disableHostPrefix !== true) {
774
+ resolvedHostname = "api." + resolvedHostname;
775
+ if (!__isValidHostname(resolvedHostname)) {
776
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
777
+ }
778
+ }
779
+ return new __HttpRequest({
780
+ protocol,
781
+ hostname: resolvedHostname,
782
+ port,
783
+ method: "POST",
784
+ headers,
785
+ path: resolvedPath,
786
+ body,
787
+ });
788
+ };
789
+ export const se_ListPropertiesCommand = async (input, context) => {
790
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
791
+ const headers = {
792
+ "content-type": "application/json",
793
+ };
794
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/properties-list";
795
+ resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
796
+ let body;
797
+ body = JSON.stringify(take(input, {
798
+ componentName: [],
799
+ componentPath: [],
800
+ entityId: [],
801
+ maxResults: [],
802
+ nextToken: [],
803
+ }));
804
+ let { hostname: resolvedHostname } = await context.endpoint();
805
+ if (context.disableHostPrefix !== true) {
806
+ resolvedHostname = "api." + resolvedHostname;
807
+ if (!__isValidHostname(resolvedHostname)) {
808
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
809
+ }
810
+ }
811
+ return new __HttpRequest({
812
+ protocol,
813
+ hostname: resolvedHostname,
814
+ port,
815
+ method: "POST",
816
+ headers,
817
+ path: resolvedPath,
818
+ body,
819
+ });
820
+ };
644
821
  export const se_ListScenesCommand = async (input, context) => {
645
822
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
646
823
  const headers = {
@@ -858,6 +1035,7 @@ export const se_UpdateComponentTypeCommand = async (input, context) => {
858
1035
  let body;
859
1036
  body = JSON.stringify(take(input, {
860
1037
  componentTypeName: [],
1038
+ compositeComponentTypes: (_) => _json(_),
861
1039
  description: [],
862
1040
  extendsFrom: (_) => _json(_),
863
1041
  functions: (_) => _json(_),
@@ -894,6 +1072,7 @@ export const se_UpdateEntityCommand = async (input, context) => {
894
1072
  let body;
895
1073
  body = JSON.stringify(take(input, {
896
1074
  componentUpdates: (_) => se_ComponentUpdatesMapRequest(_, context),
1075
+ compositeComponentUpdates: (_) => se_CompositeComponentUpdatesMapRequest(_, context),
897
1076
  description: [],
898
1077
  entityName: [],
899
1078
  parentEntityUpdate: (_) => _json(_),
@@ -987,6 +1166,7 @@ export const se_UpdateWorkspaceCommand = async (input, context) => {
987
1166
  body = JSON.stringify(take(input, {
988
1167
  description: [],
989
1168
  role: [],
1169
+ s3Location: [],
990
1170
  }));
991
1171
  let { hostname: resolvedHostname } = await context.endpoint();
992
1172
  if (context.disableHostPrefix !== true) {
@@ -1047,6 +1227,58 @@ const de_BatchPutPropertyValuesCommandError = async (output, context) => {
1047
1227
  });
1048
1228
  }
1049
1229
  };
1230
+ export const de_CancelMetadataTransferJobCommand = async (output, context) => {
1231
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1232
+ return de_CancelMetadataTransferJobCommandError(output, context);
1233
+ }
1234
+ const contents = map({
1235
+ $metadata: deserializeMetadata(output),
1236
+ });
1237
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1238
+ const doc = take(data, {
1239
+ arn: __expectString,
1240
+ metadataTransferJobId: __expectString,
1241
+ progress: _json,
1242
+ status: _json,
1243
+ updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1244
+ });
1245
+ Object.assign(contents, doc);
1246
+ return contents;
1247
+ };
1248
+ const de_CancelMetadataTransferJobCommandError = async (output, context) => {
1249
+ const parsedOutput = {
1250
+ ...output,
1251
+ body: await parseErrorBody(output.body, context),
1252
+ };
1253
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1254
+ switch (errorCode) {
1255
+ case "AccessDeniedException":
1256
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
1257
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1258
+ case "ConflictException":
1259
+ case "com.amazonaws.iottwinmaker#ConflictException":
1260
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1261
+ case "InternalServerException":
1262
+ case "com.amazonaws.iottwinmaker#InternalServerException":
1263
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1264
+ case "ResourceNotFoundException":
1265
+ case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
1266
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1267
+ case "ThrottlingException":
1268
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
1269
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1270
+ case "ValidationException":
1271
+ case "com.amazonaws.iottwinmaker#ValidationException":
1272
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1273
+ default:
1274
+ const parsedBody = parsedOutput.body;
1275
+ return throwDefaultError({
1276
+ output,
1277
+ parsedBody,
1278
+ errorCode,
1279
+ });
1280
+ }
1281
+ };
1050
1282
  export const de_CreateComponentTypeCommand = async (output, context) => {
1051
1283
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1052
1284
  return de_CreateComponentTypeCommandError(output, context);
@@ -1148,6 +1380,60 @@ const de_CreateEntityCommandError = async (output, context) => {
1148
1380
  });
1149
1381
  }
1150
1382
  };
1383
+ export const de_CreateMetadataTransferJobCommand = async (output, context) => {
1384
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1385
+ return de_CreateMetadataTransferJobCommandError(output, context);
1386
+ }
1387
+ const contents = map({
1388
+ $metadata: deserializeMetadata(output),
1389
+ });
1390
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1391
+ const doc = take(data, {
1392
+ arn: __expectString,
1393
+ creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1394
+ metadataTransferJobId: __expectString,
1395
+ status: _json,
1396
+ });
1397
+ Object.assign(contents, doc);
1398
+ return contents;
1399
+ };
1400
+ const de_CreateMetadataTransferJobCommandError = async (output, context) => {
1401
+ const parsedOutput = {
1402
+ ...output,
1403
+ body: await parseErrorBody(output.body, context),
1404
+ };
1405
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1406
+ switch (errorCode) {
1407
+ case "AccessDeniedException":
1408
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
1409
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1410
+ case "ConflictException":
1411
+ case "com.amazonaws.iottwinmaker#ConflictException":
1412
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1413
+ case "InternalServerException":
1414
+ case "com.amazonaws.iottwinmaker#InternalServerException":
1415
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1416
+ case "ResourceNotFoundException":
1417
+ case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
1418
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1419
+ case "ServiceQuotaExceededException":
1420
+ case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
1421
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1422
+ case "ThrottlingException":
1423
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
1424
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1425
+ case "ValidationException":
1426
+ case "com.amazonaws.iottwinmaker#ValidationException":
1427
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1428
+ default:
1429
+ const parsedBody = parsedOutput.body;
1430
+ return throwDefaultError({
1431
+ output,
1432
+ parsedBody,
1433
+ errorCode,
1434
+ });
1435
+ }
1436
+ };
1151
1437
  export const de_CreateSceneCommand = async (output, context) => {
1152
1438
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1153
1439
  return de_CreateSceneCommandError(output, context);
@@ -1482,7 +1768,11 @@ export const de_DeleteWorkspaceCommand = async (output, context) => {
1482
1768
  const contents = map({
1483
1769
  $metadata: deserializeMetadata(output),
1484
1770
  });
1485
- await collectBody(output.body, context);
1771
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1772
+ const doc = take(data, {
1773
+ message: __expectString,
1774
+ });
1775
+ Object.assign(contents, doc);
1486
1776
  return contents;
1487
1777
  };
1488
1778
  const de_DeleteWorkspaceCommandError = async (output, context) => {
@@ -1578,6 +1868,7 @@ export const de_GetComponentTypeCommand = async (output, context) => {
1578
1868
  arn: __expectString,
1579
1869
  componentTypeId: __expectString,
1580
1870
  componentTypeName: __expectString,
1871
+ compositeComponentTypes: _json,
1581
1872
  creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1582
1873
  description: __expectString,
1583
1874
  extendsFrom: _json,
@@ -1635,6 +1926,7 @@ export const de_GetEntityCommand = async (output, context) => {
1635
1926
  });
1636
1927
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1637
1928
  const doc = take(data, {
1929
+ areAllComponentsReturned: __expectBoolean,
1638
1930
  arn: __expectString,
1639
1931
  components: (_) => de_ComponentsMap(_, context),
1640
1932
  creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1682,6 +1974,61 @@ const de_GetEntityCommandError = async (output, context) => {
1682
1974
  });
1683
1975
  }
1684
1976
  };
1977
+ export const de_GetMetadataTransferJobCommand = async (output, context) => {
1978
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1979
+ return de_GetMetadataTransferJobCommandError(output, context);
1980
+ }
1981
+ const contents = map({
1982
+ $metadata: deserializeMetadata(output),
1983
+ });
1984
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1985
+ const doc = take(data, {
1986
+ arn: __expectString,
1987
+ creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1988
+ description: __expectString,
1989
+ destination: _json,
1990
+ metadataTransferJobId: __expectString,
1991
+ metadataTransferJobRole: __expectString,
1992
+ progress: _json,
1993
+ reportUrl: __expectString,
1994
+ sources: _json,
1995
+ status: _json,
1996
+ updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1997
+ });
1998
+ Object.assign(contents, doc);
1999
+ return contents;
2000
+ };
2001
+ const de_GetMetadataTransferJobCommandError = async (output, context) => {
2002
+ const parsedOutput = {
2003
+ ...output,
2004
+ body: await parseErrorBody(output.body, context),
2005
+ };
2006
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2007
+ switch (errorCode) {
2008
+ case "AccessDeniedException":
2009
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
2010
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2011
+ case "InternalServerException":
2012
+ case "com.amazonaws.iottwinmaker#InternalServerException":
2013
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2014
+ case "ResourceNotFoundException":
2015
+ case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
2016
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2017
+ case "ThrottlingException":
2018
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
2019
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2020
+ case "ValidationException":
2021
+ case "com.amazonaws.iottwinmaker#ValidationException":
2022
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2023
+ default:
2024
+ const parsedBody = parsedOutput.body;
2025
+ return throwDefaultError({
2026
+ output,
2027
+ parsedBody,
2028
+ errorCode,
2029
+ });
2030
+ }
2031
+ };
1685
2032
  export const de_GetPricingPlanCommand = async (output, context) => {
1686
2033
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1687
2034
  return de_GetPricingPlanCommandError(output, context);
@@ -1951,6 +2298,7 @@ export const de_GetWorkspaceCommand = async (output, context) => {
1951
2298
  arn: __expectString,
1952
2299
  creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1953
2300
  description: __expectString,
2301
+ linkedServices: _json,
1954
2302
  role: __expectString,
1955
2303
  s3Location: __expectString,
1956
2304
  updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1990,6 +2338,52 @@ const de_GetWorkspaceCommandError = async (output, context) => {
1990
2338
  });
1991
2339
  }
1992
2340
  };
2341
+ export const de_ListComponentsCommand = async (output, context) => {
2342
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2343
+ return de_ListComponentsCommandError(output, context);
2344
+ }
2345
+ const contents = map({
2346
+ $metadata: deserializeMetadata(output),
2347
+ });
2348
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2349
+ const doc = take(data, {
2350
+ componentSummaries: _json,
2351
+ nextToken: __expectString,
2352
+ });
2353
+ Object.assign(contents, doc);
2354
+ return contents;
2355
+ };
2356
+ const de_ListComponentsCommandError = async (output, context) => {
2357
+ const parsedOutput = {
2358
+ ...output,
2359
+ body: await parseErrorBody(output.body, context),
2360
+ };
2361
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2362
+ switch (errorCode) {
2363
+ case "AccessDeniedException":
2364
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
2365
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2366
+ case "InternalServerException":
2367
+ case "com.amazonaws.iottwinmaker#InternalServerException":
2368
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2369
+ case "ResourceNotFoundException":
2370
+ case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
2371
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2372
+ case "ThrottlingException":
2373
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
2374
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2375
+ case "ValidationException":
2376
+ case "com.amazonaws.iottwinmaker#ValidationException":
2377
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2378
+ default:
2379
+ const parsedBody = parsedOutput.body;
2380
+ return throwDefaultError({
2381
+ output,
2382
+ parsedBody,
2383
+ errorCode,
2384
+ });
2385
+ }
2386
+ };
1993
2387
  export const de_ListComponentTypesCommand = async (output, context) => {
1994
2388
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1995
2389
  return de_ListComponentTypesCommandError(output, context);
@@ -2078,6 +2472,95 @@ const de_ListEntitiesCommandError = async (output, context) => {
2078
2472
  });
2079
2473
  }
2080
2474
  };
2475
+ export const de_ListMetadataTransferJobsCommand = async (output, context) => {
2476
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2477
+ return de_ListMetadataTransferJobsCommandError(output, context);
2478
+ }
2479
+ const contents = map({
2480
+ $metadata: deserializeMetadata(output),
2481
+ });
2482
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2483
+ const doc = take(data, {
2484
+ metadataTransferJobSummaries: (_) => de_MetadataTransferJobSummaries(_, context),
2485
+ nextToken: __expectString,
2486
+ });
2487
+ Object.assign(contents, doc);
2488
+ return contents;
2489
+ };
2490
+ const de_ListMetadataTransferJobsCommandError = async (output, context) => {
2491
+ const parsedOutput = {
2492
+ ...output,
2493
+ body: await parseErrorBody(output.body, context),
2494
+ };
2495
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2496
+ switch (errorCode) {
2497
+ case "AccessDeniedException":
2498
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
2499
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2500
+ case "InternalServerException":
2501
+ case "com.amazonaws.iottwinmaker#InternalServerException":
2502
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2503
+ case "ThrottlingException":
2504
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
2505
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2506
+ case "ValidationException":
2507
+ case "com.amazonaws.iottwinmaker#ValidationException":
2508
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2509
+ default:
2510
+ const parsedBody = parsedOutput.body;
2511
+ return throwDefaultError({
2512
+ output,
2513
+ parsedBody,
2514
+ errorCode,
2515
+ });
2516
+ }
2517
+ };
2518
+ export const de_ListPropertiesCommand = async (output, context) => {
2519
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2520
+ return de_ListPropertiesCommandError(output, context);
2521
+ }
2522
+ const contents = map({
2523
+ $metadata: deserializeMetadata(output),
2524
+ });
2525
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2526
+ const doc = take(data, {
2527
+ nextToken: __expectString,
2528
+ propertySummaries: (_) => de_PropertySummaries(_, context),
2529
+ });
2530
+ Object.assign(contents, doc);
2531
+ return contents;
2532
+ };
2533
+ const de_ListPropertiesCommandError = async (output, context) => {
2534
+ const parsedOutput = {
2535
+ ...output,
2536
+ body: await parseErrorBody(output.body, context),
2537
+ };
2538
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2539
+ switch (errorCode) {
2540
+ case "AccessDeniedException":
2541
+ case "com.amazonaws.iottwinmaker#AccessDeniedException":
2542
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2543
+ case "InternalServerException":
2544
+ case "com.amazonaws.iottwinmaker#InternalServerException":
2545
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2546
+ case "ResourceNotFoundException":
2547
+ case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
2548
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2549
+ case "ThrottlingException":
2550
+ case "com.amazonaws.iottwinmaker#ThrottlingException":
2551
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2552
+ case "ValidationException":
2553
+ case "com.amazonaws.iottwinmaker#ValidationException":
2554
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2555
+ default:
2556
+ const parsedBody = parsedOutput.body;
2557
+ return throwDefaultError({
2558
+ output,
2559
+ parsedBody,
2560
+ errorCode,
2561
+ });
2562
+ }
2563
+ };
2081
2564
  export const de_ListScenesCommand = async (output, context) => {
2082
2565
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2083
2566
  return de_ListScenesCommandError(output, context);
@@ -2778,6 +3261,39 @@ const se_ComponentUpdatesMapRequest = (input, context) => {
2778
3261
  return acc;
2779
3262
  }, {});
2780
3263
  };
3264
+ const se_CompositeComponentRequest = (input, context) => {
3265
+ return take(input, {
3266
+ description: [],
3267
+ properties: (_) => se_PropertyRequests(_, context),
3268
+ propertyGroups: _json,
3269
+ });
3270
+ };
3271
+ const se_CompositeComponentsMapRequest = (input, context) => {
3272
+ return Object.entries(input).reduce((acc, [key, value]) => {
3273
+ if (value === null) {
3274
+ return acc;
3275
+ }
3276
+ acc[key] = se_CompositeComponentRequest(value, context);
3277
+ return acc;
3278
+ }, {});
3279
+ };
3280
+ const se_CompositeComponentUpdateRequest = (input, context) => {
3281
+ return take(input, {
3282
+ description: [],
3283
+ propertyGroupUpdates: _json,
3284
+ propertyUpdates: (_) => se_PropertyRequests(_, context),
3285
+ updateType: [],
3286
+ });
3287
+ };
3288
+ const se_CompositeComponentUpdatesMapRequest = (input, context) => {
3289
+ return Object.entries(input).reduce((acc, [key, value]) => {
3290
+ if (value === null) {
3291
+ return acc;
3292
+ }
3293
+ acc[key] = se_CompositeComponentUpdateRequest(value, context);
3294
+ return acc;
3295
+ }, {});
3296
+ };
2781
3297
  const se_DataType = (input, context) => {
2782
3298
  return take(input, {
2783
3299
  allowedValues: (_) => se_DataValueList(_, context),
@@ -2914,8 +3430,11 @@ const de_BatchPutPropertyErrorEntry = (output, context) => {
2914
3430
  };
2915
3431
  const de_ComponentResponse = (output, context) => {
2916
3432
  return take(output, {
3433
+ areAllCompositeComponentsReturned: __expectBoolean,
3434
+ areAllPropertiesReturned: __expectBoolean,
2917
3435
  componentName: __expectString,
2918
3436
  componentTypeId: __expectString,
3437
+ compositeComponents: _json,
2919
3438
  definedIn: __expectString,
2920
3439
  description: __expectString,
2921
3440
  properties: (_) => de_PropertyResponses(_, context),
@@ -3028,6 +3547,24 @@ const de_Errors = (output, context) => {
3028
3547
  });
3029
3548
  return retVal;
3030
3549
  };
3550
+ const de_MetadataTransferJobSummaries = (output, context) => {
3551
+ const retVal = (output || [])
3552
+ .filter((e) => e != null)
3553
+ .map((entry) => {
3554
+ return de_MetadataTransferJobSummary(entry, context);
3555
+ });
3556
+ return retVal;
3557
+ };
3558
+ const de_MetadataTransferJobSummary = (output, context) => {
3559
+ return take(output, {
3560
+ arn: __expectString,
3561
+ creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3562
+ metadataTransferJobId: __expectString,
3563
+ progress: _json,
3564
+ status: _json,
3565
+ updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3566
+ });
3567
+ };
3031
3568
  const de_PricingPlan = (output, context) => {
3032
3569
  return take(output, {
3033
3570
  billableEntityCount: __expectLong,
@@ -3079,6 +3616,7 @@ const de_PropertyLatestValueMap = (output, context) => {
3079
3616
  };
3080
3617
  const de_PropertyResponse = (output, context) => {
3081
3618
  return take(output, {
3619
+ areAllPropertyValuesReturned: __expectBoolean,
3082
3620
  definition: (_) => de_PropertyDefinitionResponse(_, context),
3083
3621
  value: (_) => de_DataValue(_, context),
3084
3622
  });
@@ -3092,6 +3630,22 @@ const de_PropertyResponses = (output, context) => {
3092
3630
  return acc;
3093
3631
  }, {});
3094
3632
  };
3633
+ const de_PropertySummaries = (output, context) => {
3634
+ const retVal = (output || [])
3635
+ .filter((e) => e != null)
3636
+ .map((entry) => {
3637
+ return de_PropertySummary(entry, context);
3638
+ });
3639
+ return retVal;
3640
+ };
3641
+ const de_PropertySummary = (output, context) => {
3642
+ return take(output, {
3643
+ areAllPropertyValuesReturned: __expectBoolean,
3644
+ definition: (_) => de_PropertyDefinitionResponse(_, context),
3645
+ propertyName: __expectString,
3646
+ value: (_) => de_DataValue(_, context),
3647
+ });
3648
+ };
3095
3649
  const de_PropertyTableValue = (output, context) => {
3096
3650
  return Object.entries(output).reduce((acc, [key, value]) => {
3097
3651
  if (value === null) {
@@ -3250,6 +3804,7 @@ const de_WorkspaceSummary = (output, context) => {
3250
3804
  arn: __expectString,
3251
3805
  creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3252
3806
  description: __expectString,
3807
+ linkedServices: _json,
3253
3808
  updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3254
3809
  workspaceId: __expectString,
3255
3810
  });