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