@aws-sdk/client-iot-events-data 3.87.0 → 3.95.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/IoTEventsData.js +15 -0
- package/dist-cjs/commands/BatchDeleteDetectorCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +26 -2
- package/dist-cjs/protocols/Aws_restJson1.js +107 -1
- package/dist-es/IoTEventsData.js +15 -0
- package/dist-es/commands/BatchDeleteDetectorCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/protocols/Aws_restJson1.js +127 -0
- package/dist-types/IoTEventsData.d.ts +7 -0
- package/dist-types/IoTEventsDataClient.d.ts +3 -2
- package/dist-types/commands/BatchDeleteDetectorCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +70 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/IoTEventsData.d.ts +5 -0
- package/dist-types/ts3.4/IoTEventsDataClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/BatchDeleteDetectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.95.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.94.0...v3.95.0) (2022-05-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-iot-events-data
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.94.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.93.0...v3.94.0) (2022-05-18)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-iot-events-data:** Introducing new API for deleting detectors: BatchDeleteDetector. ([4320da0](https://github.com/aws/aws-sdk-js-v3/commit/4320da0e68b45d338064c1a4457e50dff48665df))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.92.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.91.0...v3.92.0) (2022-05-16)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-iot-events-data
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-iot-events-data
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IoTEventsData = void 0;
|
|
4
4
|
const BatchAcknowledgeAlarmCommand_1 = require("./commands/BatchAcknowledgeAlarmCommand");
|
|
5
|
+
const BatchDeleteDetectorCommand_1 = require("./commands/BatchDeleteDetectorCommand");
|
|
5
6
|
const BatchDisableAlarmCommand_1 = require("./commands/BatchDisableAlarmCommand");
|
|
6
7
|
const BatchEnableAlarmCommand_1 = require("./commands/BatchEnableAlarmCommand");
|
|
7
8
|
const BatchPutMessageCommand_1 = require("./commands/BatchPutMessageCommand");
|
|
@@ -28,6 +29,20 @@ class IoTEventsData extends IoTEventsDataClient_1.IoTEventsDataClient {
|
|
|
28
29
|
return this.send(command, optionsOrCb);
|
|
29
30
|
}
|
|
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
|
+
}
|
|
31
46
|
batchDisableAlarm(args, optionsOrCb, cb) {
|
|
32
47
|
const command = new BatchDisableAlarmCommand_1.BatchDisableAlarmCommand(args);
|
|
33
48
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchDeleteDetectorCommand = 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 BatchDeleteDetectorCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "IoTEventsDataClient";
|
|
18
|
+
const commandName = "BatchDeleteDetectorCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.BatchDeleteDetectorRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.BatchDeleteDetectorResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1BatchDeleteDetectorCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1BatchDeleteDetectorCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.BatchDeleteDetectorCommand = BatchDeleteDetectorCommand;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./BatchAcknowledgeAlarmCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./BatchDeleteDetectorCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./BatchDisableAlarmCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./BatchEnableAlarmCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./BatchPutMessageCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ListDetectorsResponse = exports.ListDetectorsRequest = exports.ListAlarmsResponse = exports.ListAlarmsRequest = exports.DetectorSummary = exports.DetectorStateSummary = exports.DescribeDetectorResponse = exports.Detector = exports.DetectorState = exports.Variable = exports.Timer = exports.DescribeDetectorRequest = exports.ResourceNotFoundException = exports.DescribeAlarmResponse = exports.DescribeAlarmRequest = exports.BatchUpdateDetectorResponse = void 0;
|
|
3
|
+
exports.VariableDefinition = exports.TimerDefinition = exports.BatchSnoozeAlarmResponse = exports.BatchSnoozeAlarmRequest = exports.SnoozeAlarmActionRequest = exports.BatchResetAlarmResponse = exports.BatchResetAlarmRequest = exports.ResetAlarmActionRequest = exports.BatchPutMessageResponse = exports.BatchPutMessageErrorEntry = exports.BatchPutMessageRequest = exports.Message = exports.TimestampValue = exports.BatchEnableAlarmResponse = exports.BatchEnableAlarmRequest = exports.EnableAlarmActionRequest = exports.BatchDisableAlarmResponse = exports.BatchDisableAlarmRequest = exports.DisableAlarmActionRequest = exports.BatchDeleteDetectorResponse = exports.BatchDeleteDetectorErrorEntry = exports.BatchDeleteDetectorRequest = exports.DeleteDetectorRequest = exports.ThrottlingException = exports.ServiceUnavailableException = exports.InvalidRequestException = exports.InternalFailureException = exports.BatchAcknowledgeAlarmResponse = exports.BatchAlarmActionErrorEntry = exports.ErrorCode = exports.BatchAcknowledgeAlarmRequest = exports.AlarmSummary = exports.Alarm = exports.AlarmState = exports.SystemEvent = exports.StateChangeConfiguration = exports.TriggerType = exports.EventType = exports.AlarmStateName = exports.RuleEvaluation = exports.SimpleRuleEvaluation = exports.ComparisonOperator = exports.CustomerAction = exports.SnoozeActionConfiguration = exports.ResetActionConfiguration = exports.EnableActionConfiguration = exports.DisableActionConfiguration = exports.CustomerActionName = exports.AcknowledgeAlarmActionRequest = exports.AcknowledgeActionConfiguration = void 0;
|
|
4
|
+
exports.ListDetectorsResponse = exports.ListDetectorsRequest = exports.ListAlarmsResponse = exports.ListAlarmsRequest = exports.DetectorSummary = exports.DetectorStateSummary = exports.DescribeDetectorResponse = exports.Detector = exports.DetectorState = exports.Variable = exports.Timer = exports.DescribeDetectorRequest = exports.ResourceNotFoundException = exports.DescribeAlarmResponse = exports.DescribeAlarmRequest = exports.BatchUpdateDetectorResponse = exports.BatchUpdateDetectorErrorEntry = exports.BatchUpdateDetectorRequest = exports.UpdateDetectorRequest = exports.DetectorStateDefinition = void 0;
|
|
5
5
|
const IoTEventsDataServiceException_1 = require("./IoTEventsDataServiceException");
|
|
6
6
|
var AcknowledgeActionConfiguration;
|
|
7
7
|
(function (AcknowledgeActionConfiguration) {
|
|
@@ -199,6 +199,30 @@ class ThrottlingException extends IoTEventsDataServiceException_1.IoTEventsDataS
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
exports.ThrottlingException = ThrottlingException;
|
|
202
|
+
var DeleteDetectorRequest;
|
|
203
|
+
(function (DeleteDetectorRequest) {
|
|
204
|
+
DeleteDetectorRequest.filterSensitiveLog = (obj) => ({
|
|
205
|
+
...obj,
|
|
206
|
+
});
|
|
207
|
+
})(DeleteDetectorRequest = exports.DeleteDetectorRequest || (exports.DeleteDetectorRequest = {}));
|
|
208
|
+
var BatchDeleteDetectorRequest;
|
|
209
|
+
(function (BatchDeleteDetectorRequest) {
|
|
210
|
+
BatchDeleteDetectorRequest.filterSensitiveLog = (obj) => ({
|
|
211
|
+
...obj,
|
|
212
|
+
});
|
|
213
|
+
})(BatchDeleteDetectorRequest = exports.BatchDeleteDetectorRequest || (exports.BatchDeleteDetectorRequest = {}));
|
|
214
|
+
var BatchDeleteDetectorErrorEntry;
|
|
215
|
+
(function (BatchDeleteDetectorErrorEntry) {
|
|
216
|
+
BatchDeleteDetectorErrorEntry.filterSensitiveLog = (obj) => ({
|
|
217
|
+
...obj,
|
|
218
|
+
});
|
|
219
|
+
})(BatchDeleteDetectorErrorEntry = exports.BatchDeleteDetectorErrorEntry || (exports.BatchDeleteDetectorErrorEntry = {}));
|
|
220
|
+
var BatchDeleteDetectorResponse;
|
|
221
|
+
(function (BatchDeleteDetectorResponse) {
|
|
222
|
+
BatchDeleteDetectorResponse.filterSensitiveLog = (obj) => ({
|
|
223
|
+
...obj,
|
|
224
|
+
});
|
|
225
|
+
})(BatchDeleteDetectorResponse = exports.BatchDeleteDetectorResponse || (exports.BatchDeleteDetectorResponse = {}));
|
|
202
226
|
var DisableAlarmActionRequest;
|
|
203
227
|
(function (DisableAlarmActionRequest) {
|
|
204
228
|
DisableAlarmActionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1ListDetectorsCommand = exports.deserializeAws_restJson1ListAlarmsCommand = exports.deserializeAws_restJson1DescribeDetectorCommand = exports.deserializeAws_restJson1DescribeAlarmCommand = exports.deserializeAws_restJson1BatchUpdateDetectorCommand = exports.deserializeAws_restJson1BatchSnoozeAlarmCommand = exports.deserializeAws_restJson1BatchResetAlarmCommand = exports.deserializeAws_restJson1BatchPutMessageCommand = exports.deserializeAws_restJson1BatchEnableAlarmCommand = exports.deserializeAws_restJson1BatchDisableAlarmCommand = exports.deserializeAws_restJson1BatchAcknowledgeAlarmCommand = exports.serializeAws_restJson1ListDetectorsCommand = exports.serializeAws_restJson1ListAlarmsCommand = exports.serializeAws_restJson1DescribeDetectorCommand = exports.serializeAws_restJson1DescribeAlarmCommand = exports.serializeAws_restJson1BatchUpdateDetectorCommand = exports.serializeAws_restJson1BatchSnoozeAlarmCommand = exports.serializeAws_restJson1BatchResetAlarmCommand = exports.serializeAws_restJson1BatchPutMessageCommand = exports.serializeAws_restJson1BatchEnableAlarmCommand = exports.serializeAws_restJson1BatchDisableAlarmCommand = exports.serializeAws_restJson1BatchAcknowledgeAlarmCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListDetectorsCommand = exports.deserializeAws_restJson1ListAlarmsCommand = exports.deserializeAws_restJson1DescribeDetectorCommand = exports.deserializeAws_restJson1DescribeAlarmCommand = exports.deserializeAws_restJson1BatchUpdateDetectorCommand = exports.deserializeAws_restJson1BatchSnoozeAlarmCommand = exports.deserializeAws_restJson1BatchResetAlarmCommand = exports.deserializeAws_restJson1BatchPutMessageCommand = exports.deserializeAws_restJson1BatchEnableAlarmCommand = exports.deserializeAws_restJson1BatchDisableAlarmCommand = exports.deserializeAws_restJson1BatchDeleteDetectorCommand = exports.deserializeAws_restJson1BatchAcknowledgeAlarmCommand = exports.serializeAws_restJson1ListDetectorsCommand = exports.serializeAws_restJson1ListAlarmsCommand = exports.serializeAws_restJson1DescribeDetectorCommand = exports.serializeAws_restJson1DescribeAlarmCommand = exports.serializeAws_restJson1BatchUpdateDetectorCommand = exports.serializeAws_restJson1BatchSnoozeAlarmCommand = exports.serializeAws_restJson1BatchResetAlarmCommand = exports.serializeAws_restJson1BatchPutMessageCommand = exports.serializeAws_restJson1BatchEnableAlarmCommand = exports.serializeAws_restJson1BatchDisableAlarmCommand = exports.serializeAws_restJson1BatchDeleteDetectorCommand = exports.serializeAws_restJson1BatchAcknowledgeAlarmCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const IoTEventsDataServiceException_1 = require("../models/IoTEventsDataServiceException");
|
|
@@ -29,6 +29,30 @@ const serializeAws_restJson1BatchAcknowledgeAlarmCommand = async (input, context
|
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
exports.serializeAws_restJson1BatchAcknowledgeAlarmCommand = serializeAws_restJson1BatchAcknowledgeAlarmCommand;
|
|
32
|
+
const serializeAws_restJson1BatchDeleteDetectorCommand = async (input, context) => {
|
|
33
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
|
+
const headers = {
|
|
35
|
+
"content-type": "application/json",
|
|
36
|
+
};
|
|
37
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detectors/delete";
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify({
|
|
40
|
+
...(input.detectors !== undefined &&
|
|
41
|
+
input.detectors !== null && {
|
|
42
|
+
detectors: serializeAws_restJson1DeleteDetectorRequests(input.detectors, context),
|
|
43
|
+
}),
|
|
44
|
+
});
|
|
45
|
+
return new protocol_http_1.HttpRequest({
|
|
46
|
+
protocol,
|
|
47
|
+
hostname,
|
|
48
|
+
port,
|
|
49
|
+
method: "POST",
|
|
50
|
+
headers,
|
|
51
|
+
path: resolvedPath,
|
|
52
|
+
body,
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
exports.serializeAws_restJson1BatchDeleteDetectorCommand = serializeAws_restJson1BatchDeleteDetectorCommand;
|
|
32
56
|
const serializeAws_restJson1BatchDisableAlarmCommand = async (input, context) => {
|
|
33
57
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
34
58
|
const headers = {
|
|
@@ -340,6 +364,52 @@ const deserializeAws_restJson1BatchAcknowledgeAlarmCommandError = async (output,
|
|
|
340
364
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
341
365
|
}
|
|
342
366
|
};
|
|
367
|
+
const deserializeAws_restJson1BatchDeleteDetectorCommand = async (output, context) => {
|
|
368
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
369
|
+
return deserializeAws_restJson1BatchDeleteDetectorCommandError(output, context);
|
|
370
|
+
}
|
|
371
|
+
const contents = {
|
|
372
|
+
$metadata: deserializeMetadata(output),
|
|
373
|
+
batchDeleteDetectorErrorEntries: undefined,
|
|
374
|
+
};
|
|
375
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
376
|
+
if (data.batchDeleteDetectorErrorEntries !== undefined && data.batchDeleteDetectorErrorEntries !== null) {
|
|
377
|
+
contents.batchDeleteDetectorErrorEntries = deserializeAws_restJson1BatchDeleteDetectorErrorEntries(data.batchDeleteDetectorErrorEntries, context);
|
|
378
|
+
}
|
|
379
|
+
return Promise.resolve(contents);
|
|
380
|
+
};
|
|
381
|
+
exports.deserializeAws_restJson1BatchDeleteDetectorCommand = deserializeAws_restJson1BatchDeleteDetectorCommand;
|
|
382
|
+
const deserializeAws_restJson1BatchDeleteDetectorCommandError = async (output, context) => {
|
|
383
|
+
const parsedOutput = {
|
|
384
|
+
...output,
|
|
385
|
+
body: await parseBody(output.body, context),
|
|
386
|
+
};
|
|
387
|
+
let response;
|
|
388
|
+
let errorCode = "UnknownError";
|
|
389
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
|
+
switch (errorCode) {
|
|
391
|
+
case "InternalFailureException":
|
|
392
|
+
case "com.amazonaws.ioteventsdata#InternalFailureException":
|
|
393
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
394
|
+
case "InvalidRequestException":
|
|
395
|
+
case "com.amazonaws.ioteventsdata#InvalidRequestException":
|
|
396
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
397
|
+
case "ServiceUnavailableException":
|
|
398
|
+
case "com.amazonaws.ioteventsdata#ServiceUnavailableException":
|
|
399
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
400
|
+
case "ThrottlingException":
|
|
401
|
+
case "com.amazonaws.ioteventsdata#ThrottlingException":
|
|
402
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
403
|
+
default:
|
|
404
|
+
const parsedBody = parsedOutput.body;
|
|
405
|
+
response = new IoTEventsDataServiceException_1.IoTEventsDataServiceException({
|
|
406
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
407
|
+
$fault: "client",
|
|
408
|
+
$metadata: deserializeMetadata(output),
|
|
409
|
+
});
|
|
410
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
411
|
+
}
|
|
412
|
+
};
|
|
343
413
|
const deserializeAws_restJson1BatchDisableAlarmCommand = async (output, context) => {
|
|
344
414
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
345
415
|
return deserializeAws_restJson1BatchDisableAlarmCommandError(output, context);
|
|
@@ -899,6 +969,24 @@ const serializeAws_restJson1AcknowledgeAlarmActionRequests = (input, context) =>
|
|
|
899
969
|
return serializeAws_restJson1AcknowledgeAlarmActionRequest(entry, context);
|
|
900
970
|
});
|
|
901
971
|
};
|
|
972
|
+
const serializeAws_restJson1DeleteDetectorRequest = (input, context) => {
|
|
973
|
+
return {
|
|
974
|
+
...(input.detectorModelName !== undefined &&
|
|
975
|
+
input.detectorModelName !== null && { detectorModelName: input.detectorModelName }),
|
|
976
|
+
...(input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue }),
|
|
977
|
+
...(input.messageId !== undefined && input.messageId !== null && { messageId: input.messageId }),
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
const serializeAws_restJson1DeleteDetectorRequests = (input, context) => {
|
|
981
|
+
return input
|
|
982
|
+
.filter((e) => e != null)
|
|
983
|
+
.map((entry) => {
|
|
984
|
+
if (entry === null) {
|
|
985
|
+
return null;
|
|
986
|
+
}
|
|
987
|
+
return serializeAws_restJson1DeleteDetectorRequest(entry, context);
|
|
988
|
+
});
|
|
989
|
+
};
|
|
902
990
|
const serializeAws_restJson1DetectorStateDefinition = (input, context) => {
|
|
903
991
|
return {
|
|
904
992
|
...(input.stateName !== undefined && input.stateName !== null && { stateName: input.stateName }),
|
|
@@ -1141,6 +1229,24 @@ const deserializeAws_restJson1BatchAlarmActionErrorEntry = (output, context) =>
|
|
|
1141
1229
|
requestId: (0, smithy_client_1.expectString)(output.requestId),
|
|
1142
1230
|
};
|
|
1143
1231
|
};
|
|
1232
|
+
const deserializeAws_restJson1BatchDeleteDetectorErrorEntries = (output, context) => {
|
|
1233
|
+
const retVal = (output || [])
|
|
1234
|
+
.filter((e) => e != null)
|
|
1235
|
+
.map((entry) => {
|
|
1236
|
+
if (entry === null) {
|
|
1237
|
+
return null;
|
|
1238
|
+
}
|
|
1239
|
+
return deserializeAws_restJson1BatchDeleteDetectorErrorEntry(entry, context);
|
|
1240
|
+
});
|
|
1241
|
+
return retVal;
|
|
1242
|
+
};
|
|
1243
|
+
const deserializeAws_restJson1BatchDeleteDetectorErrorEntry = (output, context) => {
|
|
1244
|
+
return {
|
|
1245
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
1246
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
1247
|
+
messageId: (0, smithy_client_1.expectString)(output.messageId),
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1144
1250
|
const deserializeAws_restJson1BatchPutMessageErrorEntries = (output, context) => {
|
|
1145
1251
|
const retVal = (output || [])
|
|
1146
1252
|
.filter((e) => e != null)
|
package/dist-es/IoTEventsData.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { BatchAcknowledgeAlarmCommand, } from "./commands/BatchAcknowledgeAlarmCommand";
|
|
3
|
+
import { BatchDeleteDetectorCommand, } from "./commands/BatchDeleteDetectorCommand";
|
|
3
4
|
import { BatchDisableAlarmCommand, } from "./commands/BatchDisableAlarmCommand";
|
|
4
5
|
import { BatchEnableAlarmCommand, } from "./commands/BatchEnableAlarmCommand";
|
|
5
6
|
import { BatchPutMessageCommand, } from "./commands/BatchPutMessageCommand";
|
|
@@ -30,6 +31,20 @@ var IoTEventsData = (function (_super) {
|
|
|
30
31
|
return this.send(command, optionsOrCb);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
34
|
+
IoTEventsData.prototype.batchDeleteDetector = function (args, optionsOrCb, cb) {
|
|
35
|
+
var command = new BatchDeleteDetectorCommand(args);
|
|
36
|
+
if (typeof optionsOrCb === "function") {
|
|
37
|
+
this.send(command, optionsOrCb);
|
|
38
|
+
}
|
|
39
|
+
else if (typeof cb === "function") {
|
|
40
|
+
if (typeof optionsOrCb !== "object")
|
|
41
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
42
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return this.send(command, optionsOrCb);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
33
48
|
IoTEventsData.prototype.batchDisableAlarm = function (args, optionsOrCb, cb) {
|
|
34
49
|
var command = new BatchDisableAlarmCommand(args);
|
|
35
50
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { BatchDeleteDetectorRequest, BatchDeleteDetectorResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1BatchDeleteDetectorCommand, serializeAws_restJson1BatchDeleteDetectorCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var BatchDeleteDetectorCommand = (function (_super) {
|
|
7
|
+
__extends(BatchDeleteDetectorCommand, _super);
|
|
8
|
+
function BatchDeleteDetectorCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
BatchDeleteDetectorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IoTEventsDataClient";
|
|
18
|
+
var commandName = "BatchDeleteDetectorCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: BatchDeleteDetectorRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: BatchDeleteDetectorResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
BatchDeleteDetectorCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1BatchDeleteDetectorCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
BatchDeleteDetectorCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1BatchDeleteDetectorCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return BatchDeleteDetectorCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchDeleteDetectorCommand };
|
|
@@ -158,6 +158,22 @@ var ThrottlingException = (function (_super) {
|
|
|
158
158
|
return ThrottlingException;
|
|
159
159
|
}(__BaseException));
|
|
160
160
|
export { ThrottlingException };
|
|
161
|
+
export var DeleteDetectorRequest;
|
|
162
|
+
(function (DeleteDetectorRequest) {
|
|
163
|
+
DeleteDetectorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
164
|
+
})(DeleteDetectorRequest || (DeleteDetectorRequest = {}));
|
|
165
|
+
export var BatchDeleteDetectorRequest;
|
|
166
|
+
(function (BatchDeleteDetectorRequest) {
|
|
167
|
+
BatchDeleteDetectorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
168
|
+
})(BatchDeleteDetectorRequest || (BatchDeleteDetectorRequest = {}));
|
|
169
|
+
export var BatchDeleteDetectorErrorEntry;
|
|
170
|
+
(function (BatchDeleteDetectorErrorEntry) {
|
|
171
|
+
BatchDeleteDetectorErrorEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
172
|
+
})(BatchDeleteDetectorErrorEntry || (BatchDeleteDetectorErrorEntry = {}));
|
|
173
|
+
export var BatchDeleteDetectorResponse;
|
|
174
|
+
(function (BatchDeleteDetectorResponse) {
|
|
175
|
+
BatchDeleteDetectorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
176
|
+
})(BatchDeleteDetectorResponse || (BatchDeleteDetectorResponse = {}));
|
|
161
177
|
export var DisableAlarmActionRequest;
|
|
162
178
|
(function (DisableAlarmActionRequest) {
|
|
163
179
|
DisableAlarmActionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -30,6 +30,33 @@ export var serializeAws_restJson1BatchAcknowledgeAlarmCommand = function (input,
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
}); };
|
|
33
|
+
export var serializeAws_restJson1BatchDeleteDetectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
34
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
35
|
+
return __generator(this, function (_c) {
|
|
36
|
+
switch (_c.label) {
|
|
37
|
+
case 0: return [4, context.endpoint()];
|
|
38
|
+
case 1:
|
|
39
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
40
|
+
headers = {
|
|
41
|
+
"content-type": "application/json",
|
|
42
|
+
};
|
|
43
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors/delete";
|
|
44
|
+
body = JSON.stringify(__assign({}, (input.detectors !== undefined &&
|
|
45
|
+
input.detectors !== null && {
|
|
46
|
+
detectors: serializeAws_restJson1DeleteDetectorRequests(input.detectors, context),
|
|
47
|
+
})));
|
|
48
|
+
return [2, new __HttpRequest({
|
|
49
|
+
protocol: protocol,
|
|
50
|
+
hostname: hostname,
|
|
51
|
+
port: port,
|
|
52
|
+
method: "POST",
|
|
53
|
+
headers: headers,
|
|
54
|
+
path: resolvedPath,
|
|
55
|
+
body: body,
|
|
56
|
+
})];
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}); };
|
|
33
60
|
export var serializeAws_restJson1BatchDisableAlarmCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
34
61
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
35
62
|
return __generator(this, function (_c) {
|
|
@@ -390,6 +417,74 @@ var deserializeAws_restJson1BatchAcknowledgeAlarmCommandError = function (output
|
|
|
390
417
|
}
|
|
391
418
|
});
|
|
392
419
|
}); };
|
|
420
|
+
export var deserializeAws_restJson1BatchDeleteDetectorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
421
|
+
var contents, data, _a, _b;
|
|
422
|
+
return __generator(this, function (_c) {
|
|
423
|
+
switch (_c.label) {
|
|
424
|
+
case 0:
|
|
425
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
426
|
+
return [2, deserializeAws_restJson1BatchDeleteDetectorCommandError(output, context)];
|
|
427
|
+
}
|
|
428
|
+
contents = {
|
|
429
|
+
$metadata: deserializeMetadata(output),
|
|
430
|
+
batchDeleteDetectorErrorEntries: undefined,
|
|
431
|
+
};
|
|
432
|
+
_a = __expectNonNull;
|
|
433
|
+
_b = __expectObject;
|
|
434
|
+
return [4, parseBody(output.body, context)];
|
|
435
|
+
case 1:
|
|
436
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
437
|
+
if (data.batchDeleteDetectorErrorEntries !== undefined && data.batchDeleteDetectorErrorEntries !== null) {
|
|
438
|
+
contents.batchDeleteDetectorErrorEntries = deserializeAws_restJson1BatchDeleteDetectorErrorEntries(data.batchDeleteDetectorErrorEntries, context);
|
|
439
|
+
}
|
|
440
|
+
return [2, Promise.resolve(contents)];
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}); };
|
|
444
|
+
var deserializeAws_restJson1BatchDeleteDetectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
445
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
446
|
+
var _c;
|
|
447
|
+
return __generator(this, function (_d) {
|
|
448
|
+
switch (_d.label) {
|
|
449
|
+
case 0:
|
|
450
|
+
_a = [__assign({}, output)];
|
|
451
|
+
_c = {};
|
|
452
|
+
return [4, parseBody(output.body, context)];
|
|
453
|
+
case 1:
|
|
454
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
455
|
+
errorCode = "UnknownError";
|
|
456
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
|
+
_b = errorCode;
|
|
458
|
+
switch (_b) {
|
|
459
|
+
case "InternalFailureException": return [3, 2];
|
|
460
|
+
case "com.amazonaws.ioteventsdata#InternalFailureException": return [3, 2];
|
|
461
|
+
case "InvalidRequestException": return [3, 4];
|
|
462
|
+
case "com.amazonaws.ioteventsdata#InvalidRequestException": return [3, 4];
|
|
463
|
+
case "ServiceUnavailableException": return [3, 6];
|
|
464
|
+
case "com.amazonaws.ioteventsdata#ServiceUnavailableException": return [3, 6];
|
|
465
|
+
case "ThrottlingException": return [3, 8];
|
|
466
|
+
case "com.amazonaws.ioteventsdata#ThrottlingException": return [3, 8];
|
|
467
|
+
}
|
|
468
|
+
return [3, 10];
|
|
469
|
+
case 2: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
470
|
+
case 3: throw _d.sent();
|
|
471
|
+
case 4: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
472
|
+
case 5: throw _d.sent();
|
|
473
|
+
case 6: return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
474
|
+
case 7: throw _d.sent();
|
|
475
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
476
|
+
case 9: throw _d.sent();
|
|
477
|
+
case 10:
|
|
478
|
+
parsedBody = parsedOutput.body;
|
|
479
|
+
response = new __BaseException({
|
|
480
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
481
|
+
$fault: "client",
|
|
482
|
+
$metadata: deserializeMetadata(output),
|
|
483
|
+
});
|
|
484
|
+
throw __decorateServiceException(response, parsedBody);
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
}); };
|
|
393
488
|
export var deserializeAws_restJson1BatchDisableAlarmCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
394
489
|
var contents, data, _a, _b;
|
|
395
490
|
return __generator(this, function (_c) {
|
|
@@ -1168,6 +1263,20 @@ var serializeAws_restJson1AcknowledgeAlarmActionRequests = function (input, cont
|
|
|
1168
1263
|
return serializeAws_restJson1AcknowledgeAlarmActionRequest(entry, context);
|
|
1169
1264
|
});
|
|
1170
1265
|
};
|
|
1266
|
+
var serializeAws_restJson1DeleteDetectorRequest = function (input, context) {
|
|
1267
|
+
return __assign(__assign(__assign({}, (input.detectorModelName !== undefined &&
|
|
1268
|
+
input.detectorModelName !== null && { detectorModelName: input.detectorModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.messageId !== undefined && input.messageId !== null && { messageId: input.messageId }));
|
|
1269
|
+
};
|
|
1270
|
+
var serializeAws_restJson1DeleteDetectorRequests = function (input, context) {
|
|
1271
|
+
return input
|
|
1272
|
+
.filter(function (e) { return e != null; })
|
|
1273
|
+
.map(function (entry) {
|
|
1274
|
+
if (entry === null) {
|
|
1275
|
+
return null;
|
|
1276
|
+
}
|
|
1277
|
+
return serializeAws_restJson1DeleteDetectorRequest(entry, context);
|
|
1278
|
+
});
|
|
1279
|
+
};
|
|
1171
1280
|
var serializeAws_restJson1DetectorStateDefinition = function (input, context) {
|
|
1172
1281
|
return __assign(__assign(__assign({}, (input.stateName !== undefined && input.stateName !== null && { stateName: input.stateName })), (input.timers !== undefined &&
|
|
1173
1282
|
input.timers !== null && { timers: serializeAws_restJson1TimerDefinitions(input.timers, context) })), (input.variables !== undefined &&
|
|
@@ -1367,6 +1476,24 @@ var deserializeAws_restJson1BatchAlarmActionErrorEntry = function (output, conte
|
|
|
1367
1476
|
requestId: __expectString(output.requestId),
|
|
1368
1477
|
};
|
|
1369
1478
|
};
|
|
1479
|
+
var deserializeAws_restJson1BatchDeleteDetectorErrorEntries = function (output, context) {
|
|
1480
|
+
var retVal = (output || [])
|
|
1481
|
+
.filter(function (e) { return e != null; })
|
|
1482
|
+
.map(function (entry) {
|
|
1483
|
+
if (entry === null) {
|
|
1484
|
+
return null;
|
|
1485
|
+
}
|
|
1486
|
+
return deserializeAws_restJson1BatchDeleteDetectorErrorEntry(entry, context);
|
|
1487
|
+
});
|
|
1488
|
+
return retVal;
|
|
1489
|
+
};
|
|
1490
|
+
var deserializeAws_restJson1BatchDeleteDetectorErrorEntry = function (output, context) {
|
|
1491
|
+
return {
|
|
1492
|
+
errorCode: __expectString(output.errorCode),
|
|
1493
|
+
errorMessage: __expectString(output.errorMessage),
|
|
1494
|
+
messageId: __expectString(output.messageId),
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1370
1497
|
var deserializeAws_restJson1BatchPutMessageErrorEntries = function (output, context) {
|
|
1371
1498
|
var retVal = (output || [])
|
|
1372
1499
|
.filter(function (e) { return e != null; })
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { BatchAcknowledgeAlarmCommandInput, BatchAcknowledgeAlarmCommandOutput } from "./commands/BatchAcknowledgeAlarmCommand";
|
|
3
|
+
import { BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput } from "./commands/BatchDeleteDetectorCommand";
|
|
3
4
|
import { BatchDisableAlarmCommandInput, BatchDisableAlarmCommandOutput } from "./commands/BatchDisableAlarmCommand";
|
|
4
5
|
import { BatchEnableAlarmCommandInput, BatchEnableAlarmCommandOutput } from "./commands/BatchEnableAlarmCommand";
|
|
5
6
|
import { BatchPutMessageCommandInput, BatchPutMessageCommandOutput } from "./commands/BatchPutMessageCommand";
|
|
@@ -26,6 +27,12 @@ export declare class IoTEventsData extends IoTEventsDataClient {
|
|
|
26
27
|
batchAcknowledgeAlarm(args: BatchAcknowledgeAlarmCommandInput, options?: __HttpHandlerOptions): Promise<BatchAcknowledgeAlarmCommandOutput>;
|
|
27
28
|
batchAcknowledgeAlarm(args: BatchAcknowledgeAlarmCommandInput, cb: (err: any, data?: BatchAcknowledgeAlarmCommandOutput) => void): void;
|
|
28
29
|
batchAcknowledgeAlarm(args: BatchAcknowledgeAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchAcknowledgeAlarmCommandOutput) => void): void;
|
|
30
|
+
/**
|
|
31
|
+
* <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>
|
|
32
|
+
*/
|
|
33
|
+
batchDeleteDetector(args: BatchDeleteDetectorCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteDetectorCommandOutput>;
|
|
34
|
+
batchDeleteDetector(args: BatchDeleteDetectorCommandInput, cb: (err: any, data?: BatchDeleteDetectorCommandOutput) => void): void;
|
|
35
|
+
batchDeleteDetector(args: BatchDeleteDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteDetectorCommandOutput) => void): void;
|
|
29
36
|
/**
|
|
30
37
|
* <p>Disables one or more alarms. The alarms change to the <code>DISABLED</code> state after
|
|
31
38
|
* you disable them.</p>
|
|
@@ -7,6 +7,7 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { BatchAcknowledgeAlarmCommandInput, BatchAcknowledgeAlarmCommandOutput } from "./commands/BatchAcknowledgeAlarmCommand";
|
|
10
|
+
import { BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput } from "./commands/BatchDeleteDetectorCommand";
|
|
10
11
|
import { BatchDisableAlarmCommandInput, BatchDisableAlarmCommandOutput } from "./commands/BatchDisableAlarmCommand";
|
|
11
12
|
import { BatchEnableAlarmCommandInput, BatchEnableAlarmCommandOutput } from "./commands/BatchEnableAlarmCommand";
|
|
12
13
|
import { BatchPutMessageCommandInput, BatchPutMessageCommandOutput } from "./commands/BatchPutMessageCommand";
|
|
@@ -17,8 +18,8 @@ import { DescribeAlarmCommandInput, DescribeAlarmCommandOutput } from "./command
|
|
|
17
18
|
import { DescribeDetectorCommandInput, DescribeDetectorCommandOutput } from "./commands/DescribeDetectorCommand";
|
|
18
19
|
import { ListAlarmsCommandInput, ListAlarmsCommandOutput } from "./commands/ListAlarmsCommand";
|
|
19
20
|
import { ListDetectorsCommandInput, ListDetectorsCommandOutput } from "./commands/ListDetectorsCommand";
|
|
20
|
-
export declare type ServiceInputTypes = BatchAcknowledgeAlarmCommandInput | BatchDisableAlarmCommandInput | BatchEnableAlarmCommandInput | BatchPutMessageCommandInput | BatchResetAlarmCommandInput | BatchSnoozeAlarmCommandInput | BatchUpdateDetectorCommandInput | DescribeAlarmCommandInput | DescribeDetectorCommandInput | ListAlarmsCommandInput | ListDetectorsCommandInput;
|
|
21
|
-
export declare type ServiceOutputTypes = BatchAcknowledgeAlarmCommandOutput | BatchDisableAlarmCommandOutput | BatchEnableAlarmCommandOutput | BatchPutMessageCommandOutput | BatchResetAlarmCommandOutput | BatchSnoozeAlarmCommandOutput | BatchUpdateDetectorCommandOutput | DescribeAlarmCommandOutput | DescribeDetectorCommandOutput | ListAlarmsCommandOutput | ListDetectorsCommandOutput;
|
|
21
|
+
export declare type ServiceInputTypes = BatchAcknowledgeAlarmCommandInput | BatchDeleteDetectorCommandInput | BatchDisableAlarmCommandInput | BatchEnableAlarmCommandInput | BatchPutMessageCommandInput | BatchResetAlarmCommandInput | BatchSnoozeAlarmCommandInput | BatchUpdateDetectorCommandInput | DescribeAlarmCommandInput | DescribeDetectorCommandInput | ListAlarmsCommandInput | ListDetectorsCommandInput;
|
|
22
|
+
export declare type ServiceOutputTypes = BatchAcknowledgeAlarmCommandOutput | BatchDeleteDetectorCommandOutput | BatchDisableAlarmCommandOutput | BatchEnableAlarmCommandOutput | BatchPutMessageCommandOutput | BatchResetAlarmCommandOutput | BatchSnoozeAlarmCommandOutput | BatchUpdateDetectorCommandOutput | DescribeAlarmCommandOutput | DescribeDetectorCommandOutput | ListAlarmsCommandOutput | ListDetectorsCommandOutput;
|
|
22
23
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
23
24
|
/**
|
|
24
25
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient";
|
|
4
|
+
import { BatchDeleteDetectorRequest, BatchDeleteDetectorResponse } from "../models/models_0";
|
|
5
|
+
export interface BatchDeleteDetectorCommandInput extends BatchDeleteDetectorRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface BatchDeleteDetectorCommandOutput extends BatchDeleteDetectorResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <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>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { IoTEventsDataClient, BatchDeleteDetectorCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import
|
|
15
|
+
* // const { IoTEventsDataClient, BatchDeleteDetectorCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import
|
|
16
|
+
* const client = new IoTEventsDataClient(config);
|
|
17
|
+
* const command = new BatchDeleteDetectorCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link BatchDeleteDetectorCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link BatchDeleteDetectorCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link IoTEventsDataClientResolvedConfig | config} for IoTEventsDataClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class BatchDeleteDetectorCommand extends $Command<BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput, IoTEventsDataClientResolvedConfig> {
|
|
27
|
+
readonly input: BatchDeleteDetectorCommandInput;
|
|
28
|
+
constructor(input: BatchDeleteDetectorCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTEventsDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -567,6 +567,76 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
567
567
|
*/
|
|
568
568
|
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
569
569
|
}
|
|
570
|
+
/**
|
|
571
|
+
* <p>Information used to delete the detector model.</p>
|
|
572
|
+
*/
|
|
573
|
+
export interface DeleteDetectorRequest {
|
|
574
|
+
/**
|
|
575
|
+
* <p>The ID to assign to the <code>DeleteDetectorRequest</code>. Each <code>"messageId"</code> must be unique within each batch sent.</p>
|
|
576
|
+
*/
|
|
577
|
+
messageId: string | undefined;
|
|
578
|
+
/**
|
|
579
|
+
* <p>The name of the detector model that was used to create the detector instance.</p>
|
|
580
|
+
*/
|
|
581
|
+
detectorModelName: string | undefined;
|
|
582
|
+
/**
|
|
583
|
+
* <p>The value of the <a href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_CreateDetectorModel.html#iotevents-CreateDetectorModel-request-key">key</a> used to identify the detector. </p>
|
|
584
|
+
*/
|
|
585
|
+
keyValue?: string;
|
|
586
|
+
}
|
|
587
|
+
export declare namespace DeleteDetectorRequest {
|
|
588
|
+
/**
|
|
589
|
+
* @internal
|
|
590
|
+
*/
|
|
591
|
+
const filterSensitiveLog: (obj: DeleteDetectorRequest) => any;
|
|
592
|
+
}
|
|
593
|
+
export interface BatchDeleteDetectorRequest {
|
|
594
|
+
/**
|
|
595
|
+
* <p>The list of one or more detectors to be deleted.</p>
|
|
596
|
+
*/
|
|
597
|
+
detectors: DeleteDetectorRequest[] | undefined;
|
|
598
|
+
}
|
|
599
|
+
export declare namespace BatchDeleteDetectorRequest {
|
|
600
|
+
/**
|
|
601
|
+
* @internal
|
|
602
|
+
*/
|
|
603
|
+
const filterSensitiveLog: (obj: BatchDeleteDetectorRequest) => any;
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* <p>Contains error messages associated with the deletion request.</p>
|
|
607
|
+
*/
|
|
608
|
+
export interface BatchDeleteDetectorErrorEntry {
|
|
609
|
+
/**
|
|
610
|
+
* <p>The ID of the message that caused the error. (See the value of the <code>"messageId"</code> in the <a href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchDeleteDetector.html#iotevents-iotevents-data_BatchDeleteDetector-request-detectors">detectors</a> object of the <code>DeleteDetectorRequest</code>.)</p>
|
|
611
|
+
*/
|
|
612
|
+
messageId?: string;
|
|
613
|
+
/**
|
|
614
|
+
* <p>The error code.</p>
|
|
615
|
+
*/
|
|
616
|
+
errorCode?: ErrorCode | string;
|
|
617
|
+
/**
|
|
618
|
+
* <p>A message that describes the error.</p>
|
|
619
|
+
*/
|
|
620
|
+
errorMessage?: string;
|
|
621
|
+
}
|
|
622
|
+
export declare namespace BatchDeleteDetectorErrorEntry {
|
|
623
|
+
/**
|
|
624
|
+
* @internal
|
|
625
|
+
*/
|
|
626
|
+
const filterSensitiveLog: (obj: BatchDeleteDetectorErrorEntry) => any;
|
|
627
|
+
}
|
|
628
|
+
export interface BatchDeleteDetectorResponse {
|
|
629
|
+
/**
|
|
630
|
+
* <p>A list of errors associated with the request, or an empty array (<code>[]</code>) if there are no errors. Each error entry contains a <code>messageId</code> that helps you identify the entry that failed.</p>
|
|
631
|
+
*/
|
|
632
|
+
batchDeleteDetectorErrorEntries?: BatchDeleteDetectorErrorEntry[];
|
|
633
|
+
}
|
|
634
|
+
export declare namespace BatchDeleteDetectorResponse {
|
|
635
|
+
/**
|
|
636
|
+
* @internal
|
|
637
|
+
*/
|
|
638
|
+
const filterSensitiveLog: (obj: BatchDeleteDetectorResponse) => any;
|
|
639
|
+
}
|
|
570
640
|
/**
|
|
571
641
|
* <p>Information used to disable the alarm.</p>
|
|
572
642
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { BatchAcknowledgeAlarmCommandInput, BatchAcknowledgeAlarmCommandOutput } from "../commands/BatchAcknowledgeAlarmCommand";
|
|
4
|
+
import { BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput } from "../commands/BatchDeleteDetectorCommand";
|
|
4
5
|
import { BatchDisableAlarmCommandInput, BatchDisableAlarmCommandOutput } from "../commands/BatchDisableAlarmCommand";
|
|
5
6
|
import { BatchEnableAlarmCommandInput, BatchEnableAlarmCommandOutput } from "../commands/BatchEnableAlarmCommand";
|
|
6
7
|
import { BatchPutMessageCommandInput, BatchPutMessageCommandOutput } from "../commands/BatchPutMessageCommand";
|
|
@@ -12,6 +13,7 @@ import { DescribeDetectorCommandInput, DescribeDetectorCommandOutput } from "../
|
|
|
12
13
|
import { ListAlarmsCommandInput, ListAlarmsCommandOutput } from "../commands/ListAlarmsCommand";
|
|
13
14
|
import { ListDetectorsCommandInput, ListDetectorsCommandOutput } from "../commands/ListDetectorsCommand";
|
|
14
15
|
export declare const serializeAws_restJson1BatchAcknowledgeAlarmCommand: (input: BatchAcknowledgeAlarmCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
|
+
export declare const serializeAws_restJson1BatchDeleteDetectorCommand: (input: BatchDeleteDetectorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
17
|
export declare const serializeAws_restJson1BatchDisableAlarmCommand: (input: BatchDisableAlarmCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
18
|
export declare const serializeAws_restJson1BatchEnableAlarmCommand: (input: BatchEnableAlarmCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
17
19
|
export declare const serializeAws_restJson1BatchPutMessageCommand: (input: BatchPutMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -23,6 +25,7 @@ export declare const serializeAws_restJson1DescribeDetectorCommand: (input: Desc
|
|
|
23
25
|
export declare const serializeAws_restJson1ListAlarmsCommand: (input: ListAlarmsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
26
|
export declare const serializeAws_restJson1ListDetectorsCommand: (input: ListDetectorsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
27
|
export declare const deserializeAws_restJson1BatchAcknowledgeAlarmCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchAcknowledgeAlarmCommandOutput>;
|
|
28
|
+
export declare const deserializeAws_restJson1BatchDeleteDetectorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchDeleteDetectorCommandOutput>;
|
|
26
29
|
export declare const deserializeAws_restJson1BatchDisableAlarmCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchDisableAlarmCommandOutput>;
|
|
27
30
|
export declare const deserializeAws_restJson1BatchEnableAlarmCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchEnableAlarmCommandOutput>;
|
|
28
31
|
export declare const deserializeAws_restJson1BatchPutMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchPutMessageCommandOutput>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { BatchAcknowledgeAlarmCommandInput, BatchAcknowledgeAlarmCommandOutput } from "./commands/BatchAcknowledgeAlarmCommand";
|
|
3
|
+
import { BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput } from "./commands/BatchDeleteDetectorCommand";
|
|
3
4
|
import { BatchDisableAlarmCommandInput, BatchDisableAlarmCommandOutput } from "./commands/BatchDisableAlarmCommand";
|
|
4
5
|
import { BatchEnableAlarmCommandInput, BatchEnableAlarmCommandOutput } from "./commands/BatchEnableAlarmCommand";
|
|
5
6
|
import { BatchPutMessageCommandInput, BatchPutMessageCommandOutput } from "./commands/BatchPutMessageCommand";
|
|
@@ -18,6 +19,10 @@ export declare class IoTEventsData extends IoTEventsDataClient {
|
|
|
18
19
|
batchAcknowledgeAlarm(args: BatchAcknowledgeAlarmCommandInput, cb: (err: any, data?: BatchAcknowledgeAlarmCommandOutput) => void): void;
|
|
19
20
|
batchAcknowledgeAlarm(args: BatchAcknowledgeAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchAcknowledgeAlarmCommandOutput) => void): void;
|
|
20
21
|
|
|
22
|
+
batchDeleteDetector(args: BatchDeleteDetectorCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteDetectorCommandOutput>;
|
|
23
|
+
batchDeleteDetector(args: BatchDeleteDetectorCommandInput, cb: (err: any, data?: BatchDeleteDetectorCommandOutput) => void): void;
|
|
24
|
+
batchDeleteDetector(args: BatchDeleteDetectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteDetectorCommandOutput) => void): void;
|
|
25
|
+
|
|
21
26
|
batchDisableAlarm(args: BatchDisableAlarmCommandInput, options?: __HttpHandlerOptions): Promise<BatchDisableAlarmCommandOutput>;
|
|
22
27
|
batchDisableAlarm(args: BatchDisableAlarmCommandInput, cb: (err: any, data?: BatchDisableAlarmCommandOutput) => void): void;
|
|
23
28
|
batchDisableAlarm(args: BatchDisableAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDisableAlarmCommandOutput) => void): void;
|
|
@@ -7,6 +7,7 @@ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { BatchAcknowledgeAlarmCommandInput, BatchAcknowledgeAlarmCommandOutput } from "./commands/BatchAcknowledgeAlarmCommand";
|
|
10
|
+
import { BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput } from "./commands/BatchDeleteDetectorCommand";
|
|
10
11
|
import { BatchDisableAlarmCommandInput, BatchDisableAlarmCommandOutput } from "./commands/BatchDisableAlarmCommand";
|
|
11
12
|
import { BatchEnableAlarmCommandInput, BatchEnableAlarmCommandOutput } from "./commands/BatchEnableAlarmCommand";
|
|
12
13
|
import { BatchPutMessageCommandInput, BatchPutMessageCommandOutput } from "./commands/BatchPutMessageCommand";
|
|
@@ -17,8 +18,8 @@ import { DescribeAlarmCommandInput, DescribeAlarmCommandOutput } from "./command
|
|
|
17
18
|
import { DescribeDetectorCommandInput, DescribeDetectorCommandOutput } from "./commands/DescribeDetectorCommand";
|
|
18
19
|
import { ListAlarmsCommandInput, ListAlarmsCommandOutput } from "./commands/ListAlarmsCommand";
|
|
19
20
|
import { ListDetectorsCommandInput, ListDetectorsCommandOutput } from "./commands/ListDetectorsCommand";
|
|
20
|
-
export declare type ServiceInputTypes = BatchAcknowledgeAlarmCommandInput | BatchDisableAlarmCommandInput | BatchEnableAlarmCommandInput | BatchPutMessageCommandInput | BatchResetAlarmCommandInput | BatchSnoozeAlarmCommandInput | BatchUpdateDetectorCommandInput | DescribeAlarmCommandInput | DescribeDetectorCommandInput | ListAlarmsCommandInput | ListDetectorsCommandInput;
|
|
21
|
-
export declare type ServiceOutputTypes = BatchAcknowledgeAlarmCommandOutput | BatchDisableAlarmCommandOutput | BatchEnableAlarmCommandOutput | BatchPutMessageCommandOutput | BatchResetAlarmCommandOutput | BatchSnoozeAlarmCommandOutput | BatchUpdateDetectorCommandOutput | DescribeAlarmCommandOutput | DescribeDetectorCommandOutput | ListAlarmsCommandOutput | ListDetectorsCommandOutput;
|
|
21
|
+
export declare type ServiceInputTypes = BatchAcknowledgeAlarmCommandInput | BatchDeleteDetectorCommandInput | BatchDisableAlarmCommandInput | BatchEnableAlarmCommandInput | BatchPutMessageCommandInput | BatchResetAlarmCommandInput | BatchSnoozeAlarmCommandInput | BatchUpdateDetectorCommandInput | DescribeAlarmCommandInput | DescribeDetectorCommandInput | ListAlarmsCommandInput | ListDetectorsCommandInput;
|
|
22
|
+
export declare type ServiceOutputTypes = BatchAcknowledgeAlarmCommandOutput | BatchDeleteDetectorCommandOutput | BatchDisableAlarmCommandOutput | BatchEnableAlarmCommandOutput | BatchPutMessageCommandOutput | BatchResetAlarmCommandOutput | BatchSnoozeAlarmCommandOutput | BatchUpdateDetectorCommandOutput | DescribeAlarmCommandOutput | DescribeDetectorCommandOutput | ListAlarmsCommandOutput | ListDetectorsCommandOutput;
|
|
22
23
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
23
24
|
|
|
24
25
|
requestHandler?: __HttpHandler;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient";
|
|
4
|
+
import { BatchDeleteDetectorRequest, BatchDeleteDetectorResponse } from "../models/models_0";
|
|
5
|
+
export interface BatchDeleteDetectorCommandInput extends BatchDeleteDetectorRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface BatchDeleteDetectorCommandOutput extends BatchDeleteDetectorResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class BatchDeleteDetectorCommand extends $Command<BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput, IoTEventsDataClientResolvedConfig> {
|
|
11
|
+
readonly input: BatchDeleteDetectorCommandInput;
|
|
12
|
+
constructor(input: BatchDeleteDetectorCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTEventsDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -272,6 +272,48 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
272
272
|
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
export interface DeleteDetectorRequest {
|
|
276
|
+
|
|
277
|
+
messageId: string | undefined;
|
|
278
|
+
|
|
279
|
+
detectorModelName: string | undefined;
|
|
280
|
+
|
|
281
|
+
keyValue?: string;
|
|
282
|
+
}
|
|
283
|
+
export declare namespace DeleteDetectorRequest {
|
|
284
|
+
|
|
285
|
+
const filterSensitiveLog: (obj: DeleteDetectorRequest) => any;
|
|
286
|
+
}
|
|
287
|
+
export interface BatchDeleteDetectorRequest {
|
|
288
|
+
|
|
289
|
+
detectors: DeleteDetectorRequest[] | undefined;
|
|
290
|
+
}
|
|
291
|
+
export declare namespace BatchDeleteDetectorRequest {
|
|
292
|
+
|
|
293
|
+
const filterSensitiveLog: (obj: BatchDeleteDetectorRequest) => any;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export interface BatchDeleteDetectorErrorEntry {
|
|
297
|
+
|
|
298
|
+
messageId?: string;
|
|
299
|
+
|
|
300
|
+
errorCode?: ErrorCode | string;
|
|
301
|
+
|
|
302
|
+
errorMessage?: string;
|
|
303
|
+
}
|
|
304
|
+
export declare namespace BatchDeleteDetectorErrorEntry {
|
|
305
|
+
|
|
306
|
+
const filterSensitiveLog: (obj: BatchDeleteDetectorErrorEntry) => any;
|
|
307
|
+
}
|
|
308
|
+
export interface BatchDeleteDetectorResponse {
|
|
309
|
+
|
|
310
|
+
batchDeleteDetectorErrorEntries?: BatchDeleteDetectorErrorEntry[];
|
|
311
|
+
}
|
|
312
|
+
export declare namespace BatchDeleteDetectorResponse {
|
|
313
|
+
|
|
314
|
+
const filterSensitiveLog: (obj: BatchDeleteDetectorResponse) => any;
|
|
315
|
+
}
|
|
316
|
+
|
|
275
317
|
export interface DisableAlarmActionRequest {
|
|
276
318
|
|
|
277
319
|
requestId: string | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { BatchAcknowledgeAlarmCommandInput, BatchAcknowledgeAlarmCommandOutput } from "../commands/BatchAcknowledgeAlarmCommand";
|
|
4
|
+
import { BatchDeleteDetectorCommandInput, BatchDeleteDetectorCommandOutput } from "../commands/BatchDeleteDetectorCommand";
|
|
4
5
|
import { BatchDisableAlarmCommandInput, BatchDisableAlarmCommandOutput } from "../commands/BatchDisableAlarmCommand";
|
|
5
6
|
import { BatchEnableAlarmCommandInput, BatchEnableAlarmCommandOutput } from "../commands/BatchEnableAlarmCommand";
|
|
6
7
|
import { BatchPutMessageCommandInput, BatchPutMessageCommandOutput } from "../commands/BatchPutMessageCommand";
|
|
@@ -12,6 +13,7 @@ import { DescribeDetectorCommandInput, DescribeDetectorCommandOutput } from "../
|
|
|
12
13
|
import { ListAlarmsCommandInput, ListAlarmsCommandOutput } from "../commands/ListAlarmsCommand";
|
|
13
14
|
import { ListDetectorsCommandInput, ListDetectorsCommandOutput } from "../commands/ListDetectorsCommand";
|
|
14
15
|
export declare const serializeAws_restJson1BatchAcknowledgeAlarmCommand: (input: BatchAcknowledgeAlarmCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
|
+
export declare const serializeAws_restJson1BatchDeleteDetectorCommand: (input: BatchDeleteDetectorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
17
|
export declare const serializeAws_restJson1BatchDisableAlarmCommand: (input: BatchDisableAlarmCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
18
|
export declare const serializeAws_restJson1BatchEnableAlarmCommand: (input: BatchEnableAlarmCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
17
19
|
export declare const serializeAws_restJson1BatchPutMessageCommand: (input: BatchPutMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -23,6 +25,7 @@ export declare const serializeAws_restJson1DescribeDetectorCommand: (input: Desc
|
|
|
23
25
|
export declare const serializeAws_restJson1ListAlarmsCommand: (input: ListAlarmsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
26
|
export declare const serializeAws_restJson1ListDetectorsCommand: (input: ListDetectorsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
27
|
export declare const deserializeAws_restJson1BatchAcknowledgeAlarmCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchAcknowledgeAlarmCommandOutput>;
|
|
28
|
+
export declare const deserializeAws_restJson1BatchDeleteDetectorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchDeleteDetectorCommandOutput>;
|
|
26
29
|
export declare const deserializeAws_restJson1BatchDisableAlarmCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchDisableAlarmCommandOutput>;
|
|
27
30
|
export declare const deserializeAws_restJson1BatchEnableAlarmCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchEnableAlarmCommandOutput>;
|
|
28
31
|
export declare const deserializeAws_restJson1BatchPutMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchPutMessageCommandOutput>;
|
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.
|
|
4
|
+
"version": "3.95.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",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.95.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.80.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.95.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.78.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.78.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.78.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@aws-sdk/middleware-stack": "3.78.0",
|
|
34
34
|
"@aws-sdk/middleware-user-agent": "3.78.0",
|
|
35
35
|
"@aws-sdk/node-config-provider": "3.80.0",
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.94.0",
|
|
37
37
|
"@aws-sdk/protocol-http": "3.78.0",
|
|
38
38
|
"@aws-sdk/smithy-client": "3.85.0",
|
|
39
39
|
"@aws-sdk/types": "3.78.0",
|