@aws-sdk/client-iotsitewise 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 (130) hide show
  1. package/README.md +88 -0
  2. package/dist-cjs/IoTSiteWise.js +22 -0
  3. package/dist-cjs/commands/CreateAssetModelCompositeModelCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteAssetModelCompositeModelCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeActionCommand.js +51 -0
  6. package/dist-cjs/commands/DescribeAssetCompositeModelCommand.js +51 -0
  7. package/dist-cjs/commands/DescribeAssetModelCompositeModelCommand.js +51 -0
  8. package/dist-cjs/commands/ExecuteActionCommand.js +51 -0
  9. package/dist-cjs/commands/ExecuteQueryCommand.js +51 -0
  10. package/dist-cjs/commands/ListActionsCommand.js +51 -0
  11. package/dist-cjs/commands/ListAssetModelCompositeModelsCommand.js +51 -0
  12. package/dist-cjs/commands/ListCompositionRelationshipsCommand.js +51 -0
  13. package/dist-cjs/commands/UpdateAssetModelCompositeModelCommand.js +51 -0
  14. package/dist-cjs/commands/index.js +11 -0
  15. package/dist-cjs/models/index.js +1 -0
  16. package/dist-cjs/models/models_0.js +59 -15
  17. package/dist-cjs/models/models_1.js +18 -0
  18. package/dist-cjs/pagination/ExecuteQueryPaginator.js +29 -0
  19. package/dist-cjs/pagination/ListAssetModelCompositeModelsPaginator.js +29 -0
  20. package/dist-cjs/pagination/ListCompositionRelationshipsPaginator.js +29 -0
  21. package/dist-cjs/pagination/index.js +3 -0
  22. package/dist-cjs/protocols/Aws_restJson1.js +1018 -25
  23. package/dist-es/IoTSiteWise.js +22 -0
  24. package/dist-es/commands/CreateAssetModelCompositeModelCommand.js +47 -0
  25. package/dist-es/commands/DeleteAssetModelCompositeModelCommand.js +47 -0
  26. package/dist-es/commands/DescribeActionCommand.js +47 -0
  27. package/dist-es/commands/DescribeAssetCompositeModelCommand.js +47 -0
  28. package/dist-es/commands/DescribeAssetModelCompositeModelCommand.js +47 -0
  29. package/dist-es/commands/ExecuteActionCommand.js +47 -0
  30. package/dist-es/commands/ExecuteQueryCommand.js +47 -0
  31. package/dist-es/commands/ListActionsCommand.js +47 -0
  32. package/dist-es/commands/ListAssetModelCompositeModelsCommand.js +47 -0
  33. package/dist-es/commands/ListCompositionRelationshipsCommand.js +47 -0
  34. package/dist-es/commands/UpdateAssetModelCompositeModelCommand.js +47 -0
  35. package/dist-es/commands/index.js +11 -0
  36. package/dist-es/models/index.js +1 -0
  37. package/dist-es/models/models_0.js +54 -13
  38. package/dist-es/models/models_1.js +14 -0
  39. package/dist-es/pagination/ExecuteQueryPaginator.js +25 -0
  40. package/dist-es/pagination/ListAssetModelCompositeModelsPaginator.js +25 -0
  41. package/dist-es/pagination/ListCompositionRelationshipsPaginator.js +25 -0
  42. package/dist-es/pagination/index.js +3 -0
  43. package/dist-es/protocols/Aws_restJson1.js +1038 -68
  44. package/dist-types/IoTSiteWise.d.ts +77 -0
  45. package/dist-types/IoTSiteWiseClient.d.ts +13 -2
  46. package/dist-types/commands/CreateAssetCommand.d.ts +2 -0
  47. package/dist-types/commands/CreateAssetModelCommand.d.ts +52 -4
  48. package/dist-types/commands/CreateAssetModelCompositeModelCommand.d.ts +212 -0
  49. package/dist-types/commands/CreateBulkImportJobCommand.d.ts +8 -3
  50. package/dist-types/commands/DeleteAssetCommand.d.ts +1 -1
  51. package/dist-types/commands/DeleteAssetModelCompositeModelCommand.d.ts +111 -0
  52. package/dist-types/commands/DescribeActionCommand.d.ts +97 -0
  53. package/dist-types/commands/DescribeAssetCommand.d.ts +32 -0
  54. package/dist-types/commands/DescribeAssetCompositeModelCommand.d.ts +145 -0
  55. package/dist-types/commands/DescribeAssetModelCommand.d.ts +46 -4
  56. package/dist-types/commands/DescribeAssetModelCompositeModelCommand.d.ts +209 -0
  57. package/dist-types/commands/DescribeAssetPropertyCommand.d.ts +44 -4
  58. package/dist-types/commands/DescribeBulkImportJobCommand.d.ts +4 -1
  59. package/dist-types/commands/DescribeStorageConfigurationCommand.d.ts +5 -0
  60. package/dist-types/commands/ExecuteActionCommand.d.ts +106 -0
  61. package/dist-types/commands/ExecuteQueryCommand.d.ts +130 -0
  62. package/dist-types/commands/ListActionsCommand.d.ts +101 -0
  63. package/dist-types/commands/ListAssetModelCompositeModelsCommand.d.ts +106 -0
  64. package/dist-types/commands/ListAssetModelPropertiesCommand.d.ts +21 -2
  65. package/dist-types/commands/ListAssetModelsCommand.d.ts +5 -0
  66. package/dist-types/commands/ListAssetPropertiesCommand.d.ts +8 -1
  67. package/dist-types/commands/ListAssetsCommand.d.ts +2 -0
  68. package/dist-types/commands/ListAssociatedAssetsCommand.d.ts +2 -0
  69. package/dist-types/commands/ListCompositionRelationshipsCommand.d.ts +98 -0
  70. package/dist-types/commands/PutDefaultEncryptionConfigurationCommand.d.ts +1 -1
  71. package/dist-types/commands/PutLoggingOptionsCommand.d.ts +1 -1
  72. package/dist-types/commands/PutStorageConfigurationCommand.d.ts +11 -1
  73. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  74. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  75. package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +1 -1
  76. package/dist-types/commands/UpdateAssetCommand.d.ts +2 -1
  77. package/dist-types/commands/UpdateAssetModelCommand.d.ts +31 -5
  78. package/dist-types/commands/UpdateAssetModelCompositeModelCommand.d.ts +220 -0
  79. package/dist-types/commands/UpdateAssetPropertyCommand.d.ts +1 -1
  80. package/dist-types/commands/UpdateDashboardCommand.d.ts +1 -1
  81. package/dist-types/commands/UpdateGatewayCapabilityConfigurationCommand.d.ts +1 -1
  82. package/dist-types/commands/UpdateGatewayCommand.d.ts +1 -1
  83. package/dist-types/commands/UpdatePortalCommand.d.ts +1 -1
  84. package/dist-types/commands/UpdateProjectCommand.d.ts +1 -1
  85. package/dist-types/commands/index.d.ts +11 -0
  86. package/dist-types/models/index.d.ts +1 -0
  87. package/dist-types/models/models_0.d.ts +1377 -773
  88. package/dist-types/models/models_1.d.ts +796 -0
  89. package/dist-types/pagination/ExecuteQueryPaginator.d.ts +7 -0
  90. package/dist-types/pagination/ListAssetModelCompositeModelsPaginator.d.ts +7 -0
  91. package/dist-types/pagination/ListCompositionRelationshipsPaginator.d.ts +7 -0
  92. package/dist-types/pagination/index.d.ts +3 -0
  93. package/dist-types/protocols/Aws_restJson1.d.ts +99 -0
  94. package/dist-types/ts3.4/IoTSiteWise.d.ts +187 -0
  95. package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +66 -0
  96. package/dist-types/ts3.4/commands/CreateAssetModelCompositeModelCommand.d.ts +42 -0
  97. package/dist-types/ts3.4/commands/DeleteAssetModelCompositeModelCommand.d.ts +42 -0
  98. package/dist-types/ts3.4/commands/DescribeActionCommand.d.ts +38 -0
  99. package/dist-types/ts3.4/commands/DescribeAssetCompositeModelCommand.d.ts +42 -0
  100. package/dist-types/ts3.4/commands/DescribeAssetModelCompositeModelCommand.d.ts +42 -0
  101. package/dist-types/ts3.4/commands/ExecuteActionCommand.d.ts +38 -0
  102. package/dist-types/ts3.4/commands/ExecuteQueryCommand.d.ts +36 -0
  103. package/dist-types/ts3.4/commands/ListActionsCommand.d.ts +35 -0
  104. package/dist-types/ts3.4/commands/ListAssetModelCompositeModelsCommand.d.ts +42 -0
  105. package/dist-types/ts3.4/commands/ListCompositionRelationshipsCommand.d.ts +42 -0
  106. package/dist-types/ts3.4/commands/PutDefaultEncryptionConfigurationCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/PutLoggingOptionsCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/PutStorageConfigurationCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/UpdateAccessPolicyCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/UpdateAssetCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/UpdateAssetModelCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/UpdateAssetModelCompositeModelCommand.d.ts +42 -0
  115. package/dist-types/ts3.4/commands/UpdateAssetPropertyCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/UpdateDashboardCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/UpdateGatewayCapabilityConfigurationCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/UpdateGatewayCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/UpdatePortalCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  122. package/dist-types/ts3.4/models/index.d.ts +1 -0
  123. package/dist-types/ts3.4/models/models_0.d.ts +284 -130
  124. package/dist-types/ts3.4/models/models_1.d.ts +190 -0
  125. package/dist-types/ts3.4/pagination/ExecuteQueryPaginator.d.ts +11 -0
  126. package/dist-types/ts3.4/pagination/ListAssetModelCompositeModelsPaginator.d.ts +11 -0
  127. package/dist-types/ts3.4/pagination/ListCompositionRelationshipsPaginator.d.ts +11 -0
  128. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  129. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +132 -0
  130. package/package.json +2 -2
