@aws-sdk/client-iot-events 3.183.0 → 3.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/IoTEvents.js +113 -106
  4. package/dist-es/IoTEventsClient.js +28 -22
  5. package/dist-es/commands/CreateAlarmModelCommand.js +28 -21
  6. package/dist-es/commands/CreateDetectorModelCommand.js +28 -21
  7. package/dist-es/commands/CreateInputCommand.js +28 -21
  8. package/dist-es/commands/DeleteAlarmModelCommand.js +28 -21
  9. package/dist-es/commands/DeleteDetectorModelCommand.js +28 -21
  10. package/dist-es/commands/DeleteInputCommand.js +28 -21
  11. package/dist-es/commands/DescribeAlarmModelCommand.js +28 -21
  12. package/dist-es/commands/DescribeDetectorModelAnalysisCommand.js +28 -21
  13. package/dist-es/commands/DescribeDetectorModelCommand.js +28 -21
  14. package/dist-es/commands/DescribeInputCommand.js +28 -21
  15. package/dist-es/commands/DescribeLoggingOptionsCommand.js +28 -21
  16. package/dist-es/commands/GetDetectorModelAnalysisResultsCommand.js +28 -21
  17. package/dist-es/commands/ListAlarmModelVersionsCommand.js +28 -21
  18. package/dist-es/commands/ListAlarmModelsCommand.js +28 -21
  19. package/dist-es/commands/ListDetectorModelVersionsCommand.js +28 -21
  20. package/dist-es/commands/ListDetectorModelsCommand.js +28 -21
  21. package/dist-es/commands/ListInputRoutingsCommand.js +28 -21
  22. package/dist-es/commands/ListInputsCommand.js +28 -21
  23. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  24. package/dist-es/commands/PutLoggingOptionsCommand.js +29 -22
  25. package/dist-es/commands/StartDetectorModelAnalysisCommand.js +28 -21
  26. package/dist-es/commands/TagResourceCommand.js +28 -21
  27. package/dist-es/commands/UntagResourceCommand.js +28 -21
  28. package/dist-es/commands/UpdateAlarmModelCommand.js +28 -21
  29. package/dist-es/commands/UpdateDetectorModelCommand.js +28 -21
  30. package/dist-es/commands/UpdateInputCommand.js +28 -21
  31. package/dist-es/endpoints.js +8 -8
  32. package/dist-es/models/IoTEventsServiceException.js +10 -5
  33. package/dist-es/models/models_0.js +215 -440
  34. package/dist-es/protocols/Aws_restJson1.js +3082 -2437
  35. package/dist-es/runtimeConfig.browser.js +12 -26
  36. package/dist-es/runtimeConfig.js +12 -30
  37. package/dist-es/runtimeConfig.native.js +5 -8
  38. package/dist-es/runtimeConfig.shared.js +11 -8
  39. package/package.json +33 -33
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateDetectorModelRequestFilterSensitiveLog, CreateDetectorModelResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateDetectorModelCommand, serializeAws_restJson1CreateDetectorModelCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateDetectorModelCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateDetectorModelCommand = (function (_super) {
7
+ __extends(CreateDetectorModelCommand, _super);
8
+ function CreateDetectorModelCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateDetectorModelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "CreateDetectorModelCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "CreateDetectorModelCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateDetectorModelRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateDetectorModelResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateDetectorModelCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateDetectorModelCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateDetectorModelCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateDetectorModelCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateDetectorModelCommand;
38
+ }($Command));
39
+ export { CreateDetectorModelCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateInputRequestFilterSensitiveLog, CreateInputResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateInputCommand, serializeAws_restJson1CreateInputCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateInputCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateInputCommand = (function (_super) {
7
+ __extends(CreateInputCommand, _super);
8
+ function CreateInputCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateInputCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "CreateInputCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "CreateInputCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateInputRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateInputResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateInputCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateInputCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateInputCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateInputCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateInputCommand;
38
+ }($Command));
39
+ export { CreateInputCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteAlarmModelRequestFilterSensitiveLog, DeleteAlarmModelResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteAlarmModelCommand, serializeAws_restJson1DeleteAlarmModelCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteAlarmModelCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteAlarmModelCommand = (function (_super) {
7
+ __extends(DeleteAlarmModelCommand, _super);
8
+ function DeleteAlarmModelCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteAlarmModelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "DeleteAlarmModelCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "DeleteAlarmModelCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteAlarmModelRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteAlarmModelResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteAlarmModelCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteAlarmModelCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteAlarmModelCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteAlarmModelCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteAlarmModelCommand;
38
+ }($Command));
39
+ export { DeleteAlarmModelCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteDetectorModelRequestFilterSensitiveLog, DeleteDetectorModelResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteDetectorModelCommand, serializeAws_restJson1DeleteDetectorModelCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteDetectorModelCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteDetectorModelCommand = (function (_super) {
7
+ __extends(DeleteDetectorModelCommand, _super);
8
+ function DeleteDetectorModelCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteDetectorModelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "DeleteDetectorModelCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "DeleteDetectorModelCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteDetectorModelRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteDetectorModelResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteDetectorModelCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteDetectorModelCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteDetectorModelCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteDetectorModelCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteDetectorModelCommand;
38
+ }($Command));
39
+ export { DeleteDetectorModelCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteInputRequestFilterSensitiveLog, DeleteInputResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteInputCommand, serializeAws_restJson1DeleteInputCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteInputCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteInputCommand = (function (_super) {
7
+ __extends(DeleteInputCommand, _super);
8
+ function DeleteInputCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteInputCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "DeleteInputCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "DeleteInputCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteInputRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteInputResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteInputCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteInputCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteInputCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteInputCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteInputCommand;
38
+ }($Command));
39
+ export { DeleteInputCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeAlarmModelRequestFilterSensitiveLog, DescribeAlarmModelResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeAlarmModelCommand, serializeAws_restJson1DescribeAlarmModelCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeAlarmModelCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeAlarmModelCommand = (function (_super) {
7
+ __extends(DescribeAlarmModelCommand, _super);
8
+ function DescribeAlarmModelCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeAlarmModelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "DescribeAlarmModelCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "DescribeAlarmModelCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeAlarmModelRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeAlarmModelResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeAlarmModelCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeAlarmModelCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeAlarmModelCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeAlarmModelCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeAlarmModelCommand;
38
+ }($Command));
39
+ export { DescribeAlarmModelCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeDetectorModelAnalysisRequestFilterSensitiveLog, DescribeDetectorModelAnalysisResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeDetectorModelAnalysisCommand, serializeAws_restJson1DescribeDetectorModelAnalysisCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeDetectorModelAnalysisCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeDetectorModelAnalysisCommand = (function (_super) {
7
+ __extends(DescribeDetectorModelAnalysisCommand, _super);
8
+ function DescribeDetectorModelAnalysisCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeDetectorModelAnalysisCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "DescribeDetectorModelAnalysisCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "DescribeDetectorModelAnalysisCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeDetectorModelAnalysisRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeDetectorModelAnalysisResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeDetectorModelAnalysisCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeDetectorModelAnalysisCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeDetectorModelAnalysisCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeDetectorModelAnalysisCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeDetectorModelAnalysisCommand;
38
+ }($Command));
39
+ export { DescribeDetectorModelAnalysisCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeDetectorModelRequestFilterSensitiveLog, DescribeDetectorModelResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeDetectorModelCommand, serializeAws_restJson1DescribeDetectorModelCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeDetectorModelCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeDetectorModelCommand = (function (_super) {
7
+ __extends(DescribeDetectorModelCommand, _super);
8
+ function DescribeDetectorModelCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeDetectorModelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "DescribeDetectorModelCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "DescribeDetectorModelCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeDetectorModelRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeDetectorModelResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeDetectorModelCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeDetectorModelCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeDetectorModelCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeDetectorModelCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeDetectorModelCommand;
38
+ }($Command));
39
+ export { DescribeDetectorModelCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeInputRequestFilterSensitiveLog, DescribeInputResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeInputCommand, serializeAws_restJson1DescribeInputCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeInputCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeInputCommand = (function (_super) {
7
+ __extends(DescribeInputCommand, _super);
8
+ function DescribeInputCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeInputCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "DescribeInputCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "DescribeInputCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeInputRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeInputResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeInputCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeInputCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeInputCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeInputCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeInputCommand;
38
+ }($Command));
39
+ export { DescribeInputCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeLoggingOptionsRequestFilterSensitiveLog, DescribeLoggingOptionsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DescribeLoggingOptionsCommand, serializeAws_restJson1DescribeLoggingOptionsCommand, } from "../protocols/Aws_restJson1";
5
- export class DescribeLoggingOptionsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeLoggingOptionsCommand = (function (_super) {
7
+ __extends(DescribeLoggingOptionsCommand, _super);
8
+ function DescribeLoggingOptionsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeLoggingOptionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "IoTEventsClient";
15
- const commandName = "DescribeLoggingOptionsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTEventsClient";
18
+ var commandName = "DescribeLoggingOptionsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeLoggingOptionsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeLoggingOptionsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeLoggingOptionsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DescribeLoggingOptionsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeLoggingOptionsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DescribeLoggingOptionsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeLoggingOptionsCommand;
38
+ }($Command));
39
+ export { DescribeLoggingOptionsCommand };