@aws-sdk/client-application-insights 3.312.0 → 3.316.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.
- package/dist-cjs/ApplicationInsights.js +31 -378
- package/dist-cjs/protocols/Aws_json1_1.js +213 -730
- package/dist-es/ApplicationInsights.js +31 -378
- package/dist-es/protocols/Aws_json1_1.js +214 -731
- package/dist-types/ApplicationInsights.d.ts +45 -102
- package/dist-types/ts3.4/ApplicationInsights.d.ts +4 -1
- package/package.json +6 -6
|
@@ -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);
|