@aws-sdk/client-application-insights 3.379.1 → 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 (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 +560 -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 +1 -1
@@ -2,6 +2,12 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { ApplicationInsightsServiceException as __BaseException } from "../models/ApplicationInsightsServiceException";
4
4
  import { AccessDeniedException, BadRequestException, InternalServerException, ResourceInUseException, ResourceNotFoundException, TagsAlreadyExistException, TooManyTagsException, ValidationException, } from "../models/models_0";
5
+ export const se_AddWorkloadCommand = async (input, context) => {
6
+ const headers = sharedHeaders("AddWorkload");
7
+ let body;
8
+ body = JSON.stringify(_json(input));
9
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
+ };
5
11
  export const se_CreateApplicationCommand = async (input, context) => {
6
12
  const headers = sharedHeaders("CreateApplication");
7
13
  let body;
@@ -86,6 +92,12 @@ export const se_DescribeProblemObservationsCommand = async (input, context) => {
86
92
  body = JSON.stringify(_json(input));
87
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
94
  };
95
+ export const se_DescribeWorkloadCommand = async (input, context) => {
96
+ const headers = sharedHeaders("DescribeWorkload");
97
+ let body;
98
+ body = JSON.stringify(_json(input));
99
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
+ };
89
101
  export const se_ListApplicationsCommand = async (input, context) => {
90
102
  const headers = sharedHeaders("ListApplications");
91
103
  let body;
@@ -128,6 +140,18 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
128
140
  body = JSON.stringify(_json(input));
129
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
142
  };
143
+ export const se_ListWorkloadsCommand = async (input, context) => {
144
+ const headers = sharedHeaders("ListWorkloads");
145
+ let body;
146
+ body = JSON.stringify(_json(input));
147
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
+ };
149
+ export const se_RemoveWorkloadCommand = async (input, context) => {
150
+ const headers = sharedHeaders("RemoveWorkload");
151
+ let body;
152
+ body = JSON.stringify(_json(input));
153
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
+ };
131
155
  export const se_TagResourceCommand = async (input, context) => {
132
156
  const headers = sharedHeaders("TagResource");
133
157
  let body;
@@ -164,6 +188,59 @@ export const se_UpdateLogPatternCommand = async (input, context) => {
164
188
  body = JSON.stringify(_json(input));
165
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
190
  };
191
+ export const se_UpdateProblemCommand = async (input, context) => {
192
+ const headers = sharedHeaders("UpdateProblem");
193
+ let body;
194
+ body = JSON.stringify(_json(input));
195
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
+ };
197
+ export const se_UpdateWorkloadCommand = async (input, context) => {
198
+ const headers = sharedHeaders("UpdateWorkload");
199
+ let body;
200
+ body = JSON.stringify(_json(input));
201
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
+ };
203
+ export const de_AddWorkloadCommand = async (output, context) => {
204
+ if (output.statusCode >= 300) {
205
+ return de_AddWorkloadCommandError(output, context);
206
+ }
207
+ const data = await parseBody(output.body, context);
208
+ let contents = {};
209
+ contents = _json(data);
210
+ const response = {
211
+ $metadata: deserializeMetadata(output),
212
+ ...contents,
213
+ };
214
+ return response;
215
+ };
216
+ const de_AddWorkloadCommandError = async (output, context) => {
217
+ const parsedOutput = {
218
+ ...output,
219
+ body: await parseErrorBody(output.body, context),
220
+ };
221
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
222
+ switch (errorCode) {
223
+ case "InternalServerException":
224
+ case "com.amazonaws.applicationinsights#InternalServerException":
225
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
226
+ case "ResourceInUseException":
227
+ case "com.amazonaws.applicationinsights#ResourceInUseException":
228
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
229
+ case "ResourceNotFoundException":
230
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
231
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
232
+ case "ValidationException":
233
+ case "com.amazonaws.applicationinsights#ValidationException":
234
+ throw await de_ValidationExceptionRes(parsedOutput, context);
235
+ default:
236
+ const parsedBody = parsedOutput.body;
237
+ return throwDefaultError({
238
+ output,
239
+ parsedBody,
240
+ errorCode,
241
+ });
242
+ }
243
+ };
167
244
  export const de_CreateApplicationCommand = async (output, context) => {
168
245
  if (output.statusCode >= 300) {
169
246
  return de_CreateApplicationCommandError(output, context);
@@ -717,6 +794,44 @@ const de_DescribeProblemObservationsCommandError = async (output, context) => {
717
794
  });
718
795
  }
719
796
  };
797
+ export const de_DescribeWorkloadCommand = async (output, context) => {
798
+ if (output.statusCode >= 300) {
799
+ return de_DescribeWorkloadCommandError(output, context);
800
+ }
801
+ const data = await parseBody(output.body, context);
802
+ let contents = {};
803
+ contents = _json(data);
804
+ const response = {
805
+ $metadata: deserializeMetadata(output),
806
+ ...contents,
807
+ };
808
+ return response;
809
+ };
810
+ const de_DescribeWorkloadCommandError = async (output, context) => {
811
+ const parsedOutput = {
812
+ ...output,
813
+ body: await parseErrorBody(output.body, context),
814
+ };
815
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
816
+ switch (errorCode) {
817
+ case "InternalServerException":
818
+ case "com.amazonaws.applicationinsights#InternalServerException":
819
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
820
+ case "ResourceNotFoundException":
821
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
822
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
823
+ case "ValidationException":
824
+ case "com.amazonaws.applicationinsights#ValidationException":
825
+ throw await de_ValidationExceptionRes(parsedOutput, context);
826
+ default:
827
+ const parsedBody = parsedOutput.body;
828
+ return throwDefaultError({
829
+ output,
830
+ parsedBody,
831
+ errorCode,
832
+ });
833
+ }
834
+ };
720
835
  export const de_ListApplicationsCommand = async (output, context) => {
721
836
  if (output.statusCode >= 300) {
722
837
  return de_ListApplicationsCommandError(output, context);
@@ -977,6 +1092,82 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
977
1092
  });
978
1093
  }
979
1094
  };
