@aws-sdk/client-iottwinmaker 3.306.0 → 3.309.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/dist-cjs/commands/BatchPutPropertyValuesCommand.js +2 -2
- package/dist-cjs/commands/CreateComponentTypeCommand.js +2 -2
- package/dist-cjs/commands/CreateEntityCommand.js +2 -2
- package/dist-cjs/commands/CreateSceneCommand.js +2 -2
- package/dist-cjs/commands/CreateSyncJobCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/DeleteComponentTypeCommand.js +2 -2
- package/dist-cjs/commands/DeleteEntityCommand.js +2 -2
- package/dist-cjs/commands/DeleteSceneCommand.js +2 -2
- package/dist-cjs/commands/DeleteSyncJobCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/ExecuteQueryCommand.js +2 -2
- package/dist-cjs/commands/GetComponentTypeCommand.js +2 -2
- package/dist-cjs/commands/GetEntityCommand.js +2 -2
- package/dist-cjs/commands/GetPricingPlanCommand.js +2 -2
- package/dist-cjs/commands/GetPropertyValueCommand.js +2 -2
- package/dist-cjs/commands/GetPropertyValueHistoryCommand.js +2 -2
- package/dist-cjs/commands/GetSceneCommand.js +2 -2
- package/dist-cjs/commands/GetSyncJobCommand.js +2 -2
- package/dist-cjs/commands/GetWorkspaceCommand.js +2 -2
- package/dist-cjs/commands/ListComponentTypesCommand.js +2 -2
- package/dist-cjs/commands/ListEntitiesCommand.js +2 -2
- package/dist-cjs/commands/ListScenesCommand.js +2 -2
- package/dist-cjs/commands/ListSyncJobsCommand.js +2 -2
- package/dist-cjs/commands/ListSyncResourcesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListWorkspacesCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateComponentTypeCommand.js +2 -2
- package/dist-cjs/commands/UpdateEntityCommand.js +2 -2
- package/dist-cjs/commands/UpdatePricingPlanCommand.js +2 -2
- package/dist-cjs/commands/UpdateSceneCommand.js +2 -2
- package/dist-cjs/commands/UpdateWorkspaceCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +675 -729
- package/dist-es/commands/BatchPutPropertyValuesCommand.js +3 -3
- package/dist-es/commands/CreateComponentTypeCommand.js +3 -3
- package/dist-es/commands/CreateEntityCommand.js +3 -3
- package/dist-es/commands/CreateSceneCommand.js +3 -3
- package/dist-es/commands/CreateSyncJobCommand.js +3 -3
- package/dist-es/commands/CreateWorkspaceCommand.js +3 -3
- package/dist-es/commands/DeleteComponentTypeCommand.js +3 -3
- package/dist-es/commands/DeleteEntityCommand.js +3 -3
- package/dist-es/commands/DeleteSceneCommand.js +3 -3
- package/dist-es/commands/DeleteSyncJobCommand.js +3 -3
- package/dist-es/commands/DeleteWorkspaceCommand.js +3 -3
- package/dist-es/commands/ExecuteQueryCommand.js +3 -3
- package/dist-es/commands/GetComponentTypeCommand.js +3 -3
- package/dist-es/commands/GetEntityCommand.js +3 -3
- package/dist-es/commands/GetPricingPlanCommand.js +3 -3
- package/dist-es/commands/GetPropertyValueCommand.js +3 -3
- package/dist-es/commands/GetPropertyValueHistoryCommand.js +3 -3
- package/dist-es/commands/GetSceneCommand.js +3 -3
- package/dist-es/commands/GetSyncJobCommand.js +3 -3
- package/dist-es/commands/GetWorkspaceCommand.js +3 -3
- package/dist-es/commands/ListComponentTypesCommand.js +3 -3
- package/dist-es/commands/ListEntitiesCommand.js +3 -3
- package/dist-es/commands/ListScenesCommand.js +3 -3
- package/dist-es/commands/ListSyncJobsCommand.js +3 -3
- package/dist-es/commands/ListSyncResourcesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListWorkspacesCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateComponentTypeCommand.js +3 -3
- package/dist-es/commands/UpdateEntityCommand.js +3 -3
- package/dist-es/commands/UpdatePricingPlanCommand.js +3 -3
- package/dist-es/commands/UpdateSceneCommand.js +3 -3
- package/dist-es/commands/UpdateWorkspaceCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +605 -659
- package/dist-types/protocols/Aws_restJson1.d.ts +272 -68
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +68 -68
- package/package.json +6 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_GetPropertyValueCommand = exports.de_GetPricingPlanCommand = exports.de_GetEntityCommand = exports.de_GetComponentTypeCommand = exports.de_ExecuteQueryCommand = exports.de_DeleteWorkspaceCommand = exports.de_DeleteSyncJobCommand = exports.de_DeleteSceneCommand = exports.de_DeleteEntityCommand = exports.de_DeleteComponentTypeCommand = exports.de_CreateWorkspaceCommand = exports.de_CreateSyncJobCommand = exports.de_CreateSceneCommand = exports.de_CreateEntityCommand = exports.de_CreateComponentTypeCommand = 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_ListEntitiesCommand = exports.se_ListComponentTypesCommand = exports.se_GetWorkspaceCommand = exports.se_GetSyncJobCommand = exports.se_GetSceneCommand = exports.se_GetPropertyValueHistoryCommand = exports.se_GetPropertyValueCommand = exports.se_GetPricingPlanCommand = 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_CreateEntityCommand = exports.se_CreateComponentTypeCommand = 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_ListEntitiesCommand = exports.de_ListComponentTypesCommand = exports.de_GetWorkspaceCommand = exports.de_GetSyncJobCommand = exports.de_GetSceneCommand = exports.de_GetPropertyValueHistoryCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const IoTTwinMakerServiceException_1 = require("../models/IoTTwinMakerServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_BatchPutPropertyValuesCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -16,7 +16,7 @@ const serializeAws_restJson1BatchPutPropertyValuesCommand = async (input, contex
|
|
|
16
16
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
|
-
...(input.entries != null && { entries:
|
|
19
|
+
...(input.entries != null && { entries: se_Entries(input.entries, context) }),
|
|
20
20
|
});
|
|
21
21
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
22
22
|
if (context.disableHostPrefix !== true) {
|
|
@@ -35,8 +35,8 @@ const serializeAws_restJson1BatchPutPropertyValuesCommand = async (input, contex
|
|
|
35
35
|
body,
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_BatchPutPropertyValuesCommand = se_BatchPutPropertyValuesCommand;
|
|
39
|
+
const se_CreateComponentTypeCommand = async (input, context) => {
|
|
40
40
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
41
|
const headers = {
|
|
42
42
|
"content-type": "application/json",
|
|
@@ -49,16 +49,14 @@ const serializeAws_restJson1CreateComponentTypeCommand = async (input, context)
|
|
|
49
49
|
body = JSON.stringify({
|
|
50
50
|
...(input.componentTypeName != null && { componentTypeName: input.componentTypeName }),
|
|
51
51
|
...(input.description != null && { description: input.description }),
|
|
52
|
-
...(input.extendsFrom != null && { extendsFrom:
|
|
53
|
-
...(input.functions != null && { functions:
|
|
52
|
+
...(input.extendsFrom != null && { extendsFrom: se_ExtendsFrom(input.extendsFrom, context) }),
|
|
53
|
+
...(input.functions != null && { functions: se_FunctionsRequest(input.functions, context) }),
|
|
54
54
|
...(input.isSingleton != null && { isSingleton: input.isSingleton }),
|
|
55
55
|
...(input.propertyDefinitions != null && {
|
|
56
|
-
propertyDefinitions:
|
|
56
|
+
propertyDefinitions: se_PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
57
57
|
}),
|
|
58
|
-
...(input.propertyGroups != null && {
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
58
|
+
...(input.propertyGroups != null && { propertyGroups: se_PropertyGroupsRequest(input.propertyGroups, context) }),
|
|
59
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
62
60
|
});
|
|
63
61
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
64
62
|
if (context.disableHostPrefix !== true) {
|
|
@@ -77,8 +75,8 @@ const serializeAws_restJson1CreateComponentTypeCommand = async (input, context)
|
|
|
77
75
|
body,
|
|
78
76
|
});
|
|
79
77
|
};
|
|
80
|
-
exports.
|
|
81
|
-
const
|
|
78
|
+
exports.se_CreateComponentTypeCommand = se_CreateComponentTypeCommand;
|
|
79
|
+
const se_CreateEntityCommand = async (input, context) => {
|
|
82
80
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
81
|
const headers = {
|
|
84
82
|
"content-type": "application/json",
|
|
@@ -87,14 +85,12 @@ const serializeAws_restJson1CreateEntityCommand = async (input, context) => {
|
|
|
87
85
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
88
86
|
let body;
|
|
89
87
|
body = JSON.stringify({
|
|
90
|
-
...(input.components != null && {
|
|
91
|
-
components: serializeAws_restJson1ComponentsMapRequest(input.components, context),
|
|
92
|
-
}),
|
|
88
|
+
...(input.components != null && { components: se_ComponentsMapRequest(input.components, context) }),
|
|
93
89
|
...(input.description != null && { description: input.description }),
|
|
94
90
|
...(input.entityId != null && { entityId: input.entityId }),
|
|
95
91
|
...(input.entityName != null && { entityName: input.entityName }),
|
|
96
92
|
...(input.parentEntityId != null && { parentEntityId: input.parentEntityId }),
|
|
97
|
-
...(input.tags != null && { tags:
|
|
93
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
98
94
|
});
|
|
99
95
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
100
96
|
if (context.disableHostPrefix !== true) {
|
|
@@ -113,8 +109,8 @@ const serializeAws_restJson1CreateEntityCommand = async (input, context) => {
|
|
|
113
109
|
body,
|
|
114
110
|
});
|
|
115
111
|
};
|
|
116
|
-
exports.
|
|
117
|
-
const
|
|
112
|
+
exports.se_CreateEntityCommand = se_CreateEntityCommand;
|
|
113
|
+
const se_CreateSceneCommand = async (input, context) => {
|
|
118
114
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
119
115
|
const headers = {
|
|
120
116
|
"content-type": "application/json",
|
|
@@ -123,16 +119,12 @@ const serializeAws_restJson1CreateSceneCommand = async (input, context) => {
|
|
|
123
119
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
124
120
|
let body;
|
|
125
121
|
body = JSON.stringify({
|
|
126
|
-
...(input.capabilities != null && {
|
|
127
|
-
capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
|
|
128
|
-
}),
|
|
122
|
+
...(input.capabilities != null && { capabilities: se_SceneCapabilities(input.capabilities, context) }),
|
|
129
123
|
...(input.contentLocation != null && { contentLocation: input.contentLocation }),
|
|
130
124
|
...(input.description != null && { description: input.description }),
|
|
131
125
|
...(input.sceneId != null && { sceneId: input.sceneId }),
|
|
132
|
-
...(input.sceneMetadata != null && {
|
|
133
|
-
|
|
134
|
-
}),
|
|
135
|
-
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
126
|
+
...(input.sceneMetadata != null && { sceneMetadata: se_SceneMetadataMap(input.sceneMetadata, context) }),
|
|
127
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
136
128
|
});
|
|
137
129
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
138
130
|
if (context.disableHostPrefix !== true) {
|
|
@@ -151,8 +143,8 @@ const serializeAws_restJson1CreateSceneCommand = async (input, context) => {
|
|
|
151
143
|
body,
|
|
152
144
|
});
|
|
153
145
|
};
|
|
154
|
-
exports.
|
|
155
|
-
const
|
|
146
|
+
exports.se_CreateSceneCommand = se_CreateSceneCommand;
|
|
147
|
+
const se_CreateSyncJobCommand = async (input, context) => {
|
|
156
148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
157
149
|
const headers = {
|
|
158
150
|
"content-type": "application/json",
|
|
@@ -164,7 +156,7 @@ const serializeAws_restJson1CreateSyncJobCommand = async (input, context) => {
|
|
|
164
156
|
let body;
|
|
165
157
|
body = JSON.stringify({
|
|
166
158
|
...(input.syncRole != null && { syncRole: input.syncRole }),
|
|
167
|
-
...(input.tags != null && { tags:
|
|
159
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
168
160
|
});
|
|
169
161
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
170
162
|
if (context.disableHostPrefix !== true) {
|
|
@@ -183,8 +175,8 @@ const serializeAws_restJson1CreateSyncJobCommand = async (input, context) => {
|
|
|
183
175
|
body,
|
|
184
176
|
});
|
|
185
177
|
};
|
|
186
|
-
exports.
|
|
187
|
-
const
|
|
178
|
+
exports.se_CreateSyncJobCommand = se_CreateSyncJobCommand;
|
|
179
|
+
const se_CreateWorkspaceCommand = async (input, context) => {
|
|
188
180
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
189
181
|
const headers = {
|
|
190
182
|
"content-type": "application/json",
|
|
@@ -196,7 +188,7 @@ const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
|
|
|
196
188
|
...(input.description != null && { description: input.description }),
|
|
197
189
|
...(input.role != null && { role: input.role }),
|
|
198
190
|
...(input.s3Location != null && { s3Location: input.s3Location }),
|
|
199
|
-
...(input.tags != null && { tags:
|
|
191
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
200
192
|
});
|
|
201
193
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
202
194
|
if (context.disableHostPrefix !== true) {
|
|
@@ -215,8 +207,8 @@ const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
|
|
|
215
207
|
body,
|
|
216
208
|
});
|
|
217
209
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
210
|
+
exports.se_CreateWorkspaceCommand = se_CreateWorkspaceCommand;
|
|
211
|
+
const se_DeleteComponentTypeCommand = async (input, context) => {
|
|
220
212
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
221
213
|
const headers = {};
|
|
222
214
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -241,8 +233,8 @@ const serializeAws_restJson1DeleteComponentTypeCommand = async (input, context)
|
|
|
241
233
|
body,
|
|
242
234
|
});
|
|
243
235
|
};
|
|
244
|
-
exports.
|
|
245
|
-
const
|
|
236
|
+
exports.se_DeleteComponentTypeCommand = se_DeleteComponentTypeCommand;
|
|
237
|
+
const se_DeleteEntityCommand = async (input, context) => {
|
|
246
238
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
247
239
|
const headers = {};
|
|
248
240
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -271,8 +263,8 @@ const serializeAws_restJson1DeleteEntityCommand = async (input, context) => {
|
|
|
271
263
|
body,
|
|
272
264
|
});
|
|
273
265
|
};
|
|
274
|
-
exports.
|
|
275
|
-
const
|
|
266
|
+
exports.se_DeleteEntityCommand = se_DeleteEntityCommand;
|
|
267
|
+
const se_DeleteSceneCommand = async (input, context) => {
|
|
276
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
277
269
|
const headers = {};
|
|
278
270
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -297,8 +289,8 @@ const serializeAws_restJson1DeleteSceneCommand = async (input, context) => {
|
|
|
297
289
|
body,
|
|
298
290
|
});
|
|
299
291
|
};
|
|
300
|
-
exports.
|
|
301
|
-
const
|
|
292
|
+
exports.se_DeleteSceneCommand = se_DeleteSceneCommand;
|
|
293
|
+
const se_DeleteSyncJobCommand = async (input, context) => {
|
|
302
294
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
303
295
|
const headers = {};
|
|
304
296
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -323,8 +315,8 @@ const serializeAws_restJson1DeleteSyncJobCommand = async (input, context) => {
|
|
|
323
315
|
body,
|
|
324
316
|
});
|
|
325
317
|
};
|
|
326
|
-
exports.
|
|
327
|
-
const
|
|
318
|
+
exports.se_DeleteSyncJobCommand = se_DeleteSyncJobCommand;
|
|
319
|
+
const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
328
320
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
329
321
|
const headers = {};
|
|
330
322
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
@@ -347,8 +339,8 @@ const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
|
|
|
347
339
|
body,
|
|
348
340
|
});
|
|
349
341
|
};
|
|
350
|
-
exports.
|
|
351
|
-
const
|
|
342
|
+
exports.se_DeleteWorkspaceCommand = se_DeleteWorkspaceCommand;
|
|
343
|
+
const se_ExecuteQueryCommand = async (input, context) => {
|
|
352
344
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
345
|
const headers = {
|
|
354
346
|
"content-type": "application/json",
|
|
@@ -378,8 +370,8 @@ const serializeAws_restJson1ExecuteQueryCommand = async (input, context) => {
|
|
|
378
370
|
body,
|
|
379
371
|
});
|
|
380
372
|
};
|
|
381
|
-
exports.
|
|
382
|
-
const
|
|
373
|
+
exports.se_ExecuteQueryCommand = se_ExecuteQueryCommand;
|
|
374
|
+
const se_GetComponentTypeCommand = async (input, context) => {
|
|
383
375
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
384
376
|
const headers = {};
|
|
385
377
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -404,8 +396,8 @@ const serializeAws_restJson1GetComponentTypeCommand = async (input, context) =>
|
|
|
404
396
|
body,
|
|
405
397
|
});
|
|
406
398
|
};
|
|
407
|
-
exports.
|
|
408
|
-
const
|
|
399
|
+
exports.se_GetComponentTypeCommand = se_GetComponentTypeCommand;
|
|
400
|
+
const se_GetEntityCommand = async (input, context) => {
|
|
409
401
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
410
402
|
const headers = {};
|
|
411
403
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -430,8 +422,8 @@ const serializeAws_restJson1GetEntityCommand = async (input, context) => {
|
|
|
430
422
|
body,
|
|
431
423
|
});
|
|
432
424
|
};
|
|
433
|
-
exports.
|
|
434
|
-
const
|
|
425
|
+
exports.se_GetEntityCommand = se_GetEntityCommand;
|
|
426
|
+
const se_GetPricingPlanCommand = async (input, context) => {
|
|
435
427
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
436
428
|
const headers = {
|
|
437
429
|
"content-type": "application/json",
|
|
@@ -456,8 +448,8 @@ const serializeAws_restJson1GetPricingPlanCommand = async (input, context) => {
|
|
|
456
448
|
body,
|
|
457
449
|
});
|
|
458
450
|
};
|
|
459
|
-
exports.
|
|
460
|
-
const
|
|
451
|
+
exports.se_GetPricingPlanCommand = se_GetPricingPlanCommand;
|
|
452
|
+
const se_GetPropertyValueCommand = async (input, context) => {
|
|
461
453
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
462
454
|
const headers = {
|
|
463
455
|
"content-type": "application/json",
|
|
@@ -474,10 +466,10 @@ const serializeAws_restJson1GetPropertyValueCommand = async (input, context) =>
|
|
|
474
466
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
475
467
|
...(input.propertyGroupName != null && { propertyGroupName: input.propertyGroupName }),
|
|
476
468
|
...(input.selectedProperties != null && {
|
|
477
|
-
selectedProperties:
|
|
469
|
+
selectedProperties: se_SelectedPropertyList(input.selectedProperties, context),
|
|
478
470
|
}),
|
|
479
471
|
...(input.tabularConditions != null && {
|
|
480
|
-
tabularConditions:
|
|
472
|
+
tabularConditions: se_TabularConditions(input.tabularConditions, context),
|
|
481
473
|
}),
|
|
482
474
|
});
|
|
483
475
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -497,8 +489,8 @@ const serializeAws_restJson1GetPropertyValueCommand = async (input, context) =>
|
|
|
497
489
|
body,
|
|
498
490
|
});
|
|
499
491
|
};
|
|
500
|
-
exports.
|
|
501
|
-
const
|
|
492
|
+
exports.se_GetPropertyValueCommand = se_GetPropertyValueCommand;
|
|
493
|
+
const se_GetPropertyValueHistoryCommand = async (input, context) => {
|
|
502
494
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
503
495
|
const headers = {
|
|
504
496
|
"content-type": "application/json",
|
|
@@ -513,17 +505,13 @@ const serializeAws_restJson1GetPropertyValueHistoryCommand = async (input, conte
|
|
|
513
505
|
...(input.endDateTime != null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) }),
|
|
514
506
|
...(input.endTime != null && { endTime: input.endTime }),
|
|
515
507
|
...(input.entityId != null && { entityId: input.entityId }),
|
|
516
|
-
...(input.interpolation != null && {
|
|
517
|
-
interpolation: serializeAws_restJson1InterpolationParameters(input.interpolation, context),
|
|
518
|
-
}),
|
|
508
|
+
...(input.interpolation != null && { interpolation: se_InterpolationParameters(input.interpolation, context) }),
|
|
519
509
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
520
510
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
521
511
|
...(input.orderByTime != null && { orderByTime: input.orderByTime }),
|
|
522
|
-
...(input.propertyFilters != null && {
|
|
523
|
-
propertyFilters: serializeAws_restJson1PropertyFilters(input.propertyFilters, context),
|
|
524
|
-
}),
|
|
512
|
+
...(input.propertyFilters != null && { propertyFilters: se_PropertyFilters(input.propertyFilters, context) }),
|
|
525
513
|
...(input.selectedProperties != null && {
|
|
526
|
-
selectedProperties:
|
|
514
|
+
selectedProperties: se_SelectedPropertyList(input.selectedProperties, context),
|
|
527
515
|
}),
|
|
528
516
|
...(input.startDateTime != null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) }),
|
|
529
517
|
...(input.startTime != null && { startTime: input.startTime }),
|
|
@@ -545,8 +533,8 @@ const serializeAws_restJson1GetPropertyValueHistoryCommand = async (input, conte
|
|
|
545
533
|
body,
|
|
546
534
|
});
|
|
547
535
|
};
|
|
548
|
-
exports.
|
|
549
|
-
const
|
|
536
|
+
exports.se_GetPropertyValueHistoryCommand = se_GetPropertyValueHistoryCommand;
|
|
537
|
+
const se_GetSceneCommand = async (input, context) => {
|
|
550
538
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
551
539
|
const headers = {};
|
|
552
540
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -571,8 +559,8 @@ const serializeAws_restJson1GetSceneCommand = async (input, context) => {
|
|
|
571
559
|
body,
|
|
572
560
|
});
|
|
573
561
|
};
|
|
574
|
-
exports.
|
|
575
|
-
const
|
|
562
|
+
exports.se_GetSceneCommand = se_GetSceneCommand;
|
|
563
|
+
const se_GetSyncJobCommand = async (input, context) => {
|
|
576
564
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
577
565
|
const headers = {};
|
|
578
566
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sync-jobs/{syncSource}";
|
|
@@ -599,8 +587,8 @@ const serializeAws_restJson1GetSyncJobCommand = async (input, context) => {
|
|
|
599
587
|
body,
|
|
600
588
|
});
|
|
601
589
|
};
|
|
602
|
-
exports.
|
|
603
|
-
const
|
|
590
|
+
exports.se_GetSyncJobCommand = se_GetSyncJobCommand;
|
|
591
|
+
const se_GetWorkspaceCommand = async (input, context) => {
|
|
604
592
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
605
593
|
const headers = {};
|
|
606
594
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
@@ -623,8 +611,8 @@ const serializeAws_restJson1GetWorkspaceCommand = async (input, context) => {
|
|
|
623
611
|
body,
|
|
624
612
|
});
|
|
625
613
|
};
|
|
626
|
-
exports.
|
|
627
|
-
const
|
|
614
|
+
exports.se_GetWorkspaceCommand = se_GetWorkspaceCommand;
|
|
615
|
+
const se_ListComponentTypesCommand = async (input, context) => {
|
|
628
616
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
629
617
|
const headers = {
|
|
630
618
|
"content-type": "application/json",
|
|
@@ -634,7 +622,7 @@ const serializeAws_restJson1ListComponentTypesCommand = async (input, context) =
|
|
|
634
622
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
635
623
|
let body;
|
|
636
624
|
body = JSON.stringify({
|
|
637
|
-
...(input.filters != null && { filters:
|
|
625
|
+
...(input.filters != null && { filters: se_ListComponentTypesFilters(input.filters, context) }),
|
|
638
626
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
639
627
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
640
628
|
});
|
|
@@ -655,8 +643,8 @@ const serializeAws_restJson1ListComponentTypesCommand = async (input, context) =
|
|
|
655
643
|
body,
|
|
656
644
|
});
|
|
657
645
|
};
|
|
658
|
-
exports.
|
|
659
|
-
const
|
|
646
|
+
exports.se_ListComponentTypesCommand = se_ListComponentTypesCommand;
|
|
647
|
+
const se_ListEntitiesCommand = async (input, context) => {
|
|
660
648
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
661
649
|
const headers = {
|
|
662
650
|
"content-type": "application/json",
|
|
@@ -665,7 +653,7 @@ const serializeAws_restJson1ListEntitiesCommand = async (input, context) => {
|
|
|
665
653
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
666
654
|
let body;
|
|
667
655
|
body = JSON.stringify({
|
|
668
|
-
...(input.filters != null && { filters:
|
|
656
|
+
...(input.filters != null && { filters: se_ListEntitiesFilters(input.filters, context) }),
|
|
669
657
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
670
658
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
671
659
|
});
|
|
@@ -686,8 +674,8 @@ const serializeAws_restJson1ListEntitiesCommand = async (input, context) => {
|
|
|
686
674
|
body,
|
|
687
675
|
});
|
|
688
676
|
};
|
|
689
|
-
exports.
|
|
690
|
-
const
|
|
677
|
+
exports.se_ListEntitiesCommand = se_ListEntitiesCommand;
|
|
678
|
+
const se_ListScenesCommand = async (input, context) => {
|
|
691
679
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
692
680
|
const headers = {
|
|
693
681
|
"content-type": "application/json",
|
|
@@ -716,8 +704,8 @@ const serializeAws_restJson1ListScenesCommand = async (input, context) => {
|
|
|
716
704
|
body,
|
|
717
705
|
});
|
|
718
706
|
};
|
|
719
|
-
exports.
|
|
720
|
-
const
|
|
707
|
+
exports.se_ListScenesCommand = se_ListScenesCommand;
|
|
708
|
+
const se_ListSyncJobsCommand = async (input, context) => {
|
|
721
709
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
722
710
|
const headers = {
|
|
723
711
|
"content-type": "application/json",
|
|
@@ -746,8 +734,8 @@ const serializeAws_restJson1ListSyncJobsCommand = async (input, context) => {
|
|
|
746
734
|
body,
|
|
747
735
|
});
|
|
748
736
|
};
|
|
749
|
-
exports.
|
|
750
|
-
const
|
|
737
|
+
exports.se_ListSyncJobsCommand = se_ListSyncJobsCommand;
|
|
738
|
+
const se_ListSyncResourcesCommand = async (input, context) => {
|
|
751
739
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
752
740
|
const headers = {
|
|
753
741
|
"content-type": "application/json",
|
|
@@ -758,7 +746,7 @@ const serializeAws_restJson1ListSyncResourcesCommand = async (input, context) =>
|
|
|
758
746
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
|
|
759
747
|
let body;
|
|
760
748
|
body = JSON.stringify({
|
|
761
|
-
...(input.filters != null && { filters:
|
|
749
|
+
...(input.filters != null && { filters: se_SyncResourceFilters(input.filters, context) }),
|
|
762
750
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
763
751
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
764
752
|
});
|
|
@@ -779,8 +767,8 @@ const serializeAws_restJson1ListSyncResourcesCommand = async (input, context) =>
|
|
|
779
767
|
body,
|
|
780
768
|
});
|
|
781
769
|
};
|
|
782
|
-
exports.
|
|
783
|
-
const
|
|
770
|
+
exports.se_ListSyncResourcesCommand = se_ListSyncResourcesCommand;
|
|
771
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
784
772
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
785
773
|
const headers = {
|
|
786
774
|
"content-type": "application/json",
|
|
@@ -809,8 +797,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
809
797
|
body,
|
|
810
798
|
});
|
|
811
799
|
};
|
|
812
|
-
exports.
|
|
813
|
-
const
|
|
800
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
801
|
+
const se_ListWorkspacesCommand = async (input, context) => {
|
|
814
802
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
815
803
|
const headers = {
|
|
816
804
|
"content-type": "application/json",
|
|
@@ -838,8 +826,8 @@ const serializeAws_restJson1ListWorkspacesCommand = async (input, context) => {
|
|
|
838
826
|
body,
|
|
839
827
|
});
|
|
840
828
|
};
|
|
841
|
-
exports.
|
|
842
|
-
const
|
|
829
|
+
exports.se_ListWorkspacesCommand = se_ListWorkspacesCommand;
|
|
830
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
843
831
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
844
832
|
const headers = {
|
|
845
833
|
"content-type": "application/json",
|
|
@@ -848,7 +836,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
848
836
|
let body;
|
|
849
837
|
body = JSON.stringify({
|
|
850
838
|
...(input.resourceARN != null && { resourceARN: input.resourceARN }),
|
|
851
|
-
...(input.tags != null && { tags:
|
|
839
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
852
840
|
});
|
|
853
841
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
854
842
|
if (context.disableHostPrefix !== true) {
|
|
@@ -867,8 +855,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
867
855
|
body,
|
|
868
856
|
});
|
|
869
857
|
};
|
|
870
|
-
exports.
|
|
871
|
-
const
|
|
858
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
859
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
872
860
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
873
861
|
const headers = {};
|
|
874
862
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
@@ -898,8 +886,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
898
886
|
body,
|
|
899
887
|
});
|
|
900
888
|
};
|
|
901
|
-
exports.
|
|
902
|
-
const
|
|
889
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
890
|
+
const se_UpdateComponentTypeCommand = async (input, context) => {
|
|
903
891
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
904
892
|
const headers = {
|
|
905
893
|
"content-type": "application/json",
|
|
@@ -912,15 +900,13 @@ const serializeAws_restJson1UpdateComponentTypeCommand = async (input, context)
|
|
|
912
900
|
body = JSON.stringify({
|
|
913
901
|
...(input.componentTypeName != null && { componentTypeName: input.componentTypeName }),
|
|
914
902
|
...(input.description != null && { description: input.description }),
|
|
915
|
-
...(input.extendsFrom != null && { extendsFrom:
|
|
916
|
-
...(input.functions != null && { functions:
|
|
903
|
+
...(input.extendsFrom != null && { extendsFrom: se_ExtendsFrom(input.extendsFrom, context) }),
|
|
904
|
+
...(input.functions != null && { functions: se_FunctionsRequest(input.functions, context) }),
|
|
917
905
|
...(input.isSingleton != null && { isSingleton: input.isSingleton }),
|
|
918
906
|
...(input.propertyDefinitions != null && {
|
|
919
|
-
propertyDefinitions:
|
|
920
|
-
}),
|
|
921
|
-
...(input.propertyGroups != null && {
|
|
922
|
-
propertyGroups: serializeAws_restJson1PropertyGroupsRequest(input.propertyGroups, context),
|
|
907
|
+
propertyDefinitions: se_PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
923
908
|
}),
|
|
909
|
+
...(input.propertyGroups != null && { propertyGroups: se_PropertyGroupsRequest(input.propertyGroups, context) }),
|
|
924
910
|
});
|
|
925
911
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
926
912
|
if (context.disableHostPrefix !== true) {
|
|
@@ -939,8 +925,8 @@ const serializeAws_restJson1UpdateComponentTypeCommand = async (input, context)
|
|
|
939
925
|
body,
|
|
940
926
|
});
|
|
941
927
|
};
|
|
942
|
-
exports.
|
|
943
|
-
const
|
|
928
|
+
exports.se_UpdateComponentTypeCommand = se_UpdateComponentTypeCommand;
|
|
929
|
+
const se_UpdateEntityCommand = async (input, context) => {
|
|
944
930
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
945
931
|
const headers = {
|
|
946
932
|
"content-type": "application/json",
|
|
@@ -952,12 +938,12 @@ const serializeAws_restJson1UpdateEntityCommand = async (input, context) => {
|
|
|
952
938
|
let body;
|
|
953
939
|
body = JSON.stringify({
|
|
954
940
|
...(input.componentUpdates != null && {
|
|
955
|
-
componentUpdates:
|
|
941
|
+
componentUpdates: se_ComponentUpdatesMapRequest(input.componentUpdates, context),
|
|
956
942
|
}),
|
|
957
943
|
...(input.description != null && { description: input.description }),
|
|
958
944
|
...(input.entityName != null && { entityName: input.entityName }),
|
|
959
945
|
...(input.parentEntityUpdate != null && {
|
|
960
|
-
parentEntityUpdate:
|
|
946
|
+
parentEntityUpdate: se_ParentEntityUpdateRequest(input.parentEntityUpdate, context),
|
|
961
947
|
}),
|
|
962
948
|
});
|
|
963
949
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -977,8 +963,8 @@ const serializeAws_restJson1UpdateEntityCommand = async (input, context) => {
|
|
|
977
963
|
body,
|
|
978
964
|
});
|
|
979
965
|
};
|
|
980
|
-
exports.
|
|
981
|
-
const
|
|
966
|
+
exports.se_UpdateEntityCommand = se_UpdateEntityCommand;
|
|
967
|
+
const se_UpdatePricingPlanCommand = async (input, context) => {
|
|
982
968
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
983
969
|
const headers = {
|
|
984
970
|
"content-type": "application/json",
|
|
@@ -986,7 +972,7 @@ const serializeAws_restJson1UpdatePricingPlanCommand = async (input, context) =>
|
|
|
986
972
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pricingplan";
|
|
987
973
|
let body;
|
|
988
974
|
body = JSON.stringify({
|
|
989
|
-
...(input.bundleNames != null && { bundleNames:
|
|
975
|
+
...(input.bundleNames != null && { bundleNames: se_PricingBundles(input.bundleNames, context) }),
|
|
990
976
|
...(input.pricingMode != null && { pricingMode: input.pricingMode }),
|
|
991
977
|
});
|
|
992
978
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1006,8 +992,8 @@ const serializeAws_restJson1UpdatePricingPlanCommand = async (input, context) =>
|
|
|
1006
992
|
body,
|
|
1007
993
|
});
|
|
1008
994
|
};
|
|
1009
|
-
exports.
|
|
1010
|
-
const
|
|
995
|
+
exports.se_UpdatePricingPlanCommand = se_UpdatePricingPlanCommand;
|
|
996
|
+
const se_UpdateSceneCommand = async (input, context) => {
|
|
1011
997
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1012
998
|
const headers = {
|
|
1013
999
|
"content-type": "application/json",
|
|
@@ -1018,14 +1004,10 @@ const serializeAws_restJson1UpdateSceneCommand = async (input, context) => {
|
|
|
1018
1004
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sceneId", () => input.sceneId, "{sceneId}", false);
|
|
1019
1005
|
let body;
|
|
1020
1006
|
body = JSON.stringify({
|
|
1021
|
-
...(input.capabilities != null && {
|
|
1022
|
-
capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
|
|
1023
|
-
}),
|
|
1007
|
+
...(input.capabilities != null && { capabilities: se_SceneCapabilities(input.capabilities, context) }),
|
|
1024
1008
|
...(input.contentLocation != null && { contentLocation: input.contentLocation }),
|
|
1025
1009
|
...(input.description != null && { description: input.description }),
|
|
1026
|
-
...(input.sceneMetadata != null && {
|
|
1027
|
-
sceneMetadata: serializeAws_restJson1SceneMetadataMap(input.sceneMetadata, context),
|
|
1028
|
-
}),
|
|
1010
|
+
...(input.sceneMetadata != null && { sceneMetadata: se_SceneMetadataMap(input.sceneMetadata, context) }),
|
|
1029
1011
|
});
|
|
1030
1012
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1031
1013
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1044,8 +1026,8 @@ const serializeAws_restJson1UpdateSceneCommand = async (input, context) => {
|
|
|
1044
1026
|
body,
|
|
1045
1027
|
});
|
|
1046
1028
|
};
|
|
1047
|
-
exports.
|
|
1048
|
-
const
|
|
1029
|
+
exports.se_UpdateSceneCommand = se_UpdateSceneCommand;
|
|
1030
|
+
const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
1049
1031
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1050
1032
|
const headers = {
|
|
1051
1033
|
"content-type": "application/json",
|
|
@@ -1074,22 +1056,22 @@ const serializeAws_restJson1UpdateWorkspaceCommand = async (input, context) => {
|
|
|
1074
1056
|
body,
|
|
1075
1057
|
});
|
|
1076
1058
|
};
|
|
1077
|
-
exports.
|
|
1078
|
-
const
|
|
1059
|
+
exports.se_UpdateWorkspaceCommand = se_UpdateWorkspaceCommand;
|
|
1060
|
+
const de_BatchPutPropertyValuesCommand = async (output, context) => {
|
|
1079
1061
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1080
|
-
return
|
|
1062
|
+
return de_BatchPutPropertyValuesCommandError(output, context);
|
|
1081
1063
|
}
|
|
1082
1064
|
const contents = map({
|
|
1083
1065
|
$metadata: deserializeMetadata(output),
|
|
1084
1066
|
});
|
|
1085
1067
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1086
1068
|
if (data.errorEntries != null) {
|
|
1087
|
-
contents.errorEntries =
|
|
1069
|
+
contents.errorEntries = de_ErrorEntries(data.errorEntries, context);
|
|
1088
1070
|
}
|
|
1089
1071
|
return contents;
|
|
1090
1072
|
};
|
|
1091
|
-
exports.
|
|
1092
|
-
const
|
|
1073
|
+
exports.de_BatchPutPropertyValuesCommand = de_BatchPutPropertyValuesCommand;
|
|
1074
|
+
const de_BatchPutPropertyValuesCommandError = async (output, context) => {
|
|
1093
1075
|
const parsedOutput = {
|
|
1094
1076
|
...output,
|
|
1095
1077
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1098,16 +1080,16 @@ const deserializeAws_restJson1BatchPutPropertyValuesCommandError = async (output
|
|
|
1098
1080
|
switch (errorCode) {
|
|
1099
1081
|
case "InternalServerException":
|
|
1100
1082
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1101
|
-
throw await
|
|
1083
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1102
1084
|
case "ResourceNotFoundException":
|
|
1103
1085
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1104
|
-
throw await
|
|
1086
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1105
1087
|
case "ThrottlingException":
|
|
1106
1088
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1107
|
-
throw await
|
|
1089
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1108
1090
|
case "ValidationException":
|
|
1109
1091
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1110
|
-
throw await
|
|
1092
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1111
1093
|
default:
|
|
1112
1094
|
const parsedBody = parsedOutput.body;
|
|
1113
1095
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1118,9 +1100,9 @@ const deserializeAws_restJson1BatchPutPropertyValuesCommandError = async (output
|
|
|
1118
1100
|
});
|
|
1119
1101
|
}
|
|
1120
1102
|
};
|
|
1121
|
-
const
|
|
1103
|
+
const de_CreateComponentTypeCommand = async (output, context) => {
|
|
1122
1104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1123
|
-
return
|
|
1105
|
+
return de_CreateComponentTypeCommandError(output, context);
|
|
1124
1106
|
}
|
|
1125
1107
|
const contents = map({
|
|
1126
1108
|
$metadata: deserializeMetadata(output),
|
|
@@ -1137,8 +1119,8 @@ const deserializeAws_restJson1CreateComponentTypeCommand = async (output, contex
|
|
|
1137
1119
|
}
|
|
1138
1120
|
return contents;
|
|
1139
1121
|
};
|
|
1140
|
-
exports.
|
|
1141
|
-
const
|
|
1122
|
+
exports.de_CreateComponentTypeCommand = de_CreateComponentTypeCommand;
|
|
1123
|
+
const de_CreateComponentTypeCommandError = async (output, context) => {
|
|
1142
1124
|
const parsedOutput = {
|
|
1143
1125
|
...output,
|
|
1144
1126
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1147,22 +1129,22 @@ const deserializeAws_restJson1CreateComponentTypeCommandError = async (output, c
|
|
|
1147
1129
|
switch (errorCode) {
|
|
1148
1130
|
case "AccessDeniedException":
|
|
1149
1131
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1150
|
-
throw await
|
|
1132
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1151
1133
|
case "ConflictException":
|
|
1152
1134
|
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1153
|
-
throw await
|
|
1135
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1154
1136
|
case "InternalServerException":
|
|
1155
1137
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1156
|
-
throw await
|
|
1138
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1157
1139
|
case "ServiceQuotaExceededException":
|
|
1158
1140
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1159
|
-
throw await
|
|
1141
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1160
1142
|
case "ThrottlingException":
|
|
1161
1143
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1162
|
-
throw await
|
|
1144
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1163
1145
|
case "ValidationException":
|
|
1164
1146
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1165
|
-
throw await
|
|
1147
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1166
1148
|
default:
|
|
1167
1149
|
const parsedBody = parsedOutput.body;
|
|
1168
1150
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1173,9 +1155,9 @@ const deserializeAws_restJson1CreateComponentTypeCommandError = async (output, c
|
|
|
1173
1155
|
});
|
|
1174
1156
|
}
|
|
1175
1157
|
};
|
|
1176
|
-
const
|
|
1158
|
+
const de_CreateEntityCommand = async (output, context) => {
|
|
1177
1159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1178
|
-
return
|
|
1160
|
+
return de_CreateEntityCommandError(output, context);
|
|
1179
1161
|
}
|
|
1180
1162
|
const contents = map({
|
|
1181
1163
|
$metadata: deserializeMetadata(output),
|
|
@@ -1195,8 +1177,8 @@ const deserializeAws_restJson1CreateEntityCommand = async (output, context) => {
|
|
|
1195
1177
|
}
|
|
1196
1178
|
return contents;
|
|
1197
1179
|
};
|
|
1198
|
-
exports.
|
|
1199
|
-
const
|
|
1180
|
+
exports.de_CreateEntityCommand = de_CreateEntityCommand;
|
|
1181
|
+
const de_CreateEntityCommandError = async (output, context) => {
|
|
1200
1182
|
const parsedOutput = {
|
|
1201
1183
|
...output,
|
|
1202
1184
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1205,22 +1187,22 @@ const deserializeAws_restJson1CreateEntityCommandError = async (output, context)
|
|
|
1205
1187
|
switch (errorCode) {
|
|
1206
1188
|
case "AccessDeniedException":
|
|
1207
1189
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1208
|
-
throw await
|
|
1190
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1209
1191
|
case "ConflictException":
|
|
1210
1192
|
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1211
|
-
throw await
|
|
1193
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1212
1194
|
case "InternalServerException":
|
|
1213
1195
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1214
|
-
throw await
|
|
1196
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1215
1197
|
case "ServiceQuotaExceededException":
|
|
1216
1198
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1217
|
-
throw await
|
|
1199
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1218
1200
|
case "ThrottlingException":
|
|
1219
1201
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1220
|
-
throw await
|
|
1202
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1221
1203
|
case "ValidationException":
|
|
1222
1204
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1223
|
-
throw await
|
|
1205
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1224
1206
|
default:
|
|
1225
1207
|
const parsedBody = parsedOutput.body;
|
|
1226
1208
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1231,9 +1213,9 @@ const deserializeAws_restJson1CreateEntityCommandError = async (output, context)
|
|
|
1231
1213
|
});
|
|
1232
1214
|
}
|
|
1233
1215
|
};
|
|
1234
|
-
const
|
|
1216
|
+
const de_CreateSceneCommand = async (output, context) => {
|
|
1235
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1236
|
-
return
|
|
1218
|
+
return de_CreateSceneCommandError(output, context);
|
|
1237
1219
|
}
|
|
1238
1220
|
const contents = map({
|
|
1239
1221
|
$metadata: deserializeMetadata(output),
|
|
@@ -1247,8 +1229,8 @@ const deserializeAws_restJson1CreateSceneCommand = async (output, context) => {
|
|
|
1247
1229
|
}
|
|
1248
1230
|
return contents;
|
|
1249
1231
|
};
|
|
1250
|
-
exports.
|
|
1251
|
-
const
|
|
1232
|
+
exports.de_CreateSceneCommand = de_CreateSceneCommand;
|
|
1233
|
+
const de_CreateSceneCommandError = async (output, context) => {
|
|
1252
1234
|
const parsedOutput = {
|
|
1253
1235
|
...output,
|
|
1254
1236
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1257,22 +1239,22 @@ const deserializeAws_restJson1CreateSceneCommandError = async (output, context)
|
|
|
1257
1239
|
switch (errorCode) {
|
|
1258
1240
|
case "AccessDeniedException":
|
|
1259
1241
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1260
|
-
throw await
|
|
1242
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1261
1243
|
case "ConflictException":
|
|
1262
1244
|
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1263
|
-
throw await
|
|
1245
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1264
1246
|
case "InternalServerException":
|
|
1265
1247
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1266
|
-
throw await
|
|
1248
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1267
1249
|
case "ServiceQuotaExceededException":
|
|
1268
1250
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1269
|
-
throw await
|
|
1251
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1270
1252
|
case "ThrottlingException":
|
|
1271
1253
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1272
|
-
throw await
|
|
1254
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1273
1255
|
case "ValidationException":
|
|
1274
1256
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1275
|
-
throw await
|
|
1257
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1276
1258
|
default:
|
|
1277
1259
|
const parsedBody = parsedOutput.body;
|
|
1278
1260
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1283,9 +1265,9 @@ const deserializeAws_restJson1CreateSceneCommandError = async (output, context)
|
|
|
1283
1265
|
});
|
|
1284
1266
|
}
|
|
1285
1267
|
};
|
|
1286
|
-
const
|
|
1268
|
+
const de_CreateSyncJobCommand = async (output, context) => {
|
|
1287
1269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1288
|
-
return
|
|
1270
|
+
return de_CreateSyncJobCommandError(output, context);
|
|
1289
1271
|
}
|
|
1290
1272
|
const contents = map({
|
|
1291
1273
|
$metadata: deserializeMetadata(output),
|
|
@@ -1302,8 +1284,8 @@ const deserializeAws_restJson1CreateSyncJobCommand = async (output, context) =>
|
|
|
1302
1284
|
}
|
|
1303
1285
|
return contents;
|
|
1304
1286
|
};
|
|
1305
|
-
exports.
|
|
1306
|
-
const
|
|
1287
|
+
exports.de_CreateSyncJobCommand = de_CreateSyncJobCommand;
|
|
1288
|
+
const de_CreateSyncJobCommandError = async (output, context) => {
|
|
1307
1289
|
const parsedOutput = {
|
|
1308
1290
|
...output,
|
|
1309
1291
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1312,22 +1294,22 @@ const deserializeAws_restJson1CreateSyncJobCommandError = async (output, context
|
|
|
1312
1294
|
switch (errorCode) {
|
|
1313
1295
|
case "AccessDeniedException":
|
|
1314
1296
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1315
|
-
throw await
|
|
1297
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1316
1298
|
case "ConflictException":
|
|
1317
1299
|
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1318
|
-
throw await
|
|
1300
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1319
1301
|
case "InternalServerException":
|
|
1320
1302
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1321
|
-
throw await
|
|
1303
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1322
1304
|
case "ServiceQuotaExceededException":
|
|
1323
1305
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1324
|
-
throw await
|
|
1306
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1325
1307
|
case "ThrottlingException":
|
|
1326
1308
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1327
|
-
throw await
|
|
1309
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1328
1310
|
case "ValidationException":
|
|
1329
1311
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1330
|
-
throw await
|
|
1312
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1331
1313
|
default:
|
|
1332
1314
|
const parsedBody = parsedOutput.body;
|
|
1333
1315
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1338,9 +1320,9 @@ const deserializeAws_restJson1CreateSyncJobCommandError = async (output, context
|
|
|
1338
1320
|
});
|
|
1339
1321
|
}
|
|
1340
1322
|
};
|
|
1341
|
-
const
|
|
1323
|
+
const de_CreateWorkspaceCommand = async (output, context) => {
|
|
1342
1324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1343
|
-
return
|
|
1325
|
+
return de_CreateWorkspaceCommandError(output, context);
|
|
1344
1326
|
}
|
|
1345
1327
|
const contents = map({
|
|
1346
1328
|
$metadata: deserializeMetadata(output),
|
|
@@ -1354,8 +1336,8 @@ const deserializeAws_restJson1CreateWorkspaceCommand = async (output, context) =
|
|
|
1354
1336
|
}
|
|
1355
1337
|
return contents;
|
|
1356
1338
|
};
|
|
1357
|
-
exports.
|
|
1358
|
-
const
|
|
1339
|
+
exports.de_CreateWorkspaceCommand = de_CreateWorkspaceCommand;
|
|
1340
|
+
const de_CreateWorkspaceCommandError = async (output, context) => {
|
|
1359
1341
|
const parsedOutput = {
|
|
1360
1342
|
...output,
|
|
1361
1343
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1364,22 +1346,22 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
1364
1346
|
switch (errorCode) {
|
|
1365
1347
|
case "AccessDeniedException":
|
|
1366
1348
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1367
|
-
throw await
|
|
1349
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1368
1350
|
case "ConflictException":
|
|
1369
1351
|
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1370
|
-
throw await
|
|
1352
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1371
1353
|
case "InternalServerException":
|
|
1372
1354
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1373
|
-
throw await
|
|
1355
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1374
1356
|
case "ServiceQuotaExceededException":
|
|
1375
1357
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1376
|
-
throw await
|
|
1358
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1377
1359
|
case "ThrottlingException":
|
|
1378
1360
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1379
|
-
throw await
|
|
1361
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1380
1362
|
case "ValidationException":
|
|
1381
1363
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1382
|
-
throw await
|
|
1364
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1383
1365
|
default:
|
|
1384
1366
|
const parsedBody = parsedOutput.body;
|
|
1385
1367
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1390,9 +1372,9 @@ const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, conte
|
|
|
1390
1372
|
});
|
|
1391
1373
|
}
|
|
1392
1374
|
};
|
|
1393
|
-
const
|
|
1375
|
+
const de_DeleteComponentTypeCommand = async (output, context) => {
|
|
1394
1376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1395
|
-
return
|
|
1377
|
+
return de_DeleteComponentTypeCommandError(output, context);
|
|
1396
1378
|
}
|
|
1397
1379
|
const contents = map({
|
|
1398
1380
|
$metadata: deserializeMetadata(output),
|
|
@@ -1403,8 +1385,8 @@ const deserializeAws_restJson1DeleteComponentTypeCommand = async (output, contex
|
|
|
1403
1385
|
}
|
|
1404
1386
|
return contents;
|
|
1405
1387
|
};
|
|
1406
|
-
exports.
|
|
1407
|
-
const
|
|
1388
|
+
exports.de_DeleteComponentTypeCommand = de_DeleteComponentTypeCommand;
|
|
1389
|
+
const de_DeleteComponentTypeCommandError = async (output, context) => {
|
|
1408
1390
|
const parsedOutput = {
|
|
1409
1391
|
...output,
|
|
1410
1392
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1413,19 +1395,19 @@ const deserializeAws_restJson1DeleteComponentTypeCommandError = async (output, c
|
|
|
1413
1395
|
switch (errorCode) {
|
|
1414
1396
|
case "AccessDeniedException":
|
|
1415
1397
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1416
|
-
throw await
|
|
1398
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1417
1399
|
case "InternalServerException":
|
|
1418
1400
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1419
|
-
throw await
|
|
1401
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1420
1402
|
case "ResourceNotFoundException":
|
|
1421
1403
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1422
|
-
throw await
|
|
1404
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1423
1405
|
case "ThrottlingException":
|
|
1424
1406
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1425
|
-
throw await
|
|
1407
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1426
1408
|
case "ValidationException":
|
|
1427
1409
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1428
|
-
throw await
|
|
1410
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1429
1411
|
default:
|
|
1430
1412
|
const parsedBody = parsedOutput.body;
|
|
1431
1413
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1436,9 +1418,9 @@ const deserializeAws_restJson1DeleteComponentTypeCommandError = async (output, c
|
|
|
1436
1418
|
});
|
|
1437
1419
|
}
|
|
1438
1420
|
};
|
|
1439
|
-
const
|
|
1421
|
+
const de_DeleteEntityCommand = async (output, context) => {
|
|
1440
1422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
1423
|
+
return de_DeleteEntityCommandError(output, context);
|
|
1442
1424
|
}
|
|
1443
1425
|
const contents = map({
|
|
1444
1426
|
$metadata: deserializeMetadata(output),
|
|
@@ -1449,8 +1431,8 @@ const deserializeAws_restJson1DeleteEntityCommand = async (output, context) => {
|
|
|
1449
1431
|
}
|
|
1450
1432
|
return contents;
|
|
1451
1433
|
};
|
|
1452
|
-
exports.
|
|
1453
|
-
const
|
|
1434
|
+
exports.de_DeleteEntityCommand = de_DeleteEntityCommand;
|
|
1435
|
+
const de_DeleteEntityCommandError = async (output, context) => {
|
|
1454
1436
|
const parsedOutput = {
|
|
1455
1437
|
...output,
|
|
1456
1438
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1459,19 +1441,19 @@ const deserializeAws_restJson1DeleteEntityCommandError = async (output, context)
|
|
|
1459
1441
|
switch (errorCode) {
|
|
1460
1442
|
case "InternalServerException":
|
|
1461
1443
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1462
|
-
throw await
|
|
1444
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1463
1445
|
case "ResourceNotFoundException":
|
|
1464
1446
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1465
|
-
throw await
|
|
1447
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1466
1448
|
case "ServiceQuotaExceededException":
|
|
1467
1449
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1468
|
-
throw await
|
|
1450
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1469
1451
|
case "ThrottlingException":
|
|
1470
1452
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1471
|
-
throw await
|
|
1453
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1472
1454
|
case "ValidationException":
|
|
1473
1455
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1474
|
-
throw await
|
|
1456
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1475
1457
|
default:
|
|
1476
1458
|
const parsedBody = parsedOutput.body;
|
|
1477
1459
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1482,9 +1464,9 @@ const deserializeAws_restJson1DeleteEntityCommandError = async (output, context)
|
|
|
1482
1464
|
});
|
|
1483
1465
|
}
|
|
1484
1466
|
};
|
|
1485
|
-
const
|
|
1467
|
+
const de_DeleteSceneCommand = async (output, context) => {
|
|
1486
1468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1487
|
-
return
|
|
1469
|
+
return de_DeleteSceneCommandError(output, context);
|
|
1488
1470
|
}
|
|
1489
1471
|
const contents = map({
|
|
1490
1472
|
$metadata: deserializeMetadata(output),
|
|
@@ -1492,8 +1474,8 @@ const deserializeAws_restJson1DeleteSceneCommand = async (output, context) => {
|
|
|
1492
1474
|
await collectBody(output.body, context);
|
|
1493
1475
|
return contents;
|
|
1494
1476
|
};
|
|
1495
|
-
exports.
|
|
1496
|
-
const
|
|
1477
|
+
exports.de_DeleteSceneCommand = de_DeleteSceneCommand;
|
|
1478
|
+
const de_DeleteSceneCommandError = async (output, context) => {
|
|
1497
1479
|
const parsedOutput = {
|
|
1498
1480
|
...output,
|
|
1499
1481
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1502,19 +1484,19 @@ const deserializeAws_restJson1DeleteSceneCommandError = async (output, context)
|
|
|
1502
1484
|
switch (errorCode) {
|
|
1503
1485
|
case "AccessDeniedException":
|
|
1504
1486
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1505
|
-
throw await
|
|
1487
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1506
1488
|
case "InternalServerException":
|
|
1507
1489
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1508
|
-
throw await
|
|
1490
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1509
1491
|
case "ResourceNotFoundException":
|
|
1510
1492
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1511
|
-
throw await
|
|
1493
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1512
1494
|
case "ThrottlingException":
|
|
1513
1495
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1514
|
-
throw await
|
|
1496
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1515
1497
|
case "ValidationException":
|
|
1516
1498
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1517
|
-
throw await
|
|
1499
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1518
1500
|
default:
|
|
1519
1501
|
const parsedBody = parsedOutput.body;
|
|
1520
1502
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1525,9 +1507,9 @@ const deserializeAws_restJson1DeleteSceneCommandError = async (output, context)
|
|
|
1525
1507
|
});
|
|
1526
1508
|
}
|
|
1527
1509
|
};
|
|
1528
|
-
const
|
|
1510
|
+
const de_DeleteSyncJobCommand = async (output, context) => {
|
|
1529
1511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1530
|
-
return
|
|
1512
|
+
return de_DeleteSyncJobCommandError(output, context);
|
|
1531
1513
|
}
|
|
1532
1514
|
const contents = map({
|
|
1533
1515
|
$metadata: deserializeMetadata(output),
|
|
@@ -1538,8 +1520,8 @@ const deserializeAws_restJson1DeleteSyncJobCommand = async (output, context) =>
|
|
|
1538
1520
|
}
|
|
1539
1521
|
return contents;
|
|
1540
1522
|
};
|
|
1541
|
-
exports.
|
|
1542
|
-
const
|
|
1523
|
+
exports.de_DeleteSyncJobCommand = de_DeleteSyncJobCommand;
|
|
1524
|
+
const de_DeleteSyncJobCommandError = async (output, context) => {
|
|
1543
1525
|
const parsedOutput = {
|
|
1544
1526
|
...output,
|
|
1545
1527
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1548,22 +1530,22 @@ const deserializeAws_restJson1DeleteSyncJobCommandError = async (output, context
|
|
|
1548
1530
|
switch (errorCode) {
|
|
1549
1531
|
case "AccessDeniedException":
|
|
1550
1532
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1551
|
-
throw await
|
|
1533
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1552
1534
|
case "InternalServerException":
|
|
1553
1535
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1554
|
-
throw await
|
|
1536
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1555
1537
|
case "ResourceNotFoundException":
|
|
1556
1538
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1557
|
-
throw await
|
|
1539
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1558
1540
|
case "ServiceQuotaExceededException":
|
|
1559
1541
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1560
|
-
throw await
|
|
1542
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1561
1543
|
case "ThrottlingException":
|
|
1562
1544
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1563
|
-
throw await
|
|
1545
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1564
1546
|
case "ValidationException":
|
|
1565
1547
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1566
|
-
throw await
|
|
1548
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1567
1549
|
default:
|
|
1568
1550
|
const parsedBody = parsedOutput.body;
|
|
1569
1551
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1574,9 +1556,9 @@ const deserializeAws_restJson1DeleteSyncJobCommandError = async (output, context
|
|
|
1574
1556
|
});
|
|
1575
1557
|
}
|
|
1576
1558
|
};
|
|
1577
|
-
const
|
|
1559
|
+
const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
1578
1560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1579
|
-
return
|
|
1561
|
+
return de_DeleteWorkspaceCommandError(output, context);
|
|
1580
1562
|
}
|
|
1581
1563
|
const contents = map({
|
|
1582
1564
|
$metadata: deserializeMetadata(output),
|
|
@@ -1584,8 +1566,8 @@ const deserializeAws_restJson1DeleteWorkspaceCommand = async (output, context) =
|
|
|
1584
1566
|
await collectBody(output.body, context);
|
|
1585
1567
|
return contents;
|
|
1586
1568
|
};
|
|
1587
|
-
exports.
|
|
1588
|
-
const
|
|
1569
|
+
exports.de_DeleteWorkspaceCommand = de_DeleteWorkspaceCommand;
|
|
1570
|
+
const de_DeleteWorkspaceCommandError = async (output, context) => {
|
|
1589
1571
|
const parsedOutput = {
|
|
1590
1572
|
...output,
|
|
1591
1573
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1594,19 +1576,19 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
1594
1576
|
switch (errorCode) {
|
|
1595
1577
|
case "AccessDeniedException":
|
|
1596
1578
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1597
|
-
throw await
|
|
1579
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1598
1580
|
case "InternalServerException":
|
|
1599
1581
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1600
|
-
throw await
|
|
1582
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1601
1583
|
case "ResourceNotFoundException":
|
|
1602
1584
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1603
|
-
throw await
|
|
1585
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1604
1586
|
case "ThrottlingException":
|
|
1605
1587
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1606
|
-
throw await
|
|
1588
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1607
1589
|
case "ValidationException":
|
|
1608
1590
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1609
|
-
throw await
|
|
1591
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1610
1592
|
default:
|
|
1611
1593
|
const parsedBody = parsedOutput.body;
|
|
1612
1594
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1617,27 +1599,27 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
1617
1599
|
});
|
|
1618
1600
|
}
|
|
1619
1601
|
};
|
|
1620
|
-
const
|
|
1602
|
+
const de_ExecuteQueryCommand = async (output, context) => {
|
|
1621
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1622
|
-
return
|
|
1604
|
+
return de_ExecuteQueryCommandError(output, context);
|
|
1623
1605
|
}
|
|
1624
1606
|
const contents = map({
|
|
1625
1607
|
$metadata: deserializeMetadata(output),
|
|
1626
1608
|
});
|
|
1627
1609
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1628
1610
|
if (data.columnDescriptions != null) {
|
|
1629
|
-
contents.columnDescriptions =
|
|
1611
|
+
contents.columnDescriptions = de_ColumnDescriptions(data.columnDescriptions, context);
|
|
1630
1612
|
}
|
|
1631
1613
|
if (data.nextToken != null) {
|
|
1632
1614
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1633
1615
|
}
|
|
1634
1616
|
if (data.rows != null) {
|
|
1635
|
-
contents.rows =
|
|
1617
|
+
contents.rows = de_Rows(data.rows, context);
|
|
1636
1618
|
}
|
|
1637
1619
|
return contents;
|
|
1638
1620
|
};
|
|
1639
|
-
exports.
|
|
1640
|
-
const
|
|
1621
|
+
exports.de_ExecuteQueryCommand = de_ExecuteQueryCommand;
|
|
1622
|
+
const de_ExecuteQueryCommandError = async (output, context) => {
|
|
1641
1623
|
const parsedOutput = {
|
|
1642
1624
|
...output,
|
|
1643
1625
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1646,22 +1628,22 @@ const deserializeAws_restJson1ExecuteQueryCommandError = async (output, context)
|
|
|
1646
1628
|
switch (errorCode) {
|
|
1647
1629
|
case "AccessDeniedException":
|
|
1648
1630
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1649
|
-
throw await
|
|
1631
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1650
1632
|
case "InternalServerException":
|
|
1651
1633
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1652
|
-
throw await
|
|
1634
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1653
1635
|
case "QueryTimeoutException":
|
|
1654
1636
|
case "com.amazonaws.iottwinmaker#QueryTimeoutException":
|
|
1655
|
-
throw await
|
|
1637
|
+
throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
|
|
1656
1638
|
case "ServiceQuotaExceededException":
|
|
1657
1639
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1658
|
-
throw await
|
|
1640
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1659
1641
|
case "ThrottlingException":
|
|
1660
1642
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1661
|
-
throw await
|
|
1643
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1662
1644
|
case "ValidationException":
|
|
1663
1645
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1664
|
-
throw await
|
|
1646
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1665
1647
|
default:
|
|
1666
1648
|
const parsedBody = parsedOutput.body;
|
|
1667
1649
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1672,9 +1654,9 @@ const deserializeAws_restJson1ExecuteQueryCommandError = async (output, context)
|
|
|
1672
1654
|
});
|
|
1673
1655
|
}
|
|
1674
1656
|
};
|
|
1675
|
-
const
|
|
1657
|
+
const de_GetComponentTypeCommand = async (output, context) => {
|
|
1676
1658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1677
|
-
return
|
|
1659
|
+
return de_GetComponentTypeCommandError(output, context);
|
|
1678
1660
|
}
|
|
1679
1661
|
const contents = map({
|
|
1680
1662
|
$metadata: deserializeMetadata(output),
|
|
@@ -1696,10 +1678,10 @@ const deserializeAws_restJson1GetComponentTypeCommand = async (output, context)
|
|
|
1696
1678
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1697
1679
|
}
|
|
1698
1680
|
if (data.extendsFrom != null) {
|
|
1699
|
-
contents.extendsFrom =
|
|
1681
|
+
contents.extendsFrom = de_ExtendsFrom(data.extendsFrom, context);
|
|
1700
1682
|
}
|
|
1701
1683
|
if (data.functions != null) {
|
|
1702
|
-
contents.functions =
|
|
1684
|
+
contents.functions = de_FunctionsResponse(data.functions, context);
|
|
1703
1685
|
}
|
|
1704
1686
|
if (data.isAbstract != null) {
|
|
1705
1687
|
contents.isAbstract = (0, smithy_client_1.expectBoolean)(data.isAbstract);
|
|
@@ -1711,13 +1693,13 @@ const deserializeAws_restJson1GetComponentTypeCommand = async (output, context)
|
|
|
1711
1693
|
contents.isSingleton = (0, smithy_client_1.expectBoolean)(data.isSingleton);
|
|
1712
1694
|
}
|
|
1713
1695
|
if (data.propertyDefinitions != null) {
|
|
1714
|
-
contents.propertyDefinitions =
|
|
1696
|
+
contents.propertyDefinitions = de_PropertyDefinitionsResponse(data.propertyDefinitions, context);
|
|
1715
1697
|
}
|
|
1716
1698
|
if (data.propertyGroups != null) {
|
|
1717
|
-
contents.propertyGroups =
|
|
1699
|
+
contents.propertyGroups = de_PropertyGroupsResponse(data.propertyGroups, context);
|
|
1718
1700
|
}
|
|
1719
1701
|
if (data.status != null) {
|
|
1720
|
-
contents.status =
|
|
1702
|
+
contents.status = de_Status(data.status, context);
|
|
1721
1703
|
}
|
|
1722
1704
|
if (data.syncSource != null) {
|
|
1723
1705
|
contents.syncSource = (0, smithy_client_1.expectString)(data.syncSource);
|
|
@@ -1730,8 +1712,8 @@ const deserializeAws_restJson1GetComponentTypeCommand = async (output, context)
|
|
|
1730
1712
|
}
|
|
1731
1713
|
return contents;
|
|
1732
1714
|
};
|
|
1733
|
-
exports.
|
|
1734
|
-
const
|
|
1715
|
+
exports.de_GetComponentTypeCommand = de_GetComponentTypeCommand;
|
|
1716
|
+
const de_GetComponentTypeCommandError = async (output, context) => {
|
|
1735
1717
|
const parsedOutput = {
|
|
1736
1718
|
...output,
|
|
1737
1719
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1740,19 +1722,19 @@ const deserializeAws_restJson1GetComponentTypeCommandError = async (output, cont
|
|
|
1740
1722
|
switch (errorCode) {
|
|
1741
1723
|
case "AccessDeniedException":
|
|
1742
1724
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1743
|
-
throw await
|
|
1725
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1744
1726
|
case "InternalServerException":
|
|
1745
1727
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1746
|
-
throw await
|
|
1728
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1747
1729
|
case "ResourceNotFoundException":
|
|
1748
1730
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1749
|
-
throw await
|
|
1731
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1750
1732
|
case "ThrottlingException":
|
|
1751
1733
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1752
|
-
throw await
|
|
1734
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1753
1735
|
case "ValidationException":
|
|
1754
1736
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1755
|
-
throw await
|
|
1737
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1756
1738
|
default:
|
|
1757
1739
|
const parsedBody = parsedOutput.body;
|
|
1758
1740
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1763,9 +1745,9 @@ const deserializeAws_restJson1GetComponentTypeCommandError = async (output, cont
|
|
|
1763
1745
|
});
|
|
1764
1746
|
}
|
|
1765
1747
|
};
|
|
1766
|
-
const
|
|
1748
|
+
const de_GetEntityCommand = async (output, context) => {
|
|
1767
1749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1768
|
-
return
|
|
1750
|
+
return de_GetEntityCommandError(output, context);
|
|
1769
1751
|
}
|
|
1770
1752
|
const contents = map({
|
|
1771
1753
|
$metadata: deserializeMetadata(output),
|
|
@@ -1775,7 +1757,7 @@ const deserializeAws_restJson1GetEntityCommand = async (output, context) => {
|
|
|
1775
1757
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1776
1758
|
}
|
|
1777
1759
|
if (data.components != null) {
|
|
1778
|
-
contents.components =
|
|
1760
|
+
contents.components = de_ComponentsMap(data.components, context);
|
|
1779
1761
|
}
|
|
1780
1762
|
if (data.creationDateTime != null) {
|
|
1781
1763
|
contents.creationDateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationDateTime)));
|
|
@@ -1796,7 +1778,7 @@ const deserializeAws_restJson1GetEntityCommand = async (output, context) => {
|
|
|
1796
1778
|
contents.parentEntityId = (0, smithy_client_1.expectString)(data.parentEntityId);
|
|
1797
1779
|
}
|
|
1798
1780
|
if (data.status != null) {
|
|
1799
|
-
contents.status =
|
|
1781
|
+
contents.status = de_Status(data.status, context);
|
|
1800
1782
|
}
|
|
1801
1783
|
if (data.syncSource != null) {
|
|
1802
1784
|
contents.syncSource = (0, smithy_client_1.expectString)(data.syncSource);
|
|
@@ -1809,8 +1791,8 @@ const deserializeAws_restJson1GetEntityCommand = async (output, context) => {
|
|
|
1809
1791
|
}
|
|
1810
1792
|
return contents;
|
|
1811
1793
|
};
|
|
1812
|
-
exports.
|
|
1813
|
-
const
|
|
1794
|
+
exports.de_GetEntityCommand = de_GetEntityCommand;
|
|
1795
|
+
const de_GetEntityCommandError = async (output, context) => {
|
|
1814
1796
|
const parsedOutput = {
|
|
1815
1797
|
...output,
|
|
1816
1798
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1819,19 +1801,19 @@ const deserializeAws_restJson1GetEntityCommandError = async (output, context) =>
|
|
|
1819
1801
|
switch (errorCode) {
|
|
1820
1802
|
case "InternalServerException":
|
|
1821
1803
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1822
|
-
throw await
|
|
1804
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1823
1805
|
case "ResourceNotFoundException":
|
|
1824
1806
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1825
|
-
throw await
|
|
1807
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1826
1808
|
case "ServiceQuotaExceededException":
|
|
1827
1809
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1828
|
-
throw await
|
|
1810
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1829
1811
|
case "ThrottlingException":
|
|
1830
1812
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1831
|
-
throw await
|
|
1813
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1832
1814
|
case "ValidationException":
|
|
1833
1815
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1834
|
-
throw await
|
|
1816
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1835
1817
|
default:
|
|
1836
1818
|
const parsedBody = parsedOutput.body;
|
|
1837
1819
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1842,24 +1824,24 @@ const deserializeAws_restJson1GetEntityCommandError = async (output, context) =>
|
|
|
1842
1824
|
});
|
|
1843
1825
|
}
|
|
1844
1826
|
};
|
|
1845
|
-
const
|
|
1827
|
+
const de_GetPricingPlanCommand = async (output, context) => {
|
|
1846
1828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1847
|
-
return
|
|
1829
|
+
return de_GetPricingPlanCommandError(output, context);
|
|
1848
1830
|
}
|
|
1849
1831
|
const contents = map({
|
|
1850
1832
|
$metadata: deserializeMetadata(output),
|
|
1851
1833
|
});
|
|
1852
1834
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1853
1835
|
if (data.currentPricingPlan != null) {
|
|
1854
|
-
contents.currentPricingPlan =
|
|
1836
|
+
contents.currentPricingPlan = de_PricingPlan(data.currentPricingPlan, context);
|
|
1855
1837
|
}
|
|
1856
1838
|
if (data.pendingPricingPlan != null) {
|
|
1857
|
-
contents.pendingPricingPlan =
|
|
1839
|
+
contents.pendingPricingPlan = de_PricingPlan(data.pendingPricingPlan, context);
|
|
1858
1840
|
}
|
|
1859
1841
|
return contents;
|
|
1860
1842
|
};
|
|
1861
|
-
exports.
|
|
1862
|
-
const
|
|
1843
|
+
exports.de_GetPricingPlanCommand = de_GetPricingPlanCommand;
|
|
1844
|
+
const de_GetPricingPlanCommandError = async (output, context) => {
|
|
1863
1845
|
const parsedOutput = {
|
|
1864
1846
|
...output,
|
|
1865
1847
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1868,16 +1850,16 @@ const deserializeAws_restJson1GetPricingPlanCommandError = async (output, contex
|
|
|
1868
1850
|
switch (errorCode) {
|
|
1869
1851
|
case "AccessDeniedException":
|
|
1870
1852
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1871
|
-
throw await
|
|
1853
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1872
1854
|
case "InternalServerException":
|
|
1873
1855
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1874
|
-
throw await
|
|
1856
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1875
1857
|
case "ThrottlingException":
|
|
1876
1858
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1877
|
-
throw await
|
|
1859
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1878
1860
|
case "ValidationException":
|
|
1879
1861
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1880
|
-
throw await
|
|
1862
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1881
1863
|
default:
|
|
1882
1864
|
const parsedBody = parsedOutput.body;
|
|
1883
1865
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1888,9 +1870,9 @@ const deserializeAws_restJson1GetPricingPlanCommandError = async (output, contex
|
|
|
1888
1870
|
});
|
|
1889
1871
|
}
|
|
1890
1872
|
};
|
|
1891
|
-
const
|
|
1873
|
+
const de_GetPropertyValueCommand = async (output, context) => {
|
|
1892
1874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1893
|
-
return
|
|
1875
|
+
return de_GetPropertyValueCommandError(output, context);
|
|
1894
1876
|
}
|
|
1895
1877
|
const contents = map({
|
|
1896
1878
|
$metadata: deserializeMetadata(output),
|
|
@@ -1900,15 +1882,15 @@ const deserializeAws_restJson1GetPropertyValueCommand = async (output, context)
|
|
|
1900
1882
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1901
1883
|
}
|
|
1902
1884
|
if (data.propertyValues != null) {
|
|
1903
|
-
contents.propertyValues =
|
|
1885
|
+
contents.propertyValues = de_PropertyLatestValueMap(data.propertyValues, context);
|
|
1904
1886
|
}
|
|
1905
1887
|
if (data.tabularPropertyValues != null) {
|
|
1906
|
-
contents.tabularPropertyValues =
|
|
1888
|
+
contents.tabularPropertyValues = de_TabularPropertyValues(data.tabularPropertyValues, context);
|
|
1907
1889
|
}
|
|
1908
1890
|
return contents;
|
|
1909
1891
|
};
|
|
1910
|
-
exports.
|
|
1911
|
-
const
|
|
1892
|
+
exports.de_GetPropertyValueCommand = de_GetPropertyValueCommand;
|
|
1893
|
+
const de_GetPropertyValueCommandError = async (output, context) => {
|
|
1912
1894
|
const parsedOutput = {
|
|
1913
1895
|
...output,
|
|
1914
1896
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1917,25 +1899,25 @@ const deserializeAws_restJson1GetPropertyValueCommandError = async (output, cont
|
|
|
1917
1899
|
switch (errorCode) {
|
|
1918
1900
|
case "AccessDeniedException":
|
|
1919
1901
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1920
|
-
throw await
|
|
1902
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1921
1903
|
case "ConnectorFailureException":
|
|
1922
1904
|
case "com.amazonaws.iottwinmaker#ConnectorFailureException":
|
|
1923
|
-
throw await
|
|
1905
|
+
throw await de_ConnectorFailureExceptionRes(parsedOutput, context);
|
|
1924
1906
|
case "ConnectorTimeoutException":
|
|
1925
1907
|
case "com.amazonaws.iottwinmaker#ConnectorTimeoutException":
|
|
1926
|
-
throw await
|
|
1908
|
+
throw await de_ConnectorTimeoutExceptionRes(parsedOutput, context);
|
|
1927
1909
|
case "InternalServerException":
|
|
1928
1910
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1929
|
-
throw await
|
|
1911
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1930
1912
|
case "ResourceNotFoundException":
|
|
1931
1913
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1932
|
-
throw await
|
|
1914
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1933
1915
|
case "ThrottlingException":
|
|
1934
1916
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1935
|
-
throw await
|
|
1917
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1936
1918
|
case "ValidationException":
|
|
1937
1919
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1938
|
-
throw await
|
|
1920
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1939
1921
|
default:
|
|
1940
1922
|
const parsedBody = parsedOutput.body;
|
|
1941
1923
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1946,9 +1928,9 @@ const deserializeAws_restJson1GetPropertyValueCommandError = async (output, cont
|
|
|
1946
1928
|
});
|
|
1947
1929
|
}
|
|
1948
1930
|
};
|
|
1949
|
-
const
|
|
1931
|
+
const de_GetPropertyValueHistoryCommand = async (output, context) => {
|
|
1950
1932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1951
|
-
return
|
|
1933
|
+
return de_GetPropertyValueHistoryCommandError(output, context);
|
|
1952
1934
|
}
|
|
1953
1935
|
const contents = map({
|
|
1954
1936
|
$metadata: deserializeMetadata(output),
|
|
@@ -1958,12 +1940,12 @@ const deserializeAws_restJson1GetPropertyValueHistoryCommand = async (output, co
|
|
|
1958
1940
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1959
1941
|
}
|
|
1960
1942
|
if (data.propertyValues != null) {
|
|
1961
|
-
contents.propertyValues =
|
|
1943
|
+
contents.propertyValues = de_PropertyValueList(data.propertyValues, context);
|
|
1962
1944
|
}
|
|
1963
1945
|
return contents;
|
|
1964
1946
|
};
|
|
1965
|
-
exports.
|
|
1966
|
-
const
|
|
1947
|
+
exports.de_GetPropertyValueHistoryCommand = de_GetPropertyValueHistoryCommand;
|
|
1948
|
+
const de_GetPropertyValueHistoryCommandError = async (output, context) => {
|
|
1967
1949
|
const parsedOutput = {
|
|
1968
1950
|
...output,
|
|
1969
1951
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1972,25 +1954,25 @@ const deserializeAws_restJson1GetPropertyValueHistoryCommandError = async (outpu
|
|
|
1972
1954
|
switch (errorCode) {
|
|
1973
1955
|
case "AccessDeniedException":
|
|
1974
1956
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1975
|
-
throw await
|
|
1957
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1976
1958
|
case "ConnectorFailureException":
|
|
1977
1959
|
case "com.amazonaws.iottwinmaker#ConnectorFailureException":
|
|
1978
|
-
throw await
|
|
1960
|
+
throw await de_ConnectorFailureExceptionRes(parsedOutput, context);
|
|
1979
1961
|
case "ConnectorTimeoutException":
|
|
1980
1962
|
case "com.amazonaws.iottwinmaker#ConnectorTimeoutException":
|
|
1981
|
-
throw await
|
|
1963
|
+
throw await de_ConnectorTimeoutExceptionRes(parsedOutput, context);
|
|
1982
1964
|
case "InternalServerException":
|
|
1983
1965
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1984
|
-
throw await
|
|
1966
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1985
1967
|
case "ResourceNotFoundException":
|
|
1986
1968
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1987
|
-
throw await
|
|
1969
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1988
1970
|
case "ThrottlingException":
|
|
1989
1971
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1990
|
-
throw await
|
|
1972
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1991
1973
|
case "ValidationException":
|
|
1992
1974
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1993
|
-
throw await
|
|
1975
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1994
1976
|
default:
|
|
1995
1977
|
const parsedBody = parsedOutput.body;
|
|
1996
1978
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2001,9 +1983,9 @@ const deserializeAws_restJson1GetPropertyValueHistoryCommandError = async (outpu
|
|
|
2001
1983
|
});
|
|
2002
1984
|
}
|
|
2003
1985
|
};
|
|
2004
|
-
const
|
|
1986
|
+
const de_GetSceneCommand = async (output, context) => {
|
|
2005
1987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
|
-
return
|
|
1988
|
+
return de_GetSceneCommandError(output, context);
|
|
2007
1989
|
}
|
|
2008
1990
|
const contents = map({
|
|
2009
1991
|
$metadata: deserializeMetadata(output),
|
|
@@ -2013,7 +1995,7 @@ const deserializeAws_restJson1GetSceneCommand = async (output, context) => {
|
|
|
2013
1995
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2014
1996
|
}
|
|
2015
1997
|
if (data.capabilities != null) {
|
|
2016
|
-
contents.capabilities =
|
|
1998
|
+
contents.capabilities = de_SceneCapabilities(data.capabilities, context);
|
|
2017
1999
|
}
|
|
2018
2000
|
if (data.contentLocation != null) {
|
|
2019
2001
|
contents.contentLocation = (0, smithy_client_1.expectString)(data.contentLocation);
|
|
@@ -2025,13 +2007,13 @@ const deserializeAws_restJson1GetSceneCommand = async (output, context) => {
|
|
|
2025
2007
|
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
2026
2008
|
}
|
|
2027
2009
|
if (data.generatedSceneMetadata != null) {
|
|
2028
|
-
contents.generatedSceneMetadata =
|
|
2010
|
+
contents.generatedSceneMetadata = de_GeneratedSceneMetadataMap(data.generatedSceneMetadata, context);
|
|
2029
2011
|
}
|
|
2030
2012
|
if (data.sceneId != null) {
|
|
2031
2013
|
contents.sceneId = (0, smithy_client_1.expectString)(data.sceneId);
|
|
2032
2014
|
}
|
|
2033
2015
|
if (data.sceneMetadata != null) {
|
|
2034
|
-
contents.sceneMetadata =
|
|
2016
|
+
contents.sceneMetadata = de_SceneMetadataMap(data.sceneMetadata, context);
|
|
2035
2017
|
}
|
|
2036
2018
|
if (data.updateDateTime != null) {
|
|
2037
2019
|
contents.updateDateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.updateDateTime)));
|
|
@@ -2041,8 +2023,8 @@ const deserializeAws_restJson1GetSceneCommand = async (output, context) => {
|
|
|
2041
2023
|
}
|
|
2042
2024
|
return contents;
|
|
2043
2025
|
};
|
|
2044
|
-
exports.
|
|
2045
|
-
const
|
|
2026
|
+
exports.de_GetSceneCommand = de_GetSceneCommand;
|
|
2027
|
+
const de_GetSceneCommandError = async (output, context) => {
|
|
2046
2028
|
const parsedOutput = {
|
|
2047
2029
|
...output,
|
|
2048
2030
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2051,19 +2033,19 @@ const deserializeAws_restJson1GetSceneCommandError = async (output, context) =>
|
|
|
2051
2033
|
switch (errorCode) {
|
|
2052
2034
|
case "AccessDeniedException":
|
|
2053
2035
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2054
|
-
throw await
|
|
2036
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2055
2037
|
case "InternalServerException":
|
|
2056
2038
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2057
|
-
throw await
|
|
2039
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2058
2040
|
case "ResourceNotFoundException":
|
|
2059
2041
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2060
|
-
throw await
|
|
2042
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2061
2043
|
case "ThrottlingException":
|
|
2062
2044
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2063
|
-
throw await
|
|
2045
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2064
2046
|
case "ValidationException":
|
|
2065
2047
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2066
|
-
throw await
|
|
2048
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2067
2049
|
default:
|
|
2068
2050
|
const parsedBody = parsedOutput.body;
|
|
2069
2051
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2074,9 +2056,9 @@ const deserializeAws_restJson1GetSceneCommandError = async (output, context) =>
|
|
|
2074
2056
|
});
|
|
2075
2057
|
}
|
|
2076
2058
|
};
|
|
2077
|
-
const
|
|
2059
|
+
const de_GetSyncJobCommand = async (output, context) => {
|
|
2078
2060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2079
|
-
return
|
|
2061
|
+
return de_GetSyncJobCommandError(output, context);
|
|
2080
2062
|
}
|
|
2081
2063
|
const contents = map({
|
|
2082
2064
|
$metadata: deserializeMetadata(output),
|
|
@@ -2089,7 +2071,7 @@ const deserializeAws_restJson1GetSyncJobCommand = async (output, context) => {
|
|
|
2089
2071
|
contents.creationDateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationDateTime)));
|
|
2090
2072
|
}
|
|
2091
2073
|
if (data.status != null) {
|
|
2092
|
-
contents.status =
|
|
2074
|
+
contents.status = de_SyncJobStatus(data.status, context);
|
|
2093
2075
|
}
|
|
2094
2076
|
if (data.syncRole != null) {
|
|
2095
2077
|
contents.syncRole = (0, smithy_client_1.expectString)(data.syncRole);
|
|
@@ -2105,8 +2087,8 @@ const deserializeAws_restJson1GetSyncJobCommand = async (output, context) => {
|
|
|
2105
2087
|
}
|
|
2106
2088
|
return contents;
|
|
2107
2089
|
};
|
|
2108
|
-
exports.
|
|
2109
|
-
const
|
|
2090
|
+
exports.de_GetSyncJobCommand = de_GetSyncJobCommand;
|
|
2091
|
+
const de_GetSyncJobCommandError = async (output, context) => {
|
|
2110
2092
|
const parsedOutput = {
|
|
2111
2093
|
...output,
|
|
2112
2094
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2115,22 +2097,22 @@ const deserializeAws_restJson1GetSyncJobCommandError = async (output, context) =
|
|
|
2115
2097
|
switch (errorCode) {
|
|
2116
2098
|
case "AccessDeniedException":
|
|
2117
2099
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2118
|
-
throw await
|
|
2100
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2119
2101
|
case "InternalServerException":
|
|
2120
2102
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2121
|
-
throw await
|
|
2103
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2122
2104
|
case "ResourceNotFoundException":
|
|
2123
2105
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2124
|
-
throw await
|
|
2106
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2125
2107
|
case "ServiceQuotaExceededException":
|
|
2126
2108
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2127
|
-
throw await
|
|
2109
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2128
2110
|
case "ThrottlingException":
|
|
2129
2111
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2130
|
-
throw await
|
|
2112
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2131
2113
|
case "ValidationException":
|
|
2132
2114
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2133
|
-
throw await
|
|
2115
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2134
2116
|
default:
|
|
2135
2117
|
const parsedBody = parsedOutput.body;
|
|
2136
2118
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2141,9 +2123,9 @@ const deserializeAws_restJson1GetSyncJobCommandError = async (output, context) =
|
|
|
2141
2123
|
});
|
|
2142
2124
|
}
|
|
2143
2125
|
};
|
|
2144
|
-
const
|
|
2126
|
+
const de_GetWorkspaceCommand = async (output, context) => {
|
|
2145
2127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2146
|
-
return
|
|
2128
|
+
return de_GetWorkspaceCommandError(output, context);
|
|
2147
2129
|
}
|
|
2148
2130
|
const contents = map({
|
|
2149
2131
|
$metadata: deserializeMetadata(output),
|
|
@@ -2172,8 +2154,8 @@ const deserializeAws_restJson1GetWorkspaceCommand = async (output, context) => {
|
|
|
2172
2154
|
}
|
|
2173
2155
|
return contents;
|
|
2174
2156
|
};
|
|
2175
|
-
exports.
|
|
2176
|
-
const
|
|
2157
|
+
exports.de_GetWorkspaceCommand = de_GetWorkspaceCommand;
|
|
2158
|
+
const de_GetWorkspaceCommandError = async (output, context) => {
|
|
2177
2159
|
const parsedOutput = {
|
|
2178
2160
|
...output,
|
|
2179
2161
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2182,19 +2164,19 @@ const deserializeAws_restJson1GetWorkspaceCommandError = async (output, context)
|
|
|
2182
2164
|
switch (errorCode) {
|
|
2183
2165
|
case "InternalServerException":
|
|
2184
2166
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2185
|
-
throw await
|
|
2167
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2186
2168
|
case "ResourceNotFoundException":
|
|
2187
2169
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2188
|
-
throw await
|
|
2170
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2189
2171
|
case "ServiceQuotaExceededException":
|
|
2190
2172
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2191
|
-
throw await
|
|
2173
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2192
2174
|
case "ThrottlingException":
|
|
2193
2175
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2194
|
-
throw await
|
|
2176
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2195
2177
|
case "ValidationException":
|
|
2196
2178
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2197
|
-
throw await
|
|
2179
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2198
2180
|
default:
|
|
2199
2181
|
const parsedBody = parsedOutput.body;
|
|
2200
2182
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2205,16 +2187,16 @@ const deserializeAws_restJson1GetWorkspaceCommandError = async (output, context)
|
|
|
2205
2187
|
});
|
|
2206
2188
|
}
|
|
2207
2189
|
};
|
|
2208
|
-
const
|
|
2190
|
+
const de_ListComponentTypesCommand = async (output, context) => {
|
|
2209
2191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2210
|
-
return
|
|
2192
|
+
return de_ListComponentTypesCommandError(output, context);
|
|
2211
2193
|
}
|
|
2212
2194
|
const contents = map({
|
|
2213
2195
|
$metadata: deserializeMetadata(output),
|
|
2214
2196
|
});
|
|
2215
2197
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2216
2198
|
if (data.componentTypeSummaries != null) {
|
|
2217
|
-
contents.componentTypeSummaries =
|
|
2199
|
+
contents.componentTypeSummaries = de_ComponentTypeSummaries(data.componentTypeSummaries, context);
|
|
2218
2200
|
}
|
|
2219
2201
|
if (data.maxResults != null) {
|
|
2220
2202
|
contents.maxResults = (0, smithy_client_1.expectInt32)(data.maxResults);
|
|
@@ -2227,8 +2209,8 @@ const deserializeAws_restJson1ListComponentTypesCommand = async (output, context
|
|
|
2227
2209
|
}
|
|
2228
2210
|
return contents;
|
|
2229
2211
|
};
|
|
2230
|
-
exports.
|
|
2231
|
-
const
|
|
2212
|
+
exports.de_ListComponentTypesCommand = de_ListComponentTypesCommand;
|
|
2213
|
+
const de_ListComponentTypesCommandError = async (output, context) => {
|
|
2232
2214
|
const parsedOutput = {
|
|
2233
2215
|
...output,
|
|
2234
2216
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2237,16 +2219,16 @@ const deserializeAws_restJson1ListComponentTypesCommandError = async (output, co
|
|
|
2237
2219
|
switch (errorCode) {
|
|
2238
2220
|
case "AccessDeniedException":
|
|
2239
2221
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2240
|
-
throw await
|
|
2222
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2241
2223
|
case "InternalServerException":
|
|
2242
2224
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2243
|
-
throw await
|
|
2225
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2244
2226
|
case "ThrottlingException":
|
|
2245
2227
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2246
|
-
throw await
|
|
2228
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2247
2229
|
case "ValidationException":
|
|
2248
2230
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2249
|
-
throw await
|
|
2231
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2250
2232
|
default:
|
|
2251
2233
|
const parsedBody = parsedOutput.body;
|
|
2252
2234
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2257,24 +2239,24 @@ const deserializeAws_restJson1ListComponentTypesCommandError = async (output, co
|
|
|
2257
2239
|
});
|
|
2258
2240
|
}
|
|
2259
2241
|
};
|
|
2260
|
-
const
|
|
2242
|
+
const de_ListEntitiesCommand = async (output, context) => {
|
|
2261
2243
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2262
|
-
return
|
|
2244
|
+
return de_ListEntitiesCommandError(output, context);
|
|
2263
2245
|
}
|
|
2264
2246
|
const contents = map({
|
|
2265
2247
|
$metadata: deserializeMetadata(output),
|
|
2266
2248
|
});
|
|
2267
2249
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2268
2250
|
if (data.entitySummaries != null) {
|
|
2269
|
-
contents.entitySummaries =
|
|
2251
|
+
contents.entitySummaries = de_EntitySummaries(data.entitySummaries, context);
|
|
2270
2252
|
}
|
|
2271
2253
|
if (data.nextToken != null) {
|
|
2272
2254
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2273
2255
|
}
|
|
2274
2256
|
return contents;
|
|
2275
2257
|
};
|
|
2276
|
-
exports.
|
|
2277
|
-
const
|
|
2258
|
+
exports.de_ListEntitiesCommand = de_ListEntitiesCommand;
|
|
2259
|
+
const de_ListEntitiesCommandError = async (output, context) => {
|
|
2278
2260
|
const parsedOutput = {
|
|
2279
2261
|
...output,
|
|
2280
2262
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2283,16 +2265,16 @@ const deserializeAws_restJson1ListEntitiesCommandError = async (output, context)
|
|
|
2283
2265
|
switch (errorCode) {
|
|
2284
2266
|
case "InternalServerException":
|
|
2285
2267
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2286
|
-
throw await
|
|
2268
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2287
2269
|
case "ServiceQuotaExceededException":
|
|
2288
2270
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2289
|
-
throw await
|
|
2271
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2290
2272
|
case "ThrottlingException":
|
|
2291
2273
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2292
|
-
throw await
|
|
2274
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2293
2275
|
case "ValidationException":
|
|
2294
2276
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2295
|
-
throw await
|
|
2277
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2296
2278
|
default:
|
|
2297
2279
|
const parsedBody = parsedOutput.body;
|
|
2298
2280
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2303,9 +2285,9 @@ const deserializeAws_restJson1ListEntitiesCommandError = async (output, context)
|
|
|
2303
2285
|
});
|
|
2304
2286
|
}
|
|
2305
2287
|
};
|
|
2306
|
-
const
|
|
2288
|
+
const de_ListScenesCommand = async (output, context) => {
|
|
2307
2289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2308
|
-
return
|
|
2290
|
+
return de_ListScenesCommandError(output, context);
|
|
2309
2291
|
}
|
|
2310
2292
|
const contents = map({
|
|
2311
2293
|
$metadata: deserializeMetadata(output),
|
|
@@ -2315,12 +2297,12 @@ const deserializeAws_restJson1ListScenesCommand = async (output, context) => {
|
|
|
2315
2297
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2316
2298
|
}
|
|
2317
2299
|
if (data.sceneSummaries != null) {
|
|
2318
|
-
contents.sceneSummaries =
|
|
2300
|
+
contents.sceneSummaries = de_SceneSummaries(data.sceneSummaries, context);
|
|
2319
2301
|
}
|
|
2320
2302
|
return contents;
|
|
2321
2303
|
};
|
|
2322
|
-
exports.
|
|
2323
|
-
const
|
|
2304
|
+
exports.de_ListScenesCommand = de_ListScenesCommand;
|
|
2305
|
+
const de_ListScenesCommandError = async (output, context) => {
|
|
2324
2306
|
const parsedOutput = {
|
|
2325
2307
|
...output,
|
|
2326
2308
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2329,16 +2311,16 @@ const deserializeAws_restJson1ListScenesCommandError = async (output, context) =
|
|
|
2329
2311
|
switch (errorCode) {
|
|
2330
2312
|
case "AccessDeniedException":
|
|
2331
2313
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2332
|
-
throw await
|
|
2314
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2333
2315
|
case "InternalServerException":
|
|
2334
2316
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2335
|
-
throw await
|
|
2317
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2336
2318
|
case "ThrottlingException":
|
|
2337
2319
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2338
|
-
throw await
|
|
2320
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2339
2321
|
case "ValidationException":
|
|
2340
2322
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2341
|
-
throw await
|
|
2323
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2342
2324
|
default:
|
|
2343
2325
|
const parsedBody = parsedOutput.body;
|
|
2344
2326
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2349,9 +2331,9 @@ const deserializeAws_restJson1ListScenesCommandError = async (output, context) =
|
|
|
2349
2331
|
});
|
|
2350
2332
|
}
|
|
2351
2333
|
};
|
|
2352
|
-
const
|
|
2334
|
+
const de_ListSyncJobsCommand = async (output, context) => {
|
|
2353
2335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2354
|
-
return
|
|
2336
|
+
return de_ListSyncJobsCommandError(output, context);
|
|
2355
2337
|
}
|
|
2356
2338
|
const contents = map({
|
|
2357
2339
|
$metadata: deserializeMetadata(output),
|
|
@@ -2361,12 +2343,12 @@ const deserializeAws_restJson1ListSyncJobsCommand = async (output, context) => {
|
|
|
2361
2343
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2362
2344
|
}
|
|
2363
2345
|
if (data.syncJobSummaries != null) {
|
|
2364
|
-
contents.syncJobSummaries =
|
|
2346
|
+
contents.syncJobSummaries = de_SyncJobSummaries(data.syncJobSummaries, context);
|
|
2365
2347
|
}
|
|
2366
2348
|
return contents;
|
|
2367
2349
|
};
|
|
2368
|
-
exports.
|
|
2369
|
-
const
|
|
2350
|
+
exports.de_ListSyncJobsCommand = de_ListSyncJobsCommand;
|
|
2351
|
+
const de_ListSyncJobsCommandError = async (output, context) => {
|
|
2370
2352
|
const parsedOutput = {
|
|
2371
2353
|
...output,
|
|
2372
2354
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2375,19 +2357,19 @@ const deserializeAws_restJson1ListSyncJobsCommandError = async (output, context)
|
|
|
2375
2357
|
switch (errorCode) {
|
|
2376
2358
|
case "AccessDeniedException":
|
|
2377
2359
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2378
|
-
throw await
|
|
2360
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2379
2361
|
case "InternalServerException":
|
|
2380
2362
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2381
|
-
throw await
|
|
2363
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2382
2364
|
case "ServiceQuotaExceededException":
|
|
2383
2365
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2384
|
-
throw await
|
|
2366
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2385
2367
|
case "ThrottlingException":
|
|
2386
2368
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2387
|
-
throw await
|
|
2369
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2388
2370
|
case "ValidationException":
|
|
2389
2371
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2390
|
-
throw await
|
|
2372
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2391
2373
|
default:
|
|
2392
2374
|
const parsedBody = parsedOutput.body;
|
|
2393
2375
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2398,9 +2380,9 @@ const deserializeAws_restJson1ListSyncJobsCommandError = async (output, context)
|
|
|
2398
2380
|
});
|
|
2399
2381
|
}
|
|
2400
2382
|
};
|
|
2401
|
-
const
|
|
2383
|
+
const de_ListSyncResourcesCommand = async (output, context) => {
|
|
2402
2384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2403
|
-
return
|
|
2385
|
+
return de_ListSyncResourcesCommandError(output, context);
|
|
2404
2386
|
}
|
|
2405
2387
|
const contents = map({
|
|
2406
2388
|
$metadata: deserializeMetadata(output),
|
|
@@ -2410,12 +2392,12 @@ const deserializeAws_restJson1ListSyncResourcesCommand = async (output, context)
|
|
|
2410
2392
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2411
2393
|
}
|
|
2412
2394
|
if (data.syncResources != null) {
|
|
2413
|
-
contents.syncResources =
|
|
2395
|
+
contents.syncResources = de_SyncResourceSummaries(data.syncResources, context);
|
|
2414
2396
|
}
|
|
2415
2397
|
return contents;
|
|
2416
2398
|
};
|
|
2417
|
-
exports.
|
|
2418
|
-
const
|
|
2399
|
+
exports.de_ListSyncResourcesCommand = de_ListSyncResourcesCommand;
|
|
2400
|
+
const de_ListSyncResourcesCommandError = async (output, context) => {
|
|
2419
2401
|
const parsedOutput = {
|
|
2420
2402
|
...output,
|
|
2421
2403
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2424,19 +2406,19 @@ const deserializeAws_restJson1ListSyncResourcesCommandError = async (output, con
|
|
|
2424
2406
|
switch (errorCode) {
|
|
2425
2407
|
case "AccessDeniedException":
|
|
2426
2408
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2427
|
-
throw await
|
|
2409
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2428
2410
|
case "InternalServerException":
|
|
2429
2411
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2430
|
-
throw await
|
|
2412
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2431
2413
|
case "ServiceQuotaExceededException":
|
|
2432
2414
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2433
|
-
throw await
|
|
2415
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2434
2416
|
case "ThrottlingException":
|
|
2435
2417
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2436
|
-
throw await
|
|
2418
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2437
2419
|
case "ValidationException":
|
|
2438
2420
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2439
|
-
throw await
|
|
2421
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2440
2422
|
default:
|
|
2441
2423
|
const parsedBody = parsedOutput.body;
|
|
2442
2424
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2447,9 +2429,9 @@ const deserializeAws_restJson1ListSyncResourcesCommandError = async (output, con
|
|
|
2447
2429
|
});
|
|
2448
2430
|
}
|
|
2449
2431
|
};
|
|
2450
|
-
const
|
|
2432
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2451
2433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2452
|
-
return
|
|
2434
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2453
2435
|
}
|
|
2454
2436
|
const contents = map({
|
|
2455
2437
|
$metadata: deserializeMetadata(output),
|
|
@@ -2459,12 +2441,12 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2459
2441
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2460
2442
|
}
|
|
2461
2443
|
if (data.tags != null) {
|
|
2462
|
-
contents.tags =
|
|
2444
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
2463
2445
|
}
|
|
2464
2446
|
return contents;
|
|
2465
2447
|
};
|
|
2466
|
-
exports.
|
|
2467
|
-
const
|
|
2448
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2449
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2468
2450
|
const parsedOutput = {
|
|
2469
2451
|
...output,
|
|
2470
2452
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2473,10 +2455,10 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2473
2455
|
switch (errorCode) {
|
|
2474
2456
|
case "AccessDeniedException":
|
|
2475
2457
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2476
|
-
throw await
|
|
2458
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2477
2459
|
case "ResourceNotFoundException":
|
|
2478
2460
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2479
|
-
throw await
|
|
2461
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2480
2462
|
default:
|
|
2481
2463
|
const parsedBody = parsedOutput.body;
|
|
2482
2464
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2487,9 +2469,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2487
2469
|
});
|
|
2488
2470
|
}
|
|
2489
2471
|
};
|
|
2490
|
-
const
|
|
2472
|
+
const de_ListWorkspacesCommand = async (output, context) => {
|
|
2491
2473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2492
|
-
return
|
|
2474
|
+
return de_ListWorkspacesCommandError(output, context);
|
|
2493
2475
|
}
|
|
2494
2476
|
const contents = map({
|
|
2495
2477
|
$metadata: deserializeMetadata(output),
|
|
@@ -2499,12 +2481,12 @@ const deserializeAws_restJson1ListWorkspacesCommand = async (output, context) =>
|
|
|
2499
2481
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2500
2482
|
}
|
|
2501
2483
|
if (data.workspaceSummaries != null) {
|
|
2502
|
-
contents.workspaceSummaries =
|
|
2484
|
+
contents.workspaceSummaries = de_WorkspaceSummaries(data.workspaceSummaries, context);
|
|
2503
2485
|
}
|
|
2504
2486
|
return contents;
|
|
2505
2487
|
};
|
|
2506
|
-
exports.
|
|
2507
|
-
const
|
|
2488
|
+
exports.de_ListWorkspacesCommand = de_ListWorkspacesCommand;
|
|
2489
|
+
const de_ListWorkspacesCommandError = async (output, context) => {
|
|
2508
2490
|
const parsedOutput = {
|
|
2509
2491
|
...output,
|
|
2510
2492
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2513,16 +2495,16 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
|
|
|
2513
2495
|
switch (errorCode) {
|
|
2514
2496
|
case "InternalServerException":
|
|
2515
2497
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2516
|
-
throw await
|
|
2498
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2517
2499
|
case "ServiceQuotaExceededException":
|
|
2518
2500
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2519
|
-
throw await
|
|
2501
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2520
2502
|
case "ThrottlingException":
|
|
2521
2503
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2522
|
-
throw await
|
|
2504
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2523
2505
|
case "ValidationException":
|
|
2524
2506
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2525
|
-
throw await
|
|
2507
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2526
2508
|
default:
|
|
2527
2509
|
const parsedBody = parsedOutput.body;
|
|
2528
2510
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2533,9 +2515,9 @@ const deserializeAws_restJson1ListWorkspacesCommandError = async (output, contex
|
|
|
2533
2515
|
});
|
|
2534
2516
|
}
|
|
2535
2517
|
};
|
|
2536
|
-
const
|
|
2518
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
2537
2519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2538
|
-
return
|
|
2520
|
+
return de_TagResourceCommandError(output, context);
|
|
2539
2521
|
}
|
|
2540
2522
|
const contents = map({
|
|
2541
2523
|
$metadata: deserializeMetadata(output),
|
|
@@ -2543,8 +2525,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
2543
2525
|
await collectBody(output.body, context);
|
|
2544
2526
|
return contents;
|
|
2545
2527
|
};
|
|
2546
|
-
exports.
|
|
2547
|
-
const
|
|
2528
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2529
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2548
2530
|
const parsedOutput = {
|
|
2549
2531
|
...output,
|
|
2550
2532
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2553,13 +2535,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2553
2535
|
switch (errorCode) {
|
|
2554
2536
|
case "AccessDeniedException":
|
|
2555
2537
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2556
|
-
throw await
|
|
2538
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2557
2539
|
case "ResourceNotFoundException":
|
|
2558
2540
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2559
|
-
throw await
|
|
2541
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2560
2542
|
case "TooManyTagsException":
|
|
2561
2543
|
case "com.amazonaws.iottwinmaker#TooManyTagsException":
|
|
2562
|
-
throw await
|
|
2544
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2563
2545
|
default:
|
|
2564
2546
|
const parsedBody = parsedOutput.body;
|
|
2565
2547
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2570,9 +2552,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2570
2552
|
});
|
|
2571
2553
|
}
|
|
2572
2554
|
};
|
|
2573
|
-
const
|
|
2555
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
2574
2556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2575
|
-
return
|
|
2557
|
+
return de_UntagResourceCommandError(output, context);
|
|
2576
2558
|
}
|
|
2577
2559
|
const contents = map({
|
|
2578
2560
|
$metadata: deserializeMetadata(output),
|
|
@@ -2580,8 +2562,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
2580
2562
|
await collectBody(output.body, context);
|
|
2581
2563
|
return contents;
|
|
2582
2564
|
};
|
|
2583
|
-
exports.
|
|
2584
|
-
const
|
|
2565
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2566
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2585
2567
|
const parsedOutput = {
|
|
2586
2568
|
...output,
|
|
2587
2569
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2590,10 +2572,10 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2590
2572
|
switch (errorCode) {
|
|
2591
2573
|
case "AccessDeniedException":
|
|
2592
2574
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2593
|
-
throw await
|
|
2575
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2594
2576
|
case "ResourceNotFoundException":
|
|
2595
2577
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2596
|
-
throw await
|
|
2578
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2597
2579
|
default:
|
|
2598
2580
|
const parsedBody = parsedOutput.body;
|
|
2599
2581
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2604,9 +2586,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2604
2586
|
});
|
|
2605
2587
|
}
|
|
2606
2588
|
};
|
|
2607
|
-
const
|
|
2589
|
+
const de_UpdateComponentTypeCommand = async (output, context) => {
|
|
2608
2590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2609
|
-
return
|
|
2591
|
+
return de_UpdateComponentTypeCommandError(output, context);
|
|
2610
2592
|
}
|
|
2611
2593
|
const contents = map({
|
|
2612
2594
|
$metadata: deserializeMetadata(output),
|
|
@@ -2626,8 +2608,8 @@ const deserializeAws_restJson1UpdateComponentTypeCommand = async (output, contex
|
|
|
2626
2608
|
}
|
|
2627
2609
|
return contents;
|
|
2628
2610
|
};
|
|
2629
|
-
exports.
|
|
2630
|
-
const
|
|
2611
|
+
exports.de_UpdateComponentTypeCommand = de_UpdateComponentTypeCommand;
|
|
2612
|
+
const de_UpdateComponentTypeCommandError = async (output, context) => {
|
|
2631
2613
|
const parsedOutput = {
|
|
2632
2614
|
...output,
|
|
2633
2615
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2636,22 +2618,22 @@ const deserializeAws_restJson1UpdateComponentTypeCommandError = async (output, c
|
|
|
2636
2618
|
switch (errorCode) {
|
|
2637
2619
|
case "AccessDeniedException":
|
|
2638
2620
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2639
|
-
throw await
|
|
2621
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2640
2622
|
case "InternalServerException":
|
|
2641
2623
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2642
|
-
throw await
|
|
2624
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2643
2625
|
case "ResourceNotFoundException":
|
|
2644
2626
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2645
|
-
throw await
|
|
2627
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2646
2628
|
case "ServiceQuotaExceededException":
|
|
2647
2629
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2648
|
-
throw await
|
|
2630
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2649
2631
|
case "ThrottlingException":
|
|
2650
2632
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2651
|
-
throw await
|
|
2633
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2652
2634
|
case "ValidationException":
|
|
2653
2635
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2654
|
-
throw await
|
|
2636
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2655
2637
|
default:
|
|
2656
2638
|
const parsedBody = parsedOutput.body;
|
|
2657
2639
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2662,9 +2644,9 @@ const deserializeAws_restJson1UpdateComponentTypeCommandError = async (output, c
|
|
|
2662
2644
|
});
|
|
2663
2645
|
}
|
|
2664
2646
|
};
|
|
2665
|
-
const
|
|
2647
|
+
const de_UpdateEntityCommand = async (output, context) => {
|
|
2666
2648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2667
|
-
return
|
|
2649
|
+
return de_UpdateEntityCommandError(output, context);
|
|
2668
2650
|
}
|
|
2669
2651
|
const contents = map({
|
|
2670
2652
|
$metadata: deserializeMetadata(output),
|
|
@@ -2678,8 +2660,8 @@ const deserializeAws_restJson1UpdateEntityCommand = async (output, context) => {
|
|
|
2678
2660
|
}
|
|
2679
2661
|
return contents;
|
|
2680
2662
|
};
|
|
2681
|
-
exports.
|
|
2682
|
-
const
|
|
2663
|
+
exports.de_UpdateEntityCommand = de_UpdateEntityCommand;
|
|
2664
|
+
const de_UpdateEntityCommandError = async (output, context) => {
|
|
2683
2665
|
const parsedOutput = {
|
|
2684
2666
|
...output,
|
|
2685
2667
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2688,25 +2670,25 @@ const deserializeAws_restJson1UpdateEntityCommandError = async (output, context)
|
|
|
2688
2670
|
switch (errorCode) {
|
|
2689
2671
|
case "AccessDeniedException":
|
|
2690
2672
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2691
|
-
throw await
|
|
2673
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2692
2674
|
case "ConflictException":
|
|
2693
2675
|
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
2694
|
-
throw await
|
|
2676
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2695
2677
|
case "InternalServerException":
|
|
2696
2678
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2697
|
-
throw await
|
|
2679
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2698
2680
|
case "ResourceNotFoundException":
|
|
2699
2681
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2700
|
-
throw await
|
|
2682
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2701
2683
|
case "ServiceQuotaExceededException":
|
|
2702
2684
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2703
|
-
throw await
|
|
2685
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2704
2686
|
case "ThrottlingException":
|
|
2705
2687
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2706
|
-
throw await
|
|
2688
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2707
2689
|
case "ValidationException":
|
|
2708
2690
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2709
|
-
throw await
|
|
2691
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2710
2692
|
default:
|
|
2711
2693
|
const parsedBody = parsedOutput.body;
|
|
2712
2694
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2717,24 +2699,24 @@ const deserializeAws_restJson1UpdateEntityCommandError = async (output, context)
|
|
|
2717
2699
|
});
|
|
2718
2700
|
}
|
|
2719
2701
|
};
|
|
2720
|
-
const
|
|
2702
|
+
const de_UpdatePricingPlanCommand = async (output, context) => {
|
|
2721
2703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2722
|
-
return
|
|
2704
|
+
return de_UpdatePricingPlanCommandError(output, context);
|
|
2723
2705
|
}
|
|
2724
2706
|
const contents = map({
|
|
2725
2707
|
$metadata: deserializeMetadata(output),
|
|
2726
2708
|
});
|
|
2727
2709
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2728
2710
|
if (data.currentPricingPlan != null) {
|
|
2729
|
-
contents.currentPricingPlan =
|
|
2711
|
+
contents.currentPricingPlan = de_PricingPlan(data.currentPricingPlan, context);
|
|
2730
2712
|
}
|
|
2731
2713
|
if (data.pendingPricingPlan != null) {
|
|
2732
|
-
contents.pendingPricingPlan =
|
|
2714
|
+
contents.pendingPricingPlan = de_PricingPlan(data.pendingPricingPlan, context);
|
|
2733
2715
|
}
|
|
2734
2716
|
return contents;
|
|
2735
2717
|
};
|
|
2736
|
-
exports.
|
|
2737
|
-
const
|
|
2718
|
+
exports.de_UpdatePricingPlanCommand = de_UpdatePricingPlanCommand;
|
|
2719
|
+
const de_UpdatePricingPlanCommandError = async (output, context) => {
|
|
2738
2720
|
const parsedOutput = {
|
|
2739
2721
|
...output,
|
|
2740
2722
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2743,16 +2725,16 @@ const deserializeAws_restJson1UpdatePricingPlanCommandError = async (output, con
|
|
|
2743
2725
|
switch (errorCode) {
|
|
2744
2726
|
case "AccessDeniedException":
|
|
2745
2727
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2746
|
-
throw await
|
|
2728
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2747
2729
|
case "InternalServerException":
|
|
2748
2730
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2749
|
-
throw await
|
|
2731
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2750
2732
|
case "ThrottlingException":
|
|
2751
2733
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2752
|
-
throw await
|
|
2734
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2753
2735
|
case "ValidationException":
|
|
2754
2736
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2755
|
-
throw await
|
|
2737
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2756
2738
|
default:
|
|
2757
2739
|
const parsedBody = parsedOutput.body;
|
|
2758
2740
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2763,9 +2745,9 @@ const deserializeAws_restJson1UpdatePricingPlanCommandError = async (output, con
|
|
|
2763
2745
|
});
|
|
2764
2746
|
}
|
|
2765
2747
|
};
|
|
2766
|
-
const
|
|
2748
|
+
const de_UpdateSceneCommand = async (output, context) => {
|
|
2767
2749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2768
|
-
return
|
|
2750
|
+
return de_UpdateSceneCommandError(output, context);
|
|
2769
2751
|
}
|
|
2770
2752
|
const contents = map({
|
|
2771
2753
|
$metadata: deserializeMetadata(output),
|
|
@@ -2776,8 +2758,8 @@ const deserializeAws_restJson1UpdateSceneCommand = async (output, context) => {
|
|
|
2776
2758
|
}
|
|
2777
2759
|
return contents;
|
|
2778
2760
|
};
|
|
2779
|
-
exports.
|
|
2780
|
-
const
|
|
2761
|
+
exports.de_UpdateSceneCommand = de_UpdateSceneCommand;
|
|
2762
|
+
const de_UpdateSceneCommandError = async (output, context) => {
|
|
2781
2763
|
const parsedOutput = {
|
|
2782
2764
|
...output,
|
|
2783
2765
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2786,19 +2768,19 @@ const deserializeAws_restJson1UpdateSceneCommandError = async (output, context)
|
|
|
2786
2768
|
switch (errorCode) {
|
|
2787
2769
|
case "AccessDeniedException":
|
|
2788
2770
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2789
|
-
throw await
|
|
2771
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2790
2772
|
case "InternalServerException":
|
|
2791
2773
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2792
|
-
throw await
|
|
2774
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2793
2775
|
case "ResourceNotFoundException":
|
|
2794
2776
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2795
|
-
throw await
|
|
2777
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2796
2778
|
case "ThrottlingException":
|
|
2797
2779
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2798
|
-
throw await
|
|
2780
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2799
2781
|
case "ValidationException":
|
|
2800
2782
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2801
|
-
throw await
|
|
2783
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2802
2784
|
default:
|
|
2803
2785
|
const parsedBody = parsedOutput.body;
|
|
2804
2786
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2809,9 +2791,9 @@ const deserializeAws_restJson1UpdateSceneCommandError = async (output, context)
|
|
|
2809
2791
|
});
|
|
2810
2792
|
}
|
|
2811
2793
|
};
|
|
2812
|
-
const
|
|
2794
|
+
const de_UpdateWorkspaceCommand = async (output, context) => {
|
|
2813
2795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2814
|
-
return
|
|
2796
|
+
return de_UpdateWorkspaceCommandError(output, context);
|
|
2815
2797
|
}
|
|
2816
2798
|
const contents = map({
|
|
2817
2799
|
$metadata: deserializeMetadata(output),
|
|
@@ -2822,8 +2804,8 @@ const deserializeAws_restJson1UpdateWorkspaceCommand = async (output, context) =
|
|
|
2822
2804
|
}
|
|
2823
2805
|
return contents;
|
|
2824
2806
|
};
|
|
2825
|
-
exports.
|
|
2826
|
-
const
|
|
2807
|
+
exports.de_UpdateWorkspaceCommand = de_UpdateWorkspaceCommand;
|
|
2808
|
+
const de_UpdateWorkspaceCommandError = async (output, context) => {
|
|
2827
2809
|
const parsedOutput = {
|
|
2828
2810
|
...output,
|
|
2829
2811
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2832,22 +2814,22 @@ const deserializeAws_restJson1UpdateWorkspaceCommandError = async (output, conte
|
|
|
2832
2814
|
switch (errorCode) {
|
|
2833
2815
|
case "AccessDeniedException":
|
|
2834
2816
|
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2835
|
-
throw await
|
|
2817
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2836
2818
|
case "InternalServerException":
|
|
2837
2819
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2838
|
-
throw await
|
|
2820
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2839
2821
|
case "ResourceNotFoundException":
|
|
2840
2822
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2841
|
-
throw await
|
|
2823
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2842
2824
|
case "ServiceQuotaExceededException":
|
|
2843
2825
|
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2844
|
-
throw await
|
|
2826
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2845
2827
|
case "ThrottlingException":
|
|
2846
2828
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2847
|
-
throw await
|
|
2829
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2848
2830
|
case "ValidationException":
|
|
2849
2831
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2850
|
-
throw await
|
|
2832
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2851
2833
|
default:
|
|
2852
2834
|
const parsedBody = parsedOutput.body;
|
|
2853
2835
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2859,7 +2841,7 @@ const deserializeAws_restJson1UpdateWorkspaceCommandError = async (output, conte
|
|
|
2859
2841
|
}
|
|
2860
2842
|
};
|
|
2861
2843
|
const map = smithy_client_1.map;
|
|
2862
|
-
const
|
|
2844
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2863
2845
|
const contents = map({});
|
|
2864
2846
|
const data = parsedOutput.body;
|
|
2865
2847
|
if (data.message != null) {
|
|
@@ -2871,7 +2853,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2871
2853
|
});
|
|
2872
2854
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2873
2855
|
};
|
|
2874
|
-
const
|
|
2856
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2875
2857
|
const contents = map({});
|
|
2876
2858
|
const data = parsedOutput.body;
|
|
2877
2859
|
if (data.message != null) {
|
|
@@ -2883,7 +2865,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2883
2865
|
});
|
|
2884
2866
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2885
2867
|
};
|
|
2886
|
-
const
|
|
2868
|
+
const de_ConnectorFailureExceptionRes = async (parsedOutput, context) => {
|
|
2887
2869
|
const contents = map({});
|
|
2888
2870
|
const data = parsedOutput.body;
|
|
2889
2871
|
if (data.message != null) {
|
|
@@ -2895,7 +2877,7 @@ const deserializeAws_restJson1ConnectorFailureExceptionResponse = async (parsedO
|
|
|
2895
2877
|
});
|
|
2896
2878
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2897
2879
|
};
|
|
2898
|
-
const
|
|
2880
|
+
const de_ConnectorTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2899
2881
|
const contents = map({});
|
|
2900
2882
|
const data = parsedOutput.body;
|
|
2901
2883
|
if (data.message != null) {
|
|
@@ -2907,7 +2889,7 @@ const deserializeAws_restJson1ConnectorTimeoutExceptionResponse = async (parsedO
|
|
|
2907
2889
|
});
|
|
2908
2890
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2909
2891
|
};
|
|
2910
|
-
const
|
|
2892
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2911
2893
|
const contents = map({});
|
|
2912
2894
|
const data = parsedOutput.body;
|
|
2913
2895
|
if (data.message != null) {
|
|
@@ -2919,7 +2901,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2919
2901
|
});
|
|
2920
2902
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2921
2903
|
};
|
|
2922
|
-
const
|
|
2904
|
+
const de_QueryTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2923
2905
|
const contents = map({});
|
|
2924
2906
|
const data = parsedOutput.body;
|
|
2925
2907
|
if (data.message != null) {
|
|
@@ -2931,7 +2913,7 @@ const deserializeAws_restJson1QueryTimeoutExceptionResponse = async (parsedOutpu
|
|
|
2931
2913
|
});
|
|
2932
2914
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2933
2915
|
};
|
|
2934
|
-
const
|
|
2916
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2935
2917
|
const contents = map({});
|
|
2936
2918
|
const data = parsedOutput.body;
|
|
2937
2919
|
if (data.message != null) {
|
|
@@ -2943,7 +2925,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2943
2925
|
});
|
|
2944
2926
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2945
2927
|
};
|
|
2946
|
-
const
|
|
2928
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2947
2929
|
const contents = map({});
|
|
2948
2930
|
const data = parsedOutput.body;
|
|
2949
2931
|
if (data.message != null) {
|
|
@@ -2955,7 +2937,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
2955
2937
|
});
|
|
2956
2938
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2957
2939
|
};
|
|
2958
|
-
const
|
|
2940
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2959
2941
|
const contents = map({});
|
|
2960
2942
|
const data = parsedOutput.body;
|
|
2961
2943
|
if (data.message != null) {
|
|
@@ -2967,7 +2949,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2967
2949
|
});
|
|
2968
2950
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2969
2951
|
};
|
|
2970
|
-
const
|
|
2952
|
+
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2971
2953
|
const contents = map({});
|
|
2972
2954
|
const data = parsedOutput.body;
|
|
2973
2955
|
if (data.message != null) {
|
|
@@ -2979,7 +2961,7 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
|
|
|
2979
2961
|
});
|
|
2980
2962
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2981
2963
|
};
|
|
2982
|
-
const
|
|
2964
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2983
2965
|
const contents = map({});
|
|
2984
2966
|
const data = parsedOutput.body;
|
|
2985
2967
|
if (data.message != null) {
|
|
@@ -2991,66 +2973,62 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2991
2973
|
});
|
|
2992
2974
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2993
2975
|
};
|
|
2994
|
-
const
|
|
2976
|
+
const se_ComponentPropertyGroupRequest = (input, context) => {
|
|
2995
2977
|
return {
|
|
2996
2978
|
...(input.groupType != null && { groupType: input.groupType }),
|
|
2997
|
-
...(input.propertyNames != null && {
|
|
2998
|
-
propertyNames: serializeAws_restJson1PropertyNames(input.propertyNames, context),
|
|
2999
|
-
}),
|
|
2979
|
+
...(input.propertyNames != null && { propertyNames: se_PropertyNames(input.propertyNames, context) }),
|
|
3000
2980
|
...(input.updateType != null && { updateType: input.updateType }),
|
|
3001
2981
|
};
|
|
3002
2982
|
};
|
|
3003
|
-
const
|
|
2983
|
+
const se_ComponentPropertyGroupRequests = (input, context) => {
|
|
3004
2984
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3005
2985
|
if (value === null) {
|
|
3006
2986
|
return acc;
|
|
3007
2987
|
}
|
|
3008
|
-
acc[key] =
|
|
2988
|
+
acc[key] = se_ComponentPropertyGroupRequest(value, context);
|
|
3009
2989
|
return acc;
|
|
3010
2990
|
}, {});
|
|
3011
2991
|
};
|
|
3012
|
-
const
|
|
2992
|
+
const se_ComponentRequest = (input, context) => {
|
|
3013
2993
|
return {
|
|
3014
2994
|
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
3015
2995
|
...(input.description != null && { description: input.description }),
|
|
3016
|
-
...(input.properties != null && { properties:
|
|
2996
|
+
...(input.properties != null && { properties: se_PropertyRequests(input.properties, context) }),
|
|
3017
2997
|
...(input.propertyGroups != null && {
|
|
3018
|
-
propertyGroups:
|
|
2998
|
+
propertyGroups: se_ComponentPropertyGroupRequests(input.propertyGroups, context),
|
|
3019
2999
|
}),
|
|
3020
3000
|
};
|
|
3021
3001
|
};
|
|
3022
|
-
const
|
|
3002
|
+
const se_ComponentsMapRequest = (input, context) => {
|
|
3023
3003
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3024
3004
|
if (value === null) {
|
|
3025
3005
|
return acc;
|
|
3026
3006
|
}
|
|
3027
|
-
acc[key] =
|
|
3007
|
+
acc[key] = se_ComponentRequest(value, context);
|
|
3028
3008
|
return acc;
|
|
3029
3009
|
}, {});
|
|
3030
3010
|
};
|
|
3031
|
-
const
|
|
3011
|
+
const se_ComponentUpdateRequest = (input, context) => {
|
|
3032
3012
|
return {
|
|
3033
3013
|
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
3034
3014
|
...(input.description != null && { description: input.description }),
|
|
3035
3015
|
...(input.propertyGroupUpdates != null && {
|
|
3036
|
-
propertyGroupUpdates:
|
|
3037
|
-
}),
|
|
3038
|
-
...(input.propertyUpdates != null && {
|
|
3039
|
-
propertyUpdates: serializeAws_restJson1PropertyRequests(input.propertyUpdates, context),
|
|
3016
|
+
propertyGroupUpdates: se_ComponentPropertyGroupRequests(input.propertyGroupUpdates, context),
|
|
3040
3017
|
}),
|
|
3018
|
+
...(input.propertyUpdates != null && { propertyUpdates: se_PropertyRequests(input.propertyUpdates, context) }),
|
|
3041
3019
|
...(input.updateType != null && { updateType: input.updateType }),
|
|
3042
3020
|
};
|
|
3043
3021
|
};
|
|
3044
|
-
const
|
|
3022
|
+
const se_ComponentUpdatesMapRequest = (input, context) => {
|
|
3045
3023
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3046
3024
|
if (value === null) {
|
|
3047
3025
|
return acc;
|
|
3048
3026
|
}
|
|
3049
|
-
acc[key] =
|
|
3027
|
+
acc[key] = se_ComponentUpdateRequest(value, context);
|
|
3050
3028
|
return acc;
|
|
3051
3029
|
}, {});
|
|
3052
3030
|
};
|
|
3053
|
-
const
|
|
3031
|
+
const se_Configuration = (input, context) => {
|
|
3054
3032
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3055
3033
|
if (value === null) {
|
|
3056
3034
|
return acc;
|
|
@@ -3059,81 +3037,77 @@ const serializeAws_restJson1Configuration = (input, context) => {
|
|
|
3059
3037
|
return acc;
|
|
3060
3038
|
}, {});
|
|
3061
3039
|
};
|
|
3062
|
-
const
|
|
3040
|
+
const se_DataConnector = (input, context) => {
|
|
3063
3041
|
return {
|
|
3064
3042
|
...(input.isNative != null && { isNative: input.isNative }),
|
|
3065
|
-
...(input.lambda != null && { lambda:
|
|
3043
|
+
...(input.lambda != null && { lambda: se_LambdaFunction(input.lambda, context) }),
|
|
3066
3044
|
};
|
|
3067
3045
|
};
|
|
3068
|
-
const
|
|
3046
|
+
const se_DataType = (input, context) => {
|
|
3069
3047
|
return {
|
|
3070
|
-
...(input.allowedValues != null && {
|
|
3071
|
-
|
|
3072
|
-
}),
|
|
3073
|
-
...(input.nestedType != null && { nestedType: serializeAws_restJson1DataType(input.nestedType, context) }),
|
|
3074
|
-
...(input.relationship != null && {
|
|
3075
|
-
relationship: serializeAws_restJson1Relationship(input.relationship, context),
|
|
3076
|
-
}),
|
|
3048
|
+
...(input.allowedValues != null && { allowedValues: se_DataValueList(input.allowedValues, context) }),
|
|
3049
|
+
...(input.nestedType != null && { nestedType: se_DataType(input.nestedType, context) }),
|
|
3050
|
+
...(input.relationship != null && { relationship: se_Relationship(input.relationship, context) }),
|
|
3077
3051
|
...(input.type != null && { type: input.type }),
|
|
3078
3052
|
...(input.unitOfMeasure != null && { unitOfMeasure: input.unitOfMeasure }),
|
|
3079
3053
|
};
|
|
3080
3054
|
};
|
|
3081
|
-
const
|
|
3055
|
+
const se_DataValue = (input, context) => {
|
|
3082
3056
|
return {
|
|
3083
3057
|
...(input.booleanValue != null && { booleanValue: input.booleanValue }),
|
|
3084
3058
|
...(input.doubleValue != null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
|
|
3085
3059
|
...(input.expression != null && { expression: input.expression }),
|
|
3086
3060
|
...(input.integerValue != null && { integerValue: input.integerValue }),
|
|
3087
|
-
...(input.listValue != null && { listValue:
|
|
3061
|
+
...(input.listValue != null && { listValue: se_DataValueList(input.listValue, context) }),
|
|
3088
3062
|
...(input.longValue != null && { longValue: input.longValue }),
|
|
3089
|
-
...(input.mapValue != null && { mapValue:
|
|
3063
|
+
...(input.mapValue != null && { mapValue: se_DataValueMap(input.mapValue, context) }),
|
|
3090
3064
|
...(input.relationshipValue != null && {
|
|
3091
|
-
relationshipValue:
|
|
3065
|
+
relationshipValue: se_RelationshipValue(input.relationshipValue, context),
|
|
3092
3066
|
}),
|
|
3093
3067
|
...(input.stringValue != null && { stringValue: input.stringValue }),
|
|
3094
3068
|
};
|
|
3095
3069
|
};
|
|
3096
|
-
const
|
|
3070
|
+
const se_DataValueList = (input, context) => {
|
|
3097
3071
|
return input
|
|
3098
3072
|
.filter((e) => e != null)
|
|
3099
3073
|
.map((entry) => {
|
|
3100
|
-
return
|
|
3074
|
+
return se_DataValue(entry, context);
|
|
3101
3075
|
});
|
|
3102
3076
|
};
|
|
3103
|
-
const
|
|
3077
|
+
const se_DataValueMap = (input, context) => {
|
|
3104
3078
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3105
3079
|
if (value === null) {
|
|
3106
3080
|
return acc;
|
|
3107
3081
|
}
|
|
3108
|
-
acc[key] =
|
|
3082
|
+
acc[key] = se_DataValue(value, context);
|
|
3109
3083
|
return acc;
|
|
3110
3084
|
}, {});
|
|
3111
3085
|
};
|
|
3112
|
-
const
|
|
3086
|
+
const se_EntityPropertyReference = (input, context) => {
|
|
3113
3087
|
return {
|
|
3114
3088
|
...(input.componentName != null && { componentName: input.componentName }),
|
|
3115
3089
|
...(input.entityId != null && { entityId: input.entityId }),
|
|
3116
3090
|
...(input.externalIdProperty != null && {
|
|
3117
|
-
externalIdProperty:
|
|
3091
|
+
externalIdProperty: se_ExternalIdProperty(input.externalIdProperty, context),
|
|
3118
3092
|
}),
|
|
3119
3093
|
...(input.propertyName != null && { propertyName: input.propertyName }),
|
|
3120
3094
|
};
|
|
3121
3095
|
};
|
|
3122
|
-
const
|
|
3096
|
+
const se_Entries = (input, context) => {
|
|
3123
3097
|
return input
|
|
3124
3098
|
.filter((e) => e != null)
|
|
3125
3099
|
.map((entry) => {
|
|
3126
|
-
return
|
|
3100
|
+
return se_PropertyValueEntry(entry, context);
|
|
3127
3101
|
});
|
|
3128
3102
|
};
|
|
3129
|
-
const
|
|
3103
|
+
const se_ExtendsFrom = (input, context) => {
|
|
3130
3104
|
return input
|
|
3131
3105
|
.filter((e) => e != null)
|
|
3132
3106
|
.map((entry) => {
|
|
3133
3107
|
return entry;
|
|
3134
3108
|
});
|
|
3135
3109
|
};
|
|
3136
|
-
const
|
|
3110
|
+
const se_ExternalIdProperty = (input, context) => {
|
|
3137
3111
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3138
3112
|
if (value === null) {
|
|
3139
3113
|
return acc;
|
|
@@ -3142,38 +3116,36 @@ const serializeAws_restJson1ExternalIdProperty = (input, context) => {
|
|
|
3142
3116
|
return acc;
|
|
3143
3117
|
}, {});
|
|
3144
3118
|
};
|
|
3145
|
-
const
|
|
3119
|
+
const se_FunctionRequest = (input, context) => {
|
|
3146
3120
|
return {
|
|
3147
|
-
...(input.implementedBy != null && {
|
|
3148
|
-
implementedBy: serializeAws_restJson1DataConnector(input.implementedBy, context),
|
|
3149
|
-
}),
|
|
3121
|
+
...(input.implementedBy != null && { implementedBy: se_DataConnector(input.implementedBy, context) }),
|
|
3150
3122
|
...(input.requiredProperties != null && {
|
|
3151
|
-
requiredProperties:
|
|
3123
|
+
requiredProperties: se_RequiredProperties(input.requiredProperties, context),
|
|
3152
3124
|
}),
|
|
3153
3125
|
...(input.scope != null && { scope: input.scope }),
|
|
3154
3126
|
};
|
|
3155
3127
|
};
|
|
3156
|
-
const
|
|
3128
|
+
const se_FunctionsRequest = (input, context) => {
|
|
3157
3129
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3158
3130
|
if (value === null) {
|
|
3159
3131
|
return acc;
|
|
3160
3132
|
}
|
|
3161
|
-
acc[key] =
|
|
3133
|
+
acc[key] = se_FunctionRequest(value, context);
|
|
3162
3134
|
return acc;
|
|
3163
3135
|
}, {});
|
|
3164
3136
|
};
|
|
3165
|
-
const
|
|
3137
|
+
const se_InterpolationParameters = (input, context) => {
|
|
3166
3138
|
return {
|
|
3167
3139
|
...(input.interpolationType != null && { interpolationType: input.interpolationType }),
|
|
3168
3140
|
...(input.intervalInSeconds != null && { intervalInSeconds: input.intervalInSeconds }),
|
|
3169
3141
|
};
|
|
3170
3142
|
};
|
|
3171
|
-
const
|
|
3143
|
+
const se_LambdaFunction = (input, context) => {
|
|
3172
3144
|
return {
|
|
3173
3145
|
...(input.arn != null && { arn: input.arn }),
|
|
3174
3146
|
};
|
|
3175
3147
|
};
|
|
3176
|
-
const
|
|
3148
|
+
const se_ListComponentTypesFilter = (input, context) => {
|
|
3177
3149
|
return models_0_1.ListComponentTypesFilter.visit(input, {
|
|
3178
3150
|
extendsFrom: (value) => ({ extendsFrom: value }),
|
|
3179
3151
|
isAbstract: (value) => ({ isAbstract: value }),
|
|
@@ -3181,14 +3153,14 @@ const serializeAws_restJson1ListComponentTypesFilter = (input, context) => {
|
|
|
3181
3153
|
_: (name, value) => ({ name: value }),
|
|
3182
3154
|
});
|
|
3183
3155
|
};
|
|
3184
|
-
const
|
|
3156
|
+
const se_ListComponentTypesFilters = (input, context) => {
|
|
3185
3157
|
return input
|
|
3186
3158
|
.filter((e) => e != null)
|
|
3187
3159
|
.map((entry) => {
|
|
3188
|
-
return
|
|
3160
|
+
return se_ListComponentTypesFilter(entry, context);
|
|
3189
3161
|
});
|
|
3190
3162
|
};
|
|
3191
|
-
const
|
|
3163
|
+
const se_ListEntitiesFilter = (input, context) => {
|
|
3192
3164
|
return models_0_1.ListEntitiesFilter.visit(input, {
|
|
3193
3165
|
componentTypeId: (value) => ({ componentTypeId: value }),
|
|
3194
3166
|
externalId: (value) => ({ externalId: value }),
|
|
@@ -3196,46 +3168,44 @@ const serializeAws_restJson1ListEntitiesFilter = (input, context) => {
|
|
|
3196
3168
|
_: (name, value) => ({ name: value }),
|
|
3197
3169
|
});
|
|
3198
3170
|
};
|
|
3199
|
-
const
|
|
3171
|
+
const se_ListEntitiesFilters = (input, context) => {
|
|
3200
3172
|
return input
|
|
3201
3173
|
.filter((e) => e != null)
|
|
3202
3174
|
.map((entry) => {
|
|
3203
|
-
return
|
|
3175
|
+
return se_ListEntitiesFilter(entry, context);
|
|
3204
3176
|
});
|
|
3205
3177
|
};
|
|
3206
|
-
const
|
|
3178
|
+
const se_OrderBy = (input, context) => {
|
|
3207
3179
|
return {
|
|
3208
3180
|
...(input.order != null && { order: input.order }),
|
|
3209
3181
|
...(input.propertyName != null && { propertyName: input.propertyName }),
|
|
3210
3182
|
};
|
|
3211
3183
|
};
|
|
3212
|
-
const
|
|
3184
|
+
const se_OrderByList = (input, context) => {
|
|
3213
3185
|
return input
|
|
3214
3186
|
.filter((e) => e != null)
|
|
3215
3187
|
.map((entry) => {
|
|
3216
|
-
return
|
|
3188
|
+
return se_OrderBy(entry, context);
|
|
3217
3189
|
});
|
|
3218
3190
|
};
|
|
3219
|
-
const
|
|
3191
|
+
const se_ParentEntityUpdateRequest = (input, context) => {
|
|
3220
3192
|
return {
|
|
3221
3193
|
...(input.parentEntityId != null && { parentEntityId: input.parentEntityId }),
|
|
3222
3194
|
...(input.updateType != null && { updateType: input.updateType }),
|
|
3223
3195
|
};
|
|
3224
3196
|
};
|
|
3225
|
-
const
|
|
3197
|
+
const se_PricingBundles = (input, context) => {
|
|
3226
3198
|
return input
|
|
3227
3199
|
.filter((e) => e != null)
|
|
3228
3200
|
.map((entry) => {
|
|
3229
3201
|
return entry;
|
|
3230
3202
|
});
|
|
3231
3203
|
};
|
|
3232
|
-
const
|
|
3204
|
+
const se_PropertyDefinitionRequest = (input, context) => {
|
|
3233
3205
|
return {
|
|
3234
|
-
...(input.configuration != null && {
|
|
3235
|
-
|
|
3236
|
-
}),
|
|
3237
|
-
...(input.dataType != null && { dataType: serializeAws_restJson1DataType(input.dataType, context) }),
|
|
3238
|
-
...(input.defaultValue != null && { defaultValue: serializeAws_restJson1DataValue(input.defaultValue, context) }),
|
|
3206
|
+
...(input.configuration != null && { configuration: se_Configuration(input.configuration, context) }),
|
|
3207
|
+
...(input.dataType != null && { dataType: se_DataType(input.dataType, context) }),
|
|
3208
|
+
...(input.defaultValue != null && { defaultValue: se_DataValue(input.defaultValue, context) }),
|
|
3239
3209
|
...(input.displayName != null && { displayName: input.displayName }),
|
|
3240
3210
|
...(input.isExternalId != null && { isExternalId: input.isExternalId }),
|
|
3241
3211
|
...(input.isRequiredInEntity != null && { isRequiredInEntity: input.isRequiredInEntity }),
|
|
@@ -3243,122 +3213,116 @@ const serializeAws_restJson1PropertyDefinitionRequest = (input, context) => {
|
|
|
3243
3213
|
...(input.isTimeSeries != null && { isTimeSeries: input.isTimeSeries }),
|
|
3244
3214
|
};
|
|
3245
3215
|
};
|
|
3246
|
-
const
|
|
3216
|
+
const se_PropertyDefinitionsRequest = (input, context) => {
|
|
3247
3217
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3248
3218
|
if (value === null) {
|
|
3249
3219
|
return acc;
|
|
3250
3220
|
}
|
|
3251
|
-
acc[key] =
|
|
3221
|
+
acc[key] = se_PropertyDefinitionRequest(value, context);
|
|
3252
3222
|
return acc;
|
|
3253
3223
|
}, {});
|
|
3254
3224
|
};
|
|
3255
|
-
const
|
|
3225
|
+
const se_PropertyFilter = (input, context) => {
|
|
3256
3226
|
return {
|
|
3257
3227
|
...(input.operator != null && { operator: input.operator }),
|
|
3258
3228
|
...(input.propertyName != null && { propertyName: input.propertyName }),
|
|
3259
|
-
...(input.value != null && { value:
|
|
3229
|
+
...(input.value != null && { value: se_DataValue(input.value, context) }),
|
|
3260
3230
|
};
|
|
3261
3231
|
};
|
|
3262
|
-
const
|
|
3232
|
+
const se_PropertyFilters = (input, context) => {
|
|
3263
3233
|
return input
|
|
3264
3234
|
.filter((e) => e != null)
|
|
3265
3235
|
.map((entry) => {
|
|
3266
|
-
return
|
|
3236
|
+
return se_PropertyFilter(entry, context);
|
|
3267
3237
|
});
|
|
3268
3238
|
};
|
|
3269
|
-
const
|
|
3239
|
+
const se_PropertyGroupRequest = (input, context) => {
|
|
3270
3240
|
return {
|
|
3271
3241
|
...(input.groupType != null && { groupType: input.groupType }),
|
|
3272
|
-
...(input.propertyNames != null && {
|
|
3273
|
-
propertyNames: serializeAws_restJson1PropertyNames(input.propertyNames, context),
|
|
3274
|
-
}),
|
|
3242
|
+
...(input.propertyNames != null && { propertyNames: se_PropertyNames(input.propertyNames, context) }),
|
|
3275
3243
|
};
|
|
3276
3244
|
};
|
|
3277
|
-
const
|
|
3245
|
+
const se_PropertyGroupsRequest = (input, context) => {
|
|
3278
3246
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3279
3247
|
if (value === null) {
|
|
3280
3248
|
return acc;
|
|
3281
3249
|
}
|
|
3282
|
-
acc[key] =
|
|
3250
|
+
acc[key] = se_PropertyGroupRequest(value, context);
|
|
3283
3251
|
return acc;
|
|
3284
3252
|
}, {});
|
|
3285
3253
|
};
|
|
3286
|
-
const
|
|
3254
|
+
const se_PropertyNames = (input, context) => {
|
|
3287
3255
|
return input
|
|
3288
3256
|
.filter((e) => e != null)
|
|
3289
3257
|
.map((entry) => {
|
|
3290
3258
|
return entry;
|
|
3291
3259
|
});
|
|
3292
3260
|
};
|
|
3293
|
-
const
|
|
3261
|
+
const se_PropertyRequest = (input, context) => {
|
|
3294
3262
|
return {
|
|
3295
|
-
...(input.definition != null && {
|
|
3296
|
-
definition: serializeAws_restJson1PropertyDefinitionRequest(input.definition, context),
|
|
3297
|
-
}),
|
|
3263
|
+
...(input.definition != null && { definition: se_PropertyDefinitionRequest(input.definition, context) }),
|
|
3298
3264
|
...(input.updateType != null && { updateType: input.updateType }),
|
|
3299
|
-
...(input.value != null && { value:
|
|
3265
|
+
...(input.value != null && { value: se_DataValue(input.value, context) }),
|
|
3300
3266
|
};
|
|
3301
3267
|
};
|
|
3302
|
-
const
|
|
3268
|
+
const se_PropertyRequests = (input, context) => {
|
|
3303
3269
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3304
3270
|
if (value === null) {
|
|
3305
3271
|
return acc;
|
|
3306
3272
|
}
|
|
3307
|
-
acc[key] =
|
|
3273
|
+
acc[key] = se_PropertyRequest(value, context);
|
|
3308
3274
|
return acc;
|
|
3309
3275
|
}, {});
|
|
3310
3276
|
};
|
|
3311
|
-
const
|
|
3277
|
+
const se_PropertyValue = (input, context) => {
|
|
3312
3278
|
return {
|
|
3313
3279
|
...(input.time != null && { time: input.time }),
|
|
3314
3280
|
...(input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
|
|
3315
|
-
...(input.value != null && { value:
|
|
3281
|
+
...(input.value != null && { value: se_DataValue(input.value, context) }),
|
|
3316
3282
|
};
|
|
3317
3283
|
};
|
|
3318
|
-
const
|
|
3284
|
+
const se_PropertyValueEntry = (input, context) => {
|
|
3319
3285
|
return {
|
|
3320
3286
|
...(input.entityPropertyReference != null && {
|
|
3321
|
-
entityPropertyReference:
|
|
3322
|
-
}),
|
|
3323
|
-
...(input.propertyValues != null && {
|
|
3324
|
-
propertyValues: serializeAws_restJson1PropertyValues(input.propertyValues, context),
|
|
3287
|
+
entityPropertyReference: se_EntityPropertyReference(input.entityPropertyReference, context),
|
|
3325
3288
|
}),
|
|
3289
|
+
...(input.propertyValues != null && { propertyValues: se_PropertyValues(input.propertyValues, context) }),
|
|
3326
3290
|
};
|
|
3327
3291
|
};
|
|
3328
|
-
const
|
|
3292
|
+
const se_PropertyValues = (input, context) => {
|
|
3329
3293
|
return input
|
|
3330
3294
|
.filter((e) => e != null)
|
|
3331
3295
|
.map((entry) => {
|
|
3332
|
-
return
|
|
3296
|
+
return se_PropertyValue(entry, context);
|
|
3333
3297
|
});
|
|
3334
3298
|
};
|
|
3335
|
-
const
|
|
3299
|
+
const se_Relationship = (input, context) => {
|
|
3336
3300
|
return {
|
|
3337
3301
|
...(input.relationshipType != null && { relationshipType: input.relationshipType }),
|
|
3338
3302
|
...(input.targetComponentTypeId != null && { targetComponentTypeId: input.targetComponentTypeId }),
|
|
3339
3303
|
};
|
|
3340
3304
|
};
|
|
3341
|
-
const
|
|
3305
|
+
const se_RelationshipValue = (input, context) => {
|
|
3342
3306
|
return {
|
|
3343
3307
|
...(input.targetComponentName != null && { targetComponentName: input.targetComponentName }),
|
|
3344
3308
|
...(input.targetEntityId != null && { targetEntityId: input.targetEntityId }),
|
|
3345
3309
|
};
|
|
3346
3310
|
};
|
|
3347
|
-
const
|
|
3311
|
+
const se_RequiredProperties = (input, context) => {
|
|
3348
3312
|
return input
|
|
3349
3313
|
.filter((e) => e != null)
|
|
3350
3314
|
.map((entry) => {
|
|
3351
3315
|
return entry;
|
|
3352
3316
|
});
|
|
3353
3317
|
};
|
|
3354
|
-
const
|
|
3318
|
+
const se_SceneCapabilities = (input, context) => {
|
|
3355
3319
|
return input
|
|
3356
3320
|
.filter((e) => e != null)
|
|
3357
3321
|
.map((entry) => {
|
|
3358
3322
|
return entry;
|
|
3359
3323
|
});
|
|
3360
3324
|
};
|
|
3361
|
-
const
|
|
3325
|
+
const se_SceneMetadataMap = (input, context) => {
|
|
3362
3326
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3363
3327
|
if (value === null) {
|
|
3364
3328
|
return acc;
|
|
@@ -3367,14 +3331,14 @@ const serializeAws_restJson1SceneMetadataMap = (input, context) => {
|
|
|
3367
3331
|
return acc;
|
|
3368
3332
|
}, {});
|
|
3369
3333
|
};
|
|
3370
|
-
const
|
|
3334
|
+
const se_SelectedPropertyList = (input, context) => {
|
|
3371
3335
|
return input
|
|
3372
3336
|
.filter((e) => e != null)
|
|
3373
3337
|
.map((entry) => {
|
|
3374
3338
|
return entry;
|
|
3375
3339
|
});
|
|
3376
3340
|
};
|
|
3377
|
-
const
|
|
3341
|
+
const se_SyncResourceFilter = (input, context) => {
|
|
3378
3342
|
return models_0_1.SyncResourceFilter.visit(input, {
|
|
3379
3343
|
externalId: (value) => ({ externalId: value }),
|
|
3380
3344
|
resourceId: (value) => ({ resourceId: value }),
|
|
@@ -3383,22 +3347,20 @@ const serializeAws_restJson1SyncResourceFilter = (input, context) => {
|
|
|
3383
3347
|
_: (name, value) => ({ name: value }),
|
|
3384
3348
|
});
|
|
3385
3349
|
};
|
|
3386
|
-
const
|
|
3350
|
+
const se_SyncResourceFilters = (input, context) => {
|
|
3387
3351
|
return input
|
|
3388
3352
|
.filter((e) => e != null)
|
|
3389
3353
|
.map((entry) => {
|
|
3390
|
-
return
|
|
3354
|
+
return se_SyncResourceFilter(entry, context);
|
|
3391
3355
|
});
|
|
3392
3356
|
};
|
|
3393
|
-
const
|
|
3357
|
+
const se_TabularConditions = (input, context) => {
|
|
3394
3358
|
return {
|
|
3395
|
-
...(input.orderBy != null && { orderBy:
|
|
3396
|
-
...(input.propertyFilters != null && {
|
|
3397
|
-
propertyFilters: serializeAws_restJson1PropertyFilters(input.propertyFilters, context),
|
|
3398
|
-
}),
|
|
3359
|
+
...(input.orderBy != null && { orderBy: se_OrderByList(input.orderBy, context) }),
|
|
3360
|
+
...(input.propertyFilters != null && { propertyFilters: se_PropertyFilters(input.propertyFilters, context) }),
|
|
3399
3361
|
};
|
|
3400
3362
|
};
|
|
3401
|
-
const
|
|
3363
|
+
const se_TagMap = (input, context) => {
|
|
3402
3364
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3403
3365
|
if (value === null) {
|
|
3404
3366
|
return acc;
|
|
@@ -3407,92 +3369,90 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3407
3369
|
return acc;
|
|
3408
3370
|
}, {});
|
|
3409
3371
|
};
|
|
3410
|
-
const
|
|
3372
|
+
const de_BatchPutPropertyError = (output, context) => {
|
|
3411
3373
|
return {
|
|
3412
|
-
entry: output.entry != null ?
|
|
3374
|
+
entry: output.entry != null ? de_PropertyValueEntry(output.entry, context) : undefined,
|
|
3413
3375
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3414
3376
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
3415
3377
|
};
|
|
3416
3378
|
};
|
|
3417
|
-
const
|
|
3379
|
+
const de_BatchPutPropertyErrorEntry = (output, context) => {
|
|
3418
3380
|
return {
|
|
3419
|
-
errors: output.errors != null ?
|
|
3381
|
+
errors: output.errors != null ? de_Errors(output.errors, context) : undefined,
|
|
3420
3382
|
};
|
|
3421
3383
|
};
|
|
3422
|
-
const
|
|
3384
|
+
const de_BundleInformation = (output, context) => {
|
|
3423
3385
|
return {
|
|
3424
|
-
bundleNames: output.bundleNames != null ?
|
|
3386
|
+
bundleNames: output.bundleNames != null ? de_PricingBundles(output.bundleNames, context) : undefined,
|
|
3425
3387
|
pricingTier: (0, smithy_client_1.expectString)(output.pricingTier),
|
|
3426
3388
|
};
|
|
3427
3389
|
};
|
|
3428
|
-
const
|
|
3390
|
+
const de_ColumnDescription = (output, context) => {
|
|
3429
3391
|
return {
|
|
3430
3392
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3431
3393
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3432
3394
|
};
|
|
3433
3395
|
};
|
|
3434
|
-
const
|
|
3396
|
+
const de_ColumnDescriptions = (output, context) => {
|
|
3435
3397
|
const retVal = (output || [])
|
|
3436
3398
|
.filter((e) => e != null)
|
|
3437
3399
|
.map((entry) => {
|
|
3438
3400
|
if (entry === null) {
|
|
3439
3401
|
return null;
|
|
3440
3402
|
}
|
|
3441
|
-
return
|
|
3403
|
+
return de_ColumnDescription(entry, context);
|
|
3442
3404
|
});
|
|
3443
3405
|
return retVal;
|
|
3444
3406
|
};
|
|
3445
|
-
const
|
|
3407
|
+
const de_ComponentPropertyGroupResponse = (output, context) => {
|
|
3446
3408
|
return {
|
|
3447
3409
|
groupType: (0, smithy_client_1.expectString)(output.groupType),
|
|
3448
3410
|
isInherited: (0, smithy_client_1.expectBoolean)(output.isInherited),
|
|
3449
|
-
propertyNames: output.propertyNames != null ?
|
|
3411
|
+
propertyNames: output.propertyNames != null ? de_PropertyNames(output.propertyNames, context) : undefined,
|
|
3450
3412
|
};
|
|
3451
3413
|
};
|
|
3452
|
-
const
|
|
3414
|
+
const de_ComponentPropertyGroupResponses = (output, context) => {
|
|
3453
3415
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3454
3416
|
if (value === null) {
|
|
3455
3417
|
return acc;
|
|
3456
3418
|
}
|
|
3457
|
-
acc[key] =
|
|
3419
|
+
acc[key] = de_ComponentPropertyGroupResponse(value, context);
|
|
3458
3420
|
return acc;
|
|
3459
3421
|
}, {});
|
|
3460
3422
|
};
|
|
3461
|
-
const
|
|
3423
|
+
const de_ComponentResponse = (output, context) => {
|
|
3462
3424
|
return {
|
|
3463
3425
|
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
3464
3426
|
componentTypeId: (0, smithy_client_1.expectString)(output.componentTypeId),
|
|
3465
3427
|
definedIn: (0, smithy_client_1.expectString)(output.definedIn),
|
|
3466
3428
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3467
|
-
properties: output.properties != null ?
|
|
3468
|
-
propertyGroups: output.propertyGroups != null
|
|
3469
|
-
|
|
3470
|
-
: undefined,
|
|
3471
|
-
status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
|
|
3429
|
+
properties: output.properties != null ? de_PropertyResponses(output.properties, context) : undefined,
|
|
3430
|
+
propertyGroups: output.propertyGroups != null ? de_ComponentPropertyGroupResponses(output.propertyGroups, context) : undefined,
|
|
3431
|
+
status: output.status != null ? de_Status(output.status, context) : undefined,
|
|
3472
3432
|
syncSource: (0, smithy_client_1.expectString)(output.syncSource),
|
|
3473
3433
|
};
|
|
3474
3434
|
};
|
|
3475
|
-
const
|
|
3435
|
+
const de_ComponentsMap = (output, context) => {
|
|
3476
3436
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3477
3437
|
if (value === null) {
|
|
3478
3438
|
return acc;
|
|
3479
3439
|
}
|
|
3480
|
-
acc[key] =
|
|
3440
|
+
acc[key] = de_ComponentResponse(value, context);
|
|
3481
3441
|
return acc;
|
|
3482
3442
|
}, {});
|
|
3483
3443
|
};
|
|
3484
|
-
const
|
|
3444
|
+
const de_ComponentTypeSummaries = (output, context) => {
|
|
3485
3445
|
const retVal = (output || [])
|
|
3486
3446
|
.filter((e) => e != null)
|
|
3487
3447
|
.map((entry) => {
|
|
3488
3448
|
if (entry === null) {
|
|
3489
3449
|
return null;
|
|
3490
3450
|
}
|
|
3491
|
-
return
|
|
3451
|
+
return de_ComponentTypeSummary(entry, context);
|
|
3492
3452
|
});
|
|
3493
3453
|
return retVal;
|
|
3494
3454
|
};
|
|
3495
|
-
const
|
|
3455
|
+
const de_ComponentTypeSummary = (output, context) => {
|
|
3496
3456
|
return {
|
|
3497
3457
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3498
3458
|
componentTypeId: (0, smithy_client_1.expectString)(output.componentTypeId),
|
|
@@ -3501,13 +3461,13 @@ const deserializeAws_restJson1ComponentTypeSummary = (output, context) => {
|
|
|
3501
3461
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
|
|
3502
3462
|
: undefined,
|
|
3503
3463
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3504
|
-
status: output.status != null ?
|
|
3464
|
+
status: output.status != null ? de_Status(output.status, context) : undefined,
|
|
3505
3465
|
updateDateTime: output.updateDateTime != null
|
|
3506
3466
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
|
|
3507
3467
|
: undefined,
|
|
3508
3468
|
};
|
|
3509
3469
|
};
|
|
3510
|
-
const
|
|
3470
|
+
const de_Configuration = (output, context) => {
|
|
3511
3471
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3512
3472
|
if (value === null) {
|
|
3513
3473
|
return acc;
|
|
@@ -3516,78 +3476,74 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
3516
3476
|
return acc;
|
|
3517
3477
|
}, {});
|
|
3518
3478
|
};
|
|
3519
|
-
const
|
|
3479
|
+
const de_DataConnector = (output, context) => {
|
|
3520
3480
|
return {
|
|
3521
3481
|
isNative: (0, smithy_client_1.expectBoolean)(output.isNative),
|
|
3522
|
-
lambda: output.lambda != null ?
|
|
3482
|
+
lambda: output.lambda != null ? de_LambdaFunction(output.lambda, context) : undefined,
|
|
3523
3483
|
};
|
|
3524
3484
|
};
|
|
3525
|
-
const
|
|
3485
|
+
const de_DataType = (output, context) => {
|
|
3526
3486
|
return {
|
|
3527
|
-
allowedValues: output.allowedValues != null ?
|
|
3528
|
-
nestedType: output.nestedType != null ?
|
|
3529
|
-
relationship: output.relationship != null ?
|
|
3487
|
+
allowedValues: output.allowedValues != null ? de_DataValueList(output.allowedValues, context) : undefined,
|
|
3488
|
+
nestedType: output.nestedType != null ? de_DataType(output.nestedType, context) : undefined,
|
|
3489
|
+
relationship: output.relationship != null ? de_Relationship(output.relationship, context) : undefined,
|
|
3530
3490
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3531
3491
|
unitOfMeasure: (0, smithy_client_1.expectString)(output.unitOfMeasure),
|
|
3532
3492
|
};
|
|
3533
3493
|
};
|
|
3534
|
-
const
|
|
3494
|
+
const de_DataValue = (output, context) => {
|
|
3535
3495
|
return {
|
|
3536
3496
|
booleanValue: (0, smithy_client_1.expectBoolean)(output.booleanValue),
|
|
3537
3497
|
doubleValue: (0, smithy_client_1.limitedParseDouble)(output.doubleValue),
|
|
3538
3498
|
expression: (0, smithy_client_1.expectString)(output.expression),
|
|
3539
3499
|
integerValue: (0, smithy_client_1.expectInt32)(output.integerValue),
|
|
3540
|
-
listValue: output.listValue != null ?
|
|
3500
|
+
listValue: output.listValue != null ? de_DataValueList(output.listValue, context) : undefined,
|
|
3541
3501
|
longValue: (0, smithy_client_1.expectLong)(output.longValue),
|
|
3542
|
-
mapValue: output.mapValue != null ?
|
|
3543
|
-
relationshipValue: output.relationshipValue != null
|
|
3544
|
-
? deserializeAws_restJson1RelationshipValue(output.relationshipValue, context)
|
|
3545
|
-
: undefined,
|
|
3502
|
+
mapValue: output.mapValue != null ? de_DataValueMap(output.mapValue, context) : undefined,
|
|
3503
|
+
relationshipValue: output.relationshipValue != null ? de_RelationshipValue(output.relationshipValue, context) : undefined,
|
|
3546
3504
|
stringValue: (0, smithy_client_1.expectString)(output.stringValue),
|
|
3547
3505
|
};
|
|
3548
3506
|
};
|
|
3549
|
-
const
|
|
3507
|
+
const de_DataValueList = (output, context) => {
|
|
3550
3508
|
const retVal = (output || [])
|
|
3551
3509
|
.filter((e) => e != null)
|
|
3552
3510
|
.map((entry) => {
|
|
3553
3511
|
if (entry === null) {
|
|
3554
3512
|
return null;
|
|
3555
3513
|
}
|
|
3556
|
-
return
|
|
3514
|
+
return de_DataValue(entry, context);
|
|
3557
3515
|
});
|
|
3558
3516
|
return retVal;
|
|
3559
3517
|
};
|
|
3560
|
-
const
|
|
3518
|
+
const de_DataValueMap = (output, context) => {
|
|
3561
3519
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3562
3520
|
if (value === null) {
|
|
3563
3521
|
return acc;
|
|
3564
3522
|
}
|
|
3565
|
-
acc[key] =
|
|
3523
|
+
acc[key] = de_DataValue(value, context);
|
|
3566
3524
|
return acc;
|
|
3567
3525
|
}, {});
|
|
3568
3526
|
};
|
|
3569
|
-
const
|
|
3527
|
+
const de_EntityPropertyReference = (output, context) => {
|
|
3570
3528
|
return {
|
|
3571
3529
|
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
3572
3530
|
entityId: (0, smithy_client_1.expectString)(output.entityId),
|
|
3573
|
-
externalIdProperty: output.externalIdProperty != null
|
|
3574
|
-
? deserializeAws_restJson1ExternalIdProperty(output.externalIdProperty, context)
|
|
3575
|
-
: undefined,
|
|
3531
|
+
externalIdProperty: output.externalIdProperty != null ? de_ExternalIdProperty(output.externalIdProperty, context) : undefined,
|
|
3576
3532
|
propertyName: (0, smithy_client_1.expectString)(output.propertyName),
|
|
3577
3533
|
};
|
|
3578
3534
|
};
|
|
3579
|
-
const
|
|
3535
|
+
const de_EntitySummaries = (output, context) => {
|
|
3580
3536
|
const retVal = (output || [])
|
|
3581
3537
|
.filter((e) => e != null)
|
|
3582
3538
|
.map((entry) => {
|
|
3583
3539
|
if (entry === null) {
|
|
3584
3540
|
return null;
|
|
3585
3541
|
}
|
|
3586
|
-
return
|
|
3542
|
+
return de_EntitySummary(entry, context);
|
|
3587
3543
|
});
|
|
3588
3544
|
return retVal;
|
|
3589
3545
|
};
|
|
3590
|
-
const
|
|
3546
|
+
const de_EntitySummary = (output, context) => {
|
|
3591
3547
|
return {
|
|
3592
3548
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3593
3549
|
creationDateTime: output.creationDateTime != null
|
|
@@ -3598,41 +3554,41 @@ const deserializeAws_restJson1EntitySummary = (output, context) => {
|
|
|
3598
3554
|
entityName: (0, smithy_client_1.expectString)(output.entityName),
|
|
3599
3555
|
hasChildEntities: (0, smithy_client_1.expectBoolean)(output.hasChildEntities),
|
|
3600
3556
|
parentEntityId: (0, smithy_client_1.expectString)(output.parentEntityId),
|
|
3601
|
-
status: output.status != null ?
|
|
3557
|
+
status: output.status != null ? de_Status(output.status, context) : undefined,
|
|
3602
3558
|
updateDateTime: output.updateDateTime != null
|
|
3603
3559
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
|
|
3604
3560
|
: undefined,
|
|
3605
3561
|
};
|
|
3606
3562
|
};
|
|
3607
|
-
const
|
|
3563
|
+
const de_ErrorDetails = (output, context) => {
|
|
3608
3564
|
return {
|
|
3609
3565
|
code: (0, smithy_client_1.expectString)(output.code),
|
|
3610
3566
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
3611
3567
|
};
|
|
3612
3568
|
};
|
|
3613
|
-
const
|
|
3569
|
+
const de_ErrorEntries = (output, context) => {
|
|
3614
3570
|
const retVal = (output || [])
|
|
3615
3571
|
.filter((e) => e != null)
|
|
3616
3572
|
.map((entry) => {
|
|
3617
3573
|
if (entry === null) {
|
|
3618
3574
|
return null;
|
|
3619
3575
|
}
|
|
3620
|
-
return
|
|
3576
|
+
return de_BatchPutPropertyErrorEntry(entry, context);
|
|
3621
3577
|
});
|
|
3622
3578
|
return retVal;
|
|
3623
3579
|
};
|
|
3624
|
-
const
|
|
3580
|
+
const de_Errors = (output, context) => {
|
|
3625
3581
|
const retVal = (output || [])
|
|
3626
3582
|
.filter((e) => e != null)
|
|
3627
3583
|
.map((entry) => {
|
|
3628
3584
|
if (entry === null) {
|
|
3629
3585
|
return null;
|
|
3630
3586
|
}
|
|
3631
|
-
return
|
|
3587
|
+
return de_BatchPutPropertyError(entry, context);
|
|
3632
3588
|
});
|
|
3633
3589
|
return retVal;
|
|
3634
3590
|
};
|
|
3635
|
-
const
|
|
3591
|
+
const de_ExtendsFrom = (output, context) => {
|
|
3636
3592
|
const retVal = (output || [])
|
|
3637
3593
|
.filter((e) => e != null)
|
|
3638
3594
|
.map((entry) => {
|
|
@@ -3643,7 +3599,7 @@ const deserializeAws_restJson1ExtendsFrom = (output, context) => {
|
|
|
3643
3599
|
});
|
|
3644
3600
|
return retVal;
|
|
3645
3601
|
};
|
|
3646
|
-
const
|
|
3602
|
+
const de_ExternalIdProperty = (output, context) => {
|
|
3647
3603
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3648
3604
|
if (value === null) {
|
|
3649
3605
|
return acc;
|
|
@@ -3652,26 +3608,24 @@ const deserializeAws_restJson1ExternalIdProperty = (output, context) => {
|
|
|
3652
3608
|
return acc;
|
|
3653
3609
|
}, {});
|
|
3654
3610
|
};
|
|
3655
|
-
const
|
|
3611
|
+
const de_FunctionResponse = (output, context) => {
|
|
3656
3612
|
return {
|
|
3657
|
-
implementedBy: output.implementedBy != null ?
|
|
3613
|
+
implementedBy: output.implementedBy != null ? de_DataConnector(output.implementedBy, context) : undefined,
|
|
3658
3614
|
isInherited: (0, smithy_client_1.expectBoolean)(output.isInherited),
|
|
3659
|
-
requiredProperties: output.requiredProperties != null
|
|
3660
|
-
? deserializeAws_restJson1RequiredProperties(output.requiredProperties, context)
|
|
3661
|
-
: undefined,
|
|
3615
|
+
requiredProperties: output.requiredProperties != null ? de_RequiredProperties(output.requiredProperties, context) : undefined,
|
|
3662
3616
|
scope: (0, smithy_client_1.expectString)(output.scope),
|
|
3663
3617
|
};
|
|
3664
3618
|
};
|
|
3665
|
-
const
|
|
3619
|
+
const de_FunctionsResponse = (output, context) => {
|
|
3666
3620
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3667
3621
|
if (value === null) {
|
|
3668
3622
|
return acc;
|
|
3669
3623
|
}
|
|
3670
|
-
acc[key] =
|
|
3624
|
+
acc[key] = de_FunctionResponse(value, context);
|
|
3671
3625
|
return acc;
|
|
3672
3626
|
}, {});
|
|
3673
3627
|
};
|
|
3674
|
-
const
|
|
3628
|
+
const de_GeneratedSceneMetadataMap = (output, context) => {
|
|
3675
3629
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3676
3630
|
if (value === null) {
|
|
3677
3631
|
return acc;
|
|
@@ -3680,12 +3634,12 @@ const deserializeAws_restJson1GeneratedSceneMetadataMap = (output, context) => {
|
|
|
3680
3634
|
return acc;
|
|
3681
3635
|
}, {});
|
|
3682
3636
|
};
|
|
3683
|
-
const
|
|
3637
|
+
const de_LambdaFunction = (output, context) => {
|
|
3684
3638
|
return {
|
|
3685
3639
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3686
3640
|
};
|
|
3687
3641
|
};
|
|
3688
|
-
const
|
|
3642
|
+
const de_PricingBundles = (output, context) => {
|
|
3689
3643
|
const retVal = (output || [])
|
|
3690
3644
|
.filter((e) => e != null)
|
|
3691
3645
|
.map((entry) => {
|
|
@@ -3696,12 +3650,10 @@ const deserializeAws_restJson1PricingBundles = (output, context) => {
|
|
|
3696
3650
|
});
|
|
3697
3651
|
return retVal;
|
|
3698
3652
|
};
|
|
3699
|
-
const
|
|
3653
|
+
const de_PricingPlan = (output, context) => {
|
|
3700
3654
|
return {
|
|
3701
3655
|
billableEntityCount: (0, smithy_client_1.expectLong)(output.billableEntityCount),
|
|
3702
|
-
bundleInformation: output.bundleInformation != null
|
|
3703
|
-
? deserializeAws_restJson1BundleInformation(output.bundleInformation, context)
|
|
3704
|
-
: undefined,
|
|
3656
|
+
bundleInformation: output.bundleInformation != null ? de_BundleInformation(output.bundleInformation, context) : undefined,
|
|
3705
3657
|
effectiveDateTime: output.effectiveDateTime != null
|
|
3706
3658
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.effectiveDateTime)))
|
|
3707
3659
|
: undefined,
|
|
@@ -3712,11 +3664,11 @@ const deserializeAws_restJson1PricingPlan = (output, context) => {
|
|
|
3712
3664
|
updateReason: (0, smithy_client_1.expectString)(output.updateReason),
|
|
3713
3665
|
};
|
|
3714
3666
|
};
|
|
3715
|
-
const
|
|
3667
|
+
const de_PropertyDefinitionResponse = (output, context) => {
|
|
3716
3668
|
return {
|
|
3717
|
-
configuration: output.configuration != null ?
|
|
3718
|
-
dataType: output.dataType != null ?
|
|
3719
|
-
defaultValue: output.defaultValue != null ?
|
|
3669
|
+
configuration: output.configuration != null ? de_Configuration(output.configuration, context) : undefined,
|
|
3670
|
+
dataType: output.dataType != null ? de_DataType(output.dataType, context) : undefined,
|
|
3671
|
+
defaultValue: output.defaultValue != null ? de_DataValue(output.defaultValue, context) : undefined,
|
|
3720
3672
|
displayName: (0, smithy_client_1.expectString)(output.displayName),
|
|
3721
3673
|
isExternalId: (0, smithy_client_1.expectBoolean)(output.isExternalId),
|
|
3722
3674
|
isFinal: (0, smithy_client_1.expectBoolean)(output.isFinal),
|
|
@@ -3727,49 +3679,47 @@ const deserializeAws_restJson1PropertyDefinitionResponse = (output, context) =>
|
|
|
3727
3679
|
isTimeSeries: (0, smithy_client_1.expectBoolean)(output.isTimeSeries),
|
|
3728
3680
|
};
|
|
3729
3681
|
};
|
|
3730
|
-
const
|
|
3682
|
+
const de_PropertyDefinitionsResponse = (output, context) => {
|
|
3731
3683
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3732
3684
|
if (value === null) {
|
|
3733
3685
|
return acc;
|
|
3734
3686
|
}
|
|
3735
|
-
acc[key] =
|
|
3687
|
+
acc[key] = de_PropertyDefinitionResponse(value, context);
|
|
3736
3688
|
return acc;
|
|
3737
3689
|
}, {});
|
|
3738
3690
|
};
|
|
3739
|
-
const
|
|
3691
|
+
const de_PropertyGroupResponse = (output, context) => {
|
|
3740
3692
|
return {
|
|
3741
3693
|
groupType: (0, smithy_client_1.expectString)(output.groupType),
|
|
3742
3694
|
isInherited: (0, smithy_client_1.expectBoolean)(output.isInherited),
|
|
3743
|
-
propertyNames: output.propertyNames != null ?
|
|
3695
|
+
propertyNames: output.propertyNames != null ? de_PropertyNames(output.propertyNames, context) : undefined,
|
|
3744
3696
|
};
|
|
3745
3697
|
};
|
|
3746
|
-
const
|
|
3698
|
+
const de_PropertyGroupsResponse = (output, context) => {
|
|
3747
3699
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3748
3700
|
if (value === null) {
|
|
3749
3701
|
return acc;
|
|
3750
3702
|
}
|
|
3751
|
-
acc[key] =
|
|
3703
|
+
acc[key] = de_PropertyGroupResponse(value, context);
|
|
3752
3704
|
return acc;
|
|
3753
3705
|
}, {});
|
|
3754
3706
|
};
|
|
3755
|
-
const
|
|
3707
|
+
const de_PropertyLatestValue = (output, context) => {
|
|
3756
3708
|
return {
|
|
3757
|
-
propertyReference: output.propertyReference != null
|
|
3758
|
-
|
|
3759
|
-
: undefined,
|
|
3760
|
-
propertyValue: output.propertyValue != null ? deserializeAws_restJson1DataValue(output.propertyValue, context) : undefined,
|
|
3709
|
+
propertyReference: output.propertyReference != null ? de_EntityPropertyReference(output.propertyReference, context) : undefined,
|
|
3710
|
+
propertyValue: output.propertyValue != null ? de_DataValue(output.propertyValue, context) : undefined,
|
|
3761
3711
|
};
|
|
3762
3712
|
};
|
|
3763
|
-
const
|
|
3713
|
+
const de_PropertyLatestValueMap = (output, context) => {
|
|
3764
3714
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3765
3715
|
if (value === null) {
|
|
3766
3716
|
return acc;
|
|
3767
3717
|
}
|
|
3768
|
-
acc[key] =
|
|
3718
|
+
acc[key] = de_PropertyLatestValue(value, context);
|
|
3769
3719
|
return acc;
|
|
3770
3720
|
}, {});
|
|
3771
3721
|
};
|
|
3772
|
-
const
|
|
3722
|
+
const de_PropertyNames = (output, context) => {
|
|
3773
3723
|
const retVal = (output || [])
|
|
3774
3724
|
.filter((e) => e != null)
|
|
3775
3725
|
.map((entry) => {
|
|
@@ -3780,95 +3730,91 @@ const deserializeAws_restJson1PropertyNames = (output, context) => {
|
|
|
3780
3730
|
});
|
|
3781
3731
|
return retVal;
|
|
3782
3732
|
};
|
|
3783
|
-
const
|
|
3733
|
+
const de_PropertyResponse = (output, context) => {
|
|
3784
3734
|
return {
|
|
3785
|
-
definition: output.definition != null
|
|
3786
|
-
|
|
3787
|
-
: undefined,
|
|
3788
|
-
value: output.value != null ? deserializeAws_restJson1DataValue(output.value, context) : undefined,
|
|
3735
|
+
definition: output.definition != null ? de_PropertyDefinitionResponse(output.definition, context) : undefined,
|
|
3736
|
+
value: output.value != null ? de_DataValue(output.value, context) : undefined,
|
|
3789
3737
|
};
|
|
3790
3738
|
};
|
|
3791
|
-
const
|
|
3739
|
+
const de_PropertyResponses = (output, context) => {
|
|
3792
3740
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3793
3741
|
if (value === null) {
|
|
3794
3742
|
return acc;
|
|
3795
3743
|
}
|
|
3796
|
-
acc[key] =
|
|
3744
|
+
acc[key] = de_PropertyResponse(value, context);
|
|
3797
3745
|
return acc;
|
|
3798
3746
|
}, {});
|
|
3799
3747
|
};
|
|
3800
|
-
const
|
|
3748
|
+
const de_PropertyTableValue = (output, context) => {
|
|
3801
3749
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3802
3750
|
if (value === null) {
|
|
3803
3751
|
return acc;
|
|
3804
3752
|
}
|
|
3805
|
-
acc[key] =
|
|
3753
|
+
acc[key] = de_DataValue(value, context);
|
|
3806
3754
|
return acc;
|
|
3807
3755
|
}, {});
|
|
3808
3756
|
};
|
|
3809
|
-
const
|
|
3757
|
+
const de_PropertyValue = (output, context) => {
|
|
3810
3758
|
return {
|
|
3811
3759
|
time: (0, smithy_client_1.expectString)(output.time),
|
|
3812
3760
|
timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
|
|
3813
|
-
value: output.value != null ?
|
|
3761
|
+
value: output.value != null ? de_DataValue(output.value, context) : undefined,
|
|
3814
3762
|
};
|
|
3815
3763
|
};
|
|
3816
|
-
const
|
|
3764
|
+
const de_PropertyValueEntry = (output, context) => {
|
|
3817
3765
|
return {
|
|
3818
3766
|
entityPropertyReference: output.entityPropertyReference != null
|
|
3819
|
-
?
|
|
3820
|
-
: undefined,
|
|
3821
|
-
propertyValues: output.propertyValues != null
|
|
3822
|
-
? deserializeAws_restJson1PropertyValues(output.propertyValues, context)
|
|
3767
|
+
? de_EntityPropertyReference(output.entityPropertyReference, context)
|
|
3823
3768
|
: undefined,
|
|
3769
|
+
propertyValues: output.propertyValues != null ? de_PropertyValues(output.propertyValues, context) : undefined,
|
|
3824
3770
|
};
|
|
3825
3771
|
};
|
|
3826
|
-
const
|
|
3772
|
+
const de_PropertyValueHistory = (output, context) => {
|
|
3827
3773
|
return {
|
|
3828
3774
|
entityPropertyReference: output.entityPropertyReference != null
|
|
3829
|
-
?
|
|
3775
|
+
? de_EntityPropertyReference(output.entityPropertyReference, context)
|
|
3830
3776
|
: undefined,
|
|
3831
|
-
values: output.values != null ?
|
|
3777
|
+
values: output.values != null ? de_Values(output.values, context) : undefined,
|
|
3832
3778
|
};
|
|
3833
3779
|
};
|
|
3834
|
-
const
|
|
3780
|
+
const de_PropertyValueList = (output, context) => {
|
|
3835
3781
|
const retVal = (output || [])
|
|
3836
3782
|
.filter((e) => e != null)
|
|
3837
3783
|
.map((entry) => {
|
|
3838
3784
|
if (entry === null) {
|
|
3839
3785
|
return null;
|
|
3840
3786
|
}
|
|
3841
|
-
return
|
|
3787
|
+
return de_PropertyValueHistory(entry, context);
|
|
3842
3788
|
});
|
|
3843
3789
|
return retVal;
|
|
3844
3790
|
};
|
|
3845
|
-
const
|
|
3791
|
+
const de_PropertyValues = (output, context) => {
|
|
3846
3792
|
const retVal = (output || [])
|
|
3847
3793
|
.filter((e) => e != null)
|
|
3848
3794
|
.map((entry) => {
|
|
3849
3795
|
if (entry === null) {
|
|
3850
3796
|
return null;
|
|
3851
3797
|
}
|
|
3852
|
-
return
|
|
3798
|
+
return de_PropertyValue(entry, context);
|
|
3853
3799
|
});
|
|
3854
3800
|
return retVal;
|
|
3855
3801
|
};
|
|
3856
|
-
const
|
|
3802
|
+
const de_QueryResultValue = (output, context) => {
|
|
3857
3803
|
return output;
|
|
3858
3804
|
};
|
|
3859
|
-
const
|
|
3805
|
+
const de_Relationship = (output, context) => {
|
|
3860
3806
|
return {
|
|
3861
3807
|
relationshipType: (0, smithy_client_1.expectString)(output.relationshipType),
|
|
3862
3808
|
targetComponentTypeId: (0, smithy_client_1.expectString)(output.targetComponentTypeId),
|
|
3863
3809
|
};
|
|
3864
3810
|
};
|
|
3865
|
-
const
|
|
3811
|
+
const de_RelationshipValue = (output, context) => {
|
|
3866
3812
|
return {
|
|
3867
3813
|
targetComponentName: (0, smithy_client_1.expectString)(output.targetComponentName),
|
|
3868
3814
|
targetEntityId: (0, smithy_client_1.expectString)(output.targetEntityId),
|
|
3869
3815
|
};
|
|
3870
3816
|
};
|
|
3871
|
-
const
|
|
3817
|
+
const de_RequiredProperties = (output, context) => {
|
|
3872
3818
|
const retVal = (output || [])
|
|
3873
3819
|
.filter((e) => e != null)
|
|
3874
3820
|
.map((entry) => {
|
|
@@ -3879,34 +3825,34 @@ const deserializeAws_restJson1RequiredProperties = (output, context) => {
|
|
|
3879
3825
|
});
|
|
3880
3826
|
return retVal;
|
|
3881
3827
|
};
|
|
3882
|
-
const
|
|
3828
|
+
const de_Row = (output, context) => {
|
|
3883
3829
|
return {
|
|
3884
|
-
rowData: output.rowData != null ?
|
|
3830
|
+
rowData: output.rowData != null ? de_RowData(output.rowData, context) : undefined,
|
|
3885
3831
|
};
|
|
3886
3832
|
};
|
|
3887
|
-
const
|
|
3833
|
+
const de_RowData = (output, context) => {
|
|
3888
3834
|
const retVal = (output || [])
|
|
3889
3835
|
.filter((e) => e != null)
|
|
3890
3836
|
.map((entry) => {
|
|
3891
3837
|
if (entry === null) {
|
|
3892
3838
|
return null;
|
|
3893
3839
|
}
|
|
3894
|
-
return
|
|
3840
|
+
return de_QueryResultValue(entry, context);
|
|
3895
3841
|
});
|
|
3896
3842
|
return retVal;
|
|
3897
3843
|
};
|
|
3898
|
-
const
|
|
3844
|
+
const de_Rows = (output, context) => {
|
|
3899
3845
|
const retVal = (output || [])
|
|
3900
3846
|
.filter((e) => e != null)
|
|
3901
3847
|
.map((entry) => {
|
|
3902
3848
|
if (entry === null) {
|
|
3903
3849
|
return null;
|
|
3904
3850
|
}
|
|
3905
|
-
return
|
|
3851
|
+
return de_Row(entry, context);
|
|
3906
3852
|
});
|
|
3907
3853
|
return retVal;
|
|
3908
3854
|
};
|
|
3909
|
-
const
|
|
3855
|
+
const de_SceneCapabilities = (output, context) => {
|
|
3910
3856
|
const retVal = (output || [])
|
|
3911
3857
|
.filter((e) => e != null)
|
|
3912
3858
|
.map((entry) => {
|
|
@@ -3917,7 +3863,7 @@ const deserializeAws_restJson1SceneCapabilities = (output, context) => {
|
|
|
3917
3863
|
});
|
|
3918
3864
|
return retVal;
|
|
3919
3865
|
};
|
|
3920
|
-
const
|
|
3866
|
+
const de_SceneMetadataMap = (output, context) => {
|
|
3921
3867
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3922
3868
|
if (value === null) {
|
|
3923
3869
|
return acc;
|
|
@@ -3926,18 +3872,18 @@ const deserializeAws_restJson1SceneMetadataMap = (output, context) => {
|
|
|
3926
3872
|
return acc;
|
|
3927
3873
|
}, {});
|
|
3928
3874
|
};
|
|
3929
|
-
const
|
|
3875
|
+
const de_SceneSummaries = (output, context) => {
|
|
3930
3876
|
const retVal = (output || [])
|
|
3931
3877
|
.filter((e) => e != null)
|
|
3932
3878
|
.map((entry) => {
|
|
3933
3879
|
if (entry === null) {
|
|
3934
3880
|
return null;
|
|
3935
3881
|
}
|
|
3936
|
-
return
|
|
3882
|
+
return de_SceneSummary(entry, context);
|
|
3937
3883
|
});
|
|
3938
3884
|
return retVal;
|
|
3939
3885
|
};
|
|
3940
|
-
const
|
|
3886
|
+
const de_SceneSummary = (output, context) => {
|
|
3941
3887
|
return {
|
|
3942
3888
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3943
3889
|
contentLocation: (0, smithy_client_1.expectString)(output.contentLocation),
|
|
@@ -3951,36 +3897,36 @@ const deserializeAws_restJson1SceneSummary = (output, context) => {
|
|
|
3951
3897
|
: undefined,
|
|
3952
3898
|
};
|
|
3953
3899
|
};
|
|
3954
|
-
const
|
|
3900
|
+
const de_Status = (output, context) => {
|
|
3955
3901
|
return {
|
|
3956
|
-
error: output.error != null ?
|
|
3902
|
+
error: output.error != null ? de_ErrorDetails(output.error, context) : undefined,
|
|
3957
3903
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
3958
3904
|
};
|
|
3959
3905
|
};
|
|
3960
|
-
const
|
|
3906
|
+
const de_SyncJobStatus = (output, context) => {
|
|
3961
3907
|
return {
|
|
3962
|
-
error: output.error != null ?
|
|
3908
|
+
error: output.error != null ? de_ErrorDetails(output.error, context) : undefined,
|
|
3963
3909
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
3964
3910
|
};
|
|
3965
3911
|
};
|
|
3966
|
-
const
|
|
3912
|
+
const de_SyncJobSummaries = (output, context) => {
|
|
3967
3913
|
const retVal = (output || [])
|
|
3968
3914
|
.filter((e) => e != null)
|
|
3969
3915
|
.map((entry) => {
|
|
3970
3916
|
if (entry === null) {
|
|
3971
3917
|
return null;
|
|
3972
3918
|
}
|
|
3973
|
-
return
|
|
3919
|
+
return de_SyncJobSummary(entry, context);
|
|
3974
3920
|
});
|
|
3975
3921
|
return retVal;
|
|
3976
3922
|
};
|
|
3977
|
-
const
|
|
3923
|
+
const de_SyncJobSummary = (output, context) => {
|
|
3978
3924
|
return {
|
|
3979
3925
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3980
3926
|
creationDateTime: output.creationDateTime != null
|
|
3981
3927
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
|
|
3982
3928
|
: undefined,
|
|
3983
|
-
status: output.status != null ?
|
|
3929
|
+
status: output.status != null ? de_SyncJobStatus(output.status, context) : undefined,
|
|
3984
3930
|
syncSource: (0, smithy_client_1.expectString)(output.syncSource),
|
|
3985
3931
|
updateDateTime: output.updateDateTime != null
|
|
3986
3932
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
|
|
@@ -3988,57 +3934,57 @@ const deserializeAws_restJson1SyncJobSummary = (output, context) => {
|
|
|
3988
3934
|
workspaceId: (0, smithy_client_1.expectString)(output.workspaceId),
|
|
3989
3935
|
};
|
|
3990
3936
|
};
|
|
3991
|
-
const
|
|
3937
|
+
const de_SyncResourceStatus = (output, context) => {
|
|
3992
3938
|
return {
|
|
3993
|
-
error: output.error != null ?
|
|
3939
|
+
error: output.error != null ? de_ErrorDetails(output.error, context) : undefined,
|
|
3994
3940
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
3995
3941
|
};
|
|
3996
3942
|
};
|
|
3997
|
-
const
|
|
3943
|
+
const de_SyncResourceSummaries = (output, context) => {
|
|
3998
3944
|
const retVal = (output || [])
|
|
3999
3945
|
.filter((e) => e != null)
|
|
4000
3946
|
.map((entry) => {
|
|
4001
3947
|
if (entry === null) {
|
|
4002
3948
|
return null;
|
|
4003
3949
|
}
|
|
4004
|
-
return
|
|
3950
|
+
return de_SyncResourceSummary(entry, context);
|
|
4005
3951
|
});
|
|
4006
3952
|
return retVal;
|
|
4007
3953
|
};
|
|
4008
|
-
const
|
|
3954
|
+
const de_SyncResourceSummary = (output, context) => {
|
|
4009
3955
|
return {
|
|
4010
3956
|
externalId: (0, smithy_client_1.expectString)(output.externalId),
|
|
4011
3957
|
resourceId: (0, smithy_client_1.expectString)(output.resourceId),
|
|
4012
3958
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
4013
|
-
status: output.status != null ?
|
|
3959
|
+
status: output.status != null ? de_SyncResourceStatus(output.status, context) : undefined,
|
|
4014
3960
|
updateDateTime: output.updateDateTime != null
|
|
4015
3961
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
|
|
4016
3962
|
: undefined,
|
|
4017
3963
|
};
|
|
4018
3964
|
};
|
|
4019
|
-
const
|
|
3965
|
+
const de_TabularPropertyValue = (output, context) => {
|
|
4020
3966
|
const retVal = (output || [])
|
|
4021
3967
|
.filter((e) => e != null)
|
|
4022
3968
|
.map((entry) => {
|
|
4023
3969
|
if (entry === null) {
|
|
4024
3970
|
return null;
|
|
4025
3971
|
}
|
|
4026
|
-
return
|
|
3972
|
+
return de_PropertyTableValue(entry, context);
|
|
4027
3973
|
});
|
|
4028
3974
|
return retVal;
|
|
4029
3975
|
};
|
|
4030
|
-
const
|
|
3976
|
+
const de_TabularPropertyValues = (output, context) => {
|
|
4031
3977
|
const retVal = (output || [])
|
|
4032
3978
|
.filter((e) => e != null)
|
|
4033
3979
|
.map((entry) => {
|
|
4034
3980
|
if (entry === null) {
|
|
4035
3981
|
return null;
|
|
4036
3982
|
}
|
|
4037
|
-
return
|
|
3983
|
+
return de_TabularPropertyValue(entry, context);
|
|
4038
3984
|
});
|
|
4039
3985
|
return retVal;
|
|
4040
3986
|
};
|
|
4041
|
-
const
|
|
3987
|
+
const de_TagMap = (output, context) => {
|
|
4042
3988
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4043
3989
|
if (value === null) {
|
|
4044
3990
|
return acc;
|
|
@@ -4047,29 +3993,29 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
4047
3993
|
return acc;
|
|
4048
3994
|
}, {});
|
|
4049
3995
|
};
|
|
4050
|
-
const
|
|
3996
|
+
const de_Values = (output, context) => {
|
|
4051
3997
|
const retVal = (output || [])
|
|
4052
3998
|
.filter((e) => e != null)
|
|
4053
3999
|
.map((entry) => {
|
|
4054
4000
|
if (entry === null) {
|
|
4055
4001
|
return null;
|
|
4056
4002
|
}
|
|
4057
|
-
return
|
|
4003
|
+
return de_PropertyValue(entry, context);
|
|
4058
4004
|
});
|
|
4059
4005
|
return retVal;
|
|
4060
4006
|
};
|
|
4061
|
-
const
|
|
4007
|
+
const de_WorkspaceSummaries = (output, context) => {
|
|
4062
4008
|
const retVal = (output || [])
|
|
4063
4009
|
.filter((e) => e != null)
|
|
4064
4010
|
.map((entry) => {
|
|
4065
4011
|
if (entry === null) {
|
|
4066
4012
|
return null;
|
|
4067
4013
|
}
|
|
4068
|
-
return
|
|
4014
|
+
return de_WorkspaceSummary(entry, context);
|
|
4069
4015
|
});
|
|
4070
4016
|
return retVal;
|
|
4071
4017
|
};
|
|
4072
|
-
const
|
|
4018
|
+
const de_WorkspaceSummary = (output, context) => {
|
|
4073
4019
|
return {
|
|
4074
4020
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4075
4021
|
creationDateTime: output.creationDateTime != null
|