@aws-sdk/client-application-insights 3.379.1 → 3.382.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 (71) 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/models/models_0.d.ts +830 -67
  55. package/dist-types/pagination/ListWorkloadsPaginator.d.ts +7 -0
  56. package/dist-types/pagination/index.d.ts +1 -0
  57. package/dist-types/protocols/Aws_json1_1.d.ts +54 -0
  58. package/dist-types/ts3.4/ApplicationInsights.d.ts +102 -0
  59. package/dist-types/ts3.4/ApplicationInsightsClient.d.ts +38 -2
  60. package/dist-types/ts3.4/commands/AddWorkloadCommand.d.ts +35 -0
  61. package/dist-types/ts3.4/commands/DescribeWorkloadCommand.d.ts +38 -0
  62. package/dist-types/ts3.4/commands/ListWorkloadsCommand.d.ts +38 -0
  63. package/dist-types/ts3.4/commands/RemoveWorkloadCommand.d.ts +38 -0
  64. package/dist-types/ts3.4/commands/UpdateProblemCommand.d.ts +38 -0
  65. package/dist-types/ts3.4/commands/UpdateWorkloadCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  67. package/dist-types/ts3.4/models/models_0.d.ts +227 -63
  68. package/dist-types/ts3.4/pagination/ListWorkloadsPaginator.d.ts +11 -0
  69. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  70. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -0
  71. package/package.json +5 -5
