@aws-sdk/client-iotsitewise 3.201.0 → 3.204.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/IoTSiteWise.js +30 -0
- package/dist-cjs/commands/ListAssetModelPropertiesCommand.js +46 -0
- package/dist-cjs/commands/ListAssetPropertiesCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +40 -6
- package/dist-cjs/pagination/ListAssetModelPropertiesPaginator.js +36 -0
- package/dist-cjs/pagination/ListAssetPropertiesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +211 -3
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/IoTSiteWise.js +30 -0
- package/dist-es/commands/ListAssetModelPropertiesCommand.js +42 -0
- package/dist-es/commands/ListAssetPropertiesCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/pagination/ListAssetModelPropertiesPaginator.js +32 -0
- package/dist-es/pagination/ListAssetPropertiesPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +204 -0
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/IoTSiteWise.d.ts +35 -21
- package/dist-types/IoTSiteWiseClient.d.ts +4 -2
- package/dist-types/commands/BatchGetAssetPropertyAggregatesCommand.d.ts +3 -3
- package/dist-types/commands/BatchGetAssetPropertyValueCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetAssetPropertyValueHistoryCommand.d.ts +2 -2
- package/dist-types/commands/CreateAccessPolicyCommand.d.ts +1 -1
- package/dist-types/commands/CreateBulkImportJobCommand.d.ts +4 -6
- package/dist-types/commands/CreatePortalCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBulkImportJobCommand.d.ts +2 -3
- package/dist-types/commands/ListAccessPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListAssetModelPropertiesCommand.d.ts +39 -0
- package/dist-types/commands/ListAssetPropertiesCommand.d.ts +39 -0
- package/dist-types/commands/ListBulkImportJobsCommand.d.ts +2 -3
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +285 -72
- package/dist-types/pagination/ListAssetModelPropertiesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListAssetPropertiesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/IoTSiteWise.d.ts +34 -0
- package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ListAssetModelPropertiesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListAssetPropertiesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -0
- package/dist-types/ts3.4/pagination/ListAssetModelPropertiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssetPropertiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +6 -5
- package/CHANGELOG.md +0 -1489
|
@@ -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_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;
|
|
3
|
+
exports.serializeAws_restJson1ListAssetsCommand = exports.serializeAws_restJson1ListAssetRelationshipsCommand = exports.serializeAws_restJson1ListAssetPropertiesCommand = exports.serializeAws_restJson1ListAssetModelsCommand = exports.serializeAws_restJson1ListAssetModelPropertiesCommand = 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_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 = exports.serializeAws_restJson1ListBulkImportJobsCommand = exports.serializeAws_restJson1ListAssociatedAssetsCommand = 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_restJson1ListAssetPropertiesCommand = exports.deserializeAws_restJson1ListAssetModelsCommand = exports.deserializeAws_restJson1ListAssetModelPropertiesCommand = 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 = exports.deserializeAws_restJson1DescribeBulkImportJobCommand = exports.deserializeAws_restJson1DescribeAssetPropertyCommand = 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");
|
|
@@ -793,6 +793,9 @@ const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
|
|
|
793
793
|
const headers = {};
|
|
794
794
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
|
|
795
795
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
796
|
+
const query = map({
|
|
797
|
+
excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties.toString()],
|
|
798
|
+
});
|
|
796
799
|
let body;
|
|
797
800
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
798
801
|
if (context.disableHostPrefix !== true) {
|
|
@@ -808,6 +811,7 @@ const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
|
|
|
808
811
|
method: "GET",
|
|
809
812
|
headers,
|
|
810
813
|
path: resolvedPath,
|
|
814
|
+
query,
|
|
811
815
|
body,
|
|
812
816
|
});
|
|
813
817
|
};
|
|
@@ -817,6 +821,9 @@ const serializeAws_restJson1DescribeAssetModelCommand = async (input, context) =
|
|
|
817
821
|
const headers = {};
|
|
818
822
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
|
|
819
823
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
824
|
+
const query = map({
|
|
825
|
+
excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties.toString()],
|
|
826
|
+
});
|
|
820
827
|
let body;
|
|
821
828
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
822
829
|
if (context.disableHostPrefix !== true) {
|
|
@@ -832,6 +839,7 @@ const serializeAws_restJson1DescribeAssetModelCommand = async (input, context) =
|
|
|
832
839
|
method: "GET",
|
|
833
840
|
headers,
|
|
834
841
|
path: resolvedPath,
|
|
842
|
+
query,
|
|
835
843
|
body,
|
|
836
844
|
});
|
|
837
845
|
};
|
|
@@ -1367,6 +1375,36 @@ const serializeAws_restJson1ListAccessPoliciesCommand = async (input, context) =
|
|
|
1367
1375
|
});
|
|
1368
1376
|
};
|
|
1369
1377
|
exports.serializeAws_restJson1ListAccessPoliciesCommand = serializeAws_restJson1ListAccessPoliciesCommand;
|
|
1378
|
+
const serializeAws_restJson1ListAssetModelPropertiesCommand = async (input, context) => {
|
|
1379
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1380
|
+
const headers = {};
|
|
1381
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}/properties";
|
|
1382
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1383
|
+
const query = map({
|
|
1384
|
+
nextToken: [, input.nextToken],
|
|
1385
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1386
|
+
filter: [, input.filter],
|
|
1387
|
+
});
|
|
1388
|
+
let body;
|
|
1389
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1390
|
+
if (context.disableHostPrefix !== true) {
|
|
1391
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1392
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1393
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
return new protocol_http_1.HttpRequest({
|
|
1397
|
+
protocol,
|
|
1398
|
+
hostname: resolvedHostname,
|
|
1399
|
+
port,
|
|
1400
|
+
method: "GET",
|
|
1401
|
+
headers,
|
|
1402
|
+
path: resolvedPath,
|
|
1403
|
+
query,
|
|
1404
|
+
body,
|
|
1405
|
+
});
|
|
1406
|
+
};
|
|
1407
|
+
exports.serializeAws_restJson1ListAssetModelPropertiesCommand = serializeAws_restJson1ListAssetModelPropertiesCommand;
|
|
1370
1408
|
const serializeAws_restJson1ListAssetModelsCommand = async (input, context) => {
|
|
1371
1409
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1372
1410
|
const headers = {};
|
|
@@ -1395,6 +1433,36 @@ const serializeAws_restJson1ListAssetModelsCommand = async (input, context) => {
|
|
|
1395
1433
|
});
|
|
1396
1434
|
};
|
|
1397
1435
|
exports.serializeAws_restJson1ListAssetModelsCommand = serializeAws_restJson1ListAssetModelsCommand;
|
|
1436
|
+
const serializeAws_restJson1ListAssetPropertiesCommand = async (input, context) => {
|
|
1437
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1438
|
+
const headers = {};
|
|
1439
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties";
|
|
1440
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
|
|
1441
|
+
const query = map({
|
|
1442
|
+
nextToken: [, input.nextToken],
|
|
1443
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1444
|
+
filter: [, input.filter],
|
|
1445
|
+
});
|
|
1446
|
+
let body;
|
|
1447
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1448
|
+
if (context.disableHostPrefix !== true) {
|
|
1449
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1450
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
1451
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
return new protocol_http_1.HttpRequest({
|
|
1455
|
+
protocol,
|
|
1456
|
+
hostname: resolvedHostname,
|
|
1457
|
+
port,
|
|
1458
|
+
method: "GET",
|
|
1459
|
+
headers,
|
|
1460
|
+
path: resolvedPath,
|
|
1461
|
+
query,
|
|
1462
|
+
body,
|
|
1463
|
+
});
|
|
1464
|
+
};
|
|
1465
|
+
exports.serializeAws_restJson1ListAssetPropertiesCommand = serializeAws_restJson1ListAssetPropertiesCommand;
|
|
1398
1466
|
const serializeAws_restJson1ListAssetRelationshipsCommand = async (input, context) => {
|
|
1399
1467
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1400
1468
|
const headers = {};
|
|
@@ -4516,6 +4584,52 @@ const deserializeAws_restJson1ListAccessPoliciesCommandError = async (output, co
|
|
|
4516
4584
|
});
|
|
4517
4585
|
}
|
|
4518
4586
|
};
|
|
4587
|
+
const deserializeAws_restJson1ListAssetModelPropertiesCommand = async (output, context) => {
|
|
4588
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4589
|
+
return deserializeAws_restJson1ListAssetModelPropertiesCommandError(output, context);
|
|
4590
|
+
}
|
|
4591
|
+
const contents = map({
|
|
4592
|
+
$metadata: deserializeMetadata(output),
|
|
4593
|
+
});
|
|
4594
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4595
|
+
if (data.assetModelPropertySummaries != null) {
|
|
4596
|
+
contents.assetModelPropertySummaries = deserializeAws_restJson1AssetModelPropertySummaries(data.assetModelPropertySummaries, context);
|
|
4597
|
+
}
|
|
4598
|
+
if (data.nextToken != null) {
|
|
4599
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4600
|
+
}
|
|
4601
|
+
return contents;
|
|
4602
|
+
};
|
|
4603
|
+
exports.deserializeAws_restJson1ListAssetModelPropertiesCommand = deserializeAws_restJson1ListAssetModelPropertiesCommand;
|
|
4604
|
+
const deserializeAws_restJson1ListAssetModelPropertiesCommandError = async (output, context) => {
|
|
4605
|
+
const parsedOutput = {
|
|
4606
|
+
...output,
|
|
4607
|
+
body: await parseErrorBody(output.body, context),
|
|
4608
|
+
};
|
|
4609
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4610
|
+
switch (errorCode) {
|
|
4611
|
+
case "InternalFailureException":
|
|
4612
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
4613
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
4614
|
+
case "InvalidRequestException":
|
|
4615
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4616
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
4617
|
+
case "ResourceNotFoundException":
|
|
4618
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
4619
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4620
|
+
case "ThrottlingException":
|
|
4621
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
4622
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4623
|
+
default:
|
|
4624
|
+
const parsedBody = parsedOutput.body;
|
|
4625
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4626
|
+
output,
|
|
4627
|
+
parsedBody,
|
|
4628
|
+
exceptionCtor: IoTSiteWiseServiceException_1.IoTSiteWiseServiceException,
|
|
4629
|
+
errorCode,
|
|
4630
|
+
});
|
|
4631
|
+
}
|
|
4632
|
+
};
|
|
4519
4633
|
const deserializeAws_restJson1ListAssetModelsCommand = async (output, context) => {
|
|
4520
4634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4521
4635
|
return deserializeAws_restJson1ListAssetModelsCommandError(output, context);
|
|
@@ -4559,6 +4673,52 @@ const deserializeAws_restJson1ListAssetModelsCommandError = async (output, conte
|
|
|
4559
4673
|
});
|
|
4560
4674
|
}
|
|
4561
4675
|
};
|
|
4676
|
+
const deserializeAws_restJson1ListAssetPropertiesCommand = async (output, context) => {
|
|
4677
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4678
|
+
return deserializeAws_restJson1ListAssetPropertiesCommandError(output, context);
|
|
4679
|
+
}
|
|
4680
|
+
const contents = map({
|
|
4681
|
+
$metadata: deserializeMetadata(output),
|
|
4682
|
+
});
|
|
4683
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4684
|
+
if (data.assetPropertySummaries != null) {
|
|
4685
|
+
contents.assetPropertySummaries = deserializeAws_restJson1AssetPropertySummaries(data.assetPropertySummaries, context);
|
|
4686
|
+
}
|
|
4687
|
+
if (data.nextToken != null) {
|
|
4688
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
4689
|
+
}
|
|
4690
|
+
return contents;
|
|
4691
|
+
};
|
|
4692
|
+
exports.deserializeAws_restJson1ListAssetPropertiesCommand = deserializeAws_restJson1ListAssetPropertiesCommand;
|
|
4693
|
+
const deserializeAws_restJson1ListAssetPropertiesCommandError = async (output, context) => {
|
|
4694
|
+
const parsedOutput = {
|
|
4695
|
+
...output,
|
|
4696
|
+
body: await parseErrorBody(output.body, context),
|
|
4697
|
+
};
|
|
4698
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4699
|
+
switch (errorCode) {
|
|
4700
|
+
case "InternalFailureException":
|
|
4701
|
+
case "com.amazonaws.iotsitewise#InternalFailureException":
|
|
4702
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
4703
|
+
case "InvalidRequestException":
|
|
4704
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException":
|
|
4705
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
4706
|
+
case "ResourceNotFoundException":
|
|
4707
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException":
|
|
4708
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4709
|
+
case "ThrottlingException":
|
|
4710
|
+
case "com.amazonaws.iotsitewise#ThrottlingException":
|
|
4711
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4712
|
+
default:
|
|
4713
|
+
const parsedBody = parsedOutput.body;
|
|
4714
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4715
|
+
output,
|
|
4716
|
+
parsedBody,
|
|
4717
|
+
exceptionCtor: IoTSiteWiseServiceException_1.IoTSiteWiseServiceException,
|
|
4718
|
+
errorCode,
|
|
4719
|
+
});
|
|
4720
|
+
}
|
|
4721
|
+
};
|
|
4562
4722
|
const deserializeAws_restJson1ListAssetRelationshipsCommand = async (output, context) => {
|
|
4563
4723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4564
4724
|
return deserializeAws_restJson1ListAssetRelationshipsCommandError(output, context);
|
|
@@ -5873,6 +6033,7 @@ const serializeAws_restJson1Alarms = (input, context) => {
|
|
|
5873
6033
|
const serializeAws_restJson1AssetModelCompositeModel = (input, context) => {
|
|
5874
6034
|
return {
|
|
5875
6035
|
...(input.description != null && { description: input.description }),
|
|
6036
|
+
...(input.id != null && { id: input.id }),
|
|
5876
6037
|
...(input.name != null && { name: input.name }),
|
|
5877
6038
|
...(input.properties != null && {
|
|
5878
6039
|
properties: serializeAws_restJson1AssetModelProperties(input.properties, context),
|
|
@@ -6388,6 +6549,7 @@ const deserializeAws_restJson1Alarms = (output, context) => {
|
|
|
6388
6549
|
const deserializeAws_restJson1AssetCompositeModel = (output, context) => {
|
|
6389
6550
|
return {
|
|
6390
6551
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
6552
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6391
6553
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6392
6554
|
properties: output.properties != null ? deserializeAws_restJson1AssetProperties(output.properties, context) : undefined,
|
|
6393
6555
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -6448,6 +6610,7 @@ const deserializeAws_restJson1AssetIDs = (output, context) => {
|
|
|
6448
6610
|
const deserializeAws_restJson1AssetModelCompositeModel = (output, context) => {
|
|
6449
6611
|
return {
|
|
6450
6612
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
6613
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6451
6614
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6452
6615
|
properties: output.properties != null ? deserializeAws_restJson1AssetModelProperties(output.properties, context) : undefined,
|
|
6453
6616
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -6503,6 +6666,28 @@ const deserializeAws_restJson1AssetModelProperty = (output, context) => {
|
|
|
6503
6666
|
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6504
6667
|
};
|
|
6505
6668
|
};
|
|
6669
|
+
const deserializeAws_restJson1AssetModelPropertySummaries = (output, context) => {
|
|
6670
|
+
const retVal = (output || [])
|
|
6671
|
+
.filter((e) => e != null)
|
|
6672
|
+
.map((entry) => {
|
|
6673
|
+
if (entry === null) {
|
|
6674
|
+
return null;
|
|
6675
|
+
}
|
|
6676
|
+
return deserializeAws_restJson1AssetModelPropertySummary(entry, context);
|
|
6677
|
+
});
|
|
6678
|
+
return retVal;
|
|
6679
|
+
};
|
|
6680
|
+
const deserializeAws_restJson1AssetModelPropertySummary = (output, context) => {
|
|
6681
|
+
return {
|
|
6682
|
+
assetModelCompositeModelId: (0, smithy_client_1.expectString)(output.assetModelCompositeModelId),
|
|
6683
|
+
dataType: (0, smithy_client_1.expectString)(output.dataType),
|
|
6684
|
+
dataTypeSpec: (0, smithy_client_1.expectString)(output.dataTypeSpec),
|
|
6685
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6686
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
6687
|
+
type: output.type != null ? deserializeAws_restJson1PropertyType(output.type, context) : undefined,
|
|
6688
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6689
|
+
};
|
|
6690
|
+
};
|
|
6506
6691
|
const deserializeAws_restJson1AssetModelStatus = (output, context) => {
|
|
6507
6692
|
return {
|
|
6508
6693
|
error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
|
|
@@ -6559,6 +6744,28 @@ const deserializeAws_restJson1AssetProperty = (output, context) => {
|
|
|
6559
6744
|
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6560
6745
|
};
|
|
6561
6746
|
};
|
|
6747
|
+
const deserializeAws_restJson1AssetPropertySummaries = (output, context) => {
|
|
6748
|
+
const retVal = (output || [])
|
|
6749
|
+
.filter((e) => e != null)
|
|
6750
|
+
.map((entry) => {
|
|
6751
|
+
if (entry === null) {
|
|
6752
|
+
return null;
|
|
6753
|
+
}
|
|
6754
|
+
return deserializeAws_restJson1AssetPropertySummary(entry, context);
|
|
6755
|
+
});
|
|
6756
|
+
return retVal;
|
|
6757
|
+
};
|
|
6758
|
+
const deserializeAws_restJson1AssetPropertySummary = (output, context) => {
|
|
6759
|
+
return {
|
|
6760
|
+
alias: (0, smithy_client_1.expectString)(output.alias),
|
|
6761
|
+
assetCompositeModelId: (0, smithy_client_1.expectString)(output.assetCompositeModelId),
|
|
6762
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6763
|
+
notification: output.notification != null
|
|
6764
|
+
? deserializeAws_restJson1PropertyNotification(output.notification, context)
|
|
6765
|
+
: undefined,
|
|
6766
|
+
unit: (0, smithy_client_1.expectString)(output.unit),
|
|
6767
|
+
};
|
|
6768
|
+
};
|
|
6562
6769
|
const deserializeAws_restJson1AssetPropertyValue = (output, context) => {
|
|
6563
6770
|
return {
|
|
6564
6771
|
quality: (0, smithy_client_1.expectString)(output.quality),
|
|
@@ -6929,6 +7136,7 @@ const deserializeAws_restJson1ColumnNames = (output, context) => {
|
|
|
6929
7136
|
const deserializeAws_restJson1CompositeModelProperty = (output, context) => {
|
|
6930
7137
|
return {
|
|
6931
7138
|
assetProperty: output.assetProperty != null ? deserializeAws_restJson1Property(output.assetProperty, context) : undefined,
|
|
7139
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
6932
7140
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
6933
7141
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
6934
7142
|
};
|
|
@@ -8,7 +8,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
8
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
-
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
@@ -24,8 +23,6 @@ const getRuntimeConfig = (config) => {
|
|
|
24
23
|
...config,
|
|
25
24
|
runtime: "browser",
|
|
26
25
|
defaultsMode,
|
|
27
|
-
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
26
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -10,7 +10,6 @@ const hash_node_1 = require("@aws-sdk/hash-node");
|
|
|
10
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
-
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
13
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
14
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
15
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
@@ -28,8 +27,6 @@ const getRuntimeConfig = (config) => {
|
|
|
28
27
|
...config,
|
|
29
28
|
runtime: "node",
|
|
30
29
|
defaultsMode,
|
|
31
|
-
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
-
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
30
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
31
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
32
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
5
6
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
7
|
const getRuntimeConfig = (config) => ({
|
|
7
8
|
apiVersion: "2019-12-02",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
8
11
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
12
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
13
|
logger: config?.logger ?? {},
|
package/dist-es/IoTSiteWise.js
CHANGED
|
@@ -43,7 +43,9 @@ import { GetAssetPropertyValueCommand, } from "./commands/GetAssetPropertyValueC
|
|
|
43
43
|
import { GetAssetPropertyValueHistoryCommand, } from "./commands/GetAssetPropertyValueHistoryCommand";
|
|
44
44
|
import { GetInterpolatedAssetPropertyValuesCommand, } from "./commands/GetInterpolatedAssetPropertyValuesCommand";
|
|
45
45
|
import { ListAccessPoliciesCommand, } from "./commands/ListAccessPoliciesCommand";
|
|
46
|
+
import { ListAssetModelPropertiesCommand, } from "./commands/ListAssetModelPropertiesCommand";
|
|
46
47
|
import { ListAssetModelsCommand, } from "./commands/ListAssetModelsCommand";
|
|
48
|
+
import { ListAssetPropertiesCommand, } from "./commands/ListAssetPropertiesCommand";
|
|
47
49
|
import { ListAssetRelationshipsCommand, } from "./commands/ListAssetRelationshipsCommand";
|
|
48
50
|
import { ListAssetsCommand } from "./commands/ListAssetsCommand";
|
|
49
51
|
import { ListAssociatedAssetsCommand, } from "./commands/ListAssociatedAssetsCommand";
|
|
@@ -701,6 +703,20 @@ export class IoTSiteWise extends IoTSiteWiseClient {
|
|
|
701
703
|
return this.send(command, optionsOrCb);
|
|
702
704
|
}
|
|
703
705
|
}
|
|
706
|
+
listAssetModelProperties(args, optionsOrCb, cb) {
|
|
707
|
+
const command = new ListAssetModelPropertiesCommand(args);
|
|
708
|
+
if (typeof optionsOrCb === "function") {
|
|
709
|
+
this.send(command, optionsOrCb);
|
|
710
|
+
}
|
|
711
|
+
else if (typeof cb === "function") {
|
|
712
|
+
if (typeof optionsOrCb !== "object")
|
|
713
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
714
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
715
|
+
}
|
|
716
|
+
else {
|
|
717
|
+
return this.send(command, optionsOrCb);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
704
720
|
listAssetModels(args, optionsOrCb, cb) {
|
|
705
721
|
const command = new ListAssetModelsCommand(args);
|
|
706
722
|
if (typeof optionsOrCb === "function") {
|
|
@@ -715,6 +731,20 @@ export class IoTSiteWise extends IoTSiteWiseClient {
|
|
|
715
731
|
return this.send(command, optionsOrCb);
|
|
716
732
|
}
|
|
717
733
|
}
|
|
734
|
+
listAssetProperties(args, optionsOrCb, cb) {
|
|
735
|
+
const command = new ListAssetPropertiesCommand(args);
|
|
736
|
+
if (typeof optionsOrCb === "function") {
|
|
737
|
+
this.send(command, optionsOrCb);
|
|
738
|
+
}
|
|
739
|
+
else if (typeof cb === "function") {
|
|
740
|
+
if (typeof optionsOrCb !== "object")
|
|
741
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
742
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
743
|
+
}
|
|
744
|
+
else {
|
|
745
|
+
return this.send(command, optionsOrCb);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
718
748
|
listAssetRelationships(args, optionsOrCb, cb) {
|
|
719
749
|
const command = new ListAssetRelationshipsCommand(args);
|
|
720
750
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListAssetModelPropertiesRequestFilterSensitiveLog, ListAssetModelPropertiesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListAssetModelPropertiesCommand, serializeAws_restJson1ListAssetModelPropertiesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListAssetModelPropertiesCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAssetModelPropertiesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "IoTSiteWiseClient";
|
|
25
|
+
const commandName = "ListAssetModelPropertiesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListAssetModelPropertiesRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListAssetModelPropertiesResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListAssetModelPropertiesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListAssetModelPropertiesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListAssetPropertiesRequestFilterSensitiveLog, ListAssetPropertiesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListAssetPropertiesCommand, serializeAws_restJson1ListAssetPropertiesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListAssetPropertiesCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAssetPropertiesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "IoTSiteWiseClient";
|
|
25
|
+
const commandName = "ListAssetPropertiesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListAssetPropertiesRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListAssetPropertiesResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListAssetPropertiesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListAssetPropertiesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -43,7 +43,9 @@ export * from "./GetAssetPropertyValueCommand";
|
|
|
43
43
|
export * from "./GetAssetPropertyValueHistoryCommand";
|
|
44
44
|
export * from "./GetInterpolatedAssetPropertyValuesCommand";
|
|
45
45
|
export * from "./ListAccessPoliciesCommand";
|
|
46
|
+
export * from "./ListAssetModelPropertiesCommand";
|
|
46
47
|
export * from "./ListAssetModelsCommand";
|
|
48
|
+
export * from "./ListAssetPropertiesCommand";
|
|
47
49
|
export * from "./ListAssetRelationshipsCommand";
|
|
48
50
|
export * from "./ListAssetsCommand";
|
|
49
51
|
export * from "./ListAssociatedAssetsCommand";
|
|
@@ -305,6 +305,16 @@ export var ResourceType;
|
|
|
305
305
|
ResourceType["PORTAL"] = "PORTAL";
|
|
306
306
|
ResourceType["PROJECT"] = "PROJECT";
|
|
307
307
|
})(ResourceType || (ResourceType = {}));
|
|
308
|
+
export var ListAssetModelPropertiesFilter;
|
|
309
|
+
(function (ListAssetModelPropertiesFilter) {
|
|
310
|
+
ListAssetModelPropertiesFilter["ALL"] = "ALL";
|
|
311
|
+
ListAssetModelPropertiesFilter["BASE"] = "BASE";
|
|
312
|
+
})(ListAssetModelPropertiesFilter || (ListAssetModelPropertiesFilter = {}));
|
|
313
|
+
export var ListAssetPropertiesFilter;
|
|
314
|
+
(function (ListAssetPropertiesFilter) {
|
|
315
|
+
ListAssetPropertiesFilter["ALL"] = "ALL";
|
|
316
|
+
ListAssetPropertiesFilter["BASE"] = "BASE";
|
|
317
|
+
})(ListAssetPropertiesFilter || (ListAssetPropertiesFilter = {}));
|
|
308
318
|
export var TraversalType;
|
|
309
319
|
(function (TraversalType) {
|
|
310
320
|
TraversalType["PATH_TO_ROOT"] = "PATH_TO_ROOT";
|
|
@@ -470,6 +480,9 @@ export const AssetModelHierarchyFilterSensitiveLog = (obj) => ({
|
|
|
470
480
|
export const AssetModelHierarchyDefinitionFilterSensitiveLog = (obj) => ({
|
|
471
481
|
...obj,
|
|
472
482
|
});
|
|
483
|
+
export const AssetModelPropertySummaryFilterSensitiveLog = (obj) => ({
|
|
484
|
+
...obj,
|
|
485
|
+
});
|
|
473
486
|
export const DetailedErrorFilterSensitiveLog = (obj) => ({
|
|
474
487
|
...obj,
|
|
475
488
|
});
|
|
@@ -482,6 +495,9 @@ export const AssetModelStatusFilterSensitiveLog = (obj) => ({
|
|
|
482
495
|
export const AssetModelSummaryFilterSensitiveLog = (obj) => ({
|
|
483
496
|
...obj,
|
|
484
497
|
});
|
|
498
|
+
export const AssetPropertySummaryFilterSensitiveLog = (obj) => ({
|
|
499
|
+
...obj,
|
|
500
|
+
});
|
|
485
501
|
export const TimeInNanosFilterSensitiveLog = (obj) => ({
|
|
486
502
|
...obj,
|
|
487
503
|
});
|
|
@@ -875,12 +891,24 @@ export const ListAccessPoliciesRequestFilterSensitiveLog = (obj) => ({
|
|
|
875
891
|
export const ListAccessPoliciesResponseFilterSensitiveLog = (obj) => ({
|
|
876
892
|
...obj,
|
|
877
893
|
});
|
|
894
|
+
export const ListAssetModelPropertiesRequestFilterSensitiveLog = (obj) => ({
|
|
895
|
+
...obj,
|
|
896
|
+
});
|
|
897
|
+
export const ListAssetModelPropertiesResponseFilterSensitiveLog = (obj) => ({
|
|
898
|
+
...obj,
|
|
899
|
+
});
|
|
878
900
|
export const ListAssetModelsRequestFilterSensitiveLog = (obj) => ({
|
|
879
901
|
...obj,
|
|
880
902
|
});
|
|
881
903
|
export const ListAssetModelsResponseFilterSensitiveLog = (obj) => ({
|
|
882
904
|
...obj,
|
|
883
905
|
});
|
|
906
|
+
export const ListAssetPropertiesRequestFilterSensitiveLog = (obj) => ({
|
|
907
|
+
...obj,
|
|
908
|
+
});
|
|
909
|
+
export const ListAssetPropertiesResponseFilterSensitiveLog = (obj) => ({
|
|
910
|
+
...obj,
|
|
911
|
+
});
|
|
884
912
|
export const ListAssetRelationshipsRequestFilterSensitiveLog = (obj) => ({
|
|
885
913
|
...obj,
|
|
886
914
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListAssetModelPropertiesCommand, } from "../commands/ListAssetModelPropertiesCommand";
|
|
2
|
+
import { IoTSiteWise } from "../IoTSiteWise";
|
|
3
|
+
import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListAssetModelPropertiesCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listAssetModelProperties(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListAssetModelProperties(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IoTSiteWise) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IoTSiteWiseClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|