1095
+ export const de_ListWorkloadsCommand = async (output, context) => {
1096
+ if (output.statusCode >= 300) {
1097
+ return de_ListWorkloadsCommandError(output, context);
1098
+ }
1099
+ const data = await parseBody(output.body, context);
1100
+ let contents = {};
1101
+ contents = _json(data);
1102
+ const response = {
1103
+ $metadata: deserializeMetadata(output),
1104
+ ...contents,
1105
+ };
1106
+ return response;
1107
+ };
1108
+ const de_ListWorkloadsCommandError = async (output, context) => {
1109
+ const parsedOutput = {
1110
+ ...output,
1111
+ body: await parseErrorBody(output.body, context),
1112
+ };
1113
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1114
+ switch (errorCode) {
1115
+ case "InternalServerException":
1116
+ case "com.amazonaws.applicationinsights#InternalServerException":
1117
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1118
+ case "ResourceNotFoundException":
1119
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1120
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1121
+ case "ValidationException":
1122
+ case "com.amazonaws.applicationinsights#ValidationException":
1123
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1124
+ default:
1125
+ const parsedBody = parsedOutput.body;
1126
+ return throwDefaultError({
1127
+ output,
1128
+ parsedBody,
1129
+ errorCode,
1130
+ });
1131
+ }
1132
+ };
1133
+ export const de_RemoveWorkloadCommand = async (output, context) => {
1134
+ if (output.statusCode >= 300) {
1135
+ return de_RemoveWorkloadCommandError(output, context);
1136
+ }
1137
+ const data = await parseBody(output.body, context);
1138
+ let contents = {};
1139
+ contents = _json(data);
1140
+ const response = {
1141
+ $metadata: deserializeMetadata(output),
1142
+ ...contents,
1143
+ };
1144
+ return response;
1145
+ };
1146
+ const de_RemoveWorkloadCommandError = async (output, context) => {
1147
+ const parsedOutput = {
1148
+ ...output,
1149
+ body: await parseErrorBody(output.body, context),
1150
+ };
1151
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1152
+ switch (errorCode) {
1153
+ case "InternalServerException":
1154
+ case "com.amazonaws.applicationinsights#InternalServerException":
1155
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1156
+ case "ResourceNotFoundException":
1157
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1158
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1159
+ case "ValidationException":
1160
+ case "com.amazonaws.applicationinsights#ValidationException":
1161
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1162
+ default:
1163
+ const parsedBody = parsedOutput.body;
1164
+ return throwDefaultError({
1165
+ output,
1166
+ parsedBody,
1167
+ errorCode,
1168
+ });
1169
+ }
1170
+ };
980
1171
  export const de_TagResourceCommand = async (output, context) => {
981
1172
  if (output.statusCode >= 300) {
982
1173
  return de_TagResourceCommandError(output, context);
@@ -1208,6 +1399,82 @@ const de_UpdateLogPatternCommandError = async (output, context) => {
1208
1399
  });
1209
1400
  }
