@aws-sdk/client-application-insights 3.185.0 → 3.188.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 (45) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/ApplicationInsights.js +110 -117
  3. package/dist-es/ApplicationInsightsClient.js +22 -28
  4. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  5. package/dist-es/commands/CreateComponentCommand.js +21 -28
  6. package/dist-es/commands/CreateLogPatternCommand.js +21 -28
  7. package/dist-es/commands/DeleteApplicationCommand.js +21 -28
  8. package/dist-es/commands/DeleteComponentCommand.js +21 -28
  9. package/dist-es/commands/DeleteLogPatternCommand.js +21 -28
  10. package/dist-es/commands/DescribeApplicationCommand.js +21 -28
  11. package/dist-es/commands/DescribeComponentCommand.js +21 -28
  12. package/dist-es/commands/DescribeComponentConfigurationCommand.js +21 -28
  13. package/dist-es/commands/DescribeComponentConfigurationRecommendationCommand.js +21 -28
  14. package/dist-es/commands/DescribeLogPatternCommand.js +21 -28
  15. package/dist-es/commands/DescribeObservationCommand.js +21 -28
  16. package/dist-es/commands/DescribeProblemCommand.js +21 -28
  17. package/dist-es/commands/DescribeProblemObservationsCommand.js +21 -28
  18. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  19. package/dist-es/commands/ListComponentsCommand.js +21 -28
  20. package/dist-es/commands/ListConfigurationHistoryCommand.js +21 -28
  21. package/dist-es/commands/ListLogPatternSetsCommand.js +21 -28
  22. package/dist-es/commands/ListLogPatternsCommand.js +21 -28
  23. package/dist-es/commands/ListProblemsCommand.js +21 -28
  24. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  25. package/dist-es/commands/TagResourceCommand.js +21 -28
  26. package/dist-es/commands/UntagResourceCommand.js +21 -28
  27. package/dist-es/commands/UpdateApplicationCommand.js +21 -28
  28. package/dist-es/commands/UpdateComponentCommand.js +21 -28
  29. package/dist-es/commands/UpdateComponentConfigurationCommand.js +21 -28
  30. package/dist-es/commands/UpdateLogPatternCommand.js +21 -28
  31. package/dist-es/endpoints.js +8 -8
  32. package/dist-es/models/ApplicationInsightsServiceException.js +5 -10
  33. package/dist-es/models/models_0.js +283 -160
  34. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  35. package/dist-es/pagination/ListComponentsPaginator.js +25 -68
  36. package/dist-es/pagination/ListConfigurationHistoryPaginator.js +25 -68
  37. package/dist-es/pagination/ListLogPatternSetsPaginator.js +25 -68
  38. package/dist-es/pagination/ListLogPatternsPaginator.js +25 -68
  39. package/dist-es/pagination/ListProblemsPaginator.js +25 -68
  40. package/dist-es/protocols/Aws_json1_1.js +1705 -2210
  41. package/dist-es/runtimeConfig.browser.js +26 -12
  42. package/dist-es/runtimeConfig.js +30 -12
  43. package/dist-es/runtimeConfig.native.js +8 -5
  44. package/dist-es/runtimeConfig.shared.js +8 -11
  45. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-application-insights
9
+
10
+
11
+
12
+
13
+
14
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-application-insights
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
23
 
8
24
 
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { ApplicationInsightsClient } from "./ApplicationInsightsClient";
3
2
  import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
4
3
  import { CreateComponentCommand, } from "./commands/CreateComponentCommand";
@@ -27,389 +26,383 @@ import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
27
26
  import { UpdateComponentCommand, } from "./commands/UpdateComponentCommand";
28
27
  import { UpdateComponentConfigurationCommand, } from "./commands/UpdateComponentConfigurationCommand";
29
28
  import { UpdateLogPatternCommand, } from "./commands/UpdateLogPatternCommand";
