@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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TooManyTagsException = exports.ValidationException = exports.TagsAlreadyExistException = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.InternalServerException = exports.GroupingType = exports.BadRequestException = exports.DiscoveryType = exports.AccessDeniedException = void 0;
3
+ exports.UpdateStatus = exports.TooManyTagsException = exports.Visibility = exports.Status = exports.SeverityLevel = exports.ResolutionMethod = exports.FeedbackValue = exports.FeedbackKey = exports.LogFilter = exports.RecommendationType = exports.TagsAlreadyExistException = exports.GroupingType = exports.ConfigurationEventStatus = exports.ConfigurationEventResourceType = exports.CloudWatchEventSource = exports.BadRequestException = exports.DiscoveryType = exports.OsType = exports.ValidationException = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.InternalServerException = exports.Tier = exports.AccessDeniedException = void 0;
4
4
  const ApplicationInsightsServiceException_1 = require("./ApplicationInsightsServiceException");
5
5
  class AccessDeniedException extends ApplicationInsightsServiceException_1.ApplicationInsightsServiceException {
6
6
  constructor(opts) {
@@ -16,26 +16,28 @@ class AccessDeniedException extends ApplicationInsightsServiceException_1.Applic
16
16
  }
17
17
  }
18
18
  exports.AccessDeniedException = AccessDeniedException;
