@aws-sdk/client-iottwinmaker 3.224.0 → 3.227.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/IoTTwinMaker.js +75 -0
- package/dist-cjs/commands/CreateSyncJobCommand.js +46 -0
- package/dist-cjs/commands/DeleteSyncJobCommand.js +46 -0
- package/dist-cjs/commands/GetSyncJobCommand.js +46 -0
- package/dist-cjs/commands/ListSyncJobsCommand.js +46 -0
- package/dist-cjs/commands/ListSyncResourcesCommand.js +46 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/ruleset.js +1 -10
- package/dist-cjs/models/models_0.js +111 -3
- package/dist-cjs/pagination/ListSyncJobsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSyncResourcesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +510 -2
- package/dist-es/IoTTwinMaker.js +75 -0
- package/dist-es/commands/CreateSyncJobCommand.js +42 -0
- package/dist-es/commands/DeleteSyncJobCommand.js +42 -0
- package/dist-es/commands/GetSyncJobCommand.js +42 -0
- package/dist-es/commands/ListSyncJobsCommand.js +42 -0
- package/dist-es/commands/ListSyncResourcesCommand.js +42 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/ruleset.js +1 -10
- package/dist-es/models/models_0.js +93 -0
- package/dist-es/pagination/ListSyncJobsPaginator.js +32 -0
- package/dist-es/pagination/ListSyncResourcesPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +499 -1
- package/dist-types/IoTTwinMaker.d.ts +35 -0
- package/dist-types/IoTTwinMakerClient.d.ts +7 -2
- package/dist-types/commands/CreateSyncJobCommand.d.ts +37 -0
- package/dist-types/commands/DeleteSyncJobCommand.d.ts +37 -0
- package/dist-types/commands/GetSyncJobCommand.d.ts +37 -0
- package/dist-types/commands/ListSyncJobsCommand.d.ts +37 -0
- package/dist-types/commands/ListSyncResourcesCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +421 -1
- package/dist-types/pagination/ListSyncJobsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSyncResourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/IoTTwinMaker.d.ts +85 -0
- package/dist-types/ts3.4/IoTTwinMakerClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateSyncJobCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteSyncJobCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetSyncJobCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListSyncJobsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListSyncResourcesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +200 -0
- package/dist-types/ts3.4/pagination/ListSyncJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSyncResourcesPaginator.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 +60 -0
- package/package.json +28 -28
package/dist-cjs/IoTTwinMaker.js
CHANGED
|
@@ -5,10 +5,12 @@ const BatchPutPropertyValuesCommand_1 = require("./commands/BatchPutPropertyValu
|
|
|
5
5
|
const CreateComponentTypeCommand_1 = require("./commands/CreateComponentTypeCommand");
|
|
6
6
|
const CreateEntityCommand_1 = require("./commands/CreateEntityCommand");
|
|
7
7
|
const CreateSceneCommand_1 = require("./commands/CreateSceneCommand");
|
|
8
|
+
const CreateSyncJobCommand_1 = require("./commands/CreateSyncJobCommand");
|
|
8
9
|
const CreateWorkspaceCommand_1 = require("./commands/CreateWorkspaceCommand");
|
|
9
10
|
const DeleteComponentTypeCommand_1 = require("./commands/DeleteComponentTypeCommand");
|
|
10
11
|
const DeleteEntityCommand_1 = require("./commands/DeleteEntityCommand");
|
|
11
12
|
const DeleteSceneCommand_1 = require("./commands/DeleteSceneCommand");
|
|
13
|
+
const DeleteSyncJobCommand_1 = require("./commands/DeleteSyncJobCommand");
|
|
12
14
|
const DeleteWorkspaceCommand_1 = require("./commands/DeleteWorkspaceCommand");
|
|
13
15
|
const ExecuteQueryCommand_1 = require("./commands/ExecuteQueryCommand");
|
|
14
16
|
const GetComponentTypeCommand_1 = require("./commands/GetComponentTypeCommand");
|
|
@@ -17,10 +19,13 @@ const GetPricingPlanCommand_1 = require("./commands/GetPricingPlanCommand");
|
|
|
17
19
|
const GetPropertyValueCommand_1 = require("./commands/GetPropertyValueCommand");
|
|
18
20
|
const GetPropertyValueHistoryCommand_1 = require("./commands/GetPropertyValueHistoryCommand");
|
|
19
21
|
const GetSceneCommand_1 = require("./commands/GetSceneCommand");
|
|
22
|
+
const GetSyncJobCommand_1 = require("./commands/GetSyncJobCommand");
|
|
20
23
|
const GetWorkspaceCommand_1 = require("./commands/GetWorkspaceCommand");
|
|
21
24
|
const ListComponentTypesCommand_1 = require("./commands/ListComponentTypesCommand");
|
|
22
25
|
const ListEntitiesCommand_1 = require("./commands/ListEntitiesCommand");
|
|
23
26
|
const ListScenesCommand_1 = require("./commands/ListScenesCommand");
|
|
27
|
+
const ListSyncJobsCommand_1 = require("./commands/ListSyncJobsCommand");
|
|
28
|
+
const ListSyncResourcesCommand_1 = require("./commands/ListSyncResourcesCommand");
|
|
24
29
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
25
30
|
const ListWorkspacesCommand_1 = require("./commands/ListWorkspacesCommand");
|
|
26
31
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
@@ -88,6 +93,20 @@ class IoTTwinMaker extends IoTTwinMakerClient_1.IoTTwinMakerClient {
|
|
|
88
93
|
return this.send(command, optionsOrCb);
|
|
89
94
|
}
|
|
90
95
|
}
|
|
96
|
+
createSyncJob(args, optionsOrCb, cb) {
|
|
97
|
+
const command = new CreateSyncJobCommand_1.CreateSyncJobCommand(args);
|
|
98
|
+
if (typeof optionsOrCb === "function") {
|
|
99
|
+
this.send(command, optionsOrCb);
|
|
100
|
+
}
|
|
101
|
+
else if (typeof cb === "function") {
|
|
102
|
+
if (typeof optionsOrCb !== "object")
|
|
103
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
104
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
return this.send(command, optionsOrCb);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
91
110
|
createWorkspace(args, optionsOrCb, cb) {
|
|
92
111
|
const command = new CreateWorkspaceCommand_1.CreateWorkspaceCommand(args);
|
|
93
112
|
if (typeof optionsOrCb === "function") {
|
|
@@ -144,6 +163,20 @@ class IoTTwinMaker extends IoTTwinMakerClient_1.IoTTwinMakerClient {
|
|
|
144
163
|
return this.send(command, optionsOrCb);
|
|
145
164
|
}
|
|
146
165
|
}
|
|
166
|
+
deleteSyncJob(args, optionsOrCb, cb) {
|
|
167
|
+
const command = new DeleteSyncJobCommand_1.DeleteSyncJobCommand(args);
|
|
168
|
+
if (typeof optionsOrCb === "function") {
|
|
169
|
+
this.send(command, optionsOrCb);
|
|
170
|
+
}
|
|
171
|
+
else if (typeof cb === "function") {
|
|
172
|
+
if (typeof optionsOrCb !== "object")
|
|
173
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
174
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
return this.send(command, optionsOrCb);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
147
180
|
deleteWorkspace(args, optionsOrCb, cb) {
|
|
148
181
|
const command = new DeleteWorkspaceCommand_1.DeleteWorkspaceCommand(args);
|
|
149
182
|
if (typeof optionsOrCb === "function") {
|
|
@@ -256,6 +289,20 @@ class IoTTwinMaker extends IoTTwinMakerClient_1.IoTTwinMakerClient {
|
|
|
256
289
|
return this.send(command, optionsOrCb);
|
|
257
290
|
}
|
|
258
291
|
}
|
|
292
|
+
getSyncJob(args, optionsOrCb, cb) {
|
|
293
|
+
const command = new GetSyncJobCommand_1.GetSyncJobCommand(args);
|
|
294
|
+
if (typeof optionsOrCb === "function") {
|
|
295
|
+
this.send(command, optionsOrCb);
|
|
296
|
+
}
|
|
297
|
+
else if (typeof cb === "function") {
|
|
298
|
+
if (typeof optionsOrCb !== "object")
|
|
299
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
300
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
return this.send(command, optionsOrCb);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
259
306
|
getWorkspace(args, optionsOrCb, cb) {
|
|
260
307
|
const command = new GetWorkspaceCommand_1.GetWorkspaceCommand(args);
|
|
261
308
|
if (typeof optionsOrCb === "function") {
|
|
@@ -312,6 +359,34 @@ class IoTTwinMaker extends IoTTwinMakerClient_1.IoTTwinMakerClient {
|
|
|
312
359
|
return this.send(command, optionsOrCb);
|
|
313
360
|
}
|
|
314
361
|
}
|
|
362
|
+
listSyncJobs(args, optionsOrCb, cb) {
|
|
363
|
+
const command = new ListSyncJobsCommand_1.ListSyncJobsCommand(args);
|
|
364
|
+
if (typeof optionsOrCb === "function") {
|
|
365
|
+
this.send(command, optionsOrCb);
|
|
366
|
+
}
|
|
367
|
+
else if (typeof cb === "function") {
|
|
368
|
+
if (typeof optionsOrCb !== "object")
|
|
369
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
370
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
return this.send(command, optionsOrCb);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
listSyncResources(args, optionsOrCb, cb) {
|
|
377
|
+
const command = new ListSyncResourcesCommand_1.ListSyncResourcesCommand(args);
|
|
378
|
+
if (typeof optionsOrCb === "function") {
|
|
379
|
+
this.send(command, optionsOrCb);
|
|
380
|
+
}
|
|
381
|
+
else if (typeof cb === "function") {
|
|
382
|
+
if (typeof optionsOrCb !== "object")
|
|
383
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
384
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
return this.send(command, optionsOrCb);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
315
390
|
listTagsForResource(args, optionsOrCb, cb) {
|
|
316
391
|
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
317
392
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSyncJobCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class CreateSyncJobCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateSyncJobCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "IoTTwinMakerClient";
|
|
28
|
+
const commandName = "CreateSyncJobCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.CreateSyncJobRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.CreateSyncJobResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateSyncJobCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateSyncJobCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateSyncJobCommand = CreateSyncJobCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSyncJobCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeleteSyncJobCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteSyncJobCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "IoTTwinMakerClient";
|
|
28
|
+
const commandName = "DeleteSyncJobCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeleteSyncJobRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeleteSyncJobResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteSyncJobCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteSyncJobCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeleteSyncJobCommand = DeleteSyncJobCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSyncJobCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class GetSyncJobCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSyncJobCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "IoTTwinMakerClient";
|
|
28
|
+
const commandName = "GetSyncJobCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.GetSyncJobRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.GetSyncJobResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetSyncJobCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetSyncJobCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GetSyncJobCommand = GetSyncJobCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSyncJobsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListSyncJobsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListSyncJobsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "IoTTwinMakerClient";
|
|
28
|
+
const commandName = "ListSyncJobsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListSyncJobsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListSyncJobsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListSyncJobsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListSyncJobsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListSyncJobsCommand = ListSyncJobsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSyncResourcesCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListSyncResourcesCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListSyncResourcesCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "IoTTwinMakerClient";
|
|
28
|
+
const commandName = "ListSyncResourcesCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListSyncResourcesRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListSyncResourcesResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListSyncResourcesCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListSyncResourcesCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListSyncResourcesCommand = ListSyncResourcesCommand;
|
|
@@ -5,10 +5,12 @@ tslib_1.__exportStar(require("./BatchPutPropertyValuesCommand"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./CreateComponentTypeCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateEntityCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./CreateSceneCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./CreateSyncJobCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./CreateWorkspaceCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DeleteComponentTypeCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DeleteEntityCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DeleteSceneCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DeleteSyncJobCommand"), exports);
|
|
12
14
|
tslib_1.__exportStar(require("./DeleteWorkspaceCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./ExecuteQueryCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./GetComponentTypeCommand"), exports);
|
|
@@ -17,10 +19,13 @@ tslib_1.__exportStar(require("./GetPricingPlanCommand"), exports);
|
|
|
17
19
|
tslib_1.__exportStar(require("./GetPropertyValueCommand"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./GetPropertyValueHistoryCommand"), exports);
|
|
19
21
|
tslib_1.__exportStar(require("./GetSceneCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./GetSyncJobCommand"), exports);
|
|
20
23
|
tslib_1.__exportStar(require("./GetWorkspaceCommand"), exports);
|
|
21
24
|
tslib_1.__exportStar(require("./ListComponentTypesCommand"), exports);
|
|
22
25
|
tslib_1.__exportStar(require("./ListEntitiesCommand"), exports);
|
|
23
26
|
tslib_1.__exportStar(require("./ListScenesCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ListSyncJobsCommand"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./ListSyncResourcesCommand"), exports);
|
|
24
29
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
25
30
|
tslib_1.__exportStar(require("./ListWorkspacesCommand"), exports);
|
|
26
31
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
@@ -6,7 +6,7 @@ exports.ruleSet = {
|
|
|
6
6
|
parameters: {
|
|
7
7
|
Region: {
|
|
8
8
|
builtIn: "AWS::Region",
|
|
9
|
-
required:
|
|
9
|
+
required: true,
|
|
10
10
|
documentation: "The AWS region used to dispatch the request.",
|
|
11
11
|
type: "String",
|
|
12
12
|
},
|
|
@@ -56,15 +56,6 @@ exports.ruleSet = {
|
|
|
56
56
|
},
|
|
57
57
|
],
|
|
58
58
|
},
|
|
59
|
-
{
|
|
60
|
-
fn: "parseURL",
|
|
61
|
-
argv: [
|
|
62
|
-
{
|
|
63
|
-
ref: "Endpoint",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
assign: "url",
|
|
67
|
-
},
|
|
68
59
|
],
|
|
69
60
|
type: "tree",
|
|
70
61
|
rules: [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateEntityRequestFilterSensitiveLog = exports.GetEntityResponseFilterSensitiveLog = exports.CreateEntityRequestFilterSensitiveLog = exports.ComponentUpdateRequestFilterSensitiveLog = exports.ComponentResponseFilterSensitiveLog = exports.ComponentRequestFilterSensitiveLog = exports.PropertyResponseFilterSensitiveLog = exports.PropertyRequestFilterSensitiveLog = exports.UpdateComponentTypeRequestFilterSensitiveLog = exports.GetComponentTypeResponseFilterSensitiveLog = exports.CreateComponentTypeRequestFilterSensitiveLog = exports.GetPropertyValueResponseFilterSensitiveLog = exports.BatchPutPropertyValuesResponseFilterSensitiveLog = exports.PropertyDefinitionResponseFilterSensitiveLog = exports.PropertyDefinitionRequestFilterSensitiveLog = exports.BatchPutPropertyErrorEntryFilterSensitiveLog = exports.GetPropertyValueHistoryResponseFilterSensitiveLog = exports.BatchPutPropertyValuesRequestFilterSensitiveLog = exports.GetPropertyValueRequestFilterSensitiveLog = exports.BatchPutPropertyErrorFilterSensitiveLog = exports.TabularConditionsFilterSensitiveLog = exports.PropertyValueHistoryFilterSensitiveLog = exports.PropertyValueEntryFilterSensitiveLog = exports.GetPropertyValueHistoryRequestFilterSensitiveLog = exports.DataTypeFilterSensitiveLog = exports.PropertyValueFilterSensitiveLog = exports.PropertyLatestValueFilterSensitiveLog = exports.PropertyFilterFilterSensitiveLog = exports.DataValueFilterSensitiveLog = exports.UpdateWorkspaceResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.DeleteComponentTypeRequestFilterSensitiveLog = exports.CreateWorkspaceResponseFilterSensitiveLog = exports.CreateWorkspaceRequestFilterSensitiveLog = exports.CreateSyncJobResponseFilterSensitiveLog = exports.CreateSyncJobRequestFilterSensitiveLog = exports.CreateSceneResponseFilterSensitiveLog = exports.CreateSceneRequestFilterSensitiveLog = exports.CreateEntityResponseFilterSensitiveLog = exports.ComponentPropertyGroupRequestFilterSensitiveLog = exports.CreateComponentTypeResponseFilterSensitiveLog = exports.PropertyGroupRequestFilterSensitiveLog = exports.RelationshipFilterSensitiveLog = exports.FunctionRequestFilterSensitiveLog = exports.DataConnectorFilterSensitiveLog = exports.LambdaFunctionFilterSensitiveLog = exports.RelationshipValueFilterSensitiveLog = exports.EntityPropertyReferenceFilterSensitiveLog = exports.ParentEntityUpdateType = exports.ComponentUpdateType = exports.TooManyTagsException = exports.SyncResourceFilter = exports.SyncResourceState = exports.SyncResourceType = exports.ListEntitiesFilter = exports.ListComponentTypesFilter = exports.OrderByTime = exports.InterpolationType = exports.Order = exports.ConnectorTimeoutException = exports.ConnectorFailureException = exports.UpdateReason = exports.PricingMode = exports.PricingTier = exports.ErrorCode = exports.QueryTimeoutException = exports.ColumnType = exports.SyncJobState = exports.PropertyGroupUpdateType = exports.PropertyUpdateType = exports.ServiceQuotaExceededException = exports.State = exports.GroupType = exports.Type = exports.Scope = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.SyncResourceStatusFilterSensitiveLog = exports.ListSyncResourcesRequestFilterSensitiveLog = exports.SyncResourceFilterFilterSensitiveLog = exports.ListSyncJobsResponseFilterSensitiveLog = exports.SyncJobSummaryFilterSensitiveLog = exports.ListSyncJobsRequestFilterSensitiveLog = exports.ListScenesResponseFilterSensitiveLog = exports.SceneSummaryFilterSensitiveLog = exports.ListScenesRequestFilterSensitiveLog = exports.ListEntitiesResponseFilterSensitiveLog = exports.EntitySummaryFilterSensitiveLog = exports.ListEntitiesRequestFilterSensitiveLog = exports.ListEntitiesFilterFilterSensitiveLog = exports.ListComponentTypesResponseFilterSensitiveLog = exports.ComponentTypeSummaryFilterSensitiveLog = exports.ListComponentTypesRequestFilterSensitiveLog = exports.ListComponentTypesFilterFilterSensitiveLog = exports.GetWorkspaceResponseFilterSensitiveLog = exports.GetWorkspaceRequestFilterSensitiveLog = exports.GetSyncJobResponseFilterSensitiveLog = exports.SyncJobStatusFilterSensitiveLog = exports.GetSyncJobRequestFilterSensitiveLog = exports.GetSceneResponseFilterSensitiveLog = exports.GetSceneRequestFilterSensitiveLog = exports.InterpolationParametersFilterSensitiveLog = exports.OrderByFilterSensitiveLog = exports.GetPricingPlanResponseFilterSensitiveLog = exports.PricingPlanFilterSensitiveLog = exports.BundleInformationFilterSensitiveLog = exports.GetPricingPlanRequestFilterSensitiveLog = exports.ComponentPropertyGroupResponseFilterSensitiveLog = exports.GetEntityRequestFilterSensitiveLog = exports.StatusFilterSensitiveLog = exports.ErrorDetailsFilterSensitiveLog = exports.PropertyGroupResponseFilterSensitiveLog = exports.FunctionResponseFilterSensitiveLog = exports.GetComponentTypeRequestFilterSensitiveLog = exports.ExecuteQueryResponseFilterSensitiveLog = exports.RowFilterSensitiveLog = exports.ColumnDescriptionFilterSensitiveLog = exports.ExecuteQueryRequestFilterSensitiveLog = exports.DeleteWorkspaceResponseFilterSensitiveLog = exports.DeleteWorkspaceRequestFilterSensitiveLog = exports.DeleteSyncJobResponseFilterSensitiveLog = exports.DeleteSyncJobRequestFilterSensitiveLog = exports.DeleteSceneResponseFilterSensitiveLog = exports.DeleteSceneRequestFilterSensitiveLog = exports.DeleteEntityResponseFilterSensitiveLog = exports.DeleteEntityRequestFilterSensitiveLog = exports.DeleteComponentTypeResponseFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UpdateEntityRequestFilterSensitiveLog = exports.GetEntityResponseFilterSensitiveLog = exports.CreateEntityRequestFilterSensitiveLog = exports.ComponentUpdateRequestFilterSensitiveLog = exports.ComponentResponseFilterSensitiveLog = exports.ComponentRequestFilterSensitiveLog = exports.PropertyResponseFilterSensitiveLog = exports.PropertyRequestFilterSensitiveLog = exports.UpdateComponentTypeRequestFilterSensitiveLog = exports.GetComponentTypeResponseFilterSensitiveLog = exports.CreateComponentTypeRequestFilterSensitiveLog = exports.GetPropertyValueResponseFilterSensitiveLog = exports.BatchPutPropertyValuesResponseFilterSensitiveLog = exports.PropertyDefinitionResponseFilterSensitiveLog = exports.PropertyDefinitionRequestFilterSensitiveLog = exports.BatchPutPropertyErrorEntryFilterSensitiveLog = exports.GetPropertyValueHistoryResponseFilterSensitiveLog = exports.BatchPutPropertyValuesRequestFilterSensitiveLog = exports.GetPropertyValueRequestFilterSensitiveLog = exports.BatchPutPropertyErrorFilterSensitiveLog = exports.TabularConditionsFilterSensitiveLog = exports.PropertyValueHistoryFilterSensitiveLog = exports.PropertyValueEntryFilterSensitiveLog = exports.GetPropertyValueHistoryRequestFilterSensitiveLog = exports.DataTypeFilterSensitiveLog = exports.PropertyValueFilterSensitiveLog = exports.PropertyLatestValueFilterSensitiveLog = exports.PropertyFilterFilterSensitiveLog = exports.DataValueFilterSensitiveLog = exports.UpdateWorkspaceResponseFilterSensitiveLog = exports.UpdateWorkspaceRequestFilterSensitiveLog = exports.UpdateSceneResponseFilterSensitiveLog = exports.UpdateSceneRequestFilterSensitiveLog = exports.UpdatePricingPlanResponseFilterSensitiveLog = exports.UpdatePricingPlanRequestFilterSensitiveLog = exports.UpdateEntityResponseFilterSensitiveLog = exports.ParentEntityUpdateRequestFilterSensitiveLog = exports.UpdateComponentTypeResponseFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListWorkspacesResponseFilterSensitiveLog = exports.WorkspaceSummaryFilterSensitiveLog = exports.ListWorkspacesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSyncResourcesResponseFilterSensitiveLog = exports.SyncResourceSummaryFilterSensitiveLog = void 0;
|
|
6
6
|
const IoTTwinMakerServiceException_1 = require("./IoTTwinMakerServiceException");
|
|
7
7
|
class AccessDeniedException extends IoTTwinMakerServiceException_1.IoTTwinMakerServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -135,6 +135,14 @@ var PropertyGroupUpdateType;
|
|
|
135
135
|
PropertyGroupUpdateType["DELETE"] = "DELETE";
|
|
136
136
|
PropertyGroupUpdateType["UPDATE"] = "UPDATE";
|
|
137
137
|
})(PropertyGroupUpdateType = exports.PropertyGroupUpdateType || (exports.PropertyGroupUpdateType = {}));
|
|
138
|
+
var SyncJobState;
|
|
139
|
+
(function (SyncJobState) {
|
|
140
|
+
SyncJobState["ACTIVE"] = "ACTIVE";
|
|
141
|
+
SyncJobState["CREATING"] = "CREATING";
|
|
142
|
+
SyncJobState["DELETING"] = "DELETING";
|
|
143
|
+
SyncJobState["ERROR"] = "ERROR";
|
|
144
|
+
SyncJobState["INITIALIZING"] = "INITIALIZING";
|
|
145
|
+
})(SyncJobState = exports.SyncJobState || (exports.SyncJobState = {}));
|
|
138
146
|
var ColumnType;
|
|
139
147
|
(function (ColumnType) {
|
|
140
148
|
ColumnType["EDGE"] = "EDGE";
|
|
@@ -158,6 +166,9 @@ exports.QueryTimeoutException = QueryTimeoutException;
|
|
|
158
166
|
var ErrorCode;
|
|
159
167
|
(function (ErrorCode) {
|
|
160
168
|
ErrorCode["INTERNAL_FAILURE"] = "INTERNAL_FAILURE";
|
|
169
|
+
ErrorCode["SYNC_CREATING_ERROR"] = "SYNC_CREATING_ERROR";
|
|
170
|
+
ErrorCode["SYNC_INITIALIZING_ERROR"] = "SYNC_INITIALIZING_ERROR";
|
|
171
|
+
ErrorCode["SYNC_PROCESSING_ERROR"] = "SYNC_PROCESSING_ERROR";
|
|
161
172
|
ErrorCode["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
162
173
|
})(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
|
|
163
174
|
var PricingTier;
|
|
@@ -245,6 +256,33 @@ var ListEntitiesFilter;
|
|
|
245
256
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
246
257
|
};
|
|
247
258
|
})(ListEntitiesFilter = exports.ListEntitiesFilter || (exports.ListEntitiesFilter = {}));
|
|
259
|
+
var SyncResourceType;
|
|
260
|
+
(function (SyncResourceType) {
|
|
261
|
+
SyncResourceType["COMPONENT_TYPE"] = "COMPONENT_TYPE";
|
|
262
|
+
SyncResourceType["ENTITY"] = "ENTITY";
|
|
263
|
+
})(SyncResourceType = exports.SyncResourceType || (exports.SyncResourceType = {}));
|
|
264
|
+
var SyncResourceState;
|
|
265
|
+
(function (SyncResourceState) {
|
|
266
|
+
SyncResourceState["DELETED"] = "DELETED";
|
|
267
|
+
SyncResourceState["ERROR"] = "ERROR";
|
|
268
|
+
SyncResourceState["INITIALIZING"] = "INITIALIZING";
|
|
269
|
+
SyncResourceState["IN_SYNC"] = "IN_SYNC";
|
|
270
|
+
SyncResourceState["PROCESSING"] = "PROCESSING";
|
|
271
|
+
})(SyncResourceState = exports.SyncResourceState || (exports.SyncResourceState = {}));
|
|
272
|
+
var SyncResourceFilter;
|
|
273
|
+
(function (SyncResourceFilter) {
|
|
274
|
+
SyncResourceFilter.visit = (value, visitor) => {
|
|
275
|
+
if (value.state !== undefined)
|
|
276
|
+
return visitor.state(value.state);
|
|
277
|
+
if (value.resourceType !== undefined)
|
|
278
|
+
return visitor.resourceType(value.resourceType);
|
|
279
|
+
if (value.resourceId !== undefined)
|
|
280
|
+
return visitor.resourceId(value.resourceId);
|
|
281
|
+
if (value.externalId !== undefined)
|
|
282
|
+
return visitor.externalId(value.externalId);
|
|
283
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
284
|
+
};
|
|
285
|
+
})(SyncResourceFilter = exports.SyncResourceFilter || (exports.SyncResourceFilter = {}));
|
|
248
286
|
class TooManyTagsException extends IoTTwinMakerServiceException_1.IoTTwinMakerServiceException {
|
|
249
287
|
constructor(opts) {
|
|
250
288
|
super({
|
|
@@ -317,6 +355,14 @@ const CreateSceneResponseFilterSensitiveLog = (obj) => ({
|
|
|
317
355
|
...obj,
|
|
318
356
|
});
|
|
319
357
|
exports.CreateSceneResponseFilterSensitiveLog = CreateSceneResponseFilterSensitiveLog;
|
|
358
|
+
const CreateSyncJobRequestFilterSensitiveLog = (obj) => ({
|
|
359
|
+
...obj,
|
|
360
|
+
});
|
|
361
|
+
exports.CreateSyncJobRequestFilterSensitiveLog = CreateSyncJobRequestFilterSensitiveLog;
|
|
362
|
+
const CreateSyncJobResponseFilterSensitiveLog = (obj) => ({
|
|
363
|
+
...obj,
|
|
364
|
+
});
|
|
365
|
+
exports.CreateSyncJobResponseFilterSensitiveLog = CreateSyncJobResponseFilterSensitiveLog;
|
|
320
366
|
const CreateWorkspaceRequestFilterSensitiveLog = (obj) => ({
|
|
321
367
|
...obj,
|
|
322
368
|
});
|
|
@@ -349,6 +395,14 @@ const DeleteSceneResponseFilterSensitiveLog = (obj) => ({
|
|
|
349
395
|
...obj,
|
|
350
396
|
});
|
|
351
397
|
exports.DeleteSceneResponseFilterSensitiveLog = DeleteSceneResponseFilterSensitiveLog;
|
|
398
|
+
const DeleteSyncJobRequestFilterSensitiveLog = (obj) => ({
|
|
399
|
+
...obj,
|
|
400
|
+
});
|
|
401
|
+
exports.DeleteSyncJobRequestFilterSensitiveLog = DeleteSyncJobRequestFilterSensitiveLog;
|
|
402
|
+
const DeleteSyncJobResponseFilterSensitiveLog = (obj) => ({
|
|
403
|
+
...obj,
|
|
404
|
+
});
|
|
405
|
+
exports.DeleteSyncJobResponseFilterSensitiveLog = DeleteSyncJobResponseFilterSensitiveLog;
|
|
352
406
|
const DeleteWorkspaceRequestFilterSensitiveLog = (obj) => ({
|
|
353
407
|
...obj,
|
|
354
408
|
});
|
|
@@ -433,6 +487,18 @@ const GetSceneResponseFilterSensitiveLog = (obj) => ({
|
|
|
433
487
|
...obj,
|
|
434
488
|
});
|
|
435
489
|
exports.GetSceneResponseFilterSensitiveLog = GetSceneResponseFilterSensitiveLog;
|
|
490
|
+
const GetSyncJobRequestFilterSensitiveLog = (obj) => ({
|
|
491
|
+
...obj,
|
|
492
|
+
});
|
|
493
|
+
exports.GetSyncJobRequestFilterSensitiveLog = GetSyncJobRequestFilterSensitiveLog;
|
|
494
|
+
const SyncJobStatusFilterSensitiveLog = (obj) => ({
|
|
495
|
+
...obj,
|
|
496
|
+
});
|
|
497
|
+
exports.SyncJobStatusFilterSensitiveLog = SyncJobStatusFilterSensitiveLog;
|
|
498
|
+
const GetSyncJobResponseFilterSensitiveLog = (obj) => ({
|
|
499
|
+
...obj,
|
|
500
|
+
});
|
|
501
|
+
exports.GetSyncJobResponseFilterSensitiveLog = GetSyncJobResponseFilterSensitiveLog;
|
|
436
502
|
const GetWorkspaceRequestFilterSensitiveLog = (obj) => ({
|
|
437
503
|
...obj,
|
|
438
504
|
});
|
|
@@ -501,6 +567,48 @@ const ListScenesResponseFilterSensitiveLog = (obj) => ({
|
|
|
501
567
|
...obj,
|
|
502
568
|
});
|
|
503
569
|
exports.ListScenesResponseFilterSensitiveLog = ListScenesResponseFilterSensitiveLog;
|
|
570
|
+
const ListSyncJobsRequestFilterSensitiveLog = (obj) => ({
|
|
571
|
+
...obj,
|
|
572
|
+
});
|
|
573
|
+
exports.ListSyncJobsRequestFilterSensitiveLog = ListSyncJobsRequestFilterSensitiveLog;
|
|
574
|
+
const SyncJobSummaryFilterSensitiveLog = (obj) => ({
|
|
575
|
+
...obj,
|
|
576
|
+
});
|
|
577
|
+
exports.SyncJobSummaryFilterSensitiveLog = SyncJobSummaryFilterSensitiveLog;
|
|
578
|
+
const ListSyncJobsResponseFilterSensitiveLog = (obj) => ({
|
|
579
|
+
...obj,
|
|
580
|
+
});
|
|
581
|
+
exports.ListSyncJobsResponseFilterSensitiveLog = ListSyncJobsResponseFilterSensitiveLog;
|
|
582
|
+
const SyncResourceFilterFilterSensitiveLog = (obj) => {
|
|
583
|
+
if (obj.state !== undefined)
|
|
584
|
+
return { state: obj.state };
|
|
585
|
+
if (obj.resourceType !== undefined)
|
|
586
|
+
return { resourceType: obj.resourceType };
|
|
587
|
+
if (obj.resourceId !== undefined)
|
|
588
|
+
return { resourceId: obj.resourceId };
|
|
589
|
+
if (obj.externalId !== undefined)
|
|
590
|
+
return { externalId: obj.externalId };
|
|
591
|
+
if (obj.$unknown !== undefined)
|
|
592
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
593
|
+
};
|
|
594
|
+
exports.SyncResourceFilterFilterSensitiveLog = SyncResourceFilterFilterSensitiveLog;
|
|
595
|
+
const ListSyncResourcesRequestFilterSensitiveLog = (obj) => ({
|
|
596
|
+
...obj,
|
|
597
|
+
...(obj.filters && { filters: obj.filters.map((item) => (0, exports.SyncResourceFilterFilterSensitiveLog)(item)) }),
|
|
598
|
+
});
|
|
599
|
+
exports.ListSyncResourcesRequestFilterSensitiveLog = ListSyncResourcesRequestFilterSensitiveLog;
|
|
600
|
+
const SyncResourceStatusFilterSensitiveLog = (obj) => ({
|
|
601
|
+
...obj,
|
|
602
|
+
});
|
|
603
|
+
exports.SyncResourceStatusFilterSensitiveLog = SyncResourceStatusFilterSensitiveLog;
|
|
604
|
+
const SyncResourceSummaryFilterSensitiveLog = (obj) => ({
|
|
605
|
+
...obj,
|
|
606
|
+
});
|
|
607
|
+
exports.SyncResourceSummaryFilterSensitiveLog = SyncResourceSummaryFilterSensitiveLog;
|
|
608
|
+
const ListSyncResourcesResponseFilterSensitiveLog = (obj) => ({
|
|
609
|
+
...obj,
|
|
610
|
+
});
|
|
611
|
+
exports.ListSyncResourcesResponseFilterSensitiveLog = ListSyncResourcesResponseFilterSensitiveLog;
|
|
504
612
|
const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
505
613
|
...obj,
|
|
506
614
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListSyncJobs = void 0;
|
|
4
|
+
const ListSyncJobsCommand_1 = require("../commands/ListSyncJobsCommand");
|
|
5
|
+
const IoTTwinMaker_1 = require("../IoTTwinMaker");
|
|
6
|
+
const IoTTwinMakerClient_1 = require("../IoTTwinMakerClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListSyncJobsCommand_1.ListSyncJobsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listSyncJobs(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListSyncJobs(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof IoTTwinMaker_1.IoTTwinMaker) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof IoTTwinMakerClient_1.IoTTwinMakerClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListSyncJobs = paginateListSyncJobs;
|