@aws-sdk/client-iot-events-data 3.34.0 → 3.37.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 +47 -0
- package/{dist/cjs → dist-cjs}/IoTEventsData.js +1 -9
- package/{dist/cjs → dist-cjs}/IoTEventsDataClient.js +8 -21
- package/{dist/cjs → dist-cjs}/commands/BatchAcknowledgeAlarmCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/BatchDisableAlarmCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/BatchEnableAlarmCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/BatchPutMessageCommand.js +2 -31
- package/{dist/cjs → dist-cjs}/commands/BatchResetAlarmCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/BatchSnoozeAlarmCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/BatchUpdateDetectorCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DescribeAlarmCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeDetectorCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListAlarmsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/ListDetectorsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -181
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +7 -13
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/IoTEventsData.js +1 -2
- package/{dist/es → dist-es}/IoTEventsDataClient.js +1 -2
- package/{dist/es → dist-es}/commands/BatchAcknowledgeAlarmCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchDisableAlarmCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchEnableAlarmCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchPutMessageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchResetAlarmCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchSnoozeAlarmCommand.js +2 -3
- package/{dist/es → dist-es}/commands/BatchUpdateDetectorCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeAlarmCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeDetectorCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListAlarmsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListDetectorsCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/IoTEventsData.d.ts +2 -2
- package/{dist/types → dist-types}/IoTEventsDataClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/BatchAcknowledgeAlarmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchDisableAlarmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchEnableAlarmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchPutMessageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchResetAlarmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchSnoozeAlarmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/BatchUpdateDetectorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeAlarmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDetectorCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAlarmsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDetectorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/IoTEventsData.d.ts +14 -53
- package/{dist/types → dist-types}/ts3.4/IoTEventsDataClient.d.ts +32 -101
- package/dist-types/ts3.4/commands/BatchAcknowledgeAlarmCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchDisableAlarmCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchEnableAlarmCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchPutMessageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchResetAlarmCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchSnoozeAlarmCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchUpdateDetectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeAlarmCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeDetectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAlarmsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDetectorsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +721 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/IoTEventsData.ts +0 -419
- package/IoTEventsDataClient.ts +0 -278
- package/commands/BatchAcknowledgeAlarmCommand.ts +0 -95
- package/commands/BatchDisableAlarmCommand.ts +0 -95
- package/commands/BatchEnableAlarmCommand.ts +0 -95
- package/commands/BatchPutMessageCommand.ts +0 -98
- package/commands/BatchResetAlarmCommand.ts +0 -95
- package/commands/BatchSnoozeAlarmCommand.ts +0 -95
- package/commands/BatchUpdateDetectorCommand.ts +0 -95
- package/commands/DescribeAlarmCommand.ts +0 -94
- package/commands/DescribeDetectorCommand.ts +0 -94
- package/commands/ListAlarmsCommand.ts +0 -95
- package/commands/ListDetectorsCommand.ts +0 -94
- package/dist/cjs/IoTEventsData.js.map +0 -1
- package/dist/cjs/IoTEventsDataClient.js.map +0 -1
- package/dist/cjs/commands/BatchAcknowledgeAlarmCommand.js.map +0 -1
- package/dist/cjs/commands/BatchDisableAlarmCommand.js.map +0 -1
- package/dist/cjs/commands/BatchEnableAlarmCommand.js.map +0 -1
- package/dist/cjs/commands/BatchPutMessageCommand.js.map +0 -1
- package/dist/cjs/commands/BatchResetAlarmCommand.js.map +0 -1
- package/dist/cjs/commands/BatchSnoozeAlarmCommand.js.map +0 -1
- package/dist/cjs/commands/BatchUpdateDetectorCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeAlarmCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDetectorCommand.js.map +0 -1
- package/dist/cjs/commands/ListAlarmsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDetectorsCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/IoTEventsData.js.map +0 -1
- package/dist/es/IoTEventsDataClient.js.map +0 -1
- package/dist/es/commands/BatchAcknowledgeAlarmCommand.js.map +0 -1
- package/dist/es/commands/BatchDisableAlarmCommand.js.map +0 -1
- package/dist/es/commands/BatchEnableAlarmCommand.js.map +0 -1
- package/dist/es/commands/BatchPutMessageCommand.js.map +0 -1
- package/dist/es/commands/BatchResetAlarmCommand.js.map +0 -1
- package/dist/es/commands/BatchSnoozeAlarmCommand.js.map +0 -1
- package/dist/es/commands/BatchUpdateDetectorCommand.js.map +0 -1
- package/dist/es/commands/DescribeAlarmCommand.js.map +0 -1
- package/dist/es/commands/DescribeDetectorCommand.js.map +0 -1
- package/dist/es/commands/ListAlarmsCommand.js.map +0 -1
- package/dist/es/commands/ListDetectorsCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -15
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/BatchAcknowledgeAlarmCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/BatchDisableAlarmCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/BatchEnableAlarmCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/BatchPutMessageCommand.d.ts +0 -39
- package/dist/types/ts3.4/commands/BatchResetAlarmCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/BatchSnoozeAlarmCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/BatchUpdateDetectorCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DescribeAlarmCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeDetectorCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListAlarmsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListDetectorsCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1345
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1669
- package/protocols/Aws_restJson1.ts +0 -2060
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient";
|
|
2
|
-
import { BatchResetAlarmRequest, BatchResetAlarmResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1BatchResetAlarmCommand,
|
|
5
|
-
serializeAws_restJson1BatchResetAlarmCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface BatchResetAlarmCommandInput extends BatchResetAlarmRequest {}
|
|
21
|
-
export interface BatchResetAlarmCommandOutput extends BatchResetAlarmResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Resets one or more alarms. The alarms return to the <code>NORMAL</code> state after you
|
|
25
|
-
* reset them.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { IoTEventsDataClient, BatchResetAlarmCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import
|
|
30
|
-
* // const { IoTEventsDataClient, BatchResetAlarmCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import
|
|
31
|
-
* const client = new IoTEventsDataClient(config);
|
|
32
|
-
* const command = new BatchResetAlarmCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link BatchResetAlarmCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link BatchResetAlarmCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link IoTEventsDataClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class BatchResetAlarmCommand extends $Command<
|
|
42
|
-
BatchResetAlarmCommandInput,
|
|
43
|
-
BatchResetAlarmCommandOutput,
|
|
44
|
-
IoTEventsDataClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: BatchResetAlarmCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: IoTEventsDataClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<BatchResetAlarmCommandInput, BatchResetAlarmCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "IoTEventsDataClient";
|
|
69
|
-
const commandName = "BatchResetAlarmCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: BatchResetAlarmRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: BatchResetAlarmResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: BatchResetAlarmCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1BatchResetAlarmCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<BatchResetAlarmCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1BatchResetAlarmCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient";
|
|
2
|
-
import { BatchSnoozeAlarmRequest, BatchSnoozeAlarmResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1BatchSnoozeAlarmCommand,
|
|
5
|
-
serializeAws_restJson1BatchSnoozeAlarmCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface BatchSnoozeAlarmCommandInput extends BatchSnoozeAlarmRequest {}
|
|
21
|
-
export interface BatchSnoozeAlarmCommandOutput extends BatchSnoozeAlarmResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Changes one or more alarms to the snooze mode. The alarms change to the
|
|
25
|
-
* <code>SNOOZE_DISABLED</code> state after you set them to the snooze mode.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { IoTEventsDataClient, BatchSnoozeAlarmCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import
|
|
30
|
-
* // const { IoTEventsDataClient, BatchSnoozeAlarmCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import
|
|
31
|
-
* const client = new IoTEventsDataClient(config);
|
|
32
|
-
* const command = new BatchSnoozeAlarmCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link BatchSnoozeAlarmCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link BatchSnoozeAlarmCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link IoTEventsDataClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class BatchSnoozeAlarmCommand extends $Command<
|
|
42
|
-
BatchSnoozeAlarmCommandInput,
|
|
43
|
-
BatchSnoozeAlarmCommandOutput,
|
|
44
|
-
IoTEventsDataClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: BatchSnoozeAlarmCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: IoTEventsDataClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<BatchSnoozeAlarmCommandInput, BatchSnoozeAlarmCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "IoTEventsDataClient";
|
|
69
|
-
const commandName = "BatchSnoozeAlarmCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: BatchSnoozeAlarmRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: BatchSnoozeAlarmResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: BatchSnoozeAlarmCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1BatchSnoozeAlarmCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<BatchSnoozeAlarmCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1BatchSnoozeAlarmCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient";
|
|
2
|
-
import { BatchUpdateDetectorRequest, BatchUpdateDetectorResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1BatchUpdateDetectorCommand,
|
|
5
|
-
serializeAws_restJson1BatchUpdateDetectorCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface BatchUpdateDetectorCommandInput extends BatchUpdateDetectorRequest {}
|
|
21
|
-
export interface BatchUpdateDetectorCommandOutput extends BatchUpdateDetectorResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Updates the state, variable values, and timer settings of one or more detectors
|
|
25
|
-
* (instances) of a specified detector model.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { IoTEventsDataClient, BatchUpdateDetectorCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import
|
|
30
|
-
* // const { IoTEventsDataClient, BatchUpdateDetectorCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import
|
|
31
|
-
* const client = new IoTEventsDataClient(config);
|
|
32
|
-
* const command = new BatchUpdateDetectorCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link BatchUpdateDetectorCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link BatchUpdateDetectorCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link IoTEventsDataClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class BatchUpdateDetectorCommand extends $Command<
|
|
42
|
-
BatchUpdateDetectorCommandInput,
|
|
43
|
-
BatchUpdateDetectorCommandOutput,
|
|
44
|
-
IoTEventsDataClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: BatchUpdateDetectorCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: IoTEventsDataClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<BatchUpdateDetectorCommandInput, BatchUpdateDetectorCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "IoTEventsDataClient";
|
|
69
|
-
const commandName = "BatchUpdateDetectorCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: BatchUpdateDetectorRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: BatchUpdateDetectorResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: BatchUpdateDetectorCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1BatchUpdateDetectorCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<BatchUpdateDetectorCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1BatchUpdateDetectorCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient";
|
|
2
|
-
import { DescribeAlarmRequest, DescribeAlarmResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1DescribeAlarmCommand,
|
|
5
|
-
serializeAws_restJson1DescribeAlarmCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface DescribeAlarmCommandInput extends DescribeAlarmRequest {}
|
|
21
|
-
export interface DescribeAlarmCommandOutput extends DescribeAlarmResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves information about an alarm.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { IoTEventsDataClient, DescribeAlarmCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import
|
|
29
|
-
* // const { IoTEventsDataClient, DescribeAlarmCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import
|
|
30
|
-
* const client = new IoTEventsDataClient(config);
|
|
31
|
-
* const command = new DescribeAlarmCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link DescribeAlarmCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link DescribeAlarmCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link IoTEventsDataClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class DescribeAlarmCommand extends $Command<
|
|
41
|
-
DescribeAlarmCommandInput,
|
|
42
|
-
DescribeAlarmCommandOutput,
|
|
43
|
-
IoTEventsDataClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: DescribeAlarmCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: IoTEventsDataClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<DescribeAlarmCommandInput, DescribeAlarmCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "IoTEventsDataClient";
|
|
68
|
-
const commandName = "DescribeAlarmCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: DescribeAlarmRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: DescribeAlarmResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: DescribeAlarmCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_restJson1DescribeAlarmCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeAlarmCommandOutput> {
|
|
89
|
-
return deserializeAws_restJson1DescribeAlarmCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient";
|
|
2
|
-
import { DescribeDetectorRequest, DescribeDetectorResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1DescribeDetectorCommand,
|
|
5
|
-
serializeAws_restJson1DescribeDetectorCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface DescribeDetectorCommandInput extends DescribeDetectorRequest {}
|
|
21
|
-
export interface DescribeDetectorCommandOutput extends DescribeDetectorResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Returns information about the specified detector (instance).</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { IoTEventsDataClient, DescribeDetectorCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import
|
|
29
|
-
* // const { IoTEventsDataClient, DescribeDetectorCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import
|
|
30
|
-
* const client = new IoTEventsDataClient(config);
|
|
31
|
-
* const command = new DescribeDetectorCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link DescribeDetectorCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link DescribeDetectorCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link IoTEventsDataClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class DescribeDetectorCommand extends $Command<
|
|
41
|
-
DescribeDetectorCommandInput,
|
|
42
|
-
DescribeDetectorCommandOutput,
|
|
43
|
-
IoTEventsDataClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: DescribeDetectorCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: IoTEventsDataClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<DescribeDetectorCommandInput, DescribeDetectorCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "IoTEventsDataClient";
|
|
68
|
-
const commandName = "DescribeDetectorCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: DescribeDetectorRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: DescribeDetectorResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: DescribeDetectorCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_restJson1DescribeDetectorCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeDetectorCommandOutput> {
|
|
89
|
-
return deserializeAws_restJson1DescribeDetectorCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient";
|
|
2
|
-
import { ListAlarmsRequest, ListAlarmsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1ListAlarmsCommand,
|
|
5
|
-
serializeAws_restJson1ListAlarmsCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface ListAlarmsCommandInput extends ListAlarmsRequest {}
|
|
21
|
-
export interface ListAlarmsCommandOutput extends ListAlarmsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Lists one or more alarms. The operation returns only the metadata associated with each
|
|
25
|
-
* alarm.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { IoTEventsDataClient, ListAlarmsCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import
|
|
30
|
-
* // const { IoTEventsDataClient, ListAlarmsCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import
|
|
31
|
-
* const client = new IoTEventsDataClient(config);
|
|
32
|
-
* const command = new ListAlarmsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListAlarmsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListAlarmsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link IoTEventsDataClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListAlarmsCommand extends $Command<
|
|
42
|
-
ListAlarmsCommandInput,
|
|
43
|
-
ListAlarmsCommandOutput,
|
|
44
|
-
IoTEventsDataClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListAlarmsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: IoTEventsDataClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListAlarmsCommandInput, ListAlarmsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "IoTEventsDataClient";
|
|
69
|
-
const commandName = "ListAlarmsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListAlarmsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListAlarmsResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListAlarmsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListAlarmsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListAlarmsCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListAlarmsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { IoTEventsDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsDataClient";
|
|
2
|
-
import { ListDetectorsRequest, ListDetectorsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_restJson1ListDetectorsCommand,
|
|
5
|
-
serializeAws_restJson1ListDetectorsCommand,
|
|
6
|
-
} from "../protocols/Aws_restJson1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface ListDetectorsCommandInput extends ListDetectorsRequest {}
|
|
21
|
-
export interface ListDetectorsCommandOutput extends ListDetectorsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Lists detectors (the instances of a detector model).</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { IoTEventsDataClient, ListDetectorsCommand } from "@aws-sdk/client-iot-events-data"; // ES Modules import
|
|
29
|
-
* // const { IoTEventsDataClient, ListDetectorsCommand } = require("@aws-sdk/client-iot-events-data"); // CommonJS import
|
|
30
|
-
* const client = new IoTEventsDataClient(config);
|
|
31
|
-
* const command = new ListDetectorsCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link ListDetectorsCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link ListDetectorsCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link IoTEventsDataClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class ListDetectorsCommand extends $Command<
|
|
41
|
-
ListDetectorsCommandInput,
|
|
42
|
-
ListDetectorsCommandOutput,
|
|
43
|
-
IoTEventsDataClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: ListDetectorsCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: IoTEventsDataClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<ListDetectorsCommandInput, ListDetectorsCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "IoTEventsDataClient";
|
|
68
|
-
const commandName = "ListDetectorsCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: ListDetectorsRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: ListDetectorsResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: ListDetectorsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_restJson1ListDetectorsCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListDetectorsCommandOutput> {
|
|
89
|
-
return deserializeAws_restJson1ListDetectorsCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IoTEventsData.js","sourceRoot":"","sources":["../../IoTEventsData.ts"],"names":[],"mappings":";;;AAAA,+DAA4D;AAC5D,0FAIiD;AACjD,kFAI6C;AAC7C,gFAI4C;AAC5C,8EAI2C;AAC3C,8EAI2C;AAC3C,gFAI4C;AAC5C,sFAI+C;AAC/C,0EAIyC;AACzC,gFAI4C;AAC5C,oEAAkH;AAClH,0EAIyC;AAGzC;;;;;;GAMG;AACH,MAAa,aAAc,SAAQ,yCAAmB;IAkB7C,qBAAqB,CAC1B,IAAuC,EACvC,WAAoG,EACpG,EAAkE;QAElE,MAAM,OAAO,GAAG,IAAI,2DAA4B,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;YACrC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;SACjC;aAAM,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE;YACnC,IAAI,OAAO,WAAW,KAAK,QAAQ;gBAAE,MAAM,IAAI,KAAK,CAAC,+BAA+B,OAAO,WAAW,EAAE,CAAC,CAAC;YAC1G,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SAC3C;aAAM;YACL,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;SACxC;IACH,CAAC;IAmBM,iBAAiB,CACtB,IAAmC,EACnC,WAAgG,EAChG,EAA8D;QAE9D,MAAM,OAAO,GAAG,IAAI,mDAAwB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;YACrC,IAAI,CAAC,IAAI,CAA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