1210
1401
  };
1402
+ export const de_UpdateProblemCommand = async (output, context) => {
1403
+ if (output.statusCode >= 300) {
1404
+ return de_UpdateProblemCommandError(output, context);
1405
+ }
1406
+ const data = await parseBody(output.body, context);
1407
+ let contents = {};
1408
+ contents = _json(data);
1409
+ const response = {
1410
+ $metadata: deserializeMetadata(output),
1411
+ ...contents,
1412
+ };
1413
+ return response;
1414
+ };
1415
+ const de_UpdateProblemCommandError = async (output, context) => {
1416
+ const parsedOutput = {
1417
+ ...output,
1418
+ body: await parseErrorBody(output.body, context),
1419
+ };
1420
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1421
+ switch (errorCode) {
1422
+ case "InternalServerException":
1423
+ case "com.amazonaws.applicationinsights#InternalServerException":
1424
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1425
+ case "ResourceNotFoundException":
1426
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1427
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1428
+ case "ValidationException":
1429
+ case "com.amazonaws.applicationinsights#ValidationException":
1430
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1431
+ default:
1432
+ const parsedBody = parsedOutput.body;
1433
+ return throwDefaultError({
1434
+ output,
1435
+ parsedBody,
1436
+ errorCode,
1437
+ });
1438
+ }
1439
+ };
1440
+ export const de_UpdateWorkloadCommand = async (output, context) => {
1441
+ if (output.statusCode >= 300) {
1442
+ return de_UpdateWorkloadCommandError(output, context);
1443
+ }
1444
+ const data = await parseBody(output.body, context);
1445
+ let contents = {};
1446
+ contents = _json(data);
1447
+ const response = {
1448
+ $metadata: deserializeMetadata(output),
1449
+ ...contents,
1450
+ };
1451
+ return response;
1452
+ };
1453
+ const de_UpdateWorkloadCommandError = async (output, context) => {
1454
+ const parsedOutput = {
1455
+ ...output,
1456
+ body: await parseErrorBody(output.body, context),
1457
+ };
1458
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1459
+ switch (errorCode) {
1460
+ case "InternalServerException":
1461
+ case "com.amazonaws.applicationinsights#InternalServerException":
1462
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1463
+ case "ResourceNotFoundException":
1464
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1465
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1466
+ case "ValidationException":
1467
+ case "com.amazonaws.applicationinsights#ValidationException":
1468
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1469
+ default:
1470
+ const parsedBody = parsedOutput.body;
1471
+ return throwDefaultError({
1472
+ output,
1473
+ parsedBody,
1474
+ errorCode,
1475
+ });
1476
+ }
1477
+ };
1211
1478
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1212
1479
  const body = parsedOutput.body;
1213
1480
  const deserialized = _json(body);
@@ -1282,6 +1549,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1282
1549
  };
