@aws-sdk/client-iotsitewise 3.130.0 → 3.137.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/CHANGELOG.md +30 -0
- package/dist-cjs/IoTSiteWise.js +45 -0
- package/dist-cjs/commands/AssociateAssetsCommand.js +1 -1
- package/dist-cjs/commands/AssociateTimeSeriesToAssetPropertyCommand.js +1 -1
- package/dist-cjs/commands/BatchAssociateProjectAssetsCommand.js +2 -2
- package/dist-cjs/commands/BatchDisassociateProjectAssetsCommand.js +2 -2
- package/dist-cjs/commands/BatchGetAssetPropertyAggregatesCommand.js +2 -2
- package/dist-cjs/commands/BatchGetAssetPropertyValueCommand.js +2 -2
- package/dist-cjs/commands/BatchGetAssetPropertyValueHistoryCommand.js +2 -2
- package/dist-cjs/commands/BatchPutAssetPropertyValueCommand.js +2 -2
- package/dist-cjs/commands/CreateAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/CreateAssetCommand.js +2 -2
- package/dist-cjs/commands/CreateAssetModelCommand.js +2 -2
- package/dist-cjs/commands/CreateBulkImportJobCommand.js +36 -0
- package/dist-cjs/commands/CreateDashboardCommand.js +2 -2
- package/dist-cjs/commands/CreateGatewayCommand.js +2 -2
- package/dist-cjs/commands/CreatePortalCommand.js +2 -2
- package/dist-cjs/commands/CreateProjectCommand.js +2 -2
- package/dist-cjs/commands/DeleteAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteAssetCommand.js +2 -2
- package/dist-cjs/commands/DeleteAssetModelCommand.js +2 -2
- package/dist-cjs/commands/DeleteDashboardCommand.js +2 -2
- package/dist-cjs/commands/DeleteGatewayCommand.js +1 -1
- package/dist-cjs/commands/DeletePortalCommand.js +2 -2
- package/dist-cjs/commands/DeleteProjectCommand.js +2 -2
- package/dist-cjs/commands/DeleteTimeSeriesCommand.js +1 -1
- package/dist-cjs/commands/DescribeAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeAssetCommand.js +2 -2
- package/dist-cjs/commands/DescribeAssetModelCommand.js +2 -2
- package/dist-cjs/commands/DescribeAssetPropertyCommand.js +2 -2
- package/dist-cjs/commands/DescribeBulkImportJobCommand.js +36 -0
- package/dist-cjs/commands/DescribeDashboardCommand.js +2 -2
- package/dist-cjs/commands/DescribeDefaultEncryptionConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeGatewayCapabilityConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeGatewayCommand.js +2 -2
- package/dist-cjs/commands/DescribeLoggingOptionsCommand.js +2 -2
- package/dist-cjs/commands/DescribePortalCommand.js +2 -2
- package/dist-cjs/commands/DescribeProjectCommand.js +2 -2
- package/dist-cjs/commands/DescribeStorageConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeTimeSeriesCommand.js +2 -2
- package/dist-cjs/commands/DisassociateAssetsCommand.js +1 -1
- package/dist-cjs/commands/DisassociateTimeSeriesFromAssetPropertyCommand.js +1 -1
- package/dist-cjs/commands/GetAssetPropertyAggregatesCommand.js +2 -2
- package/dist-cjs/commands/GetAssetPropertyValueCommand.js +2 -2
- package/dist-cjs/commands/GetAssetPropertyValueHistoryCommand.js +2 -2
- package/dist-cjs/commands/GetInterpolatedAssetPropertyValuesCommand.js +2 -2
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListAssetModelsCommand.js +2 -2
- package/dist-cjs/commands/ListAssetRelationshipsCommand.js +2 -2
- package/dist-cjs/commands/ListAssetsCommand.js +2 -2
- package/dist-cjs/commands/ListAssociatedAssetsCommand.js +2 -2
- package/dist-cjs/commands/ListBulkImportJobsCommand.js +36 -0
- package/dist-cjs/commands/ListDashboardsCommand.js +2 -2
- package/dist-cjs/commands/ListGatewaysCommand.js +2 -2
- package/dist-cjs/commands/ListPortalsCommand.js +2 -2
- package/dist-cjs/commands/ListProjectAssetsCommand.js +2 -2
- package/dist-cjs/commands/ListProjectsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTimeSeriesCommand.js +2 -2
- package/dist-cjs/commands/PutDefaultEncryptionConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutLoggingOptionsCommand.js +2 -2
- package/dist-cjs/commands/PutStorageConfigurationCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAccessPolicyCommand.js +2 -2
- package/dist-cjs/commands/UpdateAssetCommand.js +2 -2
- package/dist-cjs/commands/UpdateAssetModelCommand.js +2 -2
- package/dist-cjs/commands/UpdateAssetPropertyCommand.js +1 -1
- package/dist-cjs/commands/UpdateDashboardCommand.js +2 -2
- package/dist-cjs/commands/UpdateGatewayCapabilityConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateGatewayCommand.js +1 -1
- package/dist-cjs/commands/UpdatePortalCommand.js +2 -2
- package/dist-cjs/commands/UpdateProjectCommand.js +2 -2
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +952 -1308
- package/dist-cjs/pagination/ListBulkImportJobsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +411 -3
- package/dist-es/IoTSiteWise.js +45 -0
- package/dist-es/commands/AssociateAssetsCommand.js +2 -2
- package/dist-es/commands/AssociateTimeSeriesToAssetPropertyCommand.js +2 -2
- package/dist-es/commands/BatchAssociateProjectAssetsCommand.js +3 -3
- package/dist-es/commands/BatchDisassociateProjectAssetsCommand.js +3 -3
- package/dist-es/commands/BatchGetAssetPropertyAggregatesCommand.js +3 -3
- package/dist-es/commands/BatchGetAssetPropertyValueCommand.js +3 -3
- package/dist-es/commands/BatchGetAssetPropertyValueHistoryCommand.js +3 -3
- package/dist-es/commands/BatchPutAssetPropertyValueCommand.js +3 -3
- package/dist-es/commands/CreateAccessPolicyCommand.js +3 -3
- package/dist-es/commands/CreateAssetCommand.js +3 -3
- package/dist-es/commands/CreateAssetModelCommand.js +3 -3
- package/dist-es/commands/CreateBulkImportJobCommand.js +39 -0
- package/dist-es/commands/CreateDashboardCommand.js +3 -3
- package/dist-es/commands/CreateGatewayCommand.js +3 -3
- package/dist-es/commands/CreatePortalCommand.js +3 -3
- package/dist-es/commands/CreateProjectCommand.js +3 -3
- package/dist-es/commands/DeleteAccessPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteAssetCommand.js +3 -3
- package/dist-es/commands/DeleteAssetModelCommand.js +3 -3
- package/dist-es/commands/DeleteDashboardCommand.js +3 -3
- package/dist-es/commands/DeleteGatewayCommand.js +2 -2
- package/dist-es/commands/DeletePortalCommand.js +3 -3
- package/dist-es/commands/DeleteProjectCommand.js +3 -3
- package/dist-es/commands/DeleteTimeSeriesCommand.js +2 -2
- package/dist-es/commands/DescribeAccessPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeAssetCommand.js +3 -3
- package/dist-es/commands/DescribeAssetModelCommand.js +3 -3
- package/dist-es/commands/DescribeAssetPropertyCommand.js +3 -3
- package/dist-es/commands/DescribeBulkImportJobCommand.js +39 -0
- package/dist-es/commands/DescribeDashboardCommand.js +3 -3
- package/dist-es/commands/DescribeDefaultEncryptionConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeGatewayCapabilityConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeGatewayCommand.js +3 -3
- package/dist-es/commands/DescribeLoggingOptionsCommand.js +3 -3
- package/dist-es/commands/DescribePortalCommand.js +3 -3
- package/dist-es/commands/DescribeProjectCommand.js +3 -3
- package/dist-es/commands/DescribeStorageConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeTimeSeriesCommand.js +3 -3
- package/dist-es/commands/DisassociateAssetsCommand.js +2 -2
- package/dist-es/commands/DisassociateTimeSeriesFromAssetPropertyCommand.js +2 -2
- package/dist-es/commands/GetAssetPropertyAggregatesCommand.js +3 -3
- package/dist-es/commands/GetAssetPropertyValueCommand.js +3 -3
- package/dist-es/commands/GetAssetPropertyValueHistoryCommand.js +3 -3
- package/dist-es/commands/GetInterpolatedAssetPropertyValuesCommand.js +3 -3
- package/dist-es/commands/ListAccessPoliciesCommand.js +3 -3
- package/dist-es/commands/ListAssetModelsCommand.js +3 -3
- package/dist-es/commands/ListAssetRelationshipsCommand.js +3 -3
- package/dist-es/commands/ListAssetsCommand.js +3 -3
- package/dist-es/commands/ListAssociatedAssetsCommand.js +3 -3
- package/dist-es/commands/ListBulkImportJobsCommand.js +39 -0
- package/dist-es/commands/ListDashboardsCommand.js +3 -3
- package/dist-es/commands/ListGatewaysCommand.js +3 -3
- package/dist-es/commands/ListPortalsCommand.js +3 -3
- package/dist-es/commands/ListProjectAssetsCommand.js +3 -3
- package/dist-es/commands/ListProjectsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTimeSeriesCommand.js +3 -3
- package/dist-es/commands/PutDefaultEncryptionConfigurationCommand.js +3 -3
- package/dist-es/commands/PutLoggingOptionsCommand.js +3 -3
- package/dist-es/commands/PutStorageConfigurationCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAccessPolicyCommand.js +3 -3
- package/dist-es/commands/UpdateAssetCommand.js +3 -3
- package/dist-es/commands/UpdateAssetModelCommand.js +3 -3
- package/dist-es/commands/UpdateAssetPropertyCommand.js +2 -2
- package/dist-es/commands/UpdateDashboardCommand.js +3 -3
- package/dist-es/commands/UpdateGatewayCapabilityConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateGatewayCommand.js +2 -2
- package/dist-es/commands/UpdatePortalCommand.js +3 -3
- package/dist-es/commands/UpdateProjectCommand.js +3 -3
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +259 -868
- package/dist-es/pagination/ListBulkImportJobsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +475 -0
- package/dist-types/IoTSiteWise.d.ts +44 -0
- package/dist-types/IoTSiteWiseClient.d.ts +5 -2
- package/dist-types/commands/CreateBulkImportJobCommand.d.ts +46 -0
- package/dist-types/commands/DescribeBulkImportJobCommand.d.ts +41 -0
- package/dist-types/commands/ListBulkImportJobsCommand.d.ts +41 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +1201 -1293
- package/dist-types/pagination/ListBulkImportJobsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/IoTSiteWise.d.ts +15 -0
- package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/CreateBulkImportJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeBulkImportJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBulkImportJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +578 -863
- package/dist-types/ts3.4/pagination/ListBulkImportJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +7 -7
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListBulkImportJobs = void 0;
|
|
4
|
+
const ListBulkImportJobsCommand_1 = require("../commands/ListBulkImportJobsCommand");
|
|
5
|
+
const IoTSiteWise_1 = require("../IoTSiteWise");
|
|
6
|
+
const IoTSiteWiseClient_1 = require("../IoTSiteWiseClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListBulkImportJobsCommand_1.ListBulkImportJobsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listBulkImportJobs(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListBulkImportJobs(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof IoTSiteWise_1.IoTSiteWise) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof IoTSiteWiseClient_1.IoTSiteWiseClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListBulkImportJobs = paginateListBulkImportJobs;
|
|
@@ -13,6 +13,7 @@ tslib_1.__exportStar(require("./ListAssetModelsPaginator"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./ListAssetRelationshipsPaginator"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./ListAssetsPaginator"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./ListAssociatedAssetsPaginator"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./ListBulkImportJobsPaginator"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./ListDashboardsPaginator"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./ListGatewaysPaginator"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./ListPortalsPaginator"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdatePortalCommand = exports.deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1UpdateGatewayCommand = exports.deserializeAws_restJson1UpdateDashboardCommand = exports.deserializeAws_restJson1UpdateAssetPropertyCommand = exports.deserializeAws_restJson1UpdateAssetModelCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UpdateAccessPolicyCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutStorageConfigurationCommand = exports.deserializeAws_restJson1PutLoggingOptionsCommand = exports.deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1ListTimeSeriesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListProjectAssetsCommand = exports.deserializeAws_restJson1ListPortalsCommand = exports.deserializeAws_restJson1ListGatewaysCommand = exports.deserializeAws_restJson1ListDashboardsCommand = exports.deserializeAws_restJson1ListAssociatedAssetsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1ListAssetRelationshipsCommand = exports.deserializeAws_restJson1ListAssetModelsCommand = exports.deserializeAws_restJson1ListAccessPoliciesCommand = exports.deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetAssetPropertyValueCommand = exports.deserializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.deserializeAws_restJson1DisassociateAssetsCommand = exports.deserializeAws_restJson1DescribeTimeSeriesCommand = exports.deserializeAws_restJson1DescribeStorageConfigurationCommand = exports.deserializeAws_restJson1DescribeProjectCommand = exports.deserializeAws_restJson1DescribePortalCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1ListBulkImportJobsCommand = exports.serializeAws_restJson1ListAssociatedAssetsCommand = exports.serializeAws_restJson1ListAssetsCommand = exports.serializeAws_restJson1ListAssetRelationshipsCommand = exports.serializeAws_restJson1ListAssetModelsCommand = exports.serializeAws_restJson1ListAccessPoliciesCommand = exports.serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.serializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1GetAssetPropertyValueCommand = exports.serializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.serializeAws_restJson1DisassociateAssetsCommand = exports.serializeAws_restJson1DescribeTimeSeriesCommand = exports.serializeAws_restJson1DescribeStorageConfigurationCommand = exports.serializeAws_restJson1DescribeProjectCommand = exports.serializeAws_restJson1DescribePortalCommand = exports.serializeAws_restJson1DescribeLoggingOptionsCommand = exports.serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1DescribeGatewayCommand = exports.serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1DescribeDashboardCommand = exports.serializeAws_restJson1DescribeBulkImportJobCommand = exports.serializeAws_restJson1DescribeAssetPropertyCommand = exports.serializeAws_restJson1DescribeAssetModelCommand = exports.serializeAws_restJson1DescribeAssetCommand = exports.serializeAws_restJson1DescribeAccessPolicyCommand = exports.serializeAws_restJson1DeleteTimeSeriesCommand = exports.serializeAws_restJson1DeleteProjectCommand = exports.serializeAws_restJson1DeletePortalCommand = exports.serializeAws_restJson1DeleteGatewayCommand = exports.serializeAws_restJson1DeleteDashboardCommand = exports.serializeAws_restJson1DeleteAssetModelCommand = exports.serializeAws_restJson1DeleteAssetCommand = exports.serializeAws_restJson1DeleteAccessPolicyCommand = exports.serializeAws_restJson1CreateProjectCommand = exports.serializeAws_restJson1CreatePortalCommand = exports.serializeAws_restJson1CreateGatewayCommand = exports.serializeAws_restJson1CreateDashboardCommand = exports.serializeAws_restJson1CreateBulkImportJobCommand = exports.serializeAws_restJson1CreateAssetModelCommand = exports.serializeAws_restJson1CreateAssetCommand = exports.serializeAws_restJson1CreateAccessPolicyCommand = exports.serializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.serializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.serializeAws_restJson1AssociateAssetsCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1DescribeBulkImportJobCommand = exports.deserializeAws_restJson1DescribeAssetPropertyCommand = exports.deserializeAws_restJson1DescribeAssetModelCommand = exports.deserializeAws_restJson1DescribeAssetCommand = exports.deserializeAws_restJson1DescribeAccessPolicyCommand = exports.deserializeAws_restJson1DeleteTimeSeriesCommand = exports.deserializeAws_restJson1DeleteProjectCommand = exports.deserializeAws_restJson1DeletePortalCommand = exports.deserializeAws_restJson1DeleteGatewayCommand = exports.deserializeAws_restJson1DeleteDashboardCommand = exports.deserializeAws_restJson1DeleteAssetModelCommand = exports.deserializeAws_restJson1DeleteAssetCommand = exports.deserializeAws_restJson1DeleteAccessPolicyCommand = exports.deserializeAws_restJson1CreateProjectCommand = exports.deserializeAws_restJson1CreatePortalCommand = exports.deserializeAws_restJson1CreateGatewayCommand = exports.deserializeAws_restJson1CreateDashboardCommand = exports.deserializeAws_restJson1CreateBulkImportJobCommand = exports.deserializeAws_restJson1CreateAssetModelCommand = exports.deserializeAws_restJson1CreateAssetCommand = exports.deserializeAws_restJson1CreateAccessPolicyCommand = exports.deserializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.deserializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.deserializeAws_restJson1AssociateAssetsCommand = exports.serializeAws_restJson1UpdateProjectCommand = exports.serializeAws_restJson1UpdatePortalCommand = exports.serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1UpdateGatewayCommand = exports.serializeAws_restJson1UpdateDashboardCommand = exports.serializeAws_restJson1UpdateAssetPropertyCommand = exports.serializeAws_restJson1UpdateAssetModelCommand = exports.serializeAws_restJson1UpdateAssetCommand = exports.serializeAws_restJson1UpdateAccessPolicyCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutStorageConfigurationCommand = exports.serializeAws_restJson1PutLoggingOptionsCommand = exports.serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1ListTimeSeriesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProjectsCommand = exports.serializeAws_restJson1ListProjectAssetsCommand = exports.serializeAws_restJson1ListPortalsCommand = exports.serializeAws_restJson1ListGatewaysCommand = exports.serializeAws_restJson1ListDashboardsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdatePortalCommand = exports.deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1UpdateGatewayCommand = exports.deserializeAws_restJson1UpdateDashboardCommand = exports.deserializeAws_restJson1UpdateAssetPropertyCommand = exports.deserializeAws_restJson1UpdateAssetModelCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UpdateAccessPolicyCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutStorageConfigurationCommand = exports.deserializeAws_restJson1PutLoggingOptionsCommand = exports.deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1ListTimeSeriesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListProjectAssetsCommand = exports.deserializeAws_restJson1ListPortalsCommand = exports.deserializeAws_restJson1ListGatewaysCommand = exports.deserializeAws_restJson1ListDashboardsCommand = exports.deserializeAws_restJson1ListBulkImportJobsCommand = exports.deserializeAws_restJson1ListAssociatedAssetsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1ListAssetRelationshipsCommand = exports.deserializeAws_restJson1ListAssetModelsCommand = exports.deserializeAws_restJson1ListAccessPoliciesCommand = exports.deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetAssetPropertyValueCommand = exports.deserializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.deserializeAws_restJson1DisassociateAssetsCommand = exports.deserializeAws_restJson1DescribeTimeSeriesCommand = exports.deserializeAws_restJson1DescribeStorageConfigurationCommand = exports.deserializeAws_restJson1DescribeProjectCommand = exports.deserializeAws_restJson1DescribePortalCommand = exports.deserializeAws_restJson1DescribeLoggingOptionsCommand = exports.deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1DescribeGatewayCommand = exports.deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1DescribeDashboardCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
@@ -400,6 +400,42 @@ const serializeAws_restJson1CreateAssetModelCommand = async (input, context) =>
|
|
|
400
400
|
});
|
|
401
401
|
};
|
|
402
402
|
exports.serializeAws_restJson1CreateAssetModelCommand = serializeAws_restJson1CreateAssetModelCommand;
|
|
403
|
+
const serializeAws_restJson1CreateBulkImportJobCommand = async (input, context) => {
|
|
404
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
405
|
+
const headers = {
|
|
406
|
+
"content-type": "application/json",
|
|
407
|
+
};
|
|
408
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
|
|
409
|
+
let body;
|
|
410
|
+
body = JSON.stringify({
|
|
411
|
+
...(input.errorReportLocation != null && {
|
|
412
|
+
errorReportLocation: serializeAws_restJson1ErrorReportLocation(input.errorReportLocation, context),
|
|
413
|
+
}),
|
|
414
|
+
...(input.files != null && { files: serializeAws_restJson1Files(input.files, context) }),
|
|
415
|
+
...(input.jobConfiguration != null && {
|
|
416
|
+
jobConfiguration: serializeAws_restJson1JobConfiguration(input.jobConfiguration, context),
|
|
417
|
+
}),
|
|
418
|
+
...(input.jobName != null && { jobName: input.jobName }),
|
|
419
|
+
...(input.jobRoleArn != null && { jobRoleArn: input.jobRoleArn }),
|
|
420
|
+
});
|
|
421
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
422
|
+
if (context.disableHostPrefix !== true) {
|
|
423
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
424
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
425
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return new protocol_http_1.HttpRequest({
|
|
429
|
+
protocol,
|
|
430
|
+
hostname: resolvedHostname,
|
|
431
|
+
port,
|
|
432
|
+
method: "POST",
|
|
433
|
+
headers,
|
|
434
|
+
path: resolvedPath,
|
|
435
|
+
body,
|
|
436
|
+
});
|
|
437
|
+
};
|
|
438
|
+
exports.serializeAws_restJson1CreateBulkImportJobCommand = serializeAws_restJson1CreateBulkImportJobCommand;
|
|
403
439
|
const serializeAws_restJson1CreateDashboardCommand = async (input, context) => {
|
|
404
440
|
var _a;
|
|
405
441
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -971,6 +1007,39 @@ const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context
|
|
|
971
1007
|
});
|
|
972
1008
|
};
|
|
973
1009
|
exports.serializeAws_restJson1DescribeAssetPropertyCommand = serializeAws_restJson1DescribeAssetPropertyCommand;
|
|
1010
|
+
const serializeAws_restJson1DescribeBulkImportJobCommand = async (input, context) => {
|
|
1011
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1012
|
+
const headers = {};
|
|
1013
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
|
|
1014
|
+
if (input.jobId !== undefined) {
|
|
1015
|
+
const labelValue = input.jobId;
|
|
1016
|
+
if (labelValue.length <= 0) {
|
|
1017
|
+
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
1018
|
+
}
|
|
1019
|
+
resolvedPath = resolvedPath.replace("{jobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1020
|
+
}
|
|
1021
|
+
else {
|
|
1022
|
+
throw new Error("No value provided for input HTTP label: jobId.");
|
|
1023
|
+
}
|
|
1024
|
+
let body;
|
|
1025
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1026
|
+
if (context.disableHostPrefix !== true) {
|
|
1027
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
1028
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1029
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
return new protocol_http_1.HttpRequest({
|
|
1033
|
+
protocol,
|
|
1034
|
+
hostname: resolvedHostname,
|
|
1035
|
+
port,
|
|
1036
|
+
method: "GET",
|
|
1037
|
+
headers,
|
|
1038
|
+
path: resolvedPath,
|
|
1039
|
+
body,
|
|
1040
|
+
});
|
|
1041
|
+
};
|
|
1042
|
+
exports.serializeAws_restJson1DescribeBulkImportJobCommand = serializeAws_restJson1DescribeBulkImportJobCommand;
|
|
974
1043
|
const serializeAws_restJson1DescribeDashboardCommand = async (input, context) => {
|
|
975
1044
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
976
1045
|
const headers = {};
|
|
@@ -1646,6 +1715,35 @@ const serializeAws_restJson1ListAssociatedAssetsCommand = async (input, context)
|
|
|
1646
1715
|
});
|
|
1647
1716
|
};
|
|
1648
1717
|
exports.serializeAws_restJson1ListAssociatedAssetsCommand = serializeAws_restJson1ListAssociatedAssetsCommand;
|
|
1718
|
+
const serializeAws_restJson1ListBulkImportJobsCommand = async (input, context) => {
|
|
1719
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1720
|
+
const headers = {};
|
|
1721
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
|
|
1722
|
+
const query = {
|
|
1723
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
1724
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
1725
|
+
...(input.filter !== undefined && { filter: input.filter }),
|
|
1726
|
+
};
|
|
1727
|
+
let body;
|
|
1728
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1729
|
+
if (context.disableHostPrefix !== true) {
|
|
1730
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
1731
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1732
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
return new protocol_http_1.HttpRequest({
|
|
1736
|
+
protocol,
|
|
1737
|
+
hostname: resolvedHostname,
|
|
1738
|
+
port,
|
|
1739
|
+
method: "GET",
|
|
1740
|
+
headers,
|
|
1741
|
+
path: resolvedPath,
|
|
1742
|
+
query,
|
|
1743
|
+
body,
|
|
1744
|
+
});
|
|
1745
|
+
};
|
|
1746
|
+
exports.serializeAws_restJson1ListBulkImportJobsCommand = serializeAws_restJson1ListBulkImportJobsCommand;
|
|
1649
1747
|
const serializeAws_restJson1ListDashboardsCommand = async (input, context) => {
|
|
1650
1748
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1651
1749
|
const headers = {};
|
|
@@ -3013,6 +3111,70 @@ const deserializeAws_restJson1CreateAssetModelCommandError = async (output, cont
|
|
|
3013
3111
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3014
3112
|
}
|
|
3015
3113
|
};
|
|
3114
|
+
const deserializeAws_restJson1CreateBulkImportJobCommand = async (output, context) => {
|
|
3115
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3116
|
+
return deserializeAws_restJson1CreateBulkImportJobCommandError(output, context);
|
|
3117
|
+
}
|
|
3118
|
+
const contents = {
|
|
3119
|
+
$metadata: deserializeMetadata(output),
|
|
3120
|
+
jobId: undefined,
|
|
3121
|
+
jobName: undefined,
|
|
3122
|
+
jobStatus: undefined,
|
|
3123
|
+
};
|
|
3124
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3125
|
+
if (data.jobId !== undefined && data.jobId !== null) {
|
|
3126
|
+
contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
|
|
3127
|
+
}
|
|
3128
|
+
if (data.jobName !== undefined && data.jobName !== null) {
|
|
3129
|
+
contents.jobName = (0, smithy_client_1.expectString)(data.jobName);
|
|
3130
|
+
}
|
|
3131
|
+
if (data.jobStatus !== undefined && data.jobStatus !== null) {
|
|
3132
|
+
contents.jobStatus = (0, smithy_client_1.expectString)(data.jobStatus);
|
|
3133
|
+
}
|
|
3134
|
+
return Promise.resolve(contents);
|
|
3135
|
+
};
|
|
3136
|
+
exports.deserializeAws_restJson1CreateBulkImportJobCommand = deserializeAws_restJson1CreateBulkImportJobCommand;
|
|
3137
|
+
const deserializeAws_restJson1CreateBulkImportJobCommandError = async (output, context) => {
|
|
3138
|
+
const parsedOutput = {
|
|
3139
|
+
...output,
|
|
3140
|
+
body: await parseBody(output.body, context),
|
|
3141
|
+
};
|
|
3142
|
+
let response;
|
|
3143
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3144
|
+
switch (errorCode) {
|
|
3145
|
+
case "ConflictingOperationException":
|
|
3146
|
+
case "com.amazonaws.iotsitewise#ConflictingOperationException":
|
|
3147
|
+
throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
|
|
3148
|
+
case "InternalFailureException":
|
|
3149
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
3150
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
3151
|
+
case "InvalidRequestException":
|
|
3152
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
3153
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3154
|
+
case "LimitExceededException":
|
|
3155
|
+
case "com.amazonaws.iotsitewise#LimitExceededException":
|
|
3156
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3157
|
+
case "ResourceAlreadyExistsException":
|
|
3158
|
+
case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
|
|
3159
|
+
throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3160
|
+
case "ResourceNotFoundException":
|
|
3161
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
3162
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3163
|
+
case "ThrottlingException":
|
|
3164
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
3165
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3166
|
+
default:
|
|
3167
|
+
const parsedBody = parsedOutput.body;
|
|
3168
|
+
const $metadata = deserializeMetadata(output);
|
|
3169
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3170
|
+
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
3171
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3172
|
+
$fault: "client",
|
|
3173
|
+
$metadata,
|
|
3174
|
+
});
|
|
3175
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3176
|
+
}
|
|
3177
|
+
};
|
|
3016
3178
|
const deserializeAws_restJson1CreateDashboardCommand = async (output, context) => {
|
|
3017
3179
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
3018
3180
|
return deserializeAws_restJson1CreateDashboardCommandError(output, context);
|
|
@@ -3913,6 +4075,85 @@ const deserializeAws_restJson1DescribeAssetPropertyCommandError = async (output,
|
|
|
3913
4075
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3914
4076
|
}
|
|
3915
4077
|
};
|
|
4078
|
+
const deserializeAws_restJson1DescribeBulkImportJobCommand = async (output, context) => {
|
|
4079
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4080
|
+
return deserializeAws_restJson1DescribeBulkImportJobCommandError(output, context);
|
|
4081
|
+
}
|
|
4082
|
+
const contents = {
|
|
4083
|
+
$metadata: deserializeMetadata(output),
|
|
4084
|
+
errorReportLocation: undefined,
|
|
4085
|
+
files: undefined,
|
|
4086
|
+
jobConfiguration: undefined,
|
|
4087
|
+
jobCreationDate: undefined,
|
|
4088
|
+
jobId: undefined,
|
|
4089
|
+
jobLastUpdateDate: undefined,
|
|
4090
|
+
jobName: undefined,
|
|
4091
|
+
jobRoleArn: undefined,
|
|
4092
|
+
jobStatus: undefined,
|
|
4093
|
+
};
|
|
4094
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4095
|
+
if (data.errorReportLocation !== undefined && data.errorReportLocation !== null) {
|
|
4096
|
+
contents.errorReportLocation = deserializeAws_restJson1ErrorReportLocation(data.errorReportLocation, context);
|
|
4097
|
+
}
|
|
4098
|
+
if (data.files !== undefined && data.files !== null) {
|
|
4099
|
+
contents.files = deserializeAws_restJson1Files(data.files, context);
|
|
4100
|
+
}
|
|
4101
|
+
if (data.jobConfiguration !== undefined && data.jobConfiguration !== null) {
|
|
4102
|
+
contents.jobConfiguration = deserializeAws_restJson1JobConfiguration(data.jobConfiguration, context);
|
|
4103
|
+
}
|
|
4104
|
+
if (data.jobCreationDate !== undefined && data.jobCreationDate !== null) {
|
|
4105
|
+
contents.jobCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.jobCreationDate)));
|
|
4106
|
+
}
|
|
4107
|
+
if (data.jobId !== undefined && data.jobId !== null) {
|
|
4108
|
+
contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
|
|
4109
|
+
}
|
|
4110
|
+
if (data.jobLastUpdateDate !== undefined && data.jobLastUpdateDate !== null) {
|
|
4111
|
+
contents.jobLastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.jobLastUpdateDate)));
|
|
4112
|
+
}
|
|
4113
|
+
if (data.jobName !== undefined && data.jobName !== null) {
|
|
4114
|
+
contents.jobName = (0, smithy_client_1.expectString)(data.jobName);
|
|
4115
|
+
}
|
|
4116
|
+
if (data.jobRoleArn !== undefined && data.jobRoleArn !== null) {
|
|
4117
|
+
contents.jobRoleArn = (0, smithy_client_1.expectString)(data.jobRoleArn);
|
|
4118
|
+
}
|
|
4119
|
+
if (data.jobStatus !== undefined && data.jobStatus !== null) {
|
|
4120
|
+
contents.jobStatus = (0, smithy_client_1.expectString)(data.jobStatus);
|
|
4121
|
+
}
|
|
4122
|
+
return Promise.resolve(contents);
|
|
4123
|
+
};
|
|
4124
|
+
exports.deserializeAws_restJson1DescribeBulkImportJobCommand = deserializeAws_restJson1DescribeBulkImportJobCommand;
|
|
4125
|
+
const deserializeAws_restJson1DescribeBulkImportJobCommandError = async (output, context) => {
|
|
4126
|
+
const parsedOutput = {
|
|
4127
|
+
...output,
|
|
4128
|
+
body: await parseBody(output.body, context),
|
|
4129
|
+
};
|
|
4130
|
+
let response;
|
|
4131
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4132
|
+
switch (errorCode) {
|
|
4133
|
+
case "InternalFailureException":
|
|
4134
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
4135
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
4136
|
+
case "InvalidRequestException":
|
|
4137
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4138
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
4139
|
+
case "ResourceNotFoundException":
|
|
4140
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
4141
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4142
|
+
case "ThrottlingException":
|
|
4143
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
4144
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4145
|
+
default:
|
|
4146
|
+
const parsedBody = parsedOutput.body;
|
|
4147
|
+
const $metadata = deserializeMetadata(output);
|
|
4148
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4149
|
+
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
4150
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4151
|
+
$fault: "client",
|
|
4152
|
+
$metadata,
|
|
4153
|
+
});
|
|
4154
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4155
|
+
}
|
|
4156
|
+
};
|
|
3916
4157
|
const deserializeAws_restJson1DescribeDashboardCommand = async (output, context) => {
|
|
3917
4158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3918
4159
|
return deserializeAws_restJson1DescribeDashboardCommandError(output, context);
|
|
@@ -5092,6 +5333,57 @@ const deserializeAws_restJson1ListAssociatedAssetsCommandError = async (output,
|
|
|
5092
5333
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5093
5334
|
}
|
|
5094
5335
|
};
|
|
5336
|
+
const deserializeAws_restJson1ListBulkImportJobsCommand = async (output, context) => {
|
|
5337
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5338
|
+
return deserializeAws_restJson1ListBulkImportJobsCommandError(output, context);
|
|
5339
|
+
}
|
|
5340
|
+
const contents = {
|
|
5341
|
+
$metadata: deserializeMetadata(output),
|
|
5342
|
+
jobSummaries: undefined,
|
|
5343
|
+
nextToken: undefined,
|
|
5344
|
+
};
|
|
5345
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5346
|
+
if (data.jobSummaries !== undefined && data.jobSummaries !== null) {
|
|
5347
|
+
contents.jobSummaries = deserializeAws_restJson1JobSummaries(data.jobSummaries, context);
|
|
5348
|
+
}
|
|
5349
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5350
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
5351
|
+
}
|
|
5352
|
+
return Promise.resolve(contents);
|
|
5353
|
+
};
|
|
5354
|
+
exports.deserializeAws_restJson1ListBulkImportJobsCommand = deserializeAws_restJson1ListBulkImportJobsCommand;
|
|
5355
|
+
const deserializeAws_restJson1ListBulkImportJobsCommandError = async (output, context) => {
|
|
5356
|
+
const parsedOutput = {
|
|
5357
|
+
...output,
|
|
5358
|
+
body: await parseBody(output.body, context),
|
|
5359
|
+
};
|
|
5360
|
+
let response;
|
|
5361
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5362
|
+
switch (errorCode) {
|
|
5363
|
+
case "InternalFailureException":
|
|
5364
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
5365
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
5366
|
+
case "InvalidRequestException":
|
|
5367
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
5368
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
5369
|
+
case "ResourceNotFoundException":
|
|
5370
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
5371
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5372
|
+
case "ThrottlingException":
|
|
5373
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
5374
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5375
|
+
default:
|
|
5376
|
+
const parsedBody = parsedOutput.body;
|
|
5377
|
+
const $metadata = deserializeMetadata(output);
|
|
5378
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5379
|
+
response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
|
|
5380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5381
|
+
$fault: "client",
|
|
5382
|
+
$metadata,
|
|
5383
|
+
});
|
|
5384
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5385
|
+
}
|
|
5386
|
+
};
|
|
5095
5387
|
const deserializeAws_restJson1ListDashboardsCommand = async (output, context) => {
|
|
5096
5388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5097
5389
|
return deserializeAws_restJson1ListDashboardsCommandError(output, context);
|
|
@@ -6510,12 +6802,33 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = (input, con
|
|
|
6510
6802
|
...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
|
|
6511
6803
|
};
|
|
6512
6804
|
};
|
|
6805
|
+
const serializeAws_restJson1ColumnNames = (input, context) => {
|
|
6806
|
+
return input
|
|
6807
|
+
.filter((e) => e != null)
|
|
6808
|
+
.map((entry) => {
|
|
6809
|
+
if (entry === null) {
|
|
6810
|
+
return null;
|
|
6811
|
+
}
|
|
6812
|
+
return entry;
|
|
6813
|
+
});
|
|
6814
|
+
};
|
|
6815
|
+
const serializeAws_restJson1Csv = (input, context) => {
|
|
6816
|
+
return {
|
|
6817
|
+
...(input.columnNames != null && { columnNames: serializeAws_restJson1ColumnNames(input.columnNames, context) }),
|
|
6818
|
+
};
|
|
6819
|
+
};
|
|
6513
6820
|
const serializeAws_restJson1CustomerManagedS3Storage = (input, context) => {
|
|
6514
6821
|
return {
|
|
6515
6822
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
6516
6823
|
...(input.s3ResourceArn != null && { s3ResourceArn: input.s3ResourceArn }),
|
|
6517
6824
|
};
|
|
6518
6825
|
};
|
|
6826
|
+
const serializeAws_restJson1ErrorReportLocation = (input, context) => {
|
|
6827
|
+
return {
|
|
6828
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
6829
|
+
...(input.prefix != null && { prefix: input.prefix }),
|
|
6830
|
+
};
|
|
6831
|
+
};
|
|
6519
6832
|
const serializeAws_restJson1ExpressionVariable = (input, context) => {
|
|
6520
6833
|
return {
|
|
6521
6834
|
...(input.name != null && { name: input.name }),
|
|
@@ -6532,6 +6845,28 @@ const serializeAws_restJson1ExpressionVariables = (input, context) => {
|
|
|
6532
6845
|
return serializeAws_restJson1ExpressionVariable(entry, context);
|
|
6533
6846
|
});
|
|
6534
6847
|
};
|
|
6848
|
+
const serializeAws_restJson1File = (input, context) => {
|
|
6849
|
+
return {
|
|
6850
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
6851
|
+
...(input.key != null && { key: input.key }),
|
|
6852
|
+
...(input.versionId != null && { versionId: input.versionId }),
|
|
6853
|
+
};
|
|
6854
|
+
};
|
|
6855
|
+
const serializeAws_restJson1FileFormat = (input, context) => {
|
|
6856
|
+
return {
|
|
6857
|
+
...(input.csv != null && { csv: serializeAws_restJson1Csv(input.csv, context) }),
|
|
6858
|
+
};
|
|
6859
|
+
};
|
|
6860
|
+
const serializeAws_restJson1Files = (input, context) => {
|
|
6861
|
+
return input
|
|
6862
|
+
.filter((e) => e != null)
|
|
6863
|
+
.map((entry) => {
|
|
6864
|
+
if (entry === null) {
|
|
6865
|
+
return null;
|
|
6866
|
+
}
|
|
6867
|
+
return serializeAws_restJson1File(entry, context);
|
|
6868
|
+
});
|
|
6869
|
+
};
|
|
6535
6870
|
const serializeAws_restJson1ForwardingConfig = (input, context) => {
|
|
6536
6871
|
return {
|
|
6537
6872
|
...(input.state != null && { state: input.state }),
|
|
@@ -6600,6 +6935,11 @@ const serializeAws_restJson1ImageFile = (input, context) => {
|
|
|
6600
6935
|
...(input.type != null && { type: input.type }),
|
|
6601
6936
|
};
|
|
6602
6937
|
};
|
|
6938
|
+
const serializeAws_restJson1JobConfiguration = (input, context) => {
|
|
6939
|
+
return {
|
|
6940
|
+
...(input.fileFormat != null && { fileFormat: serializeAws_restJson1FileFormat(input.fileFormat, context) }),
|
|
6941
|
+
};
|
|
6942
|
+
};
|
|
6603
6943
|
const serializeAws_restJson1LoggingOptions = (input, context) => {
|
|
6604
6944
|
return {
|
|
6605
6945
|
...(input.level != null && { level: input.level }),
|
|
@@ -7355,6 +7695,17 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrors = (output, context) =>
|
|
|
7355
7695
|
});
|
|
7356
7696
|
return retVal;
|
|
7357
7697
|
};
|
|
7698
|
+
const deserializeAws_restJson1ColumnNames = (output, context) => {
|
|
7699
|
+
const retVal = (output || [])
|
|
7700
|
+
.filter((e) => e != null)
|
|
7701
|
+
.map((entry) => {
|
|
7702
|
+
if (entry === null) {
|
|
7703
|
+
return null;
|
|
7704
|
+
}
|
|
7705
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
7706
|
+
});
|
|
7707
|
+
return retVal;
|
|
7708
|
+
};
|
|
7358
7709
|
const deserializeAws_restJson1CompositeModelProperty = (output, context) => {
|
|
7359
7710
|
return {
|
|
7360
7711
|
assetProperty: output.assetProperty != null ? deserializeAws_restJson1Property(output.assetProperty, context) : undefined,
|
|
@@ -7374,6 +7725,11 @@ const deserializeAws_restJson1ConfigurationStatus = (output, context) => {
|
|
|
7374
7725
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
7375
7726
|
};
|
|
7376
7727
|
};
|
|
7728
|
+
const deserializeAws_restJson1Csv = (output, context) => {
|
|
7729
|
+
return {
|
|
7730
|
+
columnNames: output.columnNames != null ? deserializeAws_restJson1ColumnNames(output.columnNames, context) : undefined,
|
|
7731
|
+
};
|
|
7732
|
+
};
|
|
7377
7733
|
const deserializeAws_restJson1CustomerManagedS3Storage = (output, context) => {
|
|
7378
7734
|
return {
|
|
7379
7735
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
@@ -7428,6 +7784,12 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
|
7428
7784
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
7429
7785
|
};
|
|
7430
7786
|
};
|
|
7787
|
+
const deserializeAws_restJson1ErrorReportLocation = (output, context) => {
|
|
7788
|
+
return {
|
|
7789
|
+
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
7790
|
+
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
7791
|
+
};
|
|
7792
|
+
};
|
|
7431
7793
|
const deserializeAws_restJson1ExpressionVariable = (output, context) => {
|
|
7432
7794
|
return {
|
|
7433
7795
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -7445,6 +7807,29 @@ const deserializeAws_restJson1ExpressionVariables = (output, context) => {
|
|
|
7445
7807
|
});
|
|
7446
7808
|
return retVal;
|
|
7447
7809
|
};
|
|
7810
|
+
const deserializeAws_restJson1File = (output, context) => {
|
|
7811
|
+
return {
|
|
7812
|
+
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
7813
|
+
key: (0, smithy_client_1.expectString)(output.key),
|
|
7814
|
+
versionId: (0, smithy_client_1.expectString)(output.versionId),
|
|
7815
|
+
};
|
|
7816
|
+
};
|
|
7817
|
+
const deserializeAws_restJson1FileFormat = (output, context) => {
|
|
7818
|
+
return {
|
|
7819
|
+
csv: output.csv != null ? deserializeAws_restJson1Csv(output.csv, context) : undefined,
|
|
7820
|
+
};
|
|
7821
|
+
};
|
|
7822
|
+
const deserializeAws_restJson1Files = (output, context) => {
|
|
7823
|
+
const retVal = (output || [])
|
|
7824
|
+
.filter((e) => e != null)
|
|
7825
|
+
.map((entry) => {
|
|
7826
|
+
if (entry === null) {
|
|
7827
|
+
return null;
|
|
7828
|
+
}
|
|
7829
|
+
return deserializeAws_restJson1File(entry, context);
|
|
7830
|
+
});
|
|
7831
|
+
return retVal;
|
|
7832
|
+
};
|
|
7448
7833
|
const deserializeAws_restJson1ForwardingConfig = (output, context) => {
|
|
7449
7834
|
return {
|
|
7450
7835
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
@@ -7558,6 +7943,29 @@ const deserializeAws_restJson1InterpolatedAssetPropertyValues = (output, context
|
|
|
7558
7943
|
});
|
|
7559
7944
|
return retVal;
|
|
7560
7945
|
};
|
|
7946
|
+
const deserializeAws_restJson1JobConfiguration = (output, context) => {
|
|
7947
|
+
return {
|
|
7948
|
+
fileFormat: output.fileFormat != null ? deserializeAws_restJson1FileFormat(output.fileFormat, context) : undefined,
|
|
7949
|
+
};
|
|
7950
|
+
};
|
|
7951
|
+
const deserializeAws_restJson1JobSummaries = (output, context) => {
|
|
7952
|
+
const retVal = (output || [])
|
|
7953
|
+
.filter((e) => e != null)
|
|
7954
|
+
.map((entry) => {
|
|
7955
|
+
if (entry === null) {
|
|
7956
|
+
return null;
|
|
7957
|
+
}
|
|
7958
|
+
return deserializeAws_restJson1JobSummary(entry, context);
|
|
7959
|
+
});
|
|
7960
|
+
return retVal;
|
|
7961
|
+
};
|
|
7962
|
+
const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
7963
|
+
return {
|
|
7964
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
7965
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
7966
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
7967
|
+
};
|
|
7968
|
+
};
|
|
7561
7969
|
const deserializeAws_restJson1LoggingOptions = (output, context) => {
|
|
7562
7970
|
return {
|
|
7563
7971
|
level: (0, smithy_client_1.expectString)(output.level),
|