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