@aws-sdk/client-application-insights 3.378.0 → 3.380.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 (74) hide show
  1. package/README.md +55 -7
  2. package/dist-cjs/ApplicationInsights.js +12 -0
  3. package/dist-cjs/commands/AddWorkloadCommand.js +46 -0
  4. package/dist-cjs/commands/DescribeWorkloadCommand.js +46 -0
  5. package/dist-cjs/commands/ListWorkloadsCommand.js +46 -0
  6. package/dist-cjs/commands/RemoveWorkloadCommand.js +46 -0
  7. package/dist-cjs/commands/UpdateProblemCommand.js +46 -0
  8. package/dist-cjs/commands/UpdateWorkloadCommand.js +46 -0
  9. package/dist-cjs/commands/index.js +6 -0
  10. package/dist-cjs/endpoint/ruleset.js +3 -3
  11. package/dist-cjs/models/models_0.js +118 -31
  12. package/dist-cjs/pagination/ListWorkloadsPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_json1_1.js +290 -2
  15. package/dist-es/ApplicationInsights.js +12 -0
  16. package/dist-es/commands/AddWorkloadCommand.js +42 -0
  17. package/dist-es/commands/DescribeWorkloadCommand.js +42 -0
  18. package/dist-es/commands/ListWorkloadsCommand.js +42 -0
  19. package/dist-es/commands/RemoveWorkloadCommand.js +42 -0
  20. package/dist-es/commands/UpdateProblemCommand.js +42 -0
  21. package/dist-es/commands/UpdateWorkloadCommand.js +42 -0
  22. package/dist-es/commands/index.js +6 -0
  23. package/dist-es/endpoint/ruleset.js +3 -3
  24. package/dist-es/models/models_0.js +114 -27
  25. package/dist-es/pagination/ListWorkloadsPaginator.js +25 -0
  26. package/dist-es/pagination/index.js +1 -0
  27. package/dist-es/protocols/Aws_json1_1.js +276 -0
  28. package/dist-types/ApplicationInsights.d.ts +42 -0
  29. package/dist-types/ApplicationInsightsClient.d.ts +8 -2
  30. package/dist-types/commands/AddWorkloadCommand.d.ts +96 -0
  31. package/dist-types/commands/CreateApplicationCommand.d.ts +3 -2
  32. package/dist-types/commands/DescribeApplicationCommand.d.ts +3 -1
  33. package/dist-types/commands/DescribeComponentCommand.d.ts +3 -2
  34. package/dist-types/commands/DescribeComponentConfigurationCommand.d.ts +2 -1
  35. package/dist-types/commands/DescribeComponentConfigurationRecommendationCommand.d.ts +2 -1
  36. package/dist-types/commands/DescribeLogPatternCommand.d.ts +2 -0
  37. package/dist-types/commands/DescribeObservationCommand.d.ts +3 -2
  38. package/dist-types/commands/DescribeProblemCommand.d.ts +7 -3
  39. package/dist-types/commands/DescribeProblemObservationsCommand.d.ts +3 -2
  40. package/dist-types/commands/DescribeWorkloadCommand.d.ts +91 -0
  41. package/dist-types/commands/ListApplicationsCommand.d.ts +3 -1
  42. package/dist-types/commands/ListComponentsCommand.d.ts +3 -2
  43. package/dist-types/commands/ListConfigurationHistoryCommand.d.ts +6 -3
  44. package/dist-types/commands/ListLogPatternSetsCommand.d.ts +2 -0
  45. package/dist-types/commands/ListLogPatternsCommand.d.ts +2 -0
  46. package/dist-types/commands/ListProblemsCommand.d.ts +9 -3
  47. package/dist-types/commands/ListWorkloadsCommand.d.ts +95 -0
  48. package/dist-types/commands/RemoveWorkloadCommand.d.ts +82 -0
  49. package/dist-types/commands/UpdateApplicationCommand.d.ts +2 -1
  50. package/dist-types/commands/UpdateComponentConfigurationCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdateProblemCommand.d.ts +83 -0
  52. package/dist-types/commands/UpdateWorkloadCommand.d.ts +94 -0
  53. package/dist-types/commands/index.d.ts +6 -0
  54. package/dist-types/endpoint/EndpointParameters.d.ts +3 -0
  55. package/dist-types/index.d.ts +1 -0
  56. package/dist-types/models/models_0.d.ts +560 -67
  57. package/dist-types/pagination/ListWorkloadsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/index.d.ts +1 -0
  59. package/dist-types/protocols/Aws_json1_1.d.ts +54 -0
  60. package/dist-types/ts3.4/ApplicationInsights.d.ts +102 -0
  61. package/dist-types/ts3.4/ApplicationInsightsClient.d.ts +38 -2
  62. package/dist-types/ts3.4/commands/AddWorkloadCommand.d.ts +35 -0
  63. package/dist-types/ts3.4/commands/DescribeWorkloadCommand.d.ts +38 -0
  64. package/dist-types/ts3.4/commands/ListWorkloadsCommand.d.ts +38 -0
  65. package/dist-types/ts3.4/commands/RemoveWorkloadCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/UpdateProblemCommand.d.ts +38 -0
  67. package/dist-types/ts3.4/commands/UpdateWorkloadCommand.d.ts +38 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  69. package/dist-types/ts3.4/index.d.ts +1 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +227 -63
  71. package/dist-types/ts3.4/pagination/ListWorkloadsPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  73. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -0
  74. package/package.json +6 -6
