@aws-sdk/client-iot-events 3.186.0 → 3.190.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 (38) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/IoTEvents.js +106 -113
  3. package/dist-es/IoTEventsClient.js +22 -28
  4. package/dist-es/commands/CreateAlarmModelCommand.js +21 -28
  5. package/dist-es/commands/CreateDetectorModelCommand.js +21 -28
  6. package/dist-es/commands/CreateInputCommand.js +21 -28
  7. package/dist-es/commands/DeleteAlarmModelCommand.js +21 -28
  8. package/dist-es/commands/DeleteDetectorModelCommand.js +21 -28
  9. package/dist-es/commands/DeleteInputCommand.js +21 -28
  10. package/dist-es/commands/DescribeAlarmModelCommand.js +21 -28
  11. package/dist-es/commands/DescribeDetectorModelAnalysisCommand.js +21 -28
  12. package/dist-es/commands/DescribeDetectorModelCommand.js +21 -28
  13. package/dist-es/commands/DescribeInputCommand.js +21 -28
  14. package/dist-es/commands/DescribeLoggingOptionsCommand.js +21 -28
  15. package/dist-es/commands/GetDetectorModelAnalysisResultsCommand.js +21 -28
  16. package/dist-es/commands/ListAlarmModelVersionsCommand.js +21 -28
  17. package/dist-es/commands/ListAlarmModelsCommand.js +21 -28
  18. package/dist-es/commands/ListDetectorModelVersionsCommand.js +21 -28
  19. package/dist-es/commands/ListDetectorModelsCommand.js +21 -28
  20. package/dist-es/commands/ListInputRoutingsCommand.js +21 -28
  21. package/dist-es/commands/ListInputsCommand.js +21 -28
  22. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  23. package/dist-es/commands/PutLoggingOptionsCommand.js +22 -29
  24. package/dist-es/commands/StartDetectorModelAnalysisCommand.js +21 -28
  25. package/dist-es/commands/TagResourceCommand.js +21 -28
  26. package/dist-es/commands/UntagResourceCommand.js +21 -28
  27. package/dist-es/commands/UpdateAlarmModelCommand.js +21 -28
  28. package/dist-es/commands/UpdateDetectorModelCommand.js +21 -28
  29. package/dist-es/commands/UpdateInputCommand.js +21 -28
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/IoTEventsServiceException.js +5 -10
  32. package/dist-es/models/models_0.js +440 -215
  33. package/dist-es/protocols/Aws_restJson1.js +2437 -3082
  34. package/dist-es/runtimeConfig.browser.js +26 -12
  35. package/dist-es/runtimeConfig.js +30 -12
  36. package/dist-es/runtimeConfig.native.js +8 -5
  37. package/dist-es/runtimeConfig.shared.js +8 -11
  38. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetDetectorModelAnalysisResultsRequestFilterSensitiveLog, GetDetectorModelAnalysisResultsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetDetectorModelAnalysisResultsCommand, serializeAws_restJson1GetDetectorModelAnalysisResultsCommand, } from "../protocols/Aws_restJson1";
