@aws-sdk/client-iottwinmaker 3.477.0 → 3.481.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/commands/BatchPutPropertyValuesCommand.js +18 -41
- package/dist-cjs/commands/CancelMetadataTransferJobCommand.js +18 -41
- package/dist-cjs/commands/CreateComponentTypeCommand.js +18 -41
- package/dist-cjs/commands/CreateEntityCommand.js +18 -41
- package/dist-cjs/commands/CreateMetadataTransferJobCommand.js +18 -41
- package/dist-cjs/commands/CreateSceneCommand.js +18 -41
- package/dist-cjs/commands/CreateSyncJobCommand.js +18 -41
- package/dist-cjs/commands/CreateWorkspaceCommand.js +18 -41
- package/dist-cjs/commands/DeleteComponentTypeCommand.js +18 -41
- package/dist-cjs/commands/DeleteEntityCommand.js +18 -41
- package/dist-cjs/commands/DeleteSceneCommand.js +18 -41
- package/dist-cjs/commands/DeleteSyncJobCommand.js +18 -41
- package/dist-cjs/commands/DeleteWorkspaceCommand.js +18 -41
- package/dist-cjs/commands/ExecuteQueryCommand.js +18 -41
- package/dist-cjs/commands/GetComponentTypeCommand.js +18 -41
- package/dist-cjs/commands/GetEntityCommand.js +18 -41
- package/dist-cjs/commands/GetMetadataTransferJobCommand.js +18 -41
- package/dist-cjs/commands/GetPricingPlanCommand.js +18 -41
- package/dist-cjs/commands/GetPropertyValueCommand.js +18 -41
- package/dist-cjs/commands/GetPropertyValueHistoryCommand.js +18 -41
- package/dist-cjs/commands/GetSceneCommand.js +18 -41
- package/dist-cjs/commands/GetSyncJobCommand.js +18 -41
- package/dist-cjs/commands/GetWorkspaceCommand.js +18 -41
- package/dist-cjs/commands/ListComponentTypesCommand.js +18 -41
- package/dist-cjs/commands/ListComponentsCommand.js +18 -41
- package/dist-cjs/commands/ListEntitiesCommand.js +18 -41
- package/dist-cjs/commands/ListMetadataTransferJobsCommand.js +18 -41
- package/dist-cjs/commands/ListPropertiesCommand.js +18 -41
- package/dist-cjs/commands/ListScenesCommand.js +18 -41
- package/dist-cjs/commands/ListSyncJobsCommand.js +18 -41
- package/dist-cjs/commands/ListSyncResourcesCommand.js +18 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-cjs/commands/ListWorkspacesCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/commands/UpdateComponentTypeCommand.js +18 -41
- package/dist-cjs/commands/UpdateEntityCommand.js +18 -41
- package/dist-cjs/commands/UpdatePricingPlanCommand.js +18 -41
- package/dist-cjs/commands/UpdateSceneCommand.js +18 -41
- package/dist-cjs/commands/UpdateWorkspaceCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/ExecuteQueryPaginator.js +2 -24
- package/dist-cjs/pagination/GetPropertyValueHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/GetPropertyValuePaginator.js +2 -24
- package/dist-cjs/pagination/ListComponentTypesPaginator.js +2 -24
- package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEntitiesPaginator.js +2 -24
- package/dist-cjs/pagination/ListMetadataTransferJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPropertiesPaginator.js +2 -24
- package/dist-cjs/pagination/ListScenesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSyncJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSyncResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkspacesPaginator.js +2 -24
- package/dist-es/commands/BatchPutPropertyValuesCommand.js +18 -41
- package/dist-es/commands/CancelMetadataTransferJobCommand.js +18 -41
- package/dist-es/commands/CreateComponentTypeCommand.js +18 -41
- package/dist-es/commands/CreateEntityCommand.js +18 -41
- package/dist-es/commands/CreateMetadataTransferJobCommand.js +18 -41
- package/dist-es/commands/CreateSceneCommand.js +18 -41
- package/dist-es/commands/CreateSyncJobCommand.js +18 -41
- package/dist-es/commands/CreateWorkspaceCommand.js +18 -41
- package/dist-es/commands/DeleteComponentTypeCommand.js +18 -41
- package/dist-es/commands/DeleteEntityCommand.js +18 -41
- package/dist-es/commands/DeleteSceneCommand.js +18 -41
- package/dist-es/commands/DeleteSyncJobCommand.js +18 -41
- package/dist-es/commands/DeleteWorkspaceCommand.js +18 -41
- package/dist-es/commands/ExecuteQueryCommand.js +18 -41
- package/dist-es/commands/GetComponentTypeCommand.js +18 -41
- package/dist-es/commands/GetEntityCommand.js +18 -41
- package/dist-es/commands/GetMetadataTransferJobCommand.js +18 -41
- package/dist-es/commands/GetPricingPlanCommand.js +18 -41
- package/dist-es/commands/GetPropertyValueCommand.js +18 -41
- package/dist-es/commands/GetPropertyValueHistoryCommand.js +18 -41
- package/dist-es/commands/GetSceneCommand.js +18 -41
- package/dist-es/commands/GetSyncJobCommand.js +18 -41
- package/dist-es/commands/GetWorkspaceCommand.js +18 -41
- package/dist-es/commands/ListComponentTypesCommand.js +18 -41
- package/dist-es/commands/ListComponentsCommand.js +18 -41
- package/dist-es/commands/ListEntitiesCommand.js +18 -41
- package/dist-es/commands/ListMetadataTransferJobsCommand.js +18 -41
- package/dist-es/commands/ListPropertiesCommand.js +18 -41
- package/dist-es/commands/ListScenesCommand.js +18 -41
- package/dist-es/commands/ListSyncJobsCommand.js +18 -41
- package/dist-es/commands/ListSyncResourcesCommand.js +18 -41
- package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-es/commands/ListWorkspacesCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/commands/UpdateComponentTypeCommand.js +18 -41
- package/dist-es/commands/UpdateEntityCommand.js +18 -41
- package/dist-es/commands/UpdatePricingPlanCommand.js +18 -41
- package/dist-es/commands/UpdateSceneCommand.js +18 -41
- package/dist-es/commands/UpdateWorkspaceCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/ExecuteQueryPaginator.js +2 -23
- package/dist-es/pagination/GetPropertyValueHistoryPaginator.js +2 -23
- package/dist-es/pagination/GetPropertyValuePaginator.js +2 -23
- package/dist-es/pagination/ListComponentTypesPaginator.js +2 -23
- package/dist-es/pagination/ListComponentsPaginator.js +2 -23
- package/dist-es/pagination/ListEntitiesPaginator.js +2 -23
- package/dist-es/pagination/ListMetadataTransferJobsPaginator.js +2 -23
- package/dist-es/pagination/ListPropertiesPaginator.js +2 -23
- package/dist-es/pagination/ListScenesPaginator.js +2 -23
- package/dist-es/pagination/ListSyncJobsPaginator.js +2 -23
- package/dist-es/pagination/ListSyncResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListWorkspacesPaginator.js +2 -23
- package/dist-types/commands/BatchPutPropertyValuesCommand.d.ts +6 -21
- package/dist-types/commands/CancelMetadataTransferJobCommand.d.ts +6 -21
- package/dist-types/commands/CreateComponentTypeCommand.d.ts +6 -21
- package/dist-types/commands/CreateEntityCommand.d.ts +6 -21
- package/dist-types/commands/CreateMetadataTransferJobCommand.d.ts +6 -21
- package/dist-types/commands/CreateSceneCommand.d.ts +6 -21
- package/dist-types/commands/CreateSyncJobCommand.d.ts +6 -21
- package/dist-types/commands/CreateWorkspaceCommand.d.ts +6 -21
- package/dist-types/commands/DeleteComponentTypeCommand.d.ts +6 -21
- package/dist-types/commands/DeleteEntityCommand.d.ts +6 -21
- package/dist-types/commands/DeleteSceneCommand.d.ts +6 -21
- package/dist-types/commands/DeleteSyncJobCommand.d.ts +6 -21
- package/dist-types/commands/DeleteWorkspaceCommand.d.ts +6 -21
- package/dist-types/commands/ExecuteQueryCommand.d.ts +6 -21
- package/dist-types/commands/GetComponentTypeCommand.d.ts +6 -21
- package/dist-types/commands/GetEntityCommand.d.ts +6 -21
- package/dist-types/commands/GetMetadataTransferJobCommand.d.ts +6 -21
- package/dist-types/commands/GetPricingPlanCommand.d.ts +6 -21
- package/dist-types/commands/GetPropertyValueCommand.d.ts +6 -21
- package/dist-types/commands/GetPropertyValueHistoryCommand.d.ts +6 -21
- package/dist-types/commands/GetSceneCommand.d.ts +6 -21
- package/dist-types/commands/GetSyncJobCommand.d.ts +6 -21
- package/dist-types/commands/GetWorkspaceCommand.d.ts +6 -21
- package/dist-types/commands/ListComponentTypesCommand.d.ts +6 -21
- package/dist-types/commands/ListComponentsCommand.d.ts +6 -21
- package/dist-types/commands/ListEntitiesCommand.d.ts +6 -21
- package/dist-types/commands/ListMetadataTransferJobsCommand.d.ts +6 -21
- package/dist-types/commands/ListPropertiesCommand.d.ts +6 -21
- package/dist-types/commands/ListScenesCommand.d.ts +6 -21
- package/dist-types/commands/ListSyncJobsCommand.d.ts +6 -21
- package/dist-types/commands/ListSyncResourcesCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
- package/dist-types/commands/ListWorkspacesCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdateComponentTypeCommand.d.ts +6 -21
- package/dist-types/commands/UpdateEntityCommand.d.ts +6 -21
- package/dist-types/commands/UpdatePricingPlanCommand.d.ts +6 -21
- package/dist-types/commands/UpdateSceneCommand.d.ts +6 -21
- package/dist-types/commands/UpdateWorkspaceCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/ExecuteQueryPaginator.d.ts +1 -1
- package/dist-types/pagination/GetPropertyValueHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/GetPropertyValuePaginator.d.ts +1 -1
- package/dist-types/pagination/ListComponentTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEntitiesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMetadataTransferJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPropertiesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListScenesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSyncJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSyncResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkspacesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchPutPropertyValuesCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CancelMetadataTransferJobCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateComponentTypeCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateEntityCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateMetadataTransferJobCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateSceneCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateSyncJobCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateWorkspaceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteComponentTypeCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteEntityCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteSceneCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteSyncJobCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteWorkspaceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ExecuteQueryCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetComponentTypeCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetEntityCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetMetadataTransferJobCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetPricingPlanCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetPropertyValueCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetPropertyValueHistoryCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetSceneCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetSyncJobCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetWorkspaceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListComponentTypesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListEntitiesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListMetadataTransferJobsCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/ListPropertiesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListScenesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListSyncJobsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListSyncResourcesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListWorkspacesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateComponentTypeCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateEntityCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdatePricingPlanCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateSceneCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateWorkspaceCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/ExecuteQueryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetPropertyValueHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetPropertyValuePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComponentTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEntitiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMetadataTransferJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPropertiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListScenesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSyncJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSyncResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkspacesPaginator.d.ts +3 -3
- package/package.json +11 -11
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateEntityCommand, se_UpdateEntityCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateEntityCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTTwinMakerClient";
|
|
26
|
-
const commandName = "UpdateEntityCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AWSIoTTwinMaker",
|
|
35
|
-
operation: "UpdateEntity",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateEntityCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateEntityCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateEntityCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSIoTTwinMaker", "UpdateEntity", {})
|
|
19
|
+
.n("IoTTwinMakerClient", "UpdateEntityCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateEntityCommand)
|
|
22
|
+
.de(de_UpdateEntityCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdatePricingPlanCommand, se_UpdatePricingPlanCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdatePricingPlanCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTTwinMakerClient";
|
|
26
|
-
const commandName = "UpdatePricingPlanCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AWSIoTTwinMaker",
|
|
35
|
-
operation: "UpdatePricingPlan",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdatePricingPlanCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdatePricingPlanCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdatePricingPlanCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSIoTTwinMaker", "UpdatePricingPlan", {})
|
|
19
|
+
.n("IoTTwinMakerClient", "UpdatePricingPlanCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdatePricingPlanCommand)
|
|
22
|
+
.de(de_UpdatePricingPlanCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateSceneCommand, se_UpdateSceneCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateSceneCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTTwinMakerClient";
|
|
26
|
-
const commandName = "UpdateSceneCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AWSIoTTwinMaker",
|
|
35
|
-
operation: "UpdateScene",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateSceneCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateSceneCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateSceneCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSIoTTwinMaker", "UpdateScene", {})
|
|
19
|
+
.n("IoTTwinMakerClient", "UpdateSceneCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateSceneCommand)
|
|
22
|
+
.de(de_UpdateSceneCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateWorkspaceCommand, se_UpdateWorkspaceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateWorkspaceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "IoTTwinMakerClient";
|
|
26
|
-
const commandName = "UpdateWorkspaceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "AWSIoTTwinMaker",
|
|
35
|
-
operation: "UpdateWorkspace",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateWorkspaceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateWorkspaceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateWorkspaceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AWSIoTTwinMaker", "UpdateWorkspace", {})
|
|
19
|
+
.n("IoTTwinMakerClient", "UpdateWorkspaceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateWorkspaceCommand)
|
|
22
|
+
.de(de_UpdateWorkspaceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "iottwinmaker",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ExecuteQueryCommand, } from "../commands/ExecuteQueryCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateExecuteQuery = createPaginator(IoTTwinMakerClient, ExecuteQueryCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetPropertyValueHistoryCommand, } from "../commands/GetPropertyValueHistoryCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetPropertyValueHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetPropertyValueHistory(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetPropertyValueHistory = createPaginator(IoTTwinMakerClient, GetPropertyValueHistoryCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetPropertyValueCommand, } from "../commands/GetPropertyValueCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetPropertyValueCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetPropertyValue(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetPropertyValue = createPaginator(IoTTwinMakerClient, GetPropertyValueCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListComponentTypesCommand, } from "../commands/ListComponentTypesCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListComponentTypesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListComponentTypes(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListComponentTypes = createPaginator(IoTTwinMakerClient, ListComponentTypesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListComponentsCommand, } from "../commands/ListComponentsCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListComponentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListComponents(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListComponents = createPaginator(IoTTwinMakerClient, ListComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEntitiesCommand, } from "../commands/ListEntitiesCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEntitiesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEntities(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListEntities = createPaginator(IoTTwinMakerClient, ListEntitiesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMetadataTransferJobsCommand, } from "../commands/ListMetadataTransferJobsCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMetadataTransferJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMetadataTransferJobs(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListMetadataTransferJobs = createPaginator(IoTTwinMakerClient, ListMetadataTransferJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPropertiesCommand, } from "../commands/ListPropertiesCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPropertiesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProperties(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListProperties = createPaginator(IoTTwinMakerClient, ListPropertiesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListScenesCommand } from "../commands/ListScenesCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListScenesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListScenes(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListScenes = createPaginator(IoTTwinMakerClient, ListScenesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSyncJobsCommand, } from "../commands/ListSyncJobsCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSyncJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSyncJobs(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSyncJobs = createPaginator(IoTTwinMakerClient, ListSyncJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSyncResourcesCommand, } from "../commands/ListSyncResourcesCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSyncResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSyncResources(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSyncResources = createPaginator(IoTTwinMakerClient, ListSyncResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWorkspacesCommand, } from "../commands/ListWorkspacesCommand";
|
|
2
3
|
import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListWorkspacesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListWorkspaces(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 IoTTwinMakerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListWorkspaces = createPaginator(IoTTwinMakerClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");
|