@@ -1,5 +1,6 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { ApplicationInsightsClient } from "./ApplicationInsightsClient";
3
+ import { AddWorkloadCommand } from "./commands/AddWorkloadCommand";
3
4
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
4
5
  import { CreateComponentCommand, } from "./commands/CreateComponentCommand";
5
6
  import { CreateLogPatternCommand, } from "./commands/CreateLogPatternCommand";
@@ -14,6 +15,7 @@ import { DescribeLogPatternCommand, } from "./commands/DescribeLogPatternCommand
14
15
  import { DescribeObservationCommand, } from "./commands/DescribeObservationCommand";
15
16
  import { DescribeProblemCommand, } from "./commands/DescribeProblemCommand";
16
17
  import { DescribeProblemObservationsCommand, } from "./commands/DescribeProblemObservationsCommand";
18
+ import { DescribeWorkloadCommand, } from "./commands/DescribeWorkloadCommand";
17
19
  import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
18
20
  import { ListComponentsCommand, } from "./commands/ListComponentsCommand";
19
21
  import { ListConfigurationHistoryCommand, } from "./commands/ListConfigurationHistoryCommand";
@@ -21,13 +23,18 @@ import { ListLogPatternsCommand, } from "./commands/ListLogPatternsCommand";
21
23
  import { ListLogPatternSetsCommand, } from "./commands/ListLogPatternSetsCommand";
22
24
  import { ListProblemsCommand, } from "./commands/ListProblemsCommand";
23
25
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
26
+ import { ListWorkloadsCommand, } from "./commands/ListWorkloadsCommand";
27
+ import { RemoveWorkloadCommand, } from "./commands/RemoveWorkloadCommand";
24
28
  import { TagResourceCommand } from "./commands/TagResourceCommand";
25
29
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
26
30
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
27
31
  import { UpdateComponentCommand, } from "./commands/UpdateComponentCommand";
28
32
  import { UpdateComponentConfigurationCommand, } from "./commands/UpdateComponentConfigurationCommand";
29
33
  import { UpdateLogPatternCommand, } from "./commands/UpdateLogPatternCommand";