@@ -2,7 +2,8 @@ import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } f
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { IoTSiteWiseServiceException as __BaseException } from "../models/IoTSiteWiseServiceException";
5
- import { ConflictingOperationException, InternalFailureException, InvalidRequestException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, TooManyTagsException, UnauthorizedException, } from "../models/models_0";
5
+ import { AccessDeniedException, ConflictingOperationException, InternalFailureException, InvalidRequestException, LimitExceededException, QueryTimeoutException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
6
+ import { TooManyTagsException } from "../models/models_1";
6
7
  export const se_AssociateAssetsCommand = async (input, context) => {
7
8
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
9
  const headers = {
@@ -277,6 +278,8 @@ export const se_CreateAssetCommand = async (input, context) => {
277
278
  let body;
278
279
  body = JSON.stringify(take(input, {
279
280
  assetDescription: [],
281
+ assetExternalId: [],
282
+ assetId: [],
280
283
  assetModelId: [],
281
284
  assetName: [],
282
285
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -307,11 +310,14 @@ export const se_CreateAssetModelCommand = async (input, context) => {
307
310
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
308
311
  let body;
309
312
  body = JSON.stringify(take(input, {
310
- assetModelCompositeModels: (_) => _json(_),
313
+ assetModelCompositeModels: (_) => se_AssetModelCompositeModelDefinitions(_, context),
311
314
  assetModelDescription: [],
315
+ assetModelExternalId: [],
312
316
  assetModelHierarchies: (_) => _json(_),
317
+ assetModelId: [],
313
318
  assetModelName: [],
314
319
  assetModelProperties: (_) => _json(_),
320
+ assetModelType: [],
315
321
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
316
322
  tags: (_) => _json(_),
317
323
  }));
@@ -332,6 +338,43 @@ export const se_CreateAssetModelCommand = async (input, context) => {
332
338
  body,
333
339
  });
334
340
  };
341
+ export const se_CreateAssetModelCompositeModelCommand = async (input, context) => {
342
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
343
+ const headers = {
344
+ "content-type": "application/json",
345
+ };
346
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
347
+ "/asset-models/{assetModelId}/composite-models";
348
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
349
+ let body;
350
+ body = JSON.stringify(take(input, {
351
+ assetModelCompositeModelDescription: [],
352
+ assetModelCompositeModelExternalId: [],
353
+ assetModelCompositeModelId: [],
354
+ assetModelCompositeModelName: [],
355
+ assetModelCompositeModelProperties: (_) => _json(_),
356
+ assetModelCompositeModelType: [],
357
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
358
+ composedAssetModelId: [],
359
+ parentAssetModelCompositeModelId: [],
360
+ }));
361
+ let { hostname: resolvedHostname } = await context.endpoint();
362
+ if (context.disableHostPrefix !== true) {
363
+ resolvedHostname = "api." + resolvedHostname;
364
+ if (!__isValidHostname(resolvedHostname)) {
365
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
366
+ }
367
+ }
368
+ return new __HttpRequest({
369
+ protocol,
370
+ hostname: resolvedHostname,
371
+ port,
372
+ method: "POST",
373
+ headers,
374
+ path: resolvedPath,
375
+ body,
376
+ });
377
+ };
335
378
  export const se_CreateBulkImportJobCommand = async (input, context) => {
336
379
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
337
380
  const headers = {
@@ -340,6 +383,8 @@ export const se_CreateBulkImportJobCommand = async (input, context) => {
340
383
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
341
384
  let body;
342
385
  body = JSON.stringify(take(input, {
386
+ adaptiveIngestion: [],
387
+ deleteFilesAfterImport: [],
343
388
  errorReportLocation: (_) => _json(_),
344
389
  files: (_) => _json(_),
345
390
  jobConfiguration: (_) => _json(_),
@@ -572,6 +617,35 @@ export const se_DeleteAssetModelCommand = async (input, context) => {
572
617
  body,
573
618
  });
574
619
  };
620
+ export const se_DeleteAssetModelCompositeModelCommand = async (input, context) => {
621
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
622
+ const headers = {};
623
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
624
+ "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
625
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
626
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
627
+ const query = map({
628
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
629
+ });
630
+ let body;
631
+ let { hostname: resolvedHostname } = await context.endpoint();
632
+ if (context.disableHostPrefix !== true) {
633
+ resolvedHostname = "api." + resolvedHostname;
634
+ if (!__isValidHostname(resolvedHostname)) {
635
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
636
+ }
637
+ }
638
+ return new __HttpRequest({
639
+ protocol,
640
+ hostname: resolvedHostname,
641
+ port,
642
+ method: "DELETE",
643
+ headers,
644
+ path: resolvedPath,
645
+ query,
646
+ body,
647
+ });
648
+ };
575
649
  export const se_DeleteDashboardCommand = async (input, context) => {
576
650
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
577
651
  const headers = {};
@@ -732,6 +806,29 @@ export const se_DescribeAccessPolicyCommand = async (input, context) => {
732
806
  body,
733
807
  });
734
808
  };
809
+ export const se_DescribeActionCommand = async (input, context) => {
810
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
811
+ const headers = {};
812
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions/{actionId}";
813
+ resolvedPath = __resolvedPath(resolvedPath, input, "actionId", () => input.actionId, "{actionId}", false);
814
+ let body;
815
+ let { hostname: resolvedHostname } = await context.endpoint();
816
+ if (context.disableHostPrefix !== true) {
817
+ resolvedHostname = "api." + resolvedHostname;
818
+ if (!__isValidHostname(resolvedHostname)) {
819
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
820
+ }
821
+ }
822
+ return new __HttpRequest({
823
+ protocol,
824
+ hostname: resolvedHostname,
825
+ port,
826
+ method: "GET",
827
+ headers,
828
+ path: resolvedPath,
829
+ body,
830
+ });
831
+ };
735
832
  export const se_DescribeAssetCommand = async (input, context) => {
736
833
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
737
834
  const headers = {};
@@ -759,6 +856,31 @@ export const se_DescribeAssetCommand = async (input, context) => {
759
856
  body,
760
857
  });
761
858
  };
859
+ export const se_DescribeAssetCompositeModelCommand = async (input, context) => {
860
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
861
+ const headers = {};
862
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
863
+ "/assets/{assetId}/composite-models/{assetCompositeModelId}";
864
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
865
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetCompositeModelId", () => input.assetCompositeModelId, "{assetCompositeModelId}", false);
866
+ let body;
867
+ let { hostname: resolvedHostname } = await context.endpoint();
868
+ if (context.disableHostPrefix !== true) {
869
+ resolvedHostname = "api." + resolvedHostname;
870
+ if (!__isValidHostname(resolvedHostname)) {
871
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
872
+ }
873
+ }
874
+ return new __HttpRequest({
875
+ protocol,
876
+ hostname: resolvedHostname,
877
+ port,
878
+ method: "GET",
879
+ headers,
880
+ path: resolvedPath,
881
+ body,
882
+ });
883
+ };
762
884
  export const se_DescribeAssetModelCommand = async (input, context) => {
763
885
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
764
886
  const headers = {};
@@ -786,6 +908,31 @@ export const se_DescribeAssetModelCommand = async (input, context) => {
786
908
  body,
787
909
  });
788
910
  };
911
+ export const se_DescribeAssetModelCompositeModelCommand = async (input, context) => {
912
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
913
+ const headers = {};
914
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
915
+ "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
916
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
917
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
918
+ let body;
919
+ let { hostname: resolvedHostname } = await context.endpoint();
920
+ if (context.disableHostPrefix !== true) {
921
+ resolvedHostname = "api." + resolvedHostname;
922
+ if (!__isValidHostname(resolvedHostname)) {
923
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
924
+ }
925
+ }
926
+ return new __HttpRequest({
927
+ protocol,
928
+ hostname: resolvedHostname,
929
+ port,
930
+ method: "GET",
931
+ headers,
932
+ path: resolvedPath,
933
+ body,
934
+ });
935
+ };
789
936
  export const se_DescribeAssetPropertyCommand = async (input, context) => {
790
937
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
791
938
  const headers = {};
@@ -1116,6 +1263,65 @@ export const se_DisassociateTimeSeriesFromAssetPropertyCommand = async (input, c
1116
1263
  body,
1117
1264
  });
1118
1265
  };
1266
+ export const se_ExecuteActionCommand = async (input, context) => {
1267
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1268
+ const headers = {
1269
+ "content-type": "application/json",
1270
+ };
1271
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
1272
+ let body;
1273
+ body = JSON.stringify(take(input, {
1274
+ actionDefinitionId: [],
1275
+ actionPayload: (_) => _json(_),
1276
+ clientToken: [],
1277
+ targetResource: (_) => _json(_),
1278
+ }));
1279
+ let { hostname: resolvedHostname } = await context.endpoint();
1280
+ if (context.disableHostPrefix !== true) {
1281
+ resolvedHostname = "api." + resolvedHostname;
1282
+ if (!__isValidHostname(resolvedHostname)) {
1283
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1284
+ }
1285
+ }
1286
+ return new __HttpRequest({
1287
+ protocol,
1288
+ hostname: resolvedHostname,
1289
+ port,
1290
+ method: "POST",
1291
+ headers,
1292
+ path: resolvedPath,
1293
+ body,
1294
+ });
1295
+ };
1296
+ export const se_ExecuteQueryCommand = async (input, context) => {
1297
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1298
+ const headers = {
1299
+ "content-type": "application/json",
1300
+ };
1301
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queries/execution";
1302
+ let body;
1303
+ body = JSON.stringify(take(input, {
1304
+ maxResults: [],
1305
+ nextToken: [],
1306
+ queryStatement: [],
1307
+ }));
1308
+ let { hostname: resolvedHostname } = await context.endpoint();
1309
+ if (context.disableHostPrefix !== true) {
1310
+ resolvedHostname = "data." + resolvedHostname;
1311
+ if (!__isValidHostname(resolvedHostname)) {
1312
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1313
+ }
1314
+ }
1315
+ return new __HttpRequest({
1316
+ protocol,
1317
+ hostname: resolvedHostname,
1318
+ port,
1319
+ method: "POST",
1320
+ headers,
1321
+ path: resolvedPath,
1322
+ body,
1323
+ });
1324
+ };
1119
1325
  export const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
1120
1326
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1121
1327
  const headers = {};
@@ -1311,6 +1517,64 @@ export const se_ListAccessPoliciesCommand = async (input, context) => {
1311
1517
  body,
1312
1518
  });
1313
1519
  };
1520
+ export const se_ListActionsCommand = async (input, context) => {
1521
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1522
+ const headers = {};
1523
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
1524
+ const query = map({
1525
+ targetResourceType: [, __expectNonNull(input.targetResourceType, `targetResourceType`)],
1526
+ targetResourceId: [, __expectNonNull(input.targetResourceId, `targetResourceId`)],
1527
+ nextToken: [, input.nextToken],
1528
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1529
+ });
1530
+ let body;
1531
+ let { hostname: resolvedHostname } = await context.endpoint();
1532
+ if (context.disableHostPrefix !== true) {
1533
+ resolvedHostname = "api." + resolvedHostname;
1534
+ if (!__isValidHostname(resolvedHostname)) {
1535
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1536
+ }
1537
+ }
1538
+ return new __HttpRequest({
1539
+ protocol,
1540
+ hostname: resolvedHostname,
1541
+ port,
1542
+ method: "GET",
1543
+ headers,
1544
+ path: resolvedPath,
1545
+ query,
1546
+ body,
1547
+ });
1548
+ };
1549
+ export const se_ListAssetModelCompositeModelsCommand = async (input, context) => {
1550
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1551
+ const headers = {};
1552
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1553
+ "/asset-models/{assetModelId}/composite-models";
1554
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1555
+ const query = map({
1556
+ nextToken: [, input.nextToken],
1557
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1558
+ });
1559
+ let body;
1560
+ let { hostname: resolvedHostname } = await context.endpoint();
1561
+ if (context.disableHostPrefix !== true) {
1562
+ resolvedHostname = "api." + resolvedHostname;
1563
+ if (!__isValidHostname(resolvedHostname)) {
1564
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1565
+ }
1566
+ }
1567
+ return new __HttpRequest({
1568
+ protocol,
1569
+ hostname: resolvedHostname,
1570
+ port,
1571
+ method: "GET",
1572
+ headers,
1573
+ path: resolvedPath,
1574
+ query,
1575
+ body,
1576
+ });
1577
+ };
1314
1578
  export const se_ListAssetModelPropertiesCommand = async (input, context) => {
1315
1579
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1316
1580
  const headers = {};
@@ -1347,6 +1611,10 @@ export const se_ListAssetModelsCommand = async (input, context) => {
1347
1611
  const query = map({
1348
1612
  nextToken: [, input.nextToken],
1349
1613
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1614
+ assetModelTypes: [
1615
+ () => input.assetModelTypes !== void 0,
1616
+ () => (input.assetModelTypes || []).map((_entry) => _entry),
1617
+ ],
1350
1618
  });
1351
1619
  let body;
1352
1620
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1512,6 +1780,35 @@ export const se_ListBulkImportJobsCommand = async (input, context) => {
1512
1780
  body,
1513
1781
  });
1514
1782
  };
1783
+ export const se_ListCompositionRelationshipsCommand = async (input, context) => {
1784
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1785
+ const headers = {};
1786
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1787
+ "/asset-models/{assetModelId}/composition-relationships";
1788
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1789
+ const query = map({
1790
+ nextToken: [, input.nextToken],
1791
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1792
+ });
1793
+ let body;
1794
+ let { hostname: resolvedHostname } = await context.endpoint();
1795
+ if (context.disableHostPrefix !== true) {
1796
+ resolvedHostname = "api." + resolvedHostname;
1797
+ if (!__isValidHostname(resolvedHostname)) {
1798
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1799
+ }
1800
+ }
1801
+ return new __HttpRequest({
1802
+ protocol,
1803
+ hostname: resolvedHostname,
1804
+ port,
1805
+ method: "GET",
1806
+ headers,
1807
+ path: resolvedPath,
1808
+ query,
1809
+ body,
1810
+ });
1811
+ };
1515
1812
  export const se_ListDashboardsCommand = async (input, context) => {
1516
1813
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1517
1814
  const headers = {};
@@ -1773,6 +2070,8 @@ export const se_PutStorageConfigurationCommand = async (input, context) => {
1773
2070
  multiLayerStorage: (_) => _json(_),
1774
2071
  retentionPeriod: (_) => _json(_),
1775
2072
  storageType: [],
2073
+ warmTier: [],
2074
+ warmTierRetentionPeriod: (_) => _json(_),
1776
2075
  }));
1777
2076
  let { hostname: resolvedHostname } = await context.endpoint();
1778
2077
  if (context.disableHostPrefix !== true) {
@@ -1893,6 +2192,7 @@ export const se_UpdateAssetCommand = async (input, context) => {
1893
2192
  let body;
1894
2193
  body = JSON.stringify(take(input, {
1895
2194
  assetDescription: [],
2195
+ assetExternalId: [],
1896
2196
  assetName: [],
1897
2197
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1898
2198
  }));
@@ -1922,8 +2222,9 @@ export const se_UpdateAssetModelCommand = async (input, context) => {
1922
2222
  resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1923
2223
  let body;
1924
2224
  body = JSON.stringify(take(input, {
1925
- assetModelCompositeModels: (_) => _json(_),
2225
+ assetModelCompositeModels: (_) => se_AssetModelCompositeModels(_, context),
1926
2226
  assetModelDescription: [],
2227
+ assetModelExternalId: [],
1927
2228
  assetModelHierarchies: (_) => _json(_),
1928
2229
  assetModelName: [],
1929
2230
  assetModelProperties: (_) => _json(_),
@@ -1946,18 +2247,52 @@ export const se_UpdateAssetModelCommand = async (input, context) => {
1946
2247
  body,
1947
2248
  });
1948
2249
  };
1949
- export const se_UpdateAssetPropertyCommand = async (input, context) => {
2250
+ export const se_UpdateAssetModelCompositeModelCommand = async (input, context) => {
1950
2251
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1951
2252
  const headers = {
1952
2253
  "content-type": "application/json",
1953
2254
  };
1954
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
1955
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1956
- resolvedPath = __resolvedPath(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
2255
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2256
+ "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
2257
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
2258
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
1957
2259
  let body;
1958
2260
  body = JSON.stringify(take(input, {
2261
+ assetModelCompositeModelDescription: [],
2262
+ assetModelCompositeModelExternalId: [],
2263
+ assetModelCompositeModelName: [],
2264
+ assetModelCompositeModelProperties: (_) => _json(_),
1959
2265
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1960
- propertyAlias: [],
2266
+ }));
2267
+ let { hostname: resolvedHostname } = await context.endpoint();
2268
+ if (context.disableHostPrefix !== true) {
2269
+ resolvedHostname = "api." + resolvedHostname;
2270
+ if (!__isValidHostname(resolvedHostname)) {
2271
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2272
+ }
2273
+ }
2274
+ return new __HttpRequest({
2275
+ protocol,
2276
+ hostname: resolvedHostname,
2277
+ port,
2278
+ method: "PUT",
2279
+ headers,
2280
+ path: resolvedPath,
2281
+ body,
2282
+ });
2283
+ };
2284
+ export const se_UpdateAssetPropertyCommand = async (input, context) => {
2285
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2286
+ const headers = {
2287
+ "content-type": "application/json",
2288
+ };
2289
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
2290
+ resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
2291
+ resolvedPath = __resolvedPath(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
2292
+ let body;
2293
+ body = JSON.stringify(take(input, {
2294
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
2295
+ propertyAlias: [],
1961
2296
  propertyNotificationState: [],
1962
2297
  propertyUnit: [],
1963
2298
  }));
@@ -2644,6 +2979,59 @@ const de_CreateAssetModelCommandError = async (output, context) => {
2644
2979
  });
2645
2980
  }
2646
2981
  };
2982
+ export const de_CreateAssetModelCompositeModelCommand = async (output, context) => {
2983
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2984
+ return de_CreateAssetModelCompositeModelCommandError(output, context);
2985
+ }
2986
+ const contents = map({
2987
+ $metadata: deserializeMetadata(output),
2988
+ });
2989
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2990
+ const doc = take(data, {
2991
+ assetModelCompositeModelId: __expectString,
2992
+ assetModelCompositeModelPath: _json,
2993
+ assetModelStatus: _json,
2994
+ });
2995
+ Object.assign(contents, doc);
2996
+ return contents;
2997
+ };
2998
+ const de_CreateAssetModelCompositeModelCommandError = async (output, context) => {
2999
+ const parsedOutput = {
3000
+ ...output,
3001
+ body: await parseErrorBody(output.body, context),
3002
+ };
3003
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3004
+ switch (errorCode) {
3005
+ case "ConflictingOperationException":
3006
+ case "com.amazonaws.iotsitewise#ConflictingOperationException":
3007
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3008
+ case "InternalFailureException":
3009
+ case "com.amazonaws.iotsitewise#InternalFailureException":
3010
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3011
+ case "InvalidRequestException":
3012
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
3013
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3014
+ case "LimitExceededException":
3015
+ case "com.amazonaws.iotsitewise#LimitExceededException":
3016
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3017
+ case "ResourceAlreadyExistsException":
3018
+ case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
3019
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
3020
+ case "ResourceNotFoundException":
3021
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3022
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3023
+ case "ThrottlingException":
3024
+ case "com.amazonaws.iotsitewise#ThrottlingException":
3025
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3026
+ default:
3027
+ const parsedBody = parsedOutput.body;
3028
+ return throwDefaultError({
3029
+ output,
3030
+ parsedBody,
3031
+ errorCode,
3032
+ });
3033
+ }
3034
+ };
2647
3035
  export const de_CreateBulkImportJobCommand = async (output, context) => {
2648
3036
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2649
3037
  return de_CreateBulkImportJobCommandError(output, context);
@@ -3012,6 +3400,51 @@ const de_DeleteAssetModelCommandError = async (output, context) => {
3012
3400
  });
3013
3401
  }
3014
3402
  };
3403
+ export const de_DeleteAssetModelCompositeModelCommand = async (output, context) => {
3404
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3405
+ return de_DeleteAssetModelCompositeModelCommandError(output, context);
3406
+ }
3407
+ const contents = map({
3408
+ $metadata: deserializeMetadata(output),
3409
+ });
3410
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3411
+ const doc = take(data, {
3412
+ assetModelStatus: _json,
3413
+ });
3414
+ Object.assign(contents, doc);
3415
+ return contents;
3416
+ };
3417
+ const de_DeleteAssetModelCompositeModelCommandError = async (output, context) => {
3418
+ const parsedOutput = {
3419
+ ...output,
3420
+ body: await parseErrorBody(output.body, context),
3421
+ };
3422
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3423
+ switch (errorCode) {
3424
+ case "ConflictingOperationException":
3425
+ case "com.amazonaws.iotsitewise#ConflictingOperationException":
3426
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3427
+ case "InternalFailureException":
3428
+ case "com.amazonaws.iotsitewise#InternalFailureException":
3429
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3430
+ case "InvalidRequestException":
3431
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
3432
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3433
+ case "ResourceNotFoundException":
3434
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3435
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3436
+ case "ThrottlingException":
3437
+ case "com.amazonaws.iotsitewise#ThrottlingException":
3438
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3439
+ default:
3440
+ const parsedBody = parsedOutput.body;
3441
+ return throwDefaultError({
3442
+ output,
3443
+ parsedBody,
3444
+ errorCode,
3445
+ });
3446
+ }
3447
+ };
3015
3448
  export const de_DeleteDashboardCommand = async (output, context) => {
3016
3449
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3017
3450
  return de_DeleteDashboardCommandError(output, context);
@@ -3260,6 +3693,52 @@ const de_DescribeAccessPolicyCommandError = async (output, context) => {
3260
3693
  });
3261
3694
  }
3262
3695
  };
3696
+ export const de_DescribeActionCommand = async (output, context) => {
3697
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3698
+ return de_DescribeActionCommandError(output, context);
3699
+ }
3700
+ const contents = map({
3701
+ $metadata: deserializeMetadata(output),
3702
+ });
3703
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3704
+ const doc = take(data, {
3705
+ actionDefinitionId: __expectString,
3706
+ actionId: __expectString,
3707
+ actionPayload: _json,
3708
+ executionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3709
+ targetResource: _json,
3710
+ });
3711
+ Object.assign(contents, doc);
3712
+ return contents;
3713
+ };
3714
+ const de_DescribeActionCommandError = async (output, context) => {
3715
+ const parsedOutput = {
3716
+ ...output,
3717
+ body: await parseErrorBody(output.body, context),
3718
+ };
3719
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3720
+ switch (errorCode) {
3721
+ case "InternalFailureException":
3722
+ case "com.amazonaws.iotsitewise#InternalFailureException":
3723
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3724
+ case "InvalidRequestException":
3725
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
3726
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3727
+ case "ResourceNotFoundException":
3728
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3729
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3730
+ case "ThrottlingException":
3731
+ case "com.amazonaws.iotsitewise#ThrottlingException":
3732
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3733
+ default:
3734
+ const parsedBody = parsedOutput.body;
3735
+ return throwDefaultError({
3736
+ output,
3737
+ parsedBody,
3738
+ errorCode,
3739
+ });
3740
+ }
3741
+ };
3263
3742
  export const de_DescribeAssetCommand = async (output, context) => {
3264
3743
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3265
3744
  return de_DescribeAssetCommandError(output, context);
@@ -3270,9 +3749,11 @@ export const de_DescribeAssetCommand = async (output, context) => {
3270
3749
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3271
3750
  const doc = take(data, {
3272
3751
  assetArn: __expectString,
3752
+ assetCompositeModelSummaries: _json,
3273
3753
  assetCompositeModels: _json,
3274
3754
  assetCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3275
3755
  assetDescription: __expectString,
3756
+ assetExternalId: __expectString,
3276
3757
  assetHierarchies: _json,
3277
3758
  assetId: __expectString,
3278
3759
  assetLastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -3312,6 +3793,57 @@ const de_DescribeAssetCommandError = async (output, context) => {
3312
3793
  });
3313
3794
  }
3314
3795
  };
3796
+ export const de_DescribeAssetCompositeModelCommand = async (output, context) => {
3797
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3798
+ return de_DescribeAssetCompositeModelCommandError(output, context);
3799
+ }
3800
+ const contents = map({
3801
+ $metadata: deserializeMetadata(output),
3802
+ });
3803
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3804
+ const doc = take(data, {
3805
+ actionDefinitions: _json,
3806
+ assetCompositeModelDescription: __expectString,
3807
+ assetCompositeModelExternalId: __expectString,
3808
+ assetCompositeModelId: __expectString,
3809
+ assetCompositeModelName: __expectString,
3810
+ assetCompositeModelPath: _json,
3811
+ assetCompositeModelProperties: _json,
3812
+ assetCompositeModelSummaries: _json,
3813
+ assetCompositeModelType: __expectString,
3814
+ assetId: __expectString,
3815
+ });
3816
+ Object.assign(contents, doc);
3817
+ return contents;
3818
+ };
3819
+ const de_DescribeAssetCompositeModelCommandError = async (output, context) => {
3820
+ const parsedOutput = {
3821
+ ...output,
3822
+ body: await parseErrorBody(output.body, context),
3823
+ };
3824
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3825
+ switch (errorCode) {
3826
+ case "InternalFailureException":
3827
+ case "com.amazonaws.iotsitewise#InternalFailureException":
3828
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3829
+ case "InvalidRequestException":
3830
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
3831
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3832
+ case "ResourceNotFoundException":
3833
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3834
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3835
+ case "ThrottlingException":
3836
+ case "com.amazonaws.iotsitewise#ThrottlingException":
3837
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3838
+ default:
3839
+ const parsedBody = parsedOutput.body;
3840
+ return throwDefaultError({
3841
+ output,
3842
+ parsedBody,
3843
+ errorCode,
3844
+ });
3845
+ }
3846
+ };
3315
3847
  export const de_DescribeAssetModelCommand = async (output, context) => {
3316
3848
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3317
3849
  return de_DescribeAssetModelCommandError(output, context);
@@ -3322,15 +3854,18 @@ export const de_DescribeAssetModelCommand = async (output, context) => {
3322
3854
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3323
3855
  const doc = take(data, {
3324
3856
  assetModelArn: __expectString,
3325
- assetModelCompositeModels: _json,
3857
+ assetModelCompositeModelSummaries: _json,
3858
+ assetModelCompositeModels: (_) => de_AssetModelCompositeModels(_, context),
3326
3859
  assetModelCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3327
3860
  assetModelDescription: __expectString,
3861
+ assetModelExternalId: __expectString,
3328
3862
  assetModelHierarchies: _json,
3329
3863
  assetModelId: __expectString,
3330
3864
  assetModelLastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3331
3865
  assetModelName: __expectString,
3332
3866
  assetModelProperties: _json,
3333
3867
  assetModelStatus: _json,
3868
+ assetModelType: __expectString,
3334
3869
  });
3335
3870
  Object.assign(contents, doc);
3336
3871
  return contents;
@@ -3363,6 +3898,58 @@ const de_DescribeAssetModelCommandError = async (output, context) => {
3363
3898
  });
3364
3899
  }
3365
3900
  };
