@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,101 +1,101 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ApplicationInsightsServiceException as __BaseException } from "../models/ApplicationInsightsServiceException";
|
|
4
4
|
import { AccessDeniedException, BadRequestException, InternalServerException, ResourceInUseException, ResourceNotFoundException, TagsAlreadyExistException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateApplicationCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("CreateApplication");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_CreateComponentCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("CreateComponent");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_CreateLogPatternCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("CreateLogPattern");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("DeleteApplication");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_DeleteComponentCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DeleteComponent");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_DeleteLogPatternCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("DeleteLogPattern");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DescribeApplicationCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("DescribeApplication");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_DescribeComponentCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("DescribeComponent");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_DescribeComponentConfigurationCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("DescribeComponentConfiguration");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_DescribeComponentConfigurationRecommendationCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DescribeComponentConfigurationRecommendation");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_DescribeLogPatternCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DescribeLogPattern");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_DescribeObservationCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("DescribeObservation");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_DescribeProblemCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("DescribeProblem");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_DescribeProblemObservationsCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("DescribeProblemObservations");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_ListApplicationsCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("ListApplications");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_ListComponentsCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("ListComponents");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_ListConfigurationHistoryCommand = async (input, context) => {
|
|
@@ -107,13 +107,13 @@ export const se_ListConfigurationHistoryCommand = async (input, context) => {
|
|
|
107
107
|
export const se_ListLogPatternsCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("ListLogPatterns");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
export const se_ListLogPatternSetsCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("ListLogPatternSets");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const se_ListProblemsCommand = async (input, context) => {
|
|
@@ -125,43 +125,43 @@ export const se_ListProblemsCommand = async (input, context) => {
|
|
|
125
125
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
126
126
|
const headers = sharedHeaders("ListTagsForResource");
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
131
|
export const se_TagResourceCommand = async (input, context) => {
|
|
132
132
|
const headers = sharedHeaders("TagResource");
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
137
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
138
138
|
const headers = sharedHeaders("UntagResource");
|
|
139
139
|
let body;
|
|
140
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify(_json(input));
|
|
141
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
142
|
};
|
|
143
143
|
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
144
144
|
const headers = sharedHeaders("UpdateApplication");
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
149
|
export const se_UpdateComponentCommand = async (input, context) => {
|
|
150
150
|
const headers = sharedHeaders("UpdateComponent");
|
|
151
151
|
let body;
|
|
152
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
153
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
154
|
};
|
|
155
155
|
export const se_UpdateComponentConfigurationCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("UpdateComponentConfiguration");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
export const se_UpdateLogPatternCommand = async (input, context) => {
|
|
162
162
|
const headers = sharedHeaders("UpdateLogPattern");
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
167
|
export const de_CreateApplicationCommand = async (output, context) => {
|
|
@@ -170,12 +170,12 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
170
170
|
}
|
|
171
171
|
const data = await parseBody(output.body, context);
|
|
172
172
|
let contents = {};
|
|
173
|
-
contents =
|
|
173
|
+
contents = _json(data);
|
|
174
174
|
const response = {
|
|
175
175
|
$metadata: deserializeMetadata(output),
|
|
176
176
|
...contents,
|
|
177
177
|
};
|
|
178
|
-
return
|
|
178
|
+
return response;
|
|
179
179
|
};
|
|
180
180
|
const de_CreateApplicationCommandError = async (output, context) => {
|
|
181
181
|
const parsedOutput = {
|
|
@@ -204,10 +204,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
204
204
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
205
205
|
default:
|
|
206
206
|
const parsedBody = parsedOutput.body;
|
|
207
|
-
throwDefaultError({
|
|
207
|
+
return throwDefaultError({
|
|
208
208
|
output,
|
|
209
209
|
parsedBody,
|
|
210
|
-
exceptionCtor: __BaseException,
|
|
211
210
|
errorCode,
|
|
212
211
|
});
|
|
213
212
|
}
|
|
@@ -218,12 +217,12 @@ export const de_CreateComponentCommand = async (output, context) => {
|
|
|
218
217
|
}
|
|
219
218
|
const data = await parseBody(output.body, context);
|
|
220
219
|
let contents = {};
|
|
221
|
-
contents =
|
|
220
|
+
contents = _json(data);
|
|
222
221
|
const response = {
|
|
223
222
|
$metadata: deserializeMetadata(output),
|
|
224
223
|
...contents,
|
|
225
224
|
};
|
|
226
|
-
return
|
|
225
|
+
return response;
|
|
227
226
|
};
|
|
228
227
|
const de_CreateComponentCommandError = async (output, context) => {
|
|
229
228
|
const parsedOutput = {
|
|
@@ -246,10 +245,9 @@ const de_CreateComponentCommandError = async (output, context) => {
|
|
|
246
245
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
247
246
|
default:
|
|
248
247
|
const parsedBody = parsedOutput.body;
|
|
249
|
-
throwDefaultError({
|
|
248
|
+
return throwDefaultError({
|
|
250
249
|
output,
|
|
251
250
|
parsedBody,
|
|
252
|
-
exceptionCtor: __BaseException,
|
|
253
251
|
errorCode,
|
|
254
252
|
});
|
|
255
253
|
}
|
|
@@ -260,12 +258,12 @@ export const de_CreateLogPatternCommand = async (output, context) => {
|
|
|
260
258
|
}
|
|
261
259
|
const data = await parseBody(output.body, context);
|
|
262
260
|
let contents = {};
|
|
263
|
-
contents =
|
|
261
|
+
contents = _json(data);
|
|
264
262
|
const response = {
|
|
265
263
|
$metadata: deserializeMetadata(output),
|
|
266
264
|
...contents,
|
|
267
265
|
};
|
|
268
|
-
return
|
|
266
|
+
return response;
|
|
269
267
|
};
|
|
270
268
|
const de_CreateLogPatternCommandError = async (output, context) => {
|
|
271
269
|
const parsedOutput = {
|
|
@@ -288,10 +286,9 @@ const de_CreateLogPatternCommandError = async (output, context) => {
|
|
|
288
286
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
289
287
|
default:
|
|
290
288
|
const parsedBody = parsedOutput.body;
|
|
291
|
-
throwDefaultError({
|
|
289
|
+
return throwDefaultError({
|
|
292
290
|
output,
|
|
293
291
|
parsedBody,
|
|
294
|
-
exceptionCtor: __BaseException,
|
|
295
292
|
errorCode,
|
|
296
293
|
});
|
|
297
294
|
}
|
|
@@ -302,12 +299,12 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
302
299
|
}
|
|
303
300
|
const data = await parseBody(output.body, context);
|
|
304
301
|
let contents = {};
|
|
305
|
-
contents =
|
|
302
|
+
contents = _json(data);
|
|
306
303
|
const response = {
|
|
307
304
|
$metadata: deserializeMetadata(output),
|
|
308
305
|
...contents,
|
|
309
306
|
};
|
|
310
|
-
return
|
|
307
|
+
return response;
|
|
311
308
|
};
|
|
312
309
|
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
313
310
|
const parsedOutput = {
|
|
@@ -330,10 +327,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
|
|
|
330
327
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
331
328
|
default:
|
|
332
329
|
const parsedBody = parsedOutput.body;
|
|
333
|
-
throwDefaultError({
|
|
330
|
+
return throwDefaultError({
|
|
334
331
|
output,
|
|
335
332
|
parsedBody,
|
|
336
|
-
exceptionCtor: __BaseException,
|
|
337
333
|
errorCode,
|
|
338
334
|
});
|
|
339
335
|
}
|
|
@@ -344,12 +340,12 @@ export const de_DeleteComponentCommand = async (output, context) => {
|
|
|
344
340
|
}
|
|
345
341
|
const data = await parseBody(output.body, context);
|
|
346
342
|
let contents = {};
|
|
347
|
-
contents =
|
|
343
|
+
contents = _json(data);
|
|
348
344
|
const response = {
|
|
349
345
|
$metadata: deserializeMetadata(output),
|
|
350
346
|
...contents,
|
|
351
347
|
};
|
|
352
|
-
return
|
|
348
|
+
return response;
|
|
353
349
|
};
|
|
354
350
|
const de_DeleteComponentCommandError = async (output, context) => {
|
|
355
351
|
const parsedOutput = {
|
|
@@ -369,10 +365,9 @@ const de_DeleteComponentCommandError = async (output, context) => {
|
|
|
369
365
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
370
366
|
default:
|
|
371
367
|
const parsedBody = parsedOutput.body;
|
|
372
|
-
throwDefaultError({
|
|
368
|
+
return throwDefaultError({
|
|
373
369
|
output,
|
|
374
370
|
parsedBody,
|
|
375
|
-
exceptionCtor: __BaseException,
|
|
376
371
|
errorCode,
|
|
377
372
|
});
|
|
378
373
|
}
|
|
@@ -383,12 +378,12 @@ export const de_DeleteLogPatternCommand = async (output, context) => {
|
|
|
383
378
|
}
|
|
384
379
|
const data = await parseBody(output.body, context);
|
|
385
380
|
let contents = {};
|
|
386
|
-
contents =
|
|
381
|
+
contents = _json(data);
|
|
387
382
|
const response = {
|
|
388
383
|
$metadata: deserializeMetadata(output),
|
|
389
384
|
...contents,
|
|
390
385
|
};
|
|
391
|
-
return
|
|
386
|
+
return response;
|
|
392
387
|
};
|
|
393
388
|
const de_DeleteLogPatternCommandError = async (output, context) => {
|
|
394
389
|
const parsedOutput = {
|
|
@@ -411,10 +406,9 @@ const de_DeleteLogPatternCommandError = async (output, context) => {
|
|
|
411
406
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
412
407
|
default:
|
|
413
408
|
const parsedBody = parsedOutput.body;
|
|
414
|
-
throwDefaultError({
|
|
409
|
+
return throwDefaultError({
|
|
415
410
|
output,
|
|
416
411
|
parsedBody,
|
|
417
|
-
exceptionCtor: __BaseException,
|
|
418
412
|
errorCode,
|
|
419
413
|
});
|
|
420
414
|
}
|
|
@@ -425,12 +419,12 @@ export const de_DescribeApplicationCommand = async (output, context) => {
|
|
|
425
419
|
}
|
|
426
420
|
const data = await parseBody(output.body, context);
|
|
427
421
|
let contents = {};
|
|
428
|
-
contents =
|
|
422
|
+
contents = _json(data);
|
|
429
423
|
const response = {
|
|
430
424
|
$metadata: deserializeMetadata(output),
|
|
431
425
|
...contents,
|
|
432
426
|
};
|
|
433
|
-
return
|
|
427
|
+
return response;
|
|
434
428
|
};
|
|
435
429
|
const de_DescribeApplicationCommandError = async (output, context) => {
|
|
436
430
|
const parsedOutput = {
|
|
@@ -450,10 +444,9 @@ const de_DescribeApplicationCommandError = async (output, context) => {
|
|
|
450
444
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
451
445
|
default:
|
|
452
446
|
const parsedBody = parsedOutput.body;
|
|
453
|
-
throwDefaultError({
|
|
447
|
+
return throwDefaultError({
|
|
454
448
|
output,
|
|
455
449
|
parsedBody,
|
|
456
|
-
exceptionCtor: __BaseException,
|
|
457
450
|
errorCode,
|
|
458
451
|
});
|
|
459
452
|
}
|
|
@@ -464,12 +457,12 @@ export const de_DescribeComponentCommand = async (output, context) => {
|
|
|
464
457
|
}
|
|
465
458
|
const data = await parseBody(output.body, context);
|
|
466
459
|
let contents = {};
|
|
467
|
-
contents =
|
|
460
|
+
contents = _json(data);
|
|
468
461
|
const response = {
|
|
469
462
|
$metadata: deserializeMetadata(output),
|
|
470
463
|
...contents,
|
|
471
464
|
};
|
|
472
|
-
return
|
|
465
|
+
return response;
|
|
473
466
|
};
|
|
474
467
|
const de_DescribeComponentCommandError = async (output, context) => {
|
|
475
468
|
const parsedOutput = {
|
|
@@ -489,10 +482,9 @@ const de_DescribeComponentCommandError = async (output, context) => {
|
|
|
489
482
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
490
483
|
default:
|
|
491
484
|
const parsedBody = parsedOutput.body;
|
|
492
|
-
throwDefaultError({
|
|
485
|
+
return throwDefaultError({
|
|
493
486
|
output,
|
|
494
487
|
parsedBody,
|
|
495
|
-
exceptionCtor: __BaseException,
|
|
496
488
|
errorCode,
|
|
497
489
|
});
|
|
498
490
|
}
|
|
@@ -503,12 +495,12 @@ export const de_DescribeComponentConfigurationCommand = async (output, context)
|
|
|
503
495
|
}
|
|
504
496
|
const data = await parseBody(output.body, context);
|
|
505
497
|
let contents = {};
|
|
506
|
-
contents =
|
|
498
|
+
contents = _json(data);
|
|
507
499
|
const response = {
|
|
508
500
|
$metadata: deserializeMetadata(output),
|
|
509
501
|
...contents,
|
|
510
502
|
};
|
|
511
|
-
return
|
|
503
|
+
return response;
|
|
512
504
|
};
|
|
513
505
|
const de_DescribeComponentConfigurationCommandError = async (output, context) => {
|
|
514
506
|
const parsedOutput = {
|
|
@@ -528,10 +520,9 @@ const de_DescribeComponentConfigurationCommandError = async (output, context) =>
|
|
|
528
520
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
529
521
|
default:
|
|
530
522
|
const parsedBody = parsedOutput.body;
|
|
531
|
-
throwDefaultError({
|
|
523
|
+
return throwDefaultError({
|
|
532
524
|
output,
|
|
533
525
|
parsedBody,
|
|
534
|
-
exceptionCtor: __BaseException,
|
|
535
526
|
errorCode,
|
|
536
527
|
});
|
|
537
528
|
}
|
|
@@ -542,12 +533,12 @@ export const de_DescribeComponentConfigurationRecommendationCommand = async (out
|
|
|
542
533
|
}
|
|
543
534
|
const data = await parseBody(output.body, context);
|
|
544
535
|
let contents = {};
|
|
545
|
-
contents =
|
|
536
|
+
contents = _json(data);
|
|
546
537
|
const response = {
|
|
547
538
|
$metadata: deserializeMetadata(output),
|
|
548
539
|
...contents,
|
|
549
540
|
};
|
|
550
|
-
return
|
|
541
|
+
return response;
|
|
551
542
|
};
|
|
552
543
|
const de_DescribeComponentConfigurationRecommendationCommandError = async (output, context) => {
|
|
553
544
|
const parsedOutput = {
|
|
@@ -567,10 +558,9 @@ const de_DescribeComponentConfigurationRecommendationCommandError = async (outpu
|
|
|
567
558
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
568
559
|
default:
|
|
569
560
|
const parsedBody = parsedOutput.body;
|
|
570
|
-
throwDefaultError({
|
|
561
|
+
return throwDefaultError({
|
|
571
562
|
output,
|
|
572
563
|
parsedBody,
|
|
573
|
-
exceptionCtor: __BaseException,
|
|
574
564
|
errorCode,
|
|
575
565
|
});
|
|
576
566
|
}
|
|
@@ -581,12 +571,12 @@ export const de_DescribeLogPatternCommand = async (output, context) => {
|
|
|
581
571
|
}
|
|
582
572
|
const data = await parseBody(output.body, context);
|
|
583
573
|
let contents = {};
|
|
584
|
-
contents =
|
|
574
|
+
contents = _json(data);
|
|
585
575
|
const response = {
|
|
586
576
|
$metadata: deserializeMetadata(output),
|
|
587
577
|
...contents,
|
|
588
578
|
};
|
|
589
|
-
return
|
|
579
|
+
return response;
|
|
590
580
|
};
|
|
591
581
|
const de_DescribeLogPatternCommandError = async (output, context) => {
|
|
592
582
|
const parsedOutput = {
|
|
@@ -606,10 +596,9 @@ const de_DescribeLogPatternCommandError = async (output, context) => {
|
|
|
606
596
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
607
597
|
default:
|
|
608
598
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
throwDefaultError({
|
|
599
|
+
return throwDefaultError({
|
|
610
600
|
output,
|
|
611
601
|
parsedBody,
|
|
612
|
-
exceptionCtor: __BaseException,
|
|
613
602
|
errorCode,
|
|
614
603
|
});
|
|
615
604
|
}
|
|
@@ -625,7 +614,7 @@ export const de_DescribeObservationCommand = async (output, context) => {
|
|
|
625
614
|
$metadata: deserializeMetadata(output),
|
|
626
615
|
...contents,
|
|
627
616
|
};
|
|
628
|
-
return
|
|
617
|
+
return response;
|
|
629
618
|
};
|
|
630
619
|
const de_DescribeObservationCommandError = async (output, context) => {
|
|
631
620
|
const parsedOutput = {
|
|
@@ -645,10 +634,9 @@ const de_DescribeObservationCommandError = async (output, context) => {
|
|
|
645
634
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
646
635
|
default:
|
|
647
636
|
const parsedBody = parsedOutput.body;
|
|
648
|
-
throwDefaultError({
|
|
637
|
+
return throwDefaultError({
|
|
649
638
|
output,
|
|
650
639
|
parsedBody,
|
|
651
|
-
exceptionCtor: __BaseException,
|
|
652
640
|
errorCode,
|
|
653
641
|
});
|
|
654
642
|
}
|
|
@@ -664,7 +652,7 @@ export const de_DescribeProblemCommand = async (output, context) => {
|
|
|
664
652
|
$metadata: deserializeMetadata(output),
|
|
665
653
|
...contents,
|
|
666
654
|
};
|
|
667
|
-
return
|
|
655
|
+
return response;
|
|
668
656
|
};
|
|
669
657
|
const de_DescribeProblemCommandError = async (output, context) => {
|
|
670
658
|
const parsedOutput = {
|
|
@@ -684,10 +672,9 @@ const de_DescribeProblemCommandError = async (output, context) => {
|
|
|
684
672
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
685
673
|
default:
|
|
686
674
|
const parsedBody = parsedOutput.body;
|
|
687
|
-
throwDefaultError({
|
|
675
|
+
return throwDefaultError({
|
|
688
676
|
output,
|
|
689
677
|
parsedBody,
|
|
690
|
-
exceptionCtor: __BaseException,
|
|
691
678
|
errorCode,
|
|
692
679
|
});
|
|
693
680
|
}
|
|
@@ -703,7 +690,7 @@ export const de_DescribeProblemObservationsCommand = async (output, context) =>
|
|
|
703
690
|
$metadata: deserializeMetadata(output),
|
|
704
691
|
...contents,
|
|
705
692
|
};
|
|
706
|
-
return
|
|
693
|
+
return response;
|
|
707
694
|
};
|
|
708
695
|
const de_DescribeProblemObservationsCommandError = async (output, context) => {
|
|
709
696
|
const parsedOutput = {
|
|
@@ -723,10 +710,9 @@ const de_DescribeProblemObservationsCommandError = async (output, context) => {
|
|
|
723
710
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
724
711
|
default:
|
|
725
712
|
const parsedBody = parsedOutput.body;
|
|
726
|
-
throwDefaultError({
|
|
713
|
+
return throwDefaultError({
|
|
727
714
|
output,
|
|
728
715
|
parsedBody,
|
|
729
|
-
exceptionCtor: __BaseException,
|
|
730
716
|
errorCode,
|
|
731
717
|
});
|
|
732
718
|
}
|
|
@@ -737,12 +723,12 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
737
723
|
}
|
|
738
724
|
const data = await parseBody(output.body, context);
|
|
739
725
|
let contents = {};
|
|
740
|
-
contents =
|
|
726
|
+
contents = _json(data);
|
|
741
727
|
const response = {
|
|
742
728
|
$metadata: deserializeMetadata(output),
|
|
743
729
|
...contents,
|
|
744
730
|
};
|
|
745
|
-
return
|
|
731
|
+
return response;
|
|
746
732
|
};
|
|
747
733
|
const de_ListApplicationsCommandError = async (output, context) => {
|
|
748
734
|
const parsedOutput = {
|
|
@@ -759,10 +745,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
759
745
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
760
746
|
default:
|
|
761
747
|
const parsedBody = parsedOutput.body;
|
|
762
|
-
throwDefaultError({
|
|
748
|
+
return throwDefaultError({
|
|
763
749
|
output,
|
|
764
750
|
parsedBody,
|
|
765
|
-
exceptionCtor: __BaseException,
|
|
766
751
|
errorCode,
|
|
767
752
|
});
|
|
768
753
|
}
|
|
@@ -773,12 +758,12 @@ export const de_ListComponentsCommand = async (output, context) => {
|
|
|
773
758
|
}
|
|
774
759
|
const data = await parseBody(output.body, context);
|
|
775
760
|
let contents = {};
|
|
776
|
-
contents =
|
|
761
|
+
contents = _json(data);
|
|
777
762
|
const response = {
|
|
778
763
|
$metadata: deserializeMetadata(output),
|
|
779
764
|
...contents,
|
|
780
765
|
};
|
|
781
|
-
return
|
|
766
|
+
return response;
|
|
782
767
|
};
|
|
783
768
|
const de_ListComponentsCommandError = async (output, context) => {
|
|
784
769
|
const parsedOutput = {
|
|
@@ -798,10 +783,9 @@ const de_ListComponentsCommandError = async (output, context) => {
|
|
|
798
783
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
799
784
|
default:
|
|
800
785
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
throwDefaultError({
|
|
786
|
+
return throwDefaultError({
|
|
802
787
|
output,
|
|
803
788
|
parsedBody,
|
|
804
|
-
exceptionCtor: __BaseException,
|
|
805
789
|
errorCode,
|
|
806
790
|
});
|
|
807
791
|
}
|
|
@@ -817,7 +801,7 @@ export const de_ListConfigurationHistoryCommand = async (output, context) => {
|
|
|
817
801
|
$metadata: deserializeMetadata(output),
|
|
818
802
|
...contents,
|
|
819
803
|
};
|
|
820
|
-
return
|
|
804
|
+
return response;
|
|
821
805
|
};
|
|
822
806
|
const de_ListConfigurationHistoryCommandError = async (output, context) => {
|
|
823
807
|
const parsedOutput = {
|
|
@@ -837,10 +821,9 @@ const de_ListConfigurationHistoryCommandError = async (output, context) => {
|
|
|
837
821
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
838
822
|
default:
|
|
839
823
|
const parsedBody = parsedOutput.body;
|
|
840
|
-
throwDefaultError({
|
|
824
|
+
return throwDefaultError({
|
|
841
825
|
output,
|
|
842
826
|
parsedBody,
|
|
843
|
-
exceptionCtor: __BaseException,
|
|
844
827
|
errorCode,
|
|
845
828
|
});
|
|
846
829
|
}
|
|
@@ -851,12 +834,12 @@ export const de_ListLogPatternsCommand = async (output, context) => {
|
|
|
851
834
|
}
|
|
852
835
|
const data = await parseBody(output.body, context);
|
|
853
836
|
let contents = {};
|
|
854
|
-
contents =
|
|
837
|
+
contents = _json(data);
|
|
855
838
|
const response = {
|
|
856
839
|
$metadata: deserializeMetadata(output),
|
|
857
840
|
...contents,
|
|
858
841
|
};
|
|
859
|
-
return
|
|
842
|
+
return response;
|
|
860
843
|
};
|
|
861
844
|
const de_ListLogPatternsCommandError = async (output, context) => {
|
|
862
845
|
const parsedOutput = {
|
|
@@ -876,10 +859,9 @@ const de_ListLogPatternsCommandError = async (output, context) => {
|
|
|
876
859
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
877
860
|
default:
|
|
878
861
|
const parsedBody = parsedOutput.body;
|
|
879
|
-
throwDefaultError({
|
|
862
|
+
return throwDefaultError({
|
|
880
863
|
output,
|
|
881
864
|
parsedBody,
|
|
882
|
-
exceptionCtor: __BaseException,
|
|
883
865
|
errorCode,
|
|
884
866
|
});
|
|
885
867
|
}
|
|
@@ -890,12 +872,12 @@ export const de_ListLogPatternSetsCommand = async (output, context) => {
|
|
|
890
872
|
}
|
|
891
873
|
const data = await parseBody(output.body, context);
|
|
892
874
|
let contents = {};
|
|
893
|
-
contents =
|
|
875
|
+
contents = _json(data);
|
|
894
876
|
const response = {
|
|
895
877
|
$metadata: deserializeMetadata(output),
|
|
896
878
|
...contents,
|
|
897
879
|
};
|
|
898
|
-
return
|
|
880
|
+
return response;
|
|
899
881
|
};
|
|
900
882
|
const de_ListLogPatternSetsCommandError = async (output, context) => {
|
|
901
883
|
const parsedOutput = {
|
|
@@ -915,10 +897,9 @@ const de_ListLogPatternSetsCommandError = async (output, context) => {
|
|
|
915
897
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
898
|
default:
|
|
917
899
|
const parsedBody = parsedOutput.body;
|
|
918
|
-
throwDefaultError({
|
|
900
|
+
return throwDefaultError({
|
|
919
901
|
output,
|
|
920
902
|
parsedBody,
|
|
921
|
-
exceptionCtor: __BaseException,
|
|
922
903
|
errorCode,
|
|
923
904
|
});
|
|
924
905
|
}
|
|
@@ -934,7 +915,7 @@ export const de_ListProblemsCommand = async (output, context) => {
|
|
|
934
915
|
$metadata: deserializeMetadata(output),
|
|
935
916
|
...contents,
|
|
936
917
|
};
|
|
937
|
-
return
|
|
918
|
+
return response;
|
|
938
919
|
};
|
|
939
920
|
const de_ListProblemsCommandError = async (output, context) => {
|
|
940
921
|
const parsedOutput = {
|
|
@@ -954,10 +935,9 @@ const de_ListProblemsCommandError = async (output, context) => {
|
|
|
954
935
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
955
936
|
default:
|
|
956
937
|
const parsedBody = parsedOutput.body;
|
|
957
|
-
throwDefaultError({
|
|
938
|
+
return throwDefaultError({
|
|
958
939
|
output,
|
|
959
940
|
parsedBody,
|
|
960
|
-
exceptionCtor: __BaseException,
|
|
961
941
|
errorCode,
|
|
962
942
|
});
|
|
963
943
|
}
|
|
@@ -968,12 +948,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
968
948
|
}
|
|
969
949
|
const data = await parseBody(output.body, context);
|
|
970
950
|
let contents = {};
|
|
971
|
-
contents =
|
|
951
|
+
contents = _json(data);
|
|
972
952
|
const response = {
|
|
973
953
|
$metadata: deserializeMetadata(output),
|
|
974
954
|
...contents,
|
|
975
955
|
};
|
|
976
|
-
return
|
|
956
|
+
return response;
|
|
977
957
|
};
|
|
978
958
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
979
959
|
const parsedOutput = {
|
|
@@ -990,10 +970,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
990
970
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
991
971
|
default:
|
|
992
972
|
const parsedBody = parsedOutput.body;
|
|
993
|
-
throwDefaultError({
|
|
973
|
+
return throwDefaultError({
|
|
994
974
|
output,
|
|
995
975
|
parsedBody,
|
|
996
|
-
exceptionCtor: __BaseException,
|
|
997
976
|
errorCode,
|
|
998
977
|
});
|
|
999
978
|
}
|
|
@@ -1004,12 +983,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1004
983
|
}
|
|
1005
984
|
const data = await parseBody(output.body, context);
|
|
1006
985
|
let contents = {};
|
|
1007
|
-
contents =
|
|
986
|
+
contents = _json(data);
|
|
1008
987
|
const response = {
|
|
1009
988
|
$metadata: deserializeMetadata(output),
|
|
1010
989
|
...contents,
|
|
1011
990
|
};
|
|
1012
|
-
return
|
|
991
|
+
return response;
|
|
1013
992
|
};
|
|
1014
993
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1015
994
|
const parsedOutput = {
|
|
@@ -1029,10 +1008,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1029
1008
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1030
1009
|
default:
|
|
1031
1010
|
const parsedBody = parsedOutput.body;
|
|
1032
|
-
throwDefaultError({
|
|
1011
|
+
return throwDefaultError({
|
|
1033
1012
|
output,
|
|
1034
1013
|
parsedBody,
|
|
1035
|
-
exceptionCtor: __BaseException,
|
|
1036
1014
|
errorCode,
|
|
1037
1015
|
});
|
|
1038
1016
|
}
|
|
@@ -1043,12 +1021,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1043
1021
|
}
|
|
1044
1022
|
const data = await parseBody(output.body, context);
|
|
1045
1023
|
let contents = {};
|
|
1046
|
-
contents =
|
|
1024
|
+
contents = _json(data);
|
|
1047
1025
|
const response = {
|
|
1048
1026
|
$metadata: deserializeMetadata(output),
|
|
1049
1027
|
...contents,
|
|
1050
1028
|
};
|
|
1051
|
-
return
|
|
1029
|
+
return response;
|
|
1052
1030
|
};
|
|
1053
1031
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1054
1032
|
const parsedOutput = {
|
|
@@ -1065,10 +1043,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1065
1043
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1066
1044
|
default:
|
|
1067
1045
|
const parsedBody = parsedOutput.body;
|
|
1068
|
-
throwDefaultError({
|
|
1046
|
+
return throwDefaultError({
|
|
1069
1047
|
output,
|
|
1070
1048
|
parsedBody,
|
|
1071
|
-
exceptionCtor: __BaseException,
|
|
1072
1049
|
errorCode,
|
|
1073
1050
|
});
|
|
1074
1051
|
}
|
|
@@ -1079,12 +1056,12 @@ export const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1079
1056
|
}
|
|
1080
1057
|
const data = await parseBody(output.body, context);
|
|
1081
1058
|
let contents = {};
|
|
1082
|
-
contents =
|
|
1059
|
+
contents = _json(data);
|
|
1083
1060
|
const response = {
|
|
1084
1061
|
$metadata: deserializeMetadata(output),
|
|
1085
1062
|
...contents,
|
|
1086
1063
|
};
|
|
1087
|
-
return
|
|
1064
|
+
return response;
|
|
1088
1065
|
};
|
|
1089
1066
|
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
1090
1067
|
const parsedOutput = {
|
|
@@ -1104,10 +1081,9 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
1104
1081
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1105
1082
|
default:
|
|
1106
1083
|
const parsedBody = parsedOutput.body;
|
|
1107
|
-
throwDefaultError({
|
|
1084
|
+
return throwDefaultError({
|
|
1108
1085
|
output,
|
|
1109
1086
|
parsedBody,
|
|
1110
|
-
exceptionCtor: __BaseException,
|
|
1111
1087
|
errorCode,
|
|
1112
1088
|
});
|
|
1113
1089
|
}
|
|
@@ -1118,12 +1094,12 @@ export const de_UpdateComponentCommand = async (output, context) => {
|
|
|
1118
1094
|
}
|
|
1119
1095
|
const data = await parseBody(output.body, context);
|
|
1120
1096
|
let contents = {};
|
|
1121
|
-
contents =
|
|
1097
|
+
contents = _json(data);
|
|
1122
1098
|
const response = {
|
|
1123
1099
|
$metadata: deserializeMetadata(output),
|
|
1124
1100
|
...contents,
|
|
1125
1101
|
};
|
|
1126
|
-
return
|
|
1102
|
+
return response;
|
|
1127
1103
|
};
|
|
1128
1104
|
const de_UpdateComponentCommandError = async (output, context) => {
|
|
1129
1105
|
const parsedOutput = {
|
|
@@ -1146,10 +1122,9 @@ const de_UpdateComponentCommandError = async (output, context) => {
|
|
|
1146
1122
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1147
1123
|
default:
|
|
1148
1124
|
const parsedBody = parsedOutput.body;
|
|
1149
|
-
throwDefaultError({
|
|
1125
|
+
return throwDefaultError({
|
|
1150
1126
|
output,
|
|
1151
1127
|
parsedBody,
|
|
1152
|
-
exceptionCtor: __BaseException,
|
|
1153
1128
|
errorCode,
|
|
1154
1129
|
});
|
|
1155
1130
|
}
|
|
@@ -1160,12 +1135,12 @@ export const de_UpdateComponentConfigurationCommand = async (output, context) =>
|
|
|
1160
1135
|
}
|
|
1161
1136
|
const data = await parseBody(output.body, context);
|
|
1162
1137
|
let contents = {};
|
|
1163
|
-
contents =
|
|
1138
|
+
contents = _json(data);
|
|
1164
1139
|
const response = {
|
|
1165
1140
|
$metadata: deserializeMetadata(output),
|
|
1166
1141
|
...contents,
|
|
1167
1142
|
};
|
|
1168
|
-
return
|
|
1143
|
+
return response;
|
|
1169
1144
|
};
|
|
1170
1145
|
const de_UpdateComponentConfigurationCommandError = async (output, context) => {
|
|
1171
1146
|
const parsedOutput = {
|
|
@@ -1185,10 +1160,9 @@ const de_UpdateComponentConfigurationCommandError = async (output, context) => {
|
|
|
1185
1160
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1186
1161
|
default:
|
|
1187
1162
|
const parsedBody = parsedOutput.body;
|
|
1188
|
-
throwDefaultError({
|
|
1163
|
+
return throwDefaultError({
|
|
1189
1164
|
output,
|
|
1190
1165
|
parsedBody,
|
|
1191
|
-
exceptionCtor: __BaseException,
|
|
1192
1166
|
errorCode,
|
|
1193
1167
|
});
|
|
1194
1168
|
}
|
|
@@ -1199,12 +1173,12 @@ export const de_UpdateLogPatternCommand = async (output, context) => {
|
|
|
1199
1173
|
}
|
|
1200
1174
|
const data = await parseBody(output.body, context);
|
|
1201
1175
|
let contents = {};
|
|
1202
|
-
contents =
|
|
1176
|
+
contents = _json(data);
|
|
1203
1177
|
const response = {
|
|
1204
1178
|
$metadata: deserializeMetadata(output),
|
|
1205
1179
|
...contents,
|
|
1206
1180
|
};
|
|
1207
|
-
return
|
|
1181
|
+
return response;
|
|
1208
1182
|
};
|
|
1209
1183
|
const de_UpdateLogPatternCommandError = async (output, context) => {
|
|
1210
1184
|
const parsedOutput = {
|
|
@@ -1227,17 +1201,16 @@ const de_UpdateLogPatternCommandError = async (output, context) => {
|
|
|
1227
1201
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1228
1202
|
default:
|
|
1229
1203
|
const parsedBody = parsedOutput.body;
|
|
1230
|
-
throwDefaultError({
|
|
1204
|
+
return throwDefaultError({
|
|
1231
1205
|
output,
|
|
1232
1206
|
parsedBody,
|
|
1233
|
-
exceptionCtor: __BaseException,
|
|
1234
1207
|
errorCode,
|
|
1235
1208
|
});
|
|
1236
1209
|
}
|
|
1237
1210
|
};
|
|
1238
1211
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1239
1212
|
const body = parsedOutput.body;
|
|
1240
|
-
const deserialized =
|
|
1213
|
+
const deserialized = _json(body);
|
|
1241
1214
|
const exception = new AccessDeniedException({
|
|
1242
1215
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1243
1216
|
...deserialized,
|
|
@@ -1246,7 +1219,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1246
1219
|
};
|
|
1247
1220
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1248
1221
|
const body = parsedOutput.body;
|
|
1249
|
-
const deserialized =
|
|
1222
|
+
const deserialized = _json(body);
|
|
1250
1223
|
const exception = new BadRequestException({
|
|
1251
1224
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1252
1225
|
...deserialized,
|
|
@@ -1255,7 +1228,7 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1255
1228
|
};
|
|
1256
1229
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1257
1230
|
const body = parsedOutput.body;
|
|
1258
|
-
const deserialized =
|
|
1231
|
+
const deserialized = _json(body);
|
|
1259
1232
|
const exception = new InternalServerException({
|
|
1260
1233
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1261
1234
|
...deserialized,
|
|
@@ -1264,7 +1237,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1264
1237
|
};
|
|
1265
1238
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1266
1239
|
const body = parsedOutput.body;
|
|
1267
|
-
const deserialized =
|
|
1240
|
+
const deserialized = _json(body);
|
|
1268
1241
|
const exception = new ResourceInUseException({
|
|
1269
1242
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1270
1243
|
...deserialized,
|
|
@@ -1273,7 +1246,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
1273
1246
|
};
|
|
1274
1247
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1275
1248
|
const body = parsedOutput.body;
|
|
1276
|
-
const deserialized =
|
|
1249
|
+
const deserialized = _json(body);
|
|
1277
1250
|
const exception = new ResourceNotFoundException({
|
|
1278
1251
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1279
1252
|
...deserialized,
|
|
@@ -1282,7 +1255,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1282
1255
|
};
|
|
1283
1256
|
const de_TagsAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
1284
1257
|
const body = parsedOutput.body;
|
|
1285
|
-
const deserialized =
|
|
1258
|
+
const deserialized = _json(body);
|
|
1286
1259
|
const exception = new TagsAlreadyExistException({
|
|
1287
1260
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1288
1261
|
...deserialized,
|
|
@@ -1291,7 +1264,7 @@ const de_TagsAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
|
1291
1264
|
};
|
|
1292
1265
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1293
1266
|
const body = parsedOutput.body;
|
|
1294
|
-
const deserialized =
|
|
1267
|
+
const deserialized = _json(body);
|
|
1295
1268
|
const exception = new TooManyTagsException({
|
|
1296
1269
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1297
1270
|
...deserialized,
|
|
@@ -1300,655 +1273,164 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1300
1273
|
};
|
|
1301
1274
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1302
1275
|
const body = parsedOutput.body;
|
|
1303
|
-
const deserialized =
|
|
1276
|
+
const deserialized = _json(body);
|
|
1304
1277
|
const exception = new ValidationException({
|
|
1305
1278
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1306
1279
|
...deserialized,
|
|
1307
1280
|
});
|
|
1308
1281
|
return __decorateServiceException(exception, body);
|
|
1309
1282
|
};
|
|
1310
|
-
const se_CreateApplicationRequest = (input, context) => {
|
|
1311
|
-
return {
|
|
1312
|
-
...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
|
|
1313
|
-
...(input.AutoCreate != null && { AutoCreate: input.AutoCreate }),
|
|
1314
|
-
...(input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
|
|
1315
|
-
...(input.GroupingType != null && { GroupingType: input.GroupingType }),
|
|
1316
|
-
...(input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled }),
|
|
1317
|
-
...(input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
|
|
1318
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1319
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1320
|
-
};
|
|
1321
|
-
};
|
|
1322
|
-
const se_CreateComponentRequest = (input, context) => {
|
|
1323
|
-
return {
|
|
1324
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1325
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1326
|
-
...(input.ResourceList != null && { ResourceList: se_ResourceList(input.ResourceList, context) }),
|
|
1327
|
-
};
|
|
1328
|
-
};
|
|
1329
|
-
const se_CreateLogPatternRequest = (input, context) => {
|
|
1330
|
-
return {
|
|
1331
|
-
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
1332
|
-
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1333
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1334
|
-
...(input.Rank != null && { Rank: input.Rank }),
|
|
1335
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1336
|
-
};
|
|
1337
|
-
};
|
|
1338
|
-
const se_DeleteApplicationRequest = (input, context) => {
|
|
1339
|
-
return {
|
|
1340
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1341
|
-
};
|
|
1342
|
-
};
|
|
1343
|
-
const se_DeleteComponentRequest = (input, context) => {
|
|
1344
|
-
return {
|
|
1345
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1346
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1347
|
-
};
|
|
1348
|
-
};
|
|
1349
|
-
const se_DeleteLogPatternRequest = (input, context) => {
|
|
1350
|
-
return {
|
|
1351
|
-
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1352
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1353
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1354
|
-
};
|
|
1355
|
-
};
|
|
1356
|
-
const se_DescribeApplicationRequest = (input, context) => {
|
|
1357
|
-
return {
|
|
1358
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1359
|
-
};
|
|
1360
|
-
};
|
|
1361
|
-
const se_DescribeComponentConfigurationRecommendationRequest = (input, context) => {
|
|
1362
|
-
return {
|
|
1363
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1364
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1365
|
-
...(input.Tier != null && { Tier: input.Tier }),
|
|
1366
|
-
};
|
|
1367
|
-
};
|
|
1368
|
-
const se_DescribeComponentConfigurationRequest = (input, context) => {
|
|
1369
|
-
return {
|
|
1370
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1371
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1372
|
-
};
|
|
1373
|
-
};
|
|
1374
|
-
const se_DescribeComponentRequest = (input, context) => {
|
|
1375
|
-
return {
|
|
1376
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1377
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1378
|
-
};
|
|
1379
|
-
};
|
|
1380
|
-
const se_DescribeLogPatternRequest = (input, context) => {
|
|
1381
|
-
return {
|
|
1382
|
-
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1383
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1384
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1385
|
-
};
|
|
1386
|
-
};
|
|
1387
|
-
const se_DescribeObservationRequest = (input, context) => {
|
|
1388
|
-
return {
|
|
1389
|
-
...(input.ObservationId != null && { ObservationId: input.ObservationId }),
|
|
1390
|
-
};
|
|
1391
|
-
};
|
|
1392
|
-
const se_DescribeProblemObservationsRequest = (input, context) => {
|
|
1393
|
-
return {
|
|
1394
|
-
...(input.ProblemId != null && { ProblemId: input.ProblemId }),
|
|
1395
|
-
};
|
|
1396
|
-
};
|
|
1397
|
-
const se_DescribeProblemRequest = (input, context) => {
|
|
1398
|
-
return {
|
|
1399
|
-
...(input.ProblemId != null && { ProblemId: input.ProblemId }),
|
|
1400
|
-
};
|
|
1401
|
-
};
|
|
1402
|
-
const se_ListApplicationsRequest = (input, context) => {
|
|
1403
|
-
return {
|
|
1404
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1405
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
const se_ListComponentsRequest = (input, context) => {
|
|
1409
|
-
return {
|
|
1410
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1411
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1412
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1413
|
-
};
|
|
1414
|
-
};
|
|
1415
1283
|
const se_ListConfigurationHistoryRequest = (input, context) => {
|
|
1416
|
-
return {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
};
|
|
1424
|
-
};
|
|
1425
|
-
const se_ListLogPatternSetsRequest = (input, context) => {
|
|
1426
|
-
return {
|
|
1427
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1428
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1429
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1430
|
-
};
|
|
1431
|
-
};
|
|
1432
|
-
const se_ListLogPatternsRequest = (input, context) => {
|
|
1433
|
-
return {
|
|
1434
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1435
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1436
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1437
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1438
|
-
};
|
|
1439
|
-
};
|
|
1440
|
-
const se_ListProblemsRequest = (input, context) => {
|
|
1441
|
-
return {
|
|
1442
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1443
|
-
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1444
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1445
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1446
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1447
|
-
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1448
|
-
};
|
|
1449
|
-
};
|
|
1450
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1451
|
-
return {
|
|
1452
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1453
|
-
};
|
|
1454
|
-
};
|
|
1455
|
-
const se_ResourceList = (input, context) => {
|
|
1456
|
-
return input
|
|
1457
|
-
.filter((e) => e != null)
|
|
1458
|
-
.map((entry) => {
|
|
1459
|
-
return entry;
|
|
1284
|
+
return take(input, {
|
|
1285
|
+
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
1286
|
+
EventStatus: [],
|
|
1287
|
+
MaxResults: [],
|
|
1288
|
+
NextToken: [],
|
|
1289
|
+
ResourceGroupName: [],
|
|
1290
|
+
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
1460
1291
|
});
|
|
1461
1292
|
};
|
|
1462
|
-
const
|
|
1463
|
-
return {
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
.filter((e) => e != null)
|
|
1471
|
-
.map((entry) => {
|
|
1472
|
-
return entry;
|
|
1473
|
-
});
|
|
1474
|
-
};
|
|
1475
|
-
const se_TagList = (input, context) => {
|
|
1476
|
-
return input
|
|
1477
|
-
.filter((e) => e != null)
|
|
1478
|
-
.map((entry) => {
|
|
1479
|
-
return se_Tag(entry, context);
|
|
1480
|
-
});
|
|
1481
|
-
};
|
|
1482
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1483
|
-
return {
|
|
1484
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1485
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1486
|
-
};
|
|
1487
|
-
};
|
|
1488
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1489
|
-
return {
|
|
1490
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1491
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1492
|
-
};
|
|
1493
|
-
};
|
|
1494
|
-
const se_UpdateApplicationRequest = (input, context) => {
|
|
1495
|
-
return {
|
|
1496
|
-
...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
|
|
1497
|
-
...(input.CWEMonitorEnabled != null && { CWEMonitorEnabled: input.CWEMonitorEnabled }),
|
|
1498
|
-
...(input.OpsCenterEnabled != null && { OpsCenterEnabled: input.OpsCenterEnabled }),
|
|
1499
|
-
...(input.OpsItemSNSTopicArn != null && { OpsItemSNSTopicArn: input.OpsItemSNSTopicArn }),
|
|
1500
|
-
...(input.RemoveSNSTopic != null && { RemoveSNSTopic: input.RemoveSNSTopic }),
|
|
1501
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
const se_UpdateComponentConfigurationRequest = (input, context) => {
|
|
1505
|
-
return {
|
|
1506
|
-
...(input.AutoConfigEnabled != null && { AutoConfigEnabled: input.AutoConfigEnabled }),
|
|
1507
|
-
...(input.ComponentConfiguration != null && { ComponentConfiguration: input.ComponentConfiguration }),
|
|
1508
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1509
|
-
...(input.Monitor != null && { Monitor: input.Monitor }),
|
|
1510
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1511
|
-
...(input.Tier != null && { Tier: input.Tier }),
|
|
1512
|
-
};
|
|
1513
|
-
};
|
|
1514
|
-
const se_UpdateComponentRequest = (input, context) => {
|
|
1515
|
-
return {
|
|
1516
|
-
...(input.ComponentName != null && { ComponentName: input.ComponentName }),
|
|
1517
|
-
...(input.NewComponentName != null && { NewComponentName: input.NewComponentName }),
|
|
1518
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1519
|
-
...(input.ResourceList != null && { ResourceList: se_ResourceList(input.ResourceList, context) }),
|
|
1520
|
-
};
|
|
1521
|
-
};
|
|
1522
|
-
const se_UpdateLogPatternRequest = (input, context) => {
|
|
1523
|
-
return {
|
|
1524
|
-
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
1525
|
-
...(input.PatternName != null && { PatternName: input.PatternName }),
|
|
1526
|
-
...(input.PatternSetName != null && { PatternSetName: input.PatternSetName }),
|
|
1527
|
-
...(input.Rank != null && { Rank: input.Rank }),
|
|
1528
|
-
...(input.ResourceGroupName != null && { ResourceGroupName: input.ResourceGroupName }),
|
|
1529
|
-
};
|
|
1530
|
-
};
|
|
1531
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1532
|
-
return {
|
|
1533
|
-
Message: __expectString(output.Message),
|
|
1534
|
-
};
|
|
1535
|
-
};
|
|
1536
|
-
const de_ApplicationComponent = (output, context) => {
|
|
1537
|
-
return {
|
|
1538
|
-
ComponentName: __expectString(output.ComponentName),
|
|
1539
|
-
ComponentRemarks: __expectString(output.ComponentRemarks),
|
|
1540
|
-
DetectedWorkload: output.DetectedWorkload != null ? de_DetectedWorkload(output.DetectedWorkload, context) : undefined,
|
|
1541
|
-
Monitor: __expectBoolean(output.Monitor),
|
|
1542
|
-
OsType: __expectString(output.OsType),
|
|
1543
|
-
ResourceType: __expectString(output.ResourceType),
|
|
1544
|
-
Tier: __expectString(output.Tier),
|
|
1545
|
-
};
|
|
1546
|
-
};
|
|
1547
|
-
const de_ApplicationComponentList = (output, context) => {
|
|
1548
|
-
const retVal = (output || [])
|
|
1549
|
-
.filter((e) => e != null)
|
|
1550
|
-
.map((entry) => {
|
|
1551
|
-
if (entry === null) {
|
|
1552
|
-
return null;
|
|
1553
|
-
}
|
|
1554
|
-
return de_ApplicationComponent(entry, context);
|
|
1555
|
-
});
|
|
1556
|
-
return retVal;
|
|
1557
|
-
};
|
|
1558
|
-
const de_ApplicationInfo = (output, context) => {
|
|
1559
|
-
return {
|
|
1560
|
-
AutoConfigEnabled: __expectBoolean(output.AutoConfigEnabled),
|
|
1561
|
-
CWEMonitorEnabled: __expectBoolean(output.CWEMonitorEnabled),
|
|
1562
|
-
DiscoveryType: __expectString(output.DiscoveryType),
|
|
1563
|
-
LifeCycle: __expectString(output.LifeCycle),
|
|
1564
|
-
OpsCenterEnabled: __expectBoolean(output.OpsCenterEnabled),
|
|
1565
|
-
OpsItemSNSTopicArn: __expectString(output.OpsItemSNSTopicArn),
|
|
1566
|
-
Remarks: __expectString(output.Remarks),
|
|
1567
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1568
|
-
};
|
|
1569
|
-
};
|
|
1570
|
-
const de_ApplicationInfoList = (output, context) => {
|
|
1571
|
-
const retVal = (output || [])
|
|
1572
|
-
.filter((e) => e != null)
|
|
1573
|
-
.map((entry) => {
|
|
1574
|
-
if (entry === null) {
|
|
1575
|
-
return null;
|
|
1576
|
-
}
|
|
1577
|
-
return de_ApplicationInfo(entry, context);
|
|
1293
|
+
const se_ListProblemsRequest = (input, context) => {
|
|
1294
|
+
return take(input, {
|
|
1295
|
+
ComponentName: [],
|
|
1296
|
+
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
1297
|
+
MaxResults: [],
|
|
1298
|
+
NextToken: [],
|
|
1299
|
+
ResourceGroupName: [],
|
|
1300
|
+
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
1578
1301
|
});
|
|
1579
|
-
return retVal;
|
|
1580
|
-
};
|
|
1581
|
-
const de_BadRequestException = (output, context) => {
|
|
1582
|
-
return {
|
|
1583
|
-
Message: __expectString(output.Message),
|
|
1584
|
-
};
|
|
1585
1302
|
};
|
|
1586
1303
|
const de_ConfigurationEvent = (output, context) => {
|
|
1587
|
-
return {
|
|
1588
|
-
EventDetail: __expectString
|
|
1589
|
-
EventResourceName: __expectString
|
|
1590
|
-
EventResourceType: __expectString
|
|
1591
|
-
EventStatus: __expectString
|
|
1592
|
-
EventTime:
|
|
1593
|
-
MonitoredResourceARN: __expectString
|
|
1594
|
-
};
|
|
1304
|
+
return take(output, {
|
|
1305
|
+
EventDetail: __expectString,
|
|
1306
|
+
EventResourceName: __expectString,
|
|
1307
|
+
EventResourceType: __expectString,
|
|
1308
|
+
EventStatus: __expectString,
|
|
1309
|
+
EventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1310
|
+
MonitoredResourceARN: __expectString,
|
|
1311
|
+
});
|
|
1595
1312
|
};
|
|
1596
1313
|
const de_ConfigurationEventList = (output, context) => {
|
|
1597
1314
|
const retVal = (output || [])
|
|
1598
1315
|
.filter((e) => e != null)
|
|
1599
1316
|
.map((entry) => {
|
|
1600
|
-
if (entry === null) {
|
|
1601
|
-
return null;
|
|
1602
|
-
}
|
|
1603
1317
|
return de_ConfigurationEvent(entry, context);
|
|
1604
1318
|
});
|
|
1605
1319
|
return retVal;
|
|
1606
1320
|
};
|
|
1607
|
-
const de_CreateApplicationResponse = (output, context) => {
|
|
1608
|
-
return {
|
|
1609
|
-
ApplicationInfo: output.ApplicationInfo != null ? de_ApplicationInfo(output.ApplicationInfo, context) : undefined,
|
|
1610
|
-
};
|
|
1611
|
-
};
|
|
1612
|
-
const de_CreateComponentResponse = (output, context) => {
|
|
1613
|
-
return {};
|
|
1614
|
-
};
|
|
1615
|
-
const de_CreateLogPatternResponse = (output, context) => {
|
|
1616
|
-
return {
|
|
1617
|
-
LogPattern: output.LogPattern != null ? de_LogPattern(output.LogPattern, context) : undefined,
|
|
1618
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1619
|
-
};
|
|
1620
|
-
};
|
|
1621
|
-
const de_DeleteApplicationResponse = (output, context) => {
|
|
1622
|
-
return {};
|
|
1623
|
-
};
|
|
1624
|
-
const de_DeleteComponentResponse = (output, context) => {
|
|
1625
|
-
return {};
|
|
1626
|
-
};
|
|
1627
|
-
const de_DeleteLogPatternResponse = (output, context) => {
|
|
1628
|
-
return {};
|
|
1629
|
-
};
|
|
1630
|
-
const de_DescribeApplicationResponse = (output, context) => {
|
|
1631
|
-
return {
|
|
1632
|
-
ApplicationInfo: output.ApplicationInfo != null ? de_ApplicationInfo(output.ApplicationInfo, context) : undefined,
|
|
1633
|
-
};
|
|
1634
|
-
};
|
|
1635
|
-
const de_DescribeComponentConfigurationRecommendationResponse = (output, context) => {
|
|
1636
|
-
return {
|
|
1637
|
-
ComponentConfiguration: __expectString(output.ComponentConfiguration),
|
|
1638
|
-
};
|
|
1639
|
-
};
|
|
1640
|
-
const de_DescribeComponentConfigurationResponse = (output, context) => {
|
|
1641
|
-
return {
|
|
1642
|
-
ComponentConfiguration: __expectString(output.ComponentConfiguration),
|
|
1643
|
-
Monitor: __expectBoolean(output.Monitor),
|
|
1644
|
-
Tier: __expectString(output.Tier),
|
|
1645
|
-
};
|
|
1646
|
-
};
|
|
1647
|
-
const de_DescribeComponentResponse = (output, context) => {
|
|
1648
|
-
return {
|
|
1649
|
-
ApplicationComponent: output.ApplicationComponent != null ? de_ApplicationComponent(output.ApplicationComponent, context) : undefined,
|
|
1650
|
-
ResourceList: output.ResourceList != null ? de_ResourceList(output.ResourceList, context) : undefined,
|
|
1651
|
-
};
|
|
1652
|
-
};
|
|
1653
|
-
const de_DescribeLogPatternResponse = (output, context) => {
|
|
1654
|
-
return {
|
|
1655
|
-
LogPattern: output.LogPattern != null ? de_LogPattern(output.LogPattern, context) : undefined,
|
|
1656
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1657
|
-
};
|
|
1658
|
-
};
|
|
1659
1321
|
const de_DescribeObservationResponse = (output, context) => {
|
|
1660
|
-
return {
|
|
1661
|
-
Observation:
|
|
1662
|
-
};
|
|
1322
|
+
return take(output, {
|
|
1323
|
+
Observation: (_) => de_Observation(_, context),
|
|
1324
|
+
});
|
|
1663
1325
|
};
|
|
1664
1326
|
const de_DescribeProblemObservationsResponse = (output, context) => {
|
|
1665
|
-
return {
|
|
1666
|
-
RelatedObservations:
|
|
1667
|
-
};
|
|
1327
|
+
return take(output, {
|
|
1328
|
+
RelatedObservations: (_) => de_RelatedObservations(_, context),
|
|
1329
|
+
});
|
|
1668
1330
|
};
|
|
1669
1331
|
const de_DescribeProblemResponse = (output, context) => {
|
|
1670
|
-
return {
|
|
1671
|
-
Problem:
|
|
1672
|
-
};
|
|
1673
|
-
};
|
|
1674
|
-
const de_DetectedWorkload = (output, context) => {
|
|
1675
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1676
|
-
if (value === null) {
|
|
1677
|
-
return acc;
|
|
1678
|
-
}
|
|
1679
|
-
acc[key] = de_WorkloadMetaData(value, context);
|
|
1680
|
-
return acc;
|
|
1681
|
-
}, {});
|
|
1682
|
-
};
|
|
1683
|
-
const de_Feedback = (output, context) => {
|
|
1684
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1685
|
-
if (value === null) {
|
|
1686
|
-
return acc;
|
|
1687
|
-
}
|
|
1688
|
-
acc[key] = __expectString(value);
|
|
1689
|
-
return acc;
|
|
1690
|
-
}, {});
|
|
1691
|
-
};
|
|
1692
|
-
const de_InternalServerException = (output, context) => {
|
|
1693
|
-
return {
|
|
1694
|
-
Message: __expectString(output.Message),
|
|
1695
|
-
};
|
|
1696
|
-
};
|
|
1697
|
-
const de_ListApplicationsResponse = (output, context) => {
|
|
1698
|
-
return {
|
|
1699
|
-
ApplicationInfoList: output.ApplicationInfoList != null ? de_ApplicationInfoList(output.ApplicationInfoList, context) : undefined,
|
|
1700
|
-
NextToken: __expectString(output.NextToken),
|
|
1701
|
-
};
|
|
1702
|
-
};
|
|
1703
|
-
const de_ListComponentsResponse = (output, context) => {
|
|
1704
|
-
return {
|
|
1705
|
-
ApplicationComponentList: output.ApplicationComponentList != null
|
|
1706
|
-
? de_ApplicationComponentList(output.ApplicationComponentList, context)
|
|
1707
|
-
: undefined,
|
|
1708
|
-
NextToken: __expectString(output.NextToken),
|
|
1709
|
-
};
|
|
1332
|
+
return take(output, {
|
|
1333
|
+
Problem: (_) => de_Problem(_, context),
|
|
1334
|
+
});
|
|
1710
1335
|
};
|
|
1711
1336
|
const de_ListConfigurationHistoryResponse = (output, context) => {
|
|
1712
|
-
return {
|
|
1713
|
-
EventList:
|
|
1714
|
-
NextToken: __expectString
|
|
1715
|
-
};
|
|
1716
|
-
};
|
|
1717
|
-
const de_ListLogPatternSetsResponse = (output, context) => {
|
|
1718
|
-
return {
|
|
1719
|
-
LogPatternSets: output.LogPatternSets != null ? de_LogPatternSetList(output.LogPatternSets, context) : undefined,
|
|
1720
|
-
NextToken: __expectString(output.NextToken),
|
|
1721
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1722
|
-
};
|
|
1723
|
-
};
|
|
1724
|
-
const de_ListLogPatternsResponse = (output, context) => {
|
|
1725
|
-
return {
|
|
1726
|
-
LogPatterns: output.LogPatterns != null ? de_LogPatternList(output.LogPatterns, context) : undefined,
|
|
1727
|
-
NextToken: __expectString(output.NextToken),
|
|
1728
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1729
|
-
};
|
|
1730
|
-
};
|
|
1731
|
-
const de_ListProblemsResponse = (output, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
NextToken: __expectString(output.NextToken),
|
|
1734
|
-
ProblemList: output.ProblemList != null ? de_ProblemList(output.ProblemList, context) : undefined,
|
|
1735
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1736
|
-
};
|
|
1737
|
-
};
|
|
1738
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1739
|
-
return {
|
|
1740
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1741
|
-
};
|
|
1742
|
-
};
|
|
1743
|
-
const de_LogPattern = (output, context) => {
|
|
1744
|
-
return {
|
|
1745
|
-
Pattern: __expectString(output.Pattern),
|
|
1746
|
-
PatternName: __expectString(output.PatternName),
|
|
1747
|
-
PatternSetName: __expectString(output.PatternSetName),
|
|
1748
|
-
Rank: __expectInt32(output.Rank),
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
const de_LogPatternList = (output, context) => {
|
|
1752
|
-
const retVal = (output || [])
|
|
1753
|
-
.filter((e) => e != null)
|
|
1754
|
-
.map((entry) => {
|
|
1755
|
-
if (entry === null) {
|
|
1756
|
-
return null;
|
|
1757
|
-
}
|
|
1758
|
-
return de_LogPattern(entry, context);
|
|
1337
|
+
return take(output, {
|
|
1338
|
+
EventList: (_) => de_ConfigurationEventList(_, context),
|
|
1339
|
+
NextToken: __expectString,
|
|
1759
1340
|
});
|
|
1760
|
-
return retVal;
|
|
1761
1341
|
};
|
|
1762
|
-
const
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
return null;
|
|
1768
|
-
}
|
|
1769
|
-
return __expectString(entry);
|
|
1342
|
+
const de_ListProblemsResponse = (output, context) => {
|
|
1343
|
+
return take(output, {
|
|
1344
|
+
NextToken: __expectString,
|
|
1345
|
+
ProblemList: (_) => de_ProblemList(_, context),
|
|
1346
|
+
ResourceGroupName: __expectString,
|
|
1770
1347
|
});
|
|
1771
|
-
return retVal;
|
|
1772
1348
|
};
|
|
1773
1349
|
const de_Observation = (output, context) => {
|
|
1774
|
-
return {
|
|
1775
|
-
CloudWatchEventDetailType: __expectString
|
|
1776
|
-
CloudWatchEventId: __expectString
|
|
1777
|
-
CloudWatchEventSource: __expectString
|
|
1778
|
-
CodeDeployApplication: __expectString
|
|
1779
|
-
CodeDeployDeploymentGroup: __expectString
|
|
1780
|
-
CodeDeployDeploymentId: __expectString
|
|
1781
|
-
CodeDeployInstanceGroupId: __expectString
|
|
1782
|
-
CodeDeployState: __expectString
|
|
1783
|
-
EbsCause: __expectString
|
|
1784
|
-
EbsEvent: __expectString
|
|
1785
|
-
EbsRequestId: __expectString
|
|
1786
|
-
EbsResult: __expectString
|
|
1787
|
-
Ec2State: __expectString
|
|
1788
|
-
EndTime:
|
|
1789
|
-
HealthEventArn: __expectString
|
|
1790
|
-
HealthEventDescription: __expectString
|
|
1791
|
-
HealthEventTypeCategory: __expectString
|
|
1792
|
-
HealthEventTypeCode: __expectString
|
|
1793
|
-
HealthService: __expectString
|
|
1794
|
-
Id: __expectString
|
|
1795
|
-
LineTime:
|
|
1796
|
-
LogFilter: __expectString
|
|
1797
|
-
LogGroup: __expectString
|
|
1798
|
-
LogText: __expectString
|
|
1799
|
-
MetricName: __expectString
|
|
1800
|
-
MetricNamespace: __expectString
|
|
1801
|
-
RdsEventCategories: __expectString
|
|
1802
|
-
RdsEventMessage: __expectString
|
|
1803
|
-
S3EventName: __expectString
|
|
1804
|
-
SourceARN: __expectString
|
|
1805
|
-
SourceType: __expectString
|
|
1806
|
-
StartTime:
|
|
1807
|
-
StatesArn: __expectString
|
|
1808
|
-
StatesExecutionArn: __expectString
|
|
1809
|
-
StatesInput: __expectString
|
|
1810
|
-
StatesStatus: __expectString
|
|
1811
|
-
Unit: __expectString
|
|
1812
|
-
Value: __limitedParseDouble
|
|
1813
|
-
XRayErrorPercent: __expectInt32
|
|
1814
|
-
XRayFaultPercent: __expectInt32
|
|
1815
|
-
XRayNodeName: __expectString
|
|
1816
|
-
XRayNodeType: __expectString
|
|
1817
|
-
XRayRequestAverageLatency: __expectLong
|
|
1818
|
-
XRayRequestCount: __expectInt32
|
|
1819
|
-
XRayThrottlePercent: __expectInt32
|
|
1820
|
-
};
|
|
1350
|
+
return take(output, {
|
|
1351
|
+
CloudWatchEventDetailType: __expectString,
|
|
1352
|
+
CloudWatchEventId: __expectString,
|
|
1353
|
+
CloudWatchEventSource: __expectString,
|
|
1354
|
+
CodeDeployApplication: __expectString,
|
|
1355
|
+
CodeDeployDeploymentGroup: __expectString,
|
|
1356
|
+
CodeDeployDeploymentId: __expectString,
|
|
1357
|
+
CodeDeployInstanceGroupId: __expectString,
|
|
1358
|
+
CodeDeployState: __expectString,
|
|
1359
|
+
EbsCause: __expectString,
|
|
1360
|
+
EbsEvent: __expectString,
|
|
1361
|
+
EbsRequestId: __expectString,
|
|
1362
|
+
EbsResult: __expectString,
|
|
1363
|
+
Ec2State: __expectString,
|
|
1364
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1365
|
+
HealthEventArn: __expectString,
|
|
1366
|
+
HealthEventDescription: __expectString,
|
|
1367
|
+
HealthEventTypeCategory: __expectString,
|
|
1368
|
+
HealthEventTypeCode: __expectString,
|
|
1369
|
+
HealthService: __expectString,
|
|
1370
|
+
Id: __expectString,
|
|
1371
|
+
LineTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1372
|
+
LogFilter: __expectString,
|
|
1373
|
+
LogGroup: __expectString,
|
|
1374
|
+
LogText: __expectString,
|
|
1375
|
+
MetricName: __expectString,
|
|
1376
|
+
MetricNamespace: __expectString,
|
|
1377
|
+
RdsEventCategories: __expectString,
|
|
1378
|
+
RdsEventMessage: __expectString,
|
|
1379
|
+
S3EventName: __expectString,
|
|
1380
|
+
SourceARN: __expectString,
|
|
1381
|
+
SourceType: __expectString,
|
|
1382
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1383
|
+
StatesArn: __expectString,
|
|
1384
|
+
StatesExecutionArn: __expectString,
|
|
1385
|
+
StatesInput: __expectString,
|
|
1386
|
+
StatesStatus: __expectString,
|
|
1387
|
+
Unit: __expectString,
|
|
1388
|
+
Value: __limitedParseDouble,
|
|
1389
|
+
XRayErrorPercent: __expectInt32,
|
|
1390
|
+
XRayFaultPercent: __expectInt32,
|
|
1391
|
+
XRayNodeName: __expectString,
|
|
1392
|
+
XRayNodeType: __expectString,
|
|
1393
|
+
XRayRequestAverageLatency: __expectLong,
|
|
1394
|
+
XRayRequestCount: __expectInt32,
|
|
1395
|
+
XRayThrottlePercent: __expectInt32,
|
|
1396
|
+
});
|
|
1821
1397
|
};
|
|
1822
1398
|
const de_ObservationList = (output, context) => {
|
|
1823
1399
|
const retVal = (output || [])
|
|
1824
1400
|
.filter((e) => e != null)
|
|
1825
1401
|
.map((entry) => {
|
|
1826
|
-
if (entry === null) {
|
|
1827
|
-
return null;
|
|
1828
|
-
}
|
|
1829
1402
|
return de_Observation(entry, context);
|
|
1830
1403
|
});
|
|
1831
1404
|
return retVal;
|
|
1832
1405
|
};
|
|
1833
1406
|
const de_Problem = (output, context) => {
|
|
1834
|
-
return {
|
|
1835
|
-
AffectedResource: __expectString
|
|
1836
|
-
EndTime:
|
|
1837
|
-
Feedback:
|
|
1838
|
-
Id: __expectString
|
|
1839
|
-
Insights: __expectString
|
|
1840
|
-
LastRecurrenceTime:
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
Title: __expectString(output.Title),
|
|
1849
|
-
};
|
|
1407
|
+
return take(output, {
|
|
1408
|
+
AffectedResource: __expectString,
|
|
1409
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1410
|
+
Feedback: _json,
|
|
1411
|
+
Id: __expectString,
|
|
1412
|
+
Insights: __expectString,
|
|
1413
|
+
LastRecurrenceTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1414
|
+
RecurringCount: __expectLong,
|
|
1415
|
+
ResourceGroupName: __expectString,
|
|
1416
|
+
SeverityLevel: __expectString,
|
|
1417
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1418
|
+
Status: __expectString,
|
|
1419
|
+
Title: __expectString,
|
|
1420
|
+
});
|
|
1850
1421
|
};
|
|
1851
1422
|
const de_ProblemList = (output, context) => {
|
|
1852
1423
|
const retVal = (output || [])
|
|
1853
1424
|
.filter((e) => e != null)
|
|
1854
1425
|
.map((entry) => {
|
|
1855
|
-
if (entry === null) {
|
|
1856
|
-
return null;
|
|
1857
|
-
}
|
|
1858
1426
|
return de_Problem(entry, context);
|
|
1859
1427
|
});
|
|
1860
1428
|
return retVal;
|
|
1861
1429
|
};
|
|
1862
1430
|
const de_RelatedObservations = (output, context) => {
|
|
1863
|
-
return {
|
|
1864
|
-
ObservationList:
|
|
1865
|
-
};
|
|
1866
|
-
};
|
|
1867
|
-
const de_ResourceInUseException = (output, context) => {
|
|
1868
|
-
return {
|
|
1869
|
-
Message: __expectString(output.Message),
|
|
1870
|
-
};
|
|
1871
|
-
};
|
|
1872
|
-
const de_ResourceList = (output, context) => {
|
|
1873
|
-
const retVal = (output || [])
|
|
1874
|
-
.filter((e) => e != null)
|
|
1875
|
-
.map((entry) => {
|
|
1876
|
-
if (entry === null) {
|
|
1877
|
-
return null;
|
|
1878
|
-
}
|
|
1879
|
-
return __expectString(entry);
|
|
1431
|
+
return take(output, {
|
|
1432
|
+
ObservationList: (_) => de_ObservationList(_, context),
|
|
1880
1433
|
});
|
|
1881
|
-
return retVal;
|
|
1882
|
-
};
|
|
1883
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1884
|
-
return {
|
|
1885
|
-
Message: __expectString(output.Message),
|
|
1886
|
-
};
|
|
1887
|
-
};
|
|
1888
|
-
const de_Tag = (output, context) => {
|
|
1889
|
-
return {
|
|
1890
|
-
Key: __expectString(output.Key),
|
|
1891
|
-
Value: __expectString(output.Value),
|
|
1892
|
-
};
|
|
1893
|
-
};
|
|
1894
|
-
const de_TagList = (output, context) => {
|
|
1895
|
-
const retVal = (output || [])
|
|
1896
|
-
.filter((e) => e != null)
|
|
1897
|
-
.map((entry) => {
|
|
1898
|
-
if (entry === null) {
|
|
1899
|
-
return null;
|
|
1900
|
-
}
|
|
1901
|
-
return de_Tag(entry, context);
|
|
1902
|
-
});
|
|
1903
|
-
return retVal;
|
|
1904
|
-
};
|
|
1905
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1906
|
-
return {};
|
|
1907
|
-
};
|
|
1908
|
-
const de_TagsAlreadyExistException = (output, context) => {
|
|
1909
|
-
return {
|
|
1910
|
-
Message: __expectString(output.Message),
|
|
1911
|
-
};
|
|
1912
|
-
};
|
|
1913
|
-
const de_TooManyTagsException = (output, context) => {
|
|
1914
|
-
return {
|
|
1915
|
-
Message: __expectString(output.Message),
|
|
1916
|
-
ResourceName: __expectString(output.ResourceName),
|
|
1917
|
-
};
|
|
1918
|
-
};
|
|
1919
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1920
|
-
return {};
|
|
1921
|
-
};
|
|
1922
|
-
const de_UpdateApplicationResponse = (output, context) => {
|
|
1923
|
-
return {
|
|
1924
|
-
ApplicationInfo: output.ApplicationInfo != null ? de_ApplicationInfo(output.ApplicationInfo, context) : undefined,
|
|
1925
|
-
};
|
|
1926
|
-
};
|
|
1927
|
-
const de_UpdateComponentConfigurationResponse = (output, context) => {
|
|
1928
|
-
return {};
|
|
1929
|
-
};
|
|
1930
|
-
const de_UpdateComponentResponse = (output, context) => {
|
|
1931
|
-
return {};
|
|
1932
|
-
};
|
|
1933
|
-
const de_UpdateLogPatternResponse = (output, context) => {
|
|
1934
|
-
return {
|
|
1935
|
-
LogPattern: output.LogPattern != null ? de_LogPattern(output.LogPattern, context) : undefined,
|
|
1936
|
-
ResourceGroupName: __expectString(output.ResourceGroupName),
|
|
1937
|
-
};
|
|
1938
|
-
};
|
|
1939
|
-
const de_ValidationException = (output, context) => {
|
|
1940
|
-
return {
|
|
1941
|
-
Message: __expectString(output.Message),
|
|
1942
|
-
};
|
|
1943
|
-
};
|
|
1944
|
-
const de_WorkloadMetaData = (output, context) => {
|
|
1945
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1946
|
-
if (value === null) {
|
|
1947
|
-
return acc;
|
|
1948
|
-
}
|
|
1949
|
-
acc[key] = __expectString(value);
|
|
1950
|
-
return acc;
|
|
1951
|
-
}, {});
|
|
1952
1434
|
};
|
|
1953
1435
|
const deserializeMetadata = (output) => ({
|
|
1954
1436
|
httpStatusCode: output.statusCode,
|
|
@@ -1963,6 +1445,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1963
1445
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1964
1446
|
};
|
|
1965
1447
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1448
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1966
1449
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1967
1450
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1968
1451
|
const contents = {
|