@aws-sdk/client-application-insights 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ApplicationInsights = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const ApplicationInsightsClient_1 = require("./ApplicationInsightsClient");
5
6
  const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
6
7
  const CreateComponentCommand_1 = require("./commands/CreateComponentCommand");
@@ -29,384 +30,36 @@ const UpdateApplicationCommand_1 = require("./commands/UpdateApplicationCommand"
29
30
  const UpdateComponentCommand_1 = require("./commands/UpdateComponentCommand");
30
31
  const UpdateComponentConfigurationCommand_1 = require("./commands/UpdateComponentConfigurationCommand");
31
32
  const UpdateLogPatternCommand_1 = require("./commands/UpdateLogPatternCommand");
33
+ const commands = {
34
+ CreateApplicationCommand: CreateApplicationCommand_1.CreateApplicationCommand,
35
+ CreateComponentCommand: CreateComponentCommand_1.CreateComponentCommand,
36
+ CreateLogPatternCommand: CreateLogPatternCommand_1.CreateLogPatternCommand,
37
+ DeleteApplicationCommand: DeleteApplicationCommand_1.DeleteApplicationCommand,
38
+ DeleteComponentCommand: DeleteComponentCommand_1.DeleteComponentCommand,
39
+ DeleteLogPatternCommand: DeleteLogPatternCommand_1.DeleteLogPatternCommand,
40
+ DescribeApplicationCommand: DescribeApplicationCommand_1.DescribeApplicationCommand,
41
+ DescribeComponentCommand: DescribeComponentCommand_1.DescribeComponentCommand,
42
+ DescribeComponentConfigurationCommand: DescribeComponentConfigurationCommand_1.DescribeComponentConfigurationCommand,
43
+ DescribeComponentConfigurationRecommendationCommand: DescribeComponentConfigurationRecommendationCommand_1.DescribeComponentConfigurationRecommendationCommand,
44
+ DescribeLogPatternCommand: DescribeLogPatternCommand_1.DescribeLogPatternCommand,
45
+ DescribeObservationCommand: DescribeObservationCommand_1.DescribeObservationCommand,
46
+ DescribeProblemCommand: DescribeProblemCommand_1.DescribeProblemCommand,
47
+ DescribeProblemObservationsCommand: DescribeProblemObservationsCommand_1.DescribeProblemObservationsCommand,
48
+ ListApplicationsCommand: ListApplicationsCommand_1.ListApplicationsCommand,
49
+ ListComponentsCommand: ListComponentsCommand_1.ListComponentsCommand,
50
+ ListConfigurationHistoryCommand: ListConfigurationHistoryCommand_1.ListConfigurationHistoryCommand,
51
+ ListLogPatternsCommand: ListLogPatternsCommand_1.ListLogPatternsCommand,
52
+ ListLogPatternSetsCommand: ListLogPatternSetsCommand_1.ListLogPatternSetsCommand,
53
+ ListProblemsCommand: ListProblemsCommand_1.ListProblemsCommand,
54
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
55
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
56
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
57
+ UpdateApplicationCommand: UpdateApplicationCommand_1.UpdateApplicationCommand,
58
+ UpdateComponentCommand: UpdateComponentCommand_1.UpdateComponentCommand,
59
+ UpdateComponentConfigurationCommand: UpdateComponentConfigurationCommand_1.UpdateComponentConfigurationCommand,
60
+ UpdateLogPatternCommand: UpdateLogPatternCommand_1.UpdateLogPatternCommand,
61
+ };
32
62
  class ApplicationInsights extends ApplicationInsightsClient_1.ApplicationInsightsClient {
33
- createApplication(args, optionsOrCb, cb) {
34
- const command = new CreateApplicationCommand_1.CreateApplicationCommand(args);
35
- if (typeof optionsOrCb === "function") {
36
- this.send(command, optionsOrCb);
37
- }
38
- else if (typeof cb === "function") {
39
- if (typeof optionsOrCb !== "object")
40
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
- this.send(command, optionsOrCb || {}, cb);
42
- }
43
- else {
44
- return this.send(command, optionsOrCb);
45
- }
46
- }
47
- createComponent(args, optionsOrCb, cb) {
48
- const command = new CreateComponentCommand_1.CreateComponentCommand(args);
49
- if (typeof optionsOrCb === "function") {
50
- this.send(command, optionsOrCb);
51
- }
52
- else if (typeof cb === "function") {
53
- if (typeof optionsOrCb !== "object")
54
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
55
- this.send(command, optionsOrCb || {}, cb);
56
- }
57
- else {
58
- return this.send(command, optionsOrCb);
59
- }
60
- }
61
- createLogPattern(args, optionsOrCb, cb) {
62
- const command = new CreateLogPatternCommand_1.CreateLogPatternCommand(args);
63
- if (typeof optionsOrCb === "function") {
64
- this.send(command, optionsOrCb);
65
- }
66
- else if (typeof cb === "function") {
67
- if (typeof optionsOrCb !== "object")
68
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
69
- this.send(command, optionsOrCb || {}, cb);
70
- }
71
- else {
72
- return this.send(command, optionsOrCb);
73
- }
74
- }
75
- deleteApplication(args, optionsOrCb, cb) {
76
- const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args);
77
- if (typeof optionsOrCb === "function") {
78
- this.send(command, optionsOrCb);
79
- }
80
- else if (typeof cb === "function") {
81
- if (typeof optionsOrCb !== "object")
82
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
- this.send(command, optionsOrCb || {}, cb);
84
- }
85
- else {
86
- return this.send(command, optionsOrCb);
87
- }
88
- }
89
- deleteComponent(args, optionsOrCb, cb) {
90
- const command = new DeleteComponentCommand_1.DeleteComponentCommand(args);
91
- if (typeof optionsOrCb === "function") {
92
- this.send(command, optionsOrCb);
93
- }
94
- else if (typeof cb === "function") {
95
- if (typeof optionsOrCb !== "object")
96
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
- this.send(command, optionsOrCb || {}, cb);
98
- }
99
- else {
100
- return this.send(command, optionsOrCb);
101
- }
102
- }
103
- deleteLogPattern(args, optionsOrCb, cb) {
104
- const command = new DeleteLogPatternCommand_1.DeleteLogPatternCommand(args);
105
- if (typeof optionsOrCb === "function") {
106
- this.send(command, optionsOrCb);
107
- }
108
- else if (typeof cb === "function") {
109
- if (typeof optionsOrCb !== "object")
110
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
- this.send(command, optionsOrCb || {}, cb);
112
- }
113
- else {
114
- return this.send(command, optionsOrCb);
115
- }
116
- }
117
- describeApplication(args, optionsOrCb, cb) {
118
- const command = new DescribeApplicationCommand_1.DescribeApplicationCommand(args);
119
- if (typeof optionsOrCb === "function") {
120
- this.send(command, optionsOrCb);
121
- }
122
- else if (typeof cb === "function") {
123
- if (typeof optionsOrCb !== "object")
124
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
- this.send(command, optionsOrCb || {}, cb);
126
- }
127
- else {
128
- return this.send(command, optionsOrCb);
129
- }
130
- }
131
- describeComponent(args, optionsOrCb, cb) {
132
- const command = new DescribeComponentCommand_1.DescribeComponentCommand(args);
133
- if (typeof optionsOrCb === "function") {
134
- this.send(command, optionsOrCb);
135
- }
136
- else if (typeof cb === "function") {
137
- if (typeof optionsOrCb !== "object")
138
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
- this.send(command, optionsOrCb || {}, cb);
140
- }
141
- else {
142
- return this.send(command, optionsOrCb);
143
- }
144
- }
145
- describeComponentConfiguration(args, optionsOrCb, cb) {
146
- const command = new DescribeComponentConfigurationCommand_1.DescribeComponentConfigurationCommand(args);
147
- if (typeof optionsOrCb === "function") {
148
- this.send(command, optionsOrCb);
149
- }
150
- else if (typeof cb === "function") {
151
- if (typeof optionsOrCb !== "object")
152
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
- this.send(command, optionsOrCb || {}, cb);
154
- }
155
- else {
156
- return this.send(command, optionsOrCb);
157
- }
158
- }
159
- describeComponentConfigurationRecommendation(args, optionsOrCb, cb) {
160
- const command = new DescribeComponentConfigurationRecommendationCommand_1.DescribeComponentConfigurationRecommendationCommand(args);
161
- if (typeof optionsOrCb === "function") {
162
- this.send(command, optionsOrCb);
163
- }
164
- else if (typeof cb === "function") {
165
- if (typeof optionsOrCb !== "object")
166
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
- this.send(command, optionsOrCb || {}, cb);
168
- }
169
- else {
170
- return this.send(command, optionsOrCb);
171
- }
172
- }
173
- describeLogPattern(args, optionsOrCb, cb) {
174
- const command = new DescribeLogPatternCommand_1.DescribeLogPatternCommand(args);
175
- if (typeof optionsOrCb === "function") {
176
- this.send(command, optionsOrCb);
177
- }
178
- else if (typeof cb === "function") {
179
- if (typeof optionsOrCb !== "object")
180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
- this.send(command, optionsOrCb || {}, cb);
182
- }
183
- else {
184
- return this.send(command, optionsOrCb);
185
- }
186
- }
187
- describeObservation(args, optionsOrCb, cb) {
188
- const command = new DescribeObservationCommand_1.DescribeObservationCommand(args);
189
- if (typeof optionsOrCb === "function") {
190
- this.send(command, optionsOrCb);
191
- }
192
- else if (typeof cb === "function") {
193
- if (typeof optionsOrCb !== "object")
194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
- this.send(command, optionsOrCb || {}, cb);
196
- }
197
- else {
198
- return this.send(command, optionsOrCb);
199
- }
200
- }
201
- describeProblem(args, optionsOrCb, cb) {
202
- const command = new DescribeProblemCommand_1.DescribeProblemCommand(args);
203
- if (typeof optionsOrCb === "function") {
204
- this.send(command, optionsOrCb);
205
- }
206
- else if (typeof cb === "function") {
207
- if (typeof optionsOrCb !== "object")
208
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
209
- this.send(command, optionsOrCb || {}, cb);
210
- }
211
- else {
212
- return this.send(command, optionsOrCb);
213
- }
214
- }
215
- describeProblemObservations(args, optionsOrCb, cb) {
216
- const command = new DescribeProblemObservationsCommand_1.DescribeProblemObservationsCommand(args);
217
- if (typeof optionsOrCb === "function") {
218
- this.send(command, optionsOrCb);
219
- }
220
- else if (typeof cb === "function") {
221
- if (typeof optionsOrCb !== "object")
222
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
223
- this.send(command, optionsOrCb || {}, cb);
224
- }
225
- else {
226
- return this.send(command, optionsOrCb);
227
- }
228
- }
229
- listApplications(args, optionsOrCb, cb) {
230
- const command = new ListApplicationsCommand_1.ListApplicationsCommand(args);
231
- if (typeof optionsOrCb === "function") {
232
- this.send(command, optionsOrCb);
233
- }
234
- else if (typeof cb === "function") {
235
- if (typeof optionsOrCb !== "object")
236
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
237
- this.send(command, optionsOrCb || {}, cb);
238
- }
239
- else {
240
- return this.send(command, optionsOrCb);
241
- }
242
- }
243
- listComponents(args, optionsOrCb, cb) {
244
- const command = new ListComponentsCommand_1.ListComponentsCommand(args);
245
- if (typeof optionsOrCb === "function") {
246
- this.send(command, optionsOrCb);
247
- }
248
- else if (typeof cb === "function") {
249
- if (typeof optionsOrCb !== "object")
250
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
251
- this.send(command, optionsOrCb || {}, cb);
252
- }
253
- else {
254
- return this.send(command, optionsOrCb);
255
- }
256
- }
257
- listConfigurationHistory(args, optionsOrCb, cb) {
258
- const command = new ListConfigurationHistoryCommand_1.ListConfigurationHistoryCommand(args);
259
- if (typeof optionsOrCb === "function") {
260
- this.send(command, optionsOrCb);
261
- }
262
- else if (typeof cb === "function") {
263
- if (typeof optionsOrCb !== "object")
264
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
265
- this.send(command, optionsOrCb || {}, cb);
266
- }
267
- else {
268
- return this.send(command, optionsOrCb);
269
- }
270
- }
271
- listLogPatterns(args, optionsOrCb, cb) {
272
- const command = new ListLogPatternsCommand_1.ListLogPatternsCommand(args);
273
- if (typeof optionsOrCb === "function") {
274
- this.send(command, optionsOrCb);
275
- }
276
- else if (typeof cb === "function") {
277
- if (typeof optionsOrCb !== "object")
278
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
279
- this.send(command, optionsOrCb || {}, cb);
280
- }
281
- else {
282
- return this.send(command, optionsOrCb);
283
- }
284
- }
285
- listLogPatternSets(args, optionsOrCb, cb) {
286
- const command = new ListLogPatternSetsCommand_1.ListLogPatternSetsCommand(args);
287
- if (typeof optionsOrCb === "function") {
288
- this.send(command, optionsOrCb);
289
- }
290
- else if (typeof cb === "function") {
291
- if (typeof optionsOrCb !== "object")
292
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
293
- this.send(command, optionsOrCb || {}, cb);
294
- }
295
- else {
296
- return this.send(command, optionsOrCb);
297
- }
298
- }
299
- listProblems(args, optionsOrCb, cb) {
300
- const command = new ListProblemsCommand_1.ListProblemsCommand(args);
301
- if (typeof optionsOrCb === "function") {
302
- this.send(command, optionsOrCb);
303
- }
304
- else if (typeof cb === "function") {
305
- if (typeof optionsOrCb !== "object")
306
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
307
- this.send(command, optionsOrCb || {}, cb);
308
- }
309
- else {
310
- return this.send(command, optionsOrCb);
311
- }
312
- }
313
- listTagsForResource(args, optionsOrCb, cb) {
314
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
315
- if (typeof optionsOrCb === "function") {
316
- this.send(command, optionsOrCb);
317
- }
318
- else if (typeof cb === "function") {
319
- if (typeof optionsOrCb !== "object")
320
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
321
- this.send(command, optionsOrCb || {}, cb);
322
- }
323
- else {
324
- return this.send(command, optionsOrCb);
325
- }
326
- }
327
- tagResource(args, optionsOrCb, cb) {
328
- const command = new TagResourceCommand_1.TagResourceCommand(args);
329
- if (typeof optionsOrCb === "function") {
330
- this.send(command, optionsOrCb);
331
- }
332
- else if (typeof cb === "function") {
333
- if (typeof optionsOrCb !== "object")
334
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
335
- this.send(command, optionsOrCb || {}, cb);
336
- }
337
- else {
338
- return this.send(command, optionsOrCb);
339
- }
340
- }
341
- untagResource(args, optionsOrCb, cb) {
342
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
343
- if (typeof optionsOrCb === "function") {
344
- this.send(command, optionsOrCb);
345
- }
346
- else if (typeof cb === "function") {
347
- if (typeof optionsOrCb !== "object")
348
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
349
- this.send(command, optionsOrCb || {}, cb);
350
- }
351
- else {
352
- return this.send(command, optionsOrCb);
353
- }
354
- }
355
- updateApplication(args, optionsOrCb, cb) {
356
- const command = new UpdateApplicationCommand_1.UpdateApplicationCommand(args);
357
- if (typeof optionsOrCb === "function") {
358
- this.send(command, optionsOrCb);
359
- }
360
- else if (typeof cb === "function") {
361
- if (typeof optionsOrCb !== "object")
362
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
363
- this.send(command, optionsOrCb || {}, cb);
364
- }
365
- else {
366
- return this.send(command, optionsOrCb);
367
- }
368
- }
369
- updateComponent(args, optionsOrCb, cb) {
370
- const command = new UpdateComponentCommand_1.UpdateComponentCommand(args);
371
- if (typeof optionsOrCb === "function") {
372
- this.send(command, optionsOrCb);
373
- }
374
- else if (typeof cb === "function") {
375
- if (typeof optionsOrCb !== "object")
376
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
377
- this.send(command, optionsOrCb || {}, cb);
378
- }
379
- else {
380
- return this.send(command, optionsOrCb);
381
- }
382
- }
383
- updateComponentConfiguration(args, optionsOrCb, cb) {
384
- const command = new UpdateComponentConfigurationCommand_1.UpdateComponentConfigurationCommand(args);
385
- if (typeof optionsOrCb === "function") {
386
- this.send(command, optionsOrCb);
387
- }
388
- else if (typeof cb === "function") {
389
- if (typeof optionsOrCb !== "object")
390
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
391
- this.send(command, optionsOrCb || {}, cb);
392
- }
393
- else {
394
- return this.send(command, optionsOrCb);
395
- }
396
- }
397
- updateLogPattern(args, optionsOrCb, cb) {
398
- const command = new UpdateLogPatternCommand_1.UpdateLogPatternCommand(args);
399
- if (typeof optionsOrCb === "function") {
400
- this.send(command, optionsOrCb);
401
- }
402
- else if (typeof cb === "function") {
403
- if (typeof optionsOrCb !== "object")
404
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
405
- this.send(command, optionsOrCb || {}, cb);
406
- }
407
- else {
408
- return this.send(command, optionsOrCb);
409
- }
410
- }
411
63
  }
