@aws-sdk/client-application-insights 3.186.0 → 3.188.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 (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/ApplicationInsights.js +110 -117
  3. package/dist-es/ApplicationInsightsClient.js +22 -28
  4. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  5. package/dist-es/commands/CreateComponentCommand.js +21 -28
  6. package/dist-es/commands/CreateLogPatternCommand.js +21 -28
  7. package/dist-es/commands/DeleteApplicationCommand.js +21 -28
  8. package/dist-es/commands/DeleteComponentCommand.js +21 -28
  9. package/dist-es/commands/DeleteLogPatternCommand.js +21 -28
  10. package/dist-es/commands/DescribeApplicationCommand.js +21 -28
  11. package/dist-es/commands/DescribeComponentCommand.js +21 -28
  12. package/dist-es/commands/DescribeComponentConfigurationCommand.js +21 -28
  13. package/dist-es/commands/DescribeComponentConfigurationRecommendationCommand.js +21 -28
  14. package/dist-es/commands/DescribeLogPatternCommand.js +21 -28
  15. package/dist-es/commands/DescribeObservationCommand.js +21 -28
  16. package/dist-es/commands/DescribeProblemCommand.js +21 -28
  17. package/dist-es/commands/DescribeProblemObservationsCommand.js +21 -28
  18. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  19. package/dist-es/commands/ListComponentsCommand.js +21 -28
  20. package/dist-es/commands/ListConfigurationHistoryCommand.js +21 -28
  21. package/dist-es/commands/ListLogPatternSetsCommand.js +21 -28
  22. package/dist-es/commands/ListLogPatternsCommand.js +21 -28
  23. package/dist-es/commands/ListProblemsCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.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/UpdateApplicationCommand.js +21 -28
  28. package/dist-es/commands/UpdateComponentCommand.js +21 -28
  29. package/dist-es/commands/UpdateComponentConfigurationCommand.js +21 -28
  30. package/dist-es/commands/UpdateLogPatternCommand.js +21 -28
  31. package/dist-es/endpoints.js +8 -8
  32. package/dist-es/models/ApplicationInsightsServiceException.js +5 -10
  33. package/dist-es/models/models_0.js +283 -160
  34. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  35. package/dist-es/pagination/ListComponentsPaginator.js +25 -68
  36. package/dist-es/pagination/ListConfigurationHistoryPaginator.js +25 -68
  37. package/dist-es/pagination/ListLogPatternSetsPaginator.js +25 -68
  38. package/dist-es/pagination/ListLogPatternsPaginator.js +25 -68
  39. package/dist-es/pagination/ListProblemsPaginator.js +25 -68
  40. package/dist-es/protocols/Aws_json1_1.js +1705 -2210
  41. package/dist-es/runtimeConfig.browser.js +26 -12
  42. package/dist-es/runtimeConfig.js +30 -12
  43. package/dist-es/runtimeConfig.native.js +8 -5
  44. package/dist-es/runtimeConfig.shared.js +8 -11
  45. 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 { DescribeObservationRequestFilterSensitiveLog, DescribeObservationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeObservationCommand, serializeAws_json1_1DescribeObservationCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeObservationCommand = (function (_super) {
7
- __extends(DescribeObservationCommand, _super);
8
- function DescribeObservationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeObservationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeObservationCommand.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 = "ApplicationInsightsClient";
18
- var commandName = "DescribeObservationCommand";
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 = "ApplicationInsightsClient";
15
+ const commandName = "DescribeObservationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeObservationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeObservationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeObservationCommand.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_json1_1DescribeObservationCommand(input, context);
33
- };
34
- DescribeObservationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeObservationCommand(output, context);
36
- };
37
- return DescribeObservationCommand;
38
- }($Command));
39
- export { DescribeObservationCommand };
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 { DescribeProblemRequestFilterSensitiveLog, DescribeProblemResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeProblemCommand, serializeAws_json1_1DescribeProblemCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeProblemCommand = (function (_super) {
7
- __extends(DescribeProblemCommand, _super);
8
- function DescribeProblemCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeProblemCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeProblemCommand.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 = "ApplicationInsightsClient";
18
- var commandName = "DescribeProblemCommand";
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 = "ApplicationInsightsClient";
15
+ const commandName = "DescribeProblemCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeProblemRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeProblemResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeProblemCommand.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_json1_1DescribeProblemCommand(input, context);
33
- };
34
- DescribeProblemCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeProblemCommand(output, context);
36
- };
37
- return DescribeProblemCommand;
38
- }($Command));
39
- export { DescribeProblemCommand };
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 { DescribeProblemObservationsRequestFilterSensitiveLog, DescribeProblemObservationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeProblemObservationsCommand, serializeAws_json1_1DescribeProblemObservationsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeProblemObservationsCommand = (function (_super) {
7
- __extends(DescribeProblemObservationsCommand, _super);
8
- function DescribeProblemObservationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeProblemObservationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeProblemObservationsCommand.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 = "ApplicationInsightsClient";
18
- var commandName = "DescribeProblemObservationsCommand";
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 = "ApplicationInsightsClient";
15
+ const commandName = "DescribeProblemObservationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeProblemObservationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeProblemObservationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeProblemObservationsCommand.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_json1_1DescribeProblemObservationsCommand(input, context);
33
- };
34
- DescribeProblemObservationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeProblemObservationsCommand(output, context);
36
- };
37
- return DescribeProblemObservationsCommand;
38
- }($Command));
39
- export { DescribeProblemObservationsCommand };
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 { ListApplicationsRequestFilterSensitiveLog, ListApplicationsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListApplicationsCommand, serializeAws_json1_1ListApplicationsCommand, } from "../protocols/Aws_json1_1";
6
- var ListApplicationsCommand = (function (_super) {
7
- __extends(ListApplicationsCommand, _super);
8
- function ListApplicationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListApplicationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListApplicationsCommand.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 = "ApplicationInsightsClient";
18
- var commandName = "ListApplicationsCommand";
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 = "ApplicationInsightsClient";
15
+ const commandName = "ListApplicationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListApplicationsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListApplicationsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListApplicationsCommand.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_json1_1ListApplicationsCommand(input, context);
33
- };
34
- ListApplicationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListApplicationsCommand(output, context);
36
- };
37
- return ListApplicationsCommand;
38
- }($Command));
39
- export { ListApplicationsCommand };
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 { ListComponentsRequestFilterSensitiveLog, ListComponentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListComponentsCommand, serializeAws_json1_1ListComponentsCommand, } from "../protocols/Aws_json1_1";
6
- var ListComponentsCommand = (function (_super) {
7
- __extends(ListComponentsCommand, _super);
8
- function ListComponentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListComponentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListComponentsCommand.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 = "ApplicationInsightsClient";
18
- var commandName = "ListComponentsCommand";
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 = "ApplicationInsightsClient";
15
+ const commandName = "ListComponentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListComponentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListComponentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListComponentsCommand.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_json1_1ListComponentsCommand(input, context);
33
- };
34
- ListComponentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListComponentsCommand(output, context);
36
- };
37
- return ListComponentsCommand;
38
- }($Command));
39
- export { ListComponentsCommand };
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 { ListConfigurationHistoryRequestFilterSensitiveLog, ListConfigurationHistoryResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListConfigurationHistoryCommand, serializeAws_json1_1ListConfigurationHistoryCommand, } from "../protocols/Aws_json1_1";
6
- var ListConfigurationHistoryCommand = (function (_super) {
7
- __extends(ListConfigurationHistoryCommand, _super);
8
- function ListConfigurationHistoryCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListConfigurationHistoryCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListConfigurationHistoryCommand.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 = "ApplicationInsightsClient";
18
- var commandName = "ListConfigurationHistoryCommand";
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 = "ApplicationInsightsClient";
15
+ const commandName = "ListConfigurationHistoryCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListConfigurationHistoryRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListConfigurationHistoryResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListConfigurationHistoryCommand.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_json1_1ListConfigurationHistoryCommand(input, context);
33
- };
34
- ListConfigurationHistoryCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListConfigurationHistoryCommand(output, context);
36
- };
37
- return ListConfigurationHistoryCommand;
38
- }($Command));
39
- export { ListConfigurationHistoryCommand };
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 { ListLogPatternSetsRequestFilterSensitiveLog, ListLogPatternSetsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListLogPatternSetsCommand, serializeAws_json1_1ListLogPatternSetsCommand, } from "../protocols/Aws_json1_1";
6
- var ListLogPatternSetsCommand = (function (_super) {
7
- __extends(ListLogPatternSetsCommand, _super);
8
- function ListLogPatternSetsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListLogPatternSetsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListLogPatternSetsCommand.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 = "ApplicationInsightsClient";
18
- var commandName = "ListLogPatternSetsCommand";
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 = "ApplicationInsightsClient";
15
+ const commandName = "ListLogPatternSetsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListLogPatternSetsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListLogPatternSetsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListLogPatternSetsCommand.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_json1_1ListLogPatternSetsCommand(input, context);
33
- };
34
- ListLogPatternSetsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListLogPatternSetsCommand(output, context);
36
- };
37
- return ListLogPatternSetsCommand;
38
- }($Command));
39
- export { ListLogPatternSetsCommand };
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 { ListLogPatternsRequestFilterSensitiveLog, ListLogPatternsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListLogPatternsCommand, serializeAws_json1_1ListLogPatternsCommand, } from "../protocols/Aws_json1_1";
6
- var ListLogPatternsCommand = (function (_super) {
7
- __extends(ListLogPatternsCommand, _super);
8
- function ListLogPatternsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListLogPatternsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListLogPatternsCommand.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 = "ApplicationInsightsClient";
18
- var commandName = "ListLogPatternsCommand";
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 = "ApplicationInsightsClient";
15
+ const commandName = "ListLogPatternsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListLogPatternsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListLogPatternsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListLogPatternsCommand.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_json1_1ListLogPatternsCommand(input, context);
33
- };
34
- ListLogPatternsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListLogPatternsCommand(output, context);
36
- };
37
- return ListLogPatternsCommand;
38
- }($Command));
39
- export { ListLogPatternsCommand };
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 { ListProblemsRequestFilterSensitiveLog, ListProblemsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListProblemsCommand, serializeAws_json1_1ListProblemsCommand, } from "../protocols/Aws_json1_1";
6
- var ListProblemsCommand = (function (_super) {
7
- __extends(ListProblemsCommand, _super);
8
- function ListProblemsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListProblemsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListProblemsCommand.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 = "ApplicationInsightsClient";
18
- var commandName = "ListProblemsCommand";
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 = "ApplicationInsightsClient";
15
+ const commandName = "ListProblemsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListProblemsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListProblemsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListProblemsCommand.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_json1_1ListProblemsCommand(input, context);
33
- };
34
- ListProblemsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListProblemsCommand(output, context);
36
- };
37
- return ListProblemsCommand;
38
- }($Command));
39
- export { ListProblemsCommand };
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_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
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 = "ApplicationInsightsClient";
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 = "ApplicationInsightsClient";
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_json1_1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
31
+ }
32
+ }