@aws-sdk/client-iotthingsgraph 3.183.0 → 3.185.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/IoTThingsGraph.js +149 -142
  4. package/dist-es/IoTThingsGraphClient.js +28 -22
  5. package/dist-es/commands/AssociateEntityToThingCommand.js +28 -21
  6. package/dist-es/commands/CreateFlowTemplateCommand.js +28 -21
  7. package/dist-es/commands/CreateSystemInstanceCommand.js +28 -21
  8. package/dist-es/commands/CreateSystemTemplateCommand.js +28 -21
  9. package/dist-es/commands/DeleteFlowTemplateCommand.js +28 -21
  10. package/dist-es/commands/DeleteNamespaceCommand.js +28 -21
  11. package/dist-es/commands/DeleteSystemInstanceCommand.js +28 -21
  12. package/dist-es/commands/DeleteSystemTemplateCommand.js +28 -21
  13. package/dist-es/commands/DeploySystemInstanceCommand.js +28 -21
  14. package/dist-es/commands/DeprecateFlowTemplateCommand.js +28 -21
  15. package/dist-es/commands/DeprecateSystemTemplateCommand.js +28 -21
  16. package/dist-es/commands/DescribeNamespaceCommand.js +28 -21
  17. package/dist-es/commands/DissociateEntityFromThingCommand.js +28 -21
  18. package/dist-es/commands/GetEntitiesCommand.js +28 -21
  19. package/dist-es/commands/GetFlowTemplateCommand.js +28 -21
  20. package/dist-es/commands/GetFlowTemplateRevisionsCommand.js +28 -21
  21. package/dist-es/commands/GetNamespaceDeletionStatusCommand.js +28 -21
  22. package/dist-es/commands/GetSystemInstanceCommand.js +28 -21
  23. package/dist-es/commands/GetSystemTemplateCommand.js +28 -21
  24. package/dist-es/commands/GetSystemTemplateRevisionsCommand.js +28 -21
  25. package/dist-es/commands/GetUploadStatusCommand.js +28 -21
  26. package/dist-es/commands/ListFlowExecutionMessagesCommand.js +28 -21
  27. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  28. package/dist-es/commands/SearchEntitiesCommand.js +28 -21
  29. package/dist-es/commands/SearchFlowExecutionsCommand.js +28 -21
  30. package/dist-es/commands/SearchFlowTemplatesCommand.js +28 -21
  31. package/dist-es/commands/SearchSystemInstancesCommand.js +28 -21
  32. package/dist-es/commands/SearchSystemTemplatesCommand.js +28 -21
  33. package/dist-es/commands/SearchThingsCommand.js +28 -21
  34. package/dist-es/commands/TagResourceCommand.js +28 -21
  35. package/dist-es/commands/UndeploySystemInstanceCommand.js +28 -21
  36. package/dist-es/commands/UntagResourceCommand.js +28 -21
  37. package/dist-es/commands/UpdateFlowTemplateCommand.js +28 -21
  38. package/dist-es/commands/UpdateSystemTemplateCommand.js +28 -21
  39. package/dist-es/commands/UploadEntityDefinitionsCommand.js +28 -21
  40. package/dist-es/endpoints.js +8 -8
  41. package/dist-es/models/IoTThingsGraphServiceException.js +10 -5
  42. package/dist-es/models/models_0.js +166 -341
  43. package/dist-es/pagination/GetFlowTemplateRevisionsPaginator.js +68 -25
  44. package/dist-es/pagination/GetSystemTemplateRevisionsPaginator.js +68 -25
  45. package/dist-es/pagination/ListFlowExecutionMessagesPaginator.js +68 -25
  46. package/dist-es/pagination/ListTagsForResourcePaginator.js +68 -25
  47. package/dist-es/pagination/SearchEntitiesPaginator.js +68 -25
  48. package/dist-es/pagination/SearchFlowExecutionsPaginator.js +68 -25
  49. package/dist-es/pagination/SearchFlowTemplatesPaginator.js +68 -25
  50. package/dist-es/pagination/SearchSystemInstancesPaginator.js +68 -25
  51. package/dist-es/pagination/SearchSystemTemplatesPaginator.js +68 -25
  52. package/dist-es/pagination/SearchThingsPaginator.js +68 -25
  53. package/dist-es/protocols/Aws_json1_1.js +2918 -2228
  54. package/dist-es/runtimeConfig.browser.js +12 -26
  55. package/dist-es/runtimeConfig.js +12 -30
  56. package/dist-es/runtimeConfig.native.js +5 -8
  57. package/dist-es/runtimeConfig.shared.js +11 -8
  58. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AssociateEntityToThingCommand, } from "./commands/AssociateEntityToThingCommand";