412
64
  exports.ApplicationInsights = ApplicationInsights;
65
+ (0, smithy_client_1.createAggregatedClient)(commands, ApplicationInsights);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { ApplicationInsightsClient } from "./ApplicationInsightsClient";
2
3
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
3
4
  import { CreateComponentCommand, } from "./commands/CreateComponentCommand";
@@ -26,383 +27,35 @@ import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
26
27
  import { UpdateComponentCommand, } from "./commands/UpdateComponentCommand";
27
28
  import { UpdateComponentConfigurationCommand, } from "./commands/UpdateComponentConfigurationCommand";
28
29
  import { UpdateLogPatternCommand, } from "./commands/UpdateLogPatternCommand";
30
+ const commands = {
31
+ CreateApplicationCommand,
32
+ CreateComponentCommand,
33
+ CreateLogPatternCommand,
34
+ DeleteApplicationCommand,
35
+ DeleteComponentCommand,
36
+ DeleteLogPatternCommand,
37
+ DescribeApplicationCommand,
38
+ DescribeComponentCommand,
39
+ DescribeComponentConfigurationCommand,
40
+ DescribeComponentConfigurationRecommendationCommand,
41
+ DescribeLogPatternCommand,
42
+ DescribeObservationCommand,
43
+ DescribeProblemCommand,
44
+ DescribeProblemObservationsCommand,
45
+ ListApplicationsCommand,
46
+ ListComponentsCommand,
47
+ ListConfigurationHistoryCommand,
48
+ ListLogPatternsCommand,
49
+ ListLogPatternSetsCommand,
50
+ ListProblemsCommand,
51
+ ListTagsForResourceCommand,
52
+ TagResourceCommand,
53
+ UntagResourceCommand,
54
+ UpdateApplicationCommand,
55
+ UpdateComponentCommand,
56
+ UpdateComponentConfigurationCommand,
57
+ UpdateLogPatternCommand,
58
+ };
29
59
  export class ApplicationInsights extends ApplicationInsightsClient {
30
- createApplication(args, optionsOrCb, cb) {
31
- const command = new CreateApplicationCommand(args);
32
- if (typeof optionsOrCb === "function") {
33
- this.send(command, optionsOrCb);
34
- }
35
- else if (typeof cb === "function") {
36
- if (typeof optionsOrCb !== "object")
37
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
- this.send(command, optionsOrCb || {}, cb);
39
- }
40
- else {
41
- return this.send(command, optionsOrCb);
42
- }
43
- }
44
- createComponent(args, optionsOrCb, cb) {
45
- const command = new CreateComponentCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- }
49
- else if (typeof cb === "function") {
50
- if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
- this.send(command, optionsOrCb || {}, cb);
53
- }
54
- else {
55
- return this.send(command, optionsOrCb);
56
- }
57
- }
58
- createLogPattern(args, optionsOrCb, cb) {
59
- const command = new CreateLogPatternCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- }
63
- else if (typeof cb === "function") {
64
- if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
- this.send(command, optionsOrCb || {}, cb);
67
- }
68
- else {
69
- return this.send(command, optionsOrCb);
70
- }
71
- }
72
- deleteApplication(args, optionsOrCb, cb) {
73
- const command = new DeleteApplicationCommand(args);
74
- if (typeof optionsOrCb === "function") {
75
- this.send(command, optionsOrCb);
76
- }
77
- else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object")
79
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
- this.send(command, optionsOrCb || {}, cb);
81
- }
82
- else {
83
- return this.send(command, optionsOrCb);
84
- }
85
- }
86
- deleteComponent(args, optionsOrCb, cb) {
87
- const command = new DeleteComponentCommand(args);
88
- if (typeof optionsOrCb === "function") {
89
- this.send(command, optionsOrCb);
90
- }
91
- else if (typeof cb === "function") {
92
- if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
- this.send(command, optionsOrCb || {}, cb);
95
- }
96
- else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
- deleteLogPattern(args, optionsOrCb, cb) {
101
- const command = new DeleteLogPatternCommand(args);
102
- if (typeof optionsOrCb === "function") {
103
- this.send(command, optionsOrCb);
104
- }
105
- else if (typeof cb === "function") {
106
- if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
- this.send(command, optionsOrCb || {}, cb);
109
- }
110
- else {
111
- return this.send(command, optionsOrCb);
112
- }
113
- }
114
- describeApplication(args, optionsOrCb, cb) {
115
- const command = new DescribeApplicationCommand(args);
116
- if (typeof optionsOrCb === "function") {
117
- this.send(command, optionsOrCb);
118
- }
119
- else if (typeof cb === "function") {
120
- if (typeof optionsOrCb !== "object")
121
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
- this.send(command, optionsOrCb || {}, cb);
123
- }
124
- else {
125
- return this.send(command, optionsOrCb);
126
- }
127
- }
128
- describeComponent(args, optionsOrCb, cb) {
129
- const command = new DescribeComponentCommand(args);
130
- if (typeof optionsOrCb === "function") {
131
- this.send(command, optionsOrCb);
132
- }
133
- else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
- this.send(command, optionsOrCb || {}, cb);
137
- }
138
- else {
139
- return this.send(command, optionsOrCb);
140
- }
141
- }
142
- describeComponentConfiguration(args, optionsOrCb, cb) {
143
- const command = new DescribeComponentConfigurationCommand(args);
144
- if (typeof optionsOrCb === "function") {
145
- this.send(command, optionsOrCb);
146
- }
147
- else if (typeof cb === "function") {
148
- if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- }
152
- else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
- describeComponentConfigurationRecommendation(args, optionsOrCb, cb) {
157
- const command = new DescribeComponentConfigurationRecommendationCommand(args);
158
- if (typeof optionsOrCb === "function") {
159
- this.send(command, optionsOrCb);
160
- }
161
- else if (typeof cb === "function") {
162
- if (typeof optionsOrCb !== "object")
163
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
- this.send(command, optionsOrCb || {}, cb);
165
- }
166
- else {
167
- return this.send(command, optionsOrCb);
168
- }
169
- }
170
- describeLogPattern(args, optionsOrCb, cb) {
171
- const command = new DescribeLogPatternCommand(args);
172
- if (typeof optionsOrCb === "function") {
173
- this.send(command, optionsOrCb);
174
- }
175
- else if (typeof cb === "function") {
176
- if (typeof optionsOrCb !== "object")
177
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
- this.send(command, optionsOrCb || {}, cb);
179
- }
180
- else {
181
- return this.send(command, optionsOrCb);
182
- }
183
- }
184
- describeObservation(args, optionsOrCb, cb) {
185
- const command = new DescribeObservationCommand(args);
186
- if (typeof optionsOrCb === "function") {
187
- this.send(command, optionsOrCb);
188
- }
189
- else if (typeof cb === "function") {
190
- if (typeof optionsOrCb !== "object")
191
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
- this.send(command, optionsOrCb || {}, cb);
193
- }
194
- else {
195
- return this.send(command, optionsOrCb);
196
- }
197
- }
198
- describeProblem(args, optionsOrCb, cb) {
199
- const command = new DescribeProblemCommand(args);
200
- if (typeof optionsOrCb === "function") {
201
- this.send(command, optionsOrCb);
202
- }
203
- else if (typeof cb === "function") {
204
- if (typeof optionsOrCb !== "object")
205
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
- this.send(command, optionsOrCb || {}, cb);
207
- }
208
- else {
209
- return this.send(command, optionsOrCb);
210
- }
211
- }
212
- describeProblemObservations(args, optionsOrCb, cb) {
213
- const command = new DescribeProblemObservationsCommand(args);
214
- if (typeof optionsOrCb === "function") {
215
- this.send(command, optionsOrCb);
216
- }
217
- else if (typeof cb === "function") {
218
- if (typeof optionsOrCb !== "object")
219
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
- this.send(command, optionsOrCb || {}, cb);
221
- }
222
- else {
223
- return this.send(command, optionsOrCb);
224
- }
225
- }
226
- listApplications(args, optionsOrCb, cb) {
227
- const command = new ListApplicationsCommand(args);
228
- if (typeof optionsOrCb === "function") {
229
- this.send(command, optionsOrCb);
230
- }
231
- else if (typeof cb === "function") {
232
- if (typeof optionsOrCb !== "object")
233
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
- this.send(command, optionsOrCb || {}, cb);
235
- }
236
- else {
237
- return this.send(command, optionsOrCb);
238
- }
239
- }
240
- listComponents(args, optionsOrCb, cb) {
241
- const command = new ListComponentsCommand(args);
242
- if (typeof optionsOrCb === "function") {
243
- this.send(command, optionsOrCb);
244
- }
245
- else if (typeof cb === "function") {
246
- if (typeof optionsOrCb !== "object")
247
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
- this.send(command, optionsOrCb || {}, cb);
249
- }
250
- else {
251
- return this.send(command, optionsOrCb);
252
- }
253
- }
254
- listConfigurationHistory(args, optionsOrCb, cb) {
255
- const command = new ListConfigurationHistoryCommand(args);
256
- if (typeof optionsOrCb === "function") {
257
- this.send(command, optionsOrCb);
258
- }
259
- else if (typeof cb === "function") {
260
- if (typeof optionsOrCb !== "object")
261
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
- this.send(command, optionsOrCb || {}, cb);
263
- }
264
- else {
265
- return this.send(command, optionsOrCb);
266
- }
267
- }
268
- listLogPatterns(args, optionsOrCb, cb) {
269
- const command = new ListLogPatternsCommand(args);
270
- if (typeof optionsOrCb === "function") {
271
- this.send(command, optionsOrCb);
272
- }
273
- else if (typeof cb === "function") {
274
- if (typeof optionsOrCb !== "object")
275
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
- this.send(command, optionsOrCb || {}, cb);
277
- }
278
- else {
279
- return this.send(command, optionsOrCb);
280
- }
281
- }
282
- listLogPatternSets(args, optionsOrCb, cb) {
283
- const command = new ListLogPatternSetsCommand(args);
284
- if (typeof optionsOrCb === "function") {
285
- this.send(command, optionsOrCb);
286
- }
287
- else if (typeof cb === "function") {
288
- if (typeof optionsOrCb !== "object")
289
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
- this.send(command, optionsOrCb || {}, cb);
291
- }
292
- else {
293
- return this.send(command, optionsOrCb);
294
- }
295
- }
296
- listProblems(args, optionsOrCb, cb) {
297
- const command = new ListProblemsCommand(args);
298
- if (typeof optionsOrCb === "function") {
299
- this.send(command, optionsOrCb);
300
- }
301
- else if (typeof cb === "function") {
302
- if (typeof optionsOrCb !== "object")
303
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
- this.send(command, optionsOrCb || {}, cb);
305
- }
306
- else {
307
- return this.send(command, optionsOrCb);
308
- }
309
- }
310
- listTagsForResource(args, optionsOrCb, cb) {
311
- const command = new ListTagsForResourceCommand(args);
312
- if (typeof optionsOrCb === "function") {
313
- this.send(command, optionsOrCb);
314
- }
315
- else if (typeof cb === "function") {
316
- if (typeof optionsOrCb !== "object")
317
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
- this.send(command, optionsOrCb || {}, cb);
319
- }
320
- else {
321
- return this.send(command, optionsOrCb);
322
- }
323
- }
324
- tagResource(args, optionsOrCb, cb) {
325
- const command = new TagResourceCommand(args);
326
- if (typeof optionsOrCb === "function") {
327
- this.send(command, optionsOrCb);
328
- }
329
- else if (typeof cb === "function") {
330
- if (typeof optionsOrCb !== "object")
331
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
- this.send(command, optionsOrCb || {}, cb);
333
- }
334
- else {
335
- return this.send(command, optionsOrCb);
336
- }
337
- }
338
- untagResource(args, optionsOrCb, cb) {
339
- const command = new UntagResourceCommand(args);
340
- if (typeof optionsOrCb === "function") {
341
- this.send(command, optionsOrCb);
342
- }
343
- else if (typeof cb === "function") {
344
- if (typeof optionsOrCb !== "object")
345
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
- this.send(command, optionsOrCb || {}, cb);
347
- }
348
- else {
349
- return this.send(command, optionsOrCb);
350
- }
351
- }
352
- updateApplication(args, optionsOrCb, cb) {
353
- const command = new UpdateApplicationCommand(args);
354
- if (typeof optionsOrCb === "function") {
355
- this.send(command, optionsOrCb);
356
- }
357
- else if (typeof cb === "function") {
358
- if (typeof optionsOrCb !== "object")
359
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
360
- this.send(command, optionsOrCb || {}, cb);
361
- }
362
- else {
363
- return this.send(command, optionsOrCb);
364
- }
365
- }
366
- updateComponent(args, optionsOrCb, cb) {
367
- const command = new UpdateComponentCommand(args);
368
- if (typeof optionsOrCb === "function") {
369
- this.send(command, optionsOrCb);
370
- }
371
- else if (typeof cb === "function") {
372
- if (typeof optionsOrCb !== "object")
373
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
374
- this.send(command, optionsOrCb || {}, cb);
375
- }
376
- else {
377
- return this.send(command, optionsOrCb);
378
- }
379
- }
380
- updateComponentConfiguration(args, optionsOrCb, cb) {
381
- const command = new UpdateComponentConfigurationCommand(args);
382
- if (typeof optionsOrCb === "function") {
383
- this.send(command, optionsOrCb);
384
- }
385
- else if (typeof cb === "function") {
386
- if (typeof optionsOrCb !== "object")
387
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
388
- this.send(command, optionsOrCb || {}, cb);
389
- }
390
- else {
391
- return this.send(command, optionsOrCb);
392
- }
393
- }
394
- updateLogPattern(args, optionsOrCb, cb) {
395
- const command = new UpdateLogPatternCommand(args);
396
- if (typeof optionsOrCb === "function") {
397
- this.send(command, optionsOrCb);
398
- }
399
- else if (typeof cb === "function") {
400
- if (typeof optionsOrCb !== "object")
401
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
402
- this.send(command, optionsOrCb || {}, cb);
403
- }
404
- else {
405
- return this.send(command, optionsOrCb);
406
- }
407
- }
408
60
  }