34
+ import { UpdateProblemCommand, } from "./commands/UpdateProblemCommand";
35
+ import { UpdateWorkloadCommand, } from "./commands/UpdateWorkloadCommand";
30
36
  const commands = {
37
+ AddWorkloadCommand,
31
38
  CreateApplicationCommand,
32
39
  CreateComponentCommand,
33
40
  CreateLogPatternCommand,
@@ -42,6 +49,7 @@ const commands = {
42
49
  DescribeObservationCommand,
43
50
  DescribeProblemCommand,
44
51
  DescribeProblemObservationsCommand,
52
+ DescribeWorkloadCommand,
45
53
  ListApplicationsCommand,
46
54
  ListComponentsCommand,
47
55
  ListConfigurationHistoryCommand,
@@ -49,12 +57,16 @@ const commands = {
49
57
  ListLogPatternSetsCommand,
50
58
  ListProblemsCommand,
51
59
  ListTagsForResourceCommand,
60
+ ListWorkloadsCommand,
61
+ RemoveWorkloadCommand,
52
62
  TagResourceCommand,
53
63
  UntagResourceCommand,
54
64
  UpdateApplicationCommand,
55
65
  UpdateComponentCommand,
56
66
  UpdateComponentConfigurationCommand,
57
67
  UpdateLogPatternCommand,
68
+ UpdateProblemCommand,
69
+ UpdateWorkloadCommand,
58
70
  };
59
71
  export class ApplicationInsights extends ApplicationInsightsClient {
60
72
  }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_AddWorkloadCommand, se_AddWorkloadCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
6
+ export class AddWorkloadCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AddWorkloadCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ApplicationInsightsClient";
25
+ const commandName = "AddWorkloadCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_AddWorkloadCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_AddWorkloadCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_DescribeWorkloadCommand, se_DescribeWorkloadCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
6
+ export class DescribeWorkloadCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeWorkloadCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ApplicationInsightsClient";
25
+ const commandName = "DescribeWorkloadCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DescribeWorkloadCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DescribeWorkloadCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_ListWorkloadsCommand, se_ListWorkloadsCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
6
+ export class ListWorkloadsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListWorkloadsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ApplicationInsightsClient";
25
+ const commandName = "ListWorkloadsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ListWorkloadsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ListWorkloadsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_RemoveWorkloadCommand, se_RemoveWorkloadCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
6
+ export class RemoveWorkloadCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, RemoveWorkloadCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ApplicationInsightsClient";
25
+ const commandName = "RemoveWorkloadCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_RemoveWorkloadCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_RemoveWorkloadCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_UpdateProblemCommand, se_UpdateProblemCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
6
+ export class UpdateProblemCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateProblemCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ApplicationInsightsClient";
25
+ const commandName = "UpdateProblemCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_UpdateProblemCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_UpdateProblemCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_UpdateWorkloadCommand, se_UpdateWorkloadCommand } from "../protocols/Aws_json1_1";
5
+ export { $Command };
6
+ export class UpdateWorkloadCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateWorkloadCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ApplicationInsightsClient";
25
+ const commandName = "UpdateWorkloadCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_UpdateWorkloadCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_UpdateWorkloadCommand(output, context);
41
+ }
42
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./AddWorkloadCommand";
1
2
  export * from "./CreateApplicationCommand";
2
3
  export * from "./CreateComponentCommand";
3
4
  export * from "./CreateLogPatternCommand";
@@ -12,6 +13,7 @@ export * from "./DescribeLogPatternCommand";
12
13
  export * from "./DescribeObservationCommand";
13
14
  export * from "./DescribeProblemCommand";
14
15
  export * from "./DescribeProblemObservationsCommand";
16
+ export * from "./DescribeWorkloadCommand";
15
17
  export * from "./ListApplicationsCommand";
16
18
  export * from "./ListComponentsCommand";
17
19
  export * from "./ListConfigurationHistoryCommand";
@@ -19,9 +21,13 @@ export * from "./ListLogPatternSetsCommand";
19
21
  export * from "./ListLogPatternsCommand";
20
22
  export * from "./ListProblemsCommand";
21
23
  export * from "./ListTagsForResourceCommand";
24
+ export * from "./ListWorkloadsCommand";
25
+ export * from "./RemoveWorkloadCommand";
22
26
  export * from "./TagResourceCommand";
23
27
  export * from "./UntagResourceCommand";
24
28
  export * from "./UpdateApplicationCommand";
25
29
  export * from "./UpdateComponentCommand";
26
30
  export * from "./UpdateComponentConfigurationCommand";
27
31
  export * from "./UpdateLogPatternCommand";
32
+ export * from "./UpdateProblemCommand";
33
+ export * from "./UpdateWorkloadCommand";
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://applicationinsights-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://applicationinsights-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://applicationinsights.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://applicationinsights.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://applicationinsights-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://applicationinsights-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://applicationinsights.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://applicationinsights.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -12,25 +12,28 @@ export class AccessDeniedException extends __BaseException {
12
12
  this.Message = opts.Message;
13
13
  }