3901
+ export const de_DescribeAssetModelCompositeModelCommand = async (output, context) => {
3902
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3903
+ return de_DescribeAssetModelCompositeModelCommandError(output, context);
3904
+ }
3905
+ const contents = map({
3906
+ $metadata: deserializeMetadata(output),
3907
+ });
3908
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3909
+ const doc = take(data, {
3910
+ actionDefinitions: _json,
3911
+ assetModelCompositeModelDescription: __expectString,
3912
+ assetModelCompositeModelExternalId: __expectString,
3913
+ assetModelCompositeModelId: __expectString,
3914
+ assetModelCompositeModelName: __expectString,
3915
+ assetModelCompositeModelPath: _json,
3916
+ assetModelCompositeModelProperties: _json,
3917
+ assetModelCompositeModelSummaries: _json,
3918
+ assetModelCompositeModelType: __expectString,
3919
+ assetModelId: __expectString,
3920
+ compositionDetails: _json,
3921
+ });
3922
+ Object.assign(contents, doc);
3923
+ return contents;
3924
+ };
3925
+ const de_DescribeAssetModelCompositeModelCommandError = async (output, context) => {
3926
+ const parsedOutput = {
3927
+ ...output,
3928
+ body: await parseErrorBody(output.body, context),
3929
+ };
3930
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3931
+ switch (errorCode) {
3932
+ case "InternalFailureException":
3933
+ case "com.amazonaws.iotsitewise#InternalFailureException":
3934
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3935
+ case "InvalidRequestException":
3936
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
3937
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3938
+ case "ResourceNotFoundException":
3939
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3940
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3941
+ case "ThrottlingException":
3942
+ case "com.amazonaws.iotsitewise#ThrottlingException":
3943
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3944
+ default:
3945
+ const parsedBody = parsedOutput.body;
3946
+ return throwDefaultError({
3947
+ output,
3948
+ parsedBody,
3949
+ errorCode,
3950
+ });
3951
+ }
3952
+ };
3366
3953
  export const de_DescribeAssetPropertyCommand = async (output, context) => {
3367
3954
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3368
3955
  return de_DescribeAssetPropertyCommandError(output, context);
@@ -3372,6 +3959,7 @@ export const de_DescribeAssetPropertyCommand = async (output, context) => {
3372
3959
  });