61
+ createAggregatedClient(commands, ApplicationInsights);
@@ -27,241 +27,184 @@ import { UpdateApplicationCommandInput, UpdateApplicationCommandOutput } from ".
27
27
  import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
28
28
  import { UpdateComponentConfigurationCommandInput, UpdateComponentConfigurationCommandOutput } from "./commands/UpdateComponentConfigurationCommand";
29
29
  import { UpdateLogPatternCommandInput, UpdateLogPatternCommandOutput } from "./commands/UpdateLogPatternCommand";
30
- /**
31
- * @public
32
- * <fullname>Amazon CloudWatch Application Insights</fullname>
33
- * <p> Amazon CloudWatch Application Insights is a service that helps you detect common
34
- * problems with your applications. It enables you to pinpoint the source of issues in your
35
- * applications (built with technologies such as Microsoft IIS, .NET, and Microsoft SQL
36
- * Server), by providing key insights into detected problems.</p>
37
- * <p>After you onboard your application, CloudWatch Application Insights identifies,
38
- * recommends, and sets up metrics and logs. It continuously analyzes and correlates your
39
- * metrics and logs for unusual behavior to surface actionable problems with your application.
40
- * For example, if your application is slow and unresponsive and leading to HTTP 500 errors in
41
- * your Application Load Balancer (ALB), Application Insights informs you that a memory
42
- * pressure problem with your SQL Server database is occurring. It bases this analysis on
43
- * impactful metrics and log errors. </p>
44
- */
45
- export declare class ApplicationInsights extends ApplicationInsightsClient {
30
+ export interface ApplicationInsights {
46
31
  /**
47
- * @public
48
- * <p>Adds an application that is created from a resource group.</p>
32
+ * @see {@link CreateApplicationCommand}
49
33
  */
50
34
  createApplication(args: CreateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<CreateApplicationCommandOutput>;
51
35
  createApplication(args: CreateApplicationCommandInput, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
52
36
  createApplication(args: CreateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
53
37
  /**
54
- * @public
55
- * <p>Creates a custom component by grouping similar standalone instances to monitor.</p>
38
+ * @see {@link CreateComponentCommand}
56
39
  */
57
40
  createComponent(args: CreateComponentCommandInput, options?: __HttpHandlerOptions): Promise<CreateComponentCommandOutput>;
58
41
  createComponent(args: CreateComponentCommandInput, cb: (err: any, data?: CreateComponentCommandOutput) => void): void;
59
42
  createComponent(args: CreateComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateComponentCommandOutput) => void): void;
60
43
  /**
61
- * @public
62
- * <p>Adds an log pattern to a <code>LogPatternSet</code>.</p>
44
+ * @see {@link CreateLogPatternCommand}
63
45
  */
64
46
  createLogPattern(args: CreateLogPatternCommandInput, options?: __HttpHandlerOptions): Promise<CreateLogPatternCommandOutput>;
65
47
  createLogPattern(args: CreateLogPatternCommandInput, cb: (err: any, data?: CreateLogPatternCommandOutput) => void): void;
66
48
  createLogPattern(args: CreateLogPatternCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLogPatternCommandOutput) => void): void;
67
49
  /**
68
- * @public
69
- * <p>Removes the specified application from monitoring. Does not delete the
70
- * application.</p>
50
+ * @see {@link DeleteApplicationCommand}
71
51
  */
72
52
  deleteApplication(args: DeleteApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteApplicationCommandOutput>;
73
53
  deleteApplication(args: DeleteApplicationCommandInput, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
74
54
  deleteApplication(args: DeleteApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
75
55
  /**
76
- * @public
77
- * <p>Ungroups a custom component. When you ungroup custom components, all applicable monitors
78
- * that are set up for the component are removed and the instances revert to their standalone
79
- * status.</p>
56
+ * @see {@link DeleteComponentCommand}
80
57
  */
81
58
  deleteComponent(args: DeleteComponentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteComponentCommandOutput>;
82
59
  deleteComponent(args: DeleteComponentCommandInput, cb: (err: any, data?: DeleteComponentCommandOutput) => void): void;
83
60
  deleteComponent(args: DeleteComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteComponentCommandOutput) => void): void;
84
61
  /**
85
- * @public
86
- * <p>Removes the specified log pattern from a <code>LogPatternSet</code>.</p>
62
+ * @see {@link DeleteLogPatternCommand}
87
63
  */
88
64
  deleteLogPattern(args: DeleteLogPatternCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLogPatternCommandOutput>;
89
65
  deleteLogPattern(args: DeleteLogPatternCommandInput, cb: (err: any, data?: DeleteLogPatternCommandOutput) => void): void;
90
66
  deleteLogPattern(args: DeleteLogPatternCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLogPatternCommandOutput) => void): void;
91
67
  /**
92
- * @public
93
- * <p>Describes the application.</p>
68
+ * @see {@link DescribeApplicationCommand}
94
69
  */
95
70
  describeApplication(args: DescribeApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeApplicationCommandOutput>;
96
71
  describeApplication(args: DescribeApplicationCommandInput, cb: (err: any, data?: DescribeApplicationCommandOutput) => void): void;
97
72
  describeApplication(args: DescribeApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeApplicationCommandOutput) => void): void;
98
73
  /**
99
- * @public
100
- * <p>Describes a component and lists the resources that are grouped together in a
101
- * component.</p>
74
+ * @see {@link DescribeComponentCommand}
102
75
  */
103
76
  describeComponent(args: DescribeComponentCommandInput, options?: __HttpHandlerOptions): Promise<DescribeComponentCommandOutput>;
104
77
  describeComponent(args: DescribeComponentCommandInput, cb: (err: any, data?: DescribeComponentCommandOutput) => void): void;
105
78
  describeComponent(args: DescribeComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeComponentCommandOutput) => void): void;
106
79
  /**
107
- * @public
108
- * <p>Describes the monitoring configuration of the component.</p>
80
+ * @see {@link DescribeComponentConfigurationCommand}
109
81
  */
110
82
  describeComponentConfiguration(args: DescribeComponentConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeComponentConfigurationCommandOutput>;
111
83
  describeComponentConfiguration(args: DescribeComponentConfigurationCommandInput, cb: (err: any, data?: DescribeComponentConfigurationCommandOutput) => void): void;
112
84
  describeComponentConfiguration(args: DescribeComponentConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeComponentConfigurationCommandOutput) => void): void;
113
85
  /**
114
- * @public
115
- * <p>Describes the recommended monitoring configuration of the component.</p>
86
+ * @see {@link DescribeComponentConfigurationRecommendationCommand}
116
87
  */
117
88
  describeComponentConfigurationRecommendation(args: DescribeComponentConfigurationRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeComponentConfigurationRecommendationCommandOutput>;
118
89
  describeComponentConfigurationRecommendation(args: DescribeComponentConfigurationRecommendationCommandInput, cb: (err: any, data?: DescribeComponentConfigurationRecommendationCommandOutput) => void): void;
119
90
  describeComponentConfigurationRecommendation(args: DescribeComponentConfigurationRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeComponentConfigurationRecommendationCommandOutput) => void): void;
120
91
  /**
121
- * @public
122
- * <p>Describe a specific log pattern from a <code>LogPatternSet</code>.</p>
92
+ * @see {@link DescribeLogPatternCommand}
123
93
  */
124
94
  describeLogPattern(args: DescribeLogPatternCommandInput, options?: __HttpHandlerOptions): Promise<DescribeLogPatternCommandOutput>;
125
95
  describeLogPattern(args: DescribeLogPatternCommandInput, cb: (err: any, data?: DescribeLogPatternCommandOutput) => void): void;
126
96
  describeLogPattern(args: DescribeLogPatternCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeLogPatternCommandOutput) => void): void;
127
97
  /**
128
- * @public
129
- * <p>Describes an anomaly or error with the application.</p>
98
+ * @see {@link DescribeObservationCommand}
130
99
  */
131
100
  describeObservation(args: DescribeObservationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeObservationCommandOutput>;
132
101
  describeObservation(args: DescribeObservationCommandInput, cb: (err: any, data?: DescribeObservationCommandOutput) => void): void;
133
102
  describeObservation(args: DescribeObservationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeObservationCommandOutput) => void): void;
134
103
  /**
135
- * @public
136
- * <p>Describes an application problem.</p>
104
+ * @see {@link DescribeProblemCommand}
137
105
  */
138
106
  describeProblem(args: DescribeProblemCommandInput, options?: __HttpHandlerOptions): Promise<DescribeProblemCommandOutput>;
139
107
  describeProblem(args: DescribeProblemCommandInput, cb: (err: any, data?: DescribeProblemCommandOutput) => void): void;
140
108
  describeProblem(args: DescribeProblemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeProblemCommandOutput) => void): void;
141
109
  /**
142
- * @public
143
- * <p>Describes the anomalies or errors associated with the problem.</p>
110
+ * @see {@link DescribeProblemObservationsCommand}
144
111
  */
145
112
  describeProblemObservations(args: DescribeProblemObservationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeProblemObservationsCommandOutput>;
146
113
  describeProblemObservations(args: DescribeProblemObservationsCommandInput, cb: (err: any, data?: DescribeProblemObservationsCommandOutput) => void): void;
147
114
  describeProblemObservations(args: DescribeProblemObservationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeProblemObservationsCommandOutput) => void): void;
148
115
  /**
149
- * @public
150
- * <p>Lists the IDs of the applications that you are monitoring. </p>
116
+ * @see {@link ListApplicationsCommand}
151
117
  */
152
118
  listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
153
119
  listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
154
120
  listApplications(args: ListApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
155
121
  /**
156
- * @public
157
- * <p>Lists the auto-grouped, standalone, and custom components of the application.</p>
122
+ * @see {@link ListComponentsCommand}
158
123
  */
159
124
  listComponents(args: ListComponentsCommandInput, options?: __HttpHandlerOptions): Promise<ListComponentsCommandOutput>;
160
125
  listComponents(args: ListComponentsCommandInput, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
161
126
  listComponents(args: ListComponentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
162
127
  /**
163
- * @public
164
- * <p> Lists the INFO, WARN, and ERROR events for periodic configuration updates performed by
165
- * Application Insights. Examples of events represented are: </p>
166
- * <ul>
167
- * <li>
168
- * <p>INFO: creating a new alarm or updating an alarm threshold.</p>
169
- * </li>
170
- * <li>
171
- * <p>WARN: alarm not created due to insufficient data points used to predict
172
- * thresholds.</p>
173
- * </li>
174
- * <li>
175
- * <p>ERROR: alarm not created due to permission errors or exceeding quotas. </p>
176
- * </li>
177
- * </ul>
128
+ * @see {@link ListConfigurationHistoryCommand}
178
129
  */
179
130
  listConfigurationHistory(args: ListConfigurationHistoryCommandInput, options?: __HttpHandlerOptions): Promise<ListConfigurationHistoryCommandOutput>;
180
131
  listConfigurationHistory(args: ListConfigurationHistoryCommandInput, cb: (err: any, data?: ListConfigurationHistoryCommandOutput) => void): void;
181
132
  listConfigurationHistory(args: ListConfigurationHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListConfigurationHistoryCommandOutput) => void): void;
182
133
  /**
183
- * @public
184
- * <p>Lists the log patterns in the specific log <code>LogPatternSet</code>.</p>
134
+ * @see {@link ListLogPatternsCommand}
185
135
  */
186
136
  listLogPatterns(args: ListLogPatternsCommandInput, options?: __HttpHandlerOptions): Promise<ListLogPatternsCommandOutput>;
187
137
  listLogPatterns(args: ListLogPatternsCommandInput, cb: (err: any, data?: ListLogPatternsCommandOutput) => void): void;
188
138
  listLogPatterns(args: ListLogPatternsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLogPatternsCommandOutput) => void): void;
189
139
  /**
190
- * @public
191
- * <p>Lists the log pattern sets in the specific application.</p>
140
+ * @see {@link ListLogPatternSetsCommand}
192
141
  */
193
142
  listLogPatternSets(args: ListLogPatternSetsCommandInput, options?: __HttpHandlerOptions): Promise<ListLogPatternSetsCommandOutput>;
194
143
  listLogPatternSets(args: ListLogPatternSetsCommandInput, cb: (err: any, data?: ListLogPatternSetsCommandOutput) => void): void;
195
144
  listLogPatternSets(args: ListLogPatternSetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLogPatternSetsCommandOutput) => void): void;
196
145
  /**
197
- * @public
198
- * <p>Lists the problems with your application.</p>
146
+ * @see {@link ListProblemsCommand}
199
147
  */
200
148
  listProblems(args: ListProblemsCommandInput, options?: __HttpHandlerOptions): Promise<ListProblemsCommandOutput>;
201
149
  listProblems(args: ListProblemsCommandInput, cb: (err: any, data?: ListProblemsCommandOutput) => void): void;
202
150
  listProblems(args: ListProblemsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProblemsCommandOutput) => void): void;
203
151
  /**
204
- * @public
205
- * <p>Retrieve a list of the tags (keys and values) that are associated with a specified
206
- * application. A <i>tag</i> is a label that you optionally define and associate
207
- * with an application. Each tag consists of a required <i>tag key</i> and an
208
- * optional associated <i>tag value</i>. A tag key is a general label that acts
209
- * as a category for more specific tag values. A tag value acts as a descriptor within a tag
210
- * key.</p>
152
+ * @see {@link ListTagsForResourceCommand}
211
153
  */
212
154
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
213
155
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
214
156
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
215
157
  /**
216
- * @public
217
- * <p>Add one or more tags (keys and values) to a specified application. A
218
- * <i>tag</i> is a label that you optionally define and associate with an
219
- * application. Tags can help you categorize and manage application in different ways, such as
220
- * by purpose, owner, environment, or other criteria. </p>
221
- * <p>Each tag consists of a required <i>tag key</i> and an associated
222
- * <i>tag value</i>, both of which you define. A tag key is a general label
223
- * that acts as a category for more specific tag values. A tag value acts as a descriptor
224
- * within a tag key.</p>
158
+ * @see {@link TagResourceCommand}
225
159
  */
226
160
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
227
161
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
228
162
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
229
163
  /**
230
- * @public
231
- * <p>Remove one or more tags (keys and values) from a specified application.</p>
164
+ * @see {@link UntagResourceCommand}
232
165
  */
233
166
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
234
167
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
235
168
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
236
169
  /**
237
- * @public
238
- * <p>Updates the application.</p>
170
+ * @see {@link UpdateApplicationCommand}
239
171
  */
240
172
  updateApplication(args: UpdateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateApplicationCommandOutput>;
241
173
  updateApplication(args: UpdateApplicationCommandInput, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
242
174
  updateApplication(args: UpdateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateApplicationCommandOutput) => void): void;
243
175
  /**
244
- * @public
245
- * <p>Updates the custom component name and/or the list of resources that make up the
246
- * component.</p>
176
+ * @see {@link UpdateComponentCommand}
247
177
  */
248
178
  updateComponent(args: UpdateComponentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateComponentCommandOutput>;
249
179
  updateComponent(args: UpdateComponentCommandInput, cb: (err: any, data?: UpdateComponentCommandOutput) => void): void;
250
180
  updateComponent(args: UpdateComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateComponentCommandOutput) => void): void;
251
181
  /**
252
- * @public
253
- * <p>Updates the monitoring configurations for the component. The configuration input
254
- * parameter is an escaped JSON of the configuration and should match the schema of what is
255
- * returned by <code>DescribeComponentConfigurationRecommendation</code>. </p>
182
+ * @see {@link UpdateComponentConfigurationCommand}
256
183
  */
257
184
  updateComponentConfiguration(args: UpdateComponentConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateComponentConfigurationCommandOutput>;
258
185
  updateComponentConfiguration(args: UpdateComponentConfigurationCommandInput, cb: (err: any, data?: UpdateComponentConfigurationCommandOutput) => void): void;
259
186
  updateComponentConfiguration(args: UpdateComponentConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateComponentConfigurationCommandOutput) => void): void;
260
187
  /**
261
- * @public
262
- * <p>Adds a log pattern to a <code>LogPatternSet</code>.</p>
188
+ * @see {@link UpdateLogPatternCommand}
263
189
  */
264
190
  updateLogPattern(args: UpdateLogPatternCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLogPatternCommandOutput>;
265
191
  updateLogPattern(args: UpdateLogPatternCommandInput, cb: (err: any, data?: UpdateLogPatternCommandOutput) => void): void;
266
192
  updateLogPattern(args: UpdateLogPatternCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLogPatternCommandOutput) => void): void;
267
193
  }
194
+ /**
195
+ * @public
196
+ * <fullname>Amazon CloudWatch Application Insights</fullname>
197
+ * <p> Amazon CloudWatch Application Insights is a service that helps you detect common
198
+ * problems with your applications. It enables you to pinpoint the source of issues in your
199
+ * applications (built with technologies such as Microsoft IIS, .NET, and Microsoft SQL
200
+ * Server), by providing key insights into detected problems.</p>
201
+ * <p>After you onboard your application, CloudWatch Application Insights identifies,
202
+ * recommends, and sets up metrics and logs. It continuously analyzes and correlates your
203
+ * metrics and logs for unusual behavior to surface actionable problems with your application.
204
+ * For example, if your application is slow and unresponsive and leading to HTTP 500 errors in
205
+ * your Application Load Balancer (ALB), Application Insights informs you that a memory
206
+ * pressure problem with your SQL Server database is occurring. It bases this analysis on
207
+ * impactful metrics and log errors. </p>
208
+ */
209
+ export declare class ApplicationInsights extends ApplicationInsightsClient implements ApplicationInsights {
210
+ }
@@ -108,7 +108,7 @@ import {
108
108
  UpdateLogPatternCommandInput,
109
109
  UpdateLogPatternCommandOutput,
110
110
  } from "./commands/UpdateLogPatternCommand";
111
- export declare class ApplicationInsights extends ApplicationInsightsClient {
111
+ export interface ApplicationInsights {
112
112
  createApplication(
113
113
  args: CreateApplicationCommandInput,
114
114
  options?: __HttpHandlerOptions
@@ -467,3 +467,6 @@ export declare class ApplicationInsights extends ApplicationInsightsClient {
467
467
  cb: (err: any, data?: UpdateLogPatternCommandOutput) => void
468
468
  ): void;
469
469
  }
470
+ export declare class ApplicationInsights
471
+ extends ApplicationInsightsClient
472
+ implements ApplicationInsights {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-application-insights",
3
3
  "description": "AWS SDK for JavaScript Application Insights Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",