@aws-sdk/client-iottwinmaker 3.44.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 (184) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +212 -0
  4. package/dist-cjs/IoTTwinMaker.js +397 -0
  5. package/dist-cjs/IoTTwinMakerClient.js +35 -0
  6. package/dist-cjs/commands/BatchPutPropertyValuesCommand.js +36 -0
  7. package/dist-cjs/commands/CreateComponentTypeCommand.js +36 -0
  8. package/dist-cjs/commands/CreateEntityCommand.js +36 -0
  9. package/dist-cjs/commands/CreateSceneCommand.js +36 -0
  10. package/dist-cjs/commands/CreateWorkspaceCommand.js +36 -0
  11. package/dist-cjs/commands/DeleteComponentTypeCommand.js +36 -0
  12. package/dist-cjs/commands/DeleteEntityCommand.js +36 -0
  13. package/dist-cjs/commands/DeleteSceneCommand.js +36 -0
  14. package/dist-cjs/commands/DeleteWorkspaceCommand.js +36 -0
  15. package/dist-cjs/commands/GetComponentTypeCommand.js +36 -0
  16. package/dist-cjs/commands/GetEntityCommand.js +36 -0
  17. package/dist-cjs/commands/GetPropertyValueCommand.js +36 -0
  18. package/dist-cjs/commands/GetPropertyValueHistoryCommand.js +36 -0
  19. package/dist-cjs/commands/GetSceneCommand.js +36 -0
  20. package/dist-cjs/commands/GetWorkspaceCommand.js +36 -0
  21. package/dist-cjs/commands/ListComponentTypesCommand.js +36 -0
  22. package/dist-cjs/commands/ListEntitiesCommand.js +36 -0
  23. package/dist-cjs/commands/ListScenesCommand.js +36 -0
  24. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  25. package/dist-cjs/commands/ListWorkspacesCommand.js +36 -0
  26. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  27. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  28. package/dist-cjs/commands/UpdateComponentTypeCommand.js +36 -0
  29. package/dist-cjs/commands/UpdateEntityCommand.js +36 -0
  30. package/dist-cjs/commands/UpdateSceneCommand.js +36 -0
  31. package/dist-cjs/commands/UpdateWorkspaceCommand.js +36 -0
  32. package/dist-cjs/commands/index.js +29 -0
  33. package/dist-cjs/endpoints.js +130 -0
  34. package/dist-cjs/index.js +8 -0
  35. package/dist-cjs/models/index.js +4 -0
  36. package/dist-cjs/models/models_0.js +659 -0
  37. package/dist-cjs/pagination/GetPropertyValueHistoryPaginator.js +35 -0
  38. package/dist-cjs/pagination/Interfaces.js +2 -0
  39. package/dist-cjs/pagination/ListComponentTypesPaginator.js +35 -0
  40. package/dist-cjs/pagination/ListEntitiesPaginator.js +35 -0
  41. package/dist-cjs/pagination/ListScenesPaginator.js +35 -0
  42. package/dist-cjs/pagination/ListWorkspacesPaginator.js +35 -0
  43. package/dist-cjs/pagination/index.js +9 -0
  44. package/dist-cjs/protocols/Aws_restJson1.js +4460 -0
  45. package/dist-cjs/runtimeConfig.browser.js +40 -0
  46. package/dist-cjs/runtimeConfig.js +44 -0
  47. package/dist-cjs/runtimeConfig.native.js +16 -0
  48. package/dist-cjs/runtimeConfig.shared.js +17 -0
  49. package/dist-es/IoTTwinMaker.js +400 -0
  50. package/dist-es/IoTTwinMakerClient.js +37 -0
  51. package/dist-es/commands/BatchPutPropertyValuesCommand.js +39 -0
  52. package/dist-es/commands/CreateComponentTypeCommand.js +39 -0
  53. package/dist-es/commands/CreateEntityCommand.js +39 -0
  54. package/dist-es/commands/CreateSceneCommand.js +39 -0
  55. package/dist-es/commands/CreateWorkspaceCommand.js +39 -0
  56. package/dist-es/commands/DeleteComponentTypeCommand.js +39 -0
  57. package/dist-es/commands/DeleteEntityCommand.js +39 -0
  58. package/dist-es/commands/DeleteSceneCommand.js +39 -0
  59. package/dist-es/commands/DeleteWorkspaceCommand.js +39 -0
  60. package/dist-es/commands/GetComponentTypeCommand.js +39 -0
  61. package/dist-es/commands/GetEntityCommand.js +39 -0
  62. package/dist-es/commands/GetPropertyValueCommand.js +39 -0
  63. package/dist-es/commands/GetPropertyValueHistoryCommand.js +39 -0
  64. package/dist-es/commands/GetSceneCommand.js +39 -0
  65. package/dist-es/commands/GetWorkspaceCommand.js +39 -0
  66. package/dist-es/commands/ListComponentTypesCommand.js +39 -0
  67. package/dist-es/commands/ListEntitiesCommand.js +39 -0
  68. package/dist-es/commands/ListScenesCommand.js +39 -0
  69. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  70. package/dist-es/commands/ListWorkspacesCommand.js +39 -0
  71. package/dist-es/commands/TagResourceCommand.js +39 -0
  72. package/dist-es/commands/UntagResourceCommand.js +39 -0
  73. package/dist-es/commands/UpdateComponentTypeCommand.js +39 -0
  74. package/dist-es/commands/UpdateEntityCommand.js +39 -0
  75. package/dist-es/commands/UpdateSceneCommand.js +39 -0
  76. package/dist-es/commands/UpdateWorkspaceCommand.js +39 -0
  77. package/dist-es/commands/index.js +26 -0
  78. package/dist-es/endpoints.js +126 -0
  79. package/dist-es/index.js +5 -0
  80. package/dist-es/models/index.js +1 -0
  81. package/dist-es/models/models_0.js +469 -0
  82. package/dist-es/pagination/GetPropertyValueHistoryPaginator.js +74 -0
  83. package/dist-es/pagination/Interfaces.js +1 -0
  84. package/dist-es/pagination/ListComponentTypesPaginator.js +74 -0
  85. package/dist-es/pagination/ListEntitiesPaginator.js +74 -0
  86. package/dist-es/pagination/ListScenesPaginator.js +74 -0
  87. package/dist-es/pagination/ListWorkspacesPaginator.js +74 -0
  88. package/dist-es/pagination/index.js +6 -0
  89. package/dist-es/protocols/Aws_restJson1.js +4853 -0
  90. package/dist-es/runtimeConfig.browser.js +17 -0
  91. package/dist-es/runtimeConfig.js +21 -0
  92. package/dist-es/runtimeConfig.native.js +8 -0
  93. package/dist-es/runtimeConfig.shared.js +13 -0
  94. package/dist-types/IoTTwinMaker.d.ts +206 -0
  95. package/dist-types/IoTTwinMakerClient.d.ts +175 -0
  96. package/dist-types/commands/BatchPutPropertyValuesCommand.d.ts +35 -0
  97. package/dist-types/commands/CreateComponentTypeCommand.d.ts +40 -0
  98. package/dist-types/commands/CreateEntityCommand.d.ts +35 -0
  99. package/dist-types/commands/CreateSceneCommand.d.ts +35 -0
  100. package/dist-types/commands/CreateWorkspaceCommand.d.ts +35 -0
  101. package/dist-types/commands/DeleteComponentTypeCommand.d.ts +35 -0
  102. package/dist-types/commands/DeleteEntityCommand.d.ts +35 -0
  103. package/dist-types/commands/DeleteSceneCommand.d.ts +35 -0
  104. package/dist-types/commands/DeleteWorkspaceCommand.d.ts +35 -0
  105. package/dist-types/commands/GetComponentTypeCommand.d.ts +35 -0
  106. package/dist-types/commands/GetEntityCommand.d.ts +35 -0
  107. package/dist-types/commands/GetPropertyValueCommand.d.ts +36 -0
  108. package/dist-types/commands/GetPropertyValueHistoryCommand.d.ts +37 -0
  109. package/dist-types/commands/GetSceneCommand.d.ts +35 -0
  110. package/dist-types/commands/GetWorkspaceCommand.d.ts +35 -0
  111. package/dist-types/commands/ListComponentTypesCommand.d.ts +35 -0
  112. package/dist-types/commands/ListEntitiesCommand.d.ts +35 -0
  113. package/dist-types/commands/ListScenesCommand.d.ts +35 -0
  114. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  115. package/dist-types/commands/ListWorkspacesCommand.d.ts +35 -0
  116. package/dist-types/commands/TagResourceCommand.d.ts +35 -0
  117. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  118. package/dist-types/commands/UpdateComponentTypeCommand.d.ts +35 -0
  119. package/dist-types/commands/UpdateEntityCommand.d.ts +35 -0
  120. package/dist-types/commands/UpdateSceneCommand.d.ts +35 -0
  121. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +35 -0
  122. package/dist-types/commands/index.d.ts +26 -0
  123. package/dist-types/endpoints.d.ts +2 -0
  124. package/dist-types/index.d.ts +5 -0
  125. package/dist-types/models/index.d.ts +1 -0
  126. package/dist-types/models/models_0.d.ts +2269 -0
  127. package/dist-types/pagination/GetPropertyValueHistoryPaginator.d.ts +4 -0
  128. package/dist-types/pagination/Interfaces.d.ts +6 -0
  129. package/dist-types/pagination/ListComponentTypesPaginator.d.ts +4 -0
  130. package/dist-types/pagination/ListEntitiesPaginator.d.ts +4 -0
  131. package/dist-types/pagination/ListScenesPaginator.d.ts +4 -0
  132. package/dist-types/pagination/ListWorkspacesPaginator.d.ts +4 -0
  133. package/dist-types/pagination/index.d.ts +6 -0
  134. package/dist-types/protocols/Aws_restJson1.d.ts +80 -0
  135. package/dist-types/runtimeConfig.browser.d.ts +39 -0
  136. package/dist-types/runtimeConfig.d.ts +39 -0
  137. package/dist-types/runtimeConfig.native.d.ts +38 -0
  138. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  139. package/dist-types/ts3.4/IoTTwinMaker.d.ts +135 -0
  140. package/dist-types/ts3.4/IoTTwinMakerClient.d.ts +97 -0
  141. package/dist-types/ts3.4/commands/BatchPutPropertyValuesCommand.d.ts +17 -0
  142. package/dist-types/ts3.4/commands/CreateComponentTypeCommand.d.ts +17 -0
  143. package/dist-types/ts3.4/commands/CreateEntityCommand.d.ts +17 -0
  144. package/dist-types/ts3.4/commands/CreateSceneCommand.d.ts +17 -0
  145. package/dist-types/ts3.4/commands/CreateWorkspaceCommand.d.ts +17 -0
  146. package/dist-types/ts3.4/commands/DeleteComponentTypeCommand.d.ts +17 -0
  147. package/dist-types/ts3.4/commands/DeleteEntityCommand.d.ts +17 -0
  148. package/dist-types/ts3.4/commands/DeleteSceneCommand.d.ts +17 -0
  149. package/dist-types/ts3.4/commands/DeleteWorkspaceCommand.d.ts +17 -0
  150. package/dist-types/ts3.4/commands/GetComponentTypeCommand.d.ts +17 -0
  151. package/dist-types/ts3.4/commands/GetEntityCommand.d.ts +17 -0
  152. package/dist-types/ts3.4/commands/GetPropertyValueCommand.d.ts +17 -0
  153. package/dist-types/ts3.4/commands/GetPropertyValueHistoryCommand.d.ts +17 -0
  154. package/dist-types/ts3.4/commands/GetSceneCommand.d.ts +17 -0
  155. package/dist-types/ts3.4/commands/GetWorkspaceCommand.d.ts +17 -0
  156. package/dist-types/ts3.4/commands/ListComponentTypesCommand.d.ts +17 -0
  157. package/dist-types/ts3.4/commands/ListEntitiesCommand.d.ts +17 -0
  158. package/dist-types/ts3.4/commands/ListScenesCommand.d.ts +17 -0
  159. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  160. package/dist-types/ts3.4/commands/ListWorkspacesCommand.d.ts +17 -0
  161. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  162. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  163. package/dist-types/ts3.4/commands/UpdateComponentTypeCommand.d.ts +17 -0
  164. package/dist-types/ts3.4/commands/UpdateEntityCommand.d.ts +17 -0
  165. package/dist-types/ts3.4/commands/UpdateSceneCommand.d.ts +17 -0
  166. package/dist-types/ts3.4/commands/UpdateWorkspaceCommand.d.ts +17 -0
  167. package/dist-types/ts3.4/commands/index.d.ts +26 -0
  168. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  169. package/dist-types/ts3.4/index.d.ts +5 -0
  170. package/dist-types/ts3.4/models/index.d.ts +1 -0
  171. package/dist-types/ts3.4/models/models_0.d.ts +1382 -0
  172. package/dist-types/ts3.4/pagination/GetPropertyValueHistoryPaginator.d.ts +4 -0
  173. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  174. package/dist-types/ts3.4/pagination/ListComponentTypesPaginator.d.ts +4 -0
  175. package/dist-types/ts3.4/pagination/ListEntitiesPaginator.d.ts +4 -0
  176. package/dist-types/ts3.4/pagination/ListScenesPaginator.d.ts +4 -0
  177. package/dist-types/ts3.4/pagination/ListWorkspacesPaginator.d.ts +4 -0
  178. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  179. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +80 -0
  180. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
  181. package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
  182. package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
  183. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  184. package/package.json +94 -0