3373
3960
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3374
3961
  const doc = take(data, {
3962
+ assetExternalId: __expectString,
3375
3963
  assetId: __expectString,
3376
3964
  assetModelId: __expectString,
3377
3965
  assetName: __expectString,
@@ -3418,6 +4006,8 @@ export const de_DescribeBulkImportJobCommand = async (output, context) => {
3418
4006
  });
3419
4007
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3420
4008
  const doc = take(data, {
4009
+ adaptiveIngestion: __expectBoolean,
4010
+ deleteFilesAfterImport: __expectBoolean,
3421
4011
  errorReportLocation: _json,
3422
4012
  files: _json,
3423
4013
  jobConfiguration: _json,
@@ -3803,11 +4393,193 @@ export const de_DescribeStorageConfigurationCommand = async (output, context) =>
3803
4393
  multiLayerStorage: _json,
3804
4394
  retentionPeriod: _json,
3805
4395
  storageType: __expectString,
4396
+ warmTier: __expectString,
4397
+ warmTierRetentionPeriod: _json,
4398
+ });
4399
+ Object.assign(contents, doc);
4400
+ return contents;
4401
+ };
4402
+ const de_DescribeStorageConfigurationCommandError = async (output, context) => {
4403
+ const parsedOutput = {
4404
+ ...output,
4405
+ body: await parseErrorBody(output.body, context),
4406
+ };
4407
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4408
+ switch (errorCode) {
4409
+ case "ConflictingOperationException":
4410
+ case "com.amazonaws.iotsitewise#ConflictingOperationException":
4411
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
4412
+ case "InternalFailureException":
4413
+ case "com.amazonaws.iotsitewise#InternalFailureException":
4414
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
4415
+ case "InvalidRequestException":
4416
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
4417
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4418
+ case "LimitExceededException":
4419
+ case "com.amazonaws.iotsitewise#LimitExceededException":
4420
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
4421
+ case "ResourceNotFoundException":
4422
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4423
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4424
+ case "ThrottlingException":
4425
+ case "com.amazonaws.iotsitewise#ThrottlingException":
4426
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4427
+ default:
4428
+ const parsedBody = parsedOutput.body;
4429
+ return throwDefaultError({
4430
+ output,
4431
+ parsedBody,
4432
+ errorCode,
4433
+ });
4434
+ }
4435
+ };
4436
+ export const de_DescribeTimeSeriesCommand = async (output, context) => {
4437
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4438
+ return de_DescribeTimeSeriesCommandError(output, context);
4439
+ }
4440
+ const contents = map({
4441
+ $metadata: deserializeMetadata(output),
4442
+ });
4443
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4444
+ const doc = take(data, {
4445
+ alias: __expectString,
4446
+ assetId: __expectString,
4447
+ dataType: __expectString,
4448
+ dataTypeSpec: __expectString,
4449
+ propertyId: __expectString,
4450
+ timeSeriesArn: __expectString,
4451
+ timeSeriesCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4452
+ timeSeriesId: __expectString,
4453
+ timeSeriesLastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4454
+ });
4455
+ Object.assign(contents, doc);
4456
+ return contents;
4457
+ };
4458
+ const de_DescribeTimeSeriesCommandError = async (output, context) => {
4459
+ const parsedOutput = {
4460
+ ...output,
4461
+ body: await parseErrorBody(output.body, context),
4462
+ };
4463
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4464
+ switch (errorCode) {
4465
+ case "InternalFailureException":
4466
+ case "com.amazonaws.iotsitewise#InternalFailureException":
4467
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
4468
+ case "InvalidRequestException":
4469
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
4470
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4471
+ case "ResourceNotFoundException":
4472
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4473
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4474
+ case "ThrottlingException":
4475
+ case "com.amazonaws.iotsitewise#ThrottlingException":
4476
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4477
+ default:
4478
+ const parsedBody = parsedOutput.body;
4479
+ return throwDefaultError({
4480
+ output,
4481
+ parsedBody,
4482
+ errorCode,
4483
+ });
4484
+ }
4485
+ };
4486
+ export const de_DisassociateAssetsCommand = async (output, context) => {
4487
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4488
+ return de_DisassociateAssetsCommandError(output, context);
4489
+ }
4490
+ const contents = map({
4491
+ $metadata: deserializeMetadata(output),
4492
+ });
4493
+ await collectBody(output.body, context);
4494
+ return contents;
4495
+ };
4496
+ const de_DisassociateAssetsCommandError = async (output, context) => {
4497
+ const parsedOutput = {
4498
+ ...output,
4499
+ body: await parseErrorBody(output.body, context),
4500
+ };
4501
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4502
+ switch (errorCode) {
4503
+ case "ConflictingOperationException":
4504
+ case "com.amazonaws.iotsitewise#ConflictingOperationException":
4505
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
4506
+ case "InternalFailureException":
4507
+ case "com.amazonaws.iotsitewise#InternalFailureException":
4508
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
4509
+ case "InvalidRequestException":
4510
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
4511
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4512
+ case "ResourceNotFoundException":
4513
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4514
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4515
+ case "ThrottlingException":
4516
+ case "com.amazonaws.iotsitewise#ThrottlingException":
4517
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4518
+ default:
4519
+ const parsedBody = parsedOutput.body;
4520
+ return throwDefaultError({
4521
+ output,
4522
+ parsedBody,
4523
+ errorCode,
4524
+ });
4525
+ }
4526
+ };
4527
+ export const de_DisassociateTimeSeriesFromAssetPropertyCommand = async (output, context) => {
4528
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4529
+ return de_DisassociateTimeSeriesFromAssetPropertyCommandError(output, context);
4530
+ }
4531
+ const contents = map({
4532
+ $metadata: deserializeMetadata(output),
4533
+ });
4534
+ await collectBody(output.body, context);
4535
+ return contents;
4536
+ };
4537
+ const de_DisassociateTimeSeriesFromAssetPropertyCommandError = async (output, context) => {
4538
+ const parsedOutput = {
4539
+ ...output,
4540
+ body: await parseErrorBody(output.body, context),
4541
+ };
4542
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4543
+ switch (errorCode) {
4544
+ case "ConflictingOperationException":
4545
+ case "com.amazonaws.iotsitewise#ConflictingOperationException":
4546
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
4547
+ case "InternalFailureException":
4548
+ case "com.amazonaws.iotsitewise#InternalFailureException":
4549
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
4550
+ case "InvalidRequestException":
4551
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
4552
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4553
+ case "ResourceNotFoundException":
4554
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4555
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4556
+ case "ThrottlingException":
4557
+ case "com.amazonaws.iotsitewise#ThrottlingException":
4558
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4559
+ default:
4560
+ const parsedBody = parsedOutput.body;
4561
+ return throwDefaultError({
4562
+ output,
4563
+ parsedBody,
4564
+ errorCode,
4565
+ });
4566
+ }
4567
+ };
4568
+ export const de_ExecuteActionCommand = async (output, context) => {
4569
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
4570
+ return de_ExecuteActionCommandError(output, context);
4571
+ }
4572
+ const contents = map({
4573
+ $metadata: deserializeMetadata(output),
4574
+ });
4575
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4576
+ const doc = take(data, {
4577
+ actionId: __expectString,
3806
4578
  });