@@ -0,0 +1,83 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ApplicationInsightsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApplicationInsightsClient";
5
+ import { UpdateProblemRequest, UpdateProblemResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateProblemCommand}.
14
+ */
15
+ export interface UpdateProblemCommandInput extends UpdateProblemRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateProblemCommand}.
21
+ */
22
+ export interface UpdateProblemCommandOutput extends UpdateProblemResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates the visibility of the problem or specifies the problem as
27
+ * <code>RESOLVED</code>.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { ApplicationInsightsClient, UpdateProblemCommand } from "@aws-sdk/client-application-insights"; // ES Modules import
32
+ * // const { ApplicationInsightsClient, UpdateProblemCommand } = require("@aws-sdk/client-application-insights"); // CommonJS import
33
+ * const client = new ApplicationInsightsClient(config);
34
+ * const input = { // UpdateProblemRequest
35
+ * ProblemId: "STRING_VALUE", // required
36
+ * UpdateStatus: "RESOLVED",
37
+ * Visibility: "IGNORED" || "VISIBLE",
38
+ * };
39
+ * const command = new UpdateProblemCommand(input);
40
+ * const response = await client.send(command);
41
+ * // {};
42
+ *
43
+ * ```
44
+ *
45
+ * @param UpdateProblemCommandInput - {@link UpdateProblemCommandInput}
46
+ * @returns {@link UpdateProblemCommandOutput}
47
+ * @see {@link UpdateProblemCommandInput} for command's `input` shape.
48
+ * @see {@link UpdateProblemCommandOutput} for command's `response` shape.
49
+ * @see {@link ApplicationInsightsClientResolvedConfig | config} for ApplicationInsightsClient's `config` shape.
50
+ *
51
+ * @throws {@link InternalServerException} (server fault)
52
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
53
+ *
54
+ * @throws {@link ResourceNotFoundException} (client fault)
55
+ * <p>The resource does not exist in the customer account.</p>
56
+ *
57
+ * @throws {@link ValidationException} (client fault)
58
+ * <p>The parameter is not valid.</p>
59
+ *
60
+ * @throws {@link ApplicationInsightsServiceException}
61
+ * <p>Base exception class for all service exceptions from ApplicationInsights service.</p>
62
+ *
63
+ */
64
+ export declare class UpdateProblemCommand extends $Command<UpdateProblemCommandInput, UpdateProblemCommandOutput, ApplicationInsightsClientResolvedConfig> {
65
+ readonly input: UpdateProblemCommandInput;
66
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
67
+ /**
68
+ * @public
69
+ */
70
+ constructor(input: UpdateProblemCommandInput);
71
+ /**
72
+ * @internal
73
+ */
74
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateProblemCommandInput, UpdateProblemCommandOutput>;
75
+ /**
76
+ * @internal
77
+ */
78
+ private serialize;
79
+ /**
80
+ * @internal
81
+ */
82
+ private deserialize;
83
+ }
@@ -0,0 +1,94 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ApplicationInsightsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApplicationInsightsClient";
5
+ import { UpdateWorkloadRequest, UpdateWorkloadResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateWorkloadCommand}.
14
+ */
15
+ export interface UpdateWorkloadCommandInput extends UpdateWorkloadRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateWorkloadCommand}.
21
+ */
22
+ export interface UpdateWorkloadCommandOutput extends UpdateWorkloadResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Adds a workload to a component. Each component can have at most five workloads.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { ApplicationInsightsClient, UpdateWorkloadCommand } from "@aws-sdk/client-application-insights"; // ES Modules import
31
+ * // const { ApplicationInsightsClient, UpdateWorkloadCommand } = require("@aws-sdk/client-application-insights"); // CommonJS import
32
+ * const client = new ApplicationInsightsClient(config);
33
+ * const input = { // UpdateWorkloadRequest
34
+ * ResourceGroupName: "STRING_VALUE", // required
35
+ * ComponentName: "STRING_VALUE", // required
36
+ * WorkloadId: "STRING_VALUE",
37
+ * WorkloadConfiguration: { // WorkloadConfiguration
38
+ * WorkloadName: "STRING_VALUE",
39
+ * Tier: "CUSTOM" || "DEFAULT" || "DOT_NET_CORE" || "DOT_NET_WORKER" || "DOT_NET_WEB_TIER" || "DOT_NET_WEB" || "SQL_SERVER" || "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP" || "MYSQL" || "POSTGRESQL" || "JAVA_JMX" || "ORACLE" || "SAP_HANA_MULTI_NODE" || "SAP_HANA_SINGLE_NODE" || "SAP_HANA_HIGH_AVAILABILITY" || "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE" || "SHAREPOINT" || "ACTIVE_DIRECTORY" || "SAP_NETWEAVER_STANDARD" || "SAP_NETWEAVER_DISTRIBUTED" || "SAP_NETWEAVER_HIGH_AVAILABILITY",
40
+ * Configuration: "STRING_VALUE",
41
+ * },
42
+ * };
43
+ * const command = new UpdateWorkloadCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // UpdateWorkloadResponse
46
+ * // WorkloadId: "STRING_VALUE",
47
+ * // WorkloadConfiguration: { // WorkloadConfiguration
48
+ * // WorkloadName: "STRING_VALUE",
49
+ * // Tier: "CUSTOM" || "DEFAULT" || "DOT_NET_CORE" || "DOT_NET_WORKER" || "DOT_NET_WEB_TIER" || "DOT_NET_WEB" || "SQL_SERVER" || "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP" || "MYSQL" || "POSTGRESQL" || "JAVA_JMX" || "ORACLE" || "SAP_HANA_MULTI_NODE" || "SAP_HANA_SINGLE_NODE" || "SAP_HANA_HIGH_AVAILABILITY" || "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE" || "SHAREPOINT" || "ACTIVE_DIRECTORY" || "SAP_NETWEAVER_STANDARD" || "SAP_NETWEAVER_DISTRIBUTED" || "SAP_NETWEAVER_HIGH_AVAILABILITY",
50
+ * // Configuration: "STRING_VALUE",
51
+ * // },
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param UpdateWorkloadCommandInput - {@link UpdateWorkloadCommandInput}
57
+ * @returns {@link UpdateWorkloadCommandOutput}
58
+ * @see {@link UpdateWorkloadCommandInput} for command's `input` shape.
59
+ * @see {@link UpdateWorkloadCommandOutput} for command's `response` shape.
60
+ * @see {@link ApplicationInsightsClientResolvedConfig | config} for ApplicationInsightsClient's `config` shape.
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
64
+ *
65
+ * @throws {@link ResourceNotFoundException} (client fault)
66
+ * <p>The resource does not exist in the customer account.</p>
67
+ *
68
+ * @throws {@link ValidationException} (client fault)
69
+ * <p>The parameter is not valid.</p>
70
+ *
71
+ * @throws {@link ApplicationInsightsServiceException}
72
+ * <p>Base exception class for all service exceptions from ApplicationInsights service.</p>
73
+ *
74
+ */
75
+ export declare class UpdateWorkloadCommand extends $Command<UpdateWorkloadCommandInput, UpdateWorkloadCommandOutput, ApplicationInsightsClientResolvedConfig> {
76
+ readonly input: UpdateWorkloadCommandInput;
77
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
78
+ /**
79
+ * @public
80
+ */
81
+ constructor(input: UpdateWorkloadCommandInput);
82
+ /**
83
+ * @internal
84
+ */
85
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateWorkloadCommandInput, UpdateWorkloadCommandOutput>;
86
+ /**
87
+ * @internal
88
+ */
89
+ private serialize;
90
+ /**
91
+ * @internal
92
+ */
93
+ private deserialize;
94
+ }
@@ -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";