@@ -0,0 +1,397 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IoTTwinMaker = void 0;
4
+ const BatchPutPropertyValuesCommand_1 = require("./commands/BatchPutPropertyValuesCommand");
5
+ const CreateComponentTypeCommand_1 = require("./commands/CreateComponentTypeCommand");
6
+ const CreateEntityCommand_1 = require("./commands/CreateEntityCommand");
7
+ const CreateSceneCommand_1 = require("./commands/CreateSceneCommand");
8
+ const CreateWorkspaceCommand_1 = require("./commands/CreateWorkspaceCommand");
9
+ const DeleteComponentTypeCommand_1 = require("./commands/DeleteComponentTypeCommand");
10
+ const DeleteEntityCommand_1 = require("./commands/DeleteEntityCommand");
11
+ const DeleteSceneCommand_1 = require("./commands/DeleteSceneCommand");
12
+ const DeleteWorkspaceCommand_1 = require("./commands/DeleteWorkspaceCommand");
13
+ const GetComponentTypeCommand_1 = require("./commands/GetComponentTypeCommand");
14
+ const GetEntityCommand_1 = require("./commands/GetEntityCommand");
15
+ const GetPropertyValueCommand_1 = require("./commands/GetPropertyValueCommand");
16
+ const GetPropertyValueHistoryCommand_1 = require("./commands/GetPropertyValueHistoryCommand");
17
+ const GetSceneCommand_1 = require("./commands/GetSceneCommand");
18
+ const GetWorkspaceCommand_1 = require("./commands/GetWorkspaceCommand");
19
+ const ListComponentTypesCommand_1 = require("./commands/ListComponentTypesCommand");
20
+ const ListEntitiesCommand_1 = require("./commands/ListEntitiesCommand");
21
+ const ListScenesCommand_1 = require("./commands/ListScenesCommand");
22
+ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
23
+ const ListWorkspacesCommand_1 = require("./commands/ListWorkspacesCommand");
24
+ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
25
+ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
26
+ const UpdateComponentTypeCommand_1 = require("./commands/UpdateComponentTypeCommand");
27
+ const UpdateEntityCommand_1 = require("./commands/UpdateEntityCommand");
28
+ const UpdateSceneCommand_1 = require("./commands/UpdateSceneCommand");
29
+ const UpdateWorkspaceCommand_1 = require("./commands/UpdateWorkspaceCommand");
30
+ const IoTTwinMakerClient_1 = require("./IoTTwinMakerClient");
31
+ class IoTTwinMaker extends IoTTwinMakerClient_1.IoTTwinMakerClient {
32
+ batchPutPropertyValues(args, optionsOrCb, cb) {
33
+ const command = new BatchPutPropertyValuesCommand_1.BatchPutPropertyValuesCommand(args);
34
+ if (typeof optionsOrCb === "function") {
35
+ this.send(command, optionsOrCb);
36
+ }
37
+ else if (typeof cb === "function") {
38
+ if (typeof optionsOrCb !== "object")
39
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
+ this.send(command, optionsOrCb || {}, cb);
41
+ }
42
+ else {
43
+ return this.send(command, optionsOrCb);
44
+ }
45
+ }
46
+ createComponentType(args, optionsOrCb, cb) {
47
+ const command = new CreateComponentTypeCommand_1.CreateComponentTypeCommand(args);
48
+ if (typeof optionsOrCb === "function") {
49
+ this.send(command, optionsOrCb);
50
+ }
51
+ else if (typeof cb === "function") {
52
+ if (typeof optionsOrCb !== "object")
53
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
+ this.send(command, optionsOrCb || {}, cb);
55
+ }
56
+ else {
57
+ return this.send(command, optionsOrCb);
58
+ }
59
+ }
60
+ createEntity(args, optionsOrCb, cb) {
61
+ const command = new CreateEntityCommand_1.CreateEntityCommand(args);
62
+ if (typeof optionsOrCb === "function") {
63
+ this.send(command, optionsOrCb);
64
+ }
65
+ else if (typeof cb === "function") {
66
+ if (typeof optionsOrCb !== "object")
67
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
+ this.send(command, optionsOrCb || {}, cb);
69
+ }
70
+ else {
71
+ return this.send(command, optionsOrCb);
72
+ }
73
+ }
74
+ createScene(args, optionsOrCb, cb) {
75
+ const command = new CreateSceneCommand_1.CreateSceneCommand(args);
76
+ if (typeof optionsOrCb === "function") {
77
+ this.send(command, optionsOrCb);
78
+ }
79
+ else if (typeof cb === "function") {
80
+ if (typeof optionsOrCb !== "object")
81
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
+ this.send(command, optionsOrCb || {}, cb);
83
+ }
84
+ else {
85
+ return this.send(command, optionsOrCb);
86
+ }
87
+ }
88
+ createWorkspace(args, optionsOrCb, cb) {
89
+ const command = new CreateWorkspaceCommand_1.CreateWorkspaceCommand(args);
90
+ if (typeof optionsOrCb === "function") {
91
+ this.send(command, optionsOrCb);
92
+ }
93
+ else if (typeof cb === "function") {
94
+ if (typeof optionsOrCb !== "object")
95
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
+ this.send(command, optionsOrCb || {}, cb);
97
+ }
98
+ else {
99
+ return this.send(command, optionsOrCb);
100
+ }
101
+ }
102
+ deleteComponentType(args, optionsOrCb, cb) {
103
+ const command = new DeleteComponentTypeCommand_1.DeleteComponentTypeCommand(args);
104
+ if (typeof optionsOrCb === "function") {
105
+ this.send(command, optionsOrCb);
106
+ }
107
+ else if (typeof cb === "function") {
108
+ if (typeof optionsOrCb !== "object")
109
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
+ this.send(command, optionsOrCb || {}, cb);
111
+ }
112
+ else {
113
+ return this.send(command, optionsOrCb);
114
+ }
115
+ }
116
+ deleteEntity(args, optionsOrCb, cb) {
117
+ const command = new DeleteEntityCommand_1.DeleteEntityCommand(args);
118
+ if (typeof optionsOrCb === "function") {
119
+ this.send(command, optionsOrCb);
120
+ }
121
+ else if (typeof cb === "function") {
122
+ if (typeof optionsOrCb !== "object")
123
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
+ this.send(command, optionsOrCb || {}, cb);
125
+ }
126
+ else {
127
+ return this.send(command, optionsOrCb);
128
+ }
129
+ }
130
+ deleteScene(args, optionsOrCb, cb) {
131
+ const command = new DeleteSceneCommand_1.DeleteSceneCommand(args);
132
+ if (typeof optionsOrCb === "function") {
133
+ this.send(command, optionsOrCb);
134
+ }
135
+ else if (typeof cb === "function") {
136
+ if (typeof optionsOrCb !== "object")
137
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
+ this.send(command, optionsOrCb || {}, cb);
139
+ }
140
+ else {
141
+ return this.send(command, optionsOrCb);
142
+ }
143
+ }
144
+ deleteWorkspace(args, optionsOrCb, cb) {
145
+ const command = new DeleteWorkspaceCommand_1.DeleteWorkspaceCommand(args);
146
+ if (typeof optionsOrCb === "function") {
147
+ this.send(command, optionsOrCb);
148
+ }
149
+ else if (typeof cb === "function") {
150
+ if (typeof optionsOrCb !== "object")
151
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
+ this.send(command, optionsOrCb || {}, cb);
153
+ }
154
+ else {
155
+ return this.send(command, optionsOrCb);
156
+ }
157
+ }
158
+ getComponentType(args, optionsOrCb, cb) {
159
+ const command = new GetComponentTypeCommand_1.GetComponentTypeCommand(args);
160
+ if (typeof optionsOrCb === "function") {
161
+ this.send(command, optionsOrCb);
162
+ }
163
+ else if (typeof cb === "function") {
164
+ if (typeof optionsOrCb !== "object")
165
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
+ this.send(command, optionsOrCb || {}, cb);
167
+ }
168
+ else {
169
+ return this.send(command, optionsOrCb);
170
+ }
171
+ }
172
+ getEntity(args, optionsOrCb, cb) {
173
+ const command = new GetEntityCommand_1.GetEntityCommand(args);
174
+ if (typeof optionsOrCb === "function") {
175
+ this.send(command, optionsOrCb);
176
+ }
177
+ else if (typeof cb === "function") {
178
+ if (typeof optionsOrCb !== "object")
179
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
+ this.send(command, optionsOrCb || {}, cb);
181
+ }
182
+ else {
183
+ return this.send(command, optionsOrCb);
184
+ }
185
+ }
186
+ getPropertyValue(args, optionsOrCb, cb) {
187
+ const command = new GetPropertyValueCommand_1.GetPropertyValueCommand(args);
188
+ if (typeof optionsOrCb === "function") {
189
+ this.send(command, optionsOrCb);
190
+ }
191
+ else if (typeof cb === "function") {
192
+ if (typeof optionsOrCb !== "object")
193
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
+ this.send(command, optionsOrCb || {}, cb);
195
+ }
196
+ else {
197
+ return this.send(command, optionsOrCb);
198
+ }
199
+ }
200
+ getPropertyValueHistory(args, optionsOrCb, cb) {
201
+ const command = new GetPropertyValueHistoryCommand_1.GetPropertyValueHistoryCommand(args);
202
+ if (typeof optionsOrCb === "function") {
203
+ this.send(command, optionsOrCb);
204
+ }
205
+ else if (typeof cb === "function") {
206
+ if (typeof optionsOrCb !== "object")
207
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
+ this.send(command, optionsOrCb || {}, cb);
209
+ }
210
+ else {
211
+ return this.send(command, optionsOrCb);
212
+ }
213
+ }
214
+ getScene(args, optionsOrCb, cb) {
215
+ const command = new GetSceneCommand_1.GetSceneCommand(args);
216
+ if (typeof optionsOrCb === "function") {
217
+ this.send(command, optionsOrCb);
218
+ }
219
+ else if (typeof cb === "function") {
220
+ if (typeof optionsOrCb !== "object")
221
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
+ this.send(command, optionsOrCb || {}, cb);
223
+ }
224
+ else {
225
+ return this.send(command, optionsOrCb);
226
+ }
227
+ }
228
+ getWorkspace(args, optionsOrCb, cb) {
229
+ const command = new GetWorkspaceCommand_1.GetWorkspaceCommand(args);
230
+ if (typeof optionsOrCb === "function") {
231
+ this.send(command, optionsOrCb);
232
+ }
233
+ else if (typeof cb === "function") {
234
+ if (typeof optionsOrCb !== "object")
235
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
+ this.send(command, optionsOrCb || {}, cb);
237
+ }
238
+ else {
239
+ return this.send(command, optionsOrCb);
240
+ }
241
+ }
242
+ listComponentTypes(args, optionsOrCb, cb) {
243
+ const command = new ListComponentTypesCommand_1.ListComponentTypesCommand(args);
244
+ if (typeof optionsOrCb === "function") {
245
+ this.send(command, optionsOrCb);
246
+ }
247
+ else if (typeof cb === "function") {
248
+ if (typeof optionsOrCb !== "object")
249
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
+ this.send(command, optionsOrCb || {}, cb);
251
+ }
252
+ else {
253
+ return this.send(command, optionsOrCb);
254
+ }
255
+ }
256
+ listEntities(args, optionsOrCb, cb) {
257
+ const command = new ListEntitiesCommand_1.ListEntitiesCommand(args);
258
+ if (typeof optionsOrCb === "function") {
259
+ this.send(command, optionsOrCb);
260
+ }
261
+ else if (typeof cb === "function") {
262
+ if (typeof optionsOrCb !== "object")
263
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
+ this.send(command, optionsOrCb || {}, cb);
265
+ }
266
+ else {
267
+ return this.send(command, optionsOrCb);
268
+ }
269
+ }
270
+ listScenes(args, optionsOrCb, cb) {
271
+ const command = new ListScenesCommand_1.ListScenesCommand(args);
272
+ if (typeof optionsOrCb === "function") {
273
+ this.send(command, optionsOrCb);
274
+ }
275
+ else if (typeof cb === "function") {
276
+ if (typeof optionsOrCb !== "object")
277
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
+ this.send(command, optionsOrCb || {}, cb);
279
+ }
280
+ else {
281
+ return this.send(command, optionsOrCb);
282
+ }
283
+ }
284
+ listTagsForResource(args, optionsOrCb, cb) {
285
+ const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
286
+ if (typeof optionsOrCb === "function") {
287
+ this.send(command, optionsOrCb);
288
+ }
289
+ else if (typeof cb === "function") {
290
+ if (typeof optionsOrCb !== "object")
291
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
+ this.send(command, optionsOrCb || {}, cb);
293
+ }
294
+ else {
295
+ return this.send(command, optionsOrCb);
296
+ }
297
+ }
298
+ listWorkspaces(args, optionsOrCb, cb) {
299
+ const command = new ListWorkspacesCommand_1.ListWorkspacesCommand(args);
300
+ if (typeof optionsOrCb === "function") {
301
+ this.send(command, optionsOrCb);
302
+ }
303
+ else if (typeof cb === "function") {
304
+ if (typeof optionsOrCb !== "object")
305
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
+ this.send(command, optionsOrCb || {}, cb);
307
+ }
308
+ else {
309
+ return this.send(command, optionsOrCb);
310
+ }
311
+ }
312
+ tagResource(args, optionsOrCb, cb) {
313
+ const command = new TagResourceCommand_1.TagResourceCommand(args);
314
+ if (typeof optionsOrCb === "function") {
315
+ this.send(command, optionsOrCb);
316
+ }
317
+ else if (typeof cb === "function") {
318
+ if (typeof optionsOrCb !== "object")
319
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
+ this.send(command, optionsOrCb || {}, cb);
321
+ }
322
+ else {
323
+ return this.send(command, optionsOrCb);
324
+ }
325
+ }
326
+ untagResource(args, optionsOrCb, cb) {
327
+ const command = new UntagResourceCommand_1.UntagResourceCommand(args);
328
+ if (typeof optionsOrCb === "function") {
329
+ this.send(command, optionsOrCb);
330
+ }
331
+ else if (typeof cb === "function") {
332
+ if (typeof optionsOrCb !== "object")
333
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
+ this.send(command, optionsOrCb || {}, cb);
335
+ }
336
+ else {
337
+ return this.send(command, optionsOrCb);
338
+ }
339
+ }
340
+ updateComponentType(args, optionsOrCb, cb) {
341
+ const command = new UpdateComponentTypeCommand_1.UpdateComponentTypeCommand(args);
342
+ if (typeof optionsOrCb === "function") {
343
+ this.send(command, optionsOrCb);
344
+ }
345
+ else if (typeof cb === "function") {
346
+ if (typeof optionsOrCb !== "object")
347
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
+ this.send(command, optionsOrCb || {}, cb);
349
+ }
350
+ else {
351
+ return this.send(command, optionsOrCb);
352
+ }
353
+ }
354
+ updateEntity(args, optionsOrCb, cb) {
355
+ const command = new UpdateEntityCommand_1.UpdateEntityCommand(args);
356
+ if (typeof optionsOrCb === "function") {
357
+ this.send(command, optionsOrCb);
358
+ }
359
+ else if (typeof cb === "function") {
360
+ if (typeof optionsOrCb !== "object")
361
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
+ this.send(command, optionsOrCb || {}, cb);
363
+ }
364
+ else {
365
+ return this.send(command, optionsOrCb);
366
+ }
367
+ }
368
+ updateScene(args, optionsOrCb, cb) {
369
+ const command = new UpdateSceneCommand_1.UpdateSceneCommand(args);
370
+ if (typeof optionsOrCb === "function") {
371
+ this.send(command, optionsOrCb);
372
+ }
373
+ else if (typeof cb === "function") {
374
+ if (typeof optionsOrCb !== "object")
375
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
+ this.send(command, optionsOrCb || {}, cb);
377
+ }
378
+ else {
379
+ return this.send(command, optionsOrCb);
380
+ }
381
+ }
382
+ updateWorkspace(args, optionsOrCb, cb) {
383
+ const command = new UpdateWorkspaceCommand_1.UpdateWorkspaceCommand(args);
384
+ if (typeof optionsOrCb === "function") {
385
+ this.send(command, optionsOrCb);
386
+ }
387
+ else if (typeof cb === "function") {
388
+ if (typeof optionsOrCb !== "object")
389
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
390
+ this.send(command, optionsOrCb || {}, cb);
391
+ }
392
+ else {
393
+ return this.send(command, optionsOrCb);
394
+ }
395
+ }
396
+ }
397
+ exports.IoTTwinMaker = IoTTwinMaker;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IoTTwinMakerClient = void 0;
4
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
+ const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
+ const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
+ const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
+ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
+ const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
+ const runtimeConfig_1 = require("./runtimeConfig");
13
+ class IoTTwinMakerClient extends smithy_client_1.Client {
14
+ constructor(configuration) {
15
+ const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
16
+ const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
17
+ const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
18
+ const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
19
+ const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
20
+ const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
21
+ const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
22
+ super(_config_6);
23
+ this.config = _config_6;
24
+ this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
25
+ this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
26
+ this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
27
+ this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
28
+ this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
29
+ this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
30
+ }
31
+ destroy() {
32
+ super.destroy();
33
+ }
34
+ }
35
+ exports.IoTTwinMakerClient = IoTTwinMakerClient;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchPutPropertyValuesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class BatchPutPropertyValuesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "IoTTwinMakerClient";
18
+ const commandName = "BatchPutPropertyValuesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.BatchPutPropertyValuesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.BatchPutPropertyValuesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1BatchPutPropertyValuesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1BatchPutPropertyValuesCommand(output, context);
34
+ }
35
+ }
36
+ exports.BatchPutPropertyValuesCommand = BatchPutPropertyValuesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateComponentTypeCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateComponentTypeCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "IoTTwinMakerClient";
18
+ const commandName = "CreateComponentTypeCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateComponentTypeRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateComponentTypeResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateComponentTypeCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateComponentTypeCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateComponentTypeCommand = CreateComponentTypeCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateEntityCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateEntityCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "IoTTwinMakerClient";
18
+ const commandName = "CreateEntityCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateEntityRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateEntityResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateEntityCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateEntityCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateEntityCommand = CreateEntityCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateSceneCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateSceneCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "IoTTwinMakerClient";
18
+ const commandName = "CreateSceneCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateSceneRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateSceneResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateSceneCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateSceneCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateSceneCommand = CreateSceneCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateWorkspaceCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateWorkspaceCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "IoTTwinMakerClient";
18
+ const commandName = "CreateWorkspaceCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateWorkspaceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateWorkspaceResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateWorkspaceCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateWorkspaceCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateWorkspaceCommand = CreateWorkspaceCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteComponentTypeCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteComponentTypeCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "IoTTwinMakerClient";
18
+ const commandName = "DeleteComponentTypeCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteComponentTypeRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteComponentTypeResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DeleteComponentTypeCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DeleteComponentTypeCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteComponentTypeCommand = DeleteComponentTypeCommand;