3807
4579
  Object.assign(contents, doc);
3808
4580
  return contents;
3809
4581
  };
3810
- const de_DescribeStorageConfigurationCommandError = async (output, context) => {
4582
+ const de_ExecuteActionCommandError = async (output, context) => {
3811
4583
  const parsedOutput = {
3812
4584
  ...output,
3813
4585
  body: await parseErrorBody(output.body, context),
@@ -3841,47 +4613,50 @@ const de_DescribeStorageConfigurationCommandError = async (output, context) => {
3841
4613
  });
3842
4614
  }
3843
4615
  };
3844
- export const de_DescribeTimeSeriesCommand = async (output, context) => {
4616
+ export const de_ExecuteQueryCommand = async (output, context) => {
3845
4617
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3846
- return de_DescribeTimeSeriesCommandError(output, context);
4618
+ return de_ExecuteQueryCommandError(output, context);
3847
4619
  }
3848
4620
  const contents = map({
3849
4621
  $metadata: deserializeMetadata(output),
3850
4622
  });
3851
4623
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3852
4624
  const doc = take(data, {
3853
- alias: __expectString,
3854
- assetId: __expectString,
3855
- dataType: __expectString,
3856
- dataTypeSpec: __expectString,
3857
- propertyId: __expectString,
3858
- timeSeriesArn: __expectString,
3859
- timeSeriesCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3860
- timeSeriesId: __expectString,
3861
- timeSeriesLastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4625
+ columns: _json,
4626
+ nextToken: __expectString,
4627
+ rows: (_) => de_Rows(_, context),
3862
4628
  });
3863
4629
  Object.assign(contents, doc);
3864
4630
  return contents;
3865
4631
  };
