@aws-sdk/client-iottwinmaker 3.210.0 → 3.212.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/IoTTwinMaker.js +45 -0
- package/dist-cjs/commands/ExecuteQueryCommand.js +46 -0
- package/dist-cjs/commands/GetPricingPlanCommand.js +46 -0
- package/dist-cjs/commands/UpdatePricingPlanCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +129 -9
- package/dist-cjs/pagination/ExecuteQueryPaginator.js +36 -0
- package/dist-cjs/pagination/GetPropertyValuePaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +540 -74
- package/dist-es/IoTTwinMaker.js +45 -0
- package/dist-es/commands/ExecuteQueryCommand.js +42 -0
- package/dist-es/commands/GetPricingPlanCommand.js +42 -0
- package/dist-es/commands/UpdatePricingPlanCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +107 -4
- package/dist-es/pagination/ExecuteQueryPaginator.js +32 -0
- package/dist-es/pagination/GetPropertyValuePaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +533 -73
- package/dist-types/IoTTwinMaker.d.ts +21 -0
- package/dist-types/IoTTwinMakerClient.d.ts +5 -2
- package/dist-types/commands/ExecuteQueryCommand.d.ts +37 -0
- package/dist-types/commands/GetPricingPlanCommand.d.ts +37 -0
- package/dist-types/commands/UpdatePricingPlanCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +424 -35
- package/dist-types/pagination/ExecuteQueryPaginator.d.ts +4 -0
- package/dist-types/pagination/GetPropertyValuePaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/IoTTwinMaker.d.ts +51 -0
- package/dist-types/ts3.4/IoTTwinMakerClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/ExecuteQueryCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetPricingPlanCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdatePricingPlanCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +182 -14
- package/dist-types/ts3.4/pagination/ExecuteQueryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetPropertyValuePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +28 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateWorkspaceCommand = exports.deserializeAws_restJson1UpdateSceneCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListScenesCommand = exports.deserializeAws_restJson1ListEntitiesCommand = exports.deserializeAws_restJson1ListComponentTypesCommand = exports.deserializeAws_restJson1GetWorkspaceCommand = exports.deserializeAws_restJson1GetSceneCommand = exports.deserializeAws_restJson1GetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetPropertyValueCommand = exports.deserializeAws_restJson1GetPricingPlanCommand = exports.deserializeAws_restJson1GetEntityCommand = exports.deserializeAws_restJson1GetComponentTypeCommand = exports.deserializeAws_restJson1ExecuteQueryCommand = exports.deserializeAws_restJson1DeleteWorkspaceCommand = exports.deserializeAws_restJson1DeleteSceneCommand = exports.deserializeAws_restJson1DeleteEntityCommand = exports.deserializeAws_restJson1DeleteComponentTypeCommand = exports.deserializeAws_restJson1CreateWorkspaceCommand = exports.deserializeAws_restJson1CreateSceneCommand = exports.deserializeAws_restJson1CreateEntityCommand = exports.deserializeAws_restJson1CreateComponentTypeCommand = exports.deserializeAws_restJson1BatchPutPropertyValuesCommand = exports.serializeAws_restJson1UpdateWorkspaceCommand = exports.serializeAws_restJson1UpdateSceneCommand = exports.serializeAws_restJson1UpdatePricingPlanCommand = exports.serializeAws_restJson1UpdateEntityCommand = exports.serializeAws_restJson1UpdateComponentTypeCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ListWorkspacesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListScenesCommand = exports.serializeAws_restJson1ListEntitiesCommand = exports.serializeAws_restJson1ListComponentTypesCommand = exports.serializeAws_restJson1GetWorkspaceCommand = exports.serializeAws_restJson1GetSceneCommand = exports.serializeAws_restJson1GetPropertyValueHistoryCommand = exports.serializeAws_restJson1GetPropertyValueCommand = exports.serializeAws_restJson1GetPricingPlanCommand = exports.serializeAws_restJson1GetEntityCommand = exports.serializeAws_restJson1GetComponentTypeCommand = exports.serializeAws_restJson1ExecuteQueryCommand = exports.serializeAws_restJson1DeleteWorkspaceCommand = exports.serializeAws_restJson1DeleteSceneCommand = exports.serializeAws_restJson1DeleteEntityCommand = exports.serializeAws_restJson1DeleteComponentTypeCommand = exports.serializeAws_restJson1CreateWorkspaceCommand = exports.serializeAws_restJson1CreateSceneCommand = exports.serializeAws_restJson1CreateEntityCommand = exports.serializeAws_restJson1CreateComponentTypeCommand = exports.serializeAws_restJson1BatchPutPropertyValuesCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateWorkspaceCommand = exports.deserializeAws_restJson1UpdateSceneCommand = exports.deserializeAws_restJson1UpdatePricingPlanCommand = exports.deserializeAws_restJson1UpdateEntityCommand = exports.deserializeAws_restJson1UpdateComponentTypeCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ListWorkspacesCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const IoTTwinMakerServiceException_1 = require("../models/IoTTwinMakerServiceException");
|
|
@@ -54,6 +54,9 @@ const serializeAws_restJson1CreateComponentTypeCommand = async (input, context)
|
|
|
54
54
|
...(input.propertyDefinitions != null && {
|
|
55
55
|
propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
56
56
|
}),
|
|
57
|
+
...(input.propertyGroups != null && {
|
|
58
|
+
propertyGroups: serializeAws_restJson1PropertyGroupsRequest(input.propertyGroups, context),
|
|
59
|
+
}),
|
|
57
60
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
58
61
|
});
|
|
59
62
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -283,6 +286,37 @@ const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
|
|
|
283
286
|
});
|
|
284
287
|
};
|
|
285
288
|
exports.serializeAws_restJson1DeleteWorkspaceCommand = serializeAws_restJson1DeleteWorkspaceCommand;
|
|
289
|
+
const serializeAws_restJson1ExecuteQueryCommand = async (input, context) => {
|
|
290
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
291
|
+
const headers = {
|
|
292
|
+
"content-type": "application/json",
|
|
293
|
+
};
|
|
294
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queries/execution";
|
|
295
|
+
let body;
|
|
296
|
+
body = JSON.stringify({
|
|
297
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
298
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
299
|
+
...(input.queryStatement != null && { queryStatement: input.queryStatement }),
|
|
300
|
+
...(input.workspaceId != null && { workspaceId: input.workspaceId }),
|
|
301
|
+
});
|
|
302
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
303
|
+
if (context.disableHostPrefix !== true) {
|
|
304
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
305
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
306
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
return new protocol_http_1.HttpRequest({
|
|
310
|
+
protocol,
|
|
311
|
+
hostname: resolvedHostname,
|
|
312
|
+
port,
|
|
313
|
+
method: "POST",
|
|
314
|
+
headers,
|
|
315
|
+
path: resolvedPath,
|
|
316
|
+
body,
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
exports.serializeAws_restJson1ExecuteQueryCommand = serializeAws_restJson1ExecuteQueryCommand;
|
|
286
320
|
const serializeAws_restJson1GetComponentTypeCommand = async (input, context) => {
|
|
287
321
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
288
322
|
const headers = {};
|
|
@@ -335,6 +369,32 @@ const serializeAws_restJson1GetEntityCommand = async (input, context) => {
|
|
|
335
369
|
});
|
|
336
370
|
};
|
|
337
371
|
exports.serializeAws_restJson1GetEntityCommand = serializeAws_restJson1GetEntityCommand;
|
|
372
|
+
const serializeAws_restJson1GetPricingPlanCommand = async (input, context) => {
|
|
373
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
374
|
+
const headers = {
|
|
375
|
+
"content-type": "application/json",
|
|
376
|
+
};
|
|
377
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pricingplan";
|
|
378
|
+
let body;
|
|
379
|
+
body = "";
|
|
380
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
381
|
+
if (context.disableHostPrefix !== true) {
|
|
382
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
383
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
384
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
return new protocol_http_1.HttpRequest({
|
|
388
|
+
protocol,
|
|
389
|
+
hostname: resolvedHostname,
|
|
390
|
+
port,
|
|
391
|
+
method: "GET",
|
|
392
|
+
headers,
|
|
393
|
+
path: resolvedPath,
|
|
394
|
+
body,
|
|
395
|
+
});
|
|
396
|
+
};
|
|
397
|
+
exports.serializeAws_restJson1GetPricingPlanCommand = serializeAws_restJson1GetPricingPlanCommand;
|
|
338
398
|
const serializeAws_restJson1GetPropertyValueCommand = async (input, context) => {
|
|
339
399
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
340
400
|
const headers = {
|
|
@@ -348,9 +408,15 @@ const serializeAws_restJson1GetPropertyValueCommand = async (input, context) =>
|
|
|
348
408
|
...(input.componentName != null && { componentName: input.componentName }),
|
|
349
409
|
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
350
410
|
...(input.entityId != null && { entityId: input.entityId }),
|
|
411
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
412
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
413
|
+
...(input.propertyGroupName != null && { propertyGroupName: input.propertyGroupName }),
|
|
351
414
|
...(input.selectedProperties != null && {
|
|
352
415
|
selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
|
|
353
416
|
}),
|
|
417
|
+
...(input.tabularConditions != null && {
|
|
418
|
+
tabularConditions: serializeAws_restJson1TabularConditions(input.tabularConditions, context),
|
|
419
|
+
}),
|
|
354
420
|
});
|
|
355
421
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
356
422
|
if (context.disableHostPrefix !== true) {
|
|
@@ -695,6 +761,9 @@ const serializeAws_restJson1UpdateComponentTypeCommand = async (input, context)
|
|
|
695
761
|
...(input.propertyDefinitions != null && {
|
|
696
762
|
propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
697
763
|
}),
|
|
764
|
+
...(input.propertyGroups != null && {
|
|
765
|
+
propertyGroups: serializeAws_restJson1PropertyGroupsRequest(input.propertyGroups, context),
|
|
766
|
+
}),
|
|
698
767
|
});
|
|
699
768
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
700
769
|
if (context.disableHostPrefix !== true) {
|
|
@@ -752,6 +821,35 @@ const serializeAws_restJson1UpdateEntityCommand = async (input, context) => {
|
|
|
752
821
|
});
|
|
753
822
|
};
|
|
754
823
|
exports.serializeAws_restJson1UpdateEntityCommand = serializeAws_restJson1UpdateEntityCommand;
|
|
824
|
+
const serializeAws_restJson1UpdatePricingPlanCommand = async (input, context) => {
|
|
825
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
826
|
+
const headers = {
|
|
827
|
+
"content-type": "application/json",
|
|
828
|
+
};
|
|
829
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pricingplan";
|
|
830
|
+
let body;
|
|
831
|
+
body = JSON.stringify({
|
|
832
|
+
...(input.bundleNames != null && { bundleNames: serializeAws_restJson1PricingBundles(input.bundleNames, context) }),
|
|
833
|
+
...(input.pricingMode != null && { pricingMode: input.pricingMode }),
|
|
834
|
+
});
|
|
835
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
836
|
+
if (context.disableHostPrefix !== true) {
|
|
837
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
838
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
839
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
return new protocol_http_1.HttpRequest({
|
|
843
|
+
protocol,
|
|
844
|
+
hostname: resolvedHostname,
|
|
845
|
+
port,
|
|
846
|
+
method: "POST",
|
|
847
|
+
headers,
|
|
848
|
+
path: resolvedPath,
|
|
849
|
+
body,
|
|
850
|
+
});
|
|
851
|
+
};
|
|
852
|
+
exports.serializeAws_restJson1UpdatePricingPlanCommand = serializeAws_restJson1UpdatePricingPlanCommand;
|
|
755
853
|
const serializeAws_restJson1UpdateSceneCommand = async (input, context) => {
|
|
756
854
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
757
855
|
const headers = {
|
|
@@ -1255,6 +1353,61 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
1255
1353
|
});
|
|
1256
1354
|
}
|
|
1257
1355
|
};
|
|
1356
|
+
const deserializeAws_restJson1ExecuteQueryCommand = async (output, context) => {
|
|
1357
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1358
|
+
return deserializeAws_restJson1ExecuteQueryCommandError(output, context);
|
|
1359
|
+
}
|
|
1360
|
+
const contents = map({
|
|
1361
|
+
$metadata: deserializeMetadata(output),
|
|
1362
|
+
});
|
|
1363
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1364
|
+
if (data.columnDescriptions != null) {
|
|
1365
|
+
contents.columnDescriptions = deserializeAws_restJson1ColumnDescriptions(data.columnDescriptions, context);
|
|
1366
|
+
}
|
|
1367
|
+
if (data.nextToken != null) {
|
|
1368
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1369
|
+
}
|
|
1370
|
+
if (data.rows != null) {
|
|
1371
|
+
contents.rows = deserializeAws_restJson1Rows(data.rows, context);
|
|
1372
|
+
}
|
|
1373
|
+
return contents;
|
|
1374
|
+
};
|
|
1375
|
+
exports.deserializeAws_restJson1ExecuteQueryCommand = deserializeAws_restJson1ExecuteQueryCommand;
|
|
1376
|
+
const deserializeAws_restJson1ExecuteQueryCommandError = async (output, context) => {
|
|
1377
|
+
const parsedOutput = {
|
|
1378
|
+
...output,
|
|
1379
|
+
body: await parseErrorBody(output.body, context),
|
|
1380
|
+
};
|
|
1381
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
+
switch (errorCode) {
|
|
1383
|
+
case "AccessDeniedException":
|
|
1384
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1385
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1386
|
+
case "InternalServerException":
|
|
1387
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1388
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1389
|
+
case "QueryTimeoutException":
|
|
1390
|
+
case "com.amazonaws.iottwinmaker#QueryTimeoutException":
|
|
1391
|
+
throw await deserializeAws_restJson1QueryTimeoutExceptionResponse(parsedOutput, context);
|
|
1392
|
+
case "ServiceQuotaExceededException":
|
|
1393
|
+
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1394
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1395
|
+
case "ThrottlingException":
|
|
1396
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1397
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1398
|
+
case "ValidationException":
|
|
1399
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1400
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1401
|
+
default:
|
|
1402
|
+
const parsedBody = parsedOutput.body;
|
|
1403
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1404
|
+
output,
|
|
1405
|
+
parsedBody,
|
|
1406
|
+
exceptionCtor: IoTTwinMakerServiceException_1.IoTTwinMakerServiceException,
|
|
1407
|
+
errorCode,
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1258
1411
|
const deserializeAws_restJson1GetComponentTypeCommand = async (output, context) => {
|
|
1259
1412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1260
1413
|
return deserializeAws_restJson1GetComponentTypeCommandError(output, context);
|
|
@@ -1293,6 +1446,9 @@ const deserializeAws_restJson1GetComponentTypeCommand = async (output, context)
|
|
|
1293
1446
|
if (data.propertyDefinitions != null) {
|
|
1294
1447
|
contents.propertyDefinitions = deserializeAws_restJson1PropertyDefinitionsResponse(data.propertyDefinitions, context);
|
|
1295
1448
|
}
|
|
1449
|
+
if (data.propertyGroups != null) {
|
|
1450
|
+
contents.propertyGroups = deserializeAws_restJson1PropertyGroupsResponse(data.propertyGroups, context);
|
|
1451
|
+
}
|
|
1296
1452
|
if (data.status != null) {
|
|
1297
1453
|
contents.status = deserializeAws_restJson1Status(data.status, context);
|
|
1298
1454
|
}
|
|
@@ -1324,6 +1480,9 @@ const deserializeAws_restJson1GetComponentTypeCommandError = async (output, cont
|
|
|
1324
1480
|
case "ThrottlingException":
|
|
1325
1481
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1326
1482
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1483
|
+
case "ValidationException":
|
|
1484
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1485
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1327
1486
|
default:
|
|
1328
1487
|
const parsedBody = parsedOutput.body;
|
|
1329
1488
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1410,6 +1569,52 @@ const deserializeAws_restJson1GetEntityCommandError = async (output, context) =>
|
|
|
1410
1569
|
});
|
|
1411
1570
|
}
|
|
1412
1571
|
};
|
|
1572
|
+
const deserializeAws_restJson1GetPricingPlanCommand = async (output, context) => {
|
|
1573
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1574
|
+
return deserializeAws_restJson1GetPricingPlanCommandError(output, context);
|
|
1575
|
+
}
|
|
1576
|
+
const contents = map({
|
|
1577
|
+
$metadata: deserializeMetadata(output),
|
|
1578
|
+
});
|
|
1579
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1580
|
+
if (data.currentPricingPlan != null) {
|
|
1581
|
+
contents.currentPricingPlan = deserializeAws_restJson1PricingPlan(data.currentPricingPlan, context);
|
|
1582
|
+
}
|
|
1583
|
+
if (data.pendingPricingPlan != null) {
|
|
1584
|
+
contents.pendingPricingPlan = deserializeAws_restJson1PricingPlan(data.pendingPricingPlan, context);
|
|
1585
|
+
}
|
|
1586
|
+
return contents;
|
|
1587
|
+
};
|
|
1588
|
+
exports.deserializeAws_restJson1GetPricingPlanCommand = deserializeAws_restJson1GetPricingPlanCommand;
|
|
1589
|
+
const deserializeAws_restJson1GetPricingPlanCommandError = async (output, context) => {
|
|
1590
|
+
const parsedOutput = {
|
|
1591
|
+
...output,
|
|
1592
|
+
body: await parseErrorBody(output.body, context),
|
|
1593
|
+
};
|
|
1594
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
|
+
switch (errorCode) {
|
|
1596
|
+
case "AccessDeniedException":
|
|
1597
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1598
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1599
|
+
case "InternalServerException":
|
|
1600
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1601
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1602
|
+
case "ThrottlingException":
|
|
1603
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1604
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1605
|
+
case "ValidationException":
|
|
1606
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1607
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1608
|
+
default:
|
|
1609
|
+
const parsedBody = parsedOutput.body;
|
|
1610
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1611
|
+
output,
|
|
1612
|
+
parsedBody,
|
|
1613
|
+
exceptionCtor: IoTTwinMakerServiceException_1.IoTTwinMakerServiceException,
|
|
1614
|
+
errorCode,
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
};
|
|
1413
1618
|
const deserializeAws_restJson1GetPropertyValueCommand = async (output, context) => {
|
|
1414
1619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1415
1620
|
return deserializeAws_restJson1GetPropertyValueCommandError(output, context);
|
|
@@ -1418,9 +1623,15 @@ const deserializeAws_restJson1GetPropertyValueCommand = async (output, context)
|
|
|
1418
1623
|
$metadata: deserializeMetadata(output),
|
|
1419
1624
|
});
|
|
1420
1625
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1626
|
+
if (data.nextToken != null) {
|
|
1627
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1628
|
+
}
|
|
1421
1629
|
if (data.propertyValues != null) {
|
|
1422
1630
|
contents.propertyValues = deserializeAws_restJson1PropertyLatestValueMap(data.propertyValues, context);
|
|
1423
1631
|
}
|
|
1632
|
+
if (data.tabularPropertyValues != null) {
|
|
1633
|
+
contents.tabularPropertyValues = deserializeAws_restJson1TabularPropertyValues(data.tabularPropertyValues, context);
|
|
1634
|
+
}
|
|
1424
1635
|
return contents;
|
|
1425
1636
|
};
|
|
1426
1637
|
exports.deserializeAws_restJson1GetPropertyValueCommand = deserializeAws_restJson1GetPropertyValueCommand;
|
|
@@ -2062,6 +2273,52 @@ const deserializeAws_restJson1UpdateEntityCommandError = async (output, context)
|
|
|
2062
2273
|
});
|
|
2063
2274
|
}
|
|
2064
2275
|
};
|
|
2276
|
+
const deserializeAws_restJson1UpdatePricingPlanCommand = async (output, context) => {
|
|
2277
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2278
|
+
return deserializeAws_restJson1UpdatePricingPlanCommandError(output, context);
|
|
2279
|
+
}
|
|
2280
|
+
const contents = map({
|
|
2281
|
+
$metadata: deserializeMetadata(output),
|
|
2282
|
+
});
|
|
2283
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2284
|
+
if (data.currentPricingPlan != null) {
|
|
2285
|
+
contents.currentPricingPlan = deserializeAws_restJson1PricingPlan(data.currentPricingPlan, context);
|
|
2286
|
+
}
|
|
2287
|
+
if (data.pendingPricingPlan != null) {
|
|
2288
|
+
contents.pendingPricingPlan = deserializeAws_restJson1PricingPlan(data.pendingPricingPlan, context);
|
|
2289
|
+
}
|
|
2290
|
+
return contents;
|
|
2291
|
+
};
|
|
2292
|
+
exports.deserializeAws_restJson1UpdatePricingPlanCommand = deserializeAws_restJson1UpdatePricingPlanCommand;
|
|
2293
|
+
const deserializeAws_restJson1UpdatePricingPlanCommandError = async (output, context) => {
|
|
2294
|
+
const parsedOutput = {
|
|
2295
|
+
...output,
|
|
2296
|
+
body: await parseErrorBody(output.body, context),
|
|
2297
|
+
};
|
|
2298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
|
+
switch (errorCode) {
|
|
2300
|
+
case "AccessDeniedException":
|
|
2301
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2302
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2303
|
+
case "InternalServerException":
|
|
2304
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2305
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2306
|
+
case "ThrottlingException":
|
|
2307
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2308
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2309
|
+
case "ValidationException":
|
|
2310
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2311
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2312
|
+
default:
|
|
2313
|
+
const parsedBody = parsedOutput.body;
|
|
2314
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2315
|
+
output,
|
|
2316
|
+
parsedBody,
|
|
2317
|
+
exceptionCtor: IoTTwinMakerServiceException_1.IoTTwinMakerServiceException,
|
|
2318
|
+
errorCode,
|
|
2319
|
+
});
|
|
2320
|
+
}
|
|
2321
|
+
};
|
|
2065
2322
|
const deserializeAws_restJson1UpdateSceneCommand = async (output, context) => {
|
|
2066
2323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2067
2324
|
return deserializeAws_restJson1UpdateSceneCommandError(output, context);
|
|
@@ -2218,6 +2475,18 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2218
2475
|
});
|
|
2219
2476
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2220
2477
|
};
|
|
2478
|
+
const deserializeAws_restJson1QueryTimeoutExceptionResponse = async (parsedOutput, context) => {
|
|
2479
|
+
const contents = map({});
|
|
2480
|
+
const data = parsedOutput.body;
|
|
2481
|
+
if (data.message != null) {
|
|
2482
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2483
|
+
}
|
|
2484
|
+
const exception = new models_0_1.QueryTimeoutException({
|
|
2485
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2486
|
+
...contents,
|
|
2487
|
+
});
|
|
2488
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2489
|
+
};
|
|
2221
2490
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2222
2491
|
const contents = map({});
|
|
2223
2492
|
const data = parsedOutput.body;
|
|
@@ -2278,11 +2547,32 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2278
2547
|
});
|
|
2279
2548
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2280
2549
|
};
|
|
2550
|
+
const serializeAws_restJson1ComponentPropertyGroupRequest = (input, context) => {
|
|
2551
|
+
return {
|
|
2552
|
+
...(input.groupType != null && { groupType: input.groupType }),
|
|
2553
|
+
...(input.propertyNames != null && {
|
|
2554
|
+
propertyNames: serializeAws_restJson1PropertyNames(input.propertyNames, context),
|
|
2555
|
+
}),
|
|
2556
|
+
...(input.updateType != null && { updateType: input.updateType }),
|
|
2557
|
+
};
|
|
2558
|
+
};
|
|
2559
|
+
const serializeAws_restJson1ComponentPropertyGroupRequests = (input, context) => {
|
|
2560
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2561
|
+
if (value === null) {
|
|
2562
|
+
return acc;
|
|
2563
|
+
}
|
|
2564
|
+
acc[key] = serializeAws_restJson1ComponentPropertyGroupRequest(value, context);
|
|
2565
|
+
return acc;
|
|
2566
|
+
}, {});
|
|
2567
|
+
};
|
|
2281
2568
|
const serializeAws_restJson1ComponentRequest = (input, context) => {
|
|
2282
2569
|
return {
|
|
2283
2570
|
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
2284
2571
|
...(input.description != null && { description: input.description }),
|
|
2285
2572
|
...(input.properties != null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }),
|
|
2573
|
+
...(input.propertyGroups != null && {
|
|
2574
|
+
propertyGroups: serializeAws_restJson1ComponentPropertyGroupRequests(input.propertyGroups, context),
|
|
2575
|
+
}),
|
|
2286
2576
|
};
|
|
2287
2577
|
};
|
|
2288
2578
|
const serializeAws_restJson1ComponentsMapRequest = (input, context) => {
|
|
@@ -2290,16 +2580,17 @@ const serializeAws_restJson1ComponentsMapRequest = (input, context) => {
|
|
|
2290
2580
|
if (value === null) {
|
|
2291
2581
|
return acc;
|
|
2292
2582
|
}
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
[key]: serializeAws_restJson1ComponentRequest(value, context),
|
|
2296
|
-
};
|
|
2583
|
+
acc[key] = serializeAws_restJson1ComponentRequest(value, context);
|
|
2584
|
+
return acc;
|
|
2297
2585
|
}, {});
|
|
2298
2586
|
};
|
|
2299
2587
|
const serializeAws_restJson1ComponentUpdateRequest = (input, context) => {
|
|
2300
2588
|
return {
|
|
2301
2589
|
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
2302
2590
|
...(input.description != null && { description: input.description }),
|
|
2591
|
+
...(input.propertyGroupUpdates != null && {
|
|
2592
|
+
propertyGroupUpdates: serializeAws_restJson1ComponentPropertyGroupRequests(input.propertyGroupUpdates, context),
|
|
2593
|
+
}),
|
|
2303
2594
|
...(input.propertyUpdates != null && {
|
|
2304
2595
|
propertyUpdates: serializeAws_restJson1PropertyRequests(input.propertyUpdates, context),
|
|
2305
2596
|
}),
|
|
@@ -2311,10 +2602,8 @@ const serializeAws_restJson1ComponentUpdatesMapRequest = (input, context) => {
|
|
|
2311
2602
|
if (value === null) {
|
|
2312
2603
|
return acc;
|
|
2313
2604
|
}
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
[key]: serializeAws_restJson1ComponentUpdateRequest(value, context),
|
|
2317
|
-
};
|
|
2605
|
+
acc[key] = serializeAws_restJson1ComponentUpdateRequest(value, context);
|
|
2606
|
+
return acc;
|
|
2318
2607
|
}, {});
|
|
2319
2608
|
};
|
|
2320
2609
|
const serializeAws_restJson1Configuration = (input, context) => {
|
|
@@ -2322,10 +2611,8 @@ const serializeAws_restJson1Configuration = (input, context) => {
|
|
|
2322
2611
|
if (value === null) {
|
|
2323
2612
|
return acc;
|
|
2324
2613
|
}
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
[key]: value,
|
|
2328
|
-
};
|
|
2614
|
+
acc[key] = value;
|
|
2615
|
+
return acc;
|
|
2329
2616
|
}, {});
|
|
2330
2617
|
};
|
|
2331
2618
|
const serializeAws_restJson1DataConnector = (input, context) => {
|
|
@@ -2374,10 +2661,8 @@ const serializeAws_restJson1DataValueMap = (input, context) => {
|
|
|
2374
2661
|
if (value === null) {
|
|
2375
2662
|
return acc;
|
|
2376
2663
|
}
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
[key]: serializeAws_restJson1DataValue(value, context),
|
|
2380
|
-
};
|
|
2664
|
+
acc[key] = serializeAws_restJson1DataValue(value, context);
|
|
2665
|
+
return acc;
|
|
2381
2666
|
}, {});
|
|
2382
2667
|
};
|
|
2383
2668
|
const serializeAws_restJson1EntityPropertyReference = (input, context) => {
|
|
@@ -2409,10 +2694,8 @@ const serializeAws_restJson1ExternalIdProperty = (input, context) => {
|
|
|
2409
2694
|
if (value === null) {
|
|
2410
2695
|
return acc;
|
|
2411
2696
|
}
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
[key]: value,
|
|
2415
|
-
};
|
|
2697
|
+
acc[key] = value;
|
|
2698
|
+
return acc;
|
|
2416
2699
|
}, {});
|
|
2417
2700
|
};
|
|
2418
2701
|
const serializeAws_restJson1FunctionRequest = (input, context) => {
|
|
@@ -2431,10 +2714,8 @@ const serializeAws_restJson1FunctionsRequest = (input, context) => {
|
|
|
2431
2714
|
if (value === null) {
|
|
2432
2715
|
return acc;
|
|
2433
2716
|
}
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
[key]: serializeAws_restJson1FunctionRequest(value, context),
|
|
2437
|
-
};
|
|
2717
|
+
acc[key] = serializeAws_restJson1FunctionRequest(value, context);
|
|
2718
|
+
return acc;
|
|
2438
2719
|
}, {});
|
|
2439
2720
|
};
|
|
2440
2721
|
const serializeAws_restJson1InterpolationParameters = (input, context) => {
|
|
@@ -2478,12 +2759,32 @@ const serializeAws_restJson1ListEntitiesFilters = (input, context) => {
|
|
|
2478
2759
|
return serializeAws_restJson1ListEntitiesFilter(entry, context);
|
|
2479
2760
|
});
|
|
2480
2761
|
};
|
|
2762
|
+
const serializeAws_restJson1OrderBy = (input, context) => {
|
|
2763
|
+
return {
|
|
2764
|
+
...(input.order != null && { order: input.order }),
|
|
2765
|
+
...(input.propertyName != null && { propertyName: input.propertyName }),
|
|
2766
|
+
};
|
|
2767
|
+
};
|
|
2768
|
+
const serializeAws_restJson1OrderByList = (input, context) => {
|
|
2769
|
+
return input
|
|
2770
|
+
.filter((e) => e != null)
|
|
2771
|
+
.map((entry) => {
|
|
2772
|
+
return serializeAws_restJson1OrderBy(entry, context);
|
|
2773
|
+
});
|
|
2774
|
+
};
|
|
2481
2775
|
const serializeAws_restJson1ParentEntityUpdateRequest = (input, context) => {
|
|
2482
2776
|
return {
|
|
2483
2777
|
...(input.parentEntityId != null && { parentEntityId: input.parentEntityId }),
|
|
2484
2778
|
...(input.updateType != null && { updateType: input.updateType }),
|
|
2485
2779
|
};
|
|
2486
2780
|
};
|
|
2781
|
+
const serializeAws_restJson1PricingBundles = (input, context) => {
|
|
2782
|
+
return input
|
|
2783
|
+
.filter((e) => e != null)
|
|
2784
|
+
.map((entry) => {
|
|
2785
|
+
return entry;
|
|
2786
|
+
});
|
|
2787
|
+
};
|
|
2487
2788
|
const serializeAws_restJson1PropertyDefinitionRequest = (input, context) => {
|
|
2488
2789
|
return {
|
|
2489
2790
|
...(input.configuration != null && {
|
|
@@ -2502,10 +2803,8 @@ const serializeAws_restJson1PropertyDefinitionsRequest = (input, context) => {
|
|
|
2502
2803
|
if (value === null) {
|
|
2503
2804
|
return acc;
|
|
2504
2805
|
}
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
[key]: serializeAws_restJson1PropertyDefinitionRequest(value, context),
|
|
2508
|
-
};
|
|
2806
|
+
acc[key] = serializeAws_restJson1PropertyDefinitionRequest(value, context);
|
|
2807
|
+
return acc;
|
|
2509
2808
|
}, {});
|
|
2510
2809
|
};
|
|
2511
2810
|
const serializeAws_restJson1PropertyFilter = (input, context) => {
|
|
@@ -2522,6 +2821,30 @@ const serializeAws_restJson1PropertyFilters = (input, context) => {
|
|
|
2522
2821
|
return serializeAws_restJson1PropertyFilter(entry, context);
|
|
2523
2822
|
});
|
|
2524
2823
|
};
|
|
2824
|
+
const serializeAws_restJson1PropertyGroupRequest = (input, context) => {
|
|
2825
|
+
return {
|
|
2826
|
+
...(input.groupType != null && { groupType: input.groupType }),
|
|
2827
|
+
...(input.propertyNames != null && {
|
|
2828
|
+
propertyNames: serializeAws_restJson1PropertyNames(input.propertyNames, context),
|
|
2829
|
+
}),
|
|
2830
|
+
};
|
|
2831
|
+
};
|
|
2832
|
+
const serializeAws_restJson1PropertyGroupsRequest = (input, context) => {
|
|
2833
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2834
|
+
if (value === null) {
|
|
2835
|
+
return acc;
|
|
2836
|
+
}
|
|
2837
|
+
acc[key] = serializeAws_restJson1PropertyGroupRequest(value, context);
|
|
2838
|
+
return acc;
|
|
2839
|
+
}, {});
|
|
2840
|
+
};
|
|
2841
|
+
const serializeAws_restJson1PropertyNames = (input, context) => {
|
|
2842
|
+
return input
|
|
2843
|
+
.filter((e) => e != null)
|
|
2844
|
+
.map((entry) => {
|
|
2845
|
+
return entry;
|
|
2846
|
+
});
|
|
2847
|
+
};
|
|
2525
2848
|
const serializeAws_restJson1PropertyRequest = (input, context) => {
|
|
2526
2849
|
return {
|
|
2527
2850
|
...(input.definition != null && {
|
|
@@ -2536,10 +2859,8 @@ const serializeAws_restJson1PropertyRequests = (input, context) => {
|
|
|
2536
2859
|
if (value === null) {
|
|
2537
2860
|
return acc;
|
|
2538
2861
|
}
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
[key]: serializeAws_restJson1PropertyRequest(value, context),
|
|
2542
|
-
};
|
|
2862
|
+
acc[key] = serializeAws_restJson1PropertyRequest(value, context);
|
|
2863
|
+
return acc;
|
|
2543
2864
|
}, {});
|
|
2544
2865
|
};
|
|
2545
2866
|
const serializeAws_restJson1PropertyValue = (input, context) => {
|
|
@@ -2599,15 +2920,21 @@ const serializeAws_restJson1SelectedPropertyList = (input, context) => {
|
|
|
2599
2920
|
return entry;
|
|
2600
2921
|
});
|
|
2601
2922
|
};
|
|
2923
|
+
const serializeAws_restJson1TabularConditions = (input, context) => {
|
|
2924
|
+
return {
|
|
2925
|
+
...(input.orderBy != null && { orderBy: serializeAws_restJson1OrderByList(input.orderBy, context) }),
|
|
2926
|
+
...(input.propertyFilters != null && {
|
|
2927
|
+
propertyFilters: serializeAws_restJson1PropertyFilters(input.propertyFilters, context),
|
|
2928
|
+
}),
|
|
2929
|
+
};
|
|
2930
|
+
};
|
|
2602
2931
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
2603
2932
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2604
2933
|
if (value === null) {
|
|
2605
2934
|
return acc;
|
|
2606
2935
|
}
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
[key]: value,
|
|
2610
|
-
};
|
|
2936
|
+
acc[key] = value;
|
|
2937
|
+
return acc;
|
|
2611
2938
|
}, {});
|
|
2612
2939
|
};
|
|
2613
2940
|
const deserializeAws_restJson1BatchPutPropertyError = (output, context) => {
|
|
@@ -2622,6 +2949,45 @@ const deserializeAws_restJson1BatchPutPropertyErrorEntry = (output, context) =>
|
|
|
2622
2949
|
errors: output.errors != null ? deserializeAws_restJson1Errors(output.errors, context) : undefined,
|
|
2623
2950
|
};
|
|
2624
2951
|
};
|
|
2952
|
+
const deserializeAws_restJson1BundleInformation = (output, context) => {
|
|
2953
|
+
return {
|
|
2954
|
+
bundleNames: output.bundleNames != null ? deserializeAws_restJson1PricingBundles(output.bundleNames, context) : undefined,
|
|
2955
|
+
pricingTier: (0, smithy_client_1.expectString)(output.pricingTier),
|
|
2956
|
+
};
|
|
2957
|
+
};
|
|
2958
|
+
const deserializeAws_restJson1ColumnDescription = (output, context) => {
|
|
2959
|
+
return {
|
|
2960
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2961
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2962
|
+
};
|
|
2963
|
+
};
|
|
2964
|
+
const deserializeAws_restJson1ColumnDescriptions = (output, context) => {
|
|
2965
|
+
const retVal = (output || [])
|
|
2966
|
+
.filter((e) => e != null)
|
|
2967
|
+
.map((entry) => {
|
|
2968
|
+
if (entry === null) {
|
|
2969
|
+
return null;
|
|
2970
|
+
}
|
|
2971
|
+
return deserializeAws_restJson1ColumnDescription(entry, context);
|
|
2972
|
+
});
|
|
2973
|
+
return retVal;
|
|
2974
|
+
};
|
|
2975
|
+
const deserializeAws_restJson1ComponentPropertyGroupResponse = (output, context) => {
|
|
2976
|
+
return {
|
|
2977
|
+
groupType: (0, smithy_client_1.expectString)(output.groupType),
|
|
2978
|
+
isInherited: (0, smithy_client_1.expectBoolean)(output.isInherited),
|
|
2979
|
+
propertyNames: output.propertyNames != null ? deserializeAws_restJson1PropertyNames(output.propertyNames, context) : undefined,
|
|
2980
|
+
};
|
|
2981
|
+
};
|
|
2982
|
+
const deserializeAws_restJson1ComponentPropertyGroupResponses = (output, context) => {
|
|
2983
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2984
|
+
if (value === null) {
|
|
2985
|
+
return acc;
|
|
2986
|
+
}
|
|
2987
|
+
acc[key] = deserializeAws_restJson1ComponentPropertyGroupResponse(value, context);
|
|
2988
|
+
return acc;
|
|
2989
|
+
}, {});
|
|
2990
|
+
};
|
|
2625
2991
|
const deserializeAws_restJson1ComponentResponse = (output, context) => {
|
|
2626
2992
|
return {
|
|
2627
2993
|
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
@@ -2629,6 +2995,9 @@ const deserializeAws_restJson1ComponentResponse = (output, context) => {
|
|
|
2629
2995
|
definedIn: (0, smithy_client_1.expectString)(output.definedIn),
|
|
2630
2996
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2631
2997
|
properties: output.properties != null ? deserializeAws_restJson1PropertyResponses(output.properties, context) : undefined,
|
|
2998
|
+
propertyGroups: output.propertyGroups != null
|
|
2999
|
+
? deserializeAws_restJson1ComponentPropertyGroupResponses(output.propertyGroups, context)
|
|
3000
|
+
: undefined,
|
|
2632
3001
|
status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
|
|
2633
3002
|
};
|
|
2634
3003
|
};
|
|
@@ -2637,10 +3006,8 @@ const deserializeAws_restJson1ComponentsMap = (output, context) => {
|
|
|
2637
3006
|
if (value === null) {
|
|
2638
3007
|
return acc;
|
|
2639
3008
|
}
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
[key]: deserializeAws_restJson1ComponentResponse(value, context),
|
|
2643
|
-
};
|
|
3009
|
+
acc[key] = deserializeAws_restJson1ComponentResponse(value, context);
|
|
3010
|
+
return acc;
|
|
2644
3011
|
}, {});
|
|
2645
3012
|
};
|
|
2646
3013
|
const deserializeAws_restJson1ComponentTypeSummaries = (output, context) => {
|
|
@@ -2673,10 +3040,8 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
2673
3040
|
if (value === null) {
|
|
2674
3041
|
return acc;
|
|
2675
3042
|
}
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
[key]: (0, smithy_client_1.expectString)(value),
|
|
2679
|
-
};
|
|
3043
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3044
|
+
return acc;
|
|
2680
3045
|
}, {});
|
|
2681
3046
|
};
|
|
2682
3047
|
const deserializeAws_restJson1DataConnector = (output, context) => {
|
|
@@ -2725,10 +3090,8 @@ const deserializeAws_restJson1DataValueMap = (output, context) => {
|
|
|
2725
3090
|
if (value === null) {
|
|
2726
3091
|
return acc;
|
|
2727
3092
|
}
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
[key]: deserializeAws_restJson1DataValue(value, context),
|
|
2731
|
-
};
|
|
3093
|
+
acc[key] = deserializeAws_restJson1DataValue(value, context);
|
|
3094
|
+
return acc;
|
|
2732
3095
|
}, {});
|
|
2733
3096
|
};
|
|
2734
3097
|
const deserializeAws_restJson1EntityPropertyReference = (output, context) => {
|
|
@@ -2813,10 +3176,8 @@ const deserializeAws_restJson1ExternalIdProperty = (output, context) => {
|
|
|
2813
3176
|
if (value === null) {
|
|
2814
3177
|
return acc;
|
|
2815
3178
|
}
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
[key]: (0, smithy_client_1.expectString)(value),
|
|
2819
|
-
};
|
|
3179
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3180
|
+
return acc;
|
|
2820
3181
|
}, {});
|
|
2821
3182
|
};
|
|
2822
3183
|
const deserializeAws_restJson1FunctionResponse = (output, context) => {
|
|
@@ -2834,10 +3195,8 @@ const deserializeAws_restJson1FunctionsResponse = (output, context) => {
|
|
|
2834
3195
|
if (value === null) {
|
|
2835
3196
|
return acc;
|
|
2836
3197
|
}
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
[key]: deserializeAws_restJson1FunctionResponse(value, context),
|
|
2840
|
-
};
|
|
3198
|
+
acc[key] = deserializeAws_restJson1FunctionResponse(value, context);
|
|
3199
|
+
return acc;
|
|
2841
3200
|
}, {});
|
|
2842
3201
|
};
|
|
2843
3202
|
const deserializeAws_restJson1LambdaFunction = (output, context) => {
|
|
@@ -2845,6 +3204,33 @@ const deserializeAws_restJson1LambdaFunction = (output, context) => {
|
|
|
2845
3204
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2846
3205
|
};
|
|
2847
3206
|
};
|
|
3207
|
+
const deserializeAws_restJson1PricingBundles = (output, context) => {
|
|
3208
|
+
const retVal = (output || [])
|
|
3209
|
+
.filter((e) => e != null)
|
|
3210
|
+
.map((entry) => {
|
|
3211
|
+
if (entry === null) {
|
|
3212
|
+
return null;
|
|
3213
|
+
}
|
|
3214
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3215
|
+
});
|
|
3216
|
+
return retVal;
|
|
3217
|
+
};
|
|
3218
|
+
const deserializeAws_restJson1PricingPlan = (output, context) => {
|
|
3219
|
+
return {
|
|
3220
|
+
billableEntityCount: (0, smithy_client_1.expectLong)(output.billableEntityCount),
|
|
3221
|
+
bundleInformation: output.bundleInformation != null
|
|
3222
|
+
? deserializeAws_restJson1BundleInformation(output.bundleInformation, context)
|
|
3223
|
+
: undefined,
|
|
3224
|
+
effectiveDateTime: output.effectiveDateTime != null
|
|
3225
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.effectiveDateTime)))
|
|
3226
|
+
: undefined,
|
|
3227
|
+
pricingMode: (0, smithy_client_1.expectString)(output.pricingMode),
|
|
3228
|
+
updateDateTime: output.updateDateTime != null
|
|
3229
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
|
|
3230
|
+
: undefined,
|
|
3231
|
+
updateReason: (0, smithy_client_1.expectString)(output.updateReason),
|
|
3232
|
+
};
|
|
3233
|
+
};
|
|
2848
3234
|
const deserializeAws_restJson1PropertyDefinitionResponse = (output, context) => {
|
|
2849
3235
|
return {
|
|
2850
3236
|
configuration: output.configuration != null ? deserializeAws_restJson1Configuration(output.configuration, context) : undefined,
|
|
@@ -2864,10 +3250,24 @@ const deserializeAws_restJson1PropertyDefinitionsResponse = (output, context) =>
|
|
|
2864
3250
|
if (value === null) {
|
|
2865
3251
|
return acc;
|
|
2866
3252
|
}
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
3253
|
+
acc[key] = deserializeAws_restJson1PropertyDefinitionResponse(value, context);
|
|
3254
|
+
return acc;
|
|
3255
|
+
}, {});
|
|
3256
|
+
};
|
|
3257
|
+
const deserializeAws_restJson1PropertyGroupResponse = (output, context) => {
|
|
3258
|
+
return {
|
|
3259
|
+
groupType: (0, smithy_client_1.expectString)(output.groupType),
|
|
3260
|
+
isInherited: (0, smithy_client_1.expectBoolean)(output.isInherited),
|
|
3261
|
+
propertyNames: output.propertyNames != null ? deserializeAws_restJson1PropertyNames(output.propertyNames, context) : undefined,
|
|
3262
|
+
};
|
|
3263
|
+
};
|
|
3264
|
+
const deserializeAws_restJson1PropertyGroupsResponse = (output, context) => {
|
|
3265
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3266
|
+
if (value === null) {
|
|
3267
|
+
return acc;
|
|
3268
|
+
}
|
|
3269
|
+
acc[key] = deserializeAws_restJson1PropertyGroupResponse(value, context);
|
|
3270
|
+
return acc;
|
|
2871
3271
|
}, {});
|
|
2872
3272
|
};
|
|
2873
3273
|
const deserializeAws_restJson1PropertyLatestValue = (output, context) => {
|
|
@@ -2883,12 +3283,21 @@ const deserializeAws_restJson1PropertyLatestValueMap = (output, context) => {
|
|
|
2883
3283
|
if (value === null) {
|
|
2884
3284
|
return acc;
|
|
2885
3285
|
}
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
[key]: deserializeAws_restJson1PropertyLatestValue(value, context),
|
|
2889
|
-
};
|
|
3286
|
+
acc[key] = deserializeAws_restJson1PropertyLatestValue(value, context);
|
|
3287
|
+
return acc;
|
|
2890
3288
|
}, {});
|
|
2891
3289
|
};
|
|
3290
|
+
const deserializeAws_restJson1PropertyNames = (output, context) => {
|
|
3291
|
+
const retVal = (output || [])
|
|
3292
|
+
.filter((e) => e != null)
|
|
3293
|
+
.map((entry) => {
|
|
3294
|
+
if (entry === null) {
|
|
3295
|
+
return null;
|
|
3296
|
+
}
|
|
3297
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3298
|
+
});
|
|
3299
|
+
return retVal;
|
|
3300
|
+
};
|
|
2892
3301
|
const deserializeAws_restJson1PropertyResponse = (output, context) => {
|
|
2893
3302
|
return {
|
|
2894
3303
|
definition: output.definition != null
|
|
@@ -2902,10 +3311,17 @@ const deserializeAws_restJson1PropertyResponses = (output, context) => {
|
|
|
2902
3311
|
if (value === null) {
|
|
2903
3312
|
return acc;
|
|
2904
3313
|
}
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
3314
|
+
acc[key] = deserializeAws_restJson1PropertyResponse(value, context);
|
|
3315
|
+
return acc;
|
|
3316
|
+
}, {});
|
|
3317
|
+
};
|
|
3318
|
+
const deserializeAws_restJson1PropertyTableValue = (output, context) => {
|
|
3319
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3320
|
+
if (value === null) {
|
|
3321
|
+
return acc;
|
|
3322
|
+
}
|
|
3323
|
+
acc[key] = deserializeAws_restJson1DataValue(value, context);
|
|
3324
|
+
return acc;
|
|
2909
3325
|
}, {});
|
|
2910
3326
|
};
|
|
2911
3327
|
const deserializeAws_restJson1PropertyValue = (output, context) => {
|
|
@@ -2955,6 +3371,9 @@ const deserializeAws_restJson1PropertyValues = (output, context) => {
|
|
|
2955
3371
|
});
|
|
2956
3372
|
return retVal;
|
|
2957
3373
|
};
|
|
3374
|
+
const deserializeAws_restJson1QueryResultValue = (output, context) => {
|
|
3375
|
+
return output;
|
|
3376
|
+
};
|
|
2958
3377
|
const deserializeAws_restJson1Relationship = (output, context) => {
|
|
2959
3378
|
return {
|
|
2960
3379
|
relationshipType: (0, smithy_client_1.expectString)(output.relationshipType),
|
|
@@ -2978,6 +3397,33 @@ const deserializeAws_restJson1RequiredProperties = (output, context) => {
|
|
|
2978
3397
|
});
|
|
2979
3398
|
return retVal;
|
|
2980
3399
|
};
|
|
3400
|
+
const deserializeAws_restJson1Row = (output, context) => {
|
|
3401
|
+
return {
|
|
3402
|
+
rowData: output.rowData != null ? deserializeAws_restJson1RowData(output.rowData, context) : undefined,
|
|
3403
|
+
};
|
|
3404
|
+
};
|
|
3405
|
+
const deserializeAws_restJson1RowData = (output, context) => {
|
|
3406
|
+
const retVal = (output || [])
|
|
3407
|
+
.filter((e) => e != null)
|
|
3408
|
+
.map((entry) => {
|
|
3409
|
+
if (entry === null) {
|
|
3410
|
+
return null;
|
|
3411
|
+
}
|
|
3412
|
+
return deserializeAws_restJson1QueryResultValue(entry, context);
|
|
3413
|
+
});
|
|
3414
|
+
return retVal;
|
|
3415
|
+
};
|
|
3416
|
+
const deserializeAws_restJson1Rows = (output, context) => {
|
|
3417
|
+
const retVal = (output || [])
|
|
3418
|
+
.filter((e) => e != null)
|
|
3419
|
+
.map((entry) => {
|
|
3420
|
+
if (entry === null) {
|
|
3421
|
+
return null;
|
|
3422
|
+
}
|
|
3423
|
+
return deserializeAws_restJson1Row(entry, context);
|
|
3424
|
+
});
|
|
3425
|
+
return retVal;
|
|
3426
|
+
};
|
|
2981
3427
|
const deserializeAws_restJson1SceneCapabilities = (output, context) => {
|
|
2982
3428
|
const retVal = (output || [])
|
|
2983
3429
|
.filter((e) => e != null)
|
|
@@ -3020,15 +3466,35 @@ const deserializeAws_restJson1Status = (output, context) => {
|
|
|
3020
3466
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
3021
3467
|
};
|
|
3022
3468
|
};
|
|
3469
|
+
const deserializeAws_restJson1TabularPropertyValue = (output, context) => {
|
|
3470
|
+
const retVal = (output || [])
|
|
3471
|
+
.filter((e) => e != null)
|
|
3472
|
+
.map((entry) => {
|
|
3473
|
+
if (entry === null) {
|
|
3474
|
+
return null;
|
|
3475
|
+
}
|
|
3476
|
+
return deserializeAws_restJson1PropertyTableValue(entry, context);
|
|
3477
|
+
});
|
|
3478
|
+
return retVal;
|
|
3479
|
+
};
|
|
3480
|
+
const deserializeAws_restJson1TabularPropertyValues = (output, context) => {
|
|
3481
|
+
const retVal = (output || [])
|
|
3482
|
+
.filter((e) => e != null)
|
|
3483
|
+
.map((entry) => {
|
|
3484
|
+
if (entry === null) {
|
|
3485
|
+
return null;
|
|
3486
|
+
}
|
|
3487
|
+
return deserializeAws_restJson1TabularPropertyValue(entry, context);
|
|
3488
|
+
});
|
|
3489
|
+
return retVal;
|
|
3490
|
+
};
|
|
3023
3491
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
3024
3492
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3025
3493
|
if (value === null) {
|
|
3026
3494
|
return acc;
|
|
3027
3495
|
}
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
[key]: (0, smithy_client_1.expectString)(value),
|
|
3031
|
-
};
|
|
3496
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3497
|
+
return acc;
|
|
3032
3498
|
}, {});
|
|
3033
3499
|
};
|
|
3034
3500
|
const deserializeAws_restJson1Values = (output, context) => {
|