@aws-sdk/client-iottwinmaker 3.181.0 → 3.183.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 (43) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/IoTTwinMaker.js +106 -113
  3. package/dist-es/IoTTwinMakerClient.js +22 -28
  4. package/dist-es/commands/BatchPutPropertyValuesCommand.js +21 -28
  5. package/dist-es/commands/CreateComponentTypeCommand.js +21 -28
  6. package/dist-es/commands/CreateEntityCommand.js +21 -28
  7. package/dist-es/commands/CreateSceneCommand.js +21 -28
  8. package/dist-es/commands/CreateWorkspaceCommand.js +21 -28
  9. package/dist-es/commands/DeleteComponentTypeCommand.js +21 -28
  10. package/dist-es/commands/DeleteEntityCommand.js +21 -28
  11. package/dist-es/commands/DeleteSceneCommand.js +21 -28
  12. package/dist-es/commands/DeleteWorkspaceCommand.js +21 -28
  13. package/dist-es/commands/GetComponentTypeCommand.js +21 -28
  14. package/dist-es/commands/GetEntityCommand.js +21 -28
  15. package/dist-es/commands/GetPropertyValueCommand.js +21 -28
  16. package/dist-es/commands/GetPropertyValueHistoryCommand.js +21 -28
  17. package/dist-es/commands/GetSceneCommand.js +21 -28
  18. package/dist-es/commands/GetWorkspaceCommand.js +21 -28
  19. package/dist-es/commands/ListComponentTypesCommand.js +21 -28
  20. package/dist-es/commands/ListEntitiesCommand.js +21 -28
  21. package/dist-es/commands/ListScenesCommand.js +21 -28
  22. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  23. package/dist-es/commands/ListWorkspacesCommand.js +21 -28
  24. package/dist-es/commands/TagResourceCommand.js +21 -28
  25. package/dist-es/commands/UntagResourceCommand.js +21 -28
  26. package/dist-es/commands/UpdateComponentTypeCommand.js +21 -28
  27. package/dist-es/commands/UpdateEntityCommand.js +21 -28
  28. package/dist-es/commands/UpdateSceneCommand.js +21 -28
  29. package/dist-es/commands/UpdateWorkspaceCommand.js +21 -28
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/IoTTwinMakerServiceException.js +5 -10
  32. package/dist-es/models/models_0.js +367 -202
  33. package/dist-es/pagination/GetPropertyValueHistoryPaginator.js +25 -68
  34. package/dist-es/pagination/ListComponentTypesPaginator.js +25 -68
  35. package/dist-es/pagination/ListEntitiesPaginator.js +25 -68
  36. package/dist-es/pagination/ListScenesPaginator.js +25 -68
  37. package/dist-es/pagination/ListWorkspacesPaginator.js +25 -68
  38. package/dist-es/protocols/Aws_restJson1.js +2541 -3283
  39. package/dist-es/runtimeConfig.browser.js +26 -12
  40. package/dist-es/runtimeConfig.js +30 -12
  41. package/dist-es/runtimeConfig.native.js +8 -5
  42. package/dist-es/runtimeConfig.shared.js +8 -11
  43. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-iottwinmaker
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
15
 
8
16
 
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { BatchPutPropertyValuesCommand, } from "./commands/BatchPutPropertyValuesCommand";
3
2
  import { CreateComponentTypeCommand, } from "./commands/CreateComponentTypeCommand";
4
3
  import { CreateEntityCommand, } from "./commands/CreateEntityCommand";
@@ -26,375 +25,369 @@ import { UpdateEntityCommand, } from "./commands/UpdateEntityCommand";
26
25
  import { UpdateSceneCommand } from "./commands/UpdateSceneCommand";
27
26
  import { UpdateWorkspaceCommand, } from "./commands/UpdateWorkspaceCommand";
28
27
  import { IoTTwinMakerClient } from "./IoTTwinMakerClient";
