@aws-sdk/client-iot-events-data 3.315.0 → 3.319.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.IoTEventsData = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const BatchAcknowledgeAlarmCommand_1 = require("./commands/BatchAcknowledgeAlarmCommand");
5
6
  const BatchDeleteDetectorCommand_1 = require("./commands/BatchDeleteDetectorCommand");
6
7
  const BatchDisableAlarmCommand_1 = require("./commands/BatchDisableAlarmCommand");
@@ -14,174 +15,21 @@ const DescribeDetectorCommand_1 = require("./commands/DescribeDetectorCommand");
14
15
  const ListAlarmsCommand_1 = require("./commands/ListAlarmsCommand");
15
16
  const ListDetectorsCommand_1 = require("./commands/ListDetectorsCommand");
16
17
  const IoTEventsDataClient_1 = require("./IoTEventsDataClient");
18
+ const commands = {
19
+ BatchAcknowledgeAlarmCommand: BatchAcknowledgeAlarmCommand_1.BatchAcknowledgeAlarmCommand,
20
+ BatchDeleteDetectorCommand: BatchDeleteDetectorCommand_1.BatchDeleteDetectorCommand,
21
+ BatchDisableAlarmCommand: BatchDisableAlarmCommand_1.BatchDisableAlarmCommand,
22
+ BatchEnableAlarmCommand: BatchEnableAlarmCommand_1.BatchEnableAlarmCommand,
23
+ BatchPutMessageCommand: BatchPutMessageCommand_1.BatchPutMessageCommand,
24
+ BatchResetAlarmCommand: BatchResetAlarmCommand_1.BatchResetAlarmCommand,
25
+ BatchSnoozeAlarmCommand: BatchSnoozeAlarmCommand_1.BatchSnoozeAlarmCommand,
26
+ BatchUpdateDetectorCommand: BatchUpdateDetectorCommand_1.BatchUpdateDetectorCommand,
27
+ DescribeAlarmCommand: DescribeAlarmCommand_1.DescribeAlarmCommand,
28
+ DescribeDetectorCommand: DescribeDetectorCommand_1.DescribeDetectorCommand,
29
+ ListAlarmsCommand: ListAlarmsCommand_1.ListAlarmsCommand,
30
+ ListDetectorsCommand: ListDetectorsCommand_1.ListDetectorsCommand,
31
+ };
17
32
  class IoTEventsData extends IoTEventsDataClient_1.IoTEventsDataClient {
18
- batchAcknowledgeAlarm(args, optionsOrCb, cb) {
19
- const command = new BatchAcknowledgeAlarmCommand_1.BatchAcknowledgeAlarmCommand(args);
20
- if (typeof optionsOrCb === "function") {
21
- this.send(command, optionsOrCb);
22
- }
23
- else if (typeof cb === "function") {
24
- if (typeof optionsOrCb !== "object")
25
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26
- this.send(command, optionsOrCb || {}, cb);
27
- }
28
- else {
29
- return this.send(command, optionsOrCb);
30
- }
31
- }
32
- batchDeleteDetector(args, optionsOrCb, cb) {
33
- const command = new BatchDeleteDetectorCommand_1.BatchDeleteDetectorCommand(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
- batchDisableAlarm(args, optionsOrCb, cb) {
47
- const command = new BatchDisableAlarmCommand_1.BatchDisableAlarmCommand(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
- batchEnableAlarm(args, optionsOrCb, cb) {
61
- const command = new BatchEnableAlarmCommand_1.BatchEnableAlarmCommand(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
- batchPutMessage(args, optionsOrCb, cb) {
75
- const command = new BatchPutMessageCommand_1.BatchPutMessageCommand(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
- batchResetAlarm(args, optionsOrCb, cb) {
89
- const command = new BatchResetAlarmCommand_1.BatchResetAlarmCommand(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
- batchSnoozeAlarm(args, optionsOrCb, cb) {
103
- const command = new BatchSnoozeAlarmCommand_1.BatchSnoozeAlarmCommand(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
- batchUpdateDetector(args, optionsOrCb, cb) {
117
- const command = new BatchUpdateDetectorCommand_1.BatchUpdateDetectorCommand(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
- describeAlarm(args, optionsOrCb, cb) {
131
- const command = new DescribeAlarmCommand_1.DescribeAlarmCommand(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
- describeDetector(args, optionsOrCb, cb) {
145
- const command = new DescribeDetectorCommand_1.DescribeDetectorCommand(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
- listAlarms(args, optionsOrCb, cb) {
159
- const command = new ListAlarmsCommand_1.ListAlarmsCommand(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
- listDetectors(args, optionsOrCb, cb) {
173
- const command = new ListDetectorsCommand_1.ListDetectorsCommand(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
33
  }
187
34
  exports.IoTEventsData = IoTEventsData;
35
+ (0, smithy_client_1.createAggregatedClient)(commands, IoTEventsData);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { BatchAcknowledgeAlarmCommand, } from "./commands/BatchAcknowledgeAlarmCommand";
2
3
  import { BatchDeleteDetectorCommand, } from "./commands/BatchDeleteDetectorCommand";
3
4
  import { BatchDisableAlarmCommand, } from "./commands/BatchDisableAlarmCommand";
@@ -11,173 +12,20 @@ import { DescribeDetectorCommand, } from "./commands/DescribeDetectorCommand";
11
12
  import { ListAlarmsCommand } from "./commands/ListAlarmsCommand";
12
13
  import { ListDetectorsCommand, } from "./commands/ListDetectorsCommand";
13
14
  import { IoTEventsDataClient } from "./IoTEventsDataClient";
15
+ const commands = {
16
+ BatchAcknowledgeAlarmCommand,
17
+ BatchDeleteDetectorCommand,
18
+ BatchDisableAlarmCommand,
19
+ BatchEnableAlarmCommand,
20
+ BatchPutMessageCommand,
21
+ BatchResetAlarmCommand,
22
+ BatchSnoozeAlarmCommand,
23
+ BatchUpdateDetectorCommand,
24
+ DescribeAlarmCommand,
25
+ DescribeDetectorCommand,
26
+ ListAlarmsCommand,
27
+ ListDetectorsCommand,
28
+ };
14
29
  export class IoTEventsData extends IoTEventsDataClient {
15
- batchAcknowledgeAlarm(args, optionsOrCb, cb) {
16
- const command = new BatchAcknowledgeAlarmCommand(args);
17
- if (typeof optionsOrCb === "function") {
18
- this.send(command, optionsOrCb);
19
- }
20
- else if (typeof cb === "function") {
21
- if (typeof optionsOrCb !== "object")
22
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
23
- this.send(command, optionsOrCb || {}, cb);
24
- }
25
- else {
26
- return this.send(command, optionsOrCb);
27
- }
28
- }
29
- batchDeleteDetector(args, optionsOrCb, cb) {
30
- const command = new BatchDeleteDetectorCommand(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
- batchDisableAlarm(args, optionsOrCb, cb) {
44
- const command = new BatchDisableAlarmCommand(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
- batchEnableAlarm(args, optionsOrCb, cb) {
58
- const command = new BatchEnableAlarmCommand(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
- batchPutMessage(args, optionsOrCb, cb) {
72
- const command = new BatchPutMessageCommand(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
- batchResetAlarm(args, optionsOrCb, cb) {
86
- const command = new BatchResetAlarmCommand(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
- batchSnoozeAlarm(args, optionsOrCb, cb) {
100
- const command = new BatchSnoozeAlarmCommand(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
- batchUpdateDetector(args, optionsOrCb, cb) {
114
- const command = new BatchUpdateDetectorCommand(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
- describeAlarm(args, optionsOrCb, cb) {
128
- const command = new DescribeAlarmCommand(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
- describeDetector(args, optionsOrCb, cb) {
142
- const command = new DescribeDetectorCommand(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
- listAlarms(args, optionsOrCb, cb) {
156
- const command = new ListAlarmsCommand(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
- listDetectors(args, optionsOrCb, cb) {
170
- const command = new ListDetectorsCommand(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
30
  }
31
+ createAggregatedClient(commands, IoTEventsData);
@@ -12,108 +12,87 @@ import { DescribeDetectorCommandInput, DescribeDetectorCommandOutput } from "./c
12
12
  import { ListAlarmsCommandInput, ListAlarmsCommandOutput } from "./commands/ListAlarmsCommand";
13
13
  import { ListDetectorsCommandInput, ListDetectorsCommandOutput } from "./commands/ListDetectorsCommand";
14
14
  import { IoTEventsDataClient } from "./IoTEventsDataClient";
15
- /**
16
- * @public
17
- * <p>IoT Events monitors your equipment or device fleets for failures or changes in operation, and
18
- * triggers actions when such events occur. You can use IoT Events Data API commands to send inputs to
19
- * detectors, list detectors, and view or update a detector's status.</p>
20
- * <p> For more information, see <a href="https://docs.aws.amazon.com/iotevents/latest/developerguide/what-is-iotevents.html">What is IoT Events?</a> in the
21
- * <i>IoT Events Developer Guide</i>.</p>
22
- */
23
- export declare class IoTEventsData extends IoTEventsDataClient {
15
+ export interface IoTEventsData {
24
16
  /**
25
- * @public
26
- * <p>Acknowledges one or more alarms. The alarms change to the <code>ACKNOWLEDGED</code> state
27
- * after you acknowledge them.</p>
17
+ * @see {@link BatchAcknowledgeAlarmCommand}
28
18
  */
29
19
  batchAcknowledgeAlarm(args: BatchAcknowledgeAlarmCommandInput, options?: __HttpHandlerOptions): Promise<BatchAcknowledgeAlarmCommandOutput>;
30
20
  batchAcknowledgeAlarm(args: BatchAcknowledgeAlarmCommandInput, cb: (err: any, data?: BatchAcknowledgeAlarmCommandOutput) => void): void;
31
21
  batchAcknowledgeAlarm(args: BatchAcknowledgeAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchAcknowledgeAlarmCommandOutput) => void): void;
32
22
  /**
33
- * @public
34
- * <p>Deletes one or more detectors that were created. When a detector is deleted, its state will be cleared and the detector will be removed from the list of detectors. The deleted detector will no longer appear if referenced in the <a href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_ListDetectors.html">ListDetectors</a> API call.</p>
23
+ * @see {@link BatchDeleteDetectorCommand}
35
24
  */
36
25
  batchDeleteDetector(args: BatchDeleteDetectorCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteDetectorCommandOutput>;
37
26
  batchDeleteDetector(args: BatchDeleteDetectorCommandInput, cb: (err: any, data?: BatchDeleteDetectorCommandOutput) => void): void;
38
27
  batchDeleteDetector(args: BatchDeleteDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteDetectorCommandOutput) => void): void;
39
28
  /**
40
- * @public
41
- * <p>Disables one or more alarms. The alarms change to the <code>DISABLED</code> state after
42
- * you disable them.</p>
29
+ * @see {@link BatchDisableAlarmCommand}
43
30
  */
44
31
  batchDisableAlarm(args: BatchDisableAlarmCommandInput, options?: __HttpHandlerOptions): Promise<BatchDisableAlarmCommandOutput>;
45
32
  batchDisableAlarm(args: BatchDisableAlarmCommandInput, cb: (err: any, data?: BatchDisableAlarmCommandOutput) => void): void;
46
33
  batchDisableAlarm(args: BatchDisableAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDisableAlarmCommandOutput) => void): void;
47
34
  /**
48
- * @public
49
- * <p>Enables one or more alarms. The alarms change to the <code>NORMAL</code> state after you
50
- * enable them.</p>
35
+ * @see {@link BatchEnableAlarmCommand}
51
36
  */
52
37
  batchEnableAlarm(args: BatchEnableAlarmCommandInput, options?: __HttpHandlerOptions): Promise<BatchEnableAlarmCommandOutput>;
53
38
  batchEnableAlarm(args: BatchEnableAlarmCommandInput, cb: (err: any, data?: BatchEnableAlarmCommandOutput) => void): void;
54
39
  batchEnableAlarm(args: BatchEnableAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchEnableAlarmCommandOutput) => void): void;
55
40
  /**
56
- * @public
57
- * <p>Sends a set of messages to the IoT Events system. Each message payload is transformed into
58
- * the input you specify (<code>"inputName"</code>) and ingested into any detectors that monitor
59
- * that input. If multiple messages are sent, the order in which the messages are processed isn't
60
- * guaranteed. To guarantee ordering, you must send messages one at a time and wait for a
61
- * successful response.</p>
41
+ * @see {@link BatchPutMessageCommand}
62
42
  */
63
43
  batchPutMessage(args: BatchPutMessageCommandInput, options?: __HttpHandlerOptions): Promise<BatchPutMessageCommandOutput>;
64
44
  batchPutMessage(args: BatchPutMessageCommandInput, cb: (err: any, data?: BatchPutMessageCommandOutput) => void): void;
65
45
  batchPutMessage(args: BatchPutMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchPutMessageCommandOutput) => void): void;
66
46
  /**
67
- * @public
68
- * <p>Resets one or more alarms. The alarms return to the <code>NORMAL</code> state after you
69
- * reset them.</p>
47
+ * @see {@link BatchResetAlarmCommand}
70
48
  */
71
49
  batchResetAlarm(args: BatchResetAlarmCommandInput, options?: __HttpHandlerOptions): Promise<BatchResetAlarmCommandOutput>;
72
50
  batchResetAlarm(args: BatchResetAlarmCommandInput, cb: (err: any, data?: BatchResetAlarmCommandOutput) => void): void;
73
51
  batchResetAlarm(args: BatchResetAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchResetAlarmCommandOutput) => void): void;
74
52
  /**
75
- * @public
76
- * <p>Changes one or more alarms to the snooze mode. The alarms change to the
77
- * <code>SNOOZE_DISABLED</code> state after you set them to the snooze mode.</p>
53
+ * @see {@link BatchSnoozeAlarmCommand}
78
54
  */
79
55
  batchSnoozeAlarm(args: BatchSnoozeAlarmCommandInput, options?: __HttpHandlerOptions): Promise<BatchSnoozeAlarmCommandOutput>;
80
56
  batchSnoozeAlarm(args: BatchSnoozeAlarmCommandInput, cb: (err: any, data?: BatchSnoozeAlarmCommandOutput) => void): void;
81
57
  batchSnoozeAlarm(args: BatchSnoozeAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchSnoozeAlarmCommandOutput) => void): void;
82
58
  /**
83
- * @public
84
- * <p>Updates the state, variable values, and timer settings of one or more detectors
85
- * (instances) of a specified detector model.</p>
59
+ * @see {@link BatchUpdateDetectorCommand}
86
60
  */
87
61
  batchUpdateDetector(args: BatchUpdateDetectorCommandInput, options?: __HttpHandlerOptions): Promise<BatchUpdateDetectorCommandOutput>;
88
62
  batchUpdateDetector(args: BatchUpdateDetectorCommandInput, cb: (err: any, data?: BatchUpdateDetectorCommandOutput) => void): void;
89
63
  batchUpdateDetector(args: BatchUpdateDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchUpdateDetectorCommandOutput) => void): void;
90
64
  /**
91
- * @public
92
- * <p>Retrieves information about an alarm.</p>
65
+ * @see {@link DescribeAlarmCommand}
93
66
  */
94
67
  describeAlarm(args: DescribeAlarmCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAlarmCommandOutput>;
95
68
  describeAlarm(args: DescribeAlarmCommandInput, cb: (err: any, data?: DescribeAlarmCommandOutput) => void): void;
96
69
  describeAlarm(args: DescribeAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAlarmCommandOutput) => void): void;
97
70
  /**
98
- * @public
99
- * <p>Returns information about the specified detector (instance).</p>
71
+ * @see {@link DescribeDetectorCommand}
100
72
  */
101
73
  describeDetector(args: DescribeDetectorCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDetectorCommandOutput>;
102
74
  describeDetector(args: DescribeDetectorCommandInput, cb: (err: any, data?: DescribeDetectorCommandOutput) => void): void;
103
75
  describeDetector(args: DescribeDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDetectorCommandOutput) => void): void;
104
76
  /**
105
- * @public
106
- * <p>Lists one or more alarms. The operation returns only the metadata associated with each
107
- * alarm.</p>
77
+ * @see {@link ListAlarmsCommand}
108
78
  */
109
79
  listAlarms(args: ListAlarmsCommandInput, options?: __HttpHandlerOptions): Promise<ListAlarmsCommandOutput>;
110
80
  listAlarms(args: ListAlarmsCommandInput, cb: (err: any, data?: ListAlarmsCommandOutput) => void): void;
111
81
  listAlarms(args: ListAlarmsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAlarmsCommandOutput) => void): void;
112
82
  /**
113
- * @public
114
- * <p>Lists detectors (the instances of a detector model).</p>
83
+ * @see {@link ListDetectorsCommand}
115
84
  */
116
85
  listDetectors(args: ListDetectorsCommandInput, options?: __HttpHandlerOptions): Promise<ListDetectorsCommandOutput>;
117
86
  listDetectors(args: ListDetectorsCommandInput, cb: (err: any, data?: ListDetectorsCommandOutput) => void): void;
118
87
  listDetectors(args: ListDetectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDetectorsCommandOutput) => void): void;
119
88
  }
89
+ /**
90
+ * @public
91
+ * <p>IoT Events monitors your equipment or device fleets for failures or changes in operation, and
92
+ * triggers actions when such events occur. You can use IoT Events Data API commands to send inputs to
93
+ * detectors, list detectors, and view or update a detector's status.</p>
94
+ * <p> For more information, see <a href="https://docs.aws.amazon.com/iotevents/latest/developerguide/what-is-iotevents.html">What is IoT Events?</a> in the
95
+ * <i>IoT Events Developer Guide</i>.</p>
96
+ */
97
+ export declare class IoTEventsData extends IoTEventsDataClient implements IoTEventsData {
98
+ }
@@ -48,7 +48,7 @@ import {
48
48
  ListDetectorsCommandOutput,
49
49
  } from "./commands/ListDetectorsCommand";
50
50
  import { IoTEventsDataClient } from "./IoTEventsDataClient";
51
- export declare class IoTEventsData extends IoTEventsDataClient {
51
+ export interface IoTEventsData {
52
52
  batchAcknowledgeAlarm(
53
53
  args: BatchAcknowledgeAlarmCommandInput,
54
54
  options?: __HttpHandlerOptions
@@ -206,3 +206,6 @@ export declare class IoTEventsData extends IoTEventsDataClient {
206
206
  cb: (err: any, data?: ListDetectorsCommandOutput) => void
207
207
  ): void;
208
208
  }
209
+ export declare class IoTEventsData
210
+ extends IoTEventsDataClient
211
+ implements IoTEventsData {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-events-data",
3
3
  "description": "AWS SDK for JavaScript Iot Events Data Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.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.319.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.319.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",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
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",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",