@aws-sdk/client-iotsitewise 3.859.0 → 3.862.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 (53) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +271 -39
  3. package/dist-es/IoTSiteWise.js +8 -0
  4. package/dist-es/commands/DeleteAssetModelInterfaceRelationshipCommand.js +22 -0
  5. package/dist-es/commands/DescribeAssetModelInterfaceRelationshipCommand.js +22 -0
  6. package/dist-es/commands/InvokeAssistantCommand.js +2 -1
  7. package/dist-es/commands/ListInterfaceRelationshipsCommand.js +22 -0
  8. package/dist-es/commands/PutAssetModelInterfaceRelationshipCommand.js +22 -0
  9. package/dist-es/commands/index.js +4 -0
  10. package/dist-es/models/models_0.js +1 -50
  11. package/dist-es/models/models_1.js +50 -0
  12. package/dist-es/pagination/ListInterfaceRelationshipsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +1 -0
  14. package/dist-es/protocols/Aws_restJson1.js +151 -0
  15. package/dist-types/IoTSiteWise.d.ts +28 -0
  16. package/dist-types/IoTSiteWiseClient.d.ts +6 -2
  17. package/dist-types/commands/CreateAssetModelCommand.d.ts +12 -7
  18. package/dist-types/commands/CreateAssetModelCompositeModelCommand.d.ts +2 -2
  19. package/dist-types/commands/CreateBulkImportJobCommand.d.ts +2 -2
  20. package/dist-types/commands/DeleteAssetModelInterfaceRelationshipCommand.d.ts +110 -0
  21. package/dist-types/commands/DescribeAssetModelCommand.d.ts +13 -6
  22. package/dist-types/commands/DescribeAssetModelCompositeModelCommand.d.ts +2 -2
  23. package/dist-types/commands/DescribeAssetModelInterfaceRelationshipCommand.d.ts +103 -0
  24. package/dist-types/commands/DescribeAssetPropertyCommand.d.ts +4 -4
  25. package/dist-types/commands/InvokeAssistantCommand.d.ts +2 -1
  26. package/dist-types/commands/ListAssetModelPropertiesCommand.d.ts +8 -2
  27. package/dist-types/commands/ListAssetModelsCommand.d.ts +2 -2
  28. package/dist-types/commands/ListComputationModelDataBindingUsagesCommand.d.ts +3 -6
  29. package/dist-types/commands/ListComputationModelResolveToResourcesCommand.d.ts +2 -1
  30. package/dist-types/commands/ListInterfaceRelationshipsCommand.d.ts +96 -0
  31. package/dist-types/commands/PutAssetModelInterfaceRelationshipCommand.d.ts +126 -0
  32. package/dist-types/commands/UpdateAssetModelCommand.d.ts +4 -4
  33. package/dist-types/commands/UpdateAssetModelCompositeModelCommand.d.ts +2 -2
  34. package/dist-types/commands/index.d.ts +4 -0
  35. package/dist-types/models/models_0.d.ts +245 -361
  36. package/dist-types/models/models_1.d.ts +494 -41
  37. package/dist-types/pagination/ListInterfaceRelationshipsPaginator.d.ts +7 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  40. package/dist-types/ts3.4/IoTSiteWise.d.ts +86 -0
  41. package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +24 -0
  42. package/dist-types/ts3.4/commands/DeleteAssetModelInterfaceRelationshipCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/DescribeAssetModelInterfaceRelationshipCommand.d.ts +51 -0
  44. package/dist-types/ts3.4/commands/InvokeAssistantCommand.d.ts +2 -4
  45. package/dist-types/ts3.4/commands/ListInterfaceRelationshipsCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/PutAssetModelInterfaceRelationshipCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +41 -180
  49. package/dist-types/ts3.4/models/models_1.d.ts +217 -0
  50. package/dist-types/ts3.4/pagination/ListInterfaceRelationshipsPaginator.d.ts +11 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  53. package/package.json +37 -37
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteAssetModelInterfaceRelationshipCommand, se_DeleteAssetModelInterfaceRelationshipCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteAssetModelInterfaceRelationshipCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIoTSiteWise", "DeleteAssetModelInterfaceRelationship", {})
17
+ .n("IoTSiteWiseClient", "DeleteAssetModelInterfaceRelationshipCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteAssetModelInterfaceRelationshipCommand)
20
+ .de(de_DeleteAssetModelInterfaceRelationshipCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DescribeAssetModelInterfaceRelationshipCommand, se_DescribeAssetModelInterfaceRelationshipCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DescribeAssetModelInterfaceRelationshipCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIoTSiteWise", "DescribeAssetModelInterfaceRelationship", {})
17
+ .n("IoTSiteWiseClient", "DescribeAssetModelInterfaceRelationshipCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DescribeAssetModelInterfaceRelationshipCommand)
20
+ .de(de_DescribeAssetModelInterfaceRelationshipCommand)
21
+ .build() {
22
+ }
@@ -2,7 +2,8 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { InvokeAssistantRequestFilterSensitiveLog, InvokeAssistantResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { InvokeAssistantRequestFilterSensitiveLog } from "../models/models_0";
6
+ import { InvokeAssistantResponseFilterSensitiveLog } from "../models/models_1";
6
7
  import { de_InvokeAssistantCommand, se_InvokeAssistantCommand } from "../protocols/Aws_restJson1";
7
8
  export { $Command };
8
9
  export class InvokeAssistantCommand extends $Command
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListInterfaceRelationshipsCommand, se_ListInterfaceRelationshipsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListInterfaceRelationshipsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIoTSiteWise", "ListInterfaceRelationships", {})
17
+ .n("IoTSiteWiseClient", "ListInterfaceRelationshipsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListInterfaceRelationshipsCommand)
20
+ .de(de_ListInterfaceRelationshipsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_PutAssetModelInterfaceRelationshipCommand, se_PutAssetModelInterfaceRelationshipCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PutAssetModelInterfaceRelationshipCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSIoTSiteWise", "PutAssetModelInterfaceRelationship", {})
17
+ .n("IoTSiteWiseClient", "PutAssetModelInterfaceRelationshipCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_PutAssetModelInterfaceRelationshipCommand)
20
+ .de(de_PutAssetModelInterfaceRelationshipCommand)
21
+ .build() {
22
+ }
@@ -21,6 +21,7 @@ export * from "./DeleteAccessPolicyCommand";
21
21
  export * from "./DeleteAssetCommand";
22
22
  export * from "./DeleteAssetModelCommand";
23
23
  export * from "./DeleteAssetModelCompositeModelCommand";
24
+ export * from "./DeleteAssetModelInterfaceRelationshipCommand";
24
25
  export * from "./DeleteComputationModelCommand";
25
26
  export * from "./DeleteDashboardCommand";
26
27
  export * from "./DeleteDatasetCommand";
@@ -34,6 +35,7 @@ export * from "./DescribeAssetCommand";
34
35
  export * from "./DescribeAssetCompositeModelCommand";
35
36
  export * from "./DescribeAssetModelCommand";
36
37
  export * from "./DescribeAssetModelCompositeModelCommand";
38
+ export * from "./DescribeAssetModelInterfaceRelationshipCommand";
37
39
  export * from "./DescribeAssetPropertyCommand";
38
40
  export * from "./DescribeBulkImportJobCommand";
39
41
  export * from "./DescribeComputationModelCommand";
@@ -76,11 +78,13 @@ export * from "./ListDashboardsCommand";
76
78
  export * from "./ListDatasetsCommand";
77
79
  export * from "./ListExecutionsCommand";
78
80
  export * from "./ListGatewaysCommand";
81
+ export * from "./ListInterfaceRelationshipsCommand";
79
82
  export * from "./ListPortalsCommand";
80
83
  export * from "./ListProjectAssetsCommand";
81
84
  export * from "./ListProjectsCommand";
82
85
  export * from "./ListTagsForResourceCommand";
83
86
  export * from "./ListTimeSeriesCommand";
87
+ export * from "./PutAssetModelInterfaceRelationshipCommand";
84
88
  export * from "./PutDefaultEncryptionConfigurationCommand";
85
89
  export * from "./PutLoggingOptionsCommand";
86
90
  export * from "./PutStorageConfigurationCommand";
@@ -70,6 +70,7 @@ export const DetailedErrorCode = {
70
70
  export const AssetModelType = {
71
71
  ASSET_MODEL: "ASSET_MODEL",
72
72
  COMPONENT_MODEL: "COMPONENT_MODEL",
73
+ INTERFACE: "INTERFACE",
73
74
  };
74
75
  export const AssetModelVersionType = {
75
76
  ACTIVE: "ACTIVE",
@@ -385,30 +386,6 @@ export class ValidationException extends __BaseException {
385
386
  Object.setPrototypeOf(this, ValidationException.prototype);
386
387
  }
387
388
  }
388
- export var ResponseStream;
389
- (function (ResponseStream) {
390
- ResponseStream.visit = (value, visitor) => {
391
- if (value.trace !== undefined)
392
- return visitor.trace(value.trace);
393
- if (value.output !== undefined)
394
- return visitor.output(value.output);
395
- if (value.accessDeniedException !== undefined)
396
- return visitor.accessDeniedException(value.accessDeniedException);
397
- if (value.conflictingOperationException !== undefined)
398
- return visitor.conflictingOperationException(value.conflictingOperationException);
399
- if (value.internalFailureException !== undefined)
400
- return visitor.internalFailureException(value.internalFailureException);
401
- if (value.invalidRequestException !== undefined)
402
- return visitor.invalidRequestException(value.invalidRequestException);
403
- if (value.limitExceededException !== undefined)
404
- return visitor.limitExceededException(value.limitExceededException);
405
- if (value.resourceNotFoundException !== undefined)
406
- return visitor.resourceNotFoundException(value.resourceNotFoundException);
407
- if (value.throttlingException !== undefined)
408
- return visitor.throttlingException(value.throttlingException);
409
- return visitor._(value.$unknown[0], value.$unknown[1]);
410
- };
411
- })(ResponseStream || (ResponseStream = {}));
412
389
  export const CreatePortalRequestFilterSensitiveLog = (obj) => ({
413
390
  ...obj,
414
391
  ...(obj.portalContactEmail && { portalContactEmail: SENSITIVE_STRING }),
@@ -423,29 +400,3 @@ export const InvokeAssistantRequestFilterSensitiveLog = (obj) => ({
423
400
  ...obj,
424
401
  ...(obj.message && { message: SENSITIVE_STRING }),
425
402
  });
426
- export const ResponseStreamFilterSensitiveLog = (obj) => {
427
- if (obj.trace !== undefined)
428
- return { trace: obj.trace };
429
- if (obj.output !== undefined)
430
- return { output: obj.output };
431
- if (obj.accessDeniedException !== undefined)
432
- return { accessDeniedException: obj.accessDeniedException };
433
- if (obj.conflictingOperationException !== undefined)
434
- return { conflictingOperationException: obj.conflictingOperationException };
435
- if (obj.internalFailureException !== undefined)
436
- return { internalFailureException: obj.internalFailureException };
437
- if (obj.invalidRequestException !== undefined)
438
- return { invalidRequestException: obj.invalidRequestException };
439
- if (obj.limitExceededException !== undefined)
440
- return { limitExceededException: obj.limitExceededException };
441
- if (obj.resourceNotFoundException !== undefined)
442
- return { resourceNotFoundException: obj.resourceNotFoundException };
443
- if (obj.throttlingException !== undefined)
444
- return { throttlingException: obj.throttlingException };
445
- if (obj.$unknown !== undefined)
446
- return { [obj.$unknown[0]]: "UNKNOWN" };
447
- };
448
- export const InvokeAssistantResponseFilterSensitiveLog = (obj) => ({
449
- ...obj,
450
- ...(obj.body && { body: "STREAMING_CONTENT" }),
451
- });
@@ -1,5 +1,29 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { IoTSiteWiseServiceException as __BaseException } from "./IoTSiteWiseServiceException";
3
+ export var ResponseStream;
4
+ (function (ResponseStream) {
5
+ ResponseStream.visit = (value, visitor) => {
6
+ if (value.trace !== undefined)
7
+ return visitor.trace(value.trace);
8
+ if (value.output !== undefined)
9
+ return visitor.output(value.output);
10
+ if (value.accessDeniedException !== undefined)
11
+ return visitor.accessDeniedException(value.accessDeniedException);
12
+ if (value.conflictingOperationException !== undefined)
13
+ return visitor.conflictingOperationException(value.conflictingOperationException);
14
+ if (value.internalFailureException !== undefined)
15
+ return visitor.internalFailureException(value.internalFailureException);
16
+ if (value.invalidRequestException !== undefined)
17
+ return visitor.invalidRequestException(value.invalidRequestException);
18
+ if (value.limitExceededException !== undefined)
19
+ return visitor.limitExceededException(value.limitExceededException);
20
+ if (value.resourceNotFoundException !== undefined)
21
+ return visitor.resourceNotFoundException(value.resourceNotFoundException);
22
+ if (value.throttlingException !== undefined)
23
+ return visitor.throttlingException(value.throttlingException);
24
+ return visitor._(value.$unknown[0], value.$unknown[1]);
25
+ };
26
+ })(ResponseStream || (ResponseStream = {}));
3
27
  export const IdentityType = {
4
28
  GROUP: "GROUP",
5
29
  IAM: "IAM",
@@ -74,6 +98,32 @@ export class TooManyTagsException extends __BaseException {
74
98
  this.resourceName = opts.resourceName;
75
99
  }
76
100
  }
101
+ export const ResponseStreamFilterSensitiveLog = (obj) => {
102
+ if (obj.trace !== undefined)
103
+ return { trace: obj.trace };
104
+ if (obj.output !== undefined)
105
+ return { output: obj.output };
106
+ if (obj.accessDeniedException !== undefined)
107
+ return { accessDeniedException: obj.accessDeniedException };
108
+ if (obj.conflictingOperationException !== undefined)
109
+ return { conflictingOperationException: obj.conflictingOperationException };
110
+ if (obj.internalFailureException !== undefined)
111
+ return { internalFailureException: obj.internalFailureException };
112
+ if (obj.invalidRequestException !== undefined)
113
+ return { invalidRequestException: obj.invalidRequestException };
114
+ if (obj.limitExceededException !== undefined)
115
+ return { limitExceededException: obj.limitExceededException };
116
+ if (obj.resourceNotFoundException !== undefined)
117
+ return { resourceNotFoundException: obj.resourceNotFoundException };
118
+ if (obj.throttlingException !== undefined)
119
+ return { throttlingException: obj.throttlingException };
120
+ if (obj.$unknown !== undefined)
121
+ return { [obj.$unknown[0]]: "UNKNOWN" };
122
+ };
123
+ export const InvokeAssistantResponseFilterSensitiveLog = (obj) => ({
124
+ ...obj,
125
+ ...(obj.body && { body: "STREAMING_CONTENT" }),
126
+ });
77
127
  export const UpdatePortalRequestFilterSensitiveLog = (obj) => ({
78
128
  ...obj,
79
129
  ...(obj.portalContactEmail && { portalContactEmail: SENSITIVE_STRING }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListInterfaceRelationshipsCommand, } from "../commands/ListInterfaceRelationshipsCommand";
3
+ import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
4
+ export const paginateListInterfaceRelationships = createPaginator(IoTSiteWiseClient, ListInterfaceRelationshipsCommand, "nextToken", "nextToken", "maxResults");
@@ -23,6 +23,7 @@ export * from "./ListDashboardsPaginator";
23
23
  export * from "./ListDatasetsPaginator";
24
24
  export * from "./ListExecutionsPaginator";
25
25
  export * from "./ListGatewaysPaginator";
26
+ export * from "./ListInterfaceRelationshipsPaginator";
26
27
  export * from "./ListPortalsPaginator";
27
28
  export * from "./ListProjectAssetsPaginator";
28
29
  export * from "./ListProjectsPaginator";
@@ -582,6 +582,27 @@ export const se_DeleteAssetModelCompositeModelCommand = async (input, context) =
582
582
  b.m("DELETE").h(headers).q(query).b(body);
583
583
  return b.build();
584
584
  };
585
+ export const se_DeleteAssetModelInterfaceRelationshipCommand = async (input, context) => {
586
+ const b = rb(input, context);
587
+ const headers = {};
588
+ b.bp("/asset-models/{assetModelId}/interface/{interfaceAssetModelId}/asset-model-interface-relationship");
589
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
590
+ b.p("interfaceAssetModelId", () => input.interfaceAssetModelId, "{interfaceAssetModelId}", false);
591
+ const query = map({
592
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
593
+ });
594
+ let body;
595
+ let { hostname: resolvedHostname } = await context.endpoint();
596
+ if (context.disableHostPrefix !== true) {
597
+ resolvedHostname = "api." + resolvedHostname;
598
+ if (!__isValidHostname(resolvedHostname)) {
599
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
600
+ }
601
+ }
602
+ b.hn(resolvedHostname);
603
+ b.m("DELETE").h(headers).q(query).b(body);
604
+ return b.build();
605
+ };
585
606
  export const se_DeleteComputationModelCommand = async (input, context) => {
586
607
  const b = rb(input, context);
587
608
  const headers = {};
@@ -839,6 +860,24 @@ export const se_DescribeAssetModelCompositeModelCommand = async (input, context)
839
860
  b.m("GET").h(headers).q(query).b(body);
840
861
  return b.build();
841
862
  };
863
+ export const se_DescribeAssetModelInterfaceRelationshipCommand = async (input, context) => {
864
+ const b = rb(input, context);
865
+ const headers = {};
866
+ b.bp("/asset-models/{assetModelId}/interface/{interfaceAssetModelId}/asset-model-interface-relationship");
867
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
868
+ b.p("interfaceAssetModelId", () => input.interfaceAssetModelId, "{interfaceAssetModelId}", false);
869
+ let body;
870
+ let { hostname: resolvedHostname } = await context.endpoint();
871
+ if (context.disableHostPrefix !== true) {
872
+ resolvedHostname = "api." + resolvedHostname;
873
+ if (!__isValidHostname(resolvedHostname)) {
874
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
875
+ }
876
+ }
877
+ b.hn(resolvedHostname);
878
+ b.m("GET").h(headers).b(body);
879
+ return b.build();
880
+ };
842
881
  export const se_DescribeAssetPropertyCommand = async (input, context) => {
843
882
  const b = rb(input, context);
844
883
  const headers = {};
@@ -1730,6 +1769,27 @@ export const se_ListGatewaysCommand = async (input, context) => {
1730
1769
  b.m("GET").h(headers).q(query).b(body);
1731
1770
  return b.build();
1732
1771
  };
1772
+ export const se_ListInterfaceRelationshipsCommand = async (input, context) => {
1773
+ const b = rb(input, context);
1774
+ const headers = {};
1775
+ b.bp("/interface/{interfaceAssetModelId}/asset-models");
1776
+ b.p("interfaceAssetModelId", () => input.interfaceAssetModelId, "{interfaceAssetModelId}", false);
1777
+ const query = map({
1778
+ [_nT]: [, input[_nT]],
1779
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1780
+ });
1781
+ let body;
1782
+ let { hostname: resolvedHostname } = await context.endpoint();
1783
+ if (context.disableHostPrefix !== true) {
1784
+ resolvedHostname = "api." + resolvedHostname;
1785
+ if (!__isValidHostname(resolvedHostname)) {
1786
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1787
+ }
1788
+ }
1789
+ b.hn(resolvedHostname);
1790
+ b.m("GET").h(headers).q(query).b(body);
1791
+ return b.build();
1792
+ };
1733
1793
  export const se_ListPortalsCommand = async (input, context) => {
1734
1794
  const b = rb(input, context);
1735
1795
  const headers = {};
@@ -1834,6 +1894,30 @@ export const se_ListTimeSeriesCommand = async (input, context) => {
1834
1894
  b.m("GET").h(headers).q(query).b(body);
1835
1895
  return b.build();
1836
1896
  };
1897
+ export const se_PutAssetModelInterfaceRelationshipCommand = async (input, context) => {
1898
+ const b = rb(input, context);
1899
+ const headers = {
1900
+ "content-type": "application/json",
1901
+ };
1902
+ b.bp("/asset-models/{assetModelId}/interface/{interfaceAssetModelId}/asset-model-interface-relationship");
1903
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
1904
+ b.p("interfaceAssetModelId", () => input.interfaceAssetModelId, "{interfaceAssetModelId}", false);
1905
+ let body;
1906
+ body = JSON.stringify(take(input, {
1907
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1908
+ propertyMappingConfiguration: (_) => _json(_),
1909
+ }));
1910
+ let { hostname: resolvedHostname } = await context.endpoint();
1911
+ if (context.disableHostPrefix !== true) {
1912
+ resolvedHostname = "api." + resolvedHostname;
1913
+ if (!__isValidHostname(resolvedHostname)) {
1914
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1915
+ }
1916
+ }
1917
+ b.hn(resolvedHostname);
1918
+ b.m("PUT").h(headers).b(body);
1919
+ return b.build();
1920
+ };
1837
1921
  export const se_PutDefaultEncryptionConfigurationCommand = async (input, context) => {
1838
1922
  const b = rb(input, context);
1839
1923
  const headers = {
@@ -2600,6 +2684,23 @@ export const de_DeleteAssetModelCompositeModelCommand = async (output, context)
2600
2684
  Object.assign(contents, doc);
2601
2685
  return contents;
2602
2686
  };
2687
+ export const de_DeleteAssetModelInterfaceRelationshipCommand = async (output, context) => {
2688
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2689
+ return de_CommandError(output, context);
2690
+ }
2691
+ const contents = map({
2692
+ $metadata: deserializeMetadata(output),
2693
+ });
2694
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2695
+ const doc = take(data, {
2696
+ assetModelArn: __expectString,
2697
+ assetModelId: __expectString,
2698
+ assetModelStatus: _json,
2699
+ interfaceAssetModelId: __expectString,
2700
+ });
2701
+ Object.assign(contents, doc);
2702
+ return contents;
2703
+ };
2603
2704
  export const de_DeleteComputationModelCommand = async (output, context) => {
2604
2705
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2605
2706
  return de_CommandError(output, context);
@@ -2794,6 +2895,7 @@ export const de_DescribeAssetModelCommand = async (output, context) => {
2794
2895
  assetModelStatus: _json,
2795
2896
  assetModelType: __expectString,
2796
2897
  assetModelVersion: __expectString,
2898
+ interfaceDetails: _json,
2797
2899
  });
2798
2900
  Object.assign(contents, doc);
2799
2901
  return contents;
@@ -2822,6 +2924,23 @@ export const de_DescribeAssetModelCompositeModelCommand = async (output, context
2822
2924
  Object.assign(contents, doc);
2823
2925
  return contents;
2824
2926
  };
2927
+ export const de_DescribeAssetModelInterfaceRelationshipCommand = async (output, context) => {
2928
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2929
+ return de_CommandError(output, context);
2930
+ }
2931
+ const contents = map({
2932
+ $metadata: deserializeMetadata(output),
2933
+ });
2934
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2935
+ const doc = take(data, {
2936
+ assetModelId: __expectString,
2937
+ hierarchyMappings: _json,
2938
+ interfaceAssetModelId: __expectString,
2939
+ propertyMappings: _json,
2940
+ });
2941
+ Object.assign(contents, doc);
2942
+ return contents;
2943
+ };
2825
2944
  export const de_DescribeAssetPropertyCommand = async (output, context) => {
2826
2945
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2827
2946
  return de_CommandError(output, context);
@@ -3525,6 +3644,21 @@ export const de_ListGatewaysCommand = async (output, context) => {
3525
3644
  Object.assign(contents, doc);
3526
3645
  return contents;
3527
3646
  };
3647
+ export const de_ListInterfaceRelationshipsCommand = async (output, context) => {
3648
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3649
+ return de_CommandError(output, context);
3650
+ }
3651
+ const contents = map({
3652
+ $metadata: deserializeMetadata(output),
3653
+ });
3654
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3655
+ const doc = take(data, {
3656
+ interfaceRelationshipSummaries: _json,
3657
+ nextToken: __expectString,
3658
+ });
3659
+ Object.assign(contents, doc);
3660
+ return contents;
3661
+ };
3528
3662
  export const de_ListPortalsCommand = async (output, context) => {
3529
3663
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3530
3664
  return de_CommandError(output, context);
@@ -3599,6 +3733,23 @@ export const de_ListTimeSeriesCommand = async (output, context) => {
3599
3733
  Object.assign(contents, doc);
3600
3734
  return contents;
3601
3735
  };
3736
+ export const de_PutAssetModelInterfaceRelationshipCommand = async (output, context) => {
3737
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3738
+ return de_CommandError(output, context);
3739
+ }
3740
+ const contents = map({
3741
+ $metadata: deserializeMetadata(output),
3742
+ });
3743
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3744
+ const doc = take(data, {
3745
+ assetModelArn: __expectString,
3746
+ assetModelId: __expectString,
3747
+ assetModelStatus: _json,
3748
+ interfaceAssetModelId: __expectString,
3749
+ });
3750
+ Object.assign(contents, doc);
3751
+ return contents;
3752
+ };
3602
3753
  export const de_PutDefaultEncryptionConfigurationCommand = async (output, context) => {
3603
3754
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3604
3755
  return de_CommandError(output, context);
@@ -22,6 +22,7 @@ import { DeleteAccessPolicyCommandInput, DeleteAccessPolicyCommandOutput } from
22
22
  import { DeleteAssetCommandInput, DeleteAssetCommandOutput } from "./commands/DeleteAssetCommand";
23
23
  import { DeleteAssetModelCommandInput, DeleteAssetModelCommandOutput } from "./commands/DeleteAssetModelCommand";
24
24
  import { DeleteAssetModelCompositeModelCommandInput, DeleteAssetModelCompositeModelCommandOutput } from "./commands/DeleteAssetModelCompositeModelCommand";
25
+ import { DeleteAssetModelInterfaceRelationshipCommandInput, DeleteAssetModelInterfaceRelationshipCommandOutput } from "./commands/DeleteAssetModelInterfaceRelationshipCommand";
25
26
  import { DeleteComputationModelCommandInput, DeleteComputationModelCommandOutput } from "./commands/DeleteComputationModelCommand";
26
27
  import { DeleteDashboardCommandInput, DeleteDashboardCommandOutput } from "./commands/DeleteDashboardCommand";
27
28
  import { DeleteDatasetCommandInput, DeleteDatasetCommandOutput } from "./commands/DeleteDatasetCommand";
@@ -35,6 +36,7 @@ import { DescribeAssetCommandInput, DescribeAssetCommandOutput } from "./command
35
36
  import { DescribeAssetCompositeModelCommandInput, DescribeAssetCompositeModelCommandOutput } from "./commands/DescribeAssetCompositeModelCommand";
36
37
  import { DescribeAssetModelCommandInput, DescribeAssetModelCommandOutput } from "./commands/DescribeAssetModelCommand";
37
38
  import { DescribeAssetModelCompositeModelCommandInput, DescribeAssetModelCompositeModelCommandOutput } from "./commands/DescribeAssetModelCompositeModelCommand";
39
+ import { DescribeAssetModelInterfaceRelationshipCommandInput, DescribeAssetModelInterfaceRelationshipCommandOutput } from "./commands/DescribeAssetModelInterfaceRelationshipCommand";
38
40
  import { DescribeAssetPropertyCommandInput, DescribeAssetPropertyCommandOutput } from "./commands/DescribeAssetPropertyCommand";
39
41
  import { DescribeBulkImportJobCommandInput, DescribeBulkImportJobCommandOutput } from "./commands/DescribeBulkImportJobCommand";
40
42
  import { DescribeComputationModelCommandInput, DescribeComputationModelCommandOutput } from "./commands/DescribeComputationModelCommand";
@@ -77,11 +79,13 @@ import { ListDashboardsCommandInput, ListDashboardsCommandOutput } from "./comma
77
79
  import { ListDatasetsCommandInput, ListDatasetsCommandOutput } from "./commands/ListDatasetsCommand";
78
80
  import { ListExecutionsCommandInput, ListExecutionsCommandOutput } from "./commands/ListExecutionsCommand";
79
81
  import { ListGatewaysCommandInput, ListGatewaysCommandOutput } from "./commands/ListGatewaysCommand";
82
+ import { ListInterfaceRelationshipsCommandInput, ListInterfaceRelationshipsCommandOutput } from "./commands/ListInterfaceRelationshipsCommand";
80
83
  import { ListPortalsCommandInput, ListPortalsCommandOutput } from "./commands/ListPortalsCommand";
81
84
  import { ListProjectAssetsCommandInput, ListProjectAssetsCommandOutput } from "./commands/ListProjectAssetsCommand";
82
85
  import { ListProjectsCommandInput, ListProjectsCommandOutput } from "./commands/ListProjectsCommand";
83
86
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
84
87
  import { ListTimeSeriesCommandInput, ListTimeSeriesCommandOutput } from "./commands/ListTimeSeriesCommand";
88
+ import { PutAssetModelInterfaceRelationshipCommandInput, PutAssetModelInterfaceRelationshipCommandOutput } from "./commands/PutAssetModelInterfaceRelationshipCommand";
85
89
  import { PutDefaultEncryptionConfigurationCommandInput, PutDefaultEncryptionConfigurationCommandOutput } from "./commands/PutDefaultEncryptionConfigurationCommand";
86
90
  import { PutLoggingOptionsCommandInput, PutLoggingOptionsCommandOutput } from "./commands/PutLoggingOptionsCommand";
87
91
  import { PutStorageConfigurationCommandInput, PutStorageConfigurationCommandOutput } from "./commands/PutStorageConfigurationCommand";
@@ -239,6 +243,12 @@ export interface IoTSiteWise {
239
243
  deleteAssetModelCompositeModel(args: DeleteAssetModelCompositeModelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAssetModelCompositeModelCommandOutput>;
240
244
  deleteAssetModelCompositeModel(args: DeleteAssetModelCompositeModelCommandInput, cb: (err: any, data?: DeleteAssetModelCompositeModelCommandOutput) => void): void;
241
245
  deleteAssetModelCompositeModel(args: DeleteAssetModelCompositeModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAssetModelCompositeModelCommandOutput) => void): void;
246
+ /**
247
+ * @see {@link DeleteAssetModelInterfaceRelationshipCommand}
248
+ */
249
+ deleteAssetModelInterfaceRelationship(args: DeleteAssetModelInterfaceRelationshipCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAssetModelInterfaceRelationshipCommandOutput>;
250
+ deleteAssetModelInterfaceRelationship(args: DeleteAssetModelInterfaceRelationshipCommandInput, cb: (err: any, data?: DeleteAssetModelInterfaceRelationshipCommandOutput) => void): void;
251
+ deleteAssetModelInterfaceRelationship(args: DeleteAssetModelInterfaceRelationshipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAssetModelInterfaceRelationshipCommandOutput) => void): void;
242
252
  /**
243
253
  * @see {@link DeleteComputationModelCommand}
244
254
  */
@@ -318,6 +328,12 @@ export interface IoTSiteWise {
318
328
  describeAssetModelCompositeModel(args: DescribeAssetModelCompositeModelCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAssetModelCompositeModelCommandOutput>;
319
329
  describeAssetModelCompositeModel(args: DescribeAssetModelCompositeModelCommandInput, cb: (err: any, data?: DescribeAssetModelCompositeModelCommandOutput) => void): void;
320
330
  describeAssetModelCompositeModel(args: DescribeAssetModelCompositeModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAssetModelCompositeModelCommandOutput) => void): void;
331
+ /**
332
+ * @see {@link DescribeAssetModelInterfaceRelationshipCommand}
333
+ */
334
+ describeAssetModelInterfaceRelationship(args: DescribeAssetModelInterfaceRelationshipCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAssetModelInterfaceRelationshipCommandOutput>;
335
+ describeAssetModelInterfaceRelationship(args: DescribeAssetModelInterfaceRelationshipCommandInput, cb: (err: any, data?: DescribeAssetModelInterfaceRelationshipCommandOutput) => void): void;
336
+ describeAssetModelInterfaceRelationship(args: DescribeAssetModelInterfaceRelationshipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAssetModelInterfaceRelationshipCommandOutput) => void): void;
321
337
  /**
322
338
  * @see {@link DescribeAssetPropertyCommand}
323
339
  */
@@ -582,6 +598,12 @@ export interface IoTSiteWise {
582
598
  listGateways(args: ListGatewaysCommandInput, options?: __HttpHandlerOptions): Promise<ListGatewaysCommandOutput>;
583
599
  listGateways(args: ListGatewaysCommandInput, cb: (err: any, data?: ListGatewaysCommandOutput) => void): void;
584
600
  listGateways(args: ListGatewaysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListGatewaysCommandOutput) => void): void;
601
+ /**
602
+ * @see {@link ListInterfaceRelationshipsCommand}
603
+ */
604
+ listInterfaceRelationships(args: ListInterfaceRelationshipsCommandInput, options?: __HttpHandlerOptions): Promise<ListInterfaceRelationshipsCommandOutput>;
605
+ listInterfaceRelationships(args: ListInterfaceRelationshipsCommandInput, cb: (err: any, data?: ListInterfaceRelationshipsCommandOutput) => void): void;
606
+ listInterfaceRelationships(args: ListInterfaceRelationshipsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInterfaceRelationshipsCommandOutput) => void): void;
585
607
  /**
586
608
  * @see {@link ListPortalsCommand}
587
609
  */
@@ -614,6 +636,12 @@ export interface IoTSiteWise {
614
636
  listTimeSeries(args: ListTimeSeriesCommandInput, options?: __HttpHandlerOptions): Promise<ListTimeSeriesCommandOutput>;
615
637
  listTimeSeries(args: ListTimeSeriesCommandInput, cb: (err: any, data?: ListTimeSeriesCommandOutput) => void): void;
616
638
  listTimeSeries(args: ListTimeSeriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTimeSeriesCommandOutput) => void): void;
639
+ /**
640
+ * @see {@link PutAssetModelInterfaceRelationshipCommand}
641
+ */
642
+ putAssetModelInterfaceRelationship(args: PutAssetModelInterfaceRelationshipCommandInput, options?: __HttpHandlerOptions): Promise<PutAssetModelInterfaceRelationshipCommandOutput>;
643
+ putAssetModelInterfaceRelationship(args: PutAssetModelInterfaceRelationshipCommandInput, cb: (err: any, data?: PutAssetModelInterfaceRelationshipCommandOutput) => void): void;
644
+ putAssetModelInterfaceRelationship(args: PutAssetModelInterfaceRelationshipCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAssetModelInterfaceRelationshipCommandOutput) => void): void;
617
645
  /**
618
646
  * @see {@link PutDefaultEncryptionConfigurationCommand}
619
647
  */