@aws-sdk/client-iotsitewise 3.454.0 → 3.456.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -0
- package/dist-cjs/IoTSiteWise.js +22 -0
- package/dist-cjs/commands/CreateAssetModelCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/DeleteAssetModelCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/DescribeActionCommand.js +51 -0
- package/dist-cjs/commands/DescribeAssetCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/DescribeAssetModelCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/ExecuteActionCommand.js +51 -0
- package/dist-cjs/commands/ExecuteQueryCommand.js +51 -0
- package/dist-cjs/commands/ListActionsCommand.js +51 -0
- package/dist-cjs/commands/ListAssetModelCompositeModelsCommand.js +51 -0
- package/dist-cjs/commands/ListCompositionRelationshipsCommand.js +51 -0
- package/dist-cjs/commands/UpdateAssetModelCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +59 -15
- package/dist-cjs/models/models_1.js +18 -0
- package/dist-cjs/pagination/ExecuteQueryPaginator.js +29 -0
- package/dist-cjs/pagination/ListAssetModelCompositeModelsPaginator.js +29 -0
- package/dist-cjs/pagination/ListCompositionRelationshipsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1018 -25
- package/dist-es/IoTSiteWise.js +22 -0
- package/dist-es/commands/CreateAssetModelCompositeModelCommand.js +47 -0
- package/dist-es/commands/DeleteAssetModelCompositeModelCommand.js +47 -0
- package/dist-es/commands/DescribeActionCommand.js +47 -0
- package/dist-es/commands/DescribeAssetCompositeModelCommand.js +47 -0
- package/dist-es/commands/DescribeAssetModelCompositeModelCommand.js +47 -0
- package/dist-es/commands/ExecuteActionCommand.js +47 -0
- package/dist-es/commands/ExecuteQueryCommand.js +47 -0
- package/dist-es/commands/ListActionsCommand.js +47 -0
- package/dist-es/commands/ListAssetModelCompositeModelsCommand.js +47 -0
- package/dist-es/commands/ListCompositionRelationshipsCommand.js +47 -0
- package/dist-es/commands/UpdateAssetModelCompositeModelCommand.js +47 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +54 -13
- package/dist-es/models/models_1.js +14 -0
- package/dist-es/pagination/ExecuteQueryPaginator.js +25 -0
- package/dist-es/pagination/ListAssetModelCompositeModelsPaginator.js +25 -0
- package/dist-es/pagination/ListCompositionRelationshipsPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1038 -68
- package/dist-types/IoTSiteWise.d.ts +77 -0
- package/dist-types/IoTSiteWiseClient.d.ts +13 -2
- package/dist-types/commands/CreateAssetCommand.d.ts +2 -0
- package/dist-types/commands/CreateAssetModelCommand.d.ts +52 -4
- package/dist-types/commands/CreateAssetModelCompositeModelCommand.d.ts +212 -0
- package/dist-types/commands/CreateBulkImportJobCommand.d.ts +8 -3
- package/dist-types/commands/DeleteAssetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAssetModelCompositeModelCommand.d.ts +111 -0
- package/dist-types/commands/DescribeActionCommand.d.ts +97 -0
- package/dist-types/commands/DescribeAssetCommand.d.ts +32 -0
- package/dist-types/commands/DescribeAssetCompositeModelCommand.d.ts +145 -0
- package/dist-types/commands/DescribeAssetModelCommand.d.ts +46 -4
- package/dist-types/commands/DescribeAssetModelCompositeModelCommand.d.ts +209 -0
- package/dist-types/commands/DescribeAssetPropertyCommand.d.ts +44 -4
- package/dist-types/commands/DescribeBulkImportJobCommand.d.ts +4 -1
- package/dist-types/commands/DescribeStorageConfigurationCommand.d.ts +5 -0
- package/dist-types/commands/ExecuteActionCommand.d.ts +106 -0
- package/dist-types/commands/ExecuteQueryCommand.d.ts +130 -0
- package/dist-types/commands/ListActionsCommand.d.ts +101 -0
- package/dist-types/commands/ListAssetModelCompositeModelsCommand.d.ts +106 -0
- package/dist-types/commands/ListAssetModelPropertiesCommand.d.ts +21 -2
- package/dist-types/commands/ListAssetModelsCommand.d.ts +5 -0
- package/dist-types/commands/ListAssetPropertiesCommand.d.ts +8 -1
- package/dist-types/commands/ListAssetsCommand.d.ts +2 -0
- package/dist-types/commands/ListAssociatedAssetsCommand.d.ts +2 -0
- package/dist-types/commands/ListCompositionRelationshipsCommand.d.ts +98 -0
- package/dist-types/commands/PutDefaultEncryptionConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutLoggingOptionsCommand.d.ts +1 -1
- package/dist-types/commands/PutStorageConfigurationCommand.d.ts +11 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssetCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAssetModelCommand.d.ts +31 -5
- package/dist-types/commands/UpdateAssetModelCompositeModelCommand.d.ts +220 -0
- package/dist-types/commands/UpdateAssetPropertyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDashboardCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGatewayCapabilityConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGatewayCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePortalCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProjectCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1377 -773
- package/dist-types/models/models_1.d.ts +796 -0
- package/dist-types/pagination/ExecuteQueryPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAssetModelCompositeModelsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCompositionRelationshipsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +99 -0
- package/dist-types/ts3.4/IoTSiteWise.d.ts +187 -0
- package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +66 -0
- package/dist-types/ts3.4/commands/CreateAssetModelCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteAssetModelCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeActionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeAssetCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeAssetModelCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ExecuteActionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ExecuteQueryCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListActionsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListAssetModelCompositeModelsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCompositionRelationshipsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutDefaultEncryptionConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutLoggingOptionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutStorageConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccessPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAssetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAssetModelCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAssetModelCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateAssetPropertyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDashboardCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateGatewayCapabilityConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateGatewayCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePortalCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +284 -130
- package/dist-types/ts3.4/models/models_1.d.ts +190 -0
- package/dist-types/ts3.4/pagination/ExecuteQueryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssetModelCompositeModelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCompositionRelationshipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +132 -0
- package/package.json +1 -1
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
3
|
+
exports.se_GetAssetPropertyValueHistoryCommand = exports.se_GetAssetPropertyValueCommand = exports.se_GetAssetPropertyAggregatesCommand = exports.se_ExecuteQueryCommand = exports.se_ExecuteActionCommand = exports.se_DisassociateTimeSeriesFromAssetPropertyCommand = exports.se_DisassociateAssetsCommand = exports.se_DescribeTimeSeriesCommand = exports.se_DescribeStorageConfigurationCommand = exports.se_DescribeProjectCommand = exports.se_DescribePortalCommand = exports.se_DescribeLoggingOptionsCommand = exports.se_DescribeGatewayCapabilityConfigurationCommand = exports.se_DescribeGatewayCommand = exports.se_DescribeDefaultEncryptionConfigurationCommand = exports.se_DescribeDashboardCommand = exports.se_DescribeBulkImportJobCommand = exports.se_DescribeAssetPropertyCommand = exports.se_DescribeAssetModelCompositeModelCommand = exports.se_DescribeAssetModelCommand = exports.se_DescribeAssetCompositeModelCommand = exports.se_DescribeAssetCommand = exports.se_DescribeActionCommand = exports.se_DescribeAccessPolicyCommand = exports.se_DeleteTimeSeriesCommand = exports.se_DeleteProjectCommand = exports.se_DeletePortalCommand = exports.se_DeleteGatewayCommand = exports.se_DeleteDashboardCommand = exports.se_DeleteAssetModelCompositeModelCommand = exports.se_DeleteAssetModelCommand = exports.se_DeleteAssetCommand = exports.se_DeleteAccessPolicyCommand = exports.se_CreateProjectCommand = exports.se_CreatePortalCommand = exports.se_CreateGatewayCommand = exports.se_CreateDashboardCommand = exports.se_CreateBulkImportJobCommand = exports.se_CreateAssetModelCompositeModelCommand = exports.se_CreateAssetModelCommand = exports.se_CreateAssetCommand = exports.se_CreateAccessPolicyCommand = exports.se_BatchPutAssetPropertyValueCommand = exports.se_BatchGetAssetPropertyValueHistoryCommand = exports.se_BatchGetAssetPropertyValueCommand = exports.se_BatchGetAssetPropertyAggregatesCommand = exports.se_BatchDisassociateProjectAssetsCommand = exports.se_BatchAssociateProjectAssetsCommand = exports.se_AssociateTimeSeriesToAssetPropertyCommand = exports.se_AssociateAssetsCommand = void 0;
|
|
4
|
+
exports.de_CreatePortalCommand = exports.de_CreateGatewayCommand = exports.de_CreateDashboardCommand = exports.de_CreateBulkImportJobCommand = exports.de_CreateAssetModelCompositeModelCommand = exports.de_CreateAssetModelCommand = exports.de_CreateAssetCommand = exports.de_CreateAccessPolicyCommand = exports.de_BatchPutAssetPropertyValueCommand = exports.de_BatchGetAssetPropertyValueHistoryCommand = exports.de_BatchGetAssetPropertyValueCommand = exports.de_BatchGetAssetPropertyAggregatesCommand = exports.de_BatchDisassociateProjectAssetsCommand = exports.de_BatchAssociateProjectAssetsCommand = exports.de_AssociateTimeSeriesToAssetPropertyCommand = exports.de_AssociateAssetsCommand = exports.se_UpdateProjectCommand = exports.se_UpdatePortalCommand = exports.se_UpdateGatewayCapabilityConfigurationCommand = exports.se_UpdateGatewayCommand = exports.se_UpdateDashboardCommand = exports.se_UpdateAssetPropertyCommand = exports.se_UpdateAssetModelCompositeModelCommand = exports.se_UpdateAssetModelCommand = exports.se_UpdateAssetCommand = exports.se_UpdateAccessPolicyCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutStorageConfigurationCommand = exports.se_PutLoggingOptionsCommand = exports.se_PutDefaultEncryptionConfigurationCommand = exports.se_ListTimeSeriesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProjectsCommand = exports.se_ListProjectAssetsCommand = exports.se_ListPortalsCommand = exports.se_ListGatewaysCommand = exports.se_ListDashboardsCommand = exports.se_ListCompositionRelationshipsCommand = exports.se_ListBulkImportJobsCommand = exports.se_ListAssociatedAssetsCommand = exports.se_ListAssetsCommand = exports.se_ListAssetRelationshipsCommand = exports.se_ListAssetPropertiesCommand = exports.se_ListAssetModelsCommand = exports.se_ListAssetModelPropertiesCommand = exports.se_ListAssetModelCompositeModelsCommand = exports.se_ListActionsCommand = exports.se_ListAccessPoliciesCommand = exports.se_GetInterpolatedAssetPropertyValuesCommand = void 0;
|
|
5
|
+
exports.de_ListProjectAssetsCommand = exports.de_ListPortalsCommand = exports.de_ListGatewaysCommand = exports.de_ListDashboardsCommand = exports.de_ListCompositionRelationshipsCommand = exports.de_ListBulkImportJobsCommand = exports.de_ListAssociatedAssetsCommand = exports.de_ListAssetsCommand = exports.de_ListAssetRelationshipsCommand = exports.de_ListAssetPropertiesCommand = exports.de_ListAssetModelsCommand = exports.de_ListAssetModelPropertiesCommand = exports.de_ListAssetModelCompositeModelsCommand = exports.de_ListActionsCommand = exports.de_ListAccessPoliciesCommand = exports.de_GetInterpolatedAssetPropertyValuesCommand = exports.de_GetAssetPropertyValueHistoryCommand = exports.de_GetAssetPropertyValueCommand = exports.de_GetAssetPropertyAggregatesCommand = exports.de_ExecuteQueryCommand = exports.de_ExecuteActionCommand = exports.de_DisassociateTimeSeriesFromAssetPropertyCommand = exports.de_DisassociateAssetsCommand = exports.de_DescribeTimeSeriesCommand = exports.de_DescribeStorageConfigurationCommand = exports.de_DescribeProjectCommand = exports.de_DescribePortalCommand = exports.de_DescribeLoggingOptionsCommand = exports.de_DescribeGatewayCapabilityConfigurationCommand = exports.de_DescribeGatewayCommand = exports.de_DescribeDefaultEncryptionConfigurationCommand = exports.de_DescribeDashboardCommand = exports.de_DescribeBulkImportJobCommand = exports.de_DescribeAssetPropertyCommand = exports.de_DescribeAssetModelCompositeModelCommand = exports.de_DescribeAssetModelCommand = exports.de_DescribeAssetCompositeModelCommand = exports.de_DescribeAssetCommand = exports.de_DescribeActionCommand = exports.de_DescribeAccessPolicyCommand = exports.de_DeleteTimeSeriesCommand = exports.de_DeleteProjectCommand = exports.de_DeletePortalCommand = exports.de_DeleteGatewayCommand = exports.de_DeleteDashboardCommand = exports.de_DeleteAssetModelCompositeModelCommand = exports.de_DeleteAssetModelCommand = exports.de_DeleteAssetCommand = exports.de_DeleteAccessPolicyCommand = exports.de_CreateProjectCommand = void 0;
|
|
6
|
+
exports.de_UpdateProjectCommand = exports.de_UpdatePortalCommand = exports.de_UpdateGatewayCapabilityConfigurationCommand = exports.de_UpdateGatewayCommand = exports.de_UpdateDashboardCommand = exports.de_UpdateAssetPropertyCommand = exports.de_UpdateAssetModelCompositeModelCommand = exports.de_UpdateAssetModelCommand = exports.de_UpdateAssetCommand = exports.de_UpdateAccessPolicyCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutStorageConfigurationCommand = exports.de_PutLoggingOptionsCommand = exports.de_PutDefaultEncryptionConfigurationCommand = exports.de_ListTimeSeriesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProjectsCommand = void 0;
|
|
6
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
8
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
9
|
const uuid_1 = require("uuid");
|
|
9
10
|
const IoTSiteWiseServiceException_1 = require("../models/IoTSiteWiseServiceException");
|
|
10
11
|
const models_0_1 = require("../models/models_0");
|
|
12
|
+
const models_1_1 = require("../models/models_1");
|
|
11
13
|
const se_AssociateAssetsCommand = async (input, context) => {
|
|
12
14
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
13
15
|
const headers = {
|
|
@@ -291,6 +293,8 @@ const se_CreateAssetCommand = async (input, context) => {
|
|
|
291
293
|
let body;
|
|
292
294
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
293
295
|
assetDescription: [],
|
|
296
|
+
assetExternalId: [],
|
|
297
|
+
assetId: [],
|
|
294
298
|
assetModelId: [],
|
|
295
299
|
assetName: [],
|
|
296
300
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -322,11 +326,14 @@ const se_CreateAssetModelCommand = async (input, context) => {
|
|
|
322
326
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
|
|
323
327
|
let body;
|
|
324
328
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
325
|
-
assetModelCompositeModels: (_) => (
|
|
329
|
+
assetModelCompositeModels: (_) => se_AssetModelCompositeModelDefinitions(_, context),
|
|
326
330
|
assetModelDescription: [],
|
|
331
|
+
assetModelExternalId: [],
|
|
327
332
|
assetModelHierarchies: (_) => (0, smithy_client_1._json)(_),
|
|
333
|
+
assetModelId: [],
|
|
328
334
|
assetModelName: [],
|
|
329
335
|
assetModelProperties: (_) => (0, smithy_client_1._json)(_),
|
|
336
|
+
assetModelType: [],
|
|
330
337
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
331
338
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
332
339
|
}));
|
|
@@ -348,6 +355,44 @@ const se_CreateAssetModelCommand = async (input, context) => {
|
|
|
348
355
|
});
|
|
349
356
|
};
|
|
350
357
|
exports.se_CreateAssetModelCommand = se_CreateAssetModelCommand;
|
|
358
|
+
const se_CreateAssetModelCompositeModelCommand = async (input, context) => {
|
|
359
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
360
|
+
const headers = {
|
|
361
|
+
"content-type": "application/json",
|
|
362
|
+
};
|
|
363
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
364
|
+
"/asset-models/{assetModelId}/composite-models";
|
|
365
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
366
|
+
let body;
|
|
367
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
368
|
+
assetModelCompositeModelDescription: [],
|
|
369
|
+
assetModelCompositeModelExternalId: [],
|
|
370
|
+
assetModelCompositeModelId: [],
|
|
371
|
+
assetModelCompositeModelName: [],
|
|
372
|
+
assetModelCompositeModelProperties: (_) => (0, smithy_client_1._json)(_),
|
|
373
|
+
assetModelCompositeModelType: [],
|
|
374
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
375
|
+
composedAssetModelId: [],
|
|
376
|
+
parentAssetModelCompositeModelId: [],
|
|
377
|
+
}));
|
|
378
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
379
|
+
if (context.disableHostPrefix !== true) {
|
|
380
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
381
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
382
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
return new protocol_http_1.HttpRequest({
|
|
386
|
+
protocol,
|
|
387
|
+
hostname: resolvedHostname,
|
|
388
|
+
port,
|
|
389
|
+
method: "POST",
|
|
390
|
+
headers,
|
|
391
|
+
path: resolvedPath,
|
|
392
|
+
body,
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
exports.se_CreateAssetModelCompositeModelCommand = se_CreateAssetModelCompositeModelCommand;
|
|
351
396
|
const se_CreateBulkImportJobCommand = async (input, context) => {
|
|
352
397
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
398
|
const headers = {
|
|
@@ -356,6 +401,8 @@ const se_CreateBulkImportJobCommand = async (input, context) => {
|
|
|
356
401
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
|
|
357
402
|
let body;
|
|
358
403
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
404
|
+
adaptiveIngestion: [],
|
|
405
|
+
deleteFilesAfterImport: [],
|
|
359
406
|
errorReportLocation: (_) => (0, smithy_client_1._json)(_),
|
|
360
407
|
files: (_) => (0, smithy_client_1._json)(_),
|
|
361
408
|
jobConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -596,6 +643,36 @@ const se_DeleteAssetModelCommand = async (input, context) => {
|
|
|
596
643
|
});
|
|
597
644
|
};
|
|
598
645
|
exports.se_DeleteAssetModelCommand = se_DeleteAssetModelCommand;
|
|
646
|
+
const se_DeleteAssetModelCompositeModelCommand = async (input, context) => {
|
|
647
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
648
|
+
const headers = {};
|
|
649
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
650
|
+
"/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
|
|
651
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
652
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
|
|
653
|
+
const query = (0, smithy_client_1.map)({
|
|
654
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
655
|
+
});
|
|
656
|
+
let body;
|
|
657
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
658
|
+
if (context.disableHostPrefix !== true) {
|
|
659
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
660
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
661
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
return new protocol_http_1.HttpRequest({
|
|
665
|
+
protocol,
|
|
666
|
+
hostname: resolvedHostname,
|
|
667
|
+
port,
|
|
668
|
+
method: "DELETE",
|
|
669
|
+
headers,
|
|
670
|
+
path: resolvedPath,
|
|
671
|
+
query,
|
|
672
|
+
body,
|
|
673
|
+
});
|
|
674
|
+
};
|
|
675
|
+
exports.se_DeleteAssetModelCompositeModelCommand = se_DeleteAssetModelCompositeModelCommand;
|
|
599
676
|
const se_DeleteDashboardCommand = async (input, context) => {
|
|
600
677
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
601
678
|
const headers = {};
|
|
@@ -762,6 +839,30 @@ const se_DescribeAccessPolicyCommand = async (input, context) => {
|
|
|
762
839
|
});
|
|
763
840
|
};
|
|
764
841
|
exports.se_DescribeAccessPolicyCommand = se_DescribeAccessPolicyCommand;
|
|
842
|
+
const se_DescribeActionCommand = async (input, context) => {
|
|
843
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
844
|
+
const headers = {};
|
|
845
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions/{actionId}";
|
|
846
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "actionId", () => input.actionId, "{actionId}", false);
|
|
847
|
+
let body;
|
|
848
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
849
|
+
if (context.disableHostPrefix !== true) {
|
|
850
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
851
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
852
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
return new protocol_http_1.HttpRequest({
|
|
856
|
+
protocol,
|
|
857
|
+
hostname: resolvedHostname,
|
|
858
|
+
port,
|
|
859
|
+
method: "GET",
|
|
860
|
+
headers,
|
|
861
|
+
path: resolvedPath,
|
|
862
|
+
body,
|
|
863
|
+
});
|
|
864
|
+
};
|
|
865
|
+
exports.se_DescribeActionCommand = se_DescribeActionCommand;
|
|
765
866
|
const se_DescribeAssetCommand = async (input, context) => {
|
|
766
867
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
767
868
|
const headers = {};
|
|
@@ -790,6 +891,32 @@ const se_DescribeAssetCommand = async (input, context) => {
|
|
|
790
891
|
});
|
|
791
892
|
};
|
|
792
893
|
exports.se_DescribeAssetCommand = se_DescribeAssetCommand;
|
|
894
|
+
const se_DescribeAssetCompositeModelCommand = async (input, context) => {
|
|
895
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
896
|
+
const headers = {};
|
|
897
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
898
|
+
"/assets/{assetId}/composite-models/{assetCompositeModelId}";
|
|
899
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
900
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetCompositeModelId", () => input.assetCompositeModelId, "{assetCompositeModelId}", false);
|
|
901
|
+
let body;
|
|
902
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
903
|
+
if (context.disableHostPrefix !== true) {
|
|
904
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
905
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
906
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
return new protocol_http_1.HttpRequest({
|
|
910
|
+
protocol,
|
|
911
|
+
hostname: resolvedHostname,
|
|
912
|
+
port,
|
|
913
|
+
method: "GET",
|
|
914
|
+
headers,
|
|
915
|
+
path: resolvedPath,
|
|
916
|
+
body,
|
|
917
|
+
});
|
|
918
|
+
};
|
|
919
|
+
exports.se_DescribeAssetCompositeModelCommand = se_DescribeAssetCompositeModelCommand;
|
|
793
920
|
const se_DescribeAssetModelCommand = async (input, context) => {
|
|
794
921
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
795
922
|
const headers = {};
|
|
@@ -818,6 +945,32 @@ const se_DescribeAssetModelCommand = async (input, context) => {
|
|
|
818
945
|
});
|
|
819
946
|
};
|
|
820
947
|
exports.se_DescribeAssetModelCommand = se_DescribeAssetModelCommand;
|
|
948
|
+
const se_DescribeAssetModelCompositeModelCommand = async (input, context) => {
|
|
949
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
950
|
+
const headers = {};
|
|
951
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
952
|
+
"/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
|
|
953
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
954
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
|
|
955
|
+
let body;
|
|
956
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
957
|
+
if (context.disableHostPrefix !== true) {
|
|
958
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
959
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
960
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
return new protocol_http_1.HttpRequest({
|
|
964
|
+
protocol,
|
|
965
|
+
hostname: resolvedHostname,
|
|
966
|
+
port,
|
|
967
|
+
method: "GET",
|
|
968
|
+
headers,
|
|
969
|
+
path: resolvedPath,
|
|
970
|
+
body,
|
|
971
|
+
});
|
|
972
|
+
};
|
|
973
|
+
exports.se_DescribeAssetModelCompositeModelCommand = se_DescribeAssetModelCompositeModelCommand;
|
|
821
974
|
const se_DescribeAssetPropertyCommand = async (input, context) => {
|
|
822
975
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
823
976
|
const headers = {};
|
|
@@ -1161,6 +1314,67 @@ const se_DisassociateTimeSeriesFromAssetPropertyCommand = async (input, context)
|
|
|
1161
1314
|
});
|
|
1162
1315
|
};
|
|
1163
1316
|
exports.se_DisassociateTimeSeriesFromAssetPropertyCommand = se_DisassociateTimeSeriesFromAssetPropertyCommand;
|
|
1317
|
+
const se_ExecuteActionCommand = async (input, context) => {
|
|
1318
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1319
|
+
const headers = {
|
|
1320
|
+
"content-type": "application/json",
|
|
1321
|
+
};
|
|
1322
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
|
|
1323
|
+
let body;
|
|
1324
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1325
|
+
actionDefinitionId: [],
|
|
1326
|
+
actionPayload: (_) => (0, smithy_client_1._json)(_),
|
|
1327
|
+
clientToken: [],
|
|
1328
|
+
targetResource: (_) => (0, smithy_client_1._json)(_),
|
|
1329
|
+
}));
|
|
1330
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1331
|
+
if (context.disableHostPrefix !== true) {
|
|
1332
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1333
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1334
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
return new protocol_http_1.HttpRequest({
|
|
1338
|
+
protocol,
|
|
1339
|
+
hostname: resolvedHostname,
|
|
1340
|
+
port,
|
|
1341
|
+
method: "POST",
|
|
1342
|
+
headers,
|
|
1343
|
+
path: resolvedPath,
|
|
1344
|
+
body,
|
|
1345
|
+
});
|
|
1346
|
+
};
|
|
1347
|
+
exports.se_ExecuteActionCommand = se_ExecuteActionCommand;
|
|
1348
|
+
const se_ExecuteQueryCommand = async (input, context) => {
|
|
1349
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1350
|
+
const headers = {
|
|
1351
|
+
"content-type": "application/json",
|
|
1352
|
+
};
|
|
1353
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queries/execution";
|
|
1354
|
+
let body;
|
|
1355
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1356
|
+
maxResults: [],
|
|
1357
|
+
nextToken: [],
|
|
1358
|
+
queryStatement: [],
|
|
1359
|
+
}));
|
|
1360
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1361
|
+
if (context.disableHostPrefix !== true) {
|
|
1362
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
1363
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1364
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
return new protocol_http_1.HttpRequest({
|
|
1368
|
+
protocol,
|
|
1369
|
+
hostname: resolvedHostname,
|
|
1370
|
+
port,
|
|
1371
|
+
method: "POST",
|
|
1372
|
+
headers,
|
|
1373
|
+
path: resolvedPath,
|
|
1374
|
+
body,
|
|
1375
|
+
});
|
|
1376
|
+
};
|
|
1377
|
+
exports.se_ExecuteQueryCommand = se_ExecuteQueryCommand;
|
|
1164
1378
|
const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
|
|
1165
1379
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1166
1380
|
const headers = {};
|
|
@@ -1361,6 +1575,66 @@ const se_ListAccessPoliciesCommand = async (input, context) => {
|
|
|
1361
1575
|
});
|
|
1362
1576
|
};
|
|
1363
1577
|
exports.se_ListAccessPoliciesCommand = se_ListAccessPoliciesCommand;
|
|
1578
|
+
const se_ListActionsCommand = async (input, context) => {
|
|
1579
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1580
|
+
const headers = {};
|
|
1581
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
|
|
1582
|
+
const query = (0, smithy_client_1.map)({
|
|
1583
|
+
targetResourceType: [, (0, smithy_client_1.expectNonNull)(input.targetResourceType, `targetResourceType`)],
|
|
1584
|
+
targetResourceId: [, (0, smithy_client_1.expectNonNull)(input.targetResourceId, `targetResourceId`)],
|
|
1585
|
+
nextToken: [, input.nextToken],
|
|
1586
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1587
|
+
});
|
|
1588
|
+
let body;
|
|
1589
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1590
|
+
if (context.disableHostPrefix !== true) {
|
|
1591
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1592
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1593
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
return new protocol_http_1.HttpRequest({
|
|
1597
|
+
protocol,
|
|
1598
|
+
hostname: resolvedHostname,
|
|
1599
|
+
port,
|
|
1600
|
+
method: "GET",
|
|
1601
|
+
headers,
|
|
1602
|
+
path: resolvedPath,
|
|
1603
|
+
query,
|
|
1604
|
+
body,
|
|
1605
|
+
});
|
|
1606
|
+
};
|
|
1607
|
+
exports.se_ListActionsCommand = se_ListActionsCommand;
|
|
1608
|
+
const se_ListAssetModelCompositeModelsCommand = async (input, context) => {
|
|
1609
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1610
|
+
const headers = {};
|
|
1611
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1612
|
+
"/asset-models/{assetModelId}/composite-models";
|
|
1613
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1614
|
+
const query = (0, smithy_client_1.map)({
|
|
1615
|
+
nextToken: [, input.nextToken],
|
|
1616
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1617
|
+
});
|
|
1618
|
+
let body;
|
|
1619
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1620
|
+
if (context.disableHostPrefix !== true) {
|
|
1621
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1622
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1623
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
return new protocol_http_1.HttpRequest({
|
|
1627
|
+
protocol,
|
|
1628
|
+
hostname: resolvedHostname,
|
|
1629
|
+
port,
|
|
1630
|
+
method: "GET",
|
|
1631
|
+
headers,
|
|
1632
|
+
path: resolvedPath,
|
|
1633
|
+
query,
|
|
1634
|
+
body,
|
|
1635
|
+
});
|
|
1636
|
+
};
|
|
1637
|
+
exports.se_ListAssetModelCompositeModelsCommand = se_ListAssetModelCompositeModelsCommand;
|
|
1364
1638
|
const se_ListAssetModelPropertiesCommand = async (input, context) => {
|
|
1365
1639
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1366
1640
|
const headers = {};
|
|
@@ -1398,6 +1672,10 @@ const se_ListAssetModelsCommand = async (input, context) => {
|
|
|
1398
1672
|
const query = (0, smithy_client_1.map)({
|
|
1399
1673
|
nextToken: [, input.nextToken],
|
|
1400
1674
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1675
|
+
assetModelTypes: [
|
|
1676
|
+
() => input.assetModelTypes !== void 0,
|
|
1677
|
+
() => (input.assetModelTypes || []).map((_entry) => _entry),
|
|
1678
|
+
],
|
|
1401
1679
|
});
|
|
1402
1680
|
let body;
|
|
1403
1681
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1569,6 +1847,36 @@ const se_ListBulkImportJobsCommand = async (input, context) => {
|
|
|
1569
1847
|
});
|
|
1570
1848
|
};
|
|
1571
1849
|
exports.se_ListBulkImportJobsCommand = se_ListBulkImportJobsCommand;
|
|
1850
|
+
const se_ListCompositionRelationshipsCommand = async (input, context) => {
|
|
1851
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1852
|
+
const headers = {};
|
|
1853
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1854
|
+
"/asset-models/{assetModelId}/composition-relationships";
|
|
1855
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1856
|
+
const query = (0, smithy_client_1.map)({
|
|
1857
|
+
nextToken: [, input.nextToken],
|
|
1858
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1859
|
+
});
|
|
1860
|
+
let body;
|
|
1861
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1862
|
+
if (context.disableHostPrefix !== true) {
|
|
1863
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1864
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1865
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
return new protocol_http_1.HttpRequest({
|
|
1869
|
+
protocol,
|
|
1870
|
+
hostname: resolvedHostname,
|
|
1871
|
+
port,
|
|
1872
|
+
method: "GET",
|
|
1873
|
+
headers,
|
|
1874
|
+
path: resolvedPath,
|
|
1875
|
+
query,
|
|
1876
|
+
body,
|
|
1877
|
+
});
|
|
1878
|
+
};
|
|
1879
|
+
exports.se_ListCompositionRelationshipsCommand = se_ListCompositionRelationshipsCommand;
|
|
1572
1880
|
const se_ListDashboardsCommand = async (input, context) => {
|
|
1573
1881
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1574
1882
|
const headers = {};
|
|
@@ -1839,6 +2147,8 @@ const se_PutStorageConfigurationCommand = async (input, context) => {
|
|
|
1839
2147
|
multiLayerStorage: (_) => (0, smithy_client_1._json)(_),
|
|
1840
2148
|
retentionPeriod: (_) => (0, smithy_client_1._json)(_),
|
|
1841
2149
|
storageType: [],
|
|
2150
|
+
warmTier: [],
|
|
2151
|
+
warmTierRetentionPeriod: (_) => (0, smithy_client_1._json)(_),
|
|
1842
2152
|
}));
|
|
1843
2153
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1844
2154
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1963,6 +2273,7 @@ const se_UpdateAssetCommand = async (input, context) => {
|
|
|
1963
2273
|
let body;
|
|
1964
2274
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1965
2275
|
assetDescription: [],
|
|
2276
|
+
assetExternalId: [],
|
|
1966
2277
|
assetName: [],
|
|
1967
2278
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1968
2279
|
}));
|
|
@@ -1993,8 +2304,9 @@ const se_UpdateAssetModelCommand = async (input, context) => {
|
|
|
1993
2304
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1994
2305
|
let body;
|
|
1995
2306
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1996
|
-
assetModelCompositeModels: (_) => (
|
|
2307
|
+
assetModelCompositeModels: (_) => se_AssetModelCompositeModels(_, context),
|
|
1997
2308
|
assetModelDescription: [],
|
|
2309
|
+
assetModelExternalId: [],
|
|
1998
2310
|
assetModelHierarchies: (_) => (0, smithy_client_1._json)(_),
|
|
1999
2311
|
assetModelName: [],
|
|
2000
2312
|
assetModelProperties: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -2018,18 +2330,53 @@ const se_UpdateAssetModelCommand = async (input, context) => {
|
|
|
2018
2330
|
});
|
|
2019
2331
|
};
|
|
2020
2332
|
exports.se_UpdateAssetModelCommand = se_UpdateAssetModelCommand;
|
|
2021
|
-
const
|
|
2333
|
+
const se_UpdateAssetModelCompositeModelCommand = async (input, context) => {
|
|
2022
2334
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2023
2335
|
const headers = {
|
|
2024
2336
|
"content-type": "application/json",
|
|
2025
2337
|
};
|
|
2026
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2027
|
-
|
|
2028
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
2338
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2339
|
+
"/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
|
|
2340
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
2341
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
|
|
2029
2342
|
let body;
|
|
2030
2343
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2344
|
+
assetModelCompositeModelDescription: [],
|
|
2345
|
+
assetModelCompositeModelExternalId: [],
|
|
2346
|
+
assetModelCompositeModelName: [],
|
|
2347
|
+
assetModelCompositeModelProperties: (_) => (0, smithy_client_1._json)(_),
|
|
2031
2348
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2032
|
-
|
|
2349
|
+
}));
|
|
2350
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2351
|
+
if (context.disableHostPrefix !== true) {
|
|
2352
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
2353
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
2354
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
return new protocol_http_1.HttpRequest({
|
|
2358
|
+
protocol,
|
|
2359
|
+
hostname: resolvedHostname,
|
|
2360
|
+
port,
|
|
2361
|
+
method: "PUT",
|
|
2362
|
+
headers,
|
|
2363
|
+
path: resolvedPath,
|
|
2364
|
+
body,
|
|
2365
|
+
});
|
|
2366
|
+
};
|
|
2367
|
+
exports.se_UpdateAssetModelCompositeModelCommand = se_UpdateAssetModelCompositeModelCommand;
|
|
2368
|
+
const se_UpdateAssetPropertyCommand = async (input, context) => {
|
|
2369
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2370
|
+
const headers = {
|
|
2371
|
+
"content-type": "application/json",
|
|
2372
|
+
};
|
|
2373
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
|
|
2374
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
2375
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
|
|
2376
|
+
let body;
|
|
2377
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
2378
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2379
|
+
propertyAlias: [],
|
|
2033
2380
|
propertyNotificationState: [],
|
|
2034
2381
|
propertyUnit: [],
|
|
2035
2382
|
}));
|
|
@@ -2733,6 +3080,60 @@ const de_CreateAssetModelCommandError = async (output, context) => {
|
|
|
2733
3080
|
});
|
|
2734
3081
|
}
|
|
2735
3082
|
};
|
|
3083
|
+
const de_CreateAssetModelCompositeModelCommand = async (output, context) => {
|
|
3084
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3085
|
+
return de_CreateAssetModelCompositeModelCommandError(output, context);
|
|
3086
|
+
}
|
|
3087
|
+
const contents = (0, smithy_client_1.map)({
|
|
3088
|
+
$metadata: deserializeMetadata(output),
|
|
3089
|
+
});
|
|
3090
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3091
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3092
|
+
assetModelCompositeModelId: smithy_client_1.expectString,
|
|
3093
|
+
assetModelCompositeModelPath: smithy_client_1._json,
|
|
3094
|
+
assetModelStatus: smithy_client_1._json,
|
|
3095
|
+
});
|
|
3096
|
+
Object.assign(contents, doc);
|
|
3097
|
+
return contents;
|
|
3098
|
+
};
|
|
3099
|
+
exports.de_CreateAssetModelCompositeModelCommand = de_CreateAssetModelCompositeModelCommand;
|
|
3100
|
+
const de_CreateAssetModelCompositeModelCommandError = async (output, context) => {
|
|
3101
|
+
const parsedOutput = {
|
|
3102
|
+
...output,
|
|
3103
|
+
body: await parseErrorBody(output.body, context),
|
|
3104
|
+
};
|
|
3105
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3106
|
+
switch (errorCode) {
|
|
3107
|
+
case "ConflictingOperationException":
|
|
3108
|
+
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
3109
|
+
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
3110
|
+
case "InternalFailureException":
|
|
3111
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
3112
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3113
|
+
case "InvalidRequestException":
|
|
3114
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
3115
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3116
|
+
case "LimitExceededException":
|
|
3117
|
+
case "com.amazonaws.iotsitewise#LimitExceededException":
|
|
3118
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3119
|
+
case "ResourceAlreadyExistsException":
|
|
3120
|
+
case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
|
|
3121
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3122
|
+
case "ResourceNotFoundException":
|
|
3123
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
3124
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3125
|
+
case "ThrottlingException":
|
|
3126
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
3127
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3128
|
+
default:
|
|
3129
|
+
const parsedBody = parsedOutput.body;
|
|
3130
|
+
return throwDefaultError({
|
|
3131
|
+
output,
|
|
3132
|
+
parsedBody,
|
|
3133
|
+
errorCode,
|
|
3134
|
+
});
|
|
3135
|
+
}
|
|
3136
|
+
};
|
|
2736
3137
|
const de_CreateBulkImportJobCommand = async (output, context) => {
|
|
2737
3138
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2738
3139
|
return de_CreateBulkImportJobCommandError(output, context);
|
|
@@ -3109,6 +3510,52 @@ const de_DeleteAssetModelCommandError = async (output, context) => {
|
|
|
3109
3510
|
});
|
|
3110
3511
|
}
|
|
3111
3512
|
};
|
|
3513
|
+
const de_DeleteAssetModelCompositeModelCommand = async (output, context) => {
|
|
3514
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3515
|
+
return de_DeleteAssetModelCompositeModelCommandError(output, context);
|
|
3516
|
+
}
|
|
3517
|
+
const contents = (0, smithy_client_1.map)({
|
|
3518
|
+
$metadata: deserializeMetadata(output),
|
|
3519
|
+
});
|
|
3520
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3521
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3522
|
+
assetModelStatus: smithy_client_1._json,
|
|
3523
|
+
});
|
|
3524
|
+
Object.assign(contents, doc);
|
|
3525
|
+
return contents;
|
|
3526
|
+
};
|
|
3527
|
+
exports.de_DeleteAssetModelCompositeModelCommand = de_DeleteAssetModelCompositeModelCommand;
|
|
3528
|
+
const de_DeleteAssetModelCompositeModelCommandError = async (output, context) => {
|
|
3529
|
+
const parsedOutput = {
|
|
3530
|
+
...output,
|
|
3531
|
+
body: await parseErrorBody(output.body, context),
|
|
3532
|
+
};
|
|
3533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3534
|
+
switch (errorCode) {
|
|
3535
|
+
case "ConflictingOperationException":
|
|
3536
|
+
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
3537
|
+
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
3538
|
+
case "InternalFailureException":
|
|
3539
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
3540
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3541
|
+
case "InvalidRequestException":
|
|
3542
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
3543
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3544
|
+
case "ResourceNotFoundException":
|
|
3545
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
3546
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3547
|
+
case "ThrottlingException":
|
|
3548
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
3549
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3550
|
+
default:
|
|
3551
|
+
const parsedBody = parsedOutput.body;
|
|
3552
|
+
return throwDefaultError({
|
|
3553
|
+
output,
|
|
3554
|
+
parsedBody,
|
|
3555
|
+
errorCode,
|
|
3556
|
+
});
|
|
3557
|
+
}
|
|
3558
|
+
};
|
|
3112
3559
|
const de_DeleteDashboardCommand = async (output, context) => {
|
|
3113
3560
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3114
3561
|
return de_DeleteDashboardCommandError(output, context);
|
|
@@ -3363,6 +3810,53 @@ const de_DescribeAccessPolicyCommandError = async (output, context) => {
|
|
|
3363
3810
|
});
|
|
3364
3811
|
}
|
|
3365
3812
|
};
|
|
3813
|
+
const de_DescribeActionCommand = async (output, context) => {
|
|
3814
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3815
|
+
return de_DescribeActionCommandError(output, context);
|
|
3816
|
+
}
|
|
3817
|
+
const contents = (0, smithy_client_1.map)({
|
|
3818
|
+
$metadata: deserializeMetadata(output),
|
|
3819
|
+
});
|
|
3820
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3821
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3822
|
+
actionDefinitionId: smithy_client_1.expectString,
|
|
3823
|
+
actionId: smithy_client_1.expectString,
|
|
3824
|
+
actionPayload: smithy_client_1._json,
|
|
3825
|
+
executionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3826
|
+
targetResource: smithy_client_1._json,
|
|
3827
|
+
});
|
|
3828
|
+
Object.assign(contents, doc);
|
|
3829
|
+
return contents;
|
|
3830
|
+
};
|
|
3831
|
+
exports.de_DescribeActionCommand = de_DescribeActionCommand;
|
|
3832
|
+
const de_DescribeActionCommandError = async (output, context) => {
|
|
3833
|
+
const parsedOutput = {
|
|
3834
|
+
...output,
|
|
3835
|
+
body: await parseErrorBody(output.body, context),
|
|
3836
|
+
};
|
|
3837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3838
|
+
switch (errorCode) {
|
|
3839
|
+
case "InternalFailureException":
|
|
3840
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
3841
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3842
|
+
case "InvalidRequestException":
|
|
3843
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
3844
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3845
|
+
case "ResourceNotFoundException":
|
|
3846
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
3847
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3848
|
+
case "ThrottlingException":
|
|
3849
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
3850
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3851
|
+
default:
|
|
3852
|
+
const parsedBody = parsedOutput.body;
|
|
3853
|
+
return throwDefaultError({
|
|
3854
|
+
output,
|
|
3855
|
+
parsedBody,
|
|
3856
|
+
errorCode,
|
|
3857
|
+
});
|
|
3858
|
+
}
|
|
3859
|
+
};
|
|
3366
3860
|
const de_DescribeAssetCommand = async (output, context) => {
|
|
3367
3861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3368
3862
|
return de_DescribeAssetCommandError(output, context);
|
|
@@ -3373,9 +3867,11 @@ const de_DescribeAssetCommand = async (output, context) => {
|
|
|
3373
3867
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3374
3868
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3375
3869
|
assetArn: smithy_client_1.expectString,
|
|
3870
|
+
assetCompositeModelSummaries: smithy_client_1._json,
|
|
3376
3871
|
assetCompositeModels: smithy_client_1._json,
|
|
3377
3872
|
assetCreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3378
3873
|
assetDescription: smithy_client_1.expectString,
|
|
3874
|
+
assetExternalId: smithy_client_1.expectString,
|
|
3379
3875
|
assetHierarchies: smithy_client_1._json,
|
|
3380
3876
|
assetId: smithy_client_1.expectString,
|
|
3381
3877
|
assetLastUpdateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -3416,6 +3912,58 @@ const de_DescribeAssetCommandError = async (output, context) => {
|
|
|
3416
3912
|
});
|
|
3417
3913
|
}
|
|
3418
3914
|
};
|
|
3915
|
+
const de_DescribeAssetCompositeModelCommand = async (output, context) => {
|
|
3916
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3917
|
+
return de_DescribeAssetCompositeModelCommandError(output, context);
|
|
3918
|
+
}
|
|
3919
|
+
const contents = (0, smithy_client_1.map)({
|
|
3920
|
+
$metadata: deserializeMetadata(output),
|
|
3921
|
+
});
|
|
3922
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3923
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3924
|
+
actionDefinitions: smithy_client_1._json,
|
|
3925
|
+
assetCompositeModelDescription: smithy_client_1.expectString,
|
|
3926
|
+
assetCompositeModelExternalId: smithy_client_1.expectString,
|
|
3927
|
+
assetCompositeModelId: smithy_client_1.expectString,
|
|
3928
|
+
assetCompositeModelName: smithy_client_1.expectString,
|
|
3929
|
+
assetCompositeModelPath: smithy_client_1._json,
|
|
3930
|
+
assetCompositeModelProperties: smithy_client_1._json,
|
|
3931
|
+
assetCompositeModelSummaries: smithy_client_1._json,
|
|
3932
|
+
assetCompositeModelType: smithy_client_1.expectString,
|
|
3933
|
+
assetId: smithy_client_1.expectString,
|
|
3934
|
+
});
|
|
3935
|
+
Object.assign(contents, doc);
|
|
3936
|
+
return contents;
|
|
3937
|
+
};
|
|
3938
|
+
exports.de_DescribeAssetCompositeModelCommand = de_DescribeAssetCompositeModelCommand;
|
|
3939
|
+
const de_DescribeAssetCompositeModelCommandError = async (output, context) => {
|
|
3940
|
+
const parsedOutput = {
|
|
3941
|
+
...output,
|
|
3942
|
+
body: await parseErrorBody(output.body, context),
|
|
3943
|
+
};
|
|
3944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3945
|
+
switch (errorCode) {
|
|
3946
|
+
case "InternalFailureException":
|
|
3947
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
3948
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3949
|
+
case "InvalidRequestException":
|
|
3950
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
3951
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3952
|
+
case "ResourceNotFoundException":
|
|
3953
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
3954
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3955
|
+
case "ThrottlingException":
|
|
3956
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
3957
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3958
|
+
default:
|
|
3959
|
+
const parsedBody = parsedOutput.body;
|
|
3960
|
+
return throwDefaultError({
|
|
3961
|
+
output,
|
|
3962
|
+
parsedBody,
|
|
3963
|
+
errorCode,
|
|
3964
|
+
});
|
|
3965
|
+
}
|
|
3966
|
+
};
|
|
3419
3967
|
const de_DescribeAssetModelCommand = async (output, context) => {
|
|
3420
3968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3421
3969
|
return de_DescribeAssetModelCommandError(output, context);
|
|
@@ -3426,15 +3974,18 @@ const de_DescribeAssetModelCommand = async (output, context) => {
|
|
|
3426
3974
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3427
3975
|
const doc = (0, smithy_client_1.take)(data, {
|
|
3428
3976
|
assetModelArn: smithy_client_1.expectString,
|
|
3429
|
-
|
|
3977
|
+
assetModelCompositeModelSummaries: smithy_client_1._json,
|
|
3978
|
+
assetModelCompositeModels: (_) => de_AssetModelCompositeModels(_, context),
|
|
3430
3979
|
assetModelCreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3431
3980
|
assetModelDescription: smithy_client_1.expectString,
|
|
3981
|
+
assetModelExternalId: smithy_client_1.expectString,
|
|
3432
3982
|
assetModelHierarchies: smithy_client_1._json,
|
|
3433
3983
|
assetModelId: smithy_client_1.expectString,
|
|
3434
3984
|
assetModelLastUpdateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3435
3985
|
assetModelName: smithy_client_1.expectString,
|
|
3436
3986
|
assetModelProperties: smithy_client_1._json,
|
|
3437
3987
|
assetModelStatus: smithy_client_1._json,
|
|
3988
|
+
assetModelType: smithy_client_1.expectString,
|
|
3438
3989
|
});
|
|
3439
3990
|
Object.assign(contents, doc);
|
|
3440
3991
|
return contents;
|
|
@@ -3468,6 +4019,59 @@ const de_DescribeAssetModelCommandError = async (output, context) => {
|
|
|
3468
4019
|
});
|
|
3469
4020
|
}
|
|
3470
4021
|
};
|
|
4022
|
+
const de_DescribeAssetModelCompositeModelCommand = async (output, context) => {
|
|
4023
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4024
|
+
return de_DescribeAssetModelCompositeModelCommandError(output, context);
|
|
4025
|
+
}
|
|
4026
|
+
const contents = (0, smithy_client_1.map)({
|
|
4027
|
+
$metadata: deserializeMetadata(output),
|
|
4028
|
+
});
|
|
4029
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4030
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4031
|
+
actionDefinitions: smithy_client_1._json,
|
|
4032
|
+
assetModelCompositeModelDescription: smithy_client_1.expectString,
|
|
4033
|
+
assetModelCompositeModelExternalId: smithy_client_1.expectString,
|
|
4034
|
+
assetModelCompositeModelId: smithy_client_1.expectString,
|
|
4035
|
+
assetModelCompositeModelName: smithy_client_1.expectString,
|
|
4036
|
+
assetModelCompositeModelPath: smithy_client_1._json,
|
|
4037
|
+
assetModelCompositeModelProperties: smithy_client_1._json,
|
|
4038
|
+
assetModelCompositeModelSummaries: smithy_client_1._json,
|
|
4039
|
+
assetModelCompositeModelType: smithy_client_1.expectString,
|
|
4040
|
+
assetModelId: smithy_client_1.expectString,
|
|
4041
|
+
compositionDetails: smithy_client_1._json,
|
|
4042
|
+
});
|
|
4043
|
+
Object.assign(contents, doc);
|
|
4044
|
+
return contents;
|
|
4045
|
+
};
|
|
4046
|
+
exports.de_DescribeAssetModelCompositeModelCommand = de_DescribeAssetModelCompositeModelCommand;
|
|
4047
|
+
const de_DescribeAssetModelCompositeModelCommandError = async (output, context) => {
|
|
4048
|
+
const parsedOutput = {
|
|
4049
|
+
...output,
|
|
4050
|
+
body: await parseErrorBody(output.body, context),
|
|
4051
|
+
};
|
|
4052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4053
|
+
switch (errorCode) {
|
|
4054
|
+
case "InternalFailureException":
|
|
4055
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
4056
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
4057
|
+
case "InvalidRequestException":
|
|
4058
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4059
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4060
|
+
case "ResourceNotFoundException":
|
|
4061
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
4062
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4063
|
+
case "ThrottlingException":
|
|
4064
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
4065
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4066
|
+
default:
|
|
4067
|
+
const parsedBody = parsedOutput.body;
|
|
4068
|
+
return throwDefaultError({
|
|
4069
|
+
output,
|
|
4070
|
+
parsedBody,
|
|
4071
|
+
errorCode,
|
|
4072
|
+
});
|
|
4073
|
+
}
|
|
4074
|
+
};
|
|
3471
4075
|
const de_DescribeAssetPropertyCommand = async (output, context) => {
|
|
3472
4076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3473
4077
|
return de_DescribeAssetPropertyCommandError(output, context);
|
|
@@ -3477,6 +4081,7 @@ const de_DescribeAssetPropertyCommand = async (output, context) => {
|
|
|
3477
4081
|
});
|
|
3478
4082
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3479
4083
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4084
|
+
assetExternalId: smithy_client_1.expectString,
|
|
3480
4085
|
assetId: smithy_client_1.expectString,
|
|
3481
4086
|
assetModelId: smithy_client_1.expectString,
|
|
3482
4087
|
assetName: smithy_client_1.expectString,
|
|
@@ -3524,6 +4129,8 @@ const de_DescribeBulkImportJobCommand = async (output, context) => {
|
|
|
3524
4129
|
});
|
|
3525
4130
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3526
4131
|
const doc = (0, smithy_client_1.take)(data, {
|
|
4132
|
+
adaptiveIngestion: smithy_client_1.expectBoolean,
|
|
4133
|
+
deleteFilesAfterImport: smithy_client_1.expectBoolean,
|
|
3527
4134
|
errorReportLocation: smithy_client_1._json,
|
|
3528
4135
|
files: smithy_client_1._json,
|
|
3529
4136
|
jobConfiguration: smithy_client_1._json,
|
|
@@ -3917,6 +4524,8 @@ const de_DescribeStorageConfigurationCommand = async (output, context) => {
|
|
|
3917
4524
|
multiLayerStorage: smithy_client_1._json,
|
|
3918
4525
|
retentionPeriod: smithy_client_1._json,
|
|
3919
4526
|
storageType: smithy_client_1.expectString,
|
|
4527
|
+
warmTier: smithy_client_1.expectString,
|
|
4528
|
+
warmTierRetentionPeriod: smithy_client_1._json,
|
|
3920
4529
|
});
|
|
3921
4530
|
Object.assign(contents, doc);
|
|
3922
4531
|
return contents;
|
|
@@ -4017,8 +4626,96 @@ const de_DisassociateAssetsCommand = async (output, context) => {
|
|
|
4017
4626
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4018
4627
|
return contents;
|
|
4019
4628
|
};
|
|
4020
|
-
exports.de_DisassociateAssetsCommand = de_DisassociateAssetsCommand;
|
|
4021
|
-
const de_DisassociateAssetsCommandError = async (output, context) => {
|
|
4629
|
+
exports.de_DisassociateAssetsCommand = de_DisassociateAssetsCommand;
|
|
4630
|
+
const de_DisassociateAssetsCommandError = async (output, context) => {
|
|
4631
|
+
const parsedOutput = {
|
|
4632
|
+
...output,
|
|
4633
|
+
body: await parseErrorBody(output.body, context),
|
|
4634
|
+
};
|
|
4635
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4636
|
+
switch (errorCode) {
|
|
4637
|
+
case "ConflictingOperationException":
|
|
4638
|
+
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
4639
|
+
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
4640
|
+
case "InternalFailureException":
|
|
4641
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
4642
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
4643
|
+
case "InvalidRequestException":
|
|
4644
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4645
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4646
|
+
case "ResourceNotFoundException":
|
|
4647
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
4648
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4649
|
+
case "ThrottlingException":
|
|
4650
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
4651
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4652
|
+
default:
|
|
4653
|
+
const parsedBody = parsedOutput.body;
|
|
4654
|
+
return throwDefaultError({
|
|
4655
|
+
output,
|
|
4656
|
+
parsedBody,
|
|
4657
|
+
errorCode,
|
|
4658
|
+
});
|
|
4659
|
+
}
|
|
4660
|
+
};
|
|
4661
|
+
const de_DisassociateTimeSeriesFromAssetPropertyCommand = async (output, context) => {
|
|
4662
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4663
|
+
return de_DisassociateTimeSeriesFromAssetPropertyCommandError(output, context);
|
|
4664
|
+
}
|
|
4665
|
+
const contents = (0, smithy_client_1.map)({
|
|
4666
|
+
$metadata: deserializeMetadata(output),
|
|
4667
|
+
});
|
|
4668
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
4669
|
+
return contents;
|
|
4670
|
+
};
|
|
4671
|
+
exports.de_DisassociateTimeSeriesFromAssetPropertyCommand = de_DisassociateTimeSeriesFromAssetPropertyCommand;
|
|
4672
|
+
const de_DisassociateTimeSeriesFromAssetPropertyCommandError = async (output, context) => {
|
|
4673
|
+
const parsedOutput = {
|
|
4674
|
+
...output,
|
|
4675
|
+
body: await parseErrorBody(output.body, context),
|
|
4676
|
+
};
|
|
4677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4678
|
+
switch (errorCode) {
|
|
4679
|
+
case "ConflictingOperationException":
|
|
4680
|
+
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
4681
|
+
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
4682
|
+
case "InternalFailureException":
|
|
4683
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
4684
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
4685
|
+
case "InvalidRequestException":
|
|
4686
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4687
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4688
|
+
case "ResourceNotFoundException":
|
|
4689
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
4690
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4691
|
+
case "ThrottlingException":
|
|
4692
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
4693
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4694
|
+
default:
|
|
4695
|
+
const parsedBody = parsedOutput.body;
|
|
4696
|
+
return throwDefaultError({
|
|
4697
|
+
output,
|
|
4698
|
+
parsedBody,
|
|
4699
|
+
errorCode,
|
|
4700
|
+
});
|
|
4701
|
+
}
|
|
4702
|
+
};
|
|
4703
|
+
const de_ExecuteActionCommand = async (output, context) => {
|
|
4704
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
4705
|
+
return de_ExecuteActionCommandError(output, context);
|
|
4706
|
+
}
|
|
4707
|
+
const contents = (0, smithy_client_1.map)({
|
|
4708
|
+
$metadata: deserializeMetadata(output),
|
|
4709
|
+
});
|
|
4710
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4711
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4712
|
+
actionId: smithy_client_1.expectString,
|
|
4713
|
+
});
|
|
4714
|
+
Object.assign(contents, doc);
|
|
4715
|
+
return contents;
|
|
4716
|
+
};
|
|
4717
|
+
exports.de_ExecuteActionCommand = de_ExecuteActionCommand;
|
|
4718
|
+
const de_ExecuteActionCommandError = async (output, context) => {
|
|
4022
4719
|
const parsedOutput = {
|
|
4023
4720
|
...output,
|
|
4024
4721
|
body: await parseErrorBody(output.body, context),
|
|
@@ -4034,6 +4731,9 @@ const de_DisassociateAssetsCommandError = async (output, context) => {
|
|
|
4034
4731
|
case "InvalidRequestException":
|
|
4035
4732
|
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4036
4733
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4734
|
+
case "LimitExceededException":
|
|
4735
|
+
case "com.amazonaws.iotsitewise#LimitExceededException":
|
|
4736
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4037
4737
|
case "ResourceNotFoundException":
|
|
4038
4738
|
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
4039
4739
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4049,39 +4749,51 @@ const de_DisassociateAssetsCommandError = async (output, context) => {
|
|
|
4049
4749
|
});
|
|
4050
4750
|
}
|
|
4051
4751
|
};
|
|
4052
|
-
const
|
|
4752
|
+
const de_ExecuteQueryCommand = async (output, context) => {
|
|
4053
4753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4054
|
-
return
|
|
4754
|
+
return de_ExecuteQueryCommandError(output, context);
|
|
4055
4755
|
}
|
|
4056
4756
|
const contents = (0, smithy_client_1.map)({
|
|
4057
4757
|
$metadata: deserializeMetadata(output),
|
|
4058
4758
|
});
|
|
4059
|
-
|
|
4759
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4760
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
4761
|
+
columns: smithy_client_1._json,
|
|
4762
|
+
nextToken: smithy_client_1.expectString,
|
|
4763
|
+
rows: (_) => de_Rows(_, context),
|
|
4764
|
+
});
|
|
4765
|
+
Object.assign(contents, doc);
|
|
4060
4766
|
return contents;
|
|
4061
4767
|
};
|
|
4062
|
-
exports.
|
|
4063
|
-
const
|
|
4768
|
+
exports.de_ExecuteQueryCommand = de_ExecuteQueryCommand;
|
|
4769
|
+
const de_ExecuteQueryCommandError = async (output, context) => {
|
|
4064
4770
|
const parsedOutput = {
|
|
4065
4771
|
...output,
|
|
4066
4772
|
body: await parseErrorBody(output.body, context),
|
|
4067
4773
|
};
|
|
4068
4774
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4069
4775
|
switch (errorCode) {
|
|
4070
|
-
case "
|
|
4071
|
-
case "com.amazonaws.iotsitewise#
|
|
4072
|
-
throw await
|
|
4776
|
+
case "AccessDeniedException":
|
|
4777
|
+
case "com.amazonaws.iotsitewise#AccessDeniedException":
|
|
4778
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4073
4779
|
case "InternalFailureException":
|
|
4074
4780
|
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
4075
4781
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
4076
4782
|
case "InvalidRequestException":
|
|
4077
4783
|
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4078
4784
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4079
|
-
case "
|
|
4080
|
-
case "com.amazonaws.iotsitewise#
|
|
4081
|
-
throw await
|
|
4785
|
+
case "QueryTimeoutException":
|
|
4786
|
+
case "com.amazonaws.iotsitewise#QueryTimeoutException":
|
|
4787
|
+
throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
|
|
4788
|
+
case "ServiceUnavailableException":
|
|
4789
|
+
case "com.amazonaws.iotsitewise#ServiceUnavailableException":
|
|
4790
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4082
4791
|
case "ThrottlingException":
|
|
4083
4792
|
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
4084
4793
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4794
|
+
case "ValidationException":
|
|
4795
|
+
case "com.amazonaws.iotsitewise#ValidationException":
|
|
4796
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4085
4797
|
default:
|
|
4086
4798
|
const parsedBody = parsedOutput.body;
|
|
4087
4799
|
return throwDefaultError({
|
|
@@ -4319,6 +5031,94 @@ const de_ListAccessPoliciesCommandError = async (output, context) => {
|
|
|
4319
5031
|
});
|
|
4320
5032
|
}
|
|
4321
5033
|
};
|
|
5034
|
+
const de_ListActionsCommand = async (output, context) => {
|
|
5035
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5036
|
+
return de_ListActionsCommandError(output, context);
|
|
5037
|
+
}
|
|
5038
|
+
const contents = (0, smithy_client_1.map)({
|
|
5039
|
+
$metadata: deserializeMetadata(output),
|
|
5040
|
+
});
|
|
5041
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5042
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5043
|
+
actionSummaries: smithy_client_1._json,
|
|
5044
|
+
nextToken: smithy_client_1.expectString,
|
|
5045
|
+
});
|
|
5046
|
+
Object.assign(contents, doc);
|
|
5047
|
+
return contents;
|
|
5048
|
+
};
|
|
5049
|
+
exports.de_ListActionsCommand = de_ListActionsCommand;
|
|
5050
|
+
const de_ListActionsCommandError = async (output, context) => {
|
|
5051
|
+
const parsedOutput = {
|
|
5052
|
+
...output,
|
|
5053
|
+
body: await parseErrorBody(output.body, context),
|
|
5054
|
+
};
|
|
5055
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5056
|
+
switch (errorCode) {
|
|
5057
|
+
case "InternalFailureException":
|
|
5058
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
5059
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
5060
|
+
case "InvalidRequestException":
|
|
5061
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
5062
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5063
|
+
case "ResourceNotFoundException":
|
|
5064
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
5065
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5066
|
+
case "ThrottlingException":
|
|
5067
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
5068
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5069
|
+
default:
|
|
5070
|
+
const parsedBody = parsedOutput.body;
|
|
5071
|
+
return throwDefaultError({
|
|
5072
|
+
output,
|
|
5073
|
+
parsedBody,
|
|
5074
|
+
errorCode,
|
|
5075
|
+
});
|
|
5076
|
+
}
|
|
5077
|
+
};
|
|
5078
|
+
const de_ListAssetModelCompositeModelsCommand = async (output, context) => {
|
|
5079
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5080
|
+
return de_ListAssetModelCompositeModelsCommandError(output, context);
|
|
5081
|
+
}
|
|
5082
|
+
const contents = (0, smithy_client_1.map)({
|
|
5083
|
+
$metadata: deserializeMetadata(output),
|
|
5084
|
+
});
|
|
5085
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5086
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5087
|
+
assetModelCompositeModelSummaries: smithy_client_1._json,
|
|
5088
|
+
nextToken: smithy_client_1.expectString,
|
|
5089
|
+
});
|
|
5090
|
+
Object.assign(contents, doc);
|
|
5091
|
+
return contents;
|
|
5092
|
+
};
|
|
5093
|
+
exports.de_ListAssetModelCompositeModelsCommand = de_ListAssetModelCompositeModelsCommand;
|
|
5094
|
+
const de_ListAssetModelCompositeModelsCommandError = async (output, context) => {
|
|
5095
|
+
const parsedOutput = {
|
|
5096
|
+
...output,
|
|
5097
|
+
body: await parseErrorBody(output.body, context),
|
|
5098
|
+
};
|
|
5099
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5100
|
+
switch (errorCode) {
|
|
5101
|
+
case "InternalFailureException":
|
|
5102
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
5103
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
5104
|
+
case "InvalidRequestException":
|
|
5105
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
5106
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5107
|
+
case "ResourceNotFoundException":
|
|
5108
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
5109
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5110
|
+
case "ThrottlingException":
|
|
5111
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
5112
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5113
|
+
default:
|
|
5114
|
+
const parsedBody = parsedOutput.body;
|
|
5115
|
+
return throwDefaultError({
|
|
5116
|
+
output,
|
|
5117
|
+
parsedBody,
|
|
5118
|
+
errorCode,
|
|
5119
|
+
});
|
|
5120
|
+
}
|
|
5121
|
+
};
|
|
4322
5122
|
const de_ListAssetModelPropertiesCommand = async (output, context) => {
|
|
4323
5123
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4324
5124
|
return de_ListAssetModelPropertiesCommandError(output, context);
|
|
@@ -4624,6 +5424,50 @@ const de_ListBulkImportJobsCommandError = async (output, context) => {
|
|
|
4624
5424
|
});
|
|
4625
5425
|
}
|
|
4626
5426
|
};
|
|
5427
|
+
const de_ListCompositionRelationshipsCommand = async (output, context) => {
|
|
5428
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5429
|
+
return de_ListCompositionRelationshipsCommandError(output, context);
|
|
5430
|
+
}
|
|
5431
|
+
const contents = (0, smithy_client_1.map)({
|
|
5432
|
+
$metadata: deserializeMetadata(output),
|
|
5433
|
+
});
|
|
5434
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5435
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
5436
|
+
compositionRelationshipSummaries: smithy_client_1._json,
|
|
5437
|
+
nextToken: smithy_client_1.expectString,
|
|
5438
|
+
});
|
|
5439
|
+
Object.assign(contents, doc);
|
|
5440
|
+
return contents;
|
|
5441
|
+
};
|
|
5442
|
+
exports.de_ListCompositionRelationshipsCommand = de_ListCompositionRelationshipsCommand;
|
|
5443
|
+
const de_ListCompositionRelationshipsCommandError = async (output, context) => {
|
|
5444
|
+
const parsedOutput = {
|
|
5445
|
+
...output,
|
|
5446
|
+
body: await parseErrorBody(output.body, context),
|
|
5447
|
+
};
|
|
5448
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5449
|
+
switch (errorCode) {
|
|
5450
|
+
case "InternalFailureException":
|
|
5451
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
5452
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
5453
|
+
case "InvalidRequestException":
|
|
5454
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
5455
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5456
|
+
case "ResourceNotFoundException":
|
|
5457
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
5458
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5459
|
+
case "ThrottlingException":
|
|
5460
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
5461
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5462
|
+
default:
|
|
5463
|
+
const parsedBody = parsedOutput.body;
|
|
5464
|
+
return throwDefaultError({
|
|
5465
|
+
output,
|
|
5466
|
+
parsedBody,
|
|
5467
|
+
errorCode,
|
|
5468
|
+
});
|
|
5469
|
+
}
|
|
5470
|
+
};
|
|
4627
5471
|
const de_ListDashboardsCommand = async (output, context) => {
|
|
4628
5472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4629
5473
|
return de_ListDashboardsCommandError(output, context);
|
|
@@ -5029,6 +5873,8 @@ const de_PutStorageConfigurationCommand = async (output, context) => {
|
|
|
5029
5873
|
multiLayerStorage: smithy_client_1._json,
|
|
5030
5874
|
retentionPeriod: smithy_client_1._json,
|
|
5031
5875
|
storageType: smithy_client_1.expectString,
|
|
5876
|
+
warmTier: smithy_client_1.expectString,
|
|
5877
|
+
warmTierRetentionPeriod: smithy_client_1._json,
|
|
5032
5878
|
});
|
|
5033
5879
|
Object.assign(contents, doc);
|
|
5034
5880
|
return contents;
|
|
@@ -5310,6 +6156,59 @@ const de_UpdateAssetModelCommandError = async (output, context) => {
|
|
|
5310
6156
|
});
|
|
5311
6157
|
}
|
|
5312
6158
|
};
|
|
6159
|
+
const de_UpdateAssetModelCompositeModelCommand = async (output, context) => {
|
|
6160
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
6161
|
+
return de_UpdateAssetModelCompositeModelCommandError(output, context);
|
|
6162
|
+
}
|
|
6163
|
+
const contents = (0, smithy_client_1.map)({
|
|
6164
|
+
$metadata: deserializeMetadata(output),
|
|
6165
|
+
});
|
|
6166
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6167
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
6168
|
+
assetModelCompositeModelPath: smithy_client_1._json,
|
|
6169
|
+
assetModelStatus: smithy_client_1._json,
|
|
6170
|
+
});
|
|
6171
|
+
Object.assign(contents, doc);
|
|
6172
|
+
return contents;
|
|
6173
|
+
};
|
|
6174
|
+
exports.de_UpdateAssetModelCompositeModelCommand = de_UpdateAssetModelCompositeModelCommand;
|
|
6175
|
+
const de_UpdateAssetModelCompositeModelCommandError = async (output, context) => {
|
|
6176
|
+
const parsedOutput = {
|
|
6177
|
+
...output,
|
|
6178
|
+
body: await parseErrorBody(output.body, context),
|
|
6179
|
+
};
|
|
6180
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6181
|
+
switch (errorCode) {
|
|
6182
|
+
case "ConflictingOperationException":
|
|
6183
|
+
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
6184
|
+
throw await de_ConflictingOperationExceptionRes(parsedOutput, context);
|
|
6185
|
+
case "InternalFailureException":
|
|
6186
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
6187
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
6188
|
+
case "InvalidRequestException":
|
|
6189
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
6190
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
6191
|
+
case "LimitExceededException":
|
|
6192
|
+
case "com.amazonaws.iotsitewise#LimitExceededException":
|
|
6193
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
6194
|
+
case "ResourceAlreadyExistsException":
|
|
6195
|
+
case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
|
|
6196
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
6197
|
+
case "ResourceNotFoundException":
|
|
6198
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
6199
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6200
|
+
case "ThrottlingException":
|
|
6201
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
6202
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6203
|
+
default:
|
|
6204
|
+
const parsedBody = parsedOutput.body;
|
|
6205
|
+
return throwDefaultError({
|
|
6206
|
+
output,
|
|
6207
|
+
parsedBody,
|
|
6208
|
+
errorCode,
|
|
6209
|
+
});
|
|
6210
|
+
}
|
|
6211
|
+
};
|
|
5313
6212
|
const de_UpdateAssetPropertyCommand = async (output, context) => {
|
|
5314
6213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5315
6214
|
return de_UpdateAssetPropertyCommandError(output, context);
|
|
@@ -5569,6 +6468,19 @@ const de_UpdateProjectCommandError = async (output, context) => {
|
|
|
5569
6468
|
}
|
|
5570
6469
|
};
|
|
5571
6470
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(IoTSiteWiseServiceException_1.IoTSiteWiseServiceException);
|
|
6471
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
6472
|
+
const contents = (0, smithy_client_1.map)({});
|
|
6473
|
+
const data = parsedOutput.body;
|
|
6474
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
6475
|
+
message: smithy_client_1.expectString,
|
|
6476
|
+
});
|
|
6477
|
+
Object.assign(contents, doc);
|
|
6478
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
6479
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6480
|
+
...contents,
|
|
6481
|
+
});
|
|
6482
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6483
|
+
};
|
|
5572
6484
|
const de_ConflictingOperationExceptionRes = async (parsedOutput, context) => {
|
|
5573
6485
|
const contents = (0, smithy_client_1.map)({});
|
|
5574
6486
|
const data = parsedOutput.body;
|
|
@@ -5623,6 +6535,19 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
5623
6535
|
});
|
|
5624
6536
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5625
6537
|
};
|
|
6538
|
+
const de_QueryTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
6539
|
+
const contents = (0, smithy_client_1.map)({});
|
|
6540
|
+
const data = parsedOutput.body;
|
|
6541
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
6542
|
+
message: smithy_client_1.expectString,
|
|
6543
|
+
});
|
|
6544
|
+
Object.assign(contents, doc);
|
|
6545
|
+
const exception = new models_0_1.QueryTimeoutException({
|
|
6546
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6547
|
+
...contents,
|
|
6548
|
+
});
|
|
6549
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6550
|
+
};
|
|
5626
6551
|
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
5627
6552
|
const contents = (0, smithy_client_1.map)({});
|
|
5628
6553
|
const data = parsedOutput.body;
|
|
@@ -5685,7 +6610,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
5685
6610
|
resourceName: smithy_client_1.expectString,
|
|
5686
6611
|
});
|
|
5687
6612
|
Object.assign(contents, doc);
|
|
5688
|
-
const exception = new
|
|
6613
|
+
const exception = new models_1_1.TooManyTagsException({
|
|
5689
6614
|
$metadata: deserializeMetadata(parsedOutput),
|
|
5690
6615
|
...contents,
|
|
5691
6616
|
});
|
|
@@ -5704,6 +6629,33 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
|
5704
6629
|
});
|
|
5705
6630
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5706
6631
|
};
|
|
6632
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
6633
|
+
const contents = (0, smithy_client_1.map)({});
|
|
6634
|
+
const data = parsedOutput.body;
|
|
6635
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
6636
|
+
message: smithy_client_1.expectString,
|
|
6637
|
+
});
|
|
6638
|
+
Object.assign(contents, doc);
|
|
6639
|
+
const exception = new models_0_1.ValidationException({
|
|
6640
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6641
|
+
...contents,
|
|
6642
|
+
});
|
|
6643
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6644
|
+
};
|
|
6645
|
+
const se_AssetModelCompositeModelDefinitions = (input, context) => {
|
|
6646
|
+
return input
|
|
6647
|
+
.filter((e) => e != null)
|
|
6648
|
+
.map((entry) => {
|
|
6649
|
+
return (0, smithy_client_1._json)(entry);
|
|
6650
|
+
});
|
|
6651
|
+
};
|
|
6652
|
+
const se_AssetModelCompositeModels = (input, context) => {
|
|
6653
|
+
return input
|
|
6654
|
+
.filter((e) => e != null)
|
|
6655
|
+
.map((entry) => {
|
|
6656
|
+
return (0, smithy_client_1._json)(entry);
|
|
6657
|
+
});
|
|
6658
|
+
};
|
|
5707
6659
|
const se_AssetPropertyValue = (input, context) => {
|
|
5708
6660
|
return (0, smithy_client_1.take)(input, {
|
|
5709
6661
|
quality: [],
|
|
@@ -5837,6 +6789,14 @@ const de_Aggregates = (output, context) => {
|
|
|
5837
6789
|
sum: smithy_client_1.limitedParseDouble,
|
|
5838
6790
|
});
|
|
5839
6791
|
};
|
|
6792
|
+
const de_AssetModelCompositeModels = (output, context) => {
|
|
6793
|
+
const retVal = (output || [])
|
|
6794
|
+
.filter((e) => e != null)
|
|
6795
|
+
.map((entry) => {
|
|
6796
|
+
return (0, smithy_client_1._json)(entry);
|
|
6797
|
+
});
|
|
6798
|
+
return retVal;
|
|
6799
|
+
};
|
|
5840
6800
|
const de_AssetModelSummaries = (output, context) => {
|
|
5841
6801
|
const retVal = (output || [])
|
|
5842
6802
|
.filter((e) => e != null)
|
|
@@ -5848,8 +6808,10 @@ const de_AssetModelSummaries = (output, context) => {
|
|
|
5848
6808
|
const de_AssetModelSummary = (output, context) => {
|
|
5849
6809
|
return (0, smithy_client_1.take)(output, {
|
|
5850
6810
|
arn: smithy_client_1.expectString,
|
|
6811
|
+
assetModelType: smithy_client_1.expectString,
|
|
5851
6812
|
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5852
6813
|
description: smithy_client_1.expectString,
|
|
6814
|
+
externalId: smithy_client_1.expectString,
|
|
5853
6815
|
id: smithy_client_1.expectString,
|
|
5854
6816
|
lastUpdateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5855
6817
|
name: smithy_client_1.expectString,
|
|
@@ -5885,6 +6847,7 @@ const de_AssetSummary = (output, context) => {
|
|
|
5885
6847
|
assetModelId: smithy_client_1.expectString,
|
|
5886
6848
|
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5887
6849
|
description: smithy_client_1.expectString,
|
|
6850
|
+
externalId: smithy_client_1.expectString,
|
|
5888
6851
|
hierarchies: smithy_client_1._json,
|
|
5889
6852
|
id: smithy_client_1.expectString,
|
|
5890
6853
|
lastUpdateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -5906,6 +6869,7 @@ const de_AssociatedAssetsSummary = (output, context) => {
|
|
|
5906
6869
|
assetModelId: smithy_client_1.expectString,
|
|
5907
6870
|
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
5908
6871
|
description: smithy_client_1.expectString,
|
|
6872
|
+
externalId: smithy_client_1.expectString,
|
|
5909
6873
|
hierarchies: smithy_client_1._json,
|
|
5910
6874
|
id: smithy_client_1.expectString,
|
|
5911
6875
|
lastUpdateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -6035,6 +6999,22 @@ const de_DashboardSummary = (output, context) => {
|
|
|
6035
6999
|
name: smithy_client_1.expectString,
|
|
6036
7000
|
});
|
|
6037
7001
|
};
|
|
7002
|
+
const de_Datum = (output, context) => {
|
|
7003
|
+
return (0, smithy_client_1.take)(output, {
|
|
7004
|
+
arrayValue: (_) => de_DatumList(_, context),
|
|
7005
|
+
nullValue: smithy_client_1.expectBoolean,
|
|
7006
|
+
rowValue: (_) => de_Row(_, context),
|
|
7007
|
+
scalarValue: smithy_client_1.expectString,
|
|
7008
|
+
});
|
|
7009
|
+
};
|
|
7010
|
+
const de_DatumList = (output, context) => {
|
|
7011
|
+
const retVal = (output || [])
|
|
7012
|
+
.filter((e) => e != null)
|
|
7013
|
+
.map((entry) => {
|
|
7014
|
+
return de_Datum(entry, context);
|
|
7015
|
+
});
|
|
7016
|
+
return retVal;
|
|
7017
|
+
};
|
|
6038
7018
|
const de_GatewaySummaries = (output, context) => {
|
|
6039
7019
|
const retVal = (output || [])
|
|
6040
7020
|
.filter((e) => e != null)
|
|
@@ -6104,6 +7084,19 @@ const de_ProjectSummary = (output, context) => {
|
|
|
6104
7084
|
name: smithy_client_1.expectString,
|
|
6105
7085
|
});
|
|
6106
7086
|
};
|
|
7087
|
+
const de_Row = (output, context) => {
|
|
7088
|
+
return (0, smithy_client_1.take)(output, {
|
|
7089
|
+
data: (_) => de_DatumList(_, context),
|
|
7090
|
+
});
|
|
7091
|
+
};
|
|
7092
|
+
const de_Rows = (output, context) => {
|
|
7093
|
+
const retVal = (output || [])
|
|
7094
|
+
.filter((e) => e != null)
|
|
7095
|
+
.map((entry) => {
|
|
7096
|
+
return de_Row(entry, context);
|
|
7097
|
+
});
|
|
7098
|
+
return retVal;
|
|
7099
|
+
};
|
|
6107
7100
|
const de_TimeSeriesSummaries = (output, context) => {
|
|
6108
7101
|
const retVal = (output || [])
|
|
6109
7102
|
.filter((e) => e != null)
|