3866
- const de_DescribeTimeSeriesCommandError = async (output, context) => {
4632
+ const de_ExecuteQueryCommandError = async (output, context) => {
3867
4633
  const parsedOutput = {
3868
4634
  ...output,
3869
4635
  body: await parseErrorBody(output.body, context),
3870
4636
  };
3871
4637
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3872
4638
  switch (errorCode) {
4639
+ case "AccessDeniedException":
4640
+ case "com.amazonaws.iotsitewise#AccessDeniedException":
4641
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3873
4642
  case "InternalFailureException":
3874
4643
  case "com.amazonaws.iotsitewise#InternalFailureException":
3875
4644
  throw await de_InternalFailureExceptionRes(parsedOutput, context);
3876
4645
  case "InvalidRequestException":
3877
4646
  case "com.amazonaws.iotsitewise#InvalidRequestException":
3878
4647
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3879
- case "ResourceNotFoundException":
3880
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3881
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4648
+ case "QueryTimeoutException":
4649
+ case "com.amazonaws.iotsitewise#QueryTimeoutException":
4650
+ throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
4651
+ case "ServiceUnavailableException":
4652
+ case "com.amazonaws.iotsitewise#ServiceUnavailableException":
4653
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3882
4654
  case "ThrottlingException":
3883
4655
  case "com.amazonaws.iotsitewise#ThrottlingException":
3884
4656
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
4657
+ case "ValidationException":
4658
+ case "com.amazonaws.iotsitewise#ValidationException":
4659
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3885
4660
  default:
3886
4661
  const parsedBody = parsedOutput.body;
3887
4662
  return throwDefaultError({
@@ -3891,26 +4666,28 @@ const de_DescribeTimeSeriesCommandError = async (output, context) => {
3891
4666
  });
3892
4667
  }
3893
4668
  };
3894
- export const de_DisassociateAssetsCommand = async (output, context) => {
4669
+ export const de_GetAssetPropertyAggregatesCommand = async (output, context) => {
3895
4670
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3896
- return de_DisassociateAssetsCommandError(output, context);
4671
+ return de_GetAssetPropertyAggregatesCommandError(output, context);
3897
4672
  }
3898
4673
  const contents = map({
3899
4674
  $metadata: deserializeMetadata(output),
3900
4675
  });
3901
- await collectBody(output.body, context);
4676
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4677
+ const doc = take(data, {
4678
+ aggregatedValues: (_) => de_AggregatedValues(_, context),
4679
+ nextToken: __expectString,
4680
+ });
4681
+ Object.assign(contents, doc);
3902
4682
  return contents;
3903
4683
  };
3904
- const de_DisassociateAssetsCommandError = async (output, context) => {
4684
+ const de_GetAssetPropertyAggregatesCommandError = async (output, context) => {
3905
4685
  const parsedOutput = {
3906
4686
  ...output,
3907
4687
  body: await parseErrorBody(output.body, context),
3908
4688
  };
3909
4689
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3910
4690
  switch (errorCode) {
3911
- case "ConflictingOperationException":
3912
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3913
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3914
4691
  case "InternalFailureException":
3915
4692
  case "com.amazonaws.iotsitewise#InternalFailureException":
3916
4693
  throw await de_InternalFailureExceptionRes(parsedOutput, context);
@@ -3920,6 +4697,9 @@ const de_DisassociateAssetsCommandError = async (output, context) => {
3920
4697
  case "ResourceNotFoundException":
3921
4698
  case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3922
4699
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4700
+ case "ServiceUnavailableException":
4701
+ case "com.amazonaws.iotsitewise#ServiceUnavailableException":
4702
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3923
4703
  case "ThrottlingException":
3924
4704
  case "com.amazonaws.iotsitewise#ThrottlingException":
3925
4705
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -3932,26 +4712,27 @@ const de_DisassociateAssetsCommandError = async (output, context) => {
3932
4712
  });
3933
4713
  }
3934
4714
  };
3935
- export const de_DisassociateTimeSeriesFromAssetPropertyCommand = async (output, context) => {
4715
+ export const de_GetAssetPropertyValueCommand = async (output, context) => {
3936
4716
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3937
- return de_DisassociateTimeSeriesFromAssetPropertyCommandError(output, context);
4717
+ return de_GetAssetPropertyValueCommandError(output, context);
3938
4718
  }
3939
4719
  const contents = map({
3940
4720
  $metadata: deserializeMetadata(output),
3941
4721
  });
3942
- await collectBody(output.body, context);
4722
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4723
+ const doc = take(data, {
4724
+ propertyValue: (_) => de_AssetPropertyValue(_, context),
4725
+ });
4726
+ Object.assign(contents, doc);
3943
4727
  return contents;
3944
4728
  };
3945
- const de_DisassociateTimeSeriesFromAssetPropertyCommandError = async (output, context) => {
4729
+ const de_GetAssetPropertyValueCommandError = async (output, context) => {
3946
4730
  const parsedOutput = {
3947
4731
  ...output,
3948
4732
  body: await parseErrorBody(output.body, context),
3949
4733
  };
3950
4734
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3951
4735
  switch (errorCode) {
3952
- case "ConflictingOperationException":
3953
- case "com.amazonaws.iotsitewise#ConflictingOperationException":
3954
- throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
3955
4736
  case "InternalFailureException":
3956
4737
  case "com.amazonaws.iotsitewise#InternalFailureException":
3957
4738
  throw await de_InternalFailureExceptionRes(parsedOutput, context);
@@ -3961,6 +4742,9 @@ const de_DisassociateTimeSeriesFromAssetPropertyCommandError = async (output, co
3961
4742
  case "ResourceNotFoundException":
3962
4743
  case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3963
4744
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4745
+ case "ServiceUnavailableException":
4746
+ case "com.amazonaws.iotsitewise#ServiceUnavailableException":
4747
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3964
4748
  case "ThrottlingException":
3965
4749
  case "com.amazonaws.iotsitewise#ThrottlingException":
3966
4750
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -3973,22 +4757,22 @@ const de_DisassociateTimeSeriesFromAssetPropertyCommandError = async (output, co
3973
4757
  });
3974
4758
  }
3975
4759
  };
3976
- export const de_GetAssetPropertyAggregatesCommand = async (output, context) => {
4760
+ export const de_GetAssetPropertyValueHistoryCommand = async (output, context) => {
3977
4761
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3978
- return de_GetAssetPropertyAggregatesCommandError(output, context);
4762
+ return de_GetAssetPropertyValueHistoryCommandError(output, context);
3979
4763
  }
3980
4764
  const contents = map({
3981
4765
  $metadata: deserializeMetadata(output),
3982
4766
  });
3983
4767
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3984
4768
  const doc = take(data, {
3985
- aggregatedValues: (_) => de_AggregatedValues(_, context),
4769
+ assetPropertyValueHistory: (_) => de_AssetPropertyValueHistory(_, context),
3986
4770
  nextToken: __expectString,
3987
4771
  });
3988
4772
  Object.assign(contents, doc);
3989
4773
  return contents;
3990
4774
  };
3991
- const de_GetAssetPropertyAggregatesCommandError = async (output, context) => {
4775
+ const de_GetAssetPropertyValueHistoryCommandError = async (output, context) => {
3992
4776
  const parsedOutput = {
3993
4777
  ...output,
3994
4778
  body: await parseErrorBody(output.body, context),
@@ -4019,21 +4803,22 @@ const de_GetAssetPropertyAggregatesCommandError = async (output, context) => {
4019
4803
  });
4020
4804
  }
4021
4805
  };
4022
- export const de_GetAssetPropertyValueCommand = async (output, context) => {
4806
+ export const de_GetInterpolatedAssetPropertyValuesCommand = async (output, context) => {
4023
4807
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4024
- return de_GetAssetPropertyValueCommandError(output, context);
4808
+ return de_GetInterpolatedAssetPropertyValuesCommandError(output, context);
4025
4809
  }
4026
4810
  const contents = map({
4027
4811
  $metadata: deserializeMetadata(output),
4028
4812
  });
4029
4813
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4030
4814
  const doc = take(data, {
4031
- propertyValue: (_) => de_AssetPropertyValue(_, context),
4815
+ interpolatedAssetPropertyValues: (_) => de_InterpolatedAssetPropertyValues(_, context),
4816
+ nextToken: __expectString,
4032
4817
  });
4033
4818
  Object.assign(contents, doc);
4034
4819
  return contents;
4035
4820
  };
4036
- const de_GetAssetPropertyValueCommandError = async (output, context) => {
4821
+ const de_GetInterpolatedAssetPropertyValuesCommandError = async (output, context) => {
4037
4822
  const parsedOutput = {
4038
4823
  ...output,
4039
4824
  body: await parseErrorBody(output.body, context),
@@ -4064,22 +4849,22 @@ const de_GetAssetPropertyValueCommandError = async (output, context) => {
4064
4849
  });
4065
4850
  }
4066
4851
  };
4067
- export const de_GetAssetPropertyValueHistoryCommand = async (output, context) => {
4852
+ export const de_ListAccessPoliciesCommand = async (output, context) => {
4068
4853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4069
- return de_GetAssetPropertyValueHistoryCommandError(output, context);
4854
+ return de_ListAccessPoliciesCommandError(output, context);
4070
4855
  }
4071
4856
  const contents = map({
4072
4857
  $metadata: deserializeMetadata(output),
4073
4858
  });
4074
4859
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4075
4860
  const doc = take(data, {
4076
- assetPropertyValueHistory: (_) => de_AssetPropertyValueHistory(_, context),
4861
+ accessPolicySummaries: (_) => de_AccessPolicySummaries(_, context),
4077
4862
  nextToken: __expectString,
4078
4863
  });
4079
4864
  Object.assign(contents, doc);
4080
4865
  return contents;
4081
4866
  };
4082
- const de_GetAssetPropertyValueHistoryCommandError = async (output, context) => {
4867
+ const de_ListAccessPoliciesCommandError = async (output, context) => {
4083
4868
  const parsedOutput = {
4084
4869
  ...output,
4085
4870
  body: await parseErrorBody(output.body, context),
@@ -4092,12 +4877,6 @@ const de_GetAssetPropertyValueHistoryCommandError = async (output, context) => {
4092
4877
  case "InvalidRequestException":
4093
4878
  case "com.amazonaws.iotsitewise#InvalidRequestException":
4094
4879
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4095
- case "ResourceNotFoundException":
4096
- case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4097
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4098
- case "ServiceUnavailableException":
4099
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
4100
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4101
4880
  case "ThrottlingException":
4102
4881
  case "com.amazonaws.iotsitewise#ThrottlingException":
4103
4882
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -4110,22 +4889,22 @@ const de_GetAssetPropertyValueHistoryCommandError = async (output, context) => {
4110
4889
  });
4111
4890
  }
4112
4891
  };
4113
- export const de_GetInterpolatedAssetPropertyValuesCommand = async (output, context) => {
4892
+ export const de_ListActionsCommand = async (output, context) => {
4114
4893
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4115
- return de_GetInterpolatedAssetPropertyValuesCommandError(output, context);
4894
+ return de_ListActionsCommandError(output, context);
4116
4895
  }
4117
4896
  const contents = map({
4118
4897
  $metadata: deserializeMetadata(output),
4119
4898
  });
4120
4899
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4121
4900
  const doc = take(data, {
4122
- interpolatedAssetPropertyValues: (_) => de_InterpolatedAssetPropertyValues(_, context),
4901
+ actionSummaries: _json,
4123
4902
  nextToken: __expectString,
4124
4903
  });
4125
4904
  Object.assign(contents, doc);
4126
4905
  return contents;
4127
4906
  };
4128
- const de_GetInterpolatedAssetPropertyValuesCommandError = async (output, context) => {
4907
+ const de_ListActionsCommandError = async (output, context) => {
4129
4908
  const parsedOutput = {
4130
4909
  ...output,
4131
4910
  body: await parseErrorBody(output.body, context),
@@ -4141,9 +4920,6 @@ const de_GetInterpolatedAssetPropertyValuesCommandError = async (output, context
4141
4920
  case "ResourceNotFoundException":
4142
4921
  case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4143
4922
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4144
- case "ServiceUnavailableException":
4145
- case "com.amazonaws.iotsitewise#ServiceUnavailableException":
4146
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
4147
4923
  case "ThrottlingException":
4148
4924
  case "com.amazonaws.iotsitewise#ThrottlingException":
4149
4925
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -4156,22 +4932,22 @@ const de_GetInterpolatedAssetPropertyValuesCommandError = async (output, context
4156
4932
  });
4157
4933
  }
4158
4934
  };
4159
- export const de_ListAccessPoliciesCommand = async (output, context) => {
4935
+ export const de_ListAssetModelCompositeModelsCommand = async (output, context) => {
4160
4936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4161
- return de_ListAccessPoliciesCommandError(output, context);
4937
+ return de_ListAssetModelCompositeModelsCommandError(output, context);
4162
4938
  }
4163
4939
  const contents = map({
4164
4940
  $metadata: deserializeMetadata(output),
4165
4941
  });
4166
4942
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4167
4943
  const doc = take(data, {
4168
- accessPolicySummaries: (_) => de_AccessPolicySummaries(_, context),
4944
+ assetModelCompositeModelSummaries: _json,
4169
4945
  nextToken: __expectString,
4170
4946
  });
4171
4947
  Object.assign(contents, doc);
4172
4948
  return contents;
4173
4949
  };
4174
- const de_ListAccessPoliciesCommandError = async (output, context) => {
4950
+ const de_ListAssetModelCompositeModelsCommandError = async (output, context) => {
4175
4951
  const parsedOutput = {
4176
4952
  ...output,
4177
4953
  body: await parseErrorBody(output.body, context),
@@ -4184,6 +4960,9 @@ const de_ListAccessPoliciesCommandError = async (output, context) => {
4184
4960
  case "InvalidRequestException":
4185
4961
  case "com.amazonaws.iotsitewise#InvalidRequestException":
4186
4962
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4963
+ case "ResourceNotFoundException":
4964
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4965
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4187
4966
  case "ThrottlingException":
4188
4967
  case "com.amazonaws.iotsitewise#ThrottlingException":
4189
4968
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -4494,6 +5273,49 @@ const de_ListBulkImportJobsCommandError = async (output, context) => {
4494
5273
  });
4495
5274
  }
4496
5275
  };
5276
+ export const de_ListCompositionRelationshipsCommand = async (output, context) => {
5277
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5278
+ return de_ListCompositionRelationshipsCommandError(output, context);
5279
+ }
5280
+ const contents = map({
5281
+ $metadata: deserializeMetadata(output),
5282
+ });
5283
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5284
+ const doc = take(data, {
5285
+ compositionRelationshipSummaries: _json,
5286
+ nextToken: __expectString,
5287
+ });
5288
+ Object.assign(contents, doc);
5289
+ return contents;
5290
+ };
5291
+ const de_ListCompositionRelationshipsCommandError = async (output, context) => {
5292
+ const parsedOutput = {
5293
+ ...output,
5294
+ body: await parseErrorBody(output.body, context),
5295
+ };
5296
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5297
+ switch (errorCode) {
5298
+ case "InternalFailureException":
5299
+ case "com.amazonaws.iotsitewise#InternalFailureException":
5300
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
5301
+ case "InvalidRequestException":
5302
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
5303
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5304
+ case "ResourceNotFoundException":
5305
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5306
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5307
+ case "ThrottlingException":
5308
+ case "com.amazonaws.iotsitewise#ThrottlingException":
5309
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5310
+ default:
5311
+ const parsedBody = parsedOutput.body;
5312
+ return throwDefaultError({
5313
+ output,
5314
+ parsedBody,
5315
+ errorCode,
5316
+ });
5317
+ }
5318
+ };
4497
5319
  export const de_ListDashboardsCommand = async (output, context) => {
4498
5320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4499
5321
  return de_ListDashboardsCommandError(output, context);
@@ -4890,6 +5712,8 @@ export const de_PutStorageConfigurationCommand = async (output, context) => {
4890
5712
  multiLayerStorage: _json,
4891
5713
  retentionPeriod: _json,
4892
5714
  storageType: __expectString,
5715
+ warmTier: __expectString,
5716
+ warmTierRetentionPeriod: _json,
4893
5717
  });
4894
5718
  Object.assign(contents, doc);
4895
5719
  return contents;
@@ -5165,6 +5989,58 @@ const de_UpdateAssetModelCommandError = async (output, context) => {
5165
5989
  });
5166
5990
  }
5167
5991
  };
5992
+ export const de_UpdateAssetModelCompositeModelCommand = async (output, context) => {
5993
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
5994
+ return de_UpdateAssetModelCompositeModelCommandError(output, context);
5995
+ }
5996
+ const contents = map({
5997
+ $metadata: deserializeMetadata(output),
5998
+ });
5999
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6000
+ const doc = take(data, {
6001
+ assetModelCompositeModelPath: _json,
6002
+ assetModelStatus: _json,
6003
+ });
6004
+ Object.assign(contents, doc);
6005
+ return contents;
6006
+ };
6007
+ const de_UpdateAssetModelCompositeModelCommandError = async (output, context) => {
6008
+ const parsedOutput = {
6009
+ ...output,
6010
+ body: await parseErrorBody(output.body, context),
6011
+ };
6012
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6013
+ switch (errorCode) {
6014
+ case "ConflictingOperationException":
6015
+ case "com.amazonaws.iotsitewise#ConflictingOperationException":
6016
+ throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
6017
+ case "InternalFailureException":
6018
+ case "com.amazonaws.iotsitewise#InternalFailureException":
6019
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
6020
+ case "InvalidRequestException":
6021
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
6022
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6023
+ case "LimitExceededException":
6024
+ case "com.amazonaws.iotsitewise#LimitExceededException":
6025
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
6026
+ case "ResourceAlreadyExistsException":
6027
+ case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
6028
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
6029
+ case "ResourceNotFoundException":
6030
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
6031
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6032
+ case "ThrottlingException":
6033
+ case "com.amazonaws.iotsitewise#ThrottlingException":
6034
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
6035
+ default:
6036
+ const parsedBody = parsedOutput.body;
6037
+ return throwDefaultError({
6038
+ output,
6039
+ parsedBody,
6040
+ errorCode,
6041
+ });
6042
+ }
6043
+ };
5168
6044
  export const de_UpdateAssetPropertyCommand = async (output, context) => {
5169
6045
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5170
6046
  return de_UpdateAssetPropertyCommandError(output, context);
@@ -5418,6 +6294,19 @@ const de_UpdateProjectCommandError = async (output, context) => {
5418
6294
  }
5419
6295
  };
5420
6296
  const throwDefaultError = withBaseException(__BaseException);
6297
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
6298
+ const contents = map({});
6299
+ const data = parsedOutput.body;
6300
+ const doc = take(data, {
6301
+ message: __expectString,
6302
+ });
6303
+ Object.assign(contents, doc);
6304
+ const exception = new AccessDeniedException({
6305
+ $metadata: deserializeMetadata(parsedOutput),
6306
+ ...contents,
6307
+ });
6308
+ return __decorateServiceException(exception, parsedOutput.body);
6309
+ };
5421
6310
  const de_ConflictingOperationExceptionRes = async (parsedOutput, context) => {
5422
6311
  const contents = map({});
5423
6312
  const data = parsedOutput.body;
@@ -5472,6 +6361,19 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
5472
6361
  });