19
- exports.DiscoveryType = {
20
- ACCOUNT_BASED: "ACCOUNT_BASED",
21
- RESOURCE_GROUP_BASED: "RESOURCE_GROUP_BASED",
22
- };
23
- class BadRequestException extends ApplicationInsightsServiceException_1.ApplicationInsightsServiceException {
24
- constructor(opts) {
25
- super({
26
- name: "BadRequestException",
27
- $fault: "client",
28
- ...opts,
29
- });
30
- this.name = "BadRequestException";
31
- this.$fault = "client";
32
- Object.setPrototypeOf(this, BadRequestException.prototype);
33
- this.Message = opts.Message;
34
- }
35
- }
36
- exports.BadRequestException = BadRequestException;
37
- exports.GroupingType = {
38
- ACCOUNT_BASED: "ACCOUNT_BASED",
19
+ exports.Tier = {
20
+ ACTIVE_DIRECTORY: "ACTIVE_DIRECTORY",
21
+ CUSTOM: "CUSTOM",
22
+ DEFAULT: "DEFAULT",
23
+ DOT_NET_CORE: "DOT_NET_CORE",
24
+ DOT_NET_WEB: "DOT_NET_WEB",
25
+ DOT_NET_WEB_TIER: "DOT_NET_WEB_TIER",
26
+ DOT_NET_WORKER: "DOT_NET_WORKER",
27
+ JAVA_JMX: "JAVA_JMX",
28
+ MYSQL: "MYSQL",
29
+ ORACLE: "ORACLE",
30
+ POSTGRESQL: "POSTGRESQL",
31
+ SAP_HANA_HIGH_AVAILABILITY: "SAP_HANA_HIGH_AVAILABILITY",
32
+ SAP_HANA_MULTI_NODE: "SAP_HANA_MULTI_NODE",
33
+ SAP_HANA_SINGLE_NODE: "SAP_HANA_SINGLE_NODE",
34
+ SAP_NETWEAVER_DISTRIBUTED: "SAP_NETWEAVER_DISTRIBUTED",
35
+ SAP_NETWEAVER_HIGH_AVAILABILITY: "SAP_NETWEAVER_HIGH_AVAILABILITY",
36
+ SAP_NETWEAVER_STANDARD: "SAP_NETWEAVER_STANDARD",
37
+ SHAREPOINT: "SHAREPOINT",
38
+ SQL_SERVER: "SQL_SERVER",
39
+ SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP: "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP",
40
+ SQL_SERVER_FAILOVER_CLUSTER_INSTANCE: "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE",
39
41
  };
40
42
  class InternalServerException extends ApplicationInsightsServiceException_1.ApplicationInsightsServiceException {
41
43
  constructor(opts) {
@@ -79,34 +81,116 @@ class ResourceNotFoundException extends ApplicationInsightsServiceException_1.Ap
79
81
  }
80
82
  }
81
83
  exports.ResourceNotFoundException = ResourceNotFoundException;
82
- class TagsAlreadyExistException extends ApplicationInsightsServiceException_1.ApplicationInsightsServiceException {
84
+ class ValidationException extends ApplicationInsightsServiceException_1.ApplicationInsightsServiceException {
83
85
  constructor(opts) {
84
86
  super({
85
- name: "TagsAlreadyExistException",
87
+ name: "ValidationException",
86
88
  $fault: "client",
87
89
  ...opts,
88
90
  });
89
- this.name = "TagsAlreadyExistException";
91
+ this.name = "ValidationException";
90
92
  this.$fault = "client";
91
- Object.setPrototypeOf(this, TagsAlreadyExistException.prototype);
93
+ Object.setPrototypeOf(this, ValidationException.prototype);
92
94
  this.Message = opts.Message;
93
95
  }
94
96
  }
95
- exports.TagsAlreadyExistException = TagsAlreadyExistException;
96
- class ValidationException extends ApplicationInsightsServiceException_1.ApplicationInsightsServiceException {
97
+ exports.ValidationException = ValidationException;
98
+ exports.OsType = {
99
+ LINUX: "LINUX",
100
+ WINDOWS: "WINDOWS",
101
+ };
102
+ exports.DiscoveryType = {
103
+ ACCOUNT_BASED: "ACCOUNT_BASED",
104
+ RESOURCE_GROUP_BASED: "RESOURCE_GROUP_BASED",
105
+ };
106
+ class BadRequestException extends ApplicationInsightsServiceException_1.ApplicationInsightsServiceException {
97
107
  constructor(opts) {
98
108
  super({
99
- name: "ValidationException",
109
+ name: "BadRequestException",
100
110
  $fault: "client",
101
111
  ...opts,
102
112
  });
103
- this.name = "ValidationException";
113
+ this.name = "BadRequestException";
104
114
  this.$fault = "client";
105
- Object.setPrototypeOf(this, ValidationException.prototype);
115
+ Object.setPrototypeOf(this, BadRequestException.prototype);
106
116
  this.Message = opts.Message;
107
117
  }
108
118
  }
109
- exports.ValidationException = ValidationException;
119
+ exports.BadRequestException = BadRequestException;
120
+ exports.CloudWatchEventSource = {
121
+ CODE_DEPLOY: "CODE_DEPLOY",
122
+ EC2: "EC2",
123
+ HEALTH: "HEALTH",
124
+ RDS: "RDS",
125
+ };
126
+ exports.ConfigurationEventResourceType = {
127
+ CLOUDFORMATION: "CLOUDFORMATION",
128
+ CLOUDWATCH_ALARM: "CLOUDWATCH_ALARM",
129
+ CLOUDWATCH_LOG: "CLOUDWATCH_LOG",
130
+ SSM_ASSOCIATION: "SSM_ASSOCIATION",
131
+ };
132
+ exports.ConfigurationEventStatus = {
133
+ ERROR: "ERROR",
134
+ INFO: "INFO",
135
+ WARN: "WARN",
136
+ };
137
+ exports.GroupingType = {
138
+ ACCOUNT_BASED: "ACCOUNT_BASED",
139
+ };
140
+ class TagsAlreadyExistException extends ApplicationInsightsServiceException_1.ApplicationInsightsServiceException {
141
+ constructor(opts) {
142
+ super({
143
+ name: "TagsAlreadyExistException",
144
+ $fault: "client",
145
+ ...opts,
146
+ });
147
+ this.name = "TagsAlreadyExistException";
148
+ this.$fault = "client";
149
+ Object.setPrototypeOf(this, TagsAlreadyExistException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ exports.TagsAlreadyExistException = TagsAlreadyExistException;
154
+ exports.RecommendationType = {
155
+ ALL: "ALL",
156
+ INFRA_ONLY: "INFRA_ONLY",
157
+ WORKLOAD_ONLY: "WORKLOAD_ONLY",
158
+ };
159
+ exports.LogFilter = {
160
+ ERROR: "ERROR",
161
+ INFO: "INFO",
162
+ WARN: "WARN",
163
+ };
164
+ exports.FeedbackKey = {
165
+ INSIGHTS_FEEDBACK: "INSIGHTS_FEEDBACK",
166
+ };
167
+ exports.FeedbackValue = {
168
+ NOT_SPECIFIED: "NOT_SPECIFIED",
169
+ NOT_USEFUL: "NOT_USEFUL",
170
+ USEFUL: "USEFUL",
171
+ };
172
+ exports.ResolutionMethod = {
173
+ AUTOMATIC: "AUTOMATIC",
174
+ MANUAL: "MANUAL",
175
+ UNRESOLVED: "UNRESOLVED",
176
+ };
177
+ exports.SeverityLevel = {
178
+ High: "High",
179
+ Informative: "Informative",
180
+ Low: "Low",
181
+ Medium: "Medium",
182
+ };
183
+ exports.Status = {
184
+ IGNORE: "IGNORE",
185
+ PENDING: "PENDING",
186
+ RECOVERING: "RECOVERING",
187
+ RECURRING: "RECURRING",
188
+ RESOLVED: "RESOLVED",
189
+ };
190
+ exports.Visibility = {
191
+ IGNORED: "IGNORED",
192
+ VISIBLE: "VISIBLE",
193
+ };
110
194
  class TooManyTagsException extends ApplicationInsightsServiceException_1.ApplicationInsightsServiceException {
111
195
  constructor(opts) {
112
196
  super({
@@ -122,3 +206,6 @@ class TooManyTagsException extends ApplicationInsightsServiceException_1.Applica
122
206
  }
123
207
  }
124
208
  exports.TooManyTagsException = TooManyTagsException;
209
+ exports.UpdateStatus = {
210
+ RESOLVED: "RESOLVED",
211
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListWorkloads = void 0;
4
+ const ApplicationInsightsClient_1 = require("../ApplicationInsightsClient");
5
+ const ListWorkloadsCommand_1 = require("../commands/ListWorkloadsCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListWorkloadsCommand_1.ListWorkloadsCommand(input), ...args);
8
+ };
9
+ async function* paginateListWorkloads(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof ApplicationInsightsClient_1.ApplicationInsightsClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected ApplicationInsights | ApplicationInsightsClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListWorkloads = paginateListWorkloads;
@@ -8,3 +8,4 @@ tslib_1.__exportStar(require("./ListConfigurationHistoryPaginator"), exports);
8
8
  tslib_1.__exportStar(require("./ListLogPatternSetsPaginator"), exports);
9
9
  tslib_1.__exportStar(require("./ListLogPatternsPaginator"), exports);
10
10
  tslib_1.__exportStar(require("./ListProblemsPaginator"), exports);
11
+ tslib_1.__exportStar(require("./ListWorkloadsPaginator"), exports);
@@ -1,11 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProblemsCommand = exports.de_ListLogPatternSetsCommand = exports.de_ListLogPatternsCommand = exports.de_ListConfigurationHistoryCommand = exports.de_ListComponentsCommand = exports.de_ListApplicationsCommand = exports.de_DescribeProblemObservationsCommand = exports.de_DescribeProblemCommand = exports.de_DescribeObservationCommand = exports.de_DescribeLogPatternCommand = exports.de_DescribeComponentConfigurationRecommendationCommand = exports.de_DescribeComponentConfigurationCommand = exports.de_DescribeComponentCommand = exports.de_DescribeApplicationCommand = exports.de_DeleteLogPatternCommand = exports.de_DeleteComponentCommand = exports.de_DeleteApplicationCommand = exports.de_CreateLogPatternCommand = exports.de_CreateComponentCommand = exports.de_CreateApplicationCommand = exports.se_UpdateLogPatternCommand = exports.se_UpdateComponentConfigurationCommand = exports.se_UpdateComponentCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProblemsCommand = exports.se_ListLogPatternSetsCommand = exports.se_ListLogPatternsCommand = exports.se_ListConfigurationHistoryCommand = exports.se_ListComponentsCommand = exports.se_ListApplicationsCommand = exports.se_DescribeProblemObservationsCommand = exports.se_DescribeProblemCommand = exports.se_DescribeObservationCommand = exports.se_DescribeLogPatternCommand = exports.se_DescribeComponentConfigurationRecommendationCommand = exports.se_DescribeComponentConfigurationCommand = exports.se_DescribeComponentCommand = exports.se_DescribeApplicationCommand = exports.se_DeleteLogPatternCommand = exports.se_DeleteComponentCommand = exports.se_DeleteApplicationCommand = exports.se_CreateLogPatternCommand = exports.se_CreateComponentCommand = exports.se_CreateApplicationCommand = void 0;
4
- exports.de_UpdateLogPatternCommand = exports.de_UpdateComponentConfigurationCommand = exports.de_UpdateComponentCommand = exports.de_UpdateApplicationCommand = void 0;
3
+ exports.de_ListApplicationsCommand = exports.de_DescribeWorkloadCommand = exports.de_DescribeProblemObservationsCommand = exports.de_DescribeProblemCommand = exports.de_DescribeObservationCommand = exports.de_DescribeLogPatternCommand = exports.de_DescribeComponentConfigurationRecommendationCommand = exports.de_DescribeComponentConfigurationCommand = exports.de_DescribeComponentCommand = exports.de_DescribeApplicationCommand = exports.de_DeleteLogPatternCommand = exports.de_DeleteComponentCommand = exports.de_DeleteApplicationCommand = exports.de_CreateLogPatternCommand = exports.de_CreateComponentCommand = exports.de_CreateApplicationCommand = exports.de_AddWorkloadCommand = exports.se_UpdateWorkloadCommand = exports.se_UpdateProblemCommand = exports.se_UpdateLogPatternCommand = exports.se_UpdateComponentConfigurationCommand = exports.se_UpdateComponentCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RemoveWorkloadCommand = exports.se_ListWorkloadsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProblemsCommand = exports.se_ListLogPatternSetsCommand = exports.se_ListLogPatternsCommand = exports.se_ListConfigurationHistoryCommand = exports.se_ListComponentsCommand = exports.se_ListApplicationsCommand = exports.se_DescribeWorkloadCommand = exports.se_DescribeProblemObservationsCommand = exports.se_DescribeProblemCommand = exports.se_DescribeObservationCommand = exports.se_DescribeLogPatternCommand = exports.se_DescribeComponentConfigurationRecommendationCommand = exports.se_DescribeComponentConfigurationCommand = exports.se_DescribeComponentCommand = exports.se_DescribeApplicationCommand = exports.se_DeleteLogPatternCommand = exports.se_DeleteComponentCommand = exports.se_DeleteApplicationCommand = exports.se_CreateLogPatternCommand = exports.se_CreateComponentCommand = exports.se_CreateApplicationCommand = exports.se_AddWorkloadCommand = void 0;
4
+ exports.de_UpdateWorkloadCommand = exports.de_UpdateProblemCommand = exports.de_UpdateLogPatternCommand = exports.de_UpdateComponentConfigurationCommand = exports.de_UpdateComponentCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RemoveWorkloadCommand = exports.de_ListWorkloadsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProblemsCommand = exports.de_ListLogPatternSetsCommand = exports.de_ListLogPatternsCommand = exports.de_ListConfigurationHistoryCommand = exports.de_ListComponentsCommand = void 0;
5
5
  const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const ApplicationInsightsServiceException_1 = require("../models/ApplicationInsightsServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
+ const se_AddWorkloadCommand = async (input, context) => {
10
+ const headers = sharedHeaders("AddWorkload");
11
+ let body;
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
13
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
+ };
15
+ exports.se_AddWorkloadCommand = se_AddWorkloadCommand;
9
16
  const se_CreateApplicationCommand = async (input, context) => {
10
17
  const headers = sharedHeaders("CreateApplication");
11
18
  let body;
@@ -104,6 +111,13 @@ const se_DescribeProblemObservationsCommand = async (input, context) => {
104
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
112
  };
106
113
  exports.se_DescribeProblemObservationsCommand = se_DescribeProblemObservationsCommand;
114
+ const se_DescribeWorkloadCommand = async (input, context) => {
115
+ const headers = sharedHeaders("DescribeWorkload");
116
+ let body;
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
118
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
+ };
120
+ exports.se_DescribeWorkloadCommand = se_DescribeWorkloadCommand;
107
121
  const se_ListApplicationsCommand = async (input, context) => {
108
122
  const headers = sharedHeaders("ListApplications");
109
123
  let body;
@@ -153,6 +167,20 @@ const se_ListTagsForResourceCommand = async (input, context) => {
153
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
168
  };
155
169
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
170
+ const se_ListWorkloadsCommand = async (input, context) => {
171
+ const headers = sharedHeaders("ListWorkloads");
172
+ let body;
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
174
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
+ };
176
+ exports.se_ListWorkloadsCommand = se_ListWorkloadsCommand;
177
+ const se_RemoveWorkloadCommand = async (input, context) => {
178
+ const headers = sharedHeaders("RemoveWorkload");
179
+ let body;
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
181
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
182
+ };
183
+ exports.se_RemoveWorkloadCommand = se_RemoveWorkloadCommand;
156
184
  const se_TagResourceCommand = async (input, context) => {
157
185
  const headers = sharedHeaders("TagResource");
158
186
  let body;
@@ -195,6 +223,62 @@ const se_UpdateLogPatternCommand = async (input, context) => {
195
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
224
  };
197
225
  exports.se_UpdateLogPatternCommand = se_UpdateLogPatternCommand;
226
+ const se_UpdateProblemCommand = async (input, context) => {
227
+ const headers = sharedHeaders("UpdateProblem");
228
+ let body;
229
+ body = JSON.stringify((0, smithy_client_1._json)(input));
230
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
+ };
232
+ exports.se_UpdateProblemCommand = se_UpdateProblemCommand;
233
+ const se_UpdateWorkloadCommand = async (input, context) => {
234
+ const headers = sharedHeaders("UpdateWorkload");
235
+ let body;
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
237
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
+ };
239
+ exports.se_UpdateWorkloadCommand = se_UpdateWorkloadCommand;
240
+ const de_AddWorkloadCommand = async (output, context) => {
241
+ if (output.statusCode >= 300) {
242
+ return de_AddWorkloadCommandError(output, context);
243
+ }
244
+ const data = await parseBody(output.body, context);
245
+ let contents = {};
246
+ contents = (0, smithy_client_1._json)(data);
247
+ const response = {
248
+ $metadata: deserializeMetadata(output),
249
+ ...contents,
250
+ };
251
+ return response;
252
+ };
253
+ exports.de_AddWorkloadCommand = de_AddWorkloadCommand;
254
+ const de_AddWorkloadCommandError = async (output, context) => {
255
+ const parsedOutput = {
256
+ ...output,
257
+ body: await parseErrorBody(output.body, context),
258
+ };
259
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
260
+ switch (errorCode) {
261
+ case "InternalServerException":
262
+ case "com.amazonaws.applicationinsights#InternalServerException":
263
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
264
+ case "ResourceInUseException":
265
+ case "com.amazonaws.applicationinsights#ResourceInUseException":
266
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
267
+ case "ResourceNotFoundException":
268
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
269
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
270
+ case "ValidationException":
271
+ case "com.amazonaws.applicationinsights#ValidationException":
272
+ throw await de_ValidationExceptionRes(parsedOutput, context);
273
+ default:
274
+ const parsedBody = parsedOutput.body;
275
+ return throwDefaultError({
276
+ output,
277
+ parsedBody,
278
+ errorCode,
279
+ });
280
+ }
281
+ };
198
282
  const de_CreateApplicationCommand = async (output, context) => {
199
283
  if (output.statusCode >= 300) {
200
284
  return de_CreateApplicationCommandError(output, context);
@@ -762,6 +846,45 @@ const de_DescribeProblemObservationsCommandError = async (output, context) => {
762
846
  });
763
847
  }
764
848
  };
849
+ const de_DescribeWorkloadCommand = async (output, context) => {
850
+ if (output.statusCode >= 300) {
851
+ return de_DescribeWorkloadCommandError(output, context);
852
+ }
853
+ const data = await parseBody(output.body, context);
854
+ let contents = {};
855
+ contents = (0, smithy_client_1._json)(data);
856
+ const response = {
857
+ $metadata: deserializeMetadata(output),
858
+ ...contents,
859
+ };
860
+ return response;
861
+ };
862
+ exports.de_DescribeWorkloadCommand = de_DescribeWorkloadCommand;
863
+ const de_DescribeWorkloadCommandError = async (output, context) => {
864
+ const parsedOutput = {
865
+ ...output,
866
+ body: await parseErrorBody(output.body, context),
867
+ };
868
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
869
+ switch (errorCode) {
870
+ case "InternalServerException":
871
+ case "com.amazonaws.applicationinsights#InternalServerException":
872
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
873
+ case "ResourceNotFoundException":
874
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
875
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
876
+ case "ValidationException":
877
+ case "com.amazonaws.applicationinsights#ValidationException":
878
+ throw await de_ValidationExceptionRes(parsedOutput, context);
879
+ default:
880
+ const parsedBody = parsedOutput.body;
881
+ return throwDefaultError({
882
+ output,
883
+ parsedBody,
884
+ errorCode,
885
+ });
886
+ }
887
+ };
765
888
  const de_ListApplicationsCommand = async (output, context) => {
766
889
  if (output.statusCode >= 300) {
767
890
  return de_ListApplicationsCommandError(output, context);
@@ -1029,6 +1152,84 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1029
1152
  });
1030
1153
  }
1031
1154
  };
1155
+ const de_ListWorkloadsCommand = async (output, context) => {
1156
+ if (output.statusCode >= 300) {
1157
+ return de_ListWorkloadsCommandError(output, context);
1158
+ }
1159
+ const data = await parseBody(output.body, context);
1160
+ let contents = {};
1161
+ contents = (0, smithy_client_1._json)(data);
1162
+ const response = {
1163
+ $metadata: deserializeMetadata(output),
1164
+ ...contents,
1165
+ };
1166
+ return response;
1167
+ };
1168
+ exports.de_ListWorkloadsCommand = de_ListWorkloadsCommand;
1169
+ const de_ListWorkloadsCommandError = async (output, context) => {
1170
+ const parsedOutput = {
1171
+ ...output,
1172
+ body: await parseErrorBody(output.body, context),
1173
+ };
1174
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1175
+ switch (errorCode) {
1176
+ case "InternalServerException":
1177
+ case "com.amazonaws.applicationinsights#InternalServerException":
1178
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1179
+ case "ResourceNotFoundException":
1180
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1181
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1182
+ case "ValidationException":
1183
+ case "com.amazonaws.applicationinsights#ValidationException":
1184
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1185
+ default:
1186
+ const parsedBody = parsedOutput.body;
1187
+ return throwDefaultError({
1188
+ output,
1189
+ parsedBody,
1190
+ errorCode,
1191
+ });
1192
+ }
1193
+ };
1194
+ const de_RemoveWorkloadCommand = async (output, context) => {
1195
+ if (output.statusCode >= 300) {
1196
+ return de_RemoveWorkloadCommandError(output, context);
1197
+ }
1198
+ const data = await parseBody(output.body, context);
1199
+ let contents = {};
1200
+ contents = (0, smithy_client_1._json)(data);
1201
+ const response = {
1202
+ $metadata: deserializeMetadata(output),
1203
+ ...contents,
1204
+ };
1205
+ return response;
1206
+ };
1207
+ exports.de_RemoveWorkloadCommand = de_RemoveWorkloadCommand;
1208
+ const de_RemoveWorkloadCommandError = async (output, context) => {
1209
+ const parsedOutput = {
1210
+ ...output,
1211
+ body: await parseErrorBody(output.body, context),
1212
+ };
1213
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1214
+ switch (errorCode) {
1215
+ case "InternalServerException":
1216
+ case "com.amazonaws.applicationinsights#InternalServerException":
1217
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1218
+ case "ResourceNotFoundException":
1219
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1220
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1221
+ case "ValidationException":
1222
+ case "com.amazonaws.applicationinsights#ValidationException":
1223
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1224
+ default:
1225
+ const parsedBody = parsedOutput.body;
1226
+ return throwDefaultError({
1227
+ output,
1228
+ parsedBody,
1229
+ errorCode,
1230
+ });
1231
+ }
1232
+ };
1032
1233
  const de_TagResourceCommand = async (output, context) => {
1033
1234
  if (output.statusCode >= 300) {
1034
1235
  return de_TagResourceCommandError(output, context);
@@ -1266,6 +1467,84 @@ const de_UpdateLogPatternCommandError = async (output, context) => {
1266
1467
  });
1267
1468
  }
1268
1469
  };
1470
+ const de_UpdateProblemCommand = async (output, context) => {
1471
+ if (output.statusCode >= 300) {
1472
+ return de_UpdateProblemCommandError(output, context);
1473
+ }
1474
+ const data = await parseBody(output.body, context);
1475
+ let contents = {};
1476
+ contents = (0, smithy_client_1._json)(data);
1477
+ const response = {
1478
+ $metadata: deserializeMetadata(output),
1479
+ ...contents,
1480
+ };
1481
+ return response;
1482
+ };
1483
+ exports.de_UpdateProblemCommand = de_UpdateProblemCommand;
1484
+ const de_UpdateProblemCommandError = async (output, context) => {
1485
+ const parsedOutput = {
1486
+ ...output,
1487
+ body: await parseErrorBody(output.body, context),
1488
+ };
1489
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1490
+ switch (errorCode) {
1491
+ case "InternalServerException":
1492
+ case "com.amazonaws.applicationinsights#InternalServerException":
1493
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1494
+ case "ResourceNotFoundException":
1495
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1496
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1497
+ case "ValidationException":
1498
+ case "com.amazonaws.applicationinsights#ValidationException":
1499
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1500
+ default:
1501
+ const parsedBody = parsedOutput.body;
1502
+ return throwDefaultError({
1503
+ output,
1504
+ parsedBody,
1505
+ errorCode,
1506
+ });
1507
+ }
1508
+ };
1509
+ const de_UpdateWorkloadCommand = async (output, context) => {
1510
+ if (output.statusCode >= 300) {
1511
+ return de_UpdateWorkloadCommandError(output, context);
1512
+ }
1513
+ const data = await parseBody(output.body, context);
1514
+ let contents = {};
1515
+ contents = (0, smithy_client_1._json)(data);
1516
+ const response = {
1517
+ $metadata: deserializeMetadata(output),
1518
+ ...contents,
1519
+ };
1520
+ return response;
1521
+ };
1522
+ exports.de_UpdateWorkloadCommand = de_UpdateWorkloadCommand;
1523
+ const de_UpdateWorkloadCommandError = async (output, context) => {
1524
+ const parsedOutput = {
1525
+ ...output,
1526
+ body: await parseErrorBody(output.body, context),
1527
+ };
1528
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1529
+ switch (errorCode) {
1530
+ case "InternalServerException":
1531
+ case "com.amazonaws.applicationinsights#InternalServerException":
1532
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1533
+ case "ResourceNotFoundException":
1534
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1535
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1536
+ case "ValidationException":
1537
+ case "com.amazonaws.applicationinsights#ValidationException":
1538
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1539
+ default:
1540
+ const parsedBody = parsedOutput.body;
1541
+ return throwDefaultError({
1542
+ output,
1543
+ parsedBody,
1544
+ errorCode,
1545
+ });
1546
+ }
1547
+ };
1269
1548
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1270
1549
  const body = parsedOutput.body;
1271
1550
  const deserialized = (0, smithy_client_1._json)(body);
@@ -1340,6 +1619,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1340
1619
  };
1341
1620
  const se_ListConfigurationHistoryRequest = (input, context) => {
1342
1621
  return (0, smithy_client_1.take)(input, {
1622
+ AccountId: [],
1343
1623
  EndTime: (_) => Math.round(_.getTime() / 1000),
1344
1624
  EventStatus: [],
1345
1625
  MaxResults: [],
@@ -1350,22 +1630,26 @@ const se_ListConfigurationHistoryRequest = (input, context) => {
1350
1630
  };
1351
1631
  const se_ListProblemsRequest = (input, context) => {
1352
1632
  return (0, smithy_client_1.take)(input, {
1633
+ AccountId: [],
1353
1634
  ComponentName: [],
1354
1635
  EndTime: (_) => Math.round(_.getTime() / 1000),
1355
1636
  MaxResults: [],
1356
1637
  NextToken: [],
1357
1638
  ResourceGroupName: [],
1358
1639
  StartTime: (_) => Math.round(_.getTime() / 1000),
1640
+ Visibility: [],
1359
1641
  });
1360
1642
  };
1361
1643
  const de_ConfigurationEvent = (output, context) => {
1362
1644
  return (0, smithy_client_1.take)(output, {
1645
+ AccountId: smithy_client_1.expectString,
1363
1646
  EventDetail: smithy_client_1.expectString,
1364
1647
  EventResourceName: smithy_client_1.expectString,
1365
1648
  EventResourceType: smithy_client_1.expectString,
1366
1649
  EventStatus: smithy_client_1.expectString,
1367
1650
  EventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1368
1651
  MonitoredResourceARN: smithy_client_1.expectString,
1652
+ ResourceGroupName: smithy_client_1.expectString,
1369
1653
  });
1370
1654
  };
1371
1655
  const de_ConfigurationEventList = (output, context) => {
@@ -1399,6 +1683,7 @@ const de_ListConfigurationHistoryResponse = (output, context) => {
1399
1683
  };
1400
1684
  const de_ListProblemsResponse = (output, context) => {
1401
1685
  return (0, smithy_client_1.take)(output, {
1686
+ AccountId: smithy_client_1.expectString,
1402
1687
  NextToken: smithy_client_1.expectString,
1403
1688
  ProblemList: (_) => de_ProblemList(_, context),
1404
1689
  ResourceGroupName: smithy_client_1.expectString,
@@ -1463,6 +1748,7 @@ const de_ObservationList = (output, context) => {
1463
1748
  };
1464
1749
  const de_Problem = (output, context) => {
1465
1750
  return (0, smithy_client_1.take)(output, {
1751
+ AccountId: smithy_client_1.expectString,
1466
1752
  AffectedResource: smithy_client_1.expectString,
1467
1753
  EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1468
1754
  Feedback: smithy_client_1._json,
@@ -1470,11 +1756,13 @@ const de_Problem = (output, context) => {
1470
1756
  Insights: smithy_client_1.expectString,
1471
1757
  LastRecurrenceTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1472
1758
  RecurringCount: smithy_client_1.expectLong,
1759
+ ResolutionMethod: smithy_client_1.expectString,
1473
1760
  ResourceGroupName: smithy_client_1.expectString,
1474
1761
  SeverityLevel: smithy_client_1.expectString,
1475
1762
  StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1476
1763
  Status: smithy_client_1.expectString,
1477
1764
  Title: smithy_client_1.expectString,
1765
+ Visibility: smithy_client_1.expectString,
1478
1766
  });
1479
1767
  };
1480
1768
  const de_ProblemList = (output, context) => {