@aws-sdk/client-iotsitewise 3.454.0 → 3.458.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +161 -73
- package/dist-cjs/IoTSiteWise.js +22 -0
- package/dist-cjs/commands/CreateAssetModelCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/DeleteAssetModelCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/DescribeActionCommand.js +51 -0
- package/dist-cjs/commands/DescribeAssetCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/DescribeAssetModelCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/ExecuteActionCommand.js +51 -0
- package/dist-cjs/commands/ExecuteQueryCommand.js +51 -0
- package/dist-cjs/commands/ListActionsCommand.js +51 -0
- package/dist-cjs/commands/ListAssetModelCompositeModelsCommand.js +51 -0
- package/dist-cjs/commands/ListCompositionRelationshipsCommand.js +51 -0
- package/dist-cjs/commands/UpdateAssetModelCompositeModelCommand.js +51 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +59 -15
- package/dist-cjs/models/models_1.js +18 -0
- package/dist-cjs/pagination/ExecuteQueryPaginator.js +29 -0
- package/dist-cjs/pagination/ListAssetModelCompositeModelsPaginator.js +29 -0
- package/dist-cjs/pagination/ListCompositionRelationshipsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1018 -25
- package/dist-es/IoTSiteWise.js +22 -0
- package/dist-es/commands/CreateAssetModelCompositeModelCommand.js +47 -0
- package/dist-es/commands/DeleteAssetModelCompositeModelCommand.js +47 -0
- package/dist-es/commands/DescribeActionCommand.js +47 -0
- package/dist-es/commands/DescribeAssetCompositeModelCommand.js +47 -0
- package/dist-es/commands/DescribeAssetModelCompositeModelCommand.js +47 -0
- package/dist-es/commands/ExecuteActionCommand.js +47 -0
- package/dist-es/commands/ExecuteQueryCommand.js +47 -0
- package/dist-es/commands/ListActionsCommand.js +47 -0
- package/dist-es/commands/ListAssetModelCompositeModelsCommand.js +47 -0
- package/dist-es/commands/ListCompositionRelationshipsCommand.js +47 -0
- package/dist-es/commands/UpdateAssetModelCompositeModelCommand.js +47 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +54 -13
- package/dist-es/models/models_1.js +14 -0
- package/dist-es/pagination/ExecuteQueryPaginator.js +25 -0
- package/dist-es/pagination/ListAssetModelCompositeModelsPaginator.js +25 -0
- package/dist-es/pagination/ListCompositionRelationshipsPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1038 -68
- package/dist-types/IoTSiteWise.d.ts +77 -0
- package/dist-types/IoTSiteWiseClient.d.ts +13 -2
- package/dist-types/commands/CreateAssetCommand.d.ts +2 -0
- package/dist-types/commands/CreateAssetModelCommand.d.ts +52 -4
- package/dist-types/commands/CreateAssetModelCompositeModelCommand.d.ts +212 -0
- package/dist-types/commands/CreateBulkImportJobCommand.d.ts +8 -3
- package/dist-types/commands/DeleteAssetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAssetModelCompositeModelCommand.d.ts +111 -0
- package/dist-types/commands/DescribeActionCommand.d.ts +97 -0
- package/dist-types/commands/DescribeAssetCommand.d.ts +32 -0
- package/dist-types/commands/DescribeAssetCompositeModelCommand.d.ts +145 -0
- package/dist-types/commands/DescribeAssetModelCommand.d.ts +46 -4
- package/dist-types/commands/DescribeAssetModelCompositeModelCommand.d.ts +209 -0
- package/dist-types/commands/DescribeAssetPropertyCommand.d.ts +44 -4
- package/dist-types/commands/DescribeBulkImportJobCommand.d.ts +4 -1
- package/dist-types/commands/DescribeStorageConfigurationCommand.d.ts +5 -0
- package/dist-types/commands/ExecuteActionCommand.d.ts +106 -0
- package/dist-types/commands/ExecuteQueryCommand.d.ts +130 -0
- package/dist-types/commands/ListActionsCommand.d.ts +101 -0
- package/dist-types/commands/ListAssetModelCompositeModelsCommand.d.ts +106 -0
- package/dist-types/commands/ListAssetModelPropertiesCommand.d.ts +21 -2
- package/dist-types/commands/ListAssetModelsCommand.d.ts +5 -0
- package/dist-types/commands/ListAssetPropertiesCommand.d.ts +8 -1
- package/dist-types/commands/ListAssetsCommand.d.ts +2 -0
- package/dist-types/commands/ListAssociatedAssetsCommand.d.ts +2 -0
- package/dist-types/commands/ListCompositionRelationshipsCommand.d.ts +98 -0
- package/dist-types/commands/PutDefaultEncryptionConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutLoggingOptionsCommand.d.ts +1 -1
- package/dist-types/commands/PutStorageConfigurationCommand.d.ts +11 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssetCommand.d.ts +2 -1
- package/dist-types/commands/UpdateAssetModelCommand.d.ts +31 -5
- package/dist-types/commands/UpdateAssetModelCompositeModelCommand.d.ts +220 -0
- package/dist-types/commands/UpdateAssetPropertyCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDashboardCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGatewayCapabilityConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGatewayCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePortalCommand.d.ts +1 -1
- package/dist-types/commands/UpdateProjectCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1377 -773
- package/dist-types/models/models_1.d.ts +796 -0
- package/dist-types/pagination/ExecuteQueryPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAssetModelCompositeModelsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCompositionRelationshipsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +99 -0
- package/dist-types/ts3.4/IoTSiteWise.d.ts +187 -0
- package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +66 -0
- package/dist-types/ts3.4/commands/CreateAssetModelCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteAssetModelCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeActionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeAssetCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeAssetModelCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ExecuteActionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ExecuteQueryCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListActionsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListAssetModelCompositeModelsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCompositionRelationshipsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutDefaultEncryptionConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutLoggingOptionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutStorageConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAccessPolicyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAssetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAssetModelCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAssetModelCompositeModelCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateAssetPropertyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDashboardCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateGatewayCapabilityConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateGatewayCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePortalCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +284 -130
- package/dist-types/ts3.4/models/models_1.d.ts +190 -0
- package/dist-types/ts3.4/pagination/ExecuteQueryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAssetModelCompositeModelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCompositionRelationshipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +132 -0
- package/package.json +3 -3
|
@@ -9,6 +9,7 @@ export * from "./BatchPutAssetPropertyValueCommand";
|
|
|
9
9
|
export * from "./CreateAccessPolicyCommand";
|
|
10
10
|
export * from "./CreateAssetCommand";
|
|
11
11
|
export * from "./CreateAssetModelCommand";
|
|
12
|
+
export * from "./CreateAssetModelCompositeModelCommand";
|
|
12
13
|
export * from "./CreateBulkImportJobCommand";
|
|
13
14
|
export * from "./CreateDashboardCommand";
|
|
14
15
|
export * from "./CreateGatewayCommand";
|
|
@@ -17,14 +18,18 @@ export * from "./CreateProjectCommand";
|
|
|
17
18
|
export * from "./DeleteAccessPolicyCommand";
|
|
18
19
|
export * from "./DeleteAssetCommand";
|
|
19
20
|
export * from "./DeleteAssetModelCommand";
|
|
21
|
+
export * from "./DeleteAssetModelCompositeModelCommand";
|
|
20
22
|
export * from "./DeleteDashboardCommand";
|
|
21
23
|
export * from "./DeleteGatewayCommand";
|
|
22
24
|
export * from "./DeletePortalCommand";
|
|
23
25
|
export * from "./DeleteProjectCommand";
|
|
24
26
|
export * from "./DeleteTimeSeriesCommand";
|
|
25
27
|
export * from "./DescribeAccessPolicyCommand";
|
|
28
|
+
export * from "./DescribeActionCommand";
|
|
26
29
|
export * from "./DescribeAssetCommand";
|
|
30
|
+
export * from "./DescribeAssetCompositeModelCommand";
|
|
27
31
|
export * from "./DescribeAssetModelCommand";
|
|
32
|
+
export * from "./DescribeAssetModelCompositeModelCommand";
|
|
28
33
|
export * from "./DescribeAssetPropertyCommand";
|
|
29
34
|
export * from "./DescribeBulkImportJobCommand";
|
|
30
35
|
export * from "./DescribeDashboardCommand";
|
|
@@ -38,11 +43,15 @@ export * from "./DescribeStorageConfigurationCommand";
|
|
|
38
43
|
export * from "./DescribeTimeSeriesCommand";
|
|
39
44
|
export * from "./DisassociateAssetsCommand";
|
|
40
45
|
export * from "./DisassociateTimeSeriesFromAssetPropertyCommand";
|
|
46
|
+
export * from "./ExecuteActionCommand";
|
|
47
|
+
export * from "./ExecuteQueryCommand";
|
|
41
48
|
export * from "./GetAssetPropertyAggregatesCommand";
|
|
42
49
|
export * from "./GetAssetPropertyValueCommand";
|
|
43
50
|
export * from "./GetAssetPropertyValueHistoryCommand";
|
|
44
51
|
export * from "./GetInterpolatedAssetPropertyValuesCommand";
|
|
45
52
|
export * from "./ListAccessPoliciesCommand";
|
|
53
|
+
export * from "./ListActionsCommand";
|
|
54
|
+
export * from "./ListAssetModelCompositeModelsCommand";
|
|
46
55
|
export * from "./ListAssetModelPropertiesCommand";
|
|
47
56
|
export * from "./ListAssetModelsCommand";
|
|
48
57
|
export * from "./ListAssetPropertiesCommand";
|
|
@@ -50,6 +59,7 @@ export * from "./ListAssetRelationshipsCommand";
|
|
|
50
59
|
export * from "./ListAssetsCommand";
|
|
51
60
|
export * from "./ListAssociatedAssetsCommand";
|
|
52
61
|
export * from "./ListBulkImportJobsCommand";
|
|
62
|
+
export * from "./ListCompositionRelationshipsCommand";
|
|
53
63
|
export * from "./ListDashboardsCommand";
|
|
54
64
|
export * from "./ListGatewaysCommand";
|
|
55
65
|
export * from "./ListPortalsCommand";
|
|
@@ -65,6 +75,7 @@ export * from "./UntagResourceCommand";
|
|
|
65
75
|
export * from "./UpdateAccessPolicyCommand";
|
|
66
76
|
export * from "./UpdateAssetCommand";
|
|
67
77
|
export * from "./UpdateAssetModelCommand";
|
|
78
|
+
export * from "./UpdateAssetModelCompositeModelCommand";
|
|
68
79
|
export * from "./UpdateAssetPropertyCommand";
|
|
69
80
|
export * from "./UpdateDashboardCommand";
|
|
70
81
|
export * from "./UpdateGatewayCapabilityConfigurationCommand";
|
package/dist-es/models/index.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { IoTSiteWiseServiceException as __BaseException } from "./IoTSiteWiseServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "AccessDeniedException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "AccessDeniedException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
2
14
|
export const Permission = {
|
|
3
15
|
ADMINISTRATOR: "ADMINISTRATOR",
|
|
4
16
|
VIEWER: "VIEWER",
|
|
@@ -54,6 +66,10 @@ export const DetailedErrorCode = {
|
|
|
54
66
|
INCOMPATIBLE_COMPUTE_LOCATION: "INCOMPATIBLE_COMPUTE_LOCATION",
|
|
55
67
|
INCOMPATIBLE_FORWARDING_CONFIGURATION: "INCOMPATIBLE_FORWARDING_CONFIGURATION",
|
|
56
68
|
};
|
|
69
|
+
export const AssetModelType = {
|
|
70
|
+
ASSET_MODEL: "ASSET_MODEL",
|
|
71
|
+
COMPONENT_MODEL: "COMPONENT_MODEL",
|
|
72
|
+
};
|
|
57
73
|
export const AssetRelationshipType = {
|
|
58
74
|
HIERARCHY: "HIERARCHY",
|
|
59
75
|
};
|
|
@@ -263,6 +279,41 @@ export const StorageType = {
|
|
|
263
279
|
MULTI_LAYER_STORAGE: "MULTI_LAYER_STORAGE",
|
|
264
280
|
SITEWISE_DEFAULT_STORAGE: "SITEWISE_DEFAULT_STORAGE",
|
|
265
281
|
};
|
|
282
|
+
export const WarmTierState = {
|
|
283
|
+
DISABLED: "DISABLED",
|
|
284
|
+
ENABLED: "ENABLED",
|
|
285
|
+
};
|
|
286
|
+
export const ScalarType = {
|
|
287
|
+
BOOLEAN: "BOOLEAN",
|
|
288
|
+
DOUBLE: "DOUBLE",
|
|
289
|
+
INT: "INT",
|
|
290
|
+
STRING: "STRING",
|
|
291
|
+
TIMESTAMP: "TIMESTAMP",
|
|
292
|
+
};
|
|
293
|
+
export class QueryTimeoutException extends __BaseException {
|
|
294
|
+
constructor(opts) {
|
|
295
|
+
super({
|
|
296
|
+
name: "QueryTimeoutException",
|
|
297
|
+
$fault: "client",
|
|
298
|
+
...opts,
|
|
299
|
+
});
|
|
300
|
+
this.name = "QueryTimeoutException";
|
|
301
|
+
this.$fault = "client";
|
|
302
|
+
Object.setPrototypeOf(this, QueryTimeoutException.prototype);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
export class ValidationException extends __BaseException {
|
|
306
|
+
constructor(opts) {
|
|
307
|
+
super({
|
|
308
|
+
name: "ValidationException",
|
|
309
|
+
$fault: "client",
|
|
310
|
+
...opts,
|
|
311
|
+
});
|
|
312
|
+
this.name = "ValidationException";
|
|
313
|
+
this.$fault = "client";
|
|
314
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
266
317
|
export const IdentityType = {
|
|
267
318
|
GROUP: "GROUP",
|
|
268
319
|
IAM: "IAM",
|
|
@@ -272,6 +323,9 @@ export const ResourceType = {
|
|
|
272
323
|
PORTAL: "PORTAL",
|
|
273
324
|
PROJECT: "PROJECT",
|
|
274
325
|
};
|
|
326
|
+
export const TargetResourceType = {
|
|
327
|
+
ASSET: "ASSET",
|
|
328
|
+
};
|
|
275
329
|
export const ListAssetModelPropertiesFilter = {
|
|
276
330
|
ALL: "ALL",
|
|
277
331
|
BASE: "BASE",
|
|
@@ -316,16 +370,3 @@ export const ListTimeSeriesType = {
|
|
|
316
370
|
ASSOCIATED: "ASSOCIATED",
|
|
317
371
|
DISASSOCIATED: "DISASSOCIATED",
|
|
318
372
|
};
|
|
319
|
-
export class TooManyTagsException extends __BaseException {
|
|
320
|
-
constructor(opts) {
|
|
321
|
-
super({
|
|
322
|
-
name: "TooManyTagsException",
|
|
323
|
-
$fault: "client",
|
|
324
|
-
...opts,
|
|
325
|
-
});
|
|
326
|
-
this.name = "TooManyTagsException";
|
|
327
|
-
this.$fault = "client";
|
|
328
|
-
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
329
|
-
this.resourceName = opts.resourceName;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IoTSiteWiseServiceException as __BaseException } from "./IoTSiteWiseServiceException";
|
|
2
|
+
export class TooManyTagsException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "TooManyTagsException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "TooManyTagsException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
12
|
+
this.resourceName = opts.resourceName;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ExecuteQueryCommand, } from "../commands/ExecuteQueryCommand";
|
|
2
|
+
import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ExecuteQueryCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateExecuteQuery(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof IoTSiteWiseClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAssetModelCompositeModelsCommand, } from "../commands/ListAssetModelCompositeModelsCommand";
|
|
2
|
+
import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAssetModelCompositeModelsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAssetModelCompositeModels(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof IoTSiteWiseClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListCompositionRelationshipsCommand, } from "../commands/ListCompositionRelationshipsCommand";
|
|
2
|
+
import { IoTSiteWiseClient } from "../IoTSiteWiseClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListCompositionRelationshipsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListCompositionRelationships(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof IoTSiteWiseClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected IoTSiteWise | IoTSiteWiseClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export * from "./BatchGetAssetPropertyAggregatesPaginator";
|
|
2
2
|
export * from "./BatchGetAssetPropertyValueHistoryPaginator";
|
|
3
3
|
export * from "./BatchGetAssetPropertyValuePaginator";
|
|
4
|
+
export * from "./ExecuteQueryPaginator";
|
|
4
5
|
export * from "./GetAssetPropertyAggregatesPaginator";
|
|
5
6
|
export * from "./GetAssetPropertyValueHistoryPaginator";
|
|
6
7
|
export * from "./GetInterpolatedAssetPropertyValuesPaginator";
|
|
7
8
|
export * from "./Interfaces";
|
|
8
9
|
export * from "./ListAccessPoliciesPaginator";
|
|
10
|
+
export * from "./ListAssetModelCompositeModelsPaginator";
|
|
9
11
|
export * from "./ListAssetModelPropertiesPaginator";
|
|
10
12
|
export * from "./ListAssetModelsPaginator";
|
|
11
13
|
export * from "./ListAssetPropertiesPaginator";
|
|
@@ -13,6 +15,7 @@ export * from "./ListAssetRelationshipsPaginator";
|
|
|
13
15
|
export * from "./ListAssetsPaginator";
|
|
14
16
|
export * from "./ListAssociatedAssetsPaginator";
|
|
15
17
|
export * from "./ListBulkImportJobsPaginator";
|
|
18
|
+
export * from "./ListCompositionRelationshipsPaginator";
|
|
16
19
|
export * from "./ListDashboardsPaginator";
|
|
17
20
|
export * from "./ListGatewaysPaginator";
|
|
18
21
|
export * from "./ListPortalsPaginator";
|