14
14
  }
15
- export const DiscoveryType = {
16
- ACCOUNT_BASED: "ACCOUNT_BASED",
17
- RESOURCE_GROUP_BASED: "RESOURCE_GROUP_BASED",
18
- };
19
- export class BadRequestException extends __BaseException {
20
- constructor(opts) {
21
- super({
22
- name: "BadRequestException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- this.name = "BadRequestException";
27
- this.$fault = "client";
28
- Object.setPrototypeOf(this, BadRequestException.prototype);
29
- this.Message = opts.Message;
30
- }
31
- }
32
- export const GroupingType = {
33
- ACCOUNT_BASED: "ACCOUNT_BASED",
15
+ export const Tier = {
16
+ ACTIVE_DIRECTORY: "ACTIVE_DIRECTORY",
17
+ CUSTOM: "CUSTOM",
18
+ DEFAULT: "DEFAULT",
19
+ DOT_NET_CORE: "DOT_NET_CORE",
20
+ DOT_NET_WEB: "DOT_NET_WEB",
21
+ DOT_NET_WEB_TIER: "DOT_NET_WEB_TIER",
22
+ DOT_NET_WORKER: "DOT_NET_WORKER",
23
+ JAVA_JMX: "JAVA_JMX",
24
+ MYSQL: "MYSQL",
25
+ ORACLE: "ORACLE",
26
+ POSTGRESQL: "POSTGRESQL",
27
+ SAP_HANA_HIGH_AVAILABILITY: "SAP_HANA_HIGH_AVAILABILITY",
28
+ SAP_HANA_MULTI_NODE: "SAP_HANA_MULTI_NODE",
29
+ SAP_HANA_SINGLE_NODE: "SAP_HANA_SINGLE_NODE",
30
+ SAP_NETWEAVER_DISTRIBUTED: "SAP_NETWEAVER_DISTRIBUTED",
31
+ SAP_NETWEAVER_HIGH_AVAILABILITY: "SAP_NETWEAVER_HIGH_AVAILABILITY",
32
+ SAP_NETWEAVER_STANDARD: "SAP_NETWEAVER_STANDARD",
33
+ SHAREPOINT: "SHAREPOINT",
34
+ SQL_SERVER: "SQL_SERVER",
35
+ SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP: "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP",
36
+ SQL_SERVER_FAILOVER_CLUSTER_INSTANCE: "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE",
34
37
  };
35
38
  export class InternalServerException extends __BaseException {
36
39
  constructor(opts) {
@@ -71,32 +74,113 @@ export class ResourceNotFoundException extends __BaseException {
71
74
  this.Message = opts.Message;
72
75
  }
73
76
  }
74
- export class TagsAlreadyExistException extends __BaseException {
77
+ export class ValidationException extends __BaseException {
75
78
  constructor(opts) {
76
79
  super({
77
- name: "TagsAlreadyExistException",
80
+ name: "ValidationException",
78
81
  $fault: "client",
79
82
  ...opts,
80
83
  });
81
- this.name = "TagsAlreadyExistException";
84
+ this.name = "ValidationException";
82
85
  this.$fault = "client";
83
- Object.setPrototypeOf(this, TagsAlreadyExistException.prototype);
86
+ Object.setPrototypeOf(this, ValidationException.prototype);
84
87
  this.Message = opts.Message;
85
88
  }
86
89
  }
87
- export class ValidationException extends __BaseException {
90
+ export const OsType = {
91
+ LINUX: "LINUX",
92
+ WINDOWS: "WINDOWS",
93
+ };
94
+ export const DiscoveryType = {
95
+ ACCOUNT_BASED: "ACCOUNT_BASED",
96
+ RESOURCE_GROUP_BASED: "RESOURCE_GROUP_BASED",
97
+ };
98
+ export class BadRequestException extends __BaseException {
88
99
  constructor(opts) {
89
100
  super({
90
- name: "ValidationException",
101
+ name: "BadRequestException",
91
102
  $fault: "client",
92
103
  ...opts,
93
104
  });
94
- this.name = "ValidationException";
105
+ this.name = "BadRequestException";
95
106
  this.$fault = "client";
96
- Object.setPrototypeOf(this, ValidationException.prototype);
107
+ Object.setPrototypeOf(this, BadRequestException.prototype);
108
+ this.Message = opts.Message;
109
+ }
110
+ }
111
+ export const CloudWatchEventSource = {
112
+ CODE_DEPLOY: "CODE_DEPLOY",
113
+ EC2: "EC2",
114
+ HEALTH: "HEALTH",
115
+ RDS: "RDS",
116
+ };
117
+ export const ConfigurationEventResourceType = {
118
+ CLOUDFORMATION: "CLOUDFORMATION",
119
+ CLOUDWATCH_ALARM: "CLOUDWATCH_ALARM",
120
+ CLOUDWATCH_LOG: "CLOUDWATCH_LOG",
121
+ SSM_ASSOCIATION: "SSM_ASSOCIATION",
122
+ };
123
+ export const ConfigurationEventStatus = {
124
+ ERROR: "ERROR",
125
+ INFO: "INFO",
126
+ WARN: "WARN",
127
+ };
128
+ export const GroupingType = {
129
+ ACCOUNT_BASED: "ACCOUNT_BASED",
130
+ };
131
+ export class TagsAlreadyExistException extends __BaseException {
132
+ constructor(opts) {
133
+ super({
134
+ name: "TagsAlreadyExistException",
135
+ $fault: "client",
136
+ ...opts,
137
+ });
138
+ this.name = "TagsAlreadyExistException";
139
+ this.$fault = "client";
140
+ Object.setPrototypeOf(this, TagsAlreadyExistException.prototype);
97
141
  this.Message = opts.Message;
98
142
  }
99
143
  }
144
+ export const RecommendationType = {
145
+ ALL: "ALL",
146
+ INFRA_ONLY: "INFRA_ONLY",
147
+ WORKLOAD_ONLY: "WORKLOAD_ONLY",
148
+ };
149
+ export const LogFilter = {
150
+ ERROR: "ERROR",
151
+ INFO: "INFO",
152
+ WARN: "WARN",
153
+ };
154
+ export const FeedbackKey = {
155
+ INSIGHTS_FEEDBACK: "INSIGHTS_FEEDBACK",
156
+ };
157
+ export const FeedbackValue = {
158
+ NOT_SPECIFIED: "NOT_SPECIFIED",
159
+ NOT_USEFUL: "NOT_USEFUL",
160
+ USEFUL: "USEFUL",
161
+ };
162
+ export const ResolutionMethod = {
163
+ AUTOMATIC: "AUTOMATIC",
164
+ MANUAL: "MANUAL",
165
+ UNRESOLVED: "UNRESOLVED",
166
+ };
167
+ export const SeverityLevel = {
168
+ High: "High",
169
+ Informative: "Informative",
170
+ Low: "Low",
171
+ Medium: "Medium",
172
+ };
173
+ export const Status = {
174
+ IGNORE: "IGNORE",
175
+ PENDING: "PENDING",
176
+ RECOVERING: "RECOVERING",
177
+ RECURRING: "RECURRING",
178
+ RESOLVED: "RESOLVED",
179
+ };
180
+ export const Visibility = {
181
+ IGNORED: "IGNORED",
182
+ VISIBLE: "VISIBLE",
183
+ };
100
184
  export class TooManyTagsException extends __BaseException {
101
185
  constructor(opts) {
102
186
  super({
@@ -111,3 +195,6 @@ export class TooManyTagsException extends __BaseException {
111
195
  this.ResourceName = opts.ResourceName;
112
196
  }
113
197
  }
198
+ export const UpdateStatus = {
199
+ RESOLVED: "RESOLVED",
200
+ };
@@ -0,0 +1,25 @@
1
+ import { ApplicationInsightsClient } from "../ApplicationInsightsClient";
2
+ import { ListWorkloadsCommand, } from "../commands/ListWorkloadsCommand";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListWorkloadsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListWorkloads(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof ApplicationInsightsClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -5,3 +5,4 @@ export * from "./ListConfigurationHistoryPaginator";
5
5
  export * from "./ListLogPatternSetsPaginator";
6
6
  export * from "./ListLogPatternsPaginator";
7
7
  export * from "./ListProblemsPaginator";
8
+ export * from "./ListWorkloadsPaginator";