1283
1550
  const se_ListConfigurationHistoryRequest = (input, context) => {
1284
1551
  return take(input, {
1552
+ AccountId: [],
1285
1553
  EndTime: (_) => Math.round(_.getTime() / 1000),
1286
1554
  EventStatus: [],
1287
1555
  MaxResults: [],
@@ -1292,22 +1560,26 @@ const se_ListConfigurationHistoryRequest = (input, context) => {
1292
1560
  };
1293
1561
  const se_ListProblemsRequest = (input, context) => {
1294
1562
  return take(input, {
1563
+ AccountId: [],
1295
1564
  ComponentName: [],
1296
1565
  EndTime: (_) => Math.round(_.getTime() / 1000),
1297
1566
  MaxResults: [],
1298
1567
  NextToken: [],
1299
1568
  ResourceGroupName: [],
1300
1569
  StartTime: (_) => Math.round(_.getTime() / 1000),
1570
+ Visibility: [],
1301
1571
  });
1302
1572
  };
1303
1573
  const de_ConfigurationEvent = (output, context) => {
1304
1574
  return take(output, {
1575
+ AccountId: __expectString,
1305
1576
  EventDetail: __expectString,
1306
1577
  EventResourceName: __expectString,
1307
1578
  EventResourceType: __expectString,
1308
1579
  EventStatus: __expectString,
1309
1580
  EventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1310
1581
  MonitoredResourceARN: __expectString,
1582
+ ResourceGroupName: __expectString,
1311
1583
  });
1312
1584
  };
1313
1585
  const de_ConfigurationEventList = (output, context) => {
@@ -1341,6 +1613,7 @@ const de_ListConfigurationHistoryResponse = (output, context) => {
1341
1613
  };
1342
1614
  const de_ListProblemsResponse = (output, context) => {
1343
1615
  return take(output, {
1616
+ AccountId: __expectString,
1344
1617
  NextToken: __expectString,
1345
1618
  ProblemList: (_) => de_ProblemList(_, context),
1346
1619
  ResourceGroupName: __expectString,
@@ -1405,6 +1678,7 @@ const de_ObservationList = (output, context) => {
1405
1678
  };
1406
1679
  const de_Problem = (output, context) => {
1407
1680
  return take(output, {
1681
+ AccountId: __expectString,
1408
1682
  AffectedResource: __expectString,
1409
1683
  EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1410
1684
  Feedback: _json,
@@ -1412,11 +1686,13 @@ const de_Problem = (output, context) => {
1412
1686
  Insights: __expectString,
1413
1687
  LastRecurrenceTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1414
1688
  RecurringCount: __expectLong,
1689
+ ResolutionMethod: __expectString,
1415
1690
  ResourceGroupName: __expectString,
1416
1691
  SeverityLevel: __expectString,
1417
1692
  StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1418
1693
  Status: __expectString,
1419
1694
  Title: __expectString,
1695
+ Visibility: __expectString,
1420
1696
  });
1421
1697
  };
1422
1698
  const de_ProblemList = (output, context) => {
@@ -1,5 +1,6 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { ApplicationInsightsClient } from "./ApplicationInsightsClient";
3
+ import { AddWorkloadCommandInput, AddWorkloadCommandOutput } from "./commands/AddWorkloadCommand";
3
4
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
4
5
  import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
5
6
  import { CreateLogPatternCommandInput, CreateLogPatternCommandOutput } from "./commands/CreateLogPatternCommand";
@@ -14,6 +15,7 @@ import { DescribeLogPatternCommandInput, DescribeLogPatternCommandOutput } from
14
15
  import { DescribeObservationCommandInput, DescribeObservationCommandOutput } from "./commands/DescribeObservationCommand";
15
16
  import { DescribeProblemCommandInput, DescribeProblemCommandOutput } from "./commands/DescribeProblemCommand";
16
17
  import { DescribeProblemObservationsCommandInput, DescribeProblemObservationsCommandOutput } from "./commands/DescribeProblemObservationsCommand";
18
+ import { DescribeWorkloadCommandInput, DescribeWorkloadCommandOutput } from "./commands/DescribeWorkloadCommand";
17
19
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
18
20
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
19
21
  import { ListConfigurationHistoryCommandInput, ListConfigurationHistoryCommandOutput } from "./commands/ListConfigurationHistoryCommand";
@@ -21,13 +23,23 @@ import { ListLogPatternsCommandInput, ListLogPatternsCommandOutput } from "./com
21
23
  import { ListLogPatternSetsCommandInput, ListLogPatternSetsCommandOutput } from "./commands/ListLogPatternSetsCommand";
22
24
  import { ListProblemsCommandInput, ListProblemsCommandOutput } from "./commands/ListProblemsCommand";
23
25
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
26
+ import { ListWorkloadsCommandInput, ListWorkloadsCommandOutput } from "./commands/ListWorkloadsCommand";
27
+ import { RemoveWorkloadCommandInput, RemoveWorkloadCommandOutput } from "./commands/RemoveWorkloadCommand";
24
28
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
25
29
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
26
30
  import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
27
31
  import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
28
32
  import { UpdateComponentConfigurationCommandInput, UpdateComponentConfigurationCommandOutput } from "./commands/UpdateComponentConfigurationCommand";
29
33
  import { UpdateLogPatternCommandInput, UpdateLogPatternCommandOutput } from "./commands/UpdateLogPatternCommand";
34
+ import { UpdateProblemCommandInput, UpdateProblemCommandOutput } from "./commands/UpdateProblemCommand";
35
+ import { UpdateWorkloadCommandInput, UpdateWorkloadCommandOutput } from "./commands/UpdateWorkloadCommand";
30
36
  export interface ApplicationInsights {
37
+ /**
38
+ * @see {@link AddWorkloadCommand}
39
+ */
40
+ addWorkload(args: AddWorkloadCommandInput, options?: __HttpHandlerOptions): Promise<AddWorkloadCommandOutput>;
41
+ addWorkload(args: AddWorkloadCommandInput, cb: (err: any, data?: AddWorkloadCommandOutput) => void): void;
42
+ addWorkload(args: AddWorkloadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddWorkloadCommandOutput) => void): void;
31
43
  /**
32
44
  * @see {@link CreateApplicationCommand}
33
45
  */
@@ -112,6 +124,12 @@ export interface ApplicationInsights {
112
124
  describeProblemObservations(args: DescribeProblemObservationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeProblemObservationsCommandOutput>;
113
125
  describeProblemObservations(args: DescribeProblemObservationsCommandInput, cb: (err: any, data?: DescribeProblemObservationsCommandOutput) => void): void;
114
126
  describeProblemObservations(args: DescribeProblemObservationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeProblemObservationsCommandOutput) => void): void;
127
+ /**
128
+ * @see {@link DescribeWorkloadCommand}
129
+ */
130
+ describeWorkload(args: DescribeWorkloadCommandInput, options?: __HttpHandlerOptions): Promise<DescribeWorkloadCommandOutput>;
131
+ describeWorkload(args: DescribeWorkloadCommandInput, cb: (err: any, data?: DescribeWorkloadCommandOutput) => void): void;
132
+ describeWorkload(args: DescribeWorkloadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeWorkloadCommandOutput) => void): void;
115
133
  /**
116
134
  * @see {@link ListApplicationsCommand}
117
135
  */
@@ -154,6 +172,18 @@ export interface ApplicationInsights {
154
172
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
155
173
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
156
174
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
175
+ /**
176
+ * @see {@link ListWorkloadsCommand}
177
+ */
178
+ listWorkloads(args: ListWorkloadsCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkloadsCommandOutput>;
179
+ listWorkloads(args: ListWorkloadsCommandInput, cb: (err: any, data?: ListWorkloadsCommandOutput) => void): void;
180
+ listWorkloads(args: ListWorkloadsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkloadsCommandOutput) => void): void;
181
+ /**
182
+ * @see {@link RemoveWorkloadCommand}
183
+ */
184
+ removeWorkload(args: RemoveWorkloadCommandInput, options?: __HttpHandlerOptions): Promise<RemoveWorkloadCommandOutput>;
185
+ removeWorkload(args: RemoveWorkloadCommandInput, cb: (err: any, data?: RemoveWorkloadCommandOutput) => void): void;
186
+ removeWorkload(args: RemoveWorkloadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveWorkloadCommandOutput) => void): void;
157
187
  /**
158
188
  * @see {@link TagResourceCommand}
159
189
  */
@@ -190,6 +220,18 @@ export interface ApplicationInsights {
190
220
  updateLogPattern(args: UpdateLogPatternCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLogPatternCommandOutput>;
191
221
  updateLogPattern(args: UpdateLogPatternCommandInput, cb: (err: any, data?: UpdateLogPatternCommandOutput) => void): void;
192
222
  updateLogPattern(args: UpdateLogPatternCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLogPatternCommandOutput) => void): void;
223
+ /**
224
+ * @see {@link UpdateProblemCommand}
225
+ */
226
+ updateProblem(args: UpdateProblemCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProblemCommandOutput>;
227
+ updateProblem(args: UpdateProblemCommandInput, cb: (err: any, data?: UpdateProblemCommandOutput) => void): void;
228
+ updateProblem(args: UpdateProblemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProblemCommandOutput) => void): void;
229
+ /**
230
+ * @see {@link UpdateWorkloadCommand}
231
+ */
232
+ updateWorkload(args: UpdateWorkloadCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkloadCommandOutput>;
233
+ updateWorkload(args: UpdateWorkloadCommandInput, cb: (err: any, data?: UpdateWorkloadCommandOutput) => void): void;
234
+ updateWorkload(args: UpdateWorkloadCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkloadCommandOutput) => void): void;
193
235
  }
194
236
  /**
195
237
  * @public
@@ -8,6 +8,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"
8
8
  import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
9
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
10
  import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
11
+ import { AddWorkloadCommandInput, AddWorkloadCommandOutput } from "./commands/AddWorkloadCommand";
11
12
  import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
12
13
  import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
13
14
  import { CreateLogPatternCommandInput, CreateLogPatternCommandOutput } from "./commands/CreateLogPatternCommand";
@@ -22,6 +23,7 @@ import { DescribeLogPatternCommandInput, DescribeLogPatternCommandOutput } from
22
23
  import { DescribeObservationCommandInput, DescribeObservationCommandOutput } from "./commands/DescribeObservationCommand";
23
24
  import { DescribeProblemCommandInput, DescribeProblemCommandOutput } from "./commands/DescribeProblemCommand";
24
25
  import { DescribeProblemObservationsCommandInput, DescribeProblemObservationsCommandOutput } from "./commands/DescribeProblemObservationsCommand";
26
+ import { DescribeWorkloadCommandInput, DescribeWorkloadCommandOutput } from "./commands/DescribeWorkloadCommand";
25
27
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
26
28
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
27
29
  import { ListConfigurationHistoryCommandInput, ListConfigurationHistoryCommandOutput } from "./commands/ListConfigurationHistoryCommand";
@@ -29,22 +31,26 @@ import { ListLogPatternsCommandInput, ListLogPatternsCommandOutput } from "./com
29
31
  import { ListLogPatternSetsCommandInput, ListLogPatternSetsCommandOutput } from "./commands/ListLogPatternSetsCommand";
30
32
  import { ListProblemsCommandInput, ListProblemsCommandOutput } from "./commands/ListProblemsCommand";
31
33
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
34
+ import { ListWorkloadsCommandInput, ListWorkloadsCommandOutput } from "./commands/ListWorkloadsCommand";
35
+ import { RemoveWorkloadCommandInput, RemoveWorkloadCommandOutput } from "./commands/RemoveWorkloadCommand";
32
36
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
33
37
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
34
38
  import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from "./commands/UpdateApplicationCommand";
35
39
  import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
36
40
  import { UpdateComponentConfigurationCommandInput, UpdateComponentConfigurationCommandOutput } from "./commands/UpdateComponentConfigurationCommand";
37
41
  import { UpdateLogPatternCommandInput, UpdateLogPatternCommandOutput } from "./commands/UpdateLogPatternCommand";
42
+ import { UpdateProblemCommandInput, UpdateProblemCommandOutput } from "./commands/UpdateProblemCommand";
43
+ import { UpdateWorkloadCommandInput, UpdateWorkloadCommandOutput } from "./commands/UpdateWorkloadCommand";
38
44
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
39
45
  export { __Client };
40
46
  /**
41
47
  * @public
42
48
  */
43
- export type ServiceInputTypes = CreateApplicationCommandInput | CreateComponentCommandInput | CreateLogPatternCommandInput | DeleteApplicationCommandInput | DeleteComponentCommandInput | DeleteLogPatternCommandInput | DescribeApplicationCommandInput | DescribeComponentCommandInput | DescribeComponentConfigurationCommandInput | DescribeComponentConfigurationRecommendationCommandInput | DescribeLogPatternCommandInput | DescribeObservationCommandInput | DescribeProblemCommandInput | DescribeProblemObservationsCommandInput | ListApplicationsCommandInput | ListComponentsCommandInput | ListConfigurationHistoryCommandInput | ListLogPatternSetsCommandInput | ListLogPatternsCommandInput | ListProblemsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateComponentCommandInput | UpdateComponentConfigurationCommandInput | UpdateLogPatternCommandInput;
49
+ export type ServiceInputTypes = AddWorkloadCommandInput | CreateApplicationCommandInput | CreateComponentCommandInput | CreateLogPatternCommandInput | DeleteApplicationCommandInput | DeleteComponentCommandInput | DeleteLogPatternCommandInput | DescribeApplicationCommandInput | DescribeComponentCommandInput | DescribeComponentConfigurationCommandInput | DescribeComponentConfigurationRecommendationCommandInput | DescribeLogPatternCommandInput | DescribeObservationCommandInput | DescribeProblemCommandInput | DescribeProblemObservationsCommandInput | DescribeWorkloadCommandInput | ListApplicationsCommandInput | ListComponentsCommandInput | ListConfigurationHistoryCommandInput | ListLogPatternSetsCommandInput | ListLogPatternsCommandInput | ListProblemsCommandInput | ListTagsForResourceCommandInput | ListWorkloadsCommandInput | RemoveWorkloadCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateComponentCommandInput | UpdateComponentConfigurationCommandInput | UpdateLogPatternCommandInput | UpdateProblemCommandInput | UpdateWorkloadCommandInput;
44
50
  /**
45
51
  * @public
46
52
  */
47
- export type ServiceOutputTypes = CreateApplicationCommandOutput | CreateComponentCommandOutput | CreateLogPatternCommandOutput | DeleteApplicationCommandOutput | DeleteComponentCommandOutput | DeleteLogPatternCommandOutput | DescribeApplicationCommandOutput | DescribeComponentCommandOutput | DescribeComponentConfigurationCommandOutput | DescribeComponentConfigurationRecommendationCommandOutput | DescribeLogPatternCommandOutput | DescribeObservationCommandOutput | DescribeProblemCommandOutput | DescribeProblemObservationsCommandOutput | ListApplicationsCommandOutput | ListComponentsCommandOutput | ListConfigurationHistoryCommandOutput | ListLogPatternSetsCommandOutput | ListLogPatternsCommandOutput | ListProblemsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateComponentCommandOutput | UpdateComponentConfigurationCommandOutput | UpdateLogPatternCommandOutput;
53
+ export type ServiceOutputTypes = AddWorkloadCommandOutput | CreateApplicationCommandOutput | CreateComponentCommandOutput | CreateLogPatternCommandOutput | DeleteApplicationCommandOutput | DeleteComponentCommandOutput | DeleteLogPatternCommandOutput | DescribeApplicationCommandOutput | DescribeComponentCommandOutput | DescribeComponentConfigurationCommandOutput | DescribeComponentConfigurationRecommendationCommandOutput | DescribeLogPatternCommandOutput | DescribeObservationCommandOutput | DescribeProblemCommandOutput | DescribeProblemObservationsCommandOutput | DescribeWorkloadCommandOutput | ListApplicationsCommandOutput | ListComponentsCommandOutput | ListConfigurationHistoryCommandOutput | ListLogPatternSetsCommandOutput | ListLogPatternsCommandOutput | ListProblemsCommandOutput | ListTagsForResourceCommandOutput | ListWorkloadsCommandOutput | RemoveWorkloadCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateComponentCommandOutput | UpdateComponentConfigurationCommandOutput | UpdateLogPatternCommandOutput | UpdateProblemCommandOutput | UpdateWorkloadCommandOutput;
48
54
  /**
49
55
  * @public
50
56
  */
@@ -0,0 +1,96 @@
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 { AddWorkloadRequest, AddWorkloadResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link AddWorkloadCommand}.
14
+ */
15
+ export interface AddWorkloadCommandInput extends AddWorkloadRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AddWorkloadCommand}.
21
+ */
22
+ export interface AddWorkloadCommandOutput extends AddWorkloadResponse, __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, AddWorkloadCommand } from "@aws-sdk/client-application-insights"; // ES Modules import
31
+ * // const { ApplicationInsightsClient, AddWorkloadCommand } = require("@aws-sdk/client-application-insights"); // CommonJS import
32
+ * const client = new ApplicationInsightsClient(config);
33
+ * const input = { // AddWorkloadRequest
34
+ * ResourceGroupName: "STRING_VALUE", // required
35
+ * ComponentName: "STRING_VALUE", // required
36
+ * WorkloadConfiguration: { // WorkloadConfiguration
37
+ * WorkloadName: "STRING_VALUE",
38
+ * 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",
39
+ * Configuration: "STRING_VALUE",
40
+ * },
41
+ * };
42
+ * const command = new AddWorkloadCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // AddWorkloadResponse
45
+ * // WorkloadId: "STRING_VALUE",
46
+ * // WorkloadConfiguration: { // WorkloadConfiguration
47
+ * // WorkloadName: "STRING_VALUE",
48
+ * // 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",
49
+ * // Configuration: "STRING_VALUE",
50
+ * // },
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param AddWorkloadCommandInput - {@link AddWorkloadCommandInput}
56
+ * @returns {@link AddWorkloadCommandOutput}
57
+ * @see {@link AddWorkloadCommandInput} for command's `input` shape.
58
+ * @see {@link AddWorkloadCommandOutput} for command's `response` shape.
59
+ * @see {@link ApplicationInsightsClientResolvedConfig | config} for ApplicationInsightsClient's `config` shape.
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>The server encountered an internal error and is unable to complete the request.</p>
63
+ *
64
+ * @throws {@link ResourceInUseException} (client fault)
65
+ * <p>The resource is already created or in use.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>The resource does not exist in the customer account.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>The parameter is not valid.</p>
72
+ *
73
+ * @throws {@link ApplicationInsightsServiceException}
74
+ * <p>Base exception class for all service exceptions from ApplicationInsights service.</p>
75
+ *
76
+ */
77
+ export declare class AddWorkloadCommand extends $Command<AddWorkloadCommandInput, AddWorkloadCommandOutput, ApplicationInsightsClientResolvedConfig> {
78
+ readonly input: AddWorkloadCommandInput;
79
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
80
+ /**
81
+ * @public
82
+ */
83
+ constructor(input: AddWorkloadCommandInput);
84
+ /**
85
+ * @internal
86
+ */
87
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ApplicationInsightsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddWorkloadCommandInput, AddWorkloadCommandOutput>;
88
+ /**
89
+ * @internal
90
+ */
91
+ private serialize;
92
+ /**
93
+ * @internal
94
+ */
95
+ private deserialize;
96
+ }
@@ -43,12 +43,13 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
43
43
  * ],
44
44
  * AutoConfigEnabled: true || false,
45
45
  * AutoCreate: true || false,
46
- * GroupingType: "STRING_VALUE",
46
+ * GroupingType: "ACCOUNT_BASED",
47
47
  * };
48
48
  * const command = new CreateApplicationCommand(input);
49
49
  * const response = await client.send(command);
50
50
  * // { // CreateApplicationResponse
51
51
  * // ApplicationInfo: { // ApplicationInfo
52
+ * // AccountId: "STRING_VALUE",
52
53
  * // ResourceGroupName: "STRING_VALUE",
53
54
  * // LifeCycle: "STRING_VALUE",
54
55
  * // OpsItemSNSTopicArn: "STRING_VALUE",
@@ -56,7 +57,7 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
56
57
  * // CWEMonitorEnabled: true || false,
57
58
  * // Remarks: "STRING_VALUE",
58
59
  * // AutoConfigEnabled: true || false,
59
- * // DiscoveryType: "STRING_VALUE",
60
+ * // DiscoveryType: "RESOURCE_GROUP_BASED" || "ACCOUNT_BASED",
60
61
  * // },
61
62
  * // };
62
63
  *
@@ -32,11 +32,13 @@ export interface DescribeApplicationCommandOutput extends DescribeApplicationRes
32
32
  * const client = new ApplicationInsightsClient(config);
33
33
  * const input = { // DescribeApplicationRequest
34
34
  * ResourceGroupName: "STRING_VALUE", // required
35
+ * AccountId: "STRING_VALUE",
35
36
  * };
36
37
  * const command = new DescribeApplicationCommand(input);
37
38
  * const response = await client.send(command);
38
39
  * // { // DescribeApplicationResponse
39
40
  * // ApplicationInfo: { // ApplicationInfo
41
+ * // AccountId: "STRING_VALUE",
40
42
  * // ResourceGroupName: "STRING_VALUE",
41
43
  * // LifeCycle: "STRING_VALUE",
42
44
  * // OpsItemSNSTopicArn: "STRING_VALUE",
@@ -44,7 +46,7 @@ export interface DescribeApplicationCommandOutput extends DescribeApplicationRes
44
46
  * // CWEMonitorEnabled: true || false,
45
47
  * // Remarks: "STRING_VALUE",
46
48
  * // AutoConfigEnabled: true || false,
47
- * // DiscoveryType: "STRING_VALUE",
49
+ * // DiscoveryType: "RESOURCE_GROUP_BASED" || "ACCOUNT_BASED",
48
50
  * // },
49
51
  * // };
50
52
  *