@aws-sdk/client-iot-events 3.315.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IoTEvents = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const CreateAlarmModelCommand_1 = require("./commands/CreateAlarmModelCommand");
5
6
  const CreateDetectorModelCommand_1 = require("./commands/CreateDetectorModelCommand");
6
7
  const CreateInputCommand_1 = require("./commands/CreateInputCommand");
@@ -28,370 +29,35 @@ const UpdateAlarmModelCommand_1 = require("./commands/UpdateAlarmModelCommand");
28
29
  const UpdateDetectorModelCommand_1 = require("./commands/UpdateDetectorModelCommand");
29
30
  const UpdateInputCommand_1 = require("./commands/UpdateInputCommand");
30
31
  const IoTEventsClient_1 = require("./IoTEventsClient");
32
+ const commands = {
33
+ CreateAlarmModelCommand: CreateAlarmModelCommand_1.CreateAlarmModelCommand,
34
+ CreateDetectorModelCommand: CreateDetectorModelCommand_1.CreateDetectorModelCommand,
35
+ CreateInputCommand: CreateInputCommand_1.CreateInputCommand,
36
+ DeleteAlarmModelCommand: DeleteAlarmModelCommand_1.DeleteAlarmModelCommand,
37
+ DeleteDetectorModelCommand: DeleteDetectorModelCommand_1.DeleteDetectorModelCommand,
38
+ DeleteInputCommand: DeleteInputCommand_1.DeleteInputCommand,
39
+ DescribeAlarmModelCommand: DescribeAlarmModelCommand_1.DescribeAlarmModelCommand,
40
+ DescribeDetectorModelCommand: DescribeDetectorModelCommand_1.DescribeDetectorModelCommand,
41
+ DescribeDetectorModelAnalysisCommand: DescribeDetectorModelAnalysisCommand_1.DescribeDetectorModelAnalysisCommand,
42
+ DescribeInputCommand: DescribeInputCommand_1.DescribeInputCommand,
43
+ DescribeLoggingOptionsCommand: DescribeLoggingOptionsCommand_1.DescribeLoggingOptionsCommand,
44
+ GetDetectorModelAnalysisResultsCommand: GetDetectorModelAnalysisResultsCommand_1.GetDetectorModelAnalysisResultsCommand,
45
+ ListAlarmModelsCommand: ListAlarmModelsCommand_1.ListAlarmModelsCommand,
46
+ ListAlarmModelVersionsCommand: ListAlarmModelVersionsCommand_1.ListAlarmModelVersionsCommand,
47
+ ListDetectorModelsCommand: ListDetectorModelsCommand_1.ListDetectorModelsCommand,
48
+ ListDetectorModelVersionsCommand: ListDetectorModelVersionsCommand_1.ListDetectorModelVersionsCommand,
49
+ ListInputRoutingsCommand: ListInputRoutingsCommand_1.ListInputRoutingsCommand,
50
+ ListInputsCommand: ListInputsCommand_1.ListInputsCommand,
51
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
52
+ PutLoggingOptionsCommand: PutLoggingOptionsCommand_1.PutLoggingOptionsCommand,
53
+ StartDetectorModelAnalysisCommand: StartDetectorModelAnalysisCommand_1.StartDetectorModelAnalysisCommand,
54
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
55
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
56
+ UpdateAlarmModelCommand: UpdateAlarmModelCommand_1.UpdateAlarmModelCommand,
57
+ UpdateDetectorModelCommand: UpdateDetectorModelCommand_1.UpdateDetectorModelCommand,
58
+ UpdateInputCommand: UpdateInputCommand_1.UpdateInputCommand,
59
+ };
31
60
  class IoTEvents extends IoTEventsClient_1.IoTEventsClient {
32
- createAlarmModel(args, optionsOrCb, cb) {
33
- const command = new CreateAlarmModelCommand_1.CreateAlarmModelCommand(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
- createDetectorModel(args, optionsOrCb, cb) {
47
- const command = new CreateDetectorModelCommand_1.CreateDetectorModelCommand(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
- createInput(args, optionsOrCb, cb) {
61
- const command = new CreateInputCommand_1.CreateInputCommand(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
- deleteAlarmModel(args, optionsOrCb, cb) {
75
- const command = new DeleteAlarmModelCommand_1.DeleteAlarmModelCommand(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
- deleteDetectorModel(args, optionsOrCb, cb) {
89
- const command = new DeleteDetectorModelCommand_1.DeleteDetectorModelCommand(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
- deleteInput(args, optionsOrCb, cb) {
103
- const command = new DeleteInputCommand_1.DeleteInputCommand(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
- describeAlarmModel(args, optionsOrCb, cb) {
117
- const command = new DescribeAlarmModelCommand_1.DescribeAlarmModelCommand(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
- describeDetectorModel(args, optionsOrCb, cb) {
131
- const command = new DescribeDetectorModelCommand_1.DescribeDetectorModelCommand(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
- describeDetectorModelAnalysis(args, optionsOrCb, cb) {
145
- const command = new DescribeDetectorModelAnalysisCommand_1.DescribeDetectorModelAnalysisCommand(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
- describeInput(args, optionsOrCb, cb) {
159
- const command = new DescribeInputCommand_1.DescribeInputCommand(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
- describeLoggingOptions(args, optionsOrCb, cb) {
173
- const command = new DescribeLoggingOptionsCommand_1.DescribeLoggingOptionsCommand(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
- getDetectorModelAnalysisResults(args, optionsOrCb, cb) {
187
- const command = new GetDetectorModelAnalysisResultsCommand_1.GetDetectorModelAnalysisResultsCommand(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
- listAlarmModels(args, optionsOrCb, cb) {
201
- const command = new ListAlarmModelsCommand_1.ListAlarmModelsCommand(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
- listAlarmModelVersions(args, optionsOrCb, cb) {
215
- const command = new ListAlarmModelVersionsCommand_1.ListAlarmModelVersionsCommand(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
- listDetectorModels(args, optionsOrCb, cb) {
229
- const command = new ListDetectorModelsCommand_1.ListDetectorModelsCommand(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
- listDetectorModelVersions(args, optionsOrCb, cb) {
243
- const command = new ListDetectorModelVersionsCommand_1.ListDetectorModelVersionsCommand(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
- listInputRoutings(args, optionsOrCb, cb) {
257
- const command = new ListInputRoutingsCommand_1.ListInputRoutingsCommand(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
- listInputs(args, optionsOrCb, cb) {
271
- const command = new ListInputsCommand_1.ListInputsCommand(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
- putLoggingOptions(args, optionsOrCb, cb) {
299
- const command = new PutLoggingOptionsCommand_1.PutLoggingOptionsCommand(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
- startDetectorModelAnalysis(args, optionsOrCb, cb) {
313
- const command = new StartDetectorModelAnalysisCommand_1.StartDetectorModelAnalysisCommand(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
- tagResource(args, optionsOrCb, cb) {
327
- const command = new TagResourceCommand_1.TagResourceCommand(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
- untagResource(args, optionsOrCb, cb) {
341
- const command = new UntagResourceCommand_1.UntagResourceCommand(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
- updateAlarmModel(args, optionsOrCb, cb) {
355
- const command = new UpdateAlarmModelCommand_1.UpdateAlarmModelCommand(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
- updateDetectorModel(args, optionsOrCb, cb) {
369
- const command = new UpdateDetectorModelCommand_1.UpdateDetectorModelCommand(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
- updateInput(args, optionsOrCb, cb) {
383
- const command = new UpdateInputCommand_1.UpdateInputCommand(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
61
  }
397
62
  exports.IoTEvents = IoTEvents;
63
+ (0, smithy_client_1.createAggregatedClient)(commands, IoTEvents);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { CreateAlarmModelCommand, } from "./commands/CreateAlarmModelCommand";
2
3
  import { CreateDetectorModelCommand, } from "./commands/CreateDetectorModelCommand";
3
4
  import { CreateInputCommand } from "./commands/CreateInputCommand";
@@ -25,369 +26,34 @@ import { UpdateAlarmModelCommand, } from "./commands/UpdateAlarmModelCommand";
25
26
  import { UpdateDetectorModelCommand, } from "./commands/UpdateDetectorModelCommand";
26
27
  import { UpdateInputCommand } from "./commands/UpdateInputCommand";
27
28
  import { IoTEventsClient } from "./IoTEventsClient";
29
+ const commands = {
30
+ CreateAlarmModelCommand,
31
+ CreateDetectorModelCommand,
32
+ CreateInputCommand,
33
+ DeleteAlarmModelCommand,
34
+ DeleteDetectorModelCommand,
35
+ DeleteInputCommand,
36
+ DescribeAlarmModelCommand,
37
+ DescribeDetectorModelCommand,
38
+ DescribeDetectorModelAnalysisCommand,
39
+ DescribeInputCommand,
40
+ DescribeLoggingOptionsCommand,
41
+ GetDetectorModelAnalysisResultsCommand,
42
+ ListAlarmModelsCommand,
43
+ ListAlarmModelVersionsCommand,
44
+ ListDetectorModelsCommand,
45
+ ListDetectorModelVersionsCommand,
46
+ ListInputRoutingsCommand,
47
+ ListInputsCommand,
48
+ ListTagsForResourceCommand,
49
+ PutLoggingOptionsCommand,
50
+ StartDetectorModelAnalysisCommand,
51
+ TagResourceCommand,
52
+ UntagResourceCommand,
53
+ UpdateAlarmModelCommand,
54
+ UpdateDetectorModelCommand,
55
+ UpdateInputCommand,
56
+ };
28
57
  export class IoTEvents extends IoTEventsClient {
29
- createAlarmModel(args, optionsOrCb, cb) {
30
- const command = new CreateAlarmModelCommand(args);
31
- if (typeof optionsOrCb === "function") {
32
- this.send(command, optionsOrCb);
33
- }
34
- else if (typeof cb === "function") {
35
- if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
- this.send(command, optionsOrCb || {}, cb);
38
- }
39
- else {
40
- return this.send(command, optionsOrCb);
41
- }
42
- }
43
- createDetectorModel(args, optionsOrCb, cb) {
44
- const command = new CreateDetectorModelCommand(args);
45
- if (typeof optionsOrCb === "function") {
46
- this.send(command, optionsOrCb);
47
- }
48
- else if (typeof cb === "function") {
49
- if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
- this.send(command, optionsOrCb || {}, cb);
52
- }
53
- else {
54
- return this.send(command, optionsOrCb);
55
- }
56
- }
57
- createInput(args, optionsOrCb, cb) {
58
- const command = new CreateInputCommand(args);
59
- if (typeof optionsOrCb === "function") {
60
- this.send(command, optionsOrCb);
61
- }
62
- else if (typeof cb === "function") {
63
- if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
- this.send(command, optionsOrCb || {}, cb);
66
- }
67
- else {
68
- return this.send(command, optionsOrCb);
69
- }
70
- }
71
- deleteAlarmModel(args, optionsOrCb, cb) {
72
- const command = new DeleteAlarmModelCommand(args);
73
- if (typeof optionsOrCb === "function") {
74
- this.send(command, optionsOrCb);
75
- }
76
- else if (typeof cb === "function") {
77
- if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- }
81
- else {
82
- return this.send(command, optionsOrCb);
83
- }
84
- }
85
- deleteDetectorModel(args, optionsOrCb, cb) {
86
- const command = new DeleteDetectorModelCommand(args);
87
- if (typeof optionsOrCb === "function") {
88
- this.send(command, optionsOrCb);
89
- }
90
- else if (typeof cb === "function") {
91
- if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
- this.send(command, optionsOrCb || {}, cb);
94
- }
95
- else {
96
- return this.send(command, optionsOrCb);
97
- }
98
- }
99
- deleteInput(args, optionsOrCb, cb) {
100
- const command = new DeleteInputCommand(args);
101
- if (typeof optionsOrCb === "function") {
102
- this.send(command, optionsOrCb);
103
- }
104
- else if (typeof cb === "function") {
105
- if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
- this.send(command, optionsOrCb || {}, cb);
108
- }
109
- else {
110
- return this.send(command, optionsOrCb);
111
- }
112
- }
113
- describeAlarmModel(args, optionsOrCb, cb) {
114
- const command = new DescribeAlarmModelCommand(args);
115
- if (typeof optionsOrCb === "function") {
116
- this.send(command, optionsOrCb);
117
- }
118
- else if (typeof cb === "function") {
119
- if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
- this.send(command, optionsOrCb || {}, cb);
122
- }
123
- else {
124
- return this.send(command, optionsOrCb);
125
- }
126
- }
127
- describeDetectorModel(args, optionsOrCb, cb) {
128
- const command = new DescribeDetectorModelCommand(args);
129
- if (typeof optionsOrCb === "function") {
130
- this.send(command, optionsOrCb);
131
- }
132
- else if (typeof cb === "function") {
133
- if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
- this.send(command, optionsOrCb || {}, cb);
136
- }
137
- else {
138
- return this.send(command, optionsOrCb);
139
- }
140
- }
141
- describeDetectorModelAnalysis(args, optionsOrCb, cb) {
142
- const command = new DescribeDetectorModelAnalysisCommand(args);
143
- if (typeof optionsOrCb === "function") {
144
- this.send(command, optionsOrCb);
145
- }
146
- else if (typeof cb === "function") {
147
- if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
- this.send(command, optionsOrCb || {}, cb);
150
- }
151
- else {
152
- return this.send(command, optionsOrCb);
153
- }
154
- }
155
- describeInput(args, optionsOrCb, cb) {
156
- const command = new DescribeInputCommand(args);
157
- if (typeof optionsOrCb === "function") {
158
- this.send(command, optionsOrCb);
159
- }
160
- else if (typeof cb === "function") {
161
- if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
- this.send(command, optionsOrCb || {}, cb);
164
- }
165
- else {
166
- return this.send(command, optionsOrCb);
167
- }
168
- }
169
- describeLoggingOptions(args, optionsOrCb, cb) {
170
- const command = new DescribeLoggingOptionsCommand(args);
171
- if (typeof optionsOrCb === "function") {
172
- this.send(command, optionsOrCb);
173
- }
174
- else if (typeof cb === "function") {
175
- if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
- this.send(command, optionsOrCb || {}, cb);
178
- }
179
- else {
180
- return this.send(command, optionsOrCb);
181
- }
182
- }
183
- getDetectorModelAnalysisResults(args, optionsOrCb, cb) {
184
- const command = new GetDetectorModelAnalysisResultsCommand(args);
185
- if (typeof optionsOrCb === "function") {
186
- this.send(command, optionsOrCb);
187
- }
188
- else if (typeof cb === "function") {
189
- if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
- this.send(command, optionsOrCb || {}, cb);
192
- }
193
- else {
194
- return this.send(command, optionsOrCb);
195
- }
196
- }
197
- listAlarmModels(args, optionsOrCb, cb) {
198
- const command = new ListAlarmModelsCommand(args);
199
- if (typeof optionsOrCb === "function") {
200
- this.send(command, optionsOrCb);
201
- }
202
- else if (typeof cb === "function") {
203
- if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
- this.send(command, optionsOrCb || {}, cb);
206
- }
207
- else {
208
- return this.send(command, optionsOrCb);
209
- }
210
- }
211
- listAlarmModelVersions(args, optionsOrCb, cb) {
212
- const command = new ListAlarmModelVersionsCommand(args);
213
- if (typeof optionsOrCb === "function") {
214
- this.send(command, optionsOrCb);
215
- }
216
- else if (typeof cb === "function") {
217
- if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
- this.send(command, optionsOrCb || {}, cb);
220
- }
221
- else {
222
- return this.send(command, optionsOrCb);
223
- }
224
- }
225
- listDetectorModels(args, optionsOrCb, cb) {
226
- const command = new ListDetectorModelsCommand(args);
227
- if (typeof optionsOrCb === "function") {
228
- this.send(command, optionsOrCb);
229
- }
230
- else if (typeof cb === "function") {
231
- if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
- this.send(command, optionsOrCb || {}, cb);
234
- }
235
- else {
236
- return this.send(command, optionsOrCb);
237
- }
238
- }
239
- listDetectorModelVersions(args, optionsOrCb, cb) {
240
- const command = new ListDetectorModelVersionsCommand(args);
241
- if (typeof optionsOrCb === "function") {
242
- this.send(command, optionsOrCb);
243
- }
244
- else if (typeof cb === "function") {
245
- if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
- this.send(command, optionsOrCb || {}, cb);
248
- }
249
- else {
250
- return this.send(command, optionsOrCb);
251
- }
252
- }
253
- listInputRoutings(args, optionsOrCb, cb) {
254
- const command = new ListInputRoutingsCommand(args);
255
- if (typeof optionsOrCb === "function") {
256
- this.send(command, optionsOrCb);
257
- }
258
- else if (typeof cb === "function") {
259
- if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
- this.send(command, optionsOrCb || {}, cb);
262
- }
263
- else {
264
- return this.send(command, optionsOrCb);
265
- }
266
- }
267
- listInputs(args, optionsOrCb, cb) {
268
- const command = new ListInputsCommand(args);
269
- if (typeof optionsOrCb === "function") {
270
- this.send(command, optionsOrCb);
271
- }
272
- else if (typeof cb === "function") {
273
- if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
- this.send(command, optionsOrCb || {}, cb);
276
- }
277
- else {
278
- return this.send(command, optionsOrCb);
279
- }
280
- }
281
- listTagsForResource(args, optionsOrCb, cb) {
282
- const command = new ListTagsForResourceCommand(args);
283
- if (typeof optionsOrCb === "function") {
284
- this.send(command, optionsOrCb);
285
- }
286
- else if (typeof cb === "function") {
287
- if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
- this.send(command, optionsOrCb || {}, cb);
290
- }
291
- else {
292
- return this.send(command, optionsOrCb);
293
- }
294
- }
295
- putLoggingOptions(args, optionsOrCb, cb) {
296
- const command = new PutLoggingOptionsCommand(args);
297
- if (typeof optionsOrCb === "function") {
298
- this.send(command, optionsOrCb);
299
- }
300
- else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
- this.send(command, optionsOrCb || {}, cb);
304
- }
305
- else {
306
- return this.send(command, optionsOrCb);
307
- }
308
- }
309
- startDetectorModelAnalysis(args, optionsOrCb, cb) {
310
- const command = new StartDetectorModelAnalysisCommand(args);
311
- if (typeof optionsOrCb === "function") {
312
- this.send(command, optionsOrCb);
313
- }
314
- else if (typeof cb === "function") {
315
- if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
- this.send(command, optionsOrCb || {}, cb);
318
- }
319
- else {
320
- return this.send(command, optionsOrCb);
321
- }
322
- }
323
- tagResource(args, optionsOrCb, cb) {
324
- const command = new TagResourceCommand(args);
325
- if (typeof optionsOrCb === "function") {
326
- this.send(command, optionsOrCb);
327
- }
328
- else if (typeof cb === "function") {
329
- if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
- this.send(command, optionsOrCb || {}, cb);
332
- }
333
- else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
- untagResource(args, optionsOrCb, cb) {
338
- const command = new UntagResourceCommand(args);
339
- if (typeof optionsOrCb === "function") {
340
- this.send(command, optionsOrCb);
341
- }
342
- else if (typeof cb === "function") {
343
- if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
- this.send(command, optionsOrCb || {}, cb);
346
- }
347
- else {
348
- return this.send(command, optionsOrCb);
349
- }
350
- }
351
- updateAlarmModel(args, optionsOrCb, cb) {
352
- const command = new UpdateAlarmModelCommand(args);
353
- if (typeof optionsOrCb === "function") {
354
- this.send(command, optionsOrCb);
355
- }
356
- else if (typeof cb === "function") {
357
- if (typeof optionsOrCb !== "object")
358
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
359
- this.send(command, optionsOrCb || {}, cb);
360
- }
361
- else {
362
- return this.send(command, optionsOrCb);
363
- }
364
- }
365
- updateDetectorModel(args, optionsOrCb, cb) {
366
- const command = new UpdateDetectorModelCommand(args);
367
- if (typeof optionsOrCb === "function") {
368
- this.send(command, optionsOrCb);
369
- }
370
- else if (typeof cb === "function") {
371
- if (typeof optionsOrCb !== "object")
372
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
373
- this.send(command, optionsOrCb || {}, cb);
374
- }
375
- else {
376
- return this.send(command, optionsOrCb);
377
- }
378
- }
379
- updateInput(args, optionsOrCb, cb) {
380
- const command = new UpdateInputCommand(args);
381
- if (typeof optionsOrCb === "function") {
382
- this.send(command, optionsOrCb);
383
- }
384
- else if (typeof cb === "function") {
385
- if (typeof optionsOrCb !== "object")
386
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
387
- this.send(command, optionsOrCb || {}, cb);
388
- }
389
- else {
390
- return this.send(command, optionsOrCb);
391
- }
392
- }
393
58
  }
59
+ createAggregatedClient(commands, IoTEvents);
@@ -26,220 +26,169 @@ import { UpdateAlarmModelCommandInput, UpdateAlarmModelCommandOutput } from "./c
26
26
  import { UpdateDetectorModelCommandInput, UpdateDetectorModelCommandOutput } from "./commands/UpdateDetectorModelCommand";
27
27
  import { UpdateInputCommandInput, UpdateInputCommandOutput } from "./commands/UpdateInputCommand";
28
28
  import { IoTEventsClient } from "./IoTEventsClient";
29
- /**
30
- * @public
31
- * <p>AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and
32
- * triggers actions when such events occur. You can use AWS IoT Events API operations to create, read,
33
- * update, and delete inputs and detector models, and to list their versions.</p>
34
- */
35
- export declare class IoTEvents extends IoTEventsClient {
29
+ export interface IoTEvents {
36
30
  /**
37
- * @public
38
- * <p>Creates an alarm model to monitor an AWS IoT Events input attribute. You can use the alarm to get
39
- * notified when the value is outside a specified range. For more information, see <a href="https://docs.aws.amazon.com/iotevents/latest/developerguide/create-alarms.html">Create an
40
- * alarm model</a> in the <i>AWS IoT Events Developer Guide</i>.</p>
31
+ * @see {@link CreateAlarmModelCommand}
41
32
  */
42
33
  createAlarmModel(args: CreateAlarmModelCommandInput, options?: __HttpHandlerOptions): Promise<CreateAlarmModelCommandOutput>;
43
34
  createAlarmModel(args: CreateAlarmModelCommandInput, cb: (err: any, data?: CreateAlarmModelCommandOutput) => void): void;
44
35
  createAlarmModel(args: CreateAlarmModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAlarmModelCommandOutput) => void): void;
45
36
  /**
46
- * @public
47
- * <p>Creates a detector model.</p>
37
+ * @see {@link CreateDetectorModelCommand}
48
38
  */
49
39
  createDetectorModel(args: CreateDetectorModelCommandInput, options?: __HttpHandlerOptions): Promise<CreateDetectorModelCommandOutput>;
50
40
  createDetectorModel(args: CreateDetectorModelCommandInput, cb: (err: any, data?: CreateDetectorModelCommandOutput) => void): void;
51
41
  createDetectorModel(args: CreateDetectorModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDetectorModelCommandOutput) => void): void;
52
42
  /**
53
- * @public
54
- * <p>Creates an input.</p>
43
+ * @see {@link CreateInputCommand}
55
44
  */
56
45
  createInput(args: CreateInputCommandInput, options?: __HttpHandlerOptions): Promise<CreateInputCommandOutput>;
57
46
  createInput(args: CreateInputCommandInput, cb: (err: any, data?: CreateInputCommandOutput) => void): void;
58
47
  createInput(args: CreateInputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateInputCommandOutput) => void): void;
59
48
  /**
60
- * @public
61
- * <p>Deletes an alarm model. Any alarm instances that were created based on this alarm model
62
- * are also deleted. This action can't be undone.</p>
49
+ * @see {@link DeleteAlarmModelCommand}
63
50
  */
64
51
  deleteAlarmModel(args: DeleteAlarmModelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAlarmModelCommandOutput>;
65
52
  deleteAlarmModel(args: DeleteAlarmModelCommandInput, cb: (err: any, data?: DeleteAlarmModelCommandOutput) => void): void;
66
53
  deleteAlarmModel(args: DeleteAlarmModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAlarmModelCommandOutput) => void): void;
67
54
  /**
68
- * @public
69
- * <p>Deletes a detector model. Any active instances of the detector model are also
70
- * deleted.</p>
55
+ * @see {@link DeleteDetectorModelCommand}
71
56
  */
72
57
  deleteDetectorModel(args: DeleteDetectorModelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDetectorModelCommandOutput>;
73
58
  deleteDetectorModel(args: DeleteDetectorModelCommandInput, cb: (err: any, data?: DeleteDetectorModelCommandOutput) => void): void;
74
59
  deleteDetectorModel(args: DeleteDetectorModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDetectorModelCommandOutput) => void): void;
75
60
  /**
76
- * @public
77
- * <p>Deletes an input.</p>
61
+ * @see {@link DeleteInputCommand}
78
62
  */
79
63
  deleteInput(args: DeleteInputCommandInput, options?: __HttpHandlerOptions): Promise<DeleteInputCommandOutput>;
80
64
  deleteInput(args: DeleteInputCommandInput, cb: (err: any, data?: DeleteInputCommandOutput) => void): void;
81
65
  deleteInput(args: DeleteInputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInputCommandOutput) => void): void;
82
66
  /**
83
- * @public
84
- * <p>Retrieves information about an alarm model. If you don't specify a value for the
85
- * <code>alarmModelVersion</code> parameter, the latest version is returned.</p>
67
+ * @see {@link DescribeAlarmModelCommand}
86
68
  */
87
69
  describeAlarmModel(args: DescribeAlarmModelCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAlarmModelCommandOutput>;
88
70
  describeAlarmModel(args: DescribeAlarmModelCommandInput, cb: (err: any, data?: DescribeAlarmModelCommandOutput) => void): void;
89
71
  describeAlarmModel(args: DescribeAlarmModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAlarmModelCommandOutput) => void): void;
90
72
  /**
91
- * @public
92
- * <p>Describes a detector model. If the <code>version</code> parameter is not specified,
93
- * information about the latest version is returned.</p>
73
+ * @see {@link DescribeDetectorModelCommand}
94
74
  */
95
75
  describeDetectorModel(args: DescribeDetectorModelCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDetectorModelCommandOutput>;
96
76
  describeDetectorModel(args: DescribeDetectorModelCommandInput, cb: (err: any, data?: DescribeDetectorModelCommandOutput) => void): void;
97
77
  describeDetectorModel(args: DescribeDetectorModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDetectorModelCommandOutput) => void): void;
98
78
  /**
99
- * @public
100
- * <p>Retrieves runtime information about a detector model analysis.</p>
101
- * <note>
102
- * <p>After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.</p>
103
- * </note>
79
+ * @see {@link DescribeDetectorModelAnalysisCommand}
104
80
  */
105
81
  describeDetectorModelAnalysis(args: DescribeDetectorModelAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDetectorModelAnalysisCommandOutput>;
106
82
  describeDetectorModelAnalysis(args: DescribeDetectorModelAnalysisCommandInput, cb: (err: any, data?: DescribeDetectorModelAnalysisCommandOutput) => void): void;
107
83
  describeDetectorModelAnalysis(args: DescribeDetectorModelAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDetectorModelAnalysisCommandOutput) => void): void;
108
84
  /**
109
- * @public
110
- * <p>Describes an input.</p>
85
+ * @see {@link DescribeInputCommand}
111
86
  */
112
87
  describeInput(args: DescribeInputCommandInput, options?: __HttpHandlerOptions): Promise<DescribeInputCommandOutput>;
113
88
  describeInput(args: DescribeInputCommandInput, cb: (err: any, data?: DescribeInputCommandOutput) => void): void;
114
89
  describeInput(args: DescribeInputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeInputCommandOutput) => void): void;
115
90
  /**
116
- * @public
117
- * <p>Retrieves the current settings of the AWS IoT Events logging options.</p>
91
+ * @see {@link DescribeLoggingOptionsCommand}
118
92
  */
119
93
  describeLoggingOptions(args: DescribeLoggingOptionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLoggingOptionsCommandOutput>;
120
94
  describeLoggingOptions(args: DescribeLoggingOptionsCommandInput, cb: (err: any, data?: DescribeLoggingOptionsCommandOutput) => void): void;
121
95
  describeLoggingOptions(args: DescribeLoggingOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLoggingOptionsCommandOutput) => void): void;
122
96
  /**
123
- * @public
124
- * <p>Retrieves one or more analysis results of the detector model.</p>
125
- * <note>
126
- * <p>After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.</p>
127
- * </note>
97
+ * @see {@link GetDetectorModelAnalysisResultsCommand}
128
98
  */
129
99
  getDetectorModelAnalysisResults(args: GetDetectorModelAnalysisResultsCommandInput, options?: __HttpHandlerOptions): Promise<GetDetectorModelAnalysisResultsCommandOutput>;
130
100
  getDetectorModelAnalysisResults(args: GetDetectorModelAnalysisResultsCommandInput, cb: (err: any, data?: GetDetectorModelAnalysisResultsCommandOutput) => void): void;
131
101
  getDetectorModelAnalysisResults(args: GetDetectorModelAnalysisResultsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDetectorModelAnalysisResultsCommandOutput) => void): void;
132
102
  /**
133
- * @public
134
- * <p>Lists the alarm models that you created. The operation returns only the metadata
135
- * associated with each alarm model.</p>
103
+ * @see {@link ListAlarmModelsCommand}
136
104
  */
137
105
  listAlarmModels(args: ListAlarmModelsCommandInput, options?: __HttpHandlerOptions): Promise<ListAlarmModelsCommandOutput>;
138
106
  listAlarmModels(args: ListAlarmModelsCommandInput, cb: (err: any, data?: ListAlarmModelsCommandOutput) => void): void;
139
107
  listAlarmModels(args: ListAlarmModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAlarmModelsCommandOutput) => void): void;
140
108
  /**
141
- * @public
142
- * <p>Lists all the versions of an alarm model. The operation returns only the metadata
143
- * associated with each alarm model version.</p>
109
+ * @see {@link ListAlarmModelVersionsCommand}
144
110
  */
145
111
  listAlarmModelVersions(args: ListAlarmModelVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListAlarmModelVersionsCommandOutput>;
146
112
  listAlarmModelVersions(args: ListAlarmModelVersionsCommandInput, cb: (err: any, data?: ListAlarmModelVersionsCommandOutput) => void): void;
147
113
  listAlarmModelVersions(args: ListAlarmModelVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAlarmModelVersionsCommandOutput) => void): void;
148
114
  /**
149
- * @public
150
- * <p>Lists the detector models you have created. Only the metadata associated with each
151
- * detector model is returned.</p>
115
+ * @see {@link ListDetectorModelsCommand}
152
116
  */
153
117
  listDetectorModels(args: ListDetectorModelsCommandInput, options?: __HttpHandlerOptions): Promise<ListDetectorModelsCommandOutput>;
154
118
  listDetectorModels(args: ListDetectorModelsCommandInput, cb: (err: any, data?: ListDetectorModelsCommandOutput) => void): void;
155
119
  listDetectorModels(args: ListDetectorModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDetectorModelsCommandOutput) => void): void;
156
120
  /**
157
- * @public
158
- * <p>Lists all the versions of a detector model. Only the metadata associated with each
159
- * detector model version is returned.</p>
121
+ * @see {@link ListDetectorModelVersionsCommand}
160
122
  */
161
123
  listDetectorModelVersions(args: ListDetectorModelVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListDetectorModelVersionsCommandOutput>;
162
124
  listDetectorModelVersions(args: ListDetectorModelVersionsCommandInput, cb: (err: any, data?: ListDetectorModelVersionsCommandOutput) => void): void;
163
125
  listDetectorModelVersions(args: ListDetectorModelVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDetectorModelVersionsCommandOutput) => void): void;
164
126
  /**
165
- * @public
166
- * <p>
167
- * Lists one or more input routings.
168
- * </p>
127
+ * @see {@link ListInputRoutingsCommand}
169
128
  */
170
129
  listInputRoutings(args: ListInputRoutingsCommandInput, options?: __HttpHandlerOptions): Promise<ListInputRoutingsCommandOutput>;
171
130
  listInputRoutings(args: ListInputRoutingsCommandInput, cb: (err: any, data?: ListInputRoutingsCommandOutput) => void): void;
172
131
  listInputRoutings(args: ListInputRoutingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInputRoutingsCommandOutput) => void): void;
173
132
  /**
174
- * @public
175
- * <p>Lists the inputs you have created.</p>
133
+ * @see {@link ListInputsCommand}
176
134
  */
177
135
  listInputs(args: ListInputsCommandInput, options?: __HttpHandlerOptions): Promise<ListInputsCommandOutput>;
178
136
  listInputs(args: ListInputsCommandInput, cb: (err: any, data?: ListInputsCommandOutput) => void): void;
179
137
  listInputs(args: ListInputsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInputsCommandOutput) => void): void;
180
138
  /**
181
- * @public
182
- * <p>Lists the tags (metadata) you have assigned to the resource.</p>
139
+ * @see {@link ListTagsForResourceCommand}
183
140
  */
184
141
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
185
142
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
186
143
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
187
144
  /**
188
- * @public
189
- * <p>Sets or updates the AWS IoT Events logging options.</p>
190
- * <p>If you update the value of any <code>loggingOptions</code> field, it takes up to one
191
- * minute for the change to take effect. If you change the policy attached to the role you
192
- * specified in the <code>roleArn</code> field (for example, to correct an invalid policy), it
193
- * takes up to five minutes for that change to take effect.</p>
145
+ * @see {@link PutLoggingOptionsCommand}
194
146
  */
195
147
  putLoggingOptions(args: PutLoggingOptionsCommandInput, options?: __HttpHandlerOptions): Promise<PutLoggingOptionsCommandOutput>;
196
148
  putLoggingOptions(args: PutLoggingOptionsCommandInput, cb: (err: any, data?: PutLoggingOptionsCommandOutput) => void): void;
197
149
  putLoggingOptions(args: PutLoggingOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLoggingOptionsCommandOutput) => void): void;
198
150
  /**
199
- * @public
200
- * <p>Performs an analysis of your detector model. For more information,
201
- * see <a href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-analyze-api.html">Troubleshooting a detector model</a>
202
- * in the <i>AWS IoT Events Developer Guide</i>.</p>
151
+ * @see {@link StartDetectorModelAnalysisCommand}
203
152
  */
204
153
  startDetectorModelAnalysis(args: StartDetectorModelAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<StartDetectorModelAnalysisCommandOutput>;
205
154
  startDetectorModelAnalysis(args: StartDetectorModelAnalysisCommandInput, cb: (err: any, data?: StartDetectorModelAnalysisCommandOutput) => void): void;
206
155
  startDetectorModelAnalysis(args: StartDetectorModelAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDetectorModelAnalysisCommandOutput) => void): void;
207
156
  /**
208
- * @public
209
- * <p>Adds to or modifies the tags of the given resource. Tags are metadata that can be used to
210
- * manage a resource.</p>
157
+ * @see {@link TagResourceCommand}
211
158
  */
212
159
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
213
160
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
214
161
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
215
162
  /**
216
- * @public
217
- * <p>Removes the given tags (metadata) from the resource.</p>
163
+ * @see {@link UntagResourceCommand}
218
164
  */
219
165
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
220
166
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
221
167
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
222
168
  /**
223
- * @public
224
- * <p>Updates an alarm model. Any alarms that were created based on the previous version are
225
- * deleted and then created again as new data arrives.</p>
169
+ * @see {@link UpdateAlarmModelCommand}
226
170
  */
227
171
  updateAlarmModel(args: UpdateAlarmModelCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAlarmModelCommandOutput>;
228
172
  updateAlarmModel(args: UpdateAlarmModelCommandInput, cb: (err: any, data?: UpdateAlarmModelCommandOutput) => void): void;
229
173
  updateAlarmModel(args: UpdateAlarmModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAlarmModelCommandOutput) => void): void;
230
174
  /**
231
- * @public
232
- * <p>Updates a detector model. Detectors (instances) spawned by the previous version are
233
- * deleted and then re-created as new inputs arrive.</p>
175
+ * @see {@link UpdateDetectorModelCommand}
234
176
  */
235
177
  updateDetectorModel(args: UpdateDetectorModelCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDetectorModelCommandOutput>;
236
178
  updateDetectorModel(args: UpdateDetectorModelCommandInput, cb: (err: any, data?: UpdateDetectorModelCommandOutput) => void): void;
237
179
  updateDetectorModel(args: UpdateDetectorModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDetectorModelCommandOutput) => void): void;
238
180
  /**
239
- * @public
240
- * <p>Updates an input.</p>
181
+ * @see {@link UpdateInputCommand}
241
182
  */
242
183
  updateInput(args: UpdateInputCommandInput, options?: __HttpHandlerOptions): Promise<UpdateInputCommandOutput>;
243
184
  updateInput(args: UpdateInputCommandInput, cb: (err: any, data?: UpdateInputCommandOutput) => void): void;
244
185
  updateInput(args: UpdateInputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateInputCommandOutput) => void): void;
245
186
  }
187
+ /**
188
+ * @public
189
+ * <p>AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and
190
+ * triggers actions when such events occur. You can use AWS IoT Events API operations to create, read,
191
+ * update, and delete inputs and detector models, and to list their versions.</p>
192
+ */
193
+ export declare class IoTEvents extends IoTEventsClient implements IoTEvents {
194
+ }
@@ -104,7 +104,7 @@ import {
104
104
  UpdateInputCommandOutput,
105
105
  } from "./commands/UpdateInputCommand";
106
106
  import { IoTEventsClient } from "./IoTEventsClient";
107
- export declare class IoTEvents extends IoTEventsClient {
107
+ export interface IoTEvents {
108
108
  createAlarmModel(
109
109
  args: CreateAlarmModelCommandInput,
110
110
  options?: __HttpHandlerOptions
@@ -444,3 +444,4 @@ export declare class IoTEvents extends IoTEventsClient {
444
444
  cb: (err: any, data?: UpdateInputCommandOutput) => void
445
445
  ): void;
446
446
  }
447
+ export declare class IoTEvents extends IoTEventsClient implements IoTEvents {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-events",
3
3
  "description": "AWS SDK for JavaScript Iot Events Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.316.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.316.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.316.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",