30
- var ApplicationInsights = (function (_super) {
31
- __extends(ApplicationInsights, _super);
32
- function ApplicationInsights() {
33
- return _super !== null && _super.apply(this, arguments) || this;
34
- }
35
- ApplicationInsights.prototype.createApplication = function (args, optionsOrCb, cb) {
36
- var command = new CreateApplicationCommand(args);
29
+ export class ApplicationInsights extends ApplicationInsightsClient {
30
+ createApplication(args, optionsOrCb, cb) {
31
+ const command = new CreateApplicationCommand(args);
37
32
  if (typeof optionsOrCb === "function") {
38
33
  this.send(command, optionsOrCb);
39
34
  }
40
35
  else if (typeof cb === "function") {
41
36
  if (typeof optionsOrCb !== "object")
42
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
37
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
43
38
  this.send(command, optionsOrCb || {}, cb);
44
39
  }
45
40
  else {
46
41
  return this.send(command, optionsOrCb);
47
42
  }
48
- };
49
- ApplicationInsights.prototype.createComponent = function (args, optionsOrCb, cb) {
50
- var command = new CreateComponentCommand(args);
43
+ }
44
+ createComponent(args, optionsOrCb, cb) {
45
+ const command = new CreateComponentCommand(args);
51
46
  if (typeof optionsOrCb === "function") {
52
47
  this.send(command, optionsOrCb);
53
48
  }
54
49
  else if (typeof cb === "function") {
55
50
  if (typeof optionsOrCb !== "object")
56
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
52
  this.send(command, optionsOrCb || {}, cb);
58
53
  }
59
54
  else {
60
55
  return this.send(command, optionsOrCb);
61
56
  }
62
- };
63
- ApplicationInsights.prototype.createLogPattern = function (args, optionsOrCb, cb) {
64
- var command = new CreateLogPatternCommand(args);
57
+ }
58
+ createLogPattern(args, optionsOrCb, cb) {
59
+ const command = new CreateLogPatternCommand(args);
65
60
  if (typeof optionsOrCb === "function") {
66
61
  this.send(command, optionsOrCb);
67
62
  }
68
63
  else if (typeof cb === "function") {
69
64
  if (typeof optionsOrCb !== "object")
70
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
65
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
71
66
  this.send(command, optionsOrCb || {}, cb);
72
67
  }
73
68
  else {
74
69
  return this.send(command, optionsOrCb);
75
70
  }
76
- };
77
- ApplicationInsights.prototype.deleteApplication = function (args, optionsOrCb, cb) {
78
- var command = new DeleteApplicationCommand(args);
71
+ }
72
+ deleteApplication(args, optionsOrCb, cb) {
73
+ const command = new DeleteApplicationCommand(args);
79
74
  if (typeof optionsOrCb === "function") {
80
75
  this.send(command, optionsOrCb);
81
76
  }
82
77
  else if (typeof cb === "function") {
83
78
  if (typeof optionsOrCb !== "object")
84
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
80
  this.send(command, optionsOrCb || {}, cb);
86
81
  }
87
82
  else {
88
83
  return this.send(command, optionsOrCb);
89
84
  }
90
- };
91
- ApplicationInsights.prototype.deleteComponent = function (args, optionsOrCb, cb) {
92
- var command = new DeleteComponentCommand(args);
85
+ }
86
+ deleteComponent(args, optionsOrCb, cb) {
87
+ const command = new DeleteComponentCommand(args);
93
88
  if (typeof optionsOrCb === "function") {
94
89
  this.send(command, optionsOrCb);
95
90
  }
96
91
  else if (typeof cb === "function") {
97
92
  if (typeof optionsOrCb !== "object")
98
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
99
94
  this.send(command, optionsOrCb || {}, cb);
100
95
  }
101
96
  else {
102
97
  return this.send(command, optionsOrCb);
103
98
  }
104
- };
105
- ApplicationInsights.prototype.deleteLogPattern = function (args, optionsOrCb, cb) {
106
- var command = new DeleteLogPatternCommand(args);
99
+ }
100
+ deleteLogPattern(args, optionsOrCb, cb) {
101
+ const command = new DeleteLogPatternCommand(args);
107
102
  if (typeof optionsOrCb === "function") {
108
103
  this.send(command, optionsOrCb);
109
104
  }
110
105
  else if (typeof cb === "function") {
111
106
  if (typeof optionsOrCb !== "object")
112
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
108
  this.send(command, optionsOrCb || {}, cb);
114
109
  }
115
110
  else {
116
111
  return this.send(command, optionsOrCb);
117
112
  }
118
- };
119
- ApplicationInsights.prototype.describeApplication = function (args, optionsOrCb, cb) {
120
- var command = new DescribeApplicationCommand(args);
113
+ }
114
+ describeApplication(args, optionsOrCb, cb) {
115
+ const command = new DescribeApplicationCommand(args);
121
116
  if (typeof optionsOrCb === "function") {
122
117
  this.send(command, optionsOrCb);
123
118
  }
124
119
  else if (typeof cb === "function") {
125
120
  if (typeof optionsOrCb !== "object")
126
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
122
  this.send(command, optionsOrCb || {}, cb);
128
123
  }
129
124
  else {
130
125
  return this.send(command, optionsOrCb);
131
126
  }
132
- };
133
- ApplicationInsights.prototype.describeComponent = function (args, optionsOrCb, cb) {
134
- var command = new DescribeComponentCommand(args);
127
+ }
128
+ describeComponent(args, optionsOrCb, cb) {
129
+ const command = new DescribeComponentCommand(args);
135
130
  if (typeof optionsOrCb === "function") {
136
131
  this.send(command, optionsOrCb);
137
132
  }
138
133
  else if (typeof cb === "function") {
139
134
  if (typeof optionsOrCb !== "object")
140
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
136
  this.send(command, optionsOrCb || {}, cb);
142
137
  }
143
138
  else {
144
139
  return this.send(command, optionsOrCb);
145
140
  }
146
- };
147
- ApplicationInsights.prototype.describeComponentConfiguration = function (args, optionsOrCb, cb) {
148
- var command = new DescribeComponentConfigurationCommand(args);
141
+ }
142
+ describeComponentConfiguration(args, optionsOrCb, cb) {
143
+ const command = new DescribeComponentConfigurationCommand(args);
149
144
  if (typeof optionsOrCb === "function") {
150
145
  this.send(command, optionsOrCb);
151
146
  }
152
147
  else if (typeof cb === "function") {
153
148
  if (typeof optionsOrCb !== "object")
154
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
150
  this.send(command, optionsOrCb || {}, cb);
156
151
  }
157
152
  else {
158
153
  return this.send(command, optionsOrCb);
159
154
  }
160
- };
161
- ApplicationInsights.prototype.describeComponentConfigurationRecommendation = function (args, optionsOrCb, cb) {
162
- var command = new DescribeComponentConfigurationRecommendationCommand(args);
155
+ }
156
+ describeComponentConfigurationRecommendation(args, optionsOrCb, cb) {
157
+ const command = new DescribeComponentConfigurationRecommendationCommand(args);
163
158
  if (typeof optionsOrCb === "function") {
164
159
  this.send(command, optionsOrCb);
165
160
  }
166
161
  else if (typeof cb === "function") {
167
162
  if (typeof optionsOrCb !== "object")
168
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
164
  this.send(command, optionsOrCb || {}, cb);
170
165
  }
171
166
  else {
172
167
  return this.send(command, optionsOrCb);
173
168
  }
174
- };
175
- ApplicationInsights.prototype.describeLogPattern = function (args, optionsOrCb, cb) {
176
- var command = new DescribeLogPatternCommand(args);
169
+ }
170
+ describeLogPattern(args, optionsOrCb, cb) {
171
+ const command = new DescribeLogPatternCommand(args);
177
172
  if (typeof optionsOrCb === "function") {
178
173
  this.send(command, optionsOrCb);
179
174
  }
180
175
  else if (typeof cb === "function") {
181
176
  if (typeof optionsOrCb !== "object")
182
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
178
  this.send(command, optionsOrCb || {}, cb);
184
179
  }
185
180
  else {
186
181
  return this.send(command, optionsOrCb);
187
182
  }
188
- };
189
- ApplicationInsights.prototype.describeObservation = function (args, optionsOrCb, cb) {
190
- var command = new DescribeObservationCommand(args);
183
+ }
184
+ describeObservation(args, optionsOrCb, cb) {
185
+ const command = new DescribeObservationCommand(args);
191
186
  if (typeof optionsOrCb === "function") {
192
187
  this.send(command, optionsOrCb);
193
188
  }
194
189
  else if (typeof cb === "function") {
195
190
  if (typeof optionsOrCb !== "object")
196
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
192
  this.send(command, optionsOrCb || {}, cb);
198
193
  }
199
194
  else {
200
195
  return this.send(command, optionsOrCb);
201
196
  }
202
- };
203
- ApplicationInsights.prototype.describeProblem = function (args, optionsOrCb, cb) {
204
- var command = new DescribeProblemCommand(args);
197
+ }
198
+ describeProblem(args, optionsOrCb, cb) {
199
+ const command = new DescribeProblemCommand(args);
205
200
  if (typeof optionsOrCb === "function") {
206
201
  this.send(command, optionsOrCb);
207
202
  }
208
203
  else if (typeof cb === "function") {
209
204
  if (typeof optionsOrCb !== "object")
210
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
205
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
211
206
  this.send(command, optionsOrCb || {}, cb);
212
207
  }
213
208
  else {
214
209
  return this.send(command, optionsOrCb);
215
210
  }
216
- };
217
- ApplicationInsights.prototype.describeProblemObservations = function (args, optionsOrCb, cb) {
218
- var command = new DescribeProblemObservationsCommand(args);
211
+ }
212
+ describeProblemObservations(args, optionsOrCb, cb) {
213
+ const command = new DescribeProblemObservationsCommand(args);
219
214
  if (typeof optionsOrCb === "function") {
220
215
  this.send(command, optionsOrCb);
221
216
  }
222
217
  else if (typeof cb === "function") {
223
218
  if (typeof optionsOrCb !== "object")
224
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
219
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
225
220
  this.send(command, optionsOrCb || {}, cb);
226
221
  }
227
222
  else {
228
223
  return this.send(command, optionsOrCb);
229
224
  }
230
- };
231
- ApplicationInsights.prototype.listApplications = function (args, optionsOrCb, cb) {
232
- var command = new ListApplicationsCommand(args);
225
+ }
226
+ listApplications(args, optionsOrCb, cb) {
227
+ const command = new ListApplicationsCommand(args);
233
228
  if (typeof optionsOrCb === "function") {
234
229
  this.send(command, optionsOrCb);
235
230
  }
236
231
  else if (typeof cb === "function") {
237
232
  if (typeof optionsOrCb !== "object")
238
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
233
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
239
234
  this.send(command, optionsOrCb || {}, cb);
240
235
  }
241
236
  else {
242
237
  return this.send(command, optionsOrCb);
243
238
  }
244
- };
245
- ApplicationInsights.prototype.listComponents = function (args, optionsOrCb, cb) {
246
- var command = new ListComponentsCommand(args);
239
+ }
240
+ listComponents(args, optionsOrCb, cb) {
241
+ const command = new ListComponentsCommand(args);
247
242
  if (typeof optionsOrCb === "function") {
248
243
  this.send(command, optionsOrCb);
249
244
  }
250
245
  else if (typeof cb === "function") {
251
246
  if (typeof optionsOrCb !== "object")
252
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
247
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
253
248
  this.send(command, optionsOrCb || {}, cb);
254
249
  }
255
250
  else {
256
251
  return this.send(command, optionsOrCb);
257
252
  }
258
- };
259
- ApplicationInsights.prototype.listConfigurationHistory = function (args, optionsOrCb, cb) {
260
- var command = new ListConfigurationHistoryCommand(args);
253
+ }
254
+ listConfigurationHistory(args, optionsOrCb, cb) {
255
+ const command = new ListConfigurationHistoryCommand(args);
261
256
  if (typeof optionsOrCb === "function") {
262
257
  this.send(command, optionsOrCb);
263
258
  }
264
259
  else if (typeof cb === "function") {
265
260
  if (typeof optionsOrCb !== "object")
266
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
261
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
267
262
  this.send(command, optionsOrCb || {}, cb);
268
263
  }
269
264
  else {
270
265
  return this.send(command, optionsOrCb);
271
266
  }
272
- };
273
- ApplicationInsights.prototype.listLogPatterns = function (args, optionsOrCb, cb) {
274
- var command = new ListLogPatternsCommand(args);
267
+ }
268
+ listLogPatterns(args, optionsOrCb, cb) {
269
+ const command = new ListLogPatternsCommand(args);
275
270
  if (typeof optionsOrCb === "function") {
276
271
  this.send(command, optionsOrCb);
277
272
  }
278
273
  else if (typeof cb === "function") {
279
274
  if (typeof optionsOrCb !== "object")
280
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
275
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
281
276
  this.send(command, optionsOrCb || {}, cb);
282
277
  }
283
278
  else {
284
279
  return this.send(command, optionsOrCb);
285
280
  }
286
- };
287
- ApplicationInsights.prototype.listLogPatternSets = function (args, optionsOrCb, cb) {
288
- var command = new ListLogPatternSetsCommand(args);
281
+ }
282
+ listLogPatternSets(args, optionsOrCb, cb) {
283
+ const command = new ListLogPatternSetsCommand(args);
289
284
  if (typeof optionsOrCb === "function") {
290
285
  this.send(command, optionsOrCb);
291
286
  }
292
287
  else if (typeof cb === "function") {
293
288
  if (typeof optionsOrCb !== "object")
294
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
289
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
295
290
  this.send(command, optionsOrCb || {}, cb);
296
291
  }
297
292
  else {
298
293
  return this.send(command, optionsOrCb);
299
294
  }
300
- };
301
- ApplicationInsights.prototype.listProblems = function (args, optionsOrCb, cb) {
302
- var command = new ListProblemsCommand(args);
295
+ }
296
+ listProblems(args, optionsOrCb, cb) {
297
+ const command = new ListProblemsCommand(args);
303
298
  if (typeof optionsOrCb === "function") {
304
299
  this.send(command, optionsOrCb);
305
300
  }
306
301
  else if (typeof cb === "function") {
307
302
  if (typeof optionsOrCb !== "object")
308
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
303
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
309
304
  this.send(command, optionsOrCb || {}, cb);
310
305
  }
311
306
  else {
312
307
  return this.send(command, optionsOrCb);
313
308
  }
314
- };
315
- ApplicationInsights.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
316
- var command = new ListTagsForResourceCommand(args);
309
+ }
310
+ listTagsForResource(args, optionsOrCb, cb) {
311
+ const command = new ListTagsForResourceCommand(args);
317
312
  if (typeof optionsOrCb === "function") {
318
313
  this.send(command, optionsOrCb);
319
314
  }
320
315
  else if (typeof cb === "function") {
321
316
  if (typeof optionsOrCb !== "object")
322
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
317
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
323
318
  this.send(command, optionsOrCb || {}, cb);
324
319
  }
325
320
  else {
326
321
  return this.send(command, optionsOrCb);
327
322
  }
328
- };
329
- ApplicationInsights.prototype.tagResource = function (args, optionsOrCb, cb) {
330
- var command = new TagResourceCommand(args);
323
+ }
324
+ tagResource(args, optionsOrCb, cb) {
325
+ const command = new TagResourceCommand(args);
331
326
  if (typeof optionsOrCb === "function") {
332
327
  this.send(command, optionsOrCb);
333
328
  }
334
329
  else if (typeof cb === "function") {
335
330
  if (typeof optionsOrCb !== "object")
336
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
331
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
337
332
  this.send(command, optionsOrCb || {}, cb);
338
333
  }
339
334
  else {
340
335
  return this.send(command, optionsOrCb);
341
336
  }
342
- };
343
- ApplicationInsights.prototype.untagResource = function (args, optionsOrCb, cb) {
344
- var command = new UntagResourceCommand(args);
337
+ }
338
+ untagResource(args, optionsOrCb, cb) {
339
+ const command = new UntagResourceCommand(args);
345
340
  if (typeof optionsOrCb === "function") {
346
341
  this.send(command, optionsOrCb);
347
342
  }
348
343
  else if (typeof cb === "function") {
349
344
  if (typeof optionsOrCb !== "object")
350
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
345
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
351
346
  this.send(command, optionsOrCb || {}, cb);
352
347
  }
353
348
  else {
354
349
  return this.send(command, optionsOrCb);
355
350
  }
356
- };
357
- ApplicationInsights.prototype.updateApplication = function (args, optionsOrCb, cb) {
358
- var command = new UpdateApplicationCommand(args);
351
+ }
352
+ updateApplication(args, optionsOrCb, cb) {
353
+ const command = new UpdateApplicationCommand(args);
359
354
  if (typeof optionsOrCb === "function") {
360
355
  this.send(command, optionsOrCb);
361
356
  }
362
357
  else if (typeof cb === "function") {
363
358
  if (typeof optionsOrCb !== "object")
364
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
359
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
365
360
  this.send(command, optionsOrCb || {}, cb);
366
361
  }
367
362
  else {
368
363
  return this.send(command, optionsOrCb);
369
364
  }
370
- };
371
- ApplicationInsights.prototype.updateComponent = function (args, optionsOrCb, cb) {
372
- var command = new UpdateComponentCommand(args);
365
+ }
366
+ updateComponent(args, optionsOrCb, cb) {
367
+ const command = new UpdateComponentCommand(args);
373
368
  if (typeof optionsOrCb === "function") {
374
369
  this.send(command, optionsOrCb);
375
370
  }
376
371
  else if (typeof cb === "function") {
377
372
  if (typeof optionsOrCb !== "object")
378
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
373
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
379
374
  this.send(command, optionsOrCb || {}, cb);
380
375
  }
381
376
  else {
382
377
  return this.send(command, optionsOrCb);
383
378
  }
384
- };
385
- ApplicationInsights.prototype.updateComponentConfiguration = function (args, optionsOrCb, cb) {
386
- var command = new UpdateComponentConfigurationCommand(args);
379
+ }
380
+ updateComponentConfiguration(args, optionsOrCb, cb) {
381
+ const command = new UpdateComponentConfigurationCommand(args);
387
382
  if (typeof optionsOrCb === "function") {
388
383
  this.send(command, optionsOrCb);
389
384
  }
390
385
  else if (typeof cb === "function") {
391
386
  if (typeof optionsOrCb !== "object")
392
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
387
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
393
388
  this.send(command, optionsOrCb || {}, cb);
394
389
  }
395
390
  else {
396
391
  return this.send(command, optionsOrCb);
397
392
  }
398
- };
399
- ApplicationInsights.prototype.updateLogPattern = function (args, optionsOrCb, cb) {
400
- var command = new UpdateLogPatternCommand(args);
393
+ }
394
+ updateLogPattern(args, optionsOrCb, cb) {
395
+ const command = new UpdateLogPatternCommand(args);
401
396
  if (typeof optionsOrCb === "function") {
402
397
  this.send(command, optionsOrCb);
403
398
  }
404
399
  else if (typeof cb === "function") {
405
400
  if (typeof optionsOrCb !== "object")
406
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
401
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
407
402
  this.send(command, optionsOrCb || {}, cb);
408
403
  }
409
404
  else {
410
405
  return this.send(command, optionsOrCb);
411
406
  }
412
- };
413
- return ApplicationInsights;
414
- }(ApplicationInsightsClient));
415
- export { ApplicationInsights };
407
+ }
408
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var ApplicationInsightsClient = (function (_super) {
13
- __extends(ApplicationInsightsClient, _super);
14
- function ApplicationInsightsClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class ApplicationInsightsClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- ApplicationInsightsClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ApplicationInsightsClient;
38
- }(__Client));
39
- export { ApplicationInsightsClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateApplicationRequestFilterSensitiveLog, CreateApplicationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateApplicationCommand, serializeAws_json1_1CreateApplicationCommand, } from "../protocols/Aws_json1_1";
6
- var CreateApplicationCommand = (function (_super) {
7
- __extends(CreateApplicationCommand, _super);
8
- function CreateApplicationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateApplicationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ApplicationInsightsClient";
18
- var commandName = "CreateApplicationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ApplicationInsightsClient";
15
+ const commandName = "CreateApplicationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateApplicationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateApplicationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateApplicationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1CreateApplicationCommand(input, context);
33
- };
34
- CreateApplicationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateApplicationCommand(output, context);
36
- };
37
- return CreateApplicationCommand;
38
- }($Command));
39
- export { CreateApplicationCommand };
31
+ }
32
+ }