@aws-sdk/client-application-insights 3.927.0 → 3.928.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/index.js +1048 -1190
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/ApplicationInsightsClient.js +2 -0
- package/dist-es/commands/AddWorkloadCommand.js +3 -9
- package/dist-es/commands/CreateApplicationCommand.js +3 -9
- package/dist-es/commands/CreateComponentCommand.js +3 -9
- package/dist-es/commands/CreateLogPatternCommand.js +3 -9
- package/dist-es/commands/DeleteApplicationCommand.js +3 -9
- package/dist-es/commands/DeleteComponentCommand.js +3 -9
- package/dist-es/commands/DeleteLogPatternCommand.js +3 -9
- package/dist-es/commands/DescribeApplicationCommand.js +3 -9
- package/dist-es/commands/DescribeComponentCommand.js +3 -9
- package/dist-es/commands/DescribeComponentConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribeComponentConfigurationRecommendationCommand.js +3 -9
- package/dist-es/commands/DescribeLogPatternCommand.js +3 -9
- package/dist-es/commands/DescribeObservationCommand.js +3 -9
- package/dist-es/commands/DescribeProblemCommand.js +3 -9
- package/dist-es/commands/DescribeProblemObservationsCommand.js +3 -9
- package/dist-es/commands/DescribeWorkloadCommand.js +3 -9
- package/dist-es/commands/ListApplicationsCommand.js +3 -9
- package/dist-es/commands/ListComponentsCommand.js +3 -9
- package/dist-es/commands/ListConfigurationHistoryCommand.js +3 -9
- package/dist-es/commands/ListLogPatternSetsCommand.js +3 -9
- package/dist-es/commands/ListLogPatternsCommand.js +3 -9
- package/dist-es/commands/ListProblemsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListWorkloadsCommand.js +3 -9
- package/dist-es/commands/RemoveWorkloadCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateApplicationCommand.js +3 -9
- package/dist-es/commands/UpdateComponentCommand.js +3 -9
- package/dist-es/commands/UpdateComponentConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateLogPatternCommand.js +3 -9
- package/dist-es/commands/UpdateProblemCommand.js +3 -9
- package/dist-es/commands/UpdateWorkloadCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +963 -0
- package/dist-types/ApplicationInsightsClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +134 -0
- package/dist-types/ts3.4/ApplicationInsightsClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +140 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -939
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -299
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -401
|
@@ -1,939 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, 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 "@smithy/smithy-client";
|
|
4
|
-
import { ApplicationInsightsServiceException as __BaseException } from "../models/ApplicationInsightsServiceException";
|
|
5
|
-
import { AccessDeniedException, BadRequestException, InternalServerException, ResourceInUseException, ResourceNotFoundException, TagsAlreadyExistException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_AddWorkloadCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("AddWorkload");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateApplicationCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateApplication");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateComponentCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateComponent");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateLogPatternCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateLogPattern");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteApplication");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteComponentCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteComponent");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DeleteLogPatternCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DeleteLogPattern");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DescribeApplicationCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DescribeApplication");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DescribeComponentCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DescribeComponent");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DescribeComponentConfigurationCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DescribeComponentConfiguration");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DescribeComponentConfigurationRecommendationCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DescribeComponentConfigurationRecommendation");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DescribeLogPatternCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DescribeLogPattern");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DescribeObservationCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DescribeObservation");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_DescribeProblemCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("DescribeProblem");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_DescribeProblemObservationsCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("DescribeProblemObservations");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_DescribeWorkloadCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("DescribeWorkload");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_ListApplicationsCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("ListApplications");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_ListComponentsCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("ListComponents");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_ListConfigurationHistoryCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("ListConfigurationHistory");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(se_ListConfigurationHistoryRequest(input, context));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_ListLogPatternsCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("ListLogPatterns");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_ListLogPatternSetsCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("ListLogPatternSets");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_ListProblemsCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("ListProblems");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(se_ListProblemsRequest(input, context));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_ListWorkloadsCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("ListWorkloads");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_RemoveWorkloadCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("RemoveWorkload");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("TagResource");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("UntagResource");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("UpdateApplication");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_UpdateComponentCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("UpdateComponent");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_UpdateComponentConfigurationCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("UpdateComponentConfiguration");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_UpdateLogPatternCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("UpdateLogPattern");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_UpdateProblemCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("UpdateProblem");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_UpdateWorkloadCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("UpdateWorkload");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const de_AddWorkloadCommand = async (output, context) => {
|
|
205
|
-
if (output.statusCode >= 300) {
|
|
206
|
-
return de_CommandError(output, context);
|
|
207
|
-
}
|
|
208
|
-
const data = await parseBody(output.body, context);
|
|
209
|
-
let contents = {};
|
|
210
|
-
contents = _json(data);
|
|
211
|
-
const response = {
|
|
212
|
-
$metadata: deserializeMetadata(output),
|
|
213
|
-
...contents,
|
|
214
|
-
};
|
|
215
|
-
return response;
|
|
216
|
-
};
|
|
217
|
-
export const de_CreateApplicationCommand = async (output, context) => {
|
|
218
|
-
if (output.statusCode >= 300) {
|
|
219
|
-
return de_CommandError(output, context);
|
|
220
|
-
}
|
|
221
|
-
const data = await parseBody(output.body, context);
|
|
222
|
-
let contents = {};
|
|
223
|
-
contents = _json(data);
|
|
224
|
-
const response = {
|
|
225
|
-
$metadata: deserializeMetadata(output),
|
|
226
|
-
...contents,
|
|
227
|
-
};
|
|
228
|
-
return response;
|
|
229
|
-
};
|
|
230
|
-
export const de_CreateComponentCommand = async (output, context) => {
|
|
231
|
-
if (output.statusCode >= 300) {
|
|
232
|
-
return de_CommandError(output, context);
|
|
233
|
-
}
|
|
234
|
-
const data = await parseBody(output.body, context);
|
|
235
|
-
let contents = {};
|
|
236
|
-
contents = _json(data);
|
|
237
|
-
const response = {
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
...contents,
|
|
240
|
-
};
|
|
241
|
-
return response;
|
|
242
|
-
};
|
|
243
|
-
export const de_CreateLogPatternCommand = async (output, context) => {
|
|
244
|
-
if (output.statusCode >= 300) {
|
|
245
|
-
return de_CommandError(output, context);
|
|
246
|
-
}
|
|
247
|
-
const data = await parseBody(output.body, context);
|
|
248
|
-
let contents = {};
|
|
249
|
-
contents = _json(data);
|
|
250
|
-
const response = {
|
|
251
|
-
$metadata: deserializeMetadata(output),
|
|
252
|
-
...contents,
|
|
253
|
-
};
|
|
254
|
-
return response;
|
|
255
|
-
};
|
|
256
|
-
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
257
|
-
if (output.statusCode >= 300) {
|
|
258
|
-
return de_CommandError(output, context);
|
|
259
|
-
}
|
|
260
|
-
const data = await parseBody(output.body, context);
|
|
261
|
-
let contents = {};
|
|
262
|
-
contents = _json(data);
|
|
263
|
-
const response = {
|
|
264
|
-
$metadata: deserializeMetadata(output),
|
|
265
|
-
...contents,
|
|
266
|
-
};
|
|
267
|
-
return response;
|
|
268
|
-
};
|
|
269
|
-
export const de_DeleteComponentCommand = async (output, context) => {
|
|
270
|
-
if (output.statusCode >= 300) {
|
|
271
|
-
return de_CommandError(output, context);
|
|
272
|
-
}
|
|
273
|
-
const data = await parseBody(output.body, context);
|
|
274
|
-
let contents = {};
|
|
275
|
-
contents = _json(data);
|
|
276
|
-
const response = {
|
|
277
|
-
$metadata: deserializeMetadata(output),
|
|
278
|
-
...contents,
|
|
279
|
-
};
|
|
280
|
-
return response;
|
|
281
|
-
};
|
|
282
|
-
export const de_DeleteLogPatternCommand = async (output, context) => {
|
|
283
|
-
if (output.statusCode >= 300) {
|
|
284
|
-
return de_CommandError(output, context);
|
|
285
|
-
}
|
|
286
|
-
const data = await parseBody(output.body, context);
|
|
287
|
-
let contents = {};
|
|
288
|
-
contents = _json(data);
|
|
289
|
-
const response = {
|
|
290
|
-
$metadata: deserializeMetadata(output),
|
|
291
|
-
...contents,
|
|
292
|
-
};
|
|
293
|
-
return response;
|
|
294
|
-
};
|
|
295
|
-
export const de_DescribeApplicationCommand = async (output, context) => {
|
|
296
|
-
if (output.statusCode >= 300) {
|
|
297
|
-
return de_CommandError(output, context);
|
|
298
|
-
}
|
|
299
|
-
const data = await parseBody(output.body, context);
|
|
300
|
-
let contents = {};
|
|
301
|
-
contents = _json(data);
|
|
302
|
-
const response = {
|
|
303
|
-
$metadata: deserializeMetadata(output),
|
|
304
|
-
...contents,
|
|
305
|
-
};
|
|
306
|
-
return response;
|
|
307
|
-
};
|
|
308
|
-
export const de_DescribeComponentCommand = async (output, context) => {
|
|
309
|
-
if (output.statusCode >= 300) {
|
|
310
|
-
return de_CommandError(output, context);
|
|
311
|
-
}
|
|
312
|
-
const data = await parseBody(output.body, context);
|
|
313
|
-
let contents = {};
|
|
314
|
-
contents = _json(data);
|
|
315
|
-
const response = {
|
|
316
|
-
$metadata: deserializeMetadata(output),
|
|
317
|
-
...contents,
|
|
318
|
-
};
|
|
319
|
-
return response;
|
|
320
|
-
};
|
|
321
|
-
export const de_DescribeComponentConfigurationCommand = async (output, context) => {
|
|
322
|
-
if (output.statusCode >= 300) {
|
|
323
|
-
return de_CommandError(output, context);
|
|
324
|
-
}
|
|
325
|
-
const data = await parseBody(output.body, context);
|
|
326
|
-
let contents = {};
|
|
327
|
-
contents = _json(data);
|
|
328
|
-
const response = {
|
|
329
|
-
$metadata: deserializeMetadata(output),
|
|
330
|
-
...contents,
|
|
331
|
-
};
|
|
332
|
-
return response;
|
|
333
|
-
};
|
|
334
|
-
export const de_DescribeComponentConfigurationRecommendationCommand = async (output, context) => {
|
|
335
|
-
if (output.statusCode >= 300) {
|
|
336
|
-
return de_CommandError(output, context);
|
|
337
|
-
}
|
|
338
|
-
const data = await parseBody(output.body, context);
|
|
339
|
-
let contents = {};
|
|
340
|
-
contents = _json(data);
|
|
341
|
-
const response = {
|
|
342
|
-
$metadata: deserializeMetadata(output),
|
|
343
|
-
...contents,
|
|
344
|
-
};
|
|
345
|
-
return response;
|
|
346
|
-
};
|
|
347
|
-
export const de_DescribeLogPatternCommand = async (output, context) => {
|
|
348
|
-
if (output.statusCode >= 300) {
|
|
349
|
-
return de_CommandError(output, context);
|
|
350
|
-
}
|
|
351
|
-
const data = await parseBody(output.body, context);
|
|
352
|
-
let contents = {};
|
|
353
|
-
contents = _json(data);
|
|
354
|
-
const response = {
|
|
355
|
-
$metadata: deserializeMetadata(output),
|
|
356
|
-
...contents,
|
|
357
|
-
};
|
|
358
|
-
return response;
|
|
359
|
-
};
|
|
360
|
-
export const de_DescribeObservationCommand = async (output, context) => {
|
|
361
|
-
if (output.statusCode >= 300) {
|
|
362
|
-
return de_CommandError(output, context);
|
|
363
|
-
}
|
|
364
|
-
const data = await parseBody(output.body, context);
|
|
365
|
-
let contents = {};
|
|
366
|
-
contents = de_DescribeObservationResponse(data, context);
|
|
367
|
-
const response = {
|
|
368
|
-
$metadata: deserializeMetadata(output),
|
|
369
|
-
...contents,
|
|
370
|
-
};
|
|
371
|
-
return response;
|
|
372
|
-
};
|
|
373
|
-
export const de_DescribeProblemCommand = async (output, context) => {
|
|
374
|
-
if (output.statusCode >= 300) {
|
|
375
|
-
return de_CommandError(output, context);
|
|
376
|
-
}
|
|
377
|
-
const data = await parseBody(output.body, context);
|
|
378
|
-
let contents = {};
|
|
379
|
-
contents = de_DescribeProblemResponse(data, context);
|
|
380
|
-
const response = {
|
|
381
|
-
$metadata: deserializeMetadata(output),
|
|
382
|
-
...contents,
|
|
383
|
-
};
|
|
384
|
-
return response;
|
|
385
|
-
};
|
|
386
|
-
export const de_DescribeProblemObservationsCommand = async (output, context) => {
|
|
387
|
-
if (output.statusCode >= 300) {
|
|
388
|
-
return de_CommandError(output, context);
|
|
389
|
-
}
|
|
390
|
-
const data = await parseBody(output.body, context);
|
|
391
|
-
let contents = {};
|
|
392
|
-
contents = de_DescribeProblemObservationsResponse(data, context);
|
|
393
|
-
const response = {
|
|
394
|
-
$metadata: deserializeMetadata(output),
|
|
395
|
-
...contents,
|
|
396
|
-
};
|
|
397
|
-
return response;
|
|
398
|
-
};
|
|
399
|
-
export const de_DescribeWorkloadCommand = async (output, context) => {
|
|
400
|
-
if (output.statusCode >= 300) {
|
|
401
|
-
return de_CommandError(output, context);
|
|
402
|
-
}
|
|
403
|
-
const data = await parseBody(output.body, context);
|
|
404
|
-
let contents = {};
|
|
405
|
-
contents = _json(data);
|
|
406
|
-
const response = {
|
|
407
|
-
$metadata: deserializeMetadata(output),
|
|
408
|
-
...contents,
|
|
409
|
-
};
|
|
410
|
-
return response;
|
|
411
|
-
};
|
|
412
|
-
export const de_ListApplicationsCommand = async (output, context) => {
|
|
413
|
-
if (output.statusCode >= 300) {
|
|
414
|
-
return de_CommandError(output, context);
|
|
415
|
-
}
|
|
416
|
-
const data = await parseBody(output.body, context);
|
|
417
|
-
let contents = {};
|
|
418
|
-
contents = _json(data);
|
|
419
|
-
const response = {
|
|
420
|
-
$metadata: deserializeMetadata(output),
|
|
421
|
-
...contents,
|
|
422
|
-
};
|
|
423
|
-
return response;
|
|
424
|
-
};
|
|
425
|
-
export const de_ListComponentsCommand = async (output, context) => {
|
|
426
|
-
if (output.statusCode >= 300) {
|
|
427
|
-
return de_CommandError(output, context);
|
|
428
|
-
}
|
|
429
|
-
const data = await parseBody(output.body, context);
|
|
430
|
-
let contents = {};
|
|
431
|
-
contents = _json(data);
|
|
432
|
-
const response = {
|
|
433
|
-
$metadata: deserializeMetadata(output),
|
|
434
|
-
...contents,
|
|
435
|
-
};
|
|
436
|
-
return response;
|
|
437
|
-
};
|
|
438
|
-
export const de_ListConfigurationHistoryCommand = async (output, context) => {
|
|
439
|
-
if (output.statusCode >= 300) {
|
|
440
|
-
return de_CommandError(output, context);
|
|
441
|
-
}
|
|
442
|
-
const data = await parseBody(output.body, context);
|
|
443
|
-
let contents = {};
|
|
444
|
-
contents = de_ListConfigurationHistoryResponse(data, context);
|
|
445
|
-
const response = {
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
...contents,
|
|
448
|
-
};
|
|
449
|
-
return response;
|
|
450
|
-
};
|
|
451
|
-
export const de_ListLogPatternsCommand = async (output, context) => {
|
|
452
|
-
if (output.statusCode >= 300) {
|
|
453
|
-
return de_CommandError(output, context);
|
|
454
|
-
}
|
|
455
|
-
const data = await parseBody(output.body, context);
|
|
456
|
-
let contents = {};
|
|
457
|
-
contents = _json(data);
|
|
458
|
-
const response = {
|
|
459
|
-
$metadata: deserializeMetadata(output),
|
|
460
|
-
...contents,
|
|
461
|
-
};
|
|
462
|
-
return response;
|
|
463
|
-
};
|
|
464
|
-
export const de_ListLogPatternSetsCommand = async (output, context) => {
|
|
465
|
-
if (output.statusCode >= 300) {
|
|
466
|
-
return de_CommandError(output, context);
|
|
467
|
-
}
|
|
468
|
-
const data = await parseBody(output.body, context);
|
|
469
|
-
let contents = {};
|
|
470
|
-
contents = _json(data);
|
|
471
|
-
const response = {
|
|
472
|
-
$metadata: deserializeMetadata(output),
|
|
473
|
-
...contents,
|
|
474
|
-
};
|
|
475
|
-
return response;
|
|
476
|
-
};
|
|
477
|
-
export const de_ListProblemsCommand = async (output, context) => {
|
|
478
|
-
if (output.statusCode >= 300) {
|
|
479
|
-
return de_CommandError(output, context);
|
|
480
|
-
}
|
|
481
|
-
const data = await parseBody(output.body, context);
|
|
482
|
-
let contents = {};
|
|
483
|
-
contents = de_ListProblemsResponse(data, context);
|
|
484
|
-
const response = {
|
|
485
|
-
$metadata: deserializeMetadata(output),
|
|
486
|
-
...contents,
|
|
487
|
-
};
|
|
488
|
-
return response;
|
|
489
|
-
};
|
|
490
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
491
|
-
if (output.statusCode >= 300) {
|
|
492
|
-
return de_CommandError(output, context);
|
|
493
|
-
}
|
|
494
|
-
const data = await parseBody(output.body, context);
|
|
495
|
-
let contents = {};
|
|
496
|
-
contents = _json(data);
|
|
497
|
-
const response = {
|
|
498
|
-
$metadata: deserializeMetadata(output),
|
|
499
|
-
...contents,
|
|
500
|
-
};
|
|
501
|
-
return response;
|
|
502
|
-
};
|
|
503
|
-
export const de_ListWorkloadsCommand = async (output, context) => {
|
|
504
|
-
if (output.statusCode >= 300) {
|
|
505
|
-
return de_CommandError(output, context);
|
|
506
|
-
}
|
|
507
|
-
const data = await parseBody(output.body, context);
|
|
508
|
-
let contents = {};
|
|
509
|
-
contents = _json(data);
|
|
510
|
-
const response = {
|
|
511
|
-
$metadata: deserializeMetadata(output),
|
|
512
|
-
...contents,
|
|
513
|
-
};
|
|
514
|
-
return response;
|
|
515
|
-
};
|
|
516
|
-
export const de_RemoveWorkloadCommand = async (output, context) => {
|
|
517
|
-
if (output.statusCode >= 300) {
|
|
518
|
-
return de_CommandError(output, context);
|
|
519
|
-
}
|
|
520
|
-
const data = await parseBody(output.body, context);
|
|
521
|
-
let contents = {};
|
|
522
|
-
contents = _json(data);
|
|
523
|
-
const response = {
|
|
524
|
-
$metadata: deserializeMetadata(output),
|
|
525
|
-
...contents,
|
|
526
|
-
};
|
|
527
|
-
return response;
|
|
528
|
-
};
|
|
529
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
530
|
-
if (output.statusCode >= 300) {
|
|
531
|
-
return de_CommandError(output, context);
|
|
532
|
-
}
|
|
533
|
-
const data = await parseBody(output.body, context);
|
|
534
|
-
let contents = {};
|
|
535
|
-
contents = _json(data);
|
|
536
|
-
const response = {
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
...contents,
|
|
539
|
-
};
|
|
540
|
-
return response;
|
|
541
|
-
};
|
|
542
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
543
|
-
if (output.statusCode >= 300) {
|
|
544
|
-
return de_CommandError(output, context);
|
|
545
|
-
}
|
|
546
|
-
const data = await parseBody(output.body, context);
|
|
547
|
-
let contents = {};
|
|
548
|
-
contents = _json(data);
|
|
549
|
-
const response = {
|
|
550
|
-
$metadata: deserializeMetadata(output),
|
|
551
|
-
...contents,
|
|
552
|
-
};
|
|
553
|
-
return response;
|
|
554
|
-
};
|
|
555
|
-
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
556
|
-
if (output.statusCode >= 300) {
|
|
557
|
-
return de_CommandError(output, context);
|
|
558
|
-
}
|
|
559
|
-
const data = await parseBody(output.body, context);
|
|
560
|
-
let contents = {};
|
|
561
|
-
contents = _json(data);
|
|
562
|
-
const response = {
|
|
563
|
-
$metadata: deserializeMetadata(output),
|
|
564
|
-
...contents,
|
|
565
|
-
};
|
|
566
|
-
return response;
|
|
567
|
-
};
|
|
568
|
-
export const de_UpdateComponentCommand = async (output, context) => {
|
|
569
|
-
if (output.statusCode >= 300) {
|
|
570
|
-
return de_CommandError(output, context);
|
|
571
|
-
}
|
|
572
|
-
const data = await parseBody(output.body, context);
|
|
573
|
-
let contents = {};
|
|
574
|
-
contents = _json(data);
|
|
575
|
-
const response = {
|
|
576
|
-
$metadata: deserializeMetadata(output),
|
|
577
|
-
...contents,
|
|
578
|
-
};
|
|
579
|
-
return response;
|
|
580
|
-
};
|
|
581
|
-
export const de_UpdateComponentConfigurationCommand = async (output, context) => {
|
|
582
|
-
if (output.statusCode >= 300) {
|
|
583
|
-
return de_CommandError(output, context);
|
|
584
|
-
}
|
|
585
|
-
const data = await parseBody(output.body, context);
|
|
586
|
-
let contents = {};
|
|
587
|
-
contents = _json(data);
|
|
588
|
-
const response = {
|
|
589
|
-
$metadata: deserializeMetadata(output),
|
|
590
|
-
...contents,
|
|
591
|
-
};
|
|
592
|
-
return response;
|
|
593
|
-
};
|
|
594
|
-
export const de_UpdateLogPatternCommand = async (output, context) => {
|
|
595
|
-
if (output.statusCode >= 300) {
|
|
596
|
-
return de_CommandError(output, context);
|
|
597
|
-
}
|
|
598
|
-
const data = await parseBody(output.body, context);
|
|
599
|
-
let contents = {};
|
|
600
|
-
contents = _json(data);
|
|
601
|
-
const response = {
|
|
602
|
-
$metadata: deserializeMetadata(output),
|
|
603
|
-
...contents,
|
|
604
|
-
};
|
|
605
|
-
return response;
|
|
606
|
-
};
|
|
607
|
-
export const de_UpdateProblemCommand = async (output, context) => {
|
|
608
|
-
if (output.statusCode >= 300) {
|
|
609
|
-
return de_CommandError(output, context);
|
|
610
|
-
}
|
|
611
|
-
const data = await parseBody(output.body, context);
|
|
612
|
-
let contents = {};
|
|
613
|
-
contents = _json(data);
|
|
614
|
-
const response = {
|
|
615
|
-
$metadata: deserializeMetadata(output),
|
|
616
|
-
...contents,
|
|
617
|
-
};
|
|
618
|
-
return response;
|
|
619
|
-
};
|
|
620
|
-
export const de_UpdateWorkloadCommand = async (output, context) => {
|
|
621
|
-
if (output.statusCode >= 300) {
|
|
622
|
-
return de_CommandError(output, context);
|
|
623
|
-
}
|
|
624
|
-
const data = await parseBody(output.body, context);
|
|
625
|
-
let contents = {};
|
|
626
|
-
contents = _json(data);
|
|
627
|
-
const response = {
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
...contents,
|
|
630
|
-
};
|
|
631
|
-
return response;
|
|
632
|
-
};
|
|
633
|
-
const de_CommandError = async (output, context) => {
|
|
634
|
-
const parsedOutput = {
|
|
635
|
-
...output,
|
|
636
|
-
body: await parseErrorBody(output.body, context),
|
|
637
|
-
};
|
|
638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
|
-
switch (errorCode) {
|
|
640
|
-
case "InternalServerException":
|
|
641
|
-
case "com.amazonaws.applicationinsights#InternalServerException":
|
|
642
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
643
|
-
case "ResourceInUseException":
|
|
644
|
-
case "com.amazonaws.applicationinsights#ResourceInUseException":
|
|
645
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
646
|
-
case "ResourceNotFoundException":
|
|
647
|
-
case "com.amazonaws.applicationinsights#ResourceNotFoundException":
|
|
648
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
649
|
-
case "ValidationException":
|
|
650
|
-
case "com.amazonaws.applicationinsights#ValidationException":
|
|
651
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
652
|
-
case "AccessDeniedException":
|
|
653
|
-
case "com.amazonaws.applicationinsights#AccessDeniedException":
|
|
654
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
655
|
-
case "TagsAlreadyExistException":
|
|
656
|
-
case "com.amazonaws.applicationinsights#TagsAlreadyExistException":
|
|
657
|
-
throw await de_TagsAlreadyExistExceptionRes(parsedOutput, context);
|
|
658
|
-
case "BadRequestException":
|
|
659
|
-
case "com.amazonaws.applicationinsights#BadRequestException":
|
|
660
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
661
|
-
case "TooManyTagsException":
|
|
662
|
-
case "com.amazonaws.applicationinsights#TooManyTagsException":
|
|
663
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
664
|
-
default:
|
|
665
|
-
const parsedBody = parsedOutput.body;
|
|
666
|
-
return throwDefaultError({
|
|
667
|
-
output,
|
|
668
|
-
parsedBody,
|
|
669
|
-
errorCode,
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
674
|
-
const body = parsedOutput.body;
|
|
675
|
-
const deserialized = _json(body);
|
|
676
|
-
const exception = new AccessDeniedException({
|
|
677
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
678
|
-
...deserialized,
|
|
679
|
-
});
|
|
680
|
-
return __decorateServiceException(exception, body);
|
|
681
|
-
};
|
|
682
|
-
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
683
|
-
const body = parsedOutput.body;
|
|
684
|
-
const deserialized = _json(body);
|
|
685
|
-
const exception = new BadRequestException({
|
|
686
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
687
|
-
...deserialized,
|
|
688
|
-
});
|
|
689
|
-
return __decorateServiceException(exception, body);
|
|
690
|
-
};
|
|
691
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
692
|
-
const body = parsedOutput.body;
|
|
693
|
-
const deserialized = _json(body);
|
|
694
|
-
const exception = new InternalServerException({
|
|
695
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
696
|
-
...deserialized,
|
|
697
|
-
});
|
|
698
|
-
return __decorateServiceException(exception, body);
|
|
699
|
-
};
|
|
700
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
701
|
-
const body = parsedOutput.body;
|
|
702
|
-
const deserialized = _json(body);
|
|
703
|
-
const exception = new ResourceInUseException({
|
|
704
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
705
|
-
...deserialized,
|
|
706
|
-
});
|
|
707
|
-
return __decorateServiceException(exception, body);
|
|
708
|
-
};
|
|
709
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
710
|
-
const body = parsedOutput.body;
|
|
711
|
-
const deserialized = _json(body);
|
|
712
|
-
const exception = new ResourceNotFoundException({
|
|
713
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
714
|
-
...deserialized,
|
|
715
|
-
});
|
|
716
|
-
return __decorateServiceException(exception, body);
|
|
717
|
-
};
|
|
718
|
-
const de_TagsAlreadyExistExceptionRes = async (parsedOutput, context) => {
|
|
719
|
-
const body = parsedOutput.body;
|
|
720
|
-
const deserialized = _json(body);
|
|
721
|
-
const exception = new TagsAlreadyExistException({
|
|
722
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
723
|
-
...deserialized,
|
|
724
|
-
});
|
|
725
|
-
return __decorateServiceException(exception, body);
|
|
726
|
-
};
|
|
727
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
728
|
-
const body = parsedOutput.body;
|
|
729
|
-
const deserialized = _json(body);
|
|
730
|
-
const exception = new TooManyTagsException({
|
|
731
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
732
|
-
...deserialized,
|
|
733
|
-
});
|
|
734
|
-
return __decorateServiceException(exception, body);
|
|
735
|
-
};
|
|
736
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
737
|
-
const body = parsedOutput.body;
|
|
738
|
-
const deserialized = _json(body);
|
|
739
|
-
const exception = new ValidationException({
|
|
740
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
741
|
-
...deserialized,
|
|
742
|
-
});
|
|
743
|
-
return __decorateServiceException(exception, body);
|
|
744
|
-
};
|
|
745
|
-
const se_ListConfigurationHistoryRequest = (input, context) => {
|
|
746
|
-
return take(input, {
|
|
747
|
-
AccountId: [],
|
|
748
|
-
EndTime: (_) => _.getTime() / 1_000,
|
|
749
|
-
EventStatus: [],
|
|
750
|
-
MaxResults: [],
|
|
751
|
-
NextToken: [],
|
|
752
|
-
ResourceGroupName: [],
|
|
753
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
754
|
-
});
|
|
755
|
-
};
|
|
756
|
-
const se_ListProblemsRequest = (input, context) => {
|
|
757
|
-
return take(input, {
|
|
758
|
-
AccountId: [],
|
|
759
|
-
ComponentName: [],
|
|
760
|
-
EndTime: (_) => _.getTime() / 1_000,
|
|
761
|
-
MaxResults: [],
|
|
762
|
-
NextToken: [],
|
|
763
|
-
ResourceGroupName: [],
|
|
764
|
-
StartTime: (_) => _.getTime() / 1_000,
|
|
765
|
-
Visibility: [],
|
|
766
|
-
});
|
|
767
|
-
};
|
|
768
|
-
const de_ConfigurationEvent = (output, context) => {
|
|
769
|
-
return take(output, {
|
|
770
|
-
AccountId: __expectString,
|
|
771
|
-
EventDetail: __expectString,
|
|
772
|
-
EventResourceName: __expectString,
|
|
773
|
-
EventResourceType: __expectString,
|
|
774
|
-
EventStatus: __expectString,
|
|
775
|
-
EventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
776
|
-
MonitoredResourceARN: __expectString,
|
|
777
|
-
ResourceGroupName: __expectString,
|
|
778
|
-
});
|
|
779
|
-
};
|
|
780
|
-
const de_ConfigurationEventList = (output, context) => {
|
|
781
|
-
const retVal = (output || [])
|
|
782
|
-
.filter((e) => e != null)
|
|
783
|
-
.map((entry) => {
|
|
784
|
-
return de_ConfigurationEvent(entry, context);
|
|
785
|
-
});
|
|
786
|
-
return retVal;
|
|
787
|
-
};
|
|
788
|
-
const de_DescribeObservationResponse = (output, context) => {
|
|
789
|
-
return take(output, {
|
|
790
|
-
Observation: (_) => de_Observation(_, context),
|
|
791
|
-
});
|
|
792
|
-
};
|
|
793
|
-
const de_DescribeProblemObservationsResponse = (output, context) => {
|
|
794
|
-
return take(output, {
|
|
795
|
-
RelatedObservations: (_) => de_RelatedObservations(_, context),
|
|
796
|
-
});
|
|
797
|
-
};
|
|
798
|
-
const de_DescribeProblemResponse = (output, context) => {
|
|
799
|
-
return take(output, {
|
|
800
|
-
Problem: (_) => de_Problem(_, context),
|
|
801
|
-
SNSNotificationArn: __expectString,
|
|
802
|
-
});
|
|
803
|
-
};
|
|
804
|
-
const de_ListConfigurationHistoryResponse = (output, context) => {
|
|
805
|
-
return take(output, {
|
|
806
|
-
EventList: (_) => de_ConfigurationEventList(_, context),
|
|
807
|
-
NextToken: __expectString,
|
|
808
|
-
});
|
|
809
|
-
};
|
|
810
|
-
const de_ListProblemsResponse = (output, context) => {
|
|
811
|
-
return take(output, {
|
|
812
|
-
AccountId: __expectString,
|
|
813
|
-
NextToken: __expectString,
|
|
814
|
-
ProblemList: (_) => de_ProblemList(_, context),
|
|
815
|
-
ResourceGroupName: __expectString,
|
|
816
|
-
});
|
|
817
|
-
};
|
|
818
|
-
const de_Observation = (output, context) => {
|
|
819
|
-
return take(output, {
|
|
820
|
-
CloudWatchEventDetailType: __expectString,
|
|
821
|
-
CloudWatchEventId: __expectString,
|
|
822
|
-
CloudWatchEventSource: __expectString,
|
|
823
|
-
CodeDeployApplication: __expectString,
|
|
824
|
-
CodeDeployDeploymentGroup: __expectString,
|
|
825
|
-
CodeDeployDeploymentId: __expectString,
|
|
826
|
-
CodeDeployInstanceGroupId: __expectString,
|
|
827
|
-
CodeDeployState: __expectString,
|
|
828
|
-
EbsCause: __expectString,
|
|
829
|
-
EbsEvent: __expectString,
|
|
830
|
-
EbsRequestId: __expectString,
|
|
831
|
-
EbsResult: __expectString,
|
|
832
|
-
Ec2State: __expectString,
|
|
833
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
834
|
-
HealthEventArn: __expectString,
|
|
835
|
-
HealthEventDescription: __expectString,
|
|
836
|
-
HealthEventTypeCategory: __expectString,
|
|
837
|
-
HealthEventTypeCode: __expectString,
|
|
838
|
-
HealthService: __expectString,
|
|
839
|
-
Id: __expectString,
|
|
840
|
-
LineTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
841
|
-
LogFilter: __expectString,
|
|
842
|
-
LogGroup: __expectString,
|
|
843
|
-
LogText: __expectString,
|
|
844
|
-
MetricName: __expectString,
|
|
845
|
-
MetricNamespace: __expectString,
|
|
846
|
-
RdsEventCategories: __expectString,
|
|
847
|
-
RdsEventMessage: __expectString,
|
|
848
|
-
S3EventName: __expectString,
|
|
849
|
-
SourceARN: __expectString,
|
|
850
|
-
SourceType: __expectString,
|
|
851
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
852
|
-
StatesArn: __expectString,
|
|
853
|
-
StatesExecutionArn: __expectString,
|
|
854
|
-
StatesInput: __expectString,
|
|
855
|
-
StatesStatus: __expectString,
|
|
856
|
-
Unit: __expectString,
|
|
857
|
-
Value: __limitedParseDouble,
|
|
858
|
-
XRayErrorPercent: __expectInt32,
|
|
859
|
-
XRayFaultPercent: __expectInt32,
|
|
860
|
-
XRayNodeName: __expectString,
|
|
861
|
-
XRayNodeType: __expectString,
|
|
862
|
-
XRayRequestAverageLatency: __expectLong,
|
|
863
|
-
XRayRequestCount: __expectInt32,
|
|
864
|
-
XRayThrottlePercent: __expectInt32,
|
|
865
|
-
});
|
|
866
|
-
};
|
|
867
|
-
const de_ObservationList = (output, context) => {
|
|
868
|
-
const retVal = (output || [])
|
|
869
|
-
.filter((e) => e != null)
|
|
870
|
-
.map((entry) => {
|
|
871
|
-
return de_Observation(entry, context);
|
|
872
|
-
});
|
|
873
|
-
return retVal;
|
|
874
|
-
};
|
|
875
|
-
const de_Problem = (output, context) => {
|
|
876
|
-
return take(output, {
|
|
877
|
-
AccountId: __expectString,
|
|
878
|
-
AffectedResource: __expectString,
|
|
879
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
880
|
-
Feedback: _json,
|
|
881
|
-
Id: __expectString,
|
|
882
|
-
Insights: __expectString,
|
|
883
|
-
LastRecurrenceTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
884
|
-
RecurringCount: __expectLong,
|
|
885
|
-
ResolutionMethod: __expectString,
|
|
886
|
-
ResourceGroupName: __expectString,
|
|
887
|
-
SeverityLevel: __expectString,
|
|
888
|
-
ShortName: __expectString,
|
|
889
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
890
|
-
Status: __expectString,
|
|
891
|
-
Title: __expectString,
|
|
892
|
-
Visibility: __expectString,
|
|
893
|
-
});
|
|
894
|
-
};
|
|
895
|
-
const de_ProblemList = (output, context) => {
|
|
896
|
-
const retVal = (output || [])
|
|
897
|
-
.filter((e) => e != null)
|
|
898
|
-
.map((entry) => {
|
|
899
|
-
return de_Problem(entry, context);
|
|
900
|
-
});
|
|
901
|
-
return retVal;
|
|
902
|
-
};
|
|
903
|
-
const de_RelatedObservations = (output, context) => {
|
|
904
|
-
return take(output, {
|
|
905
|
-
ObservationList: (_) => de_ObservationList(_, context),
|
|
906
|
-
});
|
|
907
|
-
};
|
|
908
|
-
const deserializeMetadata = (output) => ({
|
|
909
|
-
httpStatusCode: output.statusCode,
|
|
910
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
911
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
912
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
913
|
-
});
|
|
914
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
915
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
916
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
917
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
918
|
-
const contents = {
|
|
919
|
-
protocol,
|
|
920
|
-
hostname,
|
|
921
|
-
port,
|
|
922
|
-
method: "POST",
|
|
923
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
924
|
-
headers,
|
|
925
|
-
};
|
|
926
|
-
if (resolvedHostname !== undefined) {
|
|
927
|
-
contents.hostname = resolvedHostname;
|
|
928
|
-
}
|
|
929
|
-
if (body !== undefined) {
|
|
930
|
-
contents.body = body;
|
|
931
|
-
}
|
|
932
|
-
return new __HttpRequest(contents);
|
|
933
|
-
};
|
|
934
|
-
function sharedHeaders(operation) {
|
|
935
|
-
return {
|
|
936
|
-
"content-type": "application/x-amz-json-1.1",
|
|
937
|
-
"x-amz-target": `EC2WindowsBarleyService.${operation}`,
|
|
938
|
-
};
|
|
939
|
-
}
|