5473
6362
  return __decorateServiceException(exception, parsedOutput.body);
5474
6363
  };
6364
+ const de_QueryTimeoutExceptionRes = async (parsedOutput, context) => {
6365
+ const contents = map({});
6366
+ const data = parsedOutput.body;
6367
+ const doc = take(data, {
6368
+ message: __expectString,
6369
+ });
6370
+ Object.assign(contents, doc);
6371
+ const exception = new QueryTimeoutException({
6372
+ $metadata: deserializeMetadata(parsedOutput),
6373
+ ...contents,
6374
+ });
6375
+ return __decorateServiceException(exception, parsedOutput.body);
6376
+ };
5475
6377
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
5476
6378
  const contents = map({});
5477
6379
  const data = parsedOutput.body;
@@ -5553,6 +6455,33 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
5553
6455
  });
5554
6456
  return __decorateServiceException(exception, parsedOutput.body);
5555
6457
  };
6458
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
6459
+ const contents = map({});
6460
+ const data = parsedOutput.body;
6461
+ const doc = take(data, {
6462
+ message: __expectString,
6463
+ });
6464
+ Object.assign(contents, doc);
6465
+ const exception = new ValidationException({
6466
+ $metadata: deserializeMetadata(parsedOutput),
6467
+ ...contents,
6468
+ });
6469
+ return __decorateServiceException(exception, parsedOutput.body);
6470
+ };
6471
+ const se_AssetModelCompositeModelDefinitions = (input, context) => {
6472
+ return input
6473
+ .filter((e) => e != null)
6474
+ .map((entry) => {
6475
+ return _json(entry);
6476
+ });
6477
+ };
6478
+ const se_AssetModelCompositeModels = (input, context) => {
6479
+ return input
6480
+ .filter((e) => e != null)
6481
+ .map((entry) => {
6482
+ return _json(entry);
6483
+ });
6484
+ };
5556
6485
  const se_AssetPropertyValue = (input, context) => {
5557
6486
  return take(input, {
5558
6487
  quality: [],
@@ -5686,6 +6615,14 @@ const de_Aggregates = (output, context) => {
5686
6615
  sum: __limitedParseDouble,
5687
6616
  });
5688
6617
  };
6618
+ const de_AssetModelCompositeModels = (output, context) => {
6619
+ const retVal = (output || [])
6620
+ .filter((e) => e != null)
6621
+ .map((entry) => {
6622
+ return _json(entry);
6623
+ });
6624
+ return retVal;
6625
+ };
5689
6626
  const de_AssetModelSummaries = (output, context) => {
5690
6627
  const retVal = (output || [])
5691
6628
  .filter((e) => e != null)
@@ -5697,8 +6634,10 @@ const de_AssetModelSummaries = (output, context) => {
5697
6634
  const de_AssetModelSummary = (output, context) => {
5698
6635
  return take(output, {
5699
6636
  arn: __expectString,
6637
+ assetModelType: __expectString,
5700
6638
  creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5701
6639
  description: __expectString,
6640
+ externalId: __expectString,
5702
6641
  id: __expectString,
5703
6642
  lastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5704
6643
  name: __expectString,
@@ -5734,6 +6673,7 @@ const de_AssetSummary = (output, context) => {
5734
6673
  assetModelId: __expectString,
5735
6674
  creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5736
6675
  description: __expectString,
6676
+ externalId: __expectString,
5737
6677
  hierarchies: _json,
5738
6678
  id: __expectString,
5739
6679
  lastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -5755,6 +6695,7 @@ const de_AssociatedAssetsSummary = (output, context) => {
5755
6695
  assetModelId: __expectString,
5756
6696
  creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5757
6697
  description: __expectString,
6698
+ externalId: __expectString,
5758
6699
  hierarchies: _json,
5759
6700
  id: __expectString,
5760
6701
  lastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -5884,6 +6825,22 @@ const de_DashboardSummary = (output, context) => {
5884
6825
  name: __expectString,
5885
6826
  });
5886
6827
  };
6828
+ const de_Datum = (output, context) => {
6829
+ return take(output, {
6830
+ arrayValue: (_) => de_DatumList(_, context),
6831
+ nullValue: __expectBoolean,
6832
+ rowValue: (_) => de_Row(_, context),
6833
+ scalarValue: __expectString,
6834
+ });
6835
+ };
6836
+ const de_DatumList = (output, context) => {
6837
+ const retVal = (output || [])
6838
+ .filter((e) => e != null)
6839
+ .map((entry) => {
6840
+ return de_Datum(entry, context);
6841
+ });
6842
+ return retVal;
6843
+ };
5887
6844
  const de_GatewaySummaries = (output, context) => {
5888
6845
  const retVal = (output || [])
5889
6846
  .filter((e) => e != null)
@@ -5953,6 +6910,19 @@ const de_ProjectSummary = (output, context) => {
5953
6910
  name: __expectString,
5954
6911
  });
5955
6912
  };
6913
+ const de_Row = (output, context) => {
6914
+ return take(output, {
6915
+ data: (_) => de_DatumList(_, context),
6916
+ });
6917
+ };
6918
+ const de_Rows = (output, context) => {
6919
+ const retVal = (output || [])
6920
+ .filter((e) => e != null)
6921
+ .map((entry) => {
6922
+ return de_Row(entry, context);
6923
+ });
6924
+ return retVal;
6925
+ };
5956
6926
  const de_TimeSeriesSummaries = (output, context) => {
5957
6927
  const retVal = (output || [])
5958
6928
  .filter((e) => e != null)