2
3
  import { CreateFlowTemplateCommand, } from "./commands/CreateFlowTemplateCommand";
3
4
  import { CreateSystemInstanceCommand, } from "./commands/CreateSystemInstanceCommand";
@@ -34,495 +35,501 @@ import { UpdateFlowTemplateCommand, } from "./commands/UpdateFlowTemplateCommand
34
35
  import { UpdateSystemTemplateCommand, } from "./commands/UpdateSystemTemplateCommand";
35
36
  import { UploadEntityDefinitionsCommand, } from "./commands/UploadEntityDefinitionsCommand";
36
37
  import { IoTThingsGraphClient } from "./IoTThingsGraphClient";
37
- export class IoTThingsGraph extends IoTThingsGraphClient {
38
- associateEntityToThing(args, optionsOrCb, cb) {
39
- const command = new AssociateEntityToThingCommand(args);
38
+ var IoTThingsGraph = (function (_super) {
39
+ __extends(IoTThingsGraph, _super);
40
+ function IoTThingsGraph() {
41
+ return _super !== null && _super.apply(this, arguments) || this;
42
+ }
43
+ IoTThingsGraph.prototype.associateEntityToThing = function (args, optionsOrCb, cb) {
44
+ var command = new AssociateEntityToThingCommand(args);
40
45
  if (typeof optionsOrCb === "function") {
41
46
  this.send(command, optionsOrCb);
42
47
  }
43
48
  else if (typeof cb === "function") {
44
49
  if (typeof optionsOrCb !== "object")
45
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
51
  this.send(command, optionsOrCb || {}, cb);
47
52
  }
48
53
  else {
49
54
  return this.send(command, optionsOrCb);
50
55
  }
51
- }
52
- createFlowTemplate(args, optionsOrCb, cb) {
53
- const command = new CreateFlowTemplateCommand(args);
56
+ };
57
+ IoTThingsGraph.prototype.createFlowTemplate = function (args, optionsOrCb, cb) {
58
+ var command = new CreateFlowTemplateCommand(args);
54
59
  if (typeof optionsOrCb === "function") {
55
60
  this.send(command, optionsOrCb);
56
61
  }
57
62
  else if (typeof cb === "function") {
58
63
  if (typeof optionsOrCb !== "object")
59
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
65
  this.send(command, optionsOrCb || {}, cb);
61
66
  }
62
67
  else {
63
68
  return this.send(command, optionsOrCb);
64
69
  }
65
- }
66
- createSystemInstance(args, optionsOrCb, cb) {
67
- const command = new CreateSystemInstanceCommand(args);
70
+ };
71
+ IoTThingsGraph.prototype.createSystemInstance = function (args, optionsOrCb, cb) {
72
+ var command = new CreateSystemInstanceCommand(args);
68
73
  if (typeof optionsOrCb === "function") {
69
74
  this.send(command, optionsOrCb);
70
75
  }
71
76
  else if (typeof cb === "function") {
72
77
  if (typeof optionsOrCb !== "object")
73
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
79
  this.send(command, optionsOrCb || {}, cb);
75
80
  }
76
81
  else {
77
82
  return this.send(command, optionsOrCb);
78
83
  }
79
- }
80
- createSystemTemplate(args, optionsOrCb, cb) {
81
- const command = new CreateSystemTemplateCommand(args);
84
+ };
85
+ IoTThingsGraph.prototype.createSystemTemplate = function (args, optionsOrCb, cb) {
86
+ var command = new CreateSystemTemplateCommand(args);
82
87
  if (typeof optionsOrCb === "function") {
83
88
  this.send(command, optionsOrCb);
84
89
  }
85
90
  else if (typeof cb === "function") {
86
91
  if (typeof optionsOrCb !== "object")
87
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
93
  this.send(command, optionsOrCb || {}, cb);
89
94
  }
90
95
  else {
91
96
  return this.send(command, optionsOrCb);
92
97
  }
93
- }
94
- deleteFlowTemplate(args, optionsOrCb, cb) {
95
- const command = new DeleteFlowTemplateCommand(args);
98
+ };
99
+ IoTThingsGraph.prototype.deleteFlowTemplate = function (args, optionsOrCb, cb) {
100
+ var command = new DeleteFlowTemplateCommand(args);
96
101
  if (typeof optionsOrCb === "function") {
97
102
  this.send(command, optionsOrCb);
98
103
  }
99
104
  else if (typeof cb === "function") {
100
105
  if (typeof optionsOrCb !== "object")
101
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
107
  this.send(command, optionsOrCb || {}, cb);
103
108
  }
104
109
  else {
105
110
  return this.send(command, optionsOrCb);
106
111
  }
107
- }
108
- deleteNamespace(args, optionsOrCb, cb) {
109
- const command = new DeleteNamespaceCommand(args);
112
+ };
113
+ IoTThingsGraph.prototype.deleteNamespace = function (args, optionsOrCb, cb) {
114
+ var command = new DeleteNamespaceCommand(args);
110
115
  if (typeof optionsOrCb === "function") {
111
116
  this.send(command, optionsOrCb);
112
117
  }
113
118
  else if (typeof cb === "function") {
114
119
  if (typeof optionsOrCb !== "object")
115
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
121
  this.send(command, optionsOrCb || {}, cb);
117
122
  }
118
123
  else {
119
124
  return this.send(command, optionsOrCb);
120
125
  }
121
- }
122
- deleteSystemInstance(args, optionsOrCb, cb) {
123
- const command = new DeleteSystemInstanceCommand(args);
126
+ };
127
+ IoTThingsGraph.prototype.deleteSystemInstance = function (args, optionsOrCb, cb) {
128
+ var command = new DeleteSystemInstanceCommand(args);
124
129
  if (typeof optionsOrCb === "function") {
125
130
  this.send(command, optionsOrCb);
126
131
  }
127
132
  else if (typeof cb === "function") {
128
133
  if (typeof optionsOrCb !== "object")
129
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
134
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
130
135
  this.send(command, optionsOrCb || {}, cb);
131
136
  }
132
137
  else {
133
138
  return this.send(command, optionsOrCb);
134
139
  }
135
- }
136
- deleteSystemTemplate(args, optionsOrCb, cb) {
137
- const command = new DeleteSystemTemplateCommand(args);
140
+ };
141
+ IoTThingsGraph.prototype.deleteSystemTemplate = function (args, optionsOrCb, cb) {
142
+ var command = new DeleteSystemTemplateCommand(args);
138
143
  if (typeof optionsOrCb === "function") {
139
144
  this.send(command, optionsOrCb);
140
145
  }
141
146
  else if (typeof cb === "function") {
142
147
  if (typeof optionsOrCb !== "object")
143
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
148
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
144
149
  this.send(command, optionsOrCb || {}, cb);
145
150
  }
146
151
  else {
147
152
  return this.send(command, optionsOrCb);
148
153
  }
149
- }
150
- deploySystemInstance(args, optionsOrCb, cb) {
151
- const command = new DeploySystemInstanceCommand(args);
154
+ };
155
+ IoTThingsGraph.prototype.deploySystemInstance = function (args, optionsOrCb, cb) {
156
+ var command = new DeploySystemInstanceCommand(args);
152
157
  if (typeof optionsOrCb === "function") {
153
158
  this.send(command, optionsOrCb);
154
159
  }
155
160
  else if (typeof cb === "function") {
156
161
  if (typeof optionsOrCb !== "object")
157
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
162
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
158
163
  this.send(command, optionsOrCb || {}, cb);
159
164
  }
160
165
  else {
161
166
  return this.send(command, optionsOrCb);
162
167
  }
163
- }
164
- deprecateFlowTemplate(args, optionsOrCb, cb) {
165
- const command = new DeprecateFlowTemplateCommand(args);
168
+ };
169
+ IoTThingsGraph.prototype.deprecateFlowTemplate = function (args, optionsOrCb, cb) {
170
+ var command = new DeprecateFlowTemplateCommand(args);
166
171
  if (typeof optionsOrCb === "function") {
167
172
  this.send(command, optionsOrCb);
168
173
  }
169
174
  else if (typeof cb === "function") {
170
175
  if (typeof optionsOrCb !== "object")
171
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
177
  this.send(command, optionsOrCb || {}, cb);
173
178
  }
174
179
  else {
175
180
  return this.send(command, optionsOrCb);
176
181
  }
177
- }
178
- deprecateSystemTemplate(args, optionsOrCb, cb) {
179
- const command = new DeprecateSystemTemplateCommand(args);
182
+ };
183
+ IoTThingsGraph.prototype.deprecateSystemTemplate = function (args, optionsOrCb, cb) {
184
+ var command = new DeprecateSystemTemplateCommand(args);
180
185
  if (typeof optionsOrCb === "function") {
181
186
  this.send(command, optionsOrCb);
182
187
  }
183
188
  else if (typeof cb === "function") {
184
189
  if (typeof optionsOrCb !== "object")
185
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
190
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
186
191
  this.send(command, optionsOrCb || {}, cb);
187
192
  }
188
193
  else {
189
194
  return this.send(command, optionsOrCb);
190
195
  }
191
- }
192
- describeNamespace(args, optionsOrCb, cb) {
193
- const command = new DescribeNamespaceCommand(args);
196
+ };
197
+ IoTThingsGraph.prototype.describeNamespace = function (args, optionsOrCb, cb) {
198
+ var command = new DescribeNamespaceCommand(args);
194
199
  if (typeof optionsOrCb === "function") {
195
200
  this.send(command, optionsOrCb);
196
201
  }
197
202
  else if (typeof cb === "function") {
198
203
  if (typeof optionsOrCb !== "object")
199
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
200
205
  this.send(command, optionsOrCb || {}, cb);
201
206
  }
202
207
  else {
203
208
  return this.send(command, optionsOrCb);
204
209
  }
205
- }
206
- dissociateEntityFromThing(args, optionsOrCb, cb) {
207
- const command = new DissociateEntityFromThingCommand(args);
210
+ };
211
+ IoTThingsGraph.prototype.dissociateEntityFromThing = function (args, optionsOrCb, cb) {
212
+ var command = new DissociateEntityFromThingCommand(args);
208
213
  if (typeof optionsOrCb === "function") {
209
214
  this.send(command, optionsOrCb);
210
215
  }
211
216
  else if (typeof cb === "function") {
212
217
  if (typeof optionsOrCb !== "object")
213
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
218
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
219
  this.send(command, optionsOrCb || {}, cb);
215
220
  }
216
221
  else {
217
222
  return this.send(command, optionsOrCb);
218
223
  }
219
- }
220
- getEntities(args, optionsOrCb, cb) {
221
- const command = new GetEntitiesCommand(args);
224
+ };
225
+ IoTThingsGraph.prototype.getEntities = function (args, optionsOrCb, cb) {
226
+ var command = new GetEntitiesCommand(args);
222
227
  if (typeof optionsOrCb === "function") {
223
228
  this.send(command, optionsOrCb);
224
229
  }
225
230
  else if (typeof cb === "function") {
226
231
  if (typeof optionsOrCb !== "object")
227
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
232
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
233
  this.send(command, optionsOrCb || {}, cb);
229
234
  }
230
235
  else {
231
236
  return this.send(command, optionsOrCb);
232
237
  }
233
- }
234
- getFlowTemplate(args, optionsOrCb, cb) {
235
- const command = new GetFlowTemplateCommand(args);
238
+ };
239
+ IoTThingsGraph.prototype.getFlowTemplate = function (args, optionsOrCb, cb) {
240
+ var command = new GetFlowTemplateCommand(args);
236
241
  if (typeof optionsOrCb === "function") {
237
242
  this.send(command, optionsOrCb);
238
243
  }
239
244
  else if (typeof cb === "function") {
240
245
  if (typeof optionsOrCb !== "object")
241
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
242
247
  this.send(command, optionsOrCb || {}, cb);
243
248
  }
244
249
  else {
245
250
  return this.send(command, optionsOrCb);
246
251
  }
247
- }
248
- getFlowTemplateRevisions(args, optionsOrCb, cb) {
249
- const command = new GetFlowTemplateRevisionsCommand(args);
252
+ };
253
+ IoTThingsGraph.prototype.getFlowTemplateRevisions = function (args, optionsOrCb, cb) {
254
+ var command = new GetFlowTemplateRevisionsCommand(args);
250
255
  if (typeof optionsOrCb === "function") {
251
256
  this.send(command, optionsOrCb);
252
257
  }
253
258
  else if (typeof cb === "function") {
254
259
  if (typeof optionsOrCb !== "object")
255
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
260
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
256
261
  this.send(command, optionsOrCb || {}, cb);
257
262
  }
258
263
  else {
259
264
  return this.send(command, optionsOrCb);
260
265
  }
261
- }
262
- getNamespaceDeletionStatus(args, optionsOrCb, cb) {
263
- const command = new GetNamespaceDeletionStatusCommand(args);
266
+ };
267
+ IoTThingsGraph.prototype.getNamespaceDeletionStatus = function (args, optionsOrCb, cb) {
268
+ var command = new GetNamespaceDeletionStatusCommand(args);
264
269
  if (typeof optionsOrCb === "function") {
265
270
  this.send(command, optionsOrCb);
266
271
  }
267
272
  else if (typeof cb === "function") {
268
273
  if (typeof optionsOrCb !== "object")
269
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
274
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
270
275
  this.send(command, optionsOrCb || {}, cb);
271
276
  }
272
277
  else {
273
278
  return this.send(command, optionsOrCb);
274
279
  }
275
- }
276
- getSystemInstance(args, optionsOrCb, cb) {
277
- const command = new GetSystemInstanceCommand(args);
280
+ };
281
+ IoTThingsGraph.prototype.getSystemInstance = function (args, optionsOrCb, cb) {
282
+ var command = new GetSystemInstanceCommand(args);
278
283
  if (typeof optionsOrCb === "function") {
279
284
  this.send(command, optionsOrCb);
280
285
  }
281
286
  else if (typeof cb === "function") {
282
287
  if (typeof optionsOrCb !== "object")
283
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
284
289
  this.send(command, optionsOrCb || {}, cb);
285
290
  }
286
291
  else {
287
292
  return this.send(command, optionsOrCb);
288
293
  }
289
- }
290
- getSystemTemplate(args, optionsOrCb, cb) {
291
- const command = new GetSystemTemplateCommand(args);
294
+ };
295
+ IoTThingsGraph.prototype.getSystemTemplate = function (args, optionsOrCb, cb) {
296
+ var command = new GetSystemTemplateCommand(args);
292
297
  if (typeof optionsOrCb === "function") {
293
298
  this.send(command, optionsOrCb);
294
299
  }
295
300
  else if (typeof cb === "function") {
296
301
  if (typeof optionsOrCb !== "object")
297
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
298
303
  this.send(command, optionsOrCb || {}, cb);
299
304
  }
300
305
  else {
301
306
  return this.send(command, optionsOrCb);
302
307
  }
303
- }
304
- getSystemTemplateRevisions(args, optionsOrCb, cb) {
305
- const command = new GetSystemTemplateRevisionsCommand(args);
308
+ };
309
+ IoTThingsGraph.prototype.getSystemTemplateRevisions = function (args, optionsOrCb, cb) {
310
+ var command = new GetSystemTemplateRevisionsCommand(args);
306
311
  if (typeof optionsOrCb === "function") {
307
312
  this.send(command, optionsOrCb);
308
313
  }
309
314
  else if (typeof cb === "function") {
310
315
  if (typeof optionsOrCb !== "object")
311
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
316
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
312
317
  this.send(command, optionsOrCb || {}, cb);
313
318
  }
314
319
  else {
315
320
  return this.send(command, optionsOrCb);
316
321
  }
317
- }
318
- getUploadStatus(args, optionsOrCb, cb) {
319
- const command = new GetUploadStatusCommand(args);
322
+ };
323
+ IoTThingsGraph.prototype.getUploadStatus = function (args, optionsOrCb, cb) {
324
+ var command = new GetUploadStatusCommand(args);
320
325
  if (typeof optionsOrCb === "function") {
321
326
  this.send(command, optionsOrCb);
322
327
  }
323
328
  else if (typeof cb === "function") {
324
329
  if (typeof optionsOrCb !== "object")
325
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
330
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
326
331
  this.send(command, optionsOrCb || {}, cb);
327
332
  }
328
333
  else {
329
334
  return this.send(command, optionsOrCb);
330
335
  }
331
- }
332
- listFlowExecutionMessages(args, optionsOrCb, cb) {
333
- const command = new ListFlowExecutionMessagesCommand(args);
336
+ };
337
+ IoTThingsGraph.prototype.listFlowExecutionMessages = function (args, optionsOrCb, cb) {
338
+ var command = new ListFlowExecutionMessagesCommand(args);
334
339
  if (typeof optionsOrCb === "function") {
335
340
  this.send(command, optionsOrCb);
336
341
  }
337
342
  else if (typeof cb === "function") {
338
343
  if (typeof optionsOrCb !== "object")
339
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
344
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
340
345
  this.send(command, optionsOrCb || {}, cb);
341
346
  }
342
347
  else {
343
348
  return this.send(command, optionsOrCb);
344
349
  }
345
- }
346
- listTagsForResource(args, optionsOrCb, cb) {
347
- const command = new ListTagsForResourceCommand(args);
350
+ };
351
+ IoTThingsGraph.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
352
+ var command = new ListTagsForResourceCommand(args);
348
353
  if (typeof optionsOrCb === "function") {
349
354
  this.send(command, optionsOrCb);
350
355
  }
351
356
  else if (typeof cb === "function") {
352
357
  if (typeof optionsOrCb !== "object")
353
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
358
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
354
359
  this.send(command, optionsOrCb || {}, cb);
355
360
  }
356
361
  else {
357
362
  return this.send(command, optionsOrCb);
358
363
  }
359
- }
360
- searchEntities(args, optionsOrCb, cb) {
361
- const command = new SearchEntitiesCommand(args);
364
+ };
365
+ IoTThingsGraph.prototype.searchEntities = function (args, optionsOrCb, cb) {
366
+ var command = new SearchEntitiesCommand(args);
362
367
  if (typeof optionsOrCb === "function") {
363
368
  this.send(command, optionsOrCb);
364
369
  }
365
370
  else if (typeof cb === "function") {
366
371
  if (typeof optionsOrCb !== "object")
367
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
372
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
368
373
  this.send(command, optionsOrCb || {}, cb);
369
374
  }
370
375
  else {
371
376
  return this.send(command, optionsOrCb);
372
377
  }
373
- }
374
- searchFlowExecutions(args, optionsOrCb, cb) {
375
- const command = new SearchFlowExecutionsCommand(args);
378
+ };
379
+ IoTThingsGraph.prototype.searchFlowExecutions = function (args, optionsOrCb, cb) {
380
+ var command = new SearchFlowExecutionsCommand(args);
376
381
  if (typeof optionsOrCb === "function") {
377
382
  this.send(command, optionsOrCb);
378
383
  }
379
384
  else if (typeof cb === "function") {
380
385
  if (typeof optionsOrCb !== "object")
381
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
386
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
382
387
  this.send(command, optionsOrCb || {}, cb);
383
388
  }
384
389
  else {
385
390
  return this.send(command, optionsOrCb);
386
391
  }
387
- }
388
- searchFlowTemplates(args, optionsOrCb, cb) {
389
- const command = new SearchFlowTemplatesCommand(args);
392
+ };
393
+ IoTThingsGraph.prototype.searchFlowTemplates = function (args, optionsOrCb, cb) {
394
+ var command = new SearchFlowTemplatesCommand(args);
390
395
  if (typeof optionsOrCb === "function") {
391
396
  this.send(command, optionsOrCb);
392
397
  }
393
398
  else if (typeof cb === "function") {
394
399
  if (typeof optionsOrCb !== "object")
395
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
400
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
396
401
  this.send(command, optionsOrCb || {}, cb);
397
402
  }
398
403
  else {
399
404
  return this.send(command, optionsOrCb);
400
405
  }
401
- }
402
- searchSystemInstances(args, optionsOrCb, cb) {
403
- const command = new SearchSystemInstancesCommand(args);
406
+ };
407
+ IoTThingsGraph.prototype.searchSystemInstances = function (args, optionsOrCb, cb) {
408
+ var command = new SearchSystemInstancesCommand(args);
404
409
  if (typeof optionsOrCb === "function") {
405
410
  this.send(command, optionsOrCb);
406
411
  }
407
412
  else if (typeof cb === "function") {
408
413
  if (typeof optionsOrCb !== "object")
409
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
414
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
410
415
  this.send(command, optionsOrCb || {}, cb);
411
416
  }
412
417
  else {
413
418
  return this.send(command, optionsOrCb);
414
419
  }
415
- }
416
- searchSystemTemplates(args, optionsOrCb, cb) {
417
- const command = new SearchSystemTemplatesCommand(args);
420
+ };
421
+ IoTThingsGraph.prototype.searchSystemTemplates = function (args, optionsOrCb, cb) {
422
+ var command = new SearchSystemTemplatesCommand(args);
418
423
  if (typeof optionsOrCb === "function") {
419
424
  this.send(command, optionsOrCb);
420
425
  }
421
426
  else if (typeof cb === "function") {
422
427
  if (typeof optionsOrCb !== "object")
423
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
428
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
424
429
  this.send(command, optionsOrCb || {}, cb);
425
430
  }
426
431
  else {
427
432
  return this.send(command, optionsOrCb);
428
433
  }
429
- }
430
- searchThings(args, optionsOrCb, cb) {
431
- const command = new SearchThingsCommand(args);
434
+ };
435
+ IoTThingsGraph.prototype.searchThings = function (args, optionsOrCb, cb) {
436
+ var command = new SearchThingsCommand(args);
432
437
  if (typeof optionsOrCb === "function") {
433
438
  this.send(command, optionsOrCb);
434
439
  }
435
440
  else if (typeof cb === "function") {
436
441
  if (typeof optionsOrCb !== "object")
437
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
442
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
438
443
  this.send(command, optionsOrCb || {}, cb);
439
444
  }
440
445
  else {
441
446
  return this.send(command, optionsOrCb);
442
447
  }
443
- }
444
- tagResource(args, optionsOrCb, cb) {
445
- const command = new TagResourceCommand(args);
448
+ };
449
+ IoTThingsGraph.prototype.tagResource = function (args, optionsOrCb, cb) {
450
+ var command = new TagResourceCommand(args);
446
451
  if (typeof optionsOrCb === "function") {
447
452
  this.send(command, optionsOrCb);
448
453
  }
449
454
  else if (typeof cb === "function") {
450
455
  if (typeof optionsOrCb !== "object")
451
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
456
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
452
457
  this.send(command, optionsOrCb || {}, cb);
453
458
  }
454
459
  else {
455
460
  return this.send(command, optionsOrCb);
456
461
  }
457
- }
458
- undeploySystemInstance(args, optionsOrCb, cb) {
459
- const command = new UndeploySystemInstanceCommand(args);
462
+ };
463
+ IoTThingsGraph.prototype.undeploySystemInstance = function (args, optionsOrCb, cb) {
464
+ var command = new UndeploySystemInstanceCommand(args);
460
465
  if (typeof optionsOrCb === "function") {
461
466
  this.send(command, optionsOrCb);
462
467
  }
463
468
  else if (typeof cb === "function") {
464
469
  if (typeof optionsOrCb !== "object")
465
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
470
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
466
471
  this.send(command, optionsOrCb || {}, cb);
467
472
  }
468
473
  else {
469
474
  return this.send(command, optionsOrCb);
470
475
  }
471
- }
472
- untagResource(args, optionsOrCb, cb) {
473
- const command = new UntagResourceCommand(args);
476
+ };
477
+ IoTThingsGraph.prototype.untagResource = function (args, optionsOrCb, cb) {
478
+ var command = new UntagResourceCommand(args);
474
479
  if (typeof optionsOrCb === "function") {
475
480
  this.send(command, optionsOrCb);
476
481
  }
477
482
  else if (typeof cb === "function") {
478
483
  if (typeof optionsOrCb !== "object")
479
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
484
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
480
485
  this.send(command, optionsOrCb || {}, cb);
481
486
  }
482
487
  else {
483
488
  return this.send(command, optionsOrCb);
484
489
  }
485
- }
486
- updateFlowTemplate(args, optionsOrCb, cb) {
487
- const command = new UpdateFlowTemplateCommand(args);
490
+ };
491
+ IoTThingsGraph.prototype.updateFlowTemplate = function (args, optionsOrCb, cb) {
492
+ var command = new UpdateFlowTemplateCommand(args);
488
493
  if (typeof optionsOrCb === "function") {
489
494
  this.send(command, optionsOrCb);
490
495
  }
491
496
  else if (typeof cb === "function") {
492
497
  if (typeof optionsOrCb !== "object")
493
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
498
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
494
499
  this.send(command, optionsOrCb || {}, cb);
495
500
  }
496
501
  else {
497
502
  return this.send(command, optionsOrCb);
498
503
  }
499
- }
500
- updateSystemTemplate(args, optionsOrCb, cb) {
501
- const command = new UpdateSystemTemplateCommand(args);
504
+ };
505
+ IoTThingsGraph.prototype.updateSystemTemplate = function (args, optionsOrCb, cb) {
506
+ var command = new UpdateSystemTemplateCommand(args);
502
507
  if (typeof optionsOrCb === "function") {
503
508
  this.send(command, optionsOrCb);
504
509
  }
505
510
  else if (typeof cb === "function") {
506
511
  if (typeof optionsOrCb !== "object")
507
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
512
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
508
513
  this.send(command, optionsOrCb || {}, cb);
509
514
  }
510
515
  else {
511
516
  return this.send(command, optionsOrCb);
512
517
  }
513
- }
514
- uploadEntityDefinitions(args, optionsOrCb, cb) {
515
- const command = new UploadEntityDefinitionsCommand(args);
518
+ };
519
+ IoTThingsGraph.prototype.uploadEntityDefinitions = function (args, optionsOrCb, cb) {
520
+ var command = new UploadEntityDefinitionsCommand(args);
516
521
  if (typeof optionsOrCb === "function") {
517
522
  this.send(command, optionsOrCb);
518
523
  }
519
524
  else if (typeof cb === "function") {
520
525
  if (typeof optionsOrCb !== "object")
521
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
526
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
522
527
  this.send(command, optionsOrCb || {}, cb);
523
528
  }
524
529
  else {
525
530
  return this.send(command, optionsOrCb);
526
531
  }
527
- }
528
- }
532
+ };
533
+ return IoTThingsGraph;
534
+ }(IoTThingsGraphClient));
535
+ export { IoTThingsGraph };