6
- var GetDetectorModelAnalysisResultsCommand = (function (_super) {
7
- __extends(GetDetectorModelAnalysisResultsCommand, _super);
8
- function GetDetectorModelAnalysisResultsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetDetectorModelAnalysisResultsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetDetectorModelAnalysisResultsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "GetDetectorModelAnalysisResultsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "GetDetectorModelAnalysisResultsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetDetectorModelAnalysisResultsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetDetectorModelAnalysisResultsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetDetectorModelAnalysisResultsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetDetectorModelAnalysisResultsCommand(input, context);
33
- };
34
- GetDetectorModelAnalysisResultsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetDetectorModelAnalysisResultsCommand(output, context);
36
- };
37
- return GetDetectorModelAnalysisResultsCommand;
38
- }($Command));
39
- export { GetDetectorModelAnalysisResultsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListAlarmModelVersionsRequestFilterSensitiveLog, ListAlarmModelVersionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAlarmModelVersionsCommand, serializeAws_restJson1ListAlarmModelVersionsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAlarmModelVersionsCommand = (function (_super) {
7
- __extends(ListAlarmModelVersionsCommand, _super);
8
- function ListAlarmModelVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAlarmModelVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAlarmModelVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "ListAlarmModelVersionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "ListAlarmModelVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAlarmModelVersionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAlarmModelVersionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAlarmModelVersionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListAlarmModelVersionsCommand(input, context);
33
- };
34
- ListAlarmModelVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAlarmModelVersionsCommand(output, context);
36
- };
37
- return ListAlarmModelVersionsCommand;
38
- }($Command));
39
- export { ListAlarmModelVersionsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListAlarmModelsRequestFilterSensitiveLog, ListAlarmModelsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListAlarmModelsCommand, serializeAws_restJson1ListAlarmModelsCommand, } from "../protocols/Aws_restJson1";
6
- var ListAlarmModelsCommand = (function (_super) {
7
- __extends(ListAlarmModelsCommand, _super);
8
- function ListAlarmModelsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListAlarmModelsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListAlarmModelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "ListAlarmModelsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "ListAlarmModelsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListAlarmModelsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListAlarmModelsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListAlarmModelsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListAlarmModelsCommand(input, context);
33
- };
34
- ListAlarmModelsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListAlarmModelsCommand(output, context);
36
- };
37
- return ListAlarmModelsCommand;
38
- }($Command));
39
- export { ListAlarmModelsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListDetectorModelVersionsRequestFilterSensitiveLog, ListDetectorModelVersionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListDetectorModelVersionsCommand, serializeAws_restJson1ListDetectorModelVersionsCommand, } from "../protocols/Aws_restJson1";
6
- var ListDetectorModelVersionsCommand = (function (_super) {
7
- __extends(ListDetectorModelVersionsCommand, _super);
8
- function ListDetectorModelVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDetectorModelVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDetectorModelVersionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "ListDetectorModelVersionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "ListDetectorModelVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDetectorModelVersionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDetectorModelVersionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDetectorModelVersionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListDetectorModelVersionsCommand(input, context);
33
- };
34
- ListDetectorModelVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListDetectorModelVersionsCommand(output, context);
36
- };
37
- return ListDetectorModelVersionsCommand;
38
- }($Command));
39
- export { ListDetectorModelVersionsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListDetectorModelsRequestFilterSensitiveLog, ListDetectorModelsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListDetectorModelsCommand, serializeAws_restJson1ListDetectorModelsCommand, } from "../protocols/Aws_restJson1";
6
- var ListDetectorModelsCommand = (function (_super) {
7
- __extends(ListDetectorModelsCommand, _super);
8
- function ListDetectorModelsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDetectorModelsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDetectorModelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "ListDetectorModelsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "ListDetectorModelsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDetectorModelsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDetectorModelsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDetectorModelsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListDetectorModelsCommand(input, context);
33
- };
34
- ListDetectorModelsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListDetectorModelsCommand(output, context);
36
- };
37
- return ListDetectorModelsCommand;
38
- }($Command));
39
- export { ListDetectorModelsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListInputRoutingsRequestFilterSensitiveLog, ListInputRoutingsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListInputRoutingsCommand, serializeAws_restJson1ListInputRoutingsCommand, } from "../protocols/Aws_restJson1";
6
- var ListInputRoutingsCommand = (function (_super) {
7
- __extends(ListInputRoutingsCommand, _super);
8
- function ListInputRoutingsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListInputRoutingsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListInputRoutingsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "ListInputRoutingsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "ListInputRoutingsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListInputRoutingsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListInputRoutingsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListInputRoutingsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListInputRoutingsCommand(input, context);
33
- };
34
- ListInputRoutingsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListInputRoutingsCommand(output, context);
36
- };
37
- return ListInputRoutingsCommand;
38
- }($Command));
39
- export { ListInputRoutingsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListInputsRequestFilterSensitiveLog, ListInputsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListInputsCommand, serializeAws_restJson1ListInputsCommand, } from "../protocols/Aws_restJson1";
6
- var ListInputsCommand = (function (_super) {
7
- __extends(ListInputsCommand, _super);
8
- function ListInputsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListInputsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListInputsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "ListInputsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "ListInputsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListInputsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListInputsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListInputsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListInputsCommand(input, context);
33
- };
34
- ListInputsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListInputsCommand(output, context);
36
- };
37
- return ListInputsCommand;
38
- }($Command));
39
- export { ListInputsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "ListTagsForResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { PutLoggingOptionsRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1PutLoggingOptionsCommand, serializeAws_restJson1PutLoggingOptionsCommand, } from "../protocols/Aws_restJson1";
6
- var PutLoggingOptionsCommand = (function (_super) {
7
- __extends(PutLoggingOptionsCommand, _super);
8
- function PutLoggingOptionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutLoggingOptionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutLoggingOptionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "PutLoggingOptionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "PutLoggingOptionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutLoggingOptionsRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutLoggingOptionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1PutLoggingOptionsCommand(input, context);
33
- };
34
- PutLoggingOptionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1PutLoggingOptionsCommand(output, context);
36
- };
37
- return PutLoggingOptionsCommand;
38
- }($Command));
39
- export { PutLoggingOptionsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StartDetectorModelAnalysisRequestFilterSensitiveLog, StartDetectorModelAnalysisResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1StartDetectorModelAnalysisCommand, serializeAws_restJson1StartDetectorModelAnalysisCommand, } from "../protocols/Aws_restJson1";
6
- var StartDetectorModelAnalysisCommand = (function (_super) {
7
- __extends(StartDetectorModelAnalysisCommand, _super);
8
- function StartDetectorModelAnalysisCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartDetectorModelAnalysisCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartDetectorModelAnalysisCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IoTEventsClient";
18
- var commandName = "StartDetectorModelAnalysisCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IoTEventsClient";
15
+ const commandName = "StartDetectorModelAnalysisCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartDetectorModelAnalysisRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartDetectorModelAnalysisResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartDetectorModelAnalysisCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1StartDetectorModelAnalysisCommand(input, context);
33
- };
34
- StartDetectorModelAnalysisCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1StartDetectorModelAnalysisCommand(output, context);
36
- };
37
- return StartDetectorModelAnalysisCommand;
38
- }($Command));
39
- export { StartDetectorModelAnalysisCommand };
31
+ }
32
+ }