@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
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
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
|
-
import { AccessDeniedException, ConflictException, ConnectorFailureException, ConnectorTimeoutException, InternalServerException, ListComponentTypesFilter, ListEntitiesFilter, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ConflictException, ConnectorFailureException, ConnectorTimeoutException, InternalServerException, ListComponentTypesFilter, ListEntitiesFilter, QueryTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_restJson1BatchPutPropertyValuesCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
@@ -49,6 +49,9 @@ export const serializeAws_restJson1CreateComponentTypeCommand = async (input, co
|
|
|
49
49
|
...(input.propertyDefinitions != null && {
|
|
50
50
|
propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
51
51
|
}),
|
|
52
|
+
...(input.propertyGroups != null && {
|
|
53
|
+
propertyGroups: serializeAws_restJson1PropertyGroupsRequest(input.propertyGroups, context),
|
|
54
|
+
}),
|
|
52
55
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
53
56
|
});
|
|
54
57
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -270,6 +273,36 @@ export const serializeAws_restJson1DeleteWorkspaceCommand = async (input, contex
|
|
|
270
273
|
body,
|
|
271
274
|
});
|
|
272
275
|
};
|
|
276
|
+
export const serializeAws_restJson1ExecuteQueryCommand = async (input, context) => {
|
|
277
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
278
|
+
const headers = {
|
|
279
|
+
"content-type": "application/json",
|
|
280
|
+
};
|
|
281
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queries/execution";
|
|
282
|
+
let body;
|
|
283
|
+
body = JSON.stringify({
|
|
284
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
285
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
286
|
+
...(input.queryStatement != null && { queryStatement: input.queryStatement }),
|
|
287
|
+
...(input.workspaceId != null && { workspaceId: input.workspaceId }),
|
|
288
|
+
});
|
|
289
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
290
|
+
if (context.disableHostPrefix !== true) {
|
|
291
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
292
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
293
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return new __HttpRequest({
|
|
297
|
+
protocol,
|
|
298
|
+
hostname: resolvedHostname,
|
|
299
|
+
port,
|
|
300
|
+
method: "POST",
|
|
301
|
+
headers,
|
|
302
|
+
path: resolvedPath,
|
|
303
|
+
body,
|
|
304
|
+
});
|
|
305
|
+
};
|
|
273
306
|
export const serializeAws_restJson1GetComponentTypeCommand = async (input, context) => {
|
|
274
307
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
275
308
|
const headers = {};
|
|
@@ -320,6 +353,31 @@ export const serializeAws_restJson1GetEntityCommand = async (input, context) =>
|
|
|
320
353
|
body,
|
|
321
354
|
});
|
|
322
355
|
};
|
|
356
|
+
export const serializeAws_restJson1GetPricingPlanCommand = async (input, context) => {
|
|
357
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
358
|
+
const headers = {
|
|
359
|
+
"content-type": "application/json",
|
|
360
|
+
};
|
|
361
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pricingplan";
|
|
362
|
+
let body;
|
|
363
|
+
body = "";
|
|
364
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
365
|
+
if (context.disableHostPrefix !== true) {
|
|
366
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
367
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
368
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return new __HttpRequest({
|
|
372
|
+
protocol,
|
|
373
|
+
hostname: resolvedHostname,
|
|
374
|
+
port,
|
|
375
|
+
method: "GET",
|
|
376
|
+
headers,
|
|
377
|
+
path: resolvedPath,
|
|
378
|
+
body,
|
|
379
|
+
});
|
|
380
|
+
};
|
|
323
381
|
export const serializeAws_restJson1GetPropertyValueCommand = async (input, context) => {
|
|
324
382
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
325
383
|
const headers = {
|
|
@@ -333,9 +391,15 @@ export const serializeAws_restJson1GetPropertyValueCommand = async (input, conte
|
|
|
333
391
|
...(input.componentName != null && { componentName: input.componentName }),
|
|
334
392
|
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
335
393
|
...(input.entityId != null && { entityId: input.entityId }),
|
|
394
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
395
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
396
|
+
...(input.propertyGroupName != null && { propertyGroupName: input.propertyGroupName }),
|
|
336
397
|
...(input.selectedProperties != null && {
|
|
337
398
|
selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
|
|
338
399
|
}),
|
|
400
|
+
...(input.tabularConditions != null && {
|
|
401
|
+
tabularConditions: serializeAws_restJson1TabularConditions(input.tabularConditions, context),
|
|
402
|
+
}),
|
|
339
403
|
});
|
|
340
404
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
341
405
|
if (context.disableHostPrefix !== true) {
|
|
@@ -669,6 +733,9 @@ export const serializeAws_restJson1UpdateComponentTypeCommand = async (input, co
|
|
|
669
733
|
...(input.propertyDefinitions != null && {
|
|
670
734
|
propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
|
|
671
735
|
}),
|
|
736
|
+
...(input.propertyGroups != null && {
|
|
737
|
+
propertyGroups: serializeAws_restJson1PropertyGroupsRequest(input.propertyGroups, context),
|
|
738
|
+
}),
|
|
672
739
|
});
|
|
673
740
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
674
741
|
if (context.disableHostPrefix !== true) {
|
|
@@ -724,6 +791,34 @@ export const serializeAws_restJson1UpdateEntityCommand = async (input, context)
|
|
|
724
791
|
body,
|
|
725
792
|
});
|
|
726
793
|
};
|
|
794
|
+
export const serializeAws_restJson1UpdatePricingPlanCommand = async (input, context) => {
|
|
795
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
796
|
+
const headers = {
|
|
797
|
+
"content-type": "application/json",
|
|
798
|
+
};
|
|
799
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pricingplan";
|
|
800
|
+
let body;
|
|
801
|
+
body = JSON.stringify({
|
|
802
|
+
...(input.bundleNames != null && { bundleNames: serializeAws_restJson1PricingBundles(input.bundleNames, context) }),
|
|
803
|
+
...(input.pricingMode != null && { pricingMode: input.pricingMode }),
|
|
804
|
+
});
|
|
805
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
806
|
+
if (context.disableHostPrefix !== true) {
|
|
807
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
808
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
809
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return new __HttpRequest({
|
|
813
|
+
protocol,
|
|
814
|
+
hostname: resolvedHostname,
|
|
815
|
+
port,
|
|
816
|
+
method: "POST",
|
|
817
|
+
headers,
|
|
818
|
+
path: resolvedPath,
|
|
819
|
+
body,
|
|
820
|
+
});
|
|
821
|
+
};
|
|
727
822
|
export const serializeAws_restJson1UpdateSceneCommand = async (input, context) => {
|
|
728
823
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
729
824
|
const headers = {
|
|
@@ -1216,6 +1311,60 @@ const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, conte
|
|
|
1216
1311
|
});
|
|
1217
1312
|
}
|
|
1218
1313
|
};
|
|
1314
|
+
export const deserializeAws_restJson1ExecuteQueryCommand = async (output, context) => {
|
|
1315
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1316
|
+
return deserializeAws_restJson1ExecuteQueryCommandError(output, context);
|
|
1317
|
+
}
|
|
1318
|
+
const contents = map({
|
|
1319
|
+
$metadata: deserializeMetadata(output),
|
|
1320
|
+
});
|
|
1321
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1322
|
+
if (data.columnDescriptions != null) {
|
|
1323
|
+
contents.columnDescriptions = deserializeAws_restJson1ColumnDescriptions(data.columnDescriptions, context);
|
|
1324
|
+
}
|
|
1325
|
+
if (data.nextToken != null) {
|
|
1326
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1327
|
+
}
|
|
1328
|
+
if (data.rows != null) {
|
|
1329
|
+
contents.rows = deserializeAws_restJson1Rows(data.rows, context);
|
|
1330
|
+
}
|
|
1331
|
+
return contents;
|
|
1332
|
+
};
|
|
1333
|
+
const deserializeAws_restJson1ExecuteQueryCommandError = async (output, context) => {
|
|
1334
|
+
const parsedOutput = {
|
|
1335
|
+
...output,
|
|
1336
|
+
body: await parseErrorBody(output.body, context),
|
|
1337
|
+
};
|
|
1338
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
|
+
switch (errorCode) {
|
|
1340
|
+
case "AccessDeniedException":
|
|
1341
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1342
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1343
|
+
case "InternalServerException":
|
|
1344
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1345
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1346
|
+
case "QueryTimeoutException":
|
|
1347
|
+
case "com.amazonaws.iottwinmaker#QueryTimeoutException":
|
|
1348
|
+
throw await deserializeAws_restJson1QueryTimeoutExceptionResponse(parsedOutput, context);
|
|
1349
|
+
case "ServiceQuotaExceededException":
|
|
1350
|
+
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1351
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1352
|
+
case "ThrottlingException":
|
|
1353
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1354
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1355
|
+
case "ValidationException":
|
|
1356
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1357
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1358
|
+
default:
|
|
1359
|
+
const parsedBody = parsedOutput.body;
|
|
1360
|
+
throwDefaultError({
|
|
1361
|
+
output,
|
|
1362
|
+
parsedBody,
|
|
1363
|
+
exceptionCtor: __BaseException,
|
|
1364
|
+
errorCode,
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
};
|
|
1219
1368
|
export const deserializeAws_restJson1GetComponentTypeCommand = async (output, context) => {
|
|
1220
1369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
1370
|
return deserializeAws_restJson1GetComponentTypeCommandError(output, context);
|
|
@@ -1254,6 +1403,9 @@ export const deserializeAws_restJson1GetComponentTypeCommand = async (output, co
|
|
|
1254
1403
|
if (data.propertyDefinitions != null) {
|
|
1255
1404
|
contents.propertyDefinitions = deserializeAws_restJson1PropertyDefinitionsResponse(data.propertyDefinitions, context);
|
|
1256
1405
|
}
|
|
1406
|
+
if (data.propertyGroups != null) {
|
|
1407
|
+
contents.propertyGroups = deserializeAws_restJson1PropertyGroupsResponse(data.propertyGroups, context);
|
|
1408
|
+
}
|
|
1257
1409
|
if (data.status != null) {
|
|
1258
1410
|
contents.status = deserializeAws_restJson1Status(data.status, context);
|
|
1259
1411
|
}
|
|
@@ -1284,6 +1436,9 @@ const deserializeAws_restJson1GetComponentTypeCommandError = async (output, cont
|
|
|
1284
1436
|
case "ThrottlingException":
|
|
1285
1437
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1286
1438
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1439
|
+
case "ValidationException":
|
|
1440
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1441
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1287
1442
|
default:
|
|
1288
1443
|
const parsedBody = parsedOutput.body;
|
|
1289
1444
|
throwDefaultError({
|
|
@@ -1369,6 +1524,51 @@ const deserializeAws_restJson1GetEntityCommandError = async (output, context) =>
|
|
|
1369
1524
|
});
|
|
1370
1525
|
}
|
|
1371
1526
|
};
|
|
1527
|
+
export const deserializeAws_restJson1GetPricingPlanCommand = async (output, context) => {
|
|
1528
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1529
|
+
return deserializeAws_restJson1GetPricingPlanCommandError(output, context);
|
|
1530
|
+
}
|
|
1531
|
+
const contents = map({
|
|
1532
|
+
$metadata: deserializeMetadata(output),
|
|
1533
|
+
});
|
|
1534
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1535
|
+
if (data.currentPricingPlan != null) {
|
|
1536
|
+
contents.currentPricingPlan = deserializeAws_restJson1PricingPlan(data.currentPricingPlan, context);
|
|
1537
|
+
}
|
|
1538
|
+
if (data.pendingPricingPlan != null) {
|
|
1539
|
+
contents.pendingPricingPlan = deserializeAws_restJson1PricingPlan(data.pendingPricingPlan, context);
|
|
1540
|
+
}
|
|
1541
|
+
return contents;
|
|
1542
|
+
};
|
|
1543
|
+
const deserializeAws_restJson1GetPricingPlanCommandError = async (output, context) => {
|
|
1544
|
+
const parsedOutput = {
|
|
1545
|
+
...output,
|
|
1546
|
+
body: await parseErrorBody(output.body, context),
|
|
1547
|
+
};
|
|
1548
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
|
+
switch (errorCode) {
|
|
1550
|
+
case "AccessDeniedException":
|
|
1551
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1552
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1553
|
+
case "InternalServerException":
|
|
1554
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1555
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1556
|
+
case "ThrottlingException":
|
|
1557
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1558
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1559
|
+
case "ValidationException":
|
|
1560
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1561
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1562
|
+
default:
|
|
1563
|
+
const parsedBody = parsedOutput.body;
|
|
1564
|
+
throwDefaultError({
|
|
1565
|
+
output,
|
|
1566
|
+
parsedBody,
|
|
1567
|
+
exceptionCtor: __BaseException,
|
|
1568
|
+
errorCode,
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
};
|
|
1372
1572
|
export const deserializeAws_restJson1GetPropertyValueCommand = async (output, context) => {
|
|
1373
1573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
1574
|
return deserializeAws_restJson1GetPropertyValueCommandError(output, context);
|
|
@@ -1377,9 +1577,15 @@ export const deserializeAws_restJson1GetPropertyValueCommand = async (output, co
|
|
|
1377
1577
|
$metadata: deserializeMetadata(output),
|
|
1378
1578
|
});
|
|
1379
1579
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1580
|
+
if (data.nextToken != null) {
|
|
1581
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1582
|
+
}
|
|
1380
1583
|
if (data.propertyValues != null) {
|
|
1381
1584
|
contents.propertyValues = deserializeAws_restJson1PropertyLatestValueMap(data.propertyValues, context);
|
|
1382
1585
|
}
|
|
1586
|
+
if (data.tabularPropertyValues != null) {
|
|
1587
|
+
contents.tabularPropertyValues = deserializeAws_restJson1TabularPropertyValues(data.tabularPropertyValues, context);
|
|
1588
|
+
}
|
|
1383
1589
|
return contents;
|
|
1384
1590
|
};
|
|
1385
1591
|
const deserializeAws_restJson1GetPropertyValueCommandError = async (output, context) => {
|
|
@@ -2008,6 +2214,51 @@ const deserializeAws_restJson1UpdateEntityCommandError = async (output, context)
|
|
|
2008
2214
|
});
|
|
2009
2215
|
}
|
|
2010
2216
|
};
|
|
2217
|
+
export const deserializeAws_restJson1UpdatePricingPlanCommand = async (output, context) => {
|
|
2218
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2219
|
+
return deserializeAws_restJson1UpdatePricingPlanCommandError(output, context);
|
|
2220
|
+
}
|
|
2221
|
+
const contents = map({
|
|
2222
|
+
$metadata: deserializeMetadata(output),
|
|
2223
|
+
});
|
|
2224
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2225
|
+
if (data.currentPricingPlan != null) {
|
|
2226
|
+
contents.currentPricingPlan = deserializeAws_restJson1PricingPlan(data.currentPricingPlan, context);
|
|
2227
|
+
}
|
|
2228
|
+
if (data.pendingPricingPlan != null) {
|
|
2229
|
+
contents.pendingPricingPlan = deserializeAws_restJson1PricingPlan(data.pendingPricingPlan, context);
|
|
2230
|
+
}
|
|
2231
|
+
return contents;
|
|
2232
|
+
};
|
|
2233
|
+
const deserializeAws_restJson1UpdatePricingPlanCommandError = async (output, context) => {
|
|
2234
|
+
const parsedOutput = {
|
|
2235
|
+
...output,
|
|
2236
|
+
body: await parseErrorBody(output.body, context),
|
|
2237
|
+
};
|
|
2238
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2239
|
+
switch (errorCode) {
|
|
2240
|
+
case "AccessDeniedException":
|
|
2241
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2242
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2243
|
+
case "InternalServerException":
|
|
2244
|
+
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2245
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2246
|
+
case "ThrottlingException":
|
|
2247
|
+
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2248
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2249
|
+
case "ValidationException":
|
|
2250
|
+
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2251
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2252
|
+
default:
|
|
2253
|
+
const parsedBody = parsedOutput.body;
|
|
2254
|
+
throwDefaultError({
|
|
2255
|
+
output,
|
|
2256
|
+
parsedBody,
|
|
2257
|
+
exceptionCtor: __BaseException,
|
|
2258
|
+
errorCode,
|
|
2259
|
+
});
|
|
2260
|
+
}
|
|
2261
|
+
};
|
|
2011
2262
|
export const deserializeAws_restJson1UpdateSceneCommand = async (output, context) => {
|
|
2012
2263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2013
2264
|
return deserializeAws_restJson1UpdateSceneCommandError(output, context);
|
|
@@ -2162,6 +2413,18 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2162
2413
|
});
|
|
2163
2414
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2164
2415
|
};
|
|
2416
|
+
const deserializeAws_restJson1QueryTimeoutExceptionResponse = async (parsedOutput, context) => {
|
|
2417
|
+
const contents = map({});
|
|
2418
|
+
const data = parsedOutput.body;
|
|
2419
|
+
if (data.message != null) {
|
|
2420
|
+
contents.message = __expectString(data.message);
|
|
2421
|
+
}
|
|
2422
|
+
const exception = new QueryTimeoutException({
|
|
2423
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2424
|
+
...contents,
|
|
2425
|
+
});
|
|
2426
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2427
|
+
};
|
|
2165
2428
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2166
2429
|
const contents = map({});
|
|
2167
2430
|
const data = parsedOutput.body;
|
|
@@ -2222,11 +2485,32 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2222
2485
|
});
|
|
2223
2486
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2224
2487
|
};
|
|
2488
|
+
const serializeAws_restJson1ComponentPropertyGroupRequest = (input, context) => {
|
|
2489
|
+
return {
|
|
2490
|
+
...(input.groupType != null && { groupType: input.groupType }),
|
|
2491
|
+
...(input.propertyNames != null && {
|
|
2492
|
+
propertyNames: serializeAws_restJson1PropertyNames(input.propertyNames, context),
|
|
2493
|
+
}),
|
|
2494
|
+
...(input.updateType != null && { updateType: input.updateType }),
|
|
2495
|
+
};
|
|
2496
|
+
};
|
|
2497
|
+
const serializeAws_restJson1ComponentPropertyGroupRequests = (input, context) => {
|
|
2498
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2499
|
+
if (value === null) {
|
|
2500
|
+
return acc;
|
|
2501
|
+
}
|
|
2502
|
+
acc[key] = serializeAws_restJson1ComponentPropertyGroupRequest(value, context);
|
|
2503
|
+
return acc;
|
|
2504
|
+
}, {});
|
|
2505
|
+
};
|
|
2225
2506
|
const serializeAws_restJson1ComponentRequest = (input, context) => {
|
|
2226
2507
|
return {
|
|
2227
2508
|
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
2228
2509
|
...(input.description != null && { description: input.description }),
|
|
2229
2510
|
...(input.properties != null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }),
|
|
2511
|
+
...(input.propertyGroups != null && {
|
|
2512
|
+
propertyGroups: serializeAws_restJson1ComponentPropertyGroupRequests(input.propertyGroups, context),
|
|
2513
|
+
}),
|
|
2230
2514
|
};
|
|
2231
2515
|
};
|
|
2232
2516
|
const serializeAws_restJson1ComponentsMapRequest = (input, context) => {
|
|
@@ -2234,16 +2518,17 @@ const serializeAws_restJson1ComponentsMapRequest = (input, context) => {
|
|
|
2234
2518
|
if (value === null) {
|
|
2235
2519
|
return acc;
|
|
2236
2520
|
}
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
[key]: serializeAws_restJson1ComponentRequest(value, context),
|
|
2240
|
-
};
|
|
2521
|
+
acc[key] = serializeAws_restJson1ComponentRequest(value, context);
|
|
2522
|
+
return acc;
|
|
2241
2523
|
}, {});
|
|
2242
2524
|
};
|
|
2243
2525
|
const serializeAws_restJson1ComponentUpdateRequest = (input, context) => {
|
|
2244
2526
|
return {
|
|
2245
2527
|
...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
|
|
2246
2528
|
...(input.description != null && { description: input.description }),
|
|
2529
|
+
...(input.propertyGroupUpdates != null && {
|
|
2530
|
+
propertyGroupUpdates: serializeAws_restJson1ComponentPropertyGroupRequests(input.propertyGroupUpdates, context),
|
|
2531
|
+
}),
|
|
2247
2532
|
...(input.propertyUpdates != null && {
|
|
2248
2533
|
propertyUpdates: serializeAws_restJson1PropertyRequests(input.propertyUpdates, context),
|
|
2249
2534
|
}),
|
|
@@ -2255,10 +2540,8 @@ const serializeAws_restJson1ComponentUpdatesMapRequest = (input, context) => {
|
|
|
2255
2540
|
if (value === null) {
|
|
2256
2541
|
return acc;
|
|
2257
2542
|
}
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
[key]: serializeAws_restJson1ComponentUpdateRequest(value, context),
|
|
2261
|
-
};
|
|
2543
|
+
acc[key] = serializeAws_restJson1ComponentUpdateRequest(value, context);
|
|
2544
|
+
return acc;
|
|
2262
2545
|
}, {});
|
|
2263
2546
|
};
|
|
2264
2547
|
const serializeAws_restJson1Configuration = (input, context) => {
|
|
@@ -2266,10 +2549,8 @@ const serializeAws_restJson1Configuration = (input, context) => {
|
|
|
2266
2549
|
if (value === null) {
|
|
2267
2550
|
return acc;
|
|
2268
2551
|
}
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
[key]: value,
|
|
2272
|
-
};
|
|
2552
|
+
acc[key] = value;
|
|
2553
|
+
return acc;
|
|
2273
2554
|
}, {});
|
|
2274
2555
|
};
|
|
2275
2556
|
const serializeAws_restJson1DataConnector = (input, context) => {
|
|
@@ -2318,10 +2599,8 @@ const serializeAws_restJson1DataValueMap = (input, context) => {
|
|
|
2318
2599
|
if (value === null) {
|
|
2319
2600
|
return acc;
|
|
2320
2601
|
}
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
[key]: serializeAws_restJson1DataValue(value, context),
|
|
2324
|
-
};
|
|
2602
|
+
acc[key] = serializeAws_restJson1DataValue(value, context);
|
|
2603
|
+
return acc;
|
|
2325
2604
|
}, {});
|
|
2326
2605
|
};
|
|
2327
2606
|
const serializeAws_restJson1EntityPropertyReference = (input, context) => {
|
|
@@ -2353,10 +2632,8 @@ const serializeAws_restJson1ExternalIdProperty = (input, context) => {
|
|
|
2353
2632
|
if (value === null) {
|
|
2354
2633
|
return acc;
|
|
2355
2634
|
}
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
[key]: value,
|
|
2359
|
-
};
|
|
2635
|
+
acc[key] = value;
|
|
2636
|
+
return acc;
|
|
2360
2637
|
}, {});
|
|
2361
2638
|
};
|
|
2362
2639
|
const serializeAws_restJson1FunctionRequest = (input, context) => {
|
|
@@ -2375,10 +2652,8 @@ const serializeAws_restJson1FunctionsRequest = (input, context) => {
|
|
|
2375
2652
|
if (value === null) {
|
|
2376
2653
|
return acc;
|
|
2377
2654
|
}
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
[key]: serializeAws_restJson1FunctionRequest(value, context),
|
|
2381
|
-
};
|
|
2655
|
+
acc[key] = serializeAws_restJson1FunctionRequest(value, context);
|
|
2656
|
+
return acc;
|
|
2382
2657
|
}, {});
|
|
2383
2658
|
};
|
|
2384
2659
|
const serializeAws_restJson1InterpolationParameters = (input, context) => {
|
|
@@ -2422,12 +2697,32 @@ const serializeAws_restJson1ListEntitiesFilters = (input, context) => {
|
|
|
2422
2697
|
return serializeAws_restJson1ListEntitiesFilter(entry, context);
|
|
2423
2698
|
});
|
|
2424
2699
|
};
|
|
2700
|
+
const serializeAws_restJson1OrderBy = (input, context) => {
|
|
2701
|
+
return {
|
|
2702
|
+
...(input.order != null && { order: input.order }),
|
|
2703
|
+
...(input.propertyName != null && { propertyName: input.propertyName }),
|
|
2704
|
+
};
|
|
2705
|
+
};
|
|
2706
|
+
const serializeAws_restJson1OrderByList = (input, context) => {
|
|
2707
|
+
return input
|
|
2708
|
+
.filter((e) => e != null)
|
|
2709
|
+
.map((entry) => {
|
|
2710
|
+
return serializeAws_restJson1OrderBy(entry, context);
|
|
2711
|
+
});
|
|
2712
|
+
};
|
|
2425
2713
|
const serializeAws_restJson1ParentEntityUpdateRequest = (input, context) => {
|
|
2426
2714
|
return {
|
|
2427
2715
|
...(input.parentEntityId != null && { parentEntityId: input.parentEntityId }),
|
|
2428
2716
|
...(input.updateType != null && { updateType: input.updateType }),
|
|
2429
2717
|
};
|
|
2430
2718
|
};
|
|
2719
|
+
const serializeAws_restJson1PricingBundles = (input, context) => {
|
|
2720
|
+
return input
|
|
2721
|
+
.filter((e) => e != null)
|
|
2722
|
+
.map((entry) => {
|
|
2723
|
+
return entry;
|
|
2724
|
+
});
|
|
2725
|
+
};
|
|
2431
2726
|
const serializeAws_restJson1PropertyDefinitionRequest = (input, context) => {
|
|
2432
2727
|
return {
|
|
2433
2728
|
...(input.configuration != null && {
|
|
@@ -2446,10 +2741,8 @@ const serializeAws_restJson1PropertyDefinitionsRequest = (input, context) => {
|
|
|
2446
2741
|
if (value === null) {
|
|
2447
2742
|
return acc;
|
|
2448
2743
|
}
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
[key]: serializeAws_restJson1PropertyDefinitionRequest(value, context),
|
|
2452
|
-
};
|
|
2744
|
+
acc[key] = serializeAws_restJson1PropertyDefinitionRequest(value, context);
|
|
2745
|
+
return acc;
|
|
2453
2746
|
}, {});
|
|
2454
2747
|
};
|
|
2455
2748
|
const serializeAws_restJson1PropertyFilter = (input, context) => {
|
|
@@ -2466,6 +2759,30 @@ const serializeAws_restJson1PropertyFilters = (input, context) => {
|
|
|
2466
2759
|
return serializeAws_restJson1PropertyFilter(entry, context);
|
|
2467
2760
|
});
|
|
2468
2761
|
};
|
|
2762
|
+
const serializeAws_restJson1PropertyGroupRequest = (input, context) => {
|
|
2763
|
+
return {
|
|
2764
|
+
...(input.groupType != null && { groupType: input.groupType }),
|
|
2765
|
+
...(input.propertyNames != null && {
|
|
2766
|
+
propertyNames: serializeAws_restJson1PropertyNames(input.propertyNames, context),
|
|
2767
|
+
}),
|
|
2768
|
+
};
|
|
2769
|
+
};
|
|
2770
|
+
const serializeAws_restJson1PropertyGroupsRequest = (input, context) => {
|
|
2771
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2772
|
+
if (value === null) {
|
|
2773
|
+
return acc;
|
|
2774
|
+
}
|
|
2775
|
+
acc[key] = serializeAws_restJson1PropertyGroupRequest(value, context);
|
|
2776
|
+
return acc;
|
|
2777
|
+
}, {});
|
|
2778
|
+
};
|
|
2779
|
+
const serializeAws_restJson1PropertyNames = (input, context) => {
|
|
2780
|
+
return input
|
|
2781
|
+
.filter((e) => e != null)
|
|
2782
|
+
.map((entry) => {
|
|
2783
|
+
return entry;
|
|
2784
|
+
});
|
|
2785
|
+
};
|
|
2469
2786
|
const serializeAws_restJson1PropertyRequest = (input, context) => {
|
|
2470
2787
|
return {
|
|
2471
2788
|
...(input.definition != null && {
|
|
@@ -2480,10 +2797,8 @@ const serializeAws_restJson1PropertyRequests = (input, context) => {
|
|
|
2480
2797
|
if (value === null) {
|
|
2481
2798
|
return acc;
|
|
2482
2799
|
}
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
[key]: serializeAws_restJson1PropertyRequest(value, context),
|
|
2486
|
-
};
|
|
2800
|
+
acc[key] = serializeAws_restJson1PropertyRequest(value, context);
|
|
2801
|
+
return acc;
|
|
2487
2802
|
}, {});
|
|
2488
2803
|
};
|
|
2489
2804
|
const serializeAws_restJson1PropertyValue = (input, context) => {
|
|
@@ -2543,15 +2858,21 @@ const serializeAws_restJson1SelectedPropertyList = (input, context) => {
|
|
|
2543
2858
|
return entry;
|
|
2544
2859
|
});
|
|
2545
2860
|
};
|
|
2861
|
+
const serializeAws_restJson1TabularConditions = (input, context) => {
|
|
2862
|
+
return {
|
|
2863
|
+
...(input.orderBy != null && { orderBy: serializeAws_restJson1OrderByList(input.orderBy, context) }),
|
|
2864
|
+
...(input.propertyFilters != null && {
|
|
2865
|
+
propertyFilters: serializeAws_restJson1PropertyFilters(input.propertyFilters, context),
|
|
2866
|
+
}),
|
|
2867
|
+
};
|
|
2868
|
+
};
|
|
2546
2869
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
2547
2870
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2548
2871
|
if (value === null) {
|
|
2549
2872
|
return acc;
|
|
2550
2873
|
}
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
[key]: value,
|
|
2554
|
-
};
|
|
2874
|
+
acc[key] = value;
|
|
2875
|
+
return acc;
|
|
2555
2876
|
}, {});
|
|
2556
2877
|
};
|
|
2557
2878
|
const deserializeAws_restJson1BatchPutPropertyError = (output, context) => {
|
|
@@ -2566,6 +2887,45 @@ const deserializeAws_restJson1BatchPutPropertyErrorEntry = (output, context) =>
|
|
|
2566
2887
|
errors: output.errors != null ? deserializeAws_restJson1Errors(output.errors, context) : undefined,
|
|
2567
2888
|
};
|
|
2568
2889
|
};
|
|
2890
|
+
const deserializeAws_restJson1BundleInformation = (output, context) => {
|
|
2891
|
+
return {
|
|
2892
|
+
bundleNames: output.bundleNames != null ? deserializeAws_restJson1PricingBundles(output.bundleNames, context) : undefined,
|
|
2893
|
+
pricingTier: __expectString(output.pricingTier),
|
|
2894
|
+
};
|
|
2895
|
+
};
|
|
2896
|
+
const deserializeAws_restJson1ColumnDescription = (output, context) => {
|
|
2897
|
+
return {
|
|
2898
|
+
name: __expectString(output.name),
|
|
2899
|
+
type: __expectString(output.type),
|
|
2900
|
+
};
|
|
2901
|
+
};
|
|
2902
|
+
const deserializeAws_restJson1ColumnDescriptions = (output, context) => {
|
|
2903
|
+
const retVal = (output || [])
|
|
2904
|
+
.filter((e) => e != null)
|
|
2905
|
+
.map((entry) => {
|
|
2906
|
+
if (entry === null) {
|
|
2907
|
+
return null;
|
|
2908
|
+
}
|
|
2909
|
+
return deserializeAws_restJson1ColumnDescription(entry, context);
|
|
2910
|
+
});
|
|
2911
|
+
return retVal;
|
|
2912
|
+
};
|
|
2913
|
+
const deserializeAws_restJson1ComponentPropertyGroupResponse = (output, context) => {
|
|
2914
|
+
return {
|
|
2915
|
+
groupType: __expectString(output.groupType),
|
|
2916
|
+
isInherited: __expectBoolean(output.isInherited),
|
|
2917
|
+
propertyNames: output.propertyNames != null ? deserializeAws_restJson1PropertyNames(output.propertyNames, context) : undefined,
|
|
2918
|
+
};
|
|
2919
|
+
};
|
|
2920
|
+
const deserializeAws_restJson1ComponentPropertyGroupResponses = (output, context) => {
|
|
2921
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2922
|
+
if (value === null) {
|
|
2923
|
+
return acc;
|
|
2924
|
+
}
|
|
2925
|
+
acc[key] = deserializeAws_restJson1ComponentPropertyGroupResponse(value, context);
|
|
2926
|
+
return acc;
|
|
2927
|
+
}, {});
|
|
2928
|
+
};
|
|
2569
2929
|
const deserializeAws_restJson1ComponentResponse = (output, context) => {
|
|
2570
2930
|
return {
|
|
2571
2931
|
componentName: __expectString(output.componentName),
|
|
@@ -2573,6 +2933,9 @@ const deserializeAws_restJson1ComponentResponse = (output, context) => {
|
|
|
2573
2933
|
definedIn: __expectString(output.definedIn),
|
|
2574
2934
|
description: __expectString(output.description),
|
|
2575
2935
|
properties: output.properties != null ? deserializeAws_restJson1PropertyResponses(output.properties, context) : undefined,
|
|
2936
|
+
propertyGroups: output.propertyGroups != null
|
|
2937
|
+
? deserializeAws_restJson1ComponentPropertyGroupResponses(output.propertyGroups, context)
|
|
2938
|
+
: undefined,
|
|
2576
2939
|
status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
|
|
2577
2940
|
};
|
|
2578
2941
|
};
|
|
@@ -2581,10 +2944,8 @@ const deserializeAws_restJson1ComponentsMap = (output, context) => {
|
|
|
2581
2944
|
if (value === null) {
|
|
2582
2945
|
return acc;
|
|
2583
2946
|
}
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
[key]: deserializeAws_restJson1ComponentResponse(value, context),
|
|
2587
|
-
};
|
|
2947
|
+
acc[key] = deserializeAws_restJson1ComponentResponse(value, context);
|
|
2948
|
+
return acc;
|
|
2588
2949
|
}, {});
|
|
2589
2950
|
};
|
|
2590
2951
|
const deserializeAws_restJson1ComponentTypeSummaries = (output, context) => {
|
|
@@ -2617,10 +2978,8 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
2617
2978
|
if (value === null) {
|
|
2618
2979
|
return acc;
|
|
2619
2980
|
}
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
[key]: __expectString(value),
|
|
2623
|
-
};
|
|
2981
|
+
acc[key] = __expectString(value);
|
|
2982
|
+
return acc;
|
|
2624
2983
|
}, {});
|
|
2625
2984
|
};
|
|
2626
2985
|
const deserializeAws_restJson1DataConnector = (output, context) => {
|
|
@@ -2669,10 +3028,8 @@ const deserializeAws_restJson1DataValueMap = (output, context) => {
|
|
|
2669
3028
|
if (value === null) {
|
|
2670
3029
|
return acc;
|
|
2671
3030
|
}
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
[key]: deserializeAws_restJson1DataValue(value, context),
|
|
2675
|
-
};
|
|
3031
|
+
acc[key] = deserializeAws_restJson1DataValue(value, context);
|
|
3032
|
+
return acc;
|
|
2676
3033
|
}, {});
|
|
2677
3034
|
};
|
|
2678
3035
|
const deserializeAws_restJson1EntityPropertyReference = (output, context) => {
|
|
@@ -2757,10 +3114,8 @@ const deserializeAws_restJson1ExternalIdProperty = (output, context) => {
|
|
|
2757
3114
|
if (value === null) {
|
|
2758
3115
|
return acc;
|
|
2759
3116
|
}
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
[key]: __expectString(value),
|
|
2763
|
-
};
|
|
3117
|
+
acc[key] = __expectString(value);
|
|
3118
|
+
return acc;
|
|
2764
3119
|
}, {});
|
|
2765
3120
|
};
|
|
2766
3121
|
const deserializeAws_restJson1FunctionResponse = (output, context) => {
|
|
@@ -2778,10 +3133,8 @@ const deserializeAws_restJson1FunctionsResponse = (output, context) => {
|
|
|
2778
3133
|
if (value === null) {
|
|
2779
3134
|
return acc;
|
|
2780
3135
|
}
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
[key]: deserializeAws_restJson1FunctionResponse(value, context),
|
|
2784
|
-
};
|
|
3136
|
+
acc[key] = deserializeAws_restJson1FunctionResponse(value, context);
|
|
3137
|
+
return acc;
|
|
2785
3138
|
}, {});
|
|
2786
3139
|
};
|
|
2787
3140
|
const deserializeAws_restJson1LambdaFunction = (output, context) => {
|
|
@@ -2789,6 +3142,33 @@ const deserializeAws_restJson1LambdaFunction = (output, context) => {
|
|
|
2789
3142
|
arn: __expectString(output.arn),
|
|
2790
3143
|
};
|
|
2791
3144
|
};
|
|
3145
|
+
const deserializeAws_restJson1PricingBundles = (output, context) => {
|
|
3146
|
+
const retVal = (output || [])
|
|
3147
|
+
.filter((e) => e != null)
|
|
3148
|
+
.map((entry) => {
|
|
3149
|
+
if (entry === null) {
|
|
3150
|
+
return null;
|
|
3151
|
+
}
|
|
3152
|
+
return __expectString(entry);
|
|
3153
|
+
});
|
|
3154
|
+
return retVal;
|
|
3155
|
+
};
|
|
3156
|
+
const deserializeAws_restJson1PricingPlan = (output, context) => {
|
|
3157
|
+
return {
|
|
3158
|
+
billableEntityCount: __expectLong(output.billableEntityCount),
|
|
3159
|
+
bundleInformation: output.bundleInformation != null
|
|
3160
|
+
? deserializeAws_restJson1BundleInformation(output.bundleInformation, context)
|
|
3161
|
+
: undefined,
|
|
3162
|
+
effectiveDateTime: output.effectiveDateTime != null
|
|
3163
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.effectiveDateTime)))
|
|
3164
|
+
: undefined,
|
|
3165
|
+
pricingMode: __expectString(output.pricingMode),
|
|
3166
|
+
updateDateTime: output.updateDateTime != null
|
|
3167
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
3168
|
+
: undefined,
|
|
3169
|
+
updateReason: __expectString(output.updateReason),
|
|
3170
|
+
};
|
|
3171
|
+
};
|
|
2792
3172
|
const deserializeAws_restJson1PropertyDefinitionResponse = (output, context) => {
|
|
2793
3173
|
return {
|
|
2794
3174
|
configuration: output.configuration != null ? deserializeAws_restJson1Configuration(output.configuration, context) : undefined,
|
|
@@ -2808,10 +3188,24 @@ const deserializeAws_restJson1PropertyDefinitionsResponse = (output, context) =>
|
|
|
2808
3188
|
if (value === null) {
|
|
2809
3189
|
return acc;
|
|
2810
3190
|
}
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
3191
|
+
acc[key] = deserializeAws_restJson1PropertyDefinitionResponse(value, context);
|
|
3192
|
+
return acc;
|
|
3193
|
+
}, {});
|
|
3194
|
+
};
|
|
3195
|
+
const deserializeAws_restJson1PropertyGroupResponse = (output, context) => {
|
|
3196
|
+
return {
|
|
3197
|
+
groupType: __expectString(output.groupType),
|
|
3198
|
+
isInherited: __expectBoolean(output.isInherited),
|
|
3199
|
+
propertyNames: output.propertyNames != null ? deserializeAws_restJson1PropertyNames(output.propertyNames, context) : undefined,
|
|
3200
|
+
};
|
|
3201
|
+
};
|
|
3202
|
+
const deserializeAws_restJson1PropertyGroupsResponse = (output, context) => {
|
|
3203
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3204
|
+
if (value === null) {
|
|
3205
|
+
return acc;
|
|
3206
|
+
}
|
|
3207
|
+
acc[key] = deserializeAws_restJson1PropertyGroupResponse(value, context);
|
|
3208
|
+
return acc;
|
|
2815
3209
|
}, {});
|
|
2816
3210
|
};
|
|
2817
3211
|
const deserializeAws_restJson1PropertyLatestValue = (output, context) => {
|
|
@@ -2827,12 +3221,21 @@ const deserializeAws_restJson1PropertyLatestValueMap = (output, context) => {
|
|
|
2827
3221
|
if (value === null) {
|
|
2828
3222
|
return acc;
|
|
2829
3223
|
}
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
[key]: deserializeAws_restJson1PropertyLatestValue(value, context),
|
|
2833
|
-
};
|
|
3224
|
+
acc[key] = deserializeAws_restJson1PropertyLatestValue(value, context);
|
|
3225
|
+
return acc;
|
|
2834
3226
|
}, {});
|
|
2835
3227
|
};
|
|
3228
|
+
const deserializeAws_restJson1PropertyNames = (output, context) => {
|
|
3229
|
+
const retVal = (output || [])
|
|
3230
|
+
.filter((e) => e != null)
|
|
3231
|
+
.map((entry) => {
|
|
3232
|
+
if (entry === null) {
|
|
3233
|
+
return null;
|
|
3234
|
+
}
|
|
3235
|
+
return __expectString(entry);
|
|
3236
|
+
});
|
|
3237
|
+
return retVal;
|
|
3238
|
+
};
|
|
2836
3239
|
const deserializeAws_restJson1PropertyResponse = (output, context) => {
|
|
2837
3240
|
return {
|
|
2838
3241
|
definition: output.definition != null
|
|
@@ -2846,10 +3249,17 @@ const deserializeAws_restJson1PropertyResponses = (output, context) => {
|
|
|
2846
3249
|
if (value === null) {
|
|
2847
3250
|
return acc;
|
|
2848
3251
|
}
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
3252
|
+
acc[key] = deserializeAws_restJson1PropertyResponse(value, context);
|
|
3253
|
+
return acc;
|
|
3254
|
+
}, {});
|
|
3255
|
+
};
|
|
3256
|
+
const deserializeAws_restJson1PropertyTableValue = (output, context) => {
|
|
3257
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3258
|
+
if (value === null) {
|
|
3259
|
+
return acc;
|
|
3260
|
+
}
|
|
3261
|
+
acc[key] = deserializeAws_restJson1DataValue(value, context);
|
|
3262
|
+
return acc;
|
|
2853
3263
|
}, {});
|
|
2854
3264
|
};
|
|
2855
3265
|
const deserializeAws_restJson1PropertyValue = (output, context) => {
|
|
@@ -2899,6 +3309,9 @@ const deserializeAws_restJson1PropertyValues = (output, context) => {
|
|
|
2899
3309
|
});
|
|
2900
3310
|
return retVal;
|
|
2901
3311
|
};
|
|
3312
|
+
const deserializeAws_restJson1QueryResultValue = (output, context) => {
|
|
3313
|
+
return output;
|
|
3314
|
+
};
|
|
2902
3315
|
const deserializeAws_restJson1Relationship = (output, context) => {
|
|
2903
3316
|
return {
|
|
2904
3317
|
relationshipType: __expectString(output.relationshipType),
|
|
@@ -2922,6 +3335,33 @@ const deserializeAws_restJson1RequiredProperties = (output, context) => {
|
|
|
2922
3335
|
});
|
|
2923
3336
|
return retVal;
|
|
2924
3337
|
};
|
|
3338
|
+
const deserializeAws_restJson1Row = (output, context) => {
|
|
3339
|
+
return {
|
|
3340
|
+
rowData: output.rowData != null ? deserializeAws_restJson1RowData(output.rowData, context) : undefined,
|
|
3341
|
+
};
|
|
3342
|
+
};
|
|
3343
|
+
const deserializeAws_restJson1RowData = (output, context) => {
|
|
3344
|
+
const retVal = (output || [])
|
|
3345
|
+
.filter((e) => e != null)
|
|
3346
|
+
.map((entry) => {
|
|
3347
|
+
if (entry === null) {
|
|
3348
|
+
return null;
|
|
3349
|
+
}
|
|
3350
|
+
return deserializeAws_restJson1QueryResultValue(entry, context);
|
|
3351
|
+
});
|
|
3352
|
+
return retVal;
|
|
3353
|
+
};
|
|
3354
|
+
const deserializeAws_restJson1Rows = (output, context) => {
|
|
3355
|
+
const retVal = (output || [])
|
|
3356
|
+
.filter((e) => e != null)
|
|
3357
|
+
.map((entry) => {
|
|
3358
|
+
if (entry === null) {
|
|
3359
|
+
return null;
|
|
3360
|
+
}
|
|
3361
|
+
return deserializeAws_restJson1Row(entry, context);
|
|
3362
|
+
});
|
|
3363
|
+
return retVal;
|
|
3364
|
+
};
|
|
2925
3365
|
const deserializeAws_restJson1SceneCapabilities = (output, context) => {
|
|
2926
3366
|
const retVal = (output || [])
|
|
2927
3367
|
.filter((e) => e != null)
|
|
@@ -2964,15 +3404,35 @@ const deserializeAws_restJson1Status = (output, context) => {
|
|
|
2964
3404
|
state: __expectString(output.state),
|
|
2965
3405
|
};
|
|
2966
3406
|
};
|
|
3407
|
+
const deserializeAws_restJson1TabularPropertyValue = (output, context) => {
|
|
3408
|
+
const retVal = (output || [])
|
|
3409
|
+
.filter((e) => e != null)
|
|
3410
|
+
.map((entry) => {
|
|
3411
|
+
if (entry === null) {
|
|
3412
|
+
return null;
|
|
3413
|
+
}
|
|
3414
|
+
return deserializeAws_restJson1PropertyTableValue(entry, context);
|
|
3415
|
+
});
|
|
3416
|
+
return retVal;
|
|
3417
|
+
};
|
|
3418
|
+
const deserializeAws_restJson1TabularPropertyValues = (output, context) => {
|
|
3419
|
+
const retVal = (output || [])
|
|
3420
|
+
.filter((e) => e != null)
|
|
3421
|
+
.map((entry) => {
|
|
3422
|
+
if (entry === null) {
|
|
3423
|
+
return null;
|
|
3424
|
+
}
|
|
3425
|
+
return deserializeAws_restJson1TabularPropertyValue(entry, context);
|
|
3426
|
+
});
|
|
3427
|
+
return retVal;
|
|
3428
|
+
};
|
|
2967
3429
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
2968
3430
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2969
3431
|
if (value === null) {
|
|
2970
3432
|
return acc;
|
|
2971
3433
|
}
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
[key]: __expectString(value),
|
|
2975
|
-
};
|
|
3434
|
+
acc[key] = __expectString(value);
|
|
3435
|
+
return acc;
|
|
2976
3436
|
}, {});
|
|
2977
3437
|
};
|
|
2978
3438
|
const deserializeAws_restJson1Values = (output, context) => {
|