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