@aws-sdk/client-iottwinmaker 3.454.0 → 3.458.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.
- package/README.md +83 -36
- package/dist-cjs/IoTTwinMaker.js +12 -0
- package/dist-cjs/commands/CancelMetadataTransferJobCommand.js +51 -0
- package/dist-cjs/commands/CreateMetadataTransferJobCommand.js +51 -0
- package/dist-cjs/commands/GetMetadataTransferJobCommand.js +51 -0
- package/dist-cjs/commands/ListComponentsCommand.js +51 -0
- package/dist-cjs/commands/ListMetadataTransferJobsCommand.js +51 -0
- package/dist-cjs/commands/ListPropertiesCommand.js +51 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +60 -8
- package/dist-cjs/pagination/ListComponentsPaginator.js +29 -0
- package/dist-cjs/pagination/ListMetadataTransferJobsPaginator.js +29 -0
- package/dist-cjs/pagination/ListPropertiesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +570 -3
- package/dist-es/IoTTwinMaker.js +12 -0
- package/dist-es/commands/CancelMetadataTransferJobCommand.js +47 -0
- package/dist-es/commands/CreateMetadataTransferJobCommand.js +47 -0
- package/dist-es/commands/GetMetadataTransferJobCommand.js +47 -0
- package/dist-es/commands/ListComponentsCommand.js +47 -0
- package/dist-es/commands/ListMetadataTransferJobsCommand.js +47 -0
- package/dist-es/commands/ListPropertiesCommand.js +47 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +59 -7
- package/dist-es/pagination/ListComponentsPaginator.js +25 -0
- package/dist-es/pagination/ListMetadataTransferJobsPaginator.js +25 -0
- package/dist-es/pagination/ListPropertiesPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +556 -1
- package/dist-types/IoTTwinMaker.d.ts +43 -2
- package/dist-types/IoTTwinMakerClient.d.ts +9 -4
- package/dist-types/commands/BatchPutPropertyValuesCommand.d.ts +2 -0
- package/dist-types/commands/CancelMetadataTransferJobCommand.d.ts +107 -0
- package/dist-types/commands/CreateComponentTypeCommand.d.ts +5 -0
- package/dist-types/commands/CreateEntityCommand.d.ts +32 -0
- package/dist-types/commands/CreateMetadataTransferJobCommand.d.ts +153 -0
- package/dist-types/commands/CreateWorkspaceCommand.d.ts +2 -2
- package/dist-types/commands/DeleteWorkspaceCommand.d.ts +3 -1
- package/dist-types/commands/ExecuteQueryCommand.d.ts +4 -0
- package/dist-types/commands/GetComponentTypeCommand.d.ts +6 -0
- package/dist-types/commands/GetEntityCommand.d.ts +24 -0
- package/dist-types/commands/GetMetadataTransferJobCommand.d.ts +156 -0
- package/dist-types/commands/GetPropertyValueCommand.d.ts +2 -0
- package/dist-types/commands/GetPropertyValueHistoryCommand.d.ts +2 -0
- package/dist-types/commands/GetWorkspaceCommand.d.ts +5 -2
- package/dist-types/commands/ListComponentsCommand.d.ts +118 -0
- package/dist-types/commands/ListMetadataTransferJobsCommand.d.ts +116 -0
- package/dist-types/commands/ListPropertiesCommand.d.ts +167 -0
- package/dist-types/commands/ListWorkspacesCommand.d.ts +3 -0
- package/dist-types/commands/UpdateComponentTypeCommand.d.ts +5 -0
- package/dist-types/commands/UpdateEntityCommand.d.ts +33 -0
- package/dist-types/commands/UpdateWorkspaceCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/index.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +1118 -143
- package/dist-types/pagination/ListComponentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListMetadataTransferJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPropertiesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/ts3.4/IoTTwinMaker.d.ts +102 -0
- package/dist-types/ts3.4/IoTTwinMakerClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/CancelMetadataTransferJobCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateMetadataTransferJobCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetMetadataTransferJobCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListMetadataTransferJobsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListPropertiesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +329 -24
- package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMetadataTransferJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPropertiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateWorkspaceCommand = exports.de_UpdateSceneCommand = exports.de_UpdatePricingPlanCommand = exports.de_UpdateEntityCommand = exports.de_UpdateComponentTypeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkspacesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSyncResourcesCommand = exports.de_ListSyncJobsCommand = exports.de_ListScenesCommand = exports.de_ListEntitiesCommand = exports.de_ListComponentTypesCommand = exports.de_GetWorkspaceCommand = exports.de_GetSyncJobCommand = exports.de_GetSceneCommand = exports.de_GetPropertyValueHistoryCommand = void 0;
|
|
3
|
+
exports.de_DeleteEntityCommand = exports.de_DeleteComponentTypeCommand = exports.de_CreateWorkspaceCommand = exports.de_CreateSyncJobCommand = exports.de_CreateSceneCommand = exports.de_CreateMetadataTransferJobCommand = exports.de_CreateEntityCommand = exports.de_CreateComponentTypeCommand = exports.de_CancelMetadataTransferJobCommand = exports.de_BatchPutPropertyValuesCommand = exports.se_UpdateWorkspaceCommand = exports.se_UpdateSceneCommand = exports.se_UpdatePricingPlanCommand = exports.se_UpdateEntityCommand = exports.se_UpdateComponentTypeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListWorkspacesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSyncResourcesCommand = exports.se_ListSyncJobsCommand = exports.se_ListScenesCommand = exports.se_ListPropertiesCommand = exports.se_ListMetadataTransferJobsCommand = exports.se_ListEntitiesCommand = exports.se_ListComponentTypesCommand = exports.se_ListComponentsCommand = exports.se_GetWorkspaceCommand = exports.se_GetSyncJobCommand = exports.se_GetSceneCommand = exports.se_GetPropertyValueHistoryCommand = exports.se_GetPropertyValueCommand = exports.se_GetPricingPlanCommand = exports.se_GetMetadataTransferJobCommand = exports.se_GetEntityCommand = exports.se_GetComponentTypeCommand = exports.se_ExecuteQueryCommand = exports.se_DeleteWorkspaceCommand = exports.se_DeleteSyncJobCommand = exports.se_DeleteSceneCommand = exports.se_DeleteEntityCommand = exports.se_DeleteComponentTypeCommand = exports.se_CreateWorkspaceCommand = exports.se_CreateSyncJobCommand = exports.se_CreateSceneCommand = exports.se_CreateMetadataTransferJobCommand = exports.se_CreateEntityCommand = exports.se_CreateComponentTypeCommand = exports.se_CancelMetadataTransferJobCommand = exports.se_BatchPutPropertyValuesCommand = void 0;
|
|
4
|
+
exports.de_UpdateWorkspaceCommand = exports.de_UpdateSceneCommand = exports.de_UpdatePricingPlanCommand = exports.de_UpdateEntityCommand = exports.de_UpdateComponentTypeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkspacesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSyncResourcesCommand = exports.de_ListSyncJobsCommand = exports.de_ListScenesCommand = exports.de_ListPropertiesCommand = exports.de_ListMetadataTransferJobsCommand = exports.de_ListEntitiesCommand = exports.de_ListComponentTypesCommand = exports.de_ListComponentsCommand = exports.de_GetWorkspaceCommand = exports.de_GetSyncJobCommand = exports.de_GetSceneCommand = exports.de_GetPropertyValueHistoryCommand = exports.de_GetPropertyValueCommand = exports.de_GetPricingPlanCommand = exports.de_GetMetadataTransferJobCommand = exports.de_GetEntityCommand = exports.de_GetComponentTypeCommand = exports.de_ExecuteQueryCommand = exports.de_DeleteWorkspaceCommand = exports.de_DeleteSyncJobCommand = exports.de_DeleteSceneCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const IoTTwinMakerServiceException_1 = require("../models/IoTTwinMakerServiceException");
|
|
@@ -36,6 +36,31 @@ const se_BatchPutPropertyValuesCommand = async (input, context) => {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
exports.se_BatchPutPropertyValuesCommand = se_BatchPutPropertyValuesCommand;
|
|
39
|
+
const se_CancelMetadataTransferJobCommand = async (input, context) => {
|
|
40
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
|
+
const headers = {};
|
|
42
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
43
|
+
"/metadata-transfer-jobs/{metadataTransferJobId}/cancel";
|
|
44
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
|
|
45
|
+
let body;
|
|
46
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
47
|
+
if (context.disableHostPrefix !== true) {
|
|
48
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
49
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
50
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return new protocol_http_1.HttpRequest({
|
|
54
|
+
protocol,
|
|
55
|
+
hostname: resolvedHostname,
|
|
56
|
+
port,
|
|
57
|
+
method: "PUT",
|
|
58
|
+
headers,
|
|
59
|
+
path: resolvedPath,
|
|
60
|
+
body,
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
exports.se_CancelMetadataTransferJobCommand = se_CancelMetadataTransferJobCommand;
|
|
39
64
|
const se_CreateComponentTypeCommand = async (input, context) => {
|
|
40
65
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
66
|
const headers = {
|
|
@@ -48,6 +73,7 @@ const se_CreateComponentTypeCommand = async (input, context) => {
|
|
|
48
73
|
let body;
|
|
49
74
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
50
75
|
componentTypeName: [],
|
|
76
|
+
compositeComponentTypes: (_) => (0, smithy_client_1._json)(_),
|
|
51
77
|
description: [],
|
|
52
78
|
extendsFrom: (_) => (0, smithy_client_1._json)(_),
|
|
53
79
|
functions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -84,6 +110,7 @@ const se_CreateEntityCommand = async (input, context) => {
|
|
|
84
110
|
let body;
|
|
85
111
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
86
112
|
components: (_) => se_ComponentsMapRequest(_, context),
|
|
113
|
+
compositeComponents: (_) => se_CompositeComponentsMapRequest(_, context),
|
|
87
114
|
description: [],
|
|
88
115
|
entityId: [],
|
|
89
116
|
entityName: [],
|
|
@@ -108,6 +135,37 @@ const se_CreateEntityCommand = async (input, context) => {
|
|
|
108
135
|
});
|
|
109
136
|
};
|
|
110
137
|
exports.se_CreateEntityCommand = se_CreateEntityCommand;
|
|
138
|
+
const se_CreateMetadataTransferJobCommand = async (input, context) => {
|
|
139
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
|
+
const headers = {
|
|
141
|
+
"content-type": "application/json",
|
|
142
|
+
};
|
|
143
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata-transfer-jobs";
|
|
144
|
+
let body;
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
146
|
+
description: [],
|
|
147
|
+
destination: (_) => (0, smithy_client_1._json)(_),
|
|
148
|
+
metadataTransferJobId: [],
|
|
149
|
+
sources: (_) => (0, smithy_client_1._json)(_),
|
|
150
|
+
}));
|
|
151
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
152
|
+
if (context.disableHostPrefix !== true) {
|
|
153
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
154
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
155
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return new protocol_http_1.HttpRequest({
|
|
159
|
+
protocol,
|
|
160
|
+
hostname: resolvedHostname,
|
|
161
|
+
port,
|
|
162
|
+
method: "POST",
|
|
163
|
+
headers,
|
|
164
|
+
path: resolvedPath,
|
|
165
|
+
body,
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
exports.se_CreateMetadataTransferJobCommand = se_CreateMetadataTransferJobCommand;
|
|
111
169
|
const se_CreateSceneCommand = async (input, context) => {
|
|
112
170
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
113
171
|
const headers = {
|
|
@@ -421,6 +479,31 @@ const se_GetEntityCommand = async (input, context) => {
|
|
|
421
479
|
});
|
|
422
480
|
};
|
|
423
481
|
exports.se_GetEntityCommand = se_GetEntityCommand;
|
|
482
|
+
const se_GetMetadataTransferJobCommand = async (input, context) => {
|
|
483
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
484
|
+
const headers = {};
|
|
485
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
486
|
+
"/metadata-transfer-jobs/{metadataTransferJobId}";
|
|
487
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
|
|
488
|
+
let body;
|
|
489
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
490
|
+
if (context.disableHostPrefix !== true) {
|
|
491
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
492
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
493
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
return new protocol_http_1.HttpRequest({
|
|
497
|
+
protocol,
|
|
498
|
+
hostname: resolvedHostname,
|
|
499
|
+
port,
|
|
500
|
+
method: "GET",
|
|
501
|
+
headers,
|
|
502
|
+
path: resolvedPath,
|
|
503
|
+
body,
|
|
504
|
+
});
|
|
505
|
+
};
|
|
506
|
+
exports.se_GetMetadataTransferJobCommand = se_GetMetadataTransferJobCommand;
|
|
424
507
|
const se_GetPricingPlanCommand = async (input, context) => {
|
|
425
508
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
426
509
|
const headers = {
|
|
@@ -458,6 +541,7 @@ const se_GetPropertyValueCommand = async (input, context) => {
|
|
|
458
541
|
let body;
|
|
459
542
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
460
543
|
componentName: [],
|
|
544
|
+
componentPath: [],
|
|
461
545
|
componentTypeId: [],
|
|
462
546
|
entityId: [],
|
|
463
547
|
maxResults: [],
|
|
@@ -495,6 +579,7 @@ const se_GetPropertyValueHistoryCommand = async (input, context) => {
|
|
|
495
579
|
let body;
|
|
496
580
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
497
581
|
componentName: [],
|
|
582
|
+
componentPath: [],
|
|
498
583
|
componentTypeId: [],
|
|
499
584
|
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
500
585
|
endTime: [],
|
|
@@ -604,6 +689,39 @@ const se_GetWorkspaceCommand = async (input, context) => {
|
|
|
604
689
|
});
|
|
605
690
|
};
|
|
606
691
|
exports.se_GetWorkspaceCommand = se_GetWorkspaceCommand;
|
|
692
|
+
const se_ListComponentsCommand = async (input, context) => {
|
|
693
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
694
|
+
const headers = {
|
|
695
|
+
"content-type": "application/json",
|
|
696
|
+
};
|
|
697
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
698
|
+
"/workspaces/{workspaceId}/entities/{entityId}/components-list";
|
|
699
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
700
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "entityId", () => input.entityId, "{entityId}", false);
|
|
701
|
+
let body;
|
|
702
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
703
|
+
componentPath: [],
|
|
704
|
+
maxResults: [],
|
|
705
|
+
nextToken: [],
|
|
706
|
+
}));
|
|
707
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
708
|
+
if (context.disableHostPrefix !== true) {
|
|
709
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
710
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
711
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
return new protocol_http_1.HttpRequest({
|
|
715
|
+
protocol,
|
|
716
|
+
hostname: resolvedHostname,
|
|
717
|
+
port,
|
|
718
|
+
method: "POST",
|
|
719
|
+
headers,
|
|
720
|
+
path: resolvedPath,
|
|
721
|
+
body,
|
|
722
|
+
});
|
|
723
|
+
};
|
|
724
|
+
exports.se_ListComponentsCommand = se_ListComponentsCommand;
|
|
607
725
|
const se_ListComponentTypesCommand = async (input, context) => {
|
|
608
726
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
727
|
const headers = {
|
|
@@ -667,6 +785,71 @@ const se_ListEntitiesCommand = async (input, context) => {
|
|
|
667
785
|
});
|
|
668
786
|
};
|
|
669
787
|
exports.se_ListEntitiesCommand = se_ListEntitiesCommand;
|
|
788
|
+
const se_ListMetadataTransferJobsCommand = async (input, context) => {
|
|
789
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
790
|
+
const headers = {
|
|
791
|
+
"content-type": "application/json",
|
|
792
|
+
};
|
|
793
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata-transfer-jobs-list";
|
|
794
|
+
let body;
|
|
795
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
796
|
+
destinationType: [],
|
|
797
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
798
|
+
maxResults: [],
|
|
799
|
+
nextToken: [],
|
|
800
|
+
sourceType: [],
|
|
801
|
+
}));
|
|
802
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
803
|
+
if (context.disableHostPrefix !== true) {
|
|
804
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
805
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
806
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
return new protocol_http_1.HttpRequest({
|
|
810
|
+
protocol,
|
|
811
|
+
hostname: resolvedHostname,
|
|
812
|
+
port,
|
|
813
|
+
method: "POST",
|
|
814
|
+
headers,
|
|
815
|
+
path: resolvedPath,
|
|
816
|
+
body,
|
|
817
|
+
});
|
|
818
|
+
};
|
|
819
|
+
exports.se_ListMetadataTransferJobsCommand = se_ListMetadataTransferJobsCommand;
|
|
820
|
+
const se_ListPropertiesCommand = async (input, context) => {
|
|
821
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
822
|
+
const headers = {
|
|
823
|
+
"content-type": "application/json",
|
|
824
|
+
};
|
|
825
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/properties-list";
|
|
826
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
827
|
+
let body;
|
|
828
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
829
|
+
componentName: [],
|
|
830
|
+
componentPath: [],
|
|
831
|
+
entityId: [],
|
|
832
|
+
maxResults: [],
|
|
833
|
+
nextToken: [],
|
|
834
|
+
}));
|
|
835
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
836
|
+
if (context.disableHostPrefix !== true) {
|
|
837
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
838
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
839
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
return new protocol_http_1.HttpRequest({
|
|
843
|
+
protocol,
|
|
844
|
+
hostname: resolvedHostname,
|
|
845
|
+
port,
|
|
846
|
+
method: "POST",
|
|
847
|
+
headers,
|
|
848
|
+
path: resolvedPath,
|
|
849
|
+
body,
|
|
850
|
+
});
|
|
851
|
+
};
|
|
852
|
+
exports.se_ListPropertiesCommand = se_ListPropertiesCommand;
|
|
670
853
|
const se_ListScenesCommand = async (input, context) => {
|
|
671
854
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
672
855
|
const headers = {
|
|
@@ -891,6 +1074,7 @@ const se_UpdateComponentTypeCommand = async (input, context) => {
|
|
|
891
1074
|
let body;
|
|
892
1075
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
893
1076
|
componentTypeName: [],
|
|
1077
|
+
compositeComponentTypes: (_) => (0, smithy_client_1._json)(_),
|
|
894
1078
|
description: [],
|
|
895
1079
|
extendsFrom: (_) => (0, smithy_client_1._json)(_),
|
|
896
1080
|
functions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -928,6 +1112,7 @@ const se_UpdateEntityCommand = async (input, context) => {
|
|
|
928
1112
|
let body;
|
|
929
1113
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
930
1114
|
componentUpdates: (_) => se_ComponentUpdatesMapRequest(_, context),
|
|
1115
|
+
compositeComponentUpdates: (_) => se_CompositeComponentUpdatesMapRequest(_, context),
|
|
931
1116
|
description: [],
|
|
932
1117
|
entityName: [],
|
|
933
1118
|
parentEntityUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1024,6 +1209,7 @@ const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
|
1024
1209
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1025
1210
|
description: [],
|
|
1026
1211
|
role: [],
|
|
1212
|
+
s3Location: [],
|
|
1027
1213
|
}));
|
|
1028
1214
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1029
1215
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1086,6 +1272,59 @@ const de_BatchPutPropertyValuesCommandError = async (output, context) => {
|
|
|
1086
1272
|
});
|
|
1087
1273
|
}
|
|
1088
1274
|
};
|
|
1275
|
+
const de_CancelMetadataTransferJobCommand = async (output, context) => {
|
|
1276
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1277
|
+
return de_CancelMetadataTransferJobCommandError(output, context);
|
|
1278
|
+
}
|
|
1279
|
+
const contents = (0, smithy_client_1.map)({
|
|
1280
|
+
$metadata: deserializeMetadata(output),
|
|
1281
|
+
});
|
|
1282
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1283
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1284
|
+
arn: smithy_client_1.expectString,
|
|
1285
|
+
metadataTransferJobId: smithy_client_1.expectString,
|
|
1286
|
+
progress: smithy_client_1._json,
|
|
1287
|
+
status: smithy_client_1._json,
|
|
1288
|
+
updateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1289
|
+
});
|
|
1290
|
+
Object.assign(contents, doc);
|
|
1291
|
+
return contents;
|
|
1292
|
+
};
|
|
1293
|
+
exports.de_CancelMetadataTransferJobCommand = de_CancelMetadataTransferJobCommand;
|
|
1294
|
+
const de_CancelMetadataTransferJobCommandError = async (output, context) => {
|
|
1295
|
+
const parsedOutput = {
|
|
1296
|
+
...output,
|
|
1297
|
+
body: await parseErrorBody(output.body, context),
|
|
1298
|
+
};
|
|
1299
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
|
+
switch (errorCode) {
|
|
1301
|
+
case "AccessDeniedException":
|
|
1302
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1303
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1304
|
+
case "ConflictException":
|
|
1305
|
+
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1306
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1307
|
+
case "InternalServerException":
|
|
1308
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1309
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1310
|
+
case "ResourceNotFoundException":
|
|
1311
|
+
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1312
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1313
|
+
case "ThrottlingException":
|
|
1314
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1315
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1316
|
+
case "ValidationException":
|
|
1317
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1318
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1319
|
+
default:
|
|
1320
|
+
const parsedBody = parsedOutput.body;
|
|
1321
|
+
return throwDefaultError({
|
|
1322
|
+
output,
|
|
1323
|
+
parsedBody,
|
|
1324
|
+
errorCode,
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
};
|
|
1089
1328
|
const de_CreateComponentTypeCommand = async (output, context) => {
|
|
1090
1329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1091
1330
|
return de_CreateComponentTypeCommandError(output, context);
|
|
@@ -1189,6 +1428,61 @@ const de_CreateEntityCommandError = async (output, context) => {
|
|
|
1189
1428
|
});
|
|
1190
1429
|
}
|
|
1191
1430
|
};
|
|
1431
|
+
const de_CreateMetadataTransferJobCommand = async (output, context) => {
|
|
1432
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1433
|
+
return de_CreateMetadataTransferJobCommandError(output, context);
|
|
1434
|
+
}
|
|
1435
|
+
const contents = (0, smithy_client_1.map)({
|
|
1436
|
+
$metadata: deserializeMetadata(output),
|
|
1437
|
+
});
|
|
1438
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1439
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1440
|
+
arn: smithy_client_1.expectString,
|
|
1441
|
+
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1442
|
+
metadataTransferJobId: smithy_client_1.expectString,
|
|
1443
|
+
status: smithy_client_1._json,
|
|
1444
|
+
});
|
|
1445
|
+
Object.assign(contents, doc);
|
|
1446
|
+
return contents;
|
|
1447
|
+
};
|
|
1448
|
+
exports.de_CreateMetadataTransferJobCommand = de_CreateMetadataTransferJobCommand;
|
|
1449
|
+
const de_CreateMetadataTransferJobCommandError = async (output, context) => {
|
|
1450
|
+
const parsedOutput = {
|
|
1451
|
+
...output,
|
|
1452
|
+
body: await parseErrorBody(output.body, context),
|
|
1453
|
+
};
|
|
1454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
+
switch (errorCode) {
|
|
1456
|
+
case "AccessDeniedException":
|
|
1457
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1458
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1459
|
+
case "ConflictException":
|
|
1460
|
+
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1461
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1462
|
+
case "InternalServerException":
|
|
1463
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1464
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1465
|
+
case "ResourceNotFoundException":
|
|
1466
|
+
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1467
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1468
|
+
case "ServiceQuotaExceededException":
|
|
1469
|
+
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1470
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1471
|
+
case "ThrottlingException":
|
|
1472
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1473
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1474
|
+
case "ValidationException":
|
|
1475
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1476
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1477
|
+
default:
|
|
1478
|
+
const parsedBody = parsedOutput.body;
|
|
1479
|
+
return throwDefaultError({
|
|
1480
|
+
output,
|
|
1481
|
+
parsedBody,
|
|
1482
|
+
errorCode,
|
|
1483
|
+
});
|
|
1484
|
+
}
|
|
1485
|
+
};
|
|
1192
1486
|
const de_CreateSceneCommand = async (output, context) => {
|
|
1193
1487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
1488
|
return de_CreateSceneCommandError(output, context);
|
|
@@ -1530,7 +1824,11 @@ const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
|
1530
1824
|
const contents = (0, smithy_client_1.map)({
|
|
1531
1825
|
$metadata: deserializeMetadata(output),
|
|
1532
1826
|
});
|
|
1533
|
-
|
|
1827
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1828
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1829
|
+
message: smithy_client_1.expectString,
|
|
1830
|
+
});
|
|
1831
|
+
Object.assign(contents, doc);
|
|
1534
1832
|
return contents;
|
|
1535
1833
|
};
|
|
1536
1834
|
exports.de_DeleteWorkspaceCommand = de_DeleteWorkspaceCommand;
|
|
@@ -1628,6 +1926,7 @@ const de_GetComponentTypeCommand = async (output, context) => {
|
|
|
1628
1926
|
arn: smithy_client_1.expectString,
|
|
1629
1927
|
componentTypeId: smithy_client_1.expectString,
|
|
1630
1928
|
componentTypeName: smithy_client_1.expectString,
|
|
1929
|
+
compositeComponentTypes: smithy_client_1._json,
|
|
1631
1930
|
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1632
1931
|
description: smithy_client_1.expectString,
|
|
1633
1932
|
extendsFrom: smithy_client_1._json,
|
|
@@ -1686,6 +1985,7 @@ const de_GetEntityCommand = async (output, context) => {
|
|
|
1686
1985
|
});
|
|
1687
1986
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1688
1987
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1988
|
+
areAllComponentsReturned: smithy_client_1.expectBoolean,
|
|
1689
1989
|
arn: smithy_client_1.expectString,
|
|
1690
1990
|
components: (_) => de_ComponentsMap(_, context),
|
|
1691
1991
|
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -1734,6 +2034,62 @@ const de_GetEntityCommandError = async (output, context) => {
|
|
|
1734
2034
|
});
|
|
1735
2035
|
}
|
|
1736
2036
|
};
|
|
2037
|
+
const de_GetMetadataTransferJobCommand = async (output, context) => {
|
|
2038
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2039
|
+
return de_GetMetadataTransferJobCommandError(output, context);
|
|
2040
|
+
}
|
|
2041
|
+
const contents = (0, smithy_client_1.map)({
|
|
2042
|
+
$metadata: deserializeMetadata(output),
|
|
2043
|
+
});
|
|
2044
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2045
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2046
|
+
arn: smithy_client_1.expectString,
|
|
2047
|
+
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2048
|
+
description: smithy_client_1.expectString,
|
|
2049
|
+
destination: smithy_client_1._json,
|
|
2050
|
+
metadataTransferJobId: smithy_client_1.expectString,
|
|
2051
|
+
metadataTransferJobRole: smithy_client_1.expectString,
|
|
2052
|
+
progress: smithy_client_1._json,
|
|
2053
|
+
reportUrl: smithy_client_1.expectString,
|
|
2054
|
+
sources: smithy_client_1._json,
|
|
2055
|
+
status: smithy_client_1._json,
|
|
2056
|
+
updateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2057
|
+
});
|
|
2058
|
+
Object.assign(contents, doc);
|
|
2059
|
+
return contents;
|
|
2060
|
+
};
|
|
2061
|
+
exports.de_GetMetadataTransferJobCommand = de_GetMetadataTransferJobCommand;
|
|
2062
|
+
const de_GetMetadataTransferJobCommandError = async (output, context) => {
|
|
2063
|
+
const parsedOutput = {
|
|
2064
|
+
...output,
|
|
2065
|
+
body: await parseErrorBody(output.body, context),
|
|
2066
|
+
};
|
|
2067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
|
+
switch (errorCode) {
|
|
2069
|
+
case "AccessDeniedException":
|
|
2070
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2071
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2072
|
+
case "InternalServerException":
|
|
2073
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2074
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2075
|
+
case "ResourceNotFoundException":
|
|
2076
|
+
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2077
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2078
|
+
case "ThrottlingException":
|
|
2079
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2080
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2081
|
+
case "ValidationException":
|
|
2082
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2083
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2084
|
+
default:
|
|
2085
|
+
const parsedBody = parsedOutput.body;
|
|
2086
|
+
return throwDefaultError({
|
|
2087
|
+
output,
|
|
2088
|
+
parsedBody,
|
|
2089
|
+
errorCode,
|
|
2090
|
+
});
|
|
2091
|
+
}
|
|
2092
|
+
};
|
|
1737
2093
|
const de_GetPricingPlanCommand = async (output, context) => {
|
|
1738
2094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1739
2095
|
return de_GetPricingPlanCommandError(output, context);
|
|
@@ -2008,6 +2364,7 @@ const de_GetWorkspaceCommand = async (output, context) => {
|
|
|
2008
2364
|
arn: smithy_client_1.expectString,
|
|
2009
2365
|
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2010
2366
|
description: smithy_client_1.expectString,
|
|
2367
|
+
linkedServices: smithy_client_1._json,
|
|
2011
2368
|
role: smithy_client_1.expectString,
|
|
2012
2369
|
s3Location: smithy_client_1.expectString,
|
|
2013
2370
|
updateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -2048,6 +2405,53 @@ const de_GetWorkspaceCommandError = async (output, context) => {
|
|
|
2048
2405
|
});
|
|
2049
2406
|
}
|
|
2050
2407
|
};
|
|
2408
|
+
const de_ListComponentsCommand = async (output, context) => {
|
|
2409
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2410
|
+
return de_ListComponentsCommandError(output, context);
|
|
2411
|
+
}
|
|
2412
|
+
const contents = (0, smithy_client_1.map)({
|
|
2413
|
+
$metadata: deserializeMetadata(output),
|
|
2414
|
+
});
|
|
2415
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2416
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2417
|
+
componentSummaries: smithy_client_1._json,
|
|
2418
|
+
nextToken: smithy_client_1.expectString,
|
|
2419
|
+
});
|
|
2420
|
+
Object.assign(contents, doc);
|
|
2421
|
+
return contents;
|
|
2422
|
+
};
|
|
2423
|
+
exports.de_ListComponentsCommand = de_ListComponentsCommand;
|
|
2424
|
+
const de_ListComponentsCommandError = async (output, context) => {
|
|
2425
|
+
const parsedOutput = {
|
|
2426
|
+
...output,
|
|
2427
|
+
body: await parseErrorBody(output.body, context),
|
|
2428
|
+
};
|
|
2429
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2430
|
+
switch (errorCode) {
|
|
2431
|
+
case "AccessDeniedException":
|
|
2432
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2433
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2434
|
+
case "InternalServerException":
|
|
2435
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2436
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2437
|
+
case "ResourceNotFoundException":
|
|
2438
|
+
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2439
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2440
|
+
case "ThrottlingException":
|
|
2441
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2442
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2443
|
+
case "ValidationException":
|
|
2444
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2445
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2446
|
+
default:
|
|
2447
|
+
const parsedBody = parsedOutput.body;
|
|
2448
|
+
return throwDefaultError({
|
|
2449
|
+
output,
|
|
2450
|
+
parsedBody,
|
|
2451
|
+
errorCode,
|
|
2452
|
+
});
|
|
2453
|
+
}
|
|
2454
|
+
};
|
|
2051
2455
|
const de_ListComponentTypesCommand = async (output, context) => {
|
|
2052
2456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2053
2457
|
return de_ListComponentTypesCommandError(output, context);
|
|
@@ -2138,6 +2542,97 @@ const de_ListEntitiesCommandError = async (output, context) => {
|
|
|
2138
2542
|
});
|
|
2139
2543
|
}
|
|
2140
2544
|
};
|
|
2545
|
+
const de_ListMetadataTransferJobsCommand = async (output, context) => {
|
|
2546
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2547
|
+
return de_ListMetadataTransferJobsCommandError(output, context);
|
|
2548
|
+
}
|
|
2549
|
+
const contents = (0, smithy_client_1.map)({
|
|
2550
|
+
$metadata: deserializeMetadata(output),
|
|
2551
|
+
});
|
|
2552
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2553
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2554
|
+
metadataTransferJobSummaries: (_) => de_MetadataTransferJobSummaries(_, context),
|
|
2555
|
+
nextToken: smithy_client_1.expectString,
|
|
2556
|
+
});
|
|
2557
|
+
Object.assign(contents, doc);
|
|
2558
|
+
return contents;
|
|
2559
|
+
};
|
|
2560
|
+
exports.de_ListMetadataTransferJobsCommand = de_ListMetadataTransferJobsCommand;
|
|
2561
|
+
const de_ListMetadataTransferJobsCommandError = async (output, context) => {
|
|
2562
|
+
const parsedOutput = {
|
|
2563
|
+
...output,
|
|
2564
|
+
body: await parseErrorBody(output.body, context),
|
|
2565
|
+
};
|
|
2566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
|
+
switch (errorCode) {
|
|
2568
|
+
case "AccessDeniedException":
|
|
2569
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2570
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2571
|
+
case "InternalServerException":
|
|
2572
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2573
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2574
|
+
case "ThrottlingException":
|
|
2575
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2576
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2577
|
+
case "ValidationException":
|
|
2578
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2579
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2580
|
+
default:
|
|
2581
|
+
const parsedBody = parsedOutput.body;
|
|
2582
|
+
return throwDefaultError({
|
|
2583
|
+
output,
|
|
2584
|
+
parsedBody,
|
|
2585
|
+
errorCode,
|
|
2586
|
+
});
|
|
2587
|
+
}
|
|
2588
|
+
};
|
|
2589
|
+
const de_ListPropertiesCommand = async (output, context) => {
|
|
2590
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2591
|
+
return de_ListPropertiesCommandError(output, context);
|
|
2592
|
+
}
|
|
2593
|
+
const contents = (0, smithy_client_1.map)({
|
|
2594
|
+
$metadata: deserializeMetadata(output),
|
|
2595
|
+
});
|
|
2596
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2597
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2598
|
+
nextToken: smithy_client_1.expectString,
|
|
2599
|
+
propertySummaries: (_) => de_PropertySummaries(_, context),
|
|
2600
|
+
});
|
|
2601
|
+
Object.assign(contents, doc);
|
|
2602
|
+
return contents;
|
|
2603
|
+
};
|
|
2604
|
+
exports.de_ListPropertiesCommand = de_ListPropertiesCommand;
|
|
2605
|
+
const de_ListPropertiesCommandError = async (output, context) => {
|
|
2606
|
+
const parsedOutput = {
|
|
2607
|
+
...output,
|
|
2608
|
+
body: await parseErrorBody(output.body, context),
|
|
2609
|
+
};
|
|
2610
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2611
|
+
switch (errorCode) {
|
|
2612
|
+
case "AccessDeniedException":
|
|
2613
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2614
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2615
|
+
case "InternalServerException":
|
|
2616
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2617
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2618
|
+
case "ResourceNotFoundException":
|
|
2619
|
+
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2620
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2621
|
+
case "ThrottlingException":
|
|
2622
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2623
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2624
|
+
case "ValidationException":
|
|
2625
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2626
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2627
|
+
default:
|
|
2628
|
+
const parsedBody = parsedOutput.body;
|
|
2629
|
+
return throwDefaultError({
|
|
2630
|
+
output,
|
|
2631
|
+
parsedBody,
|
|
2632
|
+
errorCode,
|
|
2633
|
+
});
|
|
2634
|
+
}
|
|
2635
|
+
};
|
|
2141
2636
|
const de_ListScenesCommand = async (output, context) => {
|
|
2142
2637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2143
2638
|
return de_ListScenesCommandError(output, context);
|
|
@@ -2850,6 +3345,39 @@ const se_ComponentUpdatesMapRequest = (input, context) => {
|
|
|
2850
3345
|
return acc;
|
|
2851
3346
|
}, {});
|
|
2852
3347
|
};
|
|
3348
|
+
const se_CompositeComponentRequest = (input, context) => {
|
|
3349
|
+
return (0, smithy_client_1.take)(input, {
|
|
3350
|
+
description: [],
|
|
3351
|
+
properties: (_) => se_PropertyRequests(_, context),
|
|
3352
|
+
propertyGroups: smithy_client_1._json,
|
|
3353
|
+
});
|
|
3354
|
+
};
|
|
3355
|
+
const se_CompositeComponentsMapRequest = (input, context) => {
|
|
3356
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3357
|
+
if (value === null) {
|
|
3358
|
+
return acc;
|
|
3359
|
+
}
|
|
3360
|
+
acc[key] = se_CompositeComponentRequest(value, context);
|
|
3361
|
+
return acc;
|
|
3362
|
+
}, {});
|
|
3363
|
+
};
|
|
3364
|
+
const se_CompositeComponentUpdateRequest = (input, context) => {
|
|
3365
|
+
return (0, smithy_client_1.take)(input, {
|
|
3366
|
+
description: [],
|
|
3367
|
+
propertyGroupUpdates: smithy_client_1._json,
|
|
3368
|
+
propertyUpdates: (_) => se_PropertyRequests(_, context),
|
|
3369
|
+
updateType: [],
|
|
3370
|
+
});
|
|
3371
|
+
};
|
|
3372
|
+
const se_CompositeComponentUpdatesMapRequest = (input, context) => {
|
|
3373
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3374
|
+
if (value === null) {
|
|
3375
|
+
return acc;
|
|
3376
|
+
}
|
|
3377
|
+
acc[key] = se_CompositeComponentUpdateRequest(value, context);
|
|
3378
|
+
return acc;
|
|
3379
|
+
}, {});
|
|
3380
|
+
};
|
|
2853
3381
|
const se_DataType = (input, context) => {
|
|
2854
3382
|
return (0, smithy_client_1.take)(input, {
|
|
2855
3383
|
allowedValues: (_) => se_DataValueList(_, context),
|
|
@@ -2986,8 +3514,11 @@ const de_BatchPutPropertyErrorEntry = (output, context) => {
|
|
|
2986
3514
|
};
|
|
2987
3515
|
const de_ComponentResponse = (output, context) => {
|
|
2988
3516
|
return (0, smithy_client_1.take)(output, {
|
|
3517
|
+
areAllCompositeComponentsReturned: smithy_client_1.expectBoolean,
|
|
3518
|
+
areAllPropertiesReturned: smithy_client_1.expectBoolean,
|
|
2989
3519
|
componentName: smithy_client_1.expectString,
|
|
2990
3520
|
componentTypeId: smithy_client_1.expectString,
|
|
3521
|
+
compositeComponents: smithy_client_1._json,
|
|
2991
3522
|
definedIn: smithy_client_1.expectString,
|
|
2992
3523
|
description: smithy_client_1.expectString,
|
|
2993
3524
|
properties: (_) => de_PropertyResponses(_, context),
|
|
@@ -3100,6 +3631,24 @@ const de_Errors = (output, context) => {
|
|
|
3100
3631
|
});
|
|
3101
3632
|
return retVal;
|
|
3102
3633
|
};
|
|
3634
|
+
const de_MetadataTransferJobSummaries = (output, context) => {
|
|
3635
|
+
const retVal = (output || [])
|
|
3636
|
+
.filter((e) => e != null)
|
|
3637
|
+
.map((entry) => {
|
|
3638
|
+
return de_MetadataTransferJobSummary(entry, context);
|
|
3639
|
+
});
|
|
3640
|
+
return retVal;
|
|
3641
|
+
};
|
|
3642
|
+
const de_MetadataTransferJobSummary = (output, context) => {
|
|
3643
|
+
return (0, smithy_client_1.take)(output, {
|
|
3644
|
+
arn: smithy_client_1.expectString,
|
|
3645
|
+
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3646
|
+
metadataTransferJobId: smithy_client_1.expectString,
|
|
3647
|
+
progress: smithy_client_1._json,
|
|
3648
|
+
status: smithy_client_1._json,
|
|
3649
|
+
updateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3650
|
+
});
|
|
3651
|
+
};
|
|
3103
3652
|
const de_PricingPlan = (output, context) => {
|
|
3104
3653
|
return (0, smithy_client_1.take)(output, {
|
|
3105
3654
|
billableEntityCount: smithy_client_1.expectLong,
|
|
@@ -3151,6 +3700,7 @@ const de_PropertyLatestValueMap = (output, context) => {
|
|
|
3151
3700
|
};
|
|
3152
3701
|
const de_PropertyResponse = (output, context) => {
|
|
3153
3702
|
return (0, smithy_client_1.take)(output, {
|
|
3703
|
+
areAllPropertyValuesReturned: smithy_client_1.expectBoolean,
|
|
3154
3704
|
definition: (_) => de_PropertyDefinitionResponse(_, context),
|
|
3155
3705
|
value: (_) => de_DataValue(_, context),
|
|
3156
3706
|
});
|
|
@@ -3164,6 +3714,22 @@ const de_PropertyResponses = (output, context) => {
|
|
|
3164
3714
|
return acc;
|
|
3165
3715
|
}, {});
|
|
3166
3716
|
};
|
|
3717
|
+
const de_PropertySummaries = (output, context) => {
|
|
3718
|
+
const retVal = (output || [])
|
|
3719
|
+
.filter((e) => e != null)
|
|
3720
|
+
.map((entry) => {
|
|
3721
|
+
return de_PropertySummary(entry, context);
|
|
3722
|
+
});
|
|
3723
|
+
return retVal;
|
|
3724
|
+
};
|
|
3725
|
+
const de_PropertySummary = (output, context) => {
|
|
3726
|
+
return (0, smithy_client_1.take)(output, {
|
|
3727
|
+
areAllPropertyValuesReturned: smithy_client_1.expectBoolean,
|
|
3728
|
+
definition: (_) => de_PropertyDefinitionResponse(_, context),
|
|
3729
|
+
propertyName: smithy_client_1.expectString,
|
|
3730
|
+
value: (_) => de_DataValue(_, context),
|
|
3731
|
+
});
|
|
3732
|
+
};
|
|
3167
3733
|
const de_PropertyTableValue = (output, context) => {
|
|
3168
3734
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3169
3735
|
if (value === null) {
|
|
@@ -3322,6 +3888,7 @@ const de_WorkspaceSummary = (output, context) => {
|
|
|
3322
3888
|
arn: smithy_client_1.expectString,
|
|
3323
3889
|
creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3324
3890
|
description: smithy_client_1.expectString,
|
|
3891
|
+
linkedServices: smithy_client_1._json,
|
|
3325
3892
|
updateDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3326
3893
|
workspaceId: smithy_client_1.expectString,
|
|
3327
3894
|
});
|