@aws-sdk/client-iotsitewise 3.100.0 → 3.102.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
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.102.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.101.0...v3.102.0) (2022-05-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-iotsitewise:** This release adds the following new optional field to the IoT SiteWise asset resource: assetDescription. ([6efc758](https://github.com/aws/aws-sdk-js-v3/commit/6efc758715ef357bf835fccbeb62bba66b399ee6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-iotsitewise
|
|
@@ -344,6 +344,8 @@ const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
|
|
|
344
344
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
|
|
345
345
|
let body;
|
|
346
346
|
body = JSON.stringify({
|
|
347
|
+
...(input.assetDescription !== undefined &&
|
|
348
|
+
input.assetDescription !== null && { assetDescription: input.assetDescription }),
|
|
347
349
|
...(input.assetModelId !== undefined && input.assetModelId !== null && { assetModelId: input.assetModelId }),
|
|
348
350
|
...(input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName }),
|
|
349
351
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
@@ -2106,6 +2108,8 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
2106
2108
|
}
|
|
2107
2109
|
let body;
|
|
2108
2110
|
body = JSON.stringify({
|
|
2111
|
+
...(input.assetDescription !== undefined &&
|
|
2112
|
+
input.assetDescription !== null && { assetDescription: input.assetDescription }),
|
|
2109
2113
|
...(input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName }),
|
|
2110
2114
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2111
2115
|
});
|
|
@@ -3711,6 +3715,7 @@ const deserializeAws_restJson1DescribeAssetCommand = async (output, context) =>
|
|
|
3711
3715
|
assetArn: undefined,
|
|
3712
3716
|
assetCompositeModels: undefined,
|
|
3713
3717
|
assetCreationDate: undefined,
|
|
3718
|
+
assetDescription: undefined,
|
|
3714
3719
|
assetHierarchies: undefined,
|
|
3715
3720
|
assetId: undefined,
|
|
3716
3721
|
assetLastUpdateDate: undefined,
|
|
@@ -3729,6 +3734,9 @@ const deserializeAws_restJson1DescribeAssetCommand = async (output, context) =>
|
|
|
3729
3734
|
if (data.assetCreationDate !== undefined && data.assetCreationDate !== null) {
|
|
3730
3735
|
contents.assetCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.assetCreationDate)));
|
|
3731
3736
|
}
|
|
3737
|
+
if (data.assetDescription !== undefined && data.assetDescription !== null) {
|
|
3738
|
+
contents.assetDescription = (0, smithy_client_1.expectString)(data.assetDescription);
|
|
3739
|
+
}
|
|
3732
3740
|
if (data.assetHierarchies !== undefined && data.assetHierarchies !== null) {
|
|
3733
3741
|
contents.assetHierarchies = deserializeAws_restJson1AssetHierarchies(data.assetHierarchies, context);
|
|
3734
3742
|
}
|
|
@@ -7101,6 +7109,7 @@ const deserializeAws_restJson1AssetSummary = (output, context) => {
|
|
|
7101
7109
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
7102
7110
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
7103
7111
|
: undefined,
|
|
7112
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
7104
7113
|
hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
|
|
7105
7114
|
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
7106
7115
|
: undefined,
|
|
@@ -7132,6 +7141,7 @@ const deserializeAws_restJson1AssociatedAssetsSummary = (output, context) => {
|
|
|
7132
7141
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
7133
7142
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
7134
7143
|
: undefined,
|
|
7144
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
7135
7145
|
hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
|
|
7136
7146
|
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
7137
7147
|
: undefined,
|
|
@@ -373,7 +373,8 @@ export var serializeAws_restJson1CreateAssetCommand = function (input, context)
|
|
|
373
373
|
"content-type": "application/json",
|
|
374
374
|
};
|
|
375
375
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
|
|
376
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(
|
|
376
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.assetDescription !== undefined &&
|
|
377
|
+
input.assetDescription !== null && { assetDescription: input.assetDescription })), (input.assetModelId !== undefined && input.assetModelId !== null && { assetModelId: input.assetModelId })), (input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
377
378
|
return [4, context.endpoint()];
|
|
378
379
|
case 2:
|
|
379
380
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -2311,7 +2312,8 @@ export var serializeAws_restJson1UpdateAssetCommand = function (input, context)
|
|
|
2311
2312
|
else {
|
|
2312
2313
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
2313
2314
|
}
|
|
2314
|
-
body = JSON.stringify(__assign(__assign({}, (input.
|
|
2315
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.assetDescription !== undefined &&
|
|
2316
|
+
input.assetDescription !== null && { assetDescription: input.assetDescription })), (input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
2315
2317
|
return [4, context.endpoint()];
|
|
2316
2318
|
case 2:
|
|
2317
2319
|
resolvedHostname = (_d.sent()).hostname;
|
|
@@ -4472,6 +4474,7 @@ export var deserializeAws_restJson1DescribeAssetCommand = function (output, cont
|
|
|
4472
4474
|
assetArn: undefined,
|
|
4473
4475
|
assetCompositeModels: undefined,
|
|
4474
4476
|
assetCreationDate: undefined,
|
|
4477
|
+
assetDescription: undefined,
|
|
4475
4478
|
assetHierarchies: undefined,
|
|
4476
4479
|
assetId: undefined,
|
|
4477
4480
|
assetLastUpdateDate: undefined,
|
|
@@ -4494,6 +4497,9 @@ export var deserializeAws_restJson1DescribeAssetCommand = function (output, cont
|
|
|
4494
4497
|
if (data.assetCreationDate !== undefined && data.assetCreationDate !== null) {
|
|
4495
4498
|
contents.assetCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.assetCreationDate)));
|
|
4496
4499
|
}
|
|
4500
|
+
if (data.assetDescription !== undefined && data.assetDescription !== null) {
|
|
4501
|
+
contents.assetDescription = __expectString(data.assetDescription);
|
|
4502
|
+
}
|
|
4497
4503
|
if (data.assetHierarchies !== undefined && data.assetHierarchies !== null) {
|
|
4498
4504
|
contents.assetHierarchies = deserializeAws_restJson1AssetHierarchies(data.assetHierarchies, context);
|
|
4499
4505
|
}
|
|
@@ -8673,6 +8679,7 @@ var deserializeAws_restJson1AssetSummary = function (output, context) {
|
|
|
8673
8679
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8674
8680
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
8675
8681
|
: undefined,
|
|
8682
|
+
description: __expectString(output.description),
|
|
8676
8683
|
hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
|
|
8677
8684
|
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
8678
8685
|
: undefined,
|
|
@@ -8704,6 +8711,7 @@ var deserializeAws_restJson1AssociatedAssetsSummary = function (output, context)
|
|
|
8704
8711
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8705
8712
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
8706
8713
|
: undefined,
|
|
8714
|
+
description: __expectString(output.description),
|
|
8707
8715
|
hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
|
|
8708
8716
|
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
8709
8717
|
: undefined,
|
|
@@ -1302,6 +1302,10 @@ export interface AssetSummary {
|
|
|
1302
1302
|
* <p>A list of asset hierarchies that each contain a <code>hierarchyId</code>. A hierarchy specifies allowed parent/child asset relationships.</p>
|
|
1303
1303
|
*/
|
|
1304
1304
|
hierarchies: AssetHierarchy[] | undefined;
|
|
1305
|
+
/**
|
|
1306
|
+
* <p>A description for the asset.</p>
|
|
1307
|
+
*/
|
|
1308
|
+
description?: string;
|
|
1305
1309
|
}
|
|
1306
1310
|
export declare namespace AssetSummary {
|
|
1307
1311
|
/**
|
|
@@ -1456,6 +1460,10 @@ export interface AssociatedAssetsSummary {
|
|
|
1456
1460
|
* <p>A list of asset hierarchies that each contain a <code>hierarchyId</code>. A hierarchy specifies allowed parent/child asset relationships.</p>
|
|
1457
1461
|
*/
|
|
1458
1462
|
hierarchies: AssetHierarchy[] | undefined;
|
|
1463
|
+
/**
|
|
1464
|
+
* <p>A description for the asset.</p>
|
|
1465
|
+
*/
|
|
1466
|
+
description?: string;
|
|
1459
1467
|
}
|
|
1460
1468
|
export declare namespace AssociatedAssetsSummary {
|
|
1461
1469
|
/**
|
|
@@ -2372,6 +2380,10 @@ export interface CreateAssetRequest {
|
|
|
2372
2380
|
tags?: {
|
|
2373
2381
|
[key: string]: string;
|
|
2374
2382
|
};
|
|
2383
|
+
/**
|
|
2384
|
+
* <p>A description for the asset.</p>
|
|
2385
|
+
*/
|
|
2386
|
+
assetDescription?: string;
|
|
2375
2387
|
}
|
|
2376
2388
|
export declare namespace CreateAssetRequest {
|
|
2377
2389
|
/**
|
|
@@ -3200,6 +3212,10 @@ export interface DescribeAssetResponse {
|
|
|
3200
3212
|
* <p>The current status of the asset, which contains a state and any error message.</p>
|
|
3201
3213
|
*/
|
|
3202
3214
|
assetStatus: AssetStatus | undefined;
|
|
3215
|
+
/**
|
|
3216
|
+
* <p>A description for the asset.</p>
|
|
3217
|
+
*/
|
|
3218
|
+
assetDescription?: string;
|
|
3203
3219
|
}
|
|
3204
3220
|
export declare namespace DescribeAssetResponse {
|
|
3205
3221
|
/**
|
|
@@ -3967,7 +3983,7 @@ export interface DescribeStorageConfigurationResponse {
|
|
|
3967
3983
|
* </li>
|
|
3968
3984
|
* <li>
|
|
3969
3985
|
* <p>
|
|
3970
|
-
* <code>MULTI_LAYER_STORAGE</code> – IoT SiteWise saves your data in both the cold tier and the
|
|
3986
|
+
* <code>MULTI_LAYER_STORAGE</code> – IoT SiteWise saves your data in both the cold tier and the hot tier.
|
|
3971
3987
|
* The cold tier is a customer-managed Amazon S3 bucket.</p>
|
|
3972
3988
|
* </li>
|
|
3973
3989
|
* </ul>
|
|
@@ -5282,7 +5298,7 @@ export interface PutStorageConfigurationRequest {
|
|
|
5282
5298
|
* </li>
|
|
5283
5299
|
* <li>
|
|
5284
5300
|
* <p>
|
|
5285
|
-
* <code>MULTI_LAYER_STORAGE</code> – IoT SiteWise saves your data in both the cold tier and the
|
|
5301
|
+
* <code>MULTI_LAYER_STORAGE</code> – IoT SiteWise saves your data in both the cold tier and the hot tier.
|
|
5286
5302
|
* The cold tier is a customer-managed Amazon S3 bucket.</p>
|
|
5287
5303
|
* </li>
|
|
5288
5304
|
* </ul>
|
|
@@ -5336,7 +5352,7 @@ export interface PutStorageConfigurationResponse {
|
|
|
5336
5352
|
* </li>
|
|
5337
5353
|
* <li>
|
|
5338
5354
|
* <p>
|
|
5339
|
-
* <code>MULTI_LAYER_STORAGE</code> – IoT SiteWise saves your data in both the cold tier and the
|
|
5355
|
+
* <code>MULTI_LAYER_STORAGE</code> – IoT SiteWise saves your data in both the cold tier and the hot tier.
|
|
5340
5356
|
* The cold tier is a customer-managed Amazon S3 bucket.</p>
|
|
5341
5357
|
* </li>
|
|
5342
5358
|
* </ul>
|
|
@@ -5499,6 +5515,10 @@ export interface UpdateAssetRequest {
|
|
|
5499
5515
|
* <p>A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.</p>
|
|
5500
5516
|
*/
|
|
5501
5517
|
clientToken?: string;
|
|
5518
|
+
/**
|
|
5519
|
+
* <p>A description for the asset.</p>
|
|
5520
|
+
*/
|
|
5521
|
+
assetDescription?: string;
|
|
5502
5522
|
}
|
|
5503
5523
|
export declare namespace UpdateAssetRequest {
|
|
5504
5524
|
/**
|
|
@@ -655,6 +655,8 @@ export interface AssetSummary {
|
|
|
655
655
|
status: AssetStatus | undefined;
|
|
656
656
|
|
|
657
657
|
hierarchies: AssetHierarchy[] | undefined;
|
|
658
|
+
|
|
659
|
+
description?: string;
|
|
658
660
|
}
|
|
659
661
|
export declare namespace AssetSummary {
|
|
660
662
|
|
|
@@ -738,6 +740,8 @@ export interface AssociatedAssetsSummary {
|
|
|
738
740
|
status: AssetStatus | undefined;
|
|
739
741
|
|
|
740
742
|
hierarchies: AssetHierarchy[] | undefined;
|
|
743
|
+
|
|
744
|
+
description?: string;
|
|
741
745
|
}
|
|
742
746
|
export declare namespace AssociatedAssetsSummary {
|
|
743
747
|
|
|
@@ -1223,6 +1227,8 @@ export interface CreateAssetRequest {
|
|
|
1223
1227
|
tags?: {
|
|
1224
1228
|
[key: string]: string;
|
|
1225
1229
|
};
|
|
1230
|
+
|
|
1231
|
+
assetDescription?: string;
|
|
1226
1232
|
}
|
|
1227
1233
|
export declare namespace CreateAssetRequest {
|
|
1228
1234
|
|
|
@@ -1669,6 +1675,8 @@ export interface DescribeAssetResponse {
|
|
|
1669
1675
|
assetLastUpdateDate: Date | undefined;
|
|
1670
1676
|
|
|
1671
1677
|
assetStatus: AssetStatus | undefined;
|
|
1678
|
+
|
|
1679
|
+
assetDescription?: string;
|
|
1672
1680
|
}
|
|
1673
1681
|
export declare namespace DescribeAssetResponse {
|
|
1674
1682
|
|
|
@@ -2839,6 +2847,8 @@ export interface UpdateAssetRequest {
|
|
|
2839
2847
|
assetName: string | undefined;
|
|
2840
2848
|
|
|
2841
2849
|
clientToken?: string;
|
|
2850
|
+
|
|
2851
|
+
assetDescription?: string;
|
|
2842
2852
|
}
|
|
2843
2853
|
export declare namespace UpdateAssetRequest {
|
|
2844
2854
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iotsitewise",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iotsitewise Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.102.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|