29
- var IoTTwinMaker = (function (_super) {
30
- __extends(IoTTwinMaker, _super);
31
- function IoTTwinMaker() {
32
- return _super !== null && _super.apply(this, arguments) || this;
33
- }
34
- IoTTwinMaker.prototype.batchPutPropertyValues = function (args, optionsOrCb, cb) {
35
- var command = new BatchPutPropertyValuesCommand(args);
28
+ export class IoTTwinMaker extends IoTTwinMakerClient {
29
+ batchPutPropertyValues(args, optionsOrCb, cb) {
30
+ const command = new BatchPutPropertyValuesCommand(args);
36
31
  if (typeof optionsOrCb === "function") {
37
32
  this.send(command, optionsOrCb);
38
33
  }
39
34
  else if (typeof cb === "function") {
40
35
  if (typeof optionsOrCb !== "object")
41
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
36
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
37
  this.send(command, optionsOrCb || {}, cb);
43
38
  }
44
39
  else {
45
40
  return this.send(command, optionsOrCb);
46
41
  }
47
- };
48
- IoTTwinMaker.prototype.createComponentType = function (args, optionsOrCb, cb) {
49
- var command = new CreateComponentTypeCommand(args);
42
+ }
43
+ createComponentType(args, optionsOrCb, cb) {
44
+ const command = new CreateComponentTypeCommand(args);
50
45
  if (typeof optionsOrCb === "function") {
51
46
  this.send(command, optionsOrCb);
52
47
  }
53
48
  else if (typeof cb === "function") {
54
49
  if (typeof optionsOrCb !== "object")
55
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
50
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
51
  this.send(command, optionsOrCb || {}, cb);
57
52
  }
58
53
  else {
59
54
  return this.send(command, optionsOrCb);
60
55
  }
61
- };
62
- IoTTwinMaker.prototype.createEntity = function (args, optionsOrCb, cb) {
63
- var command = new CreateEntityCommand(args);
56
+ }
57
+ createEntity(args, optionsOrCb, cb) {
58
+ const command = new CreateEntityCommand(args);
64
59
  if (typeof optionsOrCb === "function") {
65
60
  this.send(command, optionsOrCb);
66
61
  }
67
62
  else if (typeof cb === "function") {
68
63
  if (typeof optionsOrCb !== "object")
69
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
64
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
65
  this.send(command, optionsOrCb || {}, cb);
71
66
  }
72
67
  else {
73
68
  return this.send(command, optionsOrCb);
74
69
  }
75
- };
76
- IoTTwinMaker.prototype.createScene = function (args, optionsOrCb, cb) {
77
- var command = new CreateSceneCommand(args);
70
+ }
71
+ createScene(args, optionsOrCb, cb) {
72
+ const command = new CreateSceneCommand(args);
78
73
  if (typeof optionsOrCb === "function") {
79
74
  this.send(command, optionsOrCb);
80
75
  }
81
76
  else if (typeof cb === "function") {
82
77
  if (typeof optionsOrCb !== "object")
83
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
78
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
79
  this.send(command, optionsOrCb || {}, cb);
85
80
  }
86
81
  else {
87
82
  return this.send(command, optionsOrCb);
88
83
  }
89
- };
90
- IoTTwinMaker.prototype.createWorkspace = function (args, optionsOrCb, cb) {
91
- var command = new CreateWorkspaceCommand(args);
84
+ }
85
+ createWorkspace(args, optionsOrCb, cb) {
86
+ const command = new CreateWorkspaceCommand(args);
92
87
  if (typeof optionsOrCb === "function") {
93
88
  this.send(command, optionsOrCb);
94
89
  }
95
90
  else if (typeof cb === "function") {
96
91
  if (typeof optionsOrCb !== "object")
97
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
93
  this.send(command, optionsOrCb || {}, cb);
99
94
  }
100
95
  else {
101
96
  return this.send(command, optionsOrCb);
102
97
  }
103
- };
104
- IoTTwinMaker.prototype.deleteComponentType = function (args, optionsOrCb, cb) {
105
- var command = new DeleteComponentTypeCommand(args);
98
+ }
99
+ deleteComponentType(args, optionsOrCb, cb) {
100
+ const command = new DeleteComponentTypeCommand(args);
106
101
  if (typeof optionsOrCb === "function") {
107
102
  this.send(command, optionsOrCb);
108
103
  }
109
104
  else if (typeof cb === "function") {
110
105
  if (typeof optionsOrCb !== "object")
111
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
106
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
107
  this.send(command, optionsOrCb || {}, cb);
113
108
  }
114
109
  else {
115
110
  return this.send(command, optionsOrCb);
116
111
  }
117
- };
118
- IoTTwinMaker.prototype.deleteEntity = function (args, optionsOrCb, cb) {
119
- var command = new DeleteEntityCommand(args);
112
+ }
113
+ deleteEntity(args, optionsOrCb, cb) {
114
+ const command = new DeleteEntityCommand(args);
120
115
  if (typeof optionsOrCb === "function") {
121
116
  this.send(command, optionsOrCb);
122
117
  }
123
118
  else if (typeof cb === "function") {
124
119
  if (typeof optionsOrCb !== "object")
125
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
120
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
121
  this.send(command, optionsOrCb || {}, cb);
127
122
  }
128
123
  else {
129
124
  return this.send(command, optionsOrCb);
130
125
  }
131
- };
132
- IoTTwinMaker.prototype.deleteScene = function (args, optionsOrCb, cb) {
133
- var command = new DeleteSceneCommand(args);
126
+ }
127
+ deleteScene(args, optionsOrCb, cb) {
128
+ const command = new DeleteSceneCommand(args);
134
129
  if (typeof optionsOrCb === "function") {
135
130
  this.send(command, optionsOrCb);
136
131
  }
137
132
  else if (typeof cb === "function") {
138
133
  if (typeof optionsOrCb !== "object")
139
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
134
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
135
  this.send(command, optionsOrCb || {}, cb);
141
136
  }
142
137
  else {
143
138
  return this.send(command, optionsOrCb);
144
139
  }
145
- };
146
- IoTTwinMaker.prototype.deleteWorkspace = function (args, optionsOrCb, cb) {
147
- var command = new DeleteWorkspaceCommand(args);
140
+ }
141
+ deleteWorkspace(args, optionsOrCb, cb) {
142
+ const command = new DeleteWorkspaceCommand(args);
148
143
  if (typeof optionsOrCb === "function") {
149
144
  this.send(command, optionsOrCb);
150
145
  }
151
146
  else if (typeof cb === "function") {
152
147
  if (typeof optionsOrCb !== "object")
153
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
148
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
149
  this.send(command, optionsOrCb || {}, cb);
155
150
  }
156
151
  else {
157
152
  return this.send(command, optionsOrCb);
158
153
  }
159
- };
160
- IoTTwinMaker.prototype.getComponentType = function (args, optionsOrCb, cb) {
161
- var command = new GetComponentTypeCommand(args);
154
+ }
155
+ getComponentType(args, optionsOrCb, cb) {
156
+ const command = new GetComponentTypeCommand(args);
162
157
  if (typeof optionsOrCb === "function") {
163
158
  this.send(command, optionsOrCb);
164
159
  }
165
160
  else if (typeof cb === "function") {
166
161
  if (typeof optionsOrCb !== "object")
167
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
162
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
163
  this.send(command, optionsOrCb || {}, cb);
169
164
  }
170
165
  else {
171
166
  return this.send(command, optionsOrCb);
172
167
  }
173
- };
174
- IoTTwinMaker.prototype.getEntity = function (args, optionsOrCb, cb) {
175
- var command = new GetEntityCommand(args);
168
+ }
169
+ getEntity(args, optionsOrCb, cb) {
170
+ const command = new GetEntityCommand(args);
176
171
  if (typeof optionsOrCb === "function") {
177
172
  this.send(command, optionsOrCb);
178
173
  }
179
174
  else if (typeof cb === "function") {
180
175
  if (typeof optionsOrCb !== "object")
181
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
176
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
177
  this.send(command, optionsOrCb || {}, cb);
183
178
  }
184
179
  else {
185
180
  return this.send(command, optionsOrCb);
186
181
  }
187
- };
188
- IoTTwinMaker.prototype.getPropertyValue = function (args, optionsOrCb, cb) {
189
- var command = new GetPropertyValueCommand(args);
182
+ }
183
+ getPropertyValue(args, optionsOrCb, cb) {
184
+ const command = new GetPropertyValueCommand(args);
190
185
  if (typeof optionsOrCb === "function") {
191
186
  this.send(command, optionsOrCb);
192
187
  }
193
188
  else if (typeof cb === "function") {
194
189
  if (typeof optionsOrCb !== "object")
195
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
190
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
196
191
  this.send(command, optionsOrCb || {}, cb);
197
192
  }
198
193
  else {
199
194
  return this.send(command, optionsOrCb);
200
195
  }
201
- };
202
- IoTTwinMaker.prototype.getPropertyValueHistory = function (args, optionsOrCb, cb) {
203
- var command = new GetPropertyValueHistoryCommand(args);
196
+ }
197
+ getPropertyValueHistory(args, optionsOrCb, cb) {
198
+ const command = new GetPropertyValueHistoryCommand(args);
204
199
  if (typeof optionsOrCb === "function") {
205
200
  this.send(command, optionsOrCb);
206
201
  }
207
202
  else if (typeof cb === "function") {
208
203
  if (typeof optionsOrCb !== "object")
209
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
204
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
205
  this.send(command, optionsOrCb || {}, cb);
211
206
  }
212
207
  else {
213
208
  return this.send(command, optionsOrCb);
214
209
  }
215
- };
216
- IoTTwinMaker.prototype.getScene = function (args, optionsOrCb, cb) {
217
- var command = new GetSceneCommand(args);
210
+ }
211
+ getScene(args, optionsOrCb, cb) {
212
+ const command = new GetSceneCommand(args);
218
213
  if (typeof optionsOrCb === "function") {
219
214
  this.send(command, optionsOrCb);
220
215
  }
221
216
  else if (typeof cb === "function") {
222
217
  if (typeof optionsOrCb !== "object")
223
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
218
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
224
219
  this.send(command, optionsOrCb || {}, cb);
225
220
  }
226
221
  else {
227
222
  return this.send(command, optionsOrCb);
228
223
  }
229
- };
230
- IoTTwinMaker.prototype.getWorkspace = function (args, optionsOrCb, cb) {
231
- var command = new GetWorkspaceCommand(args);
224
+ }
225
+ getWorkspace(args, optionsOrCb, cb) {
226
+ const command = new GetWorkspaceCommand(args);
232
227
  if (typeof optionsOrCb === "function") {
233
228
  this.send(command, optionsOrCb);
234
229
  }
235
230
  else if (typeof cb === "function") {
236
231
  if (typeof optionsOrCb !== "object")
237
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
232
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
238
233
  this.send(command, optionsOrCb || {}, cb);
239
234
  }
240
235
  else {
241
236
  return this.send(command, optionsOrCb);
242
237
  }
243
- };
244
- IoTTwinMaker.prototype.listComponentTypes = function (args, optionsOrCb, cb) {
245
- var command = new ListComponentTypesCommand(args);
238
+ }
239
+ listComponentTypes(args, optionsOrCb, cb) {
240
+ const command = new ListComponentTypesCommand(args);
246
241
  if (typeof optionsOrCb === "function") {
247
242
  this.send(command, optionsOrCb);
248
243
  }
249
244
  else if (typeof cb === "function") {
250
245
  if (typeof optionsOrCb !== "object")
251
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
246
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
252
247
  this.send(command, optionsOrCb || {}, cb);
253
248
  }
254
249
  else {
255
250
  return this.send(command, optionsOrCb);
256
251
  }
257
- };
258
- IoTTwinMaker.prototype.listEntities = function (args, optionsOrCb, cb) {
259
- var command = new ListEntitiesCommand(args);
252
+ }
253
+ listEntities(args, optionsOrCb, cb) {
254
+ const command = new ListEntitiesCommand(args);
260
255
  if (typeof optionsOrCb === "function") {
261
256
  this.send(command, optionsOrCb);
262
257
  }
263
258
  else if (typeof cb === "function") {
264
259
  if (typeof optionsOrCb !== "object")
265
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
260
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
266
261
  this.send(command, optionsOrCb || {}, cb);
267
262
  }
268
263
  else {
269
264
  return this.send(command, optionsOrCb);
270
265
  }
271
- };
272
- IoTTwinMaker.prototype.listScenes = function (args, optionsOrCb, cb) {
273
- var command = new ListScenesCommand(args);
266
+ }
267
+ listScenes(args, optionsOrCb, cb) {
268
+ const command = new ListScenesCommand(args);
274
269
  if (typeof optionsOrCb === "function") {
275
270
  this.send(command, optionsOrCb);
276
271
  }
277
272
  else if (typeof cb === "function") {
278
273
  if (typeof optionsOrCb !== "object")
279
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
274
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
280
275
  this.send(command, optionsOrCb || {}, cb);
281
276
  }
282
277
  else {
283
278
  return this.send(command, optionsOrCb);
284
279
  }
285
- };
286
- IoTTwinMaker.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
287
- var command = new ListTagsForResourceCommand(args);
280
+ }
281
+ listTagsForResource(args, optionsOrCb, cb) {
282
+ const command = new ListTagsForResourceCommand(args);
288
283
  if (typeof optionsOrCb === "function") {
289
284
  this.send(command, optionsOrCb);
290
285
  }
291
286
  else if (typeof cb === "function") {
292
287
  if (typeof optionsOrCb !== "object")
293
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
288
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
294
289
  this.send(command, optionsOrCb || {}, cb);
295
290
  }
296
291
  else {
297
292
  return this.send(command, optionsOrCb);
298
293
  }
299
- };
300
- IoTTwinMaker.prototype.listWorkspaces = function (args, optionsOrCb, cb) {
301
- var command = new ListWorkspacesCommand(args);
294
+ }
295
+ listWorkspaces(args, optionsOrCb, cb) {
296
+ const command = new ListWorkspacesCommand(args);
302
297
  if (typeof optionsOrCb === "function") {
303
298
  this.send(command, optionsOrCb);
304
299
  }
305
300
  else if (typeof cb === "function") {
306
301
  if (typeof optionsOrCb !== "object")
307
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
302
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
308
303
  this.send(command, optionsOrCb || {}, cb);
309
304
  }
310
305
  else {
311
306
  return this.send(command, optionsOrCb);
312
307
  }
313
- };
314
- IoTTwinMaker.prototype.tagResource = function (args, optionsOrCb, cb) {
315
- var command = new TagResourceCommand(args);
308
+ }
309
+ tagResource(args, optionsOrCb, cb) {
310
+ const command = new TagResourceCommand(args);
316
311
  if (typeof optionsOrCb === "function") {
317
312
  this.send(command, optionsOrCb);
318
313
  }
319
314
  else if (typeof cb === "function") {
320
315
  if (typeof optionsOrCb !== "object")
321
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
316
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
322
317
  this.send(command, optionsOrCb || {}, cb);
323
318
  }
324
319
  else {
325
320
  return this.send(command, optionsOrCb);
326
321
  }
327
- };
328
- IoTTwinMaker.prototype.untagResource = function (args, optionsOrCb, cb) {
329
- var command = new UntagResourceCommand(args);
322
+ }
323
+ untagResource(args, optionsOrCb, cb) {
324
+ const command = new UntagResourceCommand(args);
330
325
  if (typeof optionsOrCb === "function") {
331
326
  this.send(command, optionsOrCb);
332
327
  }
333
328
  else if (typeof cb === "function") {
334
329
  if (typeof optionsOrCb !== "object")
335
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
330
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
336
331
  this.send(command, optionsOrCb || {}, cb);
337
332
  }
338
333
  else {
339
334
  return this.send(command, optionsOrCb);
340
335
  }
341
- };
342
- IoTTwinMaker.prototype.updateComponentType = function (args, optionsOrCb, cb) {
343
- var command = new UpdateComponentTypeCommand(args);
336
+ }
337
+ updateComponentType(args, optionsOrCb, cb) {
338
+ const command = new UpdateComponentTypeCommand(args);
344
339
  if (typeof optionsOrCb === "function") {
345
340
  this.send(command, optionsOrCb);
346
341
  }
347
342
  else if (typeof cb === "function") {
348
343
  if (typeof optionsOrCb !== "object")
349
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
344
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
350
345
  this.send(command, optionsOrCb || {}, cb);
351
346
  }
352
347
  else {
353
348
  return this.send(command, optionsOrCb);
354
349
  }
355
- };
356
- IoTTwinMaker.prototype.updateEntity = function (args, optionsOrCb, cb) {
357
- var command = new UpdateEntityCommand(args);
350
+ }
351
+ updateEntity(args, optionsOrCb, cb) {
352
+ const command = new UpdateEntityCommand(args);
358
353
  if (typeof optionsOrCb === "function") {
359
354
  this.send(command, optionsOrCb);
360
355
  }
361
356
  else if (typeof cb === "function") {
362
357
  if (typeof optionsOrCb !== "object")
363
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
358
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
364
359
  this.send(command, optionsOrCb || {}, cb);
365
360
  }
366
361
  else {
367
362
  return this.send(command, optionsOrCb);
368
363
  }
369
- };
370
- IoTTwinMaker.prototype.updateScene = function (args, optionsOrCb, cb) {
371
- var command = new UpdateSceneCommand(args);
364
+ }
365
+ updateScene(args, optionsOrCb, cb) {
366
+ const command = new UpdateSceneCommand(args);
372
367
  if (typeof optionsOrCb === "function") {
373
368
  this.send(command, optionsOrCb);
374
369
  }
375
370
  else if (typeof cb === "function") {
376
371
  if (typeof optionsOrCb !== "object")
377
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
372
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
378
373
  this.send(command, optionsOrCb || {}, cb);
379
374
  }
380
375
  else {
381
376
  return this.send(command, optionsOrCb);
382
377
  }
383
- };
384
- IoTTwinMaker.prototype.updateWorkspace = function (args, optionsOrCb, cb) {
385
- var command = new UpdateWorkspaceCommand(args);
378
+ }
379
+ updateWorkspace(args, optionsOrCb, cb) {
380
+ const command = new UpdateWorkspaceCommand(args);
386
381
  if (typeof optionsOrCb === "function") {
387
382
  this.send(command, optionsOrCb);
388
383
  }
389
384
  else if (typeof cb === "function") {
390
385
  if (typeof optionsOrCb !== "object")
391
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
386
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
392
387
  this.send(command, optionsOrCb || {}, cb);
393
388
  }
394
389
  else {
395
390
  return this.send(command, optionsOrCb);
396
391
  }
397
- };
398
- return IoTTwinMaker;
399
- }(IoTTwinMakerClient));
400
- export { IoTTwinMaker };
392
+ }
393
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var IoTTwinMakerClient = (function (_super) {
13
- __extends(IoTTwinMakerClient, _super);
14
- function IoTTwinMakerClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class IoTTwinMakerClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- IoTTwinMakerClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return IoTTwinMakerClient;
38
- }(__Client));
39
- export { IoTTwinMakerClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { BatchPutPropertyValuesRequestFilterSensitiveLog, BatchPutPropertyValuesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1BatchPutPropertyValuesCommand, serializeAws_restJson1BatchPutPropertyValuesCommand, } from "../protocols/Aws_restJson1";
6
- var BatchPutPropertyValuesCommand = (function (_super) {
7
- __extends(BatchPutPropertyValuesCommand, _super);
8
- function BatchPutPropertyValuesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchPutPropertyValuesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchPutPropertyValuesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTTwinMakerClient";
18
- var commandName = "BatchPutPropertyValuesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTTwinMakerClient";
15
+ const commandName = "BatchPutPropertyValuesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchPutPropertyValuesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchPutPropertyValuesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchPutPropertyValuesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1BatchPutPropertyValuesCommand(input, context);
33
- };
34
- BatchPutPropertyValuesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1BatchPutPropertyValuesCommand(output, context);
36
- };
37
- return BatchPutPropertyValuesCommand;
38
- }($Command));
39
- export { BatchPutPropertyValuesCommand };
31
+ }
32
+ }