@aws-sdk/client-support 3.312.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 +124 -520
- package/dist-es/protocols/Aws_json1_1.js +125 -521
- package/package.json +6 -6
|
@@ -15,49 +15,49 @@ exports.se_AddAttachmentsToSetCommand = se_AddAttachmentsToSetCommand;
|
|
|
15
15
|
const se_AddCommunicationToCaseCommand = async (input, context) => {
|
|
16
16
|
const headers = sharedHeaders("AddCommunicationToCase");
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
20
|
};
|
|
21
21
|
exports.se_AddCommunicationToCaseCommand = se_AddCommunicationToCaseCommand;
|
|
22
22
|
const se_CreateCaseCommand = async (input, context) => {
|
|
23
23
|
const headers = sharedHeaders("CreateCase");
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
28
|
exports.se_CreateCaseCommand = se_CreateCaseCommand;
|
|
29
29
|
const se_DescribeAttachmentCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DescribeAttachment");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
exports.se_DescribeAttachmentCommand = se_DescribeAttachmentCommand;
|
|
36
36
|
const se_DescribeCasesCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("DescribeCases");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
exports.se_DescribeCasesCommand = se_DescribeCasesCommand;
|
|
43
43
|
const se_DescribeCommunicationsCommand = async (input, context) => {
|
|
44
44
|
const headers = sharedHeaders("DescribeCommunications");
|
|
45
45
|
let body;
|
|
46
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
48
|
};
|
|
49
49
|
exports.se_DescribeCommunicationsCommand = se_DescribeCommunicationsCommand;
|
|
50
50
|
const se_DescribeServicesCommand = async (input, context) => {
|
|
51
51
|
const headers = sharedHeaders("DescribeServices");
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
55
|
};
|
|
56
56
|
exports.se_DescribeServicesCommand = se_DescribeServicesCommand;
|
|
57
57
|
const se_DescribeSeverityLevelsCommand = async (input, context) => {
|
|
58
58
|
const headers = sharedHeaders("DescribeSeverityLevels");
|
|
59
59
|
let body;
|
|
60
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
62
|
};
|
|
63
63
|
exports.se_DescribeSeverityLevelsCommand = se_DescribeSeverityLevelsCommand;
|
|
@@ -71,14 +71,14 @@ exports.se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = se_DescribeTruste
|
|
|
71
71
|
const se_DescribeTrustedAdvisorCheckResultCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("DescribeTrustedAdvisorCheckResult");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
exports.se_DescribeTrustedAdvisorCheckResultCommand = se_DescribeTrustedAdvisorCheckResultCommand;
|
|
78
78
|
const se_DescribeTrustedAdvisorChecksCommand = async (input, context) => {
|
|
79
79
|
const headers = sharedHeaders("DescribeTrustedAdvisorChecks");
|
|
80
80
|
let body;
|
|
81
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
83
|
};
|
|
84
84
|
exports.se_DescribeTrustedAdvisorChecksCommand = se_DescribeTrustedAdvisorChecksCommand;
|
|
@@ -92,14 +92,14 @@ exports.se_DescribeTrustedAdvisorCheckSummariesCommand = se_DescribeTrustedAdvis
|
|
|
92
92
|
const se_RefreshTrustedAdvisorCheckCommand = async (input, context) => {
|
|
93
93
|
const headers = sharedHeaders("RefreshTrustedAdvisorCheck");
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
98
|
exports.se_RefreshTrustedAdvisorCheckCommand = se_RefreshTrustedAdvisorCheckCommand;
|
|
99
99
|
const se_ResolveCaseCommand = async (input, context) => {
|
|
100
100
|
const headers = sharedHeaders("ResolveCase");
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
103
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
104
|
};
|
|
105
105
|
exports.se_ResolveCaseCommand = se_ResolveCaseCommand;
|
|
@@ -109,12 +109,12 @@ const de_AddAttachmentsToSetCommand = async (output, context) => {
|
|
|
109
109
|
}
|
|
110
110
|
const data = await parseBody(output.body, context);
|
|
111
111
|
let contents = {};
|
|
112
|
-
contents =
|
|
112
|
+
contents = (0, smithy_client_1._json)(data);
|
|
113
113
|
const response = {
|
|
114
114
|
$metadata: deserializeMetadata(output),
|
|
115
115
|
...contents,
|
|
116
116
|
};
|
|
117
|
-
return
|
|
117
|
+
return response;
|
|
118
118
|
};
|
|
119
119
|
exports.de_AddAttachmentsToSetCommand = de_AddAttachmentsToSetCommand;
|
|
120
120
|
const de_AddAttachmentsToSetCommandError = async (output, context) => {
|
|
@@ -141,10 +141,9 @@ const de_AddAttachmentsToSetCommandError = async (output, context) => {
|
|
|
141
141
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
142
142
|
default:
|
|
143
143
|
const parsedBody = parsedOutput.body;
|
|
144
|
-
|
|
144
|
+
return throwDefaultError({
|
|
145
145
|
output,
|
|
146
146
|
parsedBody,
|
|
147
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
148
147
|
errorCode,
|
|
149
148
|
});
|
|
150
149
|
}
|
|
@@ -155,12 +154,12 @@ const de_AddCommunicationToCaseCommand = async (output, context) => {
|
|
|
155
154
|
}
|
|
156
155
|
const data = await parseBody(output.body, context);
|
|
157
156
|
let contents = {};
|
|
158
|
-
contents =
|
|
157
|
+
contents = (0, smithy_client_1._json)(data);
|
|
159
158
|
const response = {
|
|
160
159
|
$metadata: deserializeMetadata(output),
|
|
161
160
|
...contents,
|
|
162
161
|
};
|
|
163
|
-
return
|
|
162
|
+
return response;
|
|
164
163
|
};
|
|
165
164
|
exports.de_AddCommunicationToCaseCommand = de_AddCommunicationToCaseCommand;
|
|
166
165
|
const de_AddCommunicationToCaseCommandError = async (output, context) => {
|
|
@@ -184,10 +183,9 @@ const de_AddCommunicationToCaseCommandError = async (output, context) => {
|
|
|
184
183
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
185
184
|
default:
|
|
186
185
|
const parsedBody = parsedOutput.body;
|
|
187
|
-
|
|
186
|
+
return throwDefaultError({
|
|
188
187
|
output,
|
|
189
188
|
parsedBody,
|
|
190
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
191
189
|
errorCode,
|
|
192
190
|
});
|
|
193
191
|
}
|
|
@@ -198,12 +196,12 @@ const de_CreateCaseCommand = async (output, context) => {
|
|
|
198
196
|
}
|
|
199
197
|
const data = await parseBody(output.body, context);
|
|
200
198
|
let contents = {};
|
|
201
|
-
contents =
|
|
199
|
+
contents = (0, smithy_client_1._json)(data);
|
|
202
200
|
const response = {
|
|
203
201
|
$metadata: deserializeMetadata(output),
|
|
204
202
|
...contents,
|
|
205
203
|
};
|
|
206
|
-
return
|
|
204
|
+
return response;
|
|
207
205
|
};
|
|
208
206
|
exports.de_CreateCaseCommand = de_CreateCaseCommand;
|
|
209
207
|
const de_CreateCaseCommandError = async (output, context) => {
|
|
@@ -227,10 +225,9 @@ const de_CreateCaseCommandError = async (output, context) => {
|
|
|
227
225
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
228
226
|
default:
|
|
229
227
|
const parsedBody = parsedOutput.body;
|
|
230
|
-
|
|
228
|
+
return throwDefaultError({
|
|
231
229
|
output,
|
|
232
230
|
parsedBody,
|
|
233
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
234
231
|
errorCode,
|
|
235
232
|
});
|
|
236
233
|
}
|
|
@@ -246,7 +243,7 @@ const de_DescribeAttachmentCommand = async (output, context) => {
|
|
|
246
243
|
$metadata: deserializeMetadata(output),
|
|
247
244
|
...contents,
|
|
248
245
|
};
|
|
249
|
-
return
|
|
246
|
+
return response;
|
|
250
247
|
};
|
|
251
248
|
exports.de_DescribeAttachmentCommand = de_DescribeAttachmentCommand;
|
|
252
249
|
const de_DescribeAttachmentCommandError = async (output, context) => {
|
|
@@ -267,10 +264,9 @@ const de_DescribeAttachmentCommandError = async (output, context) => {
|
|
|
267
264
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
268
265
|
default:
|
|
269
266
|
const parsedBody = parsedOutput.body;
|
|
270
|
-
|
|
267
|
+
return throwDefaultError({
|
|
271
268
|
output,
|
|
272
269
|
parsedBody,
|
|
273
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
274
270
|
errorCode,
|
|
275
271
|
});
|
|
276
272
|
}
|
|
@@ -281,12 +277,12 @@ const de_DescribeCasesCommand = async (output, context) => {
|
|
|
281
277
|
}
|
|
282
278
|
const data = await parseBody(output.body, context);
|
|
283
279
|
let contents = {};
|
|
284
|
-
contents =
|
|
280
|
+
contents = (0, smithy_client_1._json)(data);
|
|
285
281
|
const response = {
|
|
286
282
|
$metadata: deserializeMetadata(output),
|
|
287
283
|
...contents,
|
|
288
284
|
};
|
|
289
|
-
return
|
|
285
|
+
return response;
|
|
290
286
|
};
|
|
291
287
|
exports.de_DescribeCasesCommand = de_DescribeCasesCommand;
|
|
292
288
|
const de_DescribeCasesCommandError = async (output, context) => {
|
|
@@ -304,10 +300,9 @@ const de_DescribeCasesCommandError = async (output, context) => {
|
|
|
304
300
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
305
301
|
default:
|
|
306
302
|
const parsedBody = parsedOutput.body;
|
|
307
|
-
|
|
303
|
+
return throwDefaultError({
|
|
308
304
|
output,
|
|
309
305
|
parsedBody,
|
|
310
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
311
306
|
errorCode,
|
|
312
307
|
});
|
|
313
308
|
}
|
|
@@ -318,12 +313,12 @@ const de_DescribeCommunicationsCommand = async (output, context) => {
|
|
|
318
313
|
}
|
|
319
314
|
const data = await parseBody(output.body, context);
|
|
320
315
|
let contents = {};
|
|
321
|
-
contents =
|
|
316
|
+
contents = (0, smithy_client_1._json)(data);
|
|
322
317
|
const response = {
|
|
323
318
|
$metadata: deserializeMetadata(output),
|
|
324
319
|
...contents,
|
|
325
320
|
};
|
|
326
|
-
return
|
|
321
|
+
return response;
|
|
327
322
|
};
|
|
328
323
|
exports.de_DescribeCommunicationsCommand = de_DescribeCommunicationsCommand;
|
|
329
324
|
const de_DescribeCommunicationsCommandError = async (output, context) => {
|
|
@@ -341,10 +336,9 @@ const de_DescribeCommunicationsCommandError = async (output, context) => {
|
|
|
341
336
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
342
337
|
default:
|
|
343
338
|
const parsedBody = parsedOutput.body;
|
|
344
|
-
|
|
339
|
+
return throwDefaultError({
|
|
345
340
|
output,
|
|
346
341
|
parsedBody,
|
|
347
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
348
342
|
errorCode,
|
|
349
343
|
});
|
|
350
344
|
}
|
|
@@ -355,12 +349,12 @@ const de_DescribeServicesCommand = async (output, context) => {
|
|
|
355
349
|
}
|
|
356
350
|
const data = await parseBody(output.body, context);
|
|
357
351
|
let contents = {};
|
|
358
|
-
contents =
|
|
352
|
+
contents = (0, smithy_client_1._json)(data);
|
|
359
353
|
const response = {
|
|
360
354
|
$metadata: deserializeMetadata(output),
|
|
361
355
|
...contents,
|
|
362
356
|
};
|
|
363
|
-
return
|
|
357
|
+
return response;
|
|
364
358
|
};
|
|
365
359
|
exports.de_DescribeServicesCommand = de_DescribeServicesCommand;
|
|
366
360
|
const de_DescribeServicesCommandError = async (output, context) => {
|
|
@@ -375,10 +369,9 @@ const de_DescribeServicesCommandError = async (output, context) => {
|
|
|
375
369
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
376
370
|
default:
|
|
377
371
|
const parsedBody = parsedOutput.body;
|
|
378
|
-
|
|
372
|
+
return throwDefaultError({
|
|
379
373
|
output,
|
|
380
374
|
parsedBody,
|
|
381
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
382
375
|
errorCode,
|
|
383
376
|
});
|
|
384
377
|
}
|
|
@@ -389,12 +382,12 @@ const de_DescribeSeverityLevelsCommand = async (output, context) => {
|
|
|
389
382
|
}
|
|
390
383
|
const data = await parseBody(output.body, context);
|
|
391
384
|
let contents = {};
|
|
392
|
-
contents =
|
|
385
|
+
contents = (0, smithy_client_1._json)(data);
|
|
393
386
|
const response = {
|
|
394
387
|
$metadata: deserializeMetadata(output),
|
|
395
388
|
...contents,
|
|
396
389
|
};
|
|
397
|
-
return
|
|
390
|
+
return response;
|
|
398
391
|
};
|
|
399
392
|
exports.de_DescribeSeverityLevelsCommand = de_DescribeSeverityLevelsCommand;
|
|
400
393
|
const de_DescribeSeverityLevelsCommandError = async (output, context) => {
|
|
@@ -409,10 +402,9 @@ const de_DescribeSeverityLevelsCommandError = async (output, context) => {
|
|
|
409
402
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
410
403
|
default:
|
|
411
404
|
const parsedBody = parsedOutput.body;
|
|
412
|
-
|
|
405
|
+
return throwDefaultError({
|
|
413
406
|
output,
|
|
414
407
|
parsedBody,
|
|
415
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
416
408
|
errorCode,
|
|
417
409
|
});
|
|
418
410
|
}
|
|
@@ -423,12 +415,12 @@ const de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (output, cont
|
|
|
423
415
|
}
|
|
424
416
|
const data = await parseBody(output.body, context);
|
|
425
417
|
let contents = {};
|
|
426
|
-
contents =
|
|
418
|
+
contents = (0, smithy_client_1._json)(data);
|
|
427
419
|
const response = {
|
|
428
420
|
$metadata: deserializeMetadata(output),
|
|
429
421
|
...contents,
|
|
430
422
|
};
|
|
431
|
-
return
|
|
423
|
+
return response;
|
|
432
424
|
};
|
|
433
425
|
exports.de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = de_DescribeTrustedAdvisorCheckRefreshStatusesCommand;
|
|
434
426
|
const de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError = async (output, context) => {
|
|
@@ -443,10 +435,9 @@ const de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError = async (output,
|
|
|
443
435
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
444
436
|
default:
|
|
445
437
|
const parsedBody = parsedOutput.body;
|
|
446
|
-
|
|
438
|
+
return throwDefaultError({
|
|
447
439
|
output,
|
|
448
440
|
parsedBody,
|
|
449
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
450
441
|
errorCode,
|
|
451
442
|
});
|
|
452
443
|
}
|
|
@@ -462,7 +453,7 @@ const de_DescribeTrustedAdvisorCheckResultCommand = async (output, context) => {
|
|
|
462
453
|
$metadata: deserializeMetadata(output),
|
|
463
454
|
...contents,
|
|
464
455
|
};
|
|
465
|
-
return
|
|
456
|
+
return response;
|
|
466
457
|
};
|
|
467
458
|
exports.de_DescribeTrustedAdvisorCheckResultCommand = de_DescribeTrustedAdvisorCheckResultCommand;
|
|
468
459
|
const de_DescribeTrustedAdvisorCheckResultCommandError = async (output, context) => {
|
|
@@ -477,10 +468,9 @@ const de_DescribeTrustedAdvisorCheckResultCommandError = async (output, context)
|
|
|
477
468
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
478
469
|
default:
|
|
479
470
|
const parsedBody = parsedOutput.body;
|
|
480
|
-
|
|
471
|
+
return throwDefaultError({
|
|
481
472
|
output,
|
|
482
473
|
parsedBody,
|
|
483
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
484
474
|
errorCode,
|
|
485
475
|
});
|
|
486
476
|
}
|
|
@@ -496,7 +486,7 @@ const de_DescribeTrustedAdvisorChecksCommand = async (output, context) => {
|
|
|
496
486
|
$metadata: deserializeMetadata(output),
|
|
497
487
|
...contents,
|
|
498
488
|
};
|
|
499
|
-
return
|
|
489
|
+
return response;
|
|
500
490
|
};
|
|
501
491
|
exports.de_DescribeTrustedAdvisorChecksCommand = de_DescribeTrustedAdvisorChecksCommand;
|
|
502
492
|
const de_DescribeTrustedAdvisorChecksCommandError = async (output, context) => {
|
|
@@ -511,10 +501,9 @@ const de_DescribeTrustedAdvisorChecksCommandError = async (output, context) => {
|
|
|
511
501
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
512
502
|
default:
|
|
513
503
|
const parsedBody = parsedOutput.body;
|
|
514
|
-
|
|
504
|
+
return throwDefaultError({
|
|
515
505
|
output,
|
|
516
506
|
parsedBody,
|
|
517
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
518
507
|
errorCode,
|
|
519
508
|
});
|
|
520
509
|
}
|
|
@@ -530,7 +519,7 @@ const de_DescribeTrustedAdvisorCheckSummariesCommand = async (output, context) =
|
|
|
530
519
|
$metadata: deserializeMetadata(output),
|
|
531
520
|
...contents,
|
|
532
521
|
};
|
|
533
|
-
return
|
|
522
|
+
return response;
|
|
534
523
|
};
|
|
535
524
|
exports.de_DescribeTrustedAdvisorCheckSummariesCommand = de_DescribeTrustedAdvisorCheckSummariesCommand;
|
|
536
525
|
const de_DescribeTrustedAdvisorCheckSummariesCommandError = async (output, context) => {
|
|
@@ -545,10 +534,9 @@ const de_DescribeTrustedAdvisorCheckSummariesCommandError = async (output, conte
|
|
|
545
534
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
546
535
|
default:
|
|
547
536
|
const parsedBody = parsedOutput.body;
|
|
548
|
-
|
|
537
|
+
return throwDefaultError({
|
|
549
538
|
output,
|
|
550
539
|
parsedBody,
|
|
551
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
552
540
|
errorCode,
|
|
553
541
|
});
|
|
554
542
|
}
|
|
@@ -559,12 +547,12 @@ const de_RefreshTrustedAdvisorCheckCommand = async (output, context) => {
|
|
|
559
547
|
}
|
|
560
548
|
const data = await parseBody(output.body, context);
|
|
561
549
|
let contents = {};
|
|
562
|
-
contents =
|
|
550
|
+
contents = (0, smithy_client_1._json)(data);
|
|
563
551
|
const response = {
|
|
564
552
|
$metadata: deserializeMetadata(output),
|
|
565
553
|
...contents,
|
|
566
554
|
};
|
|
567
|
-
return
|
|
555
|
+
return response;
|
|
568
556
|
};
|
|
569
557
|
exports.de_RefreshTrustedAdvisorCheckCommand = de_RefreshTrustedAdvisorCheckCommand;
|
|
570
558
|
const de_RefreshTrustedAdvisorCheckCommandError = async (output, context) => {
|
|
@@ -579,10 +567,9 @@ const de_RefreshTrustedAdvisorCheckCommandError = async (output, context) => {
|
|
|
579
567
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
580
568
|
default:
|
|
581
569
|
const parsedBody = parsedOutput.body;
|
|
582
|
-
|
|
570
|
+
return throwDefaultError({
|
|
583
571
|
output,
|
|
584
572
|
parsedBody,
|
|
585
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
586
573
|
errorCode,
|
|
587
574
|
});
|
|
588
575
|
}
|
|
@@ -593,12 +580,12 @@ const de_ResolveCaseCommand = async (output, context) => {
|
|
|
593
580
|
}
|
|
594
581
|
const data = await parseBody(output.body, context);
|
|
595
582
|
let contents = {};
|
|
596
|
-
contents =
|
|
583
|
+
contents = (0, smithy_client_1._json)(data);
|
|
597
584
|
const response = {
|
|
598
585
|
$metadata: deserializeMetadata(output),
|
|
599
586
|
...contents,
|
|
600
587
|
};
|
|
601
|
-
return
|
|
588
|
+
return response;
|
|
602
589
|
};
|
|
603
590
|
exports.de_ResolveCaseCommand = de_ResolveCaseCommand;
|
|
604
591
|
const de_ResolveCaseCommandError = async (output, context) => {
|
|
@@ -616,17 +603,16 @@ const de_ResolveCaseCommandError = async (output, context) => {
|
|
|
616
603
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
617
604
|
default:
|
|
618
605
|
const parsedBody = parsedOutput.body;
|
|
619
|
-
|
|
606
|
+
return throwDefaultError({
|
|
620
607
|
output,
|
|
621
608
|
parsedBody,
|
|
622
|
-
exceptionCtor: SupportServiceException_1.SupportServiceException,
|
|
623
609
|
errorCode,
|
|
624
610
|
});
|
|
625
611
|
}
|
|
626
612
|
};
|
|
627
613
|
const de_AttachmentIdNotFoundRes = async (parsedOutput, context) => {
|
|
628
614
|
const body = parsedOutput.body;
|
|
629
|
-
const deserialized =
|
|
615
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
630
616
|
const exception = new models_0_1.AttachmentIdNotFound({
|
|
631
617
|
$metadata: deserializeMetadata(parsedOutput),
|
|
632
618
|
...deserialized,
|
|
@@ -635,7 +621,7 @@ const de_AttachmentIdNotFoundRes = async (parsedOutput, context) => {
|
|
|
635
621
|
};
|
|
636
622
|
const de_AttachmentLimitExceededRes = async (parsedOutput, context) => {
|
|
637
623
|
const body = parsedOutput.body;
|
|
638
|
-
const deserialized =
|
|
624
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
639
625
|
const exception = new models_0_1.AttachmentLimitExceeded({
|
|
640
626
|
$metadata: deserializeMetadata(parsedOutput),
|
|
641
627
|
...deserialized,
|
|
@@ -644,7 +630,7 @@ const de_AttachmentLimitExceededRes = async (parsedOutput, context) => {
|
|
|
644
630
|
};
|
|
645
631
|
const de_AttachmentSetExpiredRes = async (parsedOutput, context) => {
|
|
646
632
|
const body = parsedOutput.body;
|
|
647
|
-
const deserialized =
|
|
633
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
648
634
|
const exception = new models_0_1.AttachmentSetExpired({
|
|
649
635
|
$metadata: deserializeMetadata(parsedOutput),
|
|
650
636
|
...deserialized,
|
|
@@ -653,7 +639,7 @@ const de_AttachmentSetExpiredRes = async (parsedOutput, context) => {
|
|
|
653
639
|
};
|
|
654
640
|
const de_AttachmentSetIdNotFoundRes = async (parsedOutput, context) => {
|
|
655
641
|
const body = parsedOutput.body;
|
|
656
|
-
const deserialized =
|
|
642
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
657
643
|
const exception = new models_0_1.AttachmentSetIdNotFound({
|
|
658
644
|
$metadata: deserializeMetadata(parsedOutput),
|
|
659
645
|
...deserialized,
|
|
@@ -662,7 +648,7 @@ const de_AttachmentSetIdNotFoundRes = async (parsedOutput, context) => {
|
|
|
662
648
|
};
|
|
663
649
|
const de_AttachmentSetSizeLimitExceededRes = async (parsedOutput, context) => {
|
|
664
650
|
const body = parsedOutput.body;
|
|
665
|
-
const deserialized =
|
|
651
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
666
652
|
const exception = new models_0_1.AttachmentSetSizeLimitExceeded({
|
|
667
653
|
$metadata: deserializeMetadata(parsedOutput),
|
|
668
654
|
...deserialized,
|
|
@@ -671,7 +657,7 @@ const de_AttachmentSetSizeLimitExceededRes = async (parsedOutput, context) => {
|
|
|
671
657
|
};
|
|
672
658
|
const de_CaseCreationLimitExceededRes = async (parsedOutput, context) => {
|
|
673
659
|
const body = parsedOutput.body;
|
|
674
|
-
const deserialized =
|
|
660
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
675
661
|
const exception = new models_0_1.CaseCreationLimitExceeded({
|
|
676
662
|
$metadata: deserializeMetadata(parsedOutput),
|
|
677
663
|
...deserialized,
|
|
@@ -680,7 +666,7 @@ const de_CaseCreationLimitExceededRes = async (parsedOutput, context) => {
|
|
|
680
666
|
};
|
|
681
667
|
const de_CaseIdNotFoundRes = async (parsedOutput, context) => {
|
|
682
668
|
const body = parsedOutput.body;
|
|
683
|
-
const deserialized =
|
|
669
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
684
670
|
const exception = new models_0_1.CaseIdNotFound({
|
|
685
671
|
$metadata: deserializeMetadata(parsedOutput),
|
|
686
672
|
...deserialized,
|
|
@@ -689,7 +675,7 @@ const de_CaseIdNotFoundRes = async (parsedOutput, context) => {
|
|
|
689
675
|
};
|
|
690
676
|
const de_DescribeAttachmentLimitExceededRes = async (parsedOutput, context) => {
|
|
691
677
|
const body = parsedOutput.body;
|
|
692
|
-
const deserialized =
|
|
678
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
693
679
|
const exception = new models_0_1.DescribeAttachmentLimitExceeded({
|
|
694
680
|
$metadata: deserializeMetadata(parsedOutput),
|
|
695
681
|
...deserialized,
|
|
@@ -698,7 +684,7 @@ const de_DescribeAttachmentLimitExceededRes = async (parsedOutput, context) => {
|
|
|
698
684
|
};
|
|
699
685
|
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
700
686
|
const body = parsedOutput.body;
|
|
701
|
-
const deserialized =
|
|
687
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
702
688
|
const exception = new models_0_1.InternalServerError({
|
|
703
689
|
$metadata: deserializeMetadata(parsedOutput),
|
|
704
690
|
...deserialized,
|
|
@@ -706,24 +692,16 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
|
706
692
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
707
693
|
};
|
|
708
694
|
const se_AddAttachmentsToSetRequest = (input, context) => {
|
|
709
|
-
return {
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
|
-
const se_AddCommunicationToCaseRequest = (input, context) => {
|
|
715
|
-
return {
|
|
716
|
-
...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
|
|
717
|
-
...(input.caseId != null && { caseId: input.caseId }),
|
|
718
|
-
...(input.ccEmailAddresses != null && { ccEmailAddresses: se_CcEmailAddressList(input.ccEmailAddresses, context) }),
|
|
719
|
-
...(input.communicationBody != null && { communicationBody: input.communicationBody }),
|
|
720
|
-
};
|
|
695
|
+
return (0, smithy_client_1.take)(input, {
|
|
696
|
+
attachmentSetId: [],
|
|
697
|
+
attachments: (_) => se_Attachments(_, context),
|
|
698
|
+
});
|
|
721
699
|
};
|
|
722
700
|
const se_Attachment = (input, context) => {
|
|
723
|
-
return {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
};
|
|
701
|
+
return (0, smithy_client_1.take)(input, {
|
|
702
|
+
data: context.base64Encoder,
|
|
703
|
+
fileName: [],
|
|
704
|
+
});
|
|
727
705
|
};
|
|
728
706
|
const se_Attachments = (input, context) => {
|
|
729
707
|
return input
|
|
@@ -732,376 +710,44 @@ const se_Attachments = (input, context) => {
|
|
|
732
710
|
return se_Attachment(entry, context);
|
|
733
711
|
});
|
|
734
712
|
};
|
|
735
|
-
const se_CaseIdList = (input, context) => {
|
|
736
|
-
return input
|
|
737
|
-
.filter((e) => e != null)
|
|
738
|
-
.map((entry) => {
|
|
739
|
-
return entry;
|
|
740
|
-
});
|
|
741
|
-
};
|
|
742
|
-
const se_CcEmailAddressList = (input, context) => {
|
|
743
|
-
return input
|
|
744
|
-
.filter((e) => e != null)
|
|
745
|
-
.map((entry) => {
|
|
746
|
-
return entry;
|
|
747
|
-
});
|
|
748
|
-
};
|
|
749
|
-
const se_CreateCaseRequest = (input, context) => {
|
|
750
|
-
return {
|
|
751
|
-
...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
|
|
752
|
-
...(input.categoryCode != null && { categoryCode: input.categoryCode }),
|
|
753
|
-
...(input.ccEmailAddresses != null && { ccEmailAddresses: se_CcEmailAddressList(input.ccEmailAddresses, context) }),
|
|
754
|
-
...(input.communicationBody != null && { communicationBody: input.communicationBody }),
|
|
755
|
-
...(input.issueType != null && { issueType: input.issueType }),
|
|
756
|
-
...(input.language != null && { language: input.language }),
|
|
757
|
-
...(input.serviceCode != null && { serviceCode: input.serviceCode }),
|
|
758
|
-
...(input.severityCode != null && { severityCode: input.severityCode }),
|
|
759
|
-
...(input.subject != null && { subject: input.subject }),
|
|
760
|
-
};
|
|
761
|
-
};
|
|
762
|
-
const se_DescribeAttachmentRequest = (input, context) => {
|
|
763
|
-
return {
|
|
764
|
-
...(input.attachmentId != null && { attachmentId: input.attachmentId }),
|
|
765
|
-
};
|
|
766
|
-
};
|
|
767
|
-
const se_DescribeCasesRequest = (input, context) => {
|
|
768
|
-
return {
|
|
769
|
-
...(input.afterTime != null && { afterTime: input.afterTime }),
|
|
770
|
-
...(input.beforeTime != null && { beforeTime: input.beforeTime }),
|
|
771
|
-
...(input.caseIdList != null && { caseIdList: se_CaseIdList(input.caseIdList, context) }),
|
|
772
|
-
...(input.displayId != null && { displayId: input.displayId }),
|
|
773
|
-
...(input.includeCommunications != null && { includeCommunications: input.includeCommunications }),
|
|
774
|
-
...(input.includeResolvedCases != null && { includeResolvedCases: input.includeResolvedCases }),
|
|
775
|
-
...(input.language != null && { language: input.language }),
|
|
776
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
777
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
|
-
const se_DescribeCommunicationsRequest = (input, context) => {
|
|
781
|
-
return {
|
|
782
|
-
...(input.afterTime != null && { afterTime: input.afterTime }),
|
|
783
|
-
...(input.beforeTime != null && { beforeTime: input.beforeTime }),
|
|
784
|
-
...(input.caseId != null && { caseId: input.caseId }),
|
|
785
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
786
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
787
|
-
};
|
|
788
|
-
};
|
|
789
|
-
const se_DescribeServicesRequest = (input, context) => {
|
|
790
|
-
return {
|
|
791
|
-
...(input.language != null && { language: input.language }),
|
|
792
|
-
...(input.serviceCodeList != null && { serviceCodeList: se_ServiceCodeList(input.serviceCodeList, context) }),
|
|
793
|
-
};
|
|
794
|
-
};
|
|
795
|
-
const se_DescribeSeverityLevelsRequest = (input, context) => {
|
|
796
|
-
return {
|
|
797
|
-
...(input.language != null && { language: input.language }),
|
|
798
|
-
};
|
|
799
|
-
};
|
|
800
713
|
const se_DescribeTrustedAdvisorCheckRefreshStatusesRequest = (input, context) => {
|
|
801
|
-
return {
|
|
802
|
-
|
|
803
|
-
};
|
|
804
|
-
};
|
|
805
|
-
const se_DescribeTrustedAdvisorCheckResultRequest = (input, context) => {
|
|
806
|
-
return {
|
|
807
|
-
...(input.checkId != null && { checkId: input.checkId }),
|
|
808
|
-
...(input.language != null && { language: input.language }),
|
|
809
|
-
};
|
|
810
|
-
};
|
|
811
|
-
const se_DescribeTrustedAdvisorChecksRequest = (input, context) => {
|
|
812
|
-
return {
|
|
813
|
-
...(input.language != null && { language: input.language }),
|
|
814
|
-
};
|
|
714
|
+
return (0, smithy_client_1.take)(input, {
|
|
715
|
+
checkIds: (_) => se_StringList(_, context),
|
|
716
|
+
});
|
|
815
717
|
};
|
|
816
718
|
const se_DescribeTrustedAdvisorCheckSummariesRequest = (input, context) => {
|
|
817
|
-
return {
|
|
818
|
-
|
|
819
|
-
};
|
|
820
|
-
};
|
|
821
|
-
const se_RefreshTrustedAdvisorCheckRequest = (input, context) => {
|
|
822
|
-
return {
|
|
823
|
-
...(input.checkId != null && { checkId: input.checkId }),
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
const se_ResolveCaseRequest = (input, context) => {
|
|
827
|
-
return {
|
|
828
|
-
...(input.caseId != null && { caseId: input.caseId }),
|
|
829
|
-
};
|
|
830
|
-
};
|
|
831
|
-
const se_ServiceCodeList = (input, context) => {
|
|
832
|
-
return input
|
|
833
|
-
.filter((e) => e != null)
|
|
834
|
-
.map((entry) => {
|
|
835
|
-
return entry;
|
|
719
|
+
return (0, smithy_client_1.take)(input, {
|
|
720
|
+
checkIds: (_) => se_StringList(_, context),
|
|
836
721
|
});
|
|
837
722
|
};
|
|
838
723
|
const se_StringList = (input, context) => {
|
|
839
|
-
return input
|
|
840
|
-
if (entry === null) {
|
|
841
|
-
return null;
|
|
842
|
-
}
|
|
843
|
-
return entry;
|
|
844
|
-
});
|
|
845
|
-
};
|
|
846
|
-
const de_AddAttachmentsToSetResponse = (output, context) => {
|
|
847
|
-
return {
|
|
848
|
-
attachmentSetId: (0, smithy_client_1.expectString)(output.attachmentSetId),
|
|
849
|
-
expiryTime: (0, smithy_client_1.expectString)(output.expiryTime),
|
|
850
|
-
};
|
|
851
|
-
};
|
|
852
|
-
const de_AddCommunicationToCaseResponse = (output, context) => {
|
|
853
|
-
return {
|
|
854
|
-
result: (0, smithy_client_1.expectBoolean)(output.result),
|
|
855
|
-
};
|
|
724
|
+
return input;
|
|
856
725
|
};
|
|
857
726
|
const de_Attachment = (output, context) => {
|
|
858
|
-
return {
|
|
859
|
-
data:
|
|
860
|
-
fileName:
|
|
861
|
-
};
|
|
862
|
-
};
|
|
863
|
-
const de_AttachmentDetails = (output, context) => {
|
|
864
|
-
return {
|
|
865
|
-
attachmentId: (0, smithy_client_1.expectString)(output.attachmentId),
|
|
866
|
-
fileName: (0, smithy_client_1.expectString)(output.fileName),
|
|
867
|
-
};
|
|
868
|
-
};
|
|
869
|
-
const de_AttachmentIdNotFound = (output, context) => {
|
|
870
|
-
return {
|
|
871
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
872
|
-
};
|
|
873
|
-
};
|
|
874
|
-
const de_AttachmentLimitExceeded = (output, context) => {
|
|
875
|
-
return {
|
|
876
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
877
|
-
};
|
|
878
|
-
};
|
|
879
|
-
const de_AttachmentSet = (output, context) => {
|
|
880
|
-
const retVal = (output || [])
|
|
881
|
-
.filter((e) => e != null)
|
|
882
|
-
.map((entry) => {
|
|
883
|
-
if (entry === null) {
|
|
884
|
-
return null;
|
|
885
|
-
}
|
|
886
|
-
return de_AttachmentDetails(entry, context);
|
|
887
|
-
});
|
|
888
|
-
return retVal;
|
|
889
|
-
};
|
|
890
|
-
const de_AttachmentSetExpired = (output, context) => {
|
|
891
|
-
return {
|
|
892
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
893
|
-
};
|
|
894
|
-
};
|
|
895
|
-
const de_AttachmentSetIdNotFound = (output, context) => {
|
|
896
|
-
return {
|
|
897
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
const de_AttachmentSetSizeLimitExceeded = (output, context) => {
|
|
901
|
-
return {
|
|
902
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
903
|
-
};
|
|
904
|
-
};
|
|
905
|
-
const de_CaseCreationLimitExceeded = (output, context) => {
|
|
906
|
-
return {
|
|
907
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
const de_CaseDetails = (output, context) => {
|
|
911
|
-
return {
|
|
912
|
-
caseId: (0, smithy_client_1.expectString)(output.caseId),
|
|
913
|
-
categoryCode: (0, smithy_client_1.expectString)(output.categoryCode),
|
|
914
|
-
ccEmailAddresses: output.ccEmailAddresses != null ? de_CcEmailAddressList(output.ccEmailAddresses, context) : undefined,
|
|
915
|
-
displayId: (0, smithy_client_1.expectString)(output.displayId),
|
|
916
|
-
language: (0, smithy_client_1.expectString)(output.language),
|
|
917
|
-
recentCommunications: output.recentCommunications != null
|
|
918
|
-
? de_RecentCaseCommunications(output.recentCommunications, context)
|
|
919
|
-
: undefined,
|
|
920
|
-
serviceCode: (0, smithy_client_1.expectString)(output.serviceCode),
|
|
921
|
-
severityCode: (0, smithy_client_1.expectString)(output.severityCode),
|
|
922
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
923
|
-
subject: (0, smithy_client_1.expectString)(output.subject),
|
|
924
|
-
submittedBy: (0, smithy_client_1.expectString)(output.submittedBy),
|
|
925
|
-
timeCreated: (0, smithy_client_1.expectString)(output.timeCreated),
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
|
-
const de_CaseIdNotFound = (output, context) => {
|
|
929
|
-
return {
|
|
930
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
931
|
-
};
|
|
932
|
-
};
|
|
933
|
-
const de_CaseList = (output, context) => {
|
|
934
|
-
const retVal = (output || [])
|
|
935
|
-
.filter((e) => e != null)
|
|
936
|
-
.map((entry) => {
|
|
937
|
-
if (entry === null) {
|
|
938
|
-
return null;
|
|
939
|
-
}
|
|
940
|
-
return de_CaseDetails(entry, context);
|
|
727
|
+
return (0, smithy_client_1.take)(output, {
|
|
728
|
+
data: context.base64Decoder,
|
|
729
|
+
fileName: smithy_client_1.expectString,
|
|
941
730
|
});
|
|
942
|
-
return retVal;
|
|
943
|
-
};
|
|
944
|
-
const de_Category = (output, context) => {
|
|
945
|
-
return {
|
|
946
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
947
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
948
|
-
};
|
|
949
|
-
};
|
|
950
|
-
const de_CategoryList = (output, context) => {
|
|
951
|
-
const retVal = (output || [])
|
|
952
|
-
.filter((e) => e != null)
|
|
953
|
-
.map((entry) => {
|
|
954
|
-
if (entry === null) {
|
|
955
|
-
return null;
|
|
956
|
-
}
|
|
957
|
-
return de_Category(entry, context);
|
|
958
|
-
});
|
|
959
|
-
return retVal;
|
|
960
|
-
};
|
|
961
|
-
const de_CcEmailAddressList = (output, context) => {
|
|
962
|
-
const retVal = (output || [])
|
|
963
|
-
.filter((e) => e != null)
|
|
964
|
-
.map((entry) => {
|
|
965
|
-
if (entry === null) {
|
|
966
|
-
return null;
|
|
967
|
-
}
|
|
968
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
969
|
-
});
|
|
970
|
-
return retVal;
|
|
971
|
-
};
|
|
972
|
-
const de_Communication = (output, context) => {
|
|
973
|
-
return {
|
|
974
|
-
attachmentSet: output.attachmentSet != null ? de_AttachmentSet(output.attachmentSet, context) : undefined,
|
|
975
|
-
body: (0, smithy_client_1.expectString)(output.body),
|
|
976
|
-
caseId: (0, smithy_client_1.expectString)(output.caseId),
|
|
977
|
-
submittedBy: (0, smithy_client_1.expectString)(output.submittedBy),
|
|
978
|
-
timeCreated: (0, smithy_client_1.expectString)(output.timeCreated),
|
|
979
|
-
};
|
|
980
|
-
};
|
|
981
|
-
const de_CommunicationList = (output, context) => {
|
|
982
|
-
const retVal = (output || [])
|
|
983
|
-
.filter((e) => e != null)
|
|
984
|
-
.map((entry) => {
|
|
985
|
-
if (entry === null) {
|
|
986
|
-
return null;
|
|
987
|
-
}
|
|
988
|
-
return de_Communication(entry, context);
|
|
989
|
-
});
|
|
990
|
-
return retVal;
|
|
991
|
-
};
|
|
992
|
-
const de_CreateCaseResponse = (output, context) => {
|
|
993
|
-
return {
|
|
994
|
-
caseId: (0, smithy_client_1.expectString)(output.caseId),
|
|
995
|
-
};
|
|
996
|
-
};
|
|
997
|
-
const de_DescribeAttachmentLimitExceeded = (output, context) => {
|
|
998
|
-
return {
|
|
999
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1000
|
-
};
|
|
1001
731
|
};
|
|
1002
732
|
const de_DescribeAttachmentResponse = (output, context) => {
|
|
1003
|
-
return {
|
|
1004
|
-
attachment:
|
|
1005
|
-
};
|
|
1006
|
-
};
|
|
1007
|
-
const de_DescribeCasesResponse = (output, context) => {
|
|
1008
|
-
return {
|
|
1009
|
-
cases: output.cases != null ? de_CaseList(output.cases, context) : undefined,
|
|
1010
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1011
|
-
};
|
|
1012
|
-
};
|
|
1013
|
-
const de_DescribeCommunicationsResponse = (output, context) => {
|
|
1014
|
-
return {
|
|
1015
|
-
communications: output.communications != null ? de_CommunicationList(output.communications, context) : undefined,
|
|
1016
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
const de_DescribeServicesResponse = (output, context) => {
|
|
1020
|
-
return {
|
|
1021
|
-
services: output.services != null ? de_ServiceList(output.services, context) : undefined,
|
|
1022
|
-
};
|
|
1023
|
-
};
|
|
1024
|
-
const de_DescribeSeverityLevelsResponse = (output, context) => {
|
|
1025
|
-
return {
|
|
1026
|
-
severityLevels: output.severityLevels != null ? de_SeverityLevelsList(output.severityLevels, context) : undefined,
|
|
1027
|
-
};
|
|
1028
|
-
};
|
|
1029
|
-
const de_DescribeTrustedAdvisorCheckRefreshStatusesResponse = (output, context) => {
|
|
1030
|
-
return {
|
|
1031
|
-
statuses: output.statuses != null ? de_TrustedAdvisorCheckRefreshStatusList(output.statuses, context) : undefined,
|
|
1032
|
-
};
|
|
733
|
+
return (0, smithy_client_1.take)(output, {
|
|
734
|
+
attachment: (_) => de_Attachment(_, context),
|
|
735
|
+
});
|
|
1033
736
|
};
|
|
1034
737
|
const de_DescribeTrustedAdvisorCheckResultResponse = (output, context) => {
|
|
1035
|
-
return {
|
|
1036
|
-
result:
|
|
1037
|
-
};
|
|
738
|
+
return (0, smithy_client_1.take)(output, {
|
|
739
|
+
result: (_) => de_TrustedAdvisorCheckResult(_, context),
|
|
740
|
+
});
|
|
1038
741
|
};
|
|
1039
742
|
const de_DescribeTrustedAdvisorChecksResponse = (output, context) => {
|
|
1040
|
-
return {
|
|
1041
|
-
checks:
|
|
1042
|
-
};
|
|
1043
|
-
};
|
|
1044
|
-
const de_DescribeTrustedAdvisorCheckSummariesResponse = (output, context) => {
|
|
1045
|
-
return {
|
|
1046
|
-
summaries: output.summaries != null ? de_TrustedAdvisorCheckSummaryList(output.summaries, context) : undefined,
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
|
-
const de_InternalServerError = (output, context) => {
|
|
1050
|
-
return {
|
|
1051
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1052
|
-
};
|
|
1053
|
-
};
|
|
1054
|
-
const de_RecentCaseCommunications = (output, context) => {
|
|
1055
|
-
return {
|
|
1056
|
-
communications: output.communications != null ? de_CommunicationList(output.communications, context) : undefined,
|
|
1057
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1058
|
-
};
|
|
1059
|
-
};
|
|
1060
|
-
const de_RefreshTrustedAdvisorCheckResponse = (output, context) => {
|
|
1061
|
-
return {
|
|
1062
|
-
status: output.status != null ? de_TrustedAdvisorCheckRefreshStatus(output.status, context) : undefined,
|
|
1063
|
-
};
|
|
1064
|
-
};
|
|
1065
|
-
const de_ResolveCaseResponse = (output, context) => {
|
|
1066
|
-
return {
|
|
1067
|
-
finalCaseStatus: (0, smithy_client_1.expectString)(output.finalCaseStatus),
|
|
1068
|
-
initialCaseStatus: (0, smithy_client_1.expectString)(output.initialCaseStatus),
|
|
1069
|
-
};
|
|
1070
|
-
};
|
|
1071
|
-
const de_Service = (output, context) => {
|
|
1072
|
-
return {
|
|
1073
|
-
categories: output.categories != null ? de_CategoryList(output.categories, context) : undefined,
|
|
1074
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
1075
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1076
|
-
};
|
|
1077
|
-
};
|
|
1078
|
-
const de_ServiceList = (output, context) => {
|
|
1079
|
-
const retVal = (output || [])
|
|
1080
|
-
.filter((e) => e != null)
|
|
1081
|
-
.map((entry) => {
|
|
1082
|
-
if (entry === null) {
|
|
1083
|
-
return null;
|
|
1084
|
-
}
|
|
1085
|
-
return de_Service(entry, context);
|
|
743
|
+
return (0, smithy_client_1.take)(output, {
|
|
744
|
+
checks: (_) => de_TrustedAdvisorCheckList(_, context),
|
|
1086
745
|
});
|
|
1087
|
-
return retVal;
|
|
1088
|
-
};
|
|
1089
|
-
const de_SeverityLevel = (output, context) => {
|
|
1090
|
-
return {
|
|
1091
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
1092
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1093
|
-
};
|
|
1094
746
|
};
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
.map((entry) => {
|
|
1099
|
-
if (entry === null) {
|
|
1100
|
-
return null;
|
|
1101
|
-
}
|
|
1102
|
-
return de_SeverityLevel(entry, context);
|
|
747
|
+
const de_DescribeTrustedAdvisorCheckSummariesResponse = (output, context) => {
|
|
748
|
+
return (0, smithy_client_1.take)(output, {
|
|
749
|
+
summaries: (_) => de_TrustedAdvisorCheckSummaryList(_, context),
|
|
1103
750
|
});
|
|
1104
|
-
return retVal;
|
|
1105
751
|
};
|
|
1106
752
|
const de_StringList = (output, context) => {
|
|
1107
753
|
const retVal = (output || []).map((entry) => {
|
|
@@ -1113,121 +759,78 @@ const de_StringList = (output, context) => {
|
|
|
1113
759
|
return retVal;
|
|
1114
760
|
};
|
|
1115
761
|
const de_TrustedAdvisorCategorySpecificSummary = (output, context) => {
|
|
1116
|
-
return {
|
|
1117
|
-
costOptimizing:
|
|
1118
|
-
|
|
1119
|
-
: undefined,
|
|
1120
|
-
};
|
|
762
|
+
return (0, smithy_client_1.take)(output, {
|
|
763
|
+
costOptimizing: (_) => de_TrustedAdvisorCostOptimizingSummary(_, context),
|
|
764
|
+
});
|
|
1121
765
|
};
|
|
1122
766
|
const de_TrustedAdvisorCheckDescription = (output, context) => {
|
|
1123
|
-
return {
|
|
1124
|
-
category:
|
|
1125
|
-
description:
|
|
1126
|
-
id:
|
|
1127
|
-
metadata:
|
|
1128
|
-
name:
|
|
1129
|
-
};
|
|
767
|
+
return (0, smithy_client_1.take)(output, {
|
|
768
|
+
category: smithy_client_1.expectString,
|
|
769
|
+
description: smithy_client_1.expectString,
|
|
770
|
+
id: smithy_client_1.expectString,
|
|
771
|
+
metadata: (_) => de_StringList(_, context),
|
|
772
|
+
name: smithy_client_1.expectString,
|
|
773
|
+
});
|
|
1130
774
|
};
|
|
1131
775
|
const de_TrustedAdvisorCheckList = (output, context) => {
|
|
1132
776
|
const retVal = (output || [])
|
|
1133
777
|
.filter((e) => e != null)
|
|
1134
778
|
.map((entry) => {
|
|
1135
|
-
if (entry === null) {
|
|
1136
|
-
return null;
|
|
1137
|
-
}
|
|
1138
779
|
return de_TrustedAdvisorCheckDescription(entry, context);
|
|
1139
780
|
});
|
|
1140
781
|
return retVal;
|
|
1141
782
|
};
|
|
1142
|
-
const de_TrustedAdvisorCheckRefreshStatus = (output, context) => {
|
|
1143
|
-
return {
|
|
1144
|
-
checkId: (0, smithy_client_1.expectString)(output.checkId),
|
|
1145
|
-
millisUntilNextRefreshable: (0, smithy_client_1.expectLong)(output.millisUntilNextRefreshable),
|
|
1146
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1147
|
-
};
|
|
1148
|
-
};
|
|
1149
|
-
const de_TrustedAdvisorCheckRefreshStatusList = (output, context) => {
|
|
1150
|
-
const retVal = (output || [])
|
|
1151
|
-
.filter((e) => e != null)
|
|
1152
|
-
.map((entry) => {
|
|
1153
|
-
if (entry === null) {
|
|
1154
|
-
return null;
|
|
1155
|
-
}
|
|
1156
|
-
return de_TrustedAdvisorCheckRefreshStatus(entry, context);
|
|
1157
|
-
});
|
|
1158
|
-
return retVal;
|
|
1159
|
-
};
|
|
1160
783
|
const de_TrustedAdvisorCheckResult = (output, context) => {
|
|
1161
|
-
return {
|
|
1162
|
-
categorySpecificSummary:
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
resourcesSummary: output.resourcesSummary != null ? de_TrustedAdvisorResourcesSummary(output.resourcesSummary, context) : undefined,
|
|
1170
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1171
|
-
timestamp: (0, smithy_client_1.expectString)(output.timestamp),
|
|
1172
|
-
};
|
|
784
|
+
return (0, smithy_client_1.take)(output, {
|
|
785
|
+
categorySpecificSummary: (_) => de_TrustedAdvisorCategorySpecificSummary(_, context),
|
|
786
|
+
checkId: smithy_client_1.expectString,
|
|
787
|
+
flaggedResources: (_) => de_TrustedAdvisorResourceDetailList(_, context),
|
|
788
|
+
resourcesSummary: smithy_client_1._json,
|
|
789
|
+
status: smithy_client_1.expectString,
|
|
790
|
+
timestamp: smithy_client_1.expectString,
|
|
791
|
+
});
|
|
1173
792
|
};
|
|
1174
793
|
const de_TrustedAdvisorCheckSummary = (output, context) => {
|
|
1175
|
-
return {
|
|
1176
|
-
categorySpecificSummary:
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
timestamp: (0, smithy_client_1.expectString)(output.timestamp),
|
|
1184
|
-
};
|
|
794
|
+
return (0, smithy_client_1.take)(output, {
|
|
795
|
+
categorySpecificSummary: (_) => de_TrustedAdvisorCategorySpecificSummary(_, context),
|
|
796
|
+
checkId: smithy_client_1.expectString,
|
|
797
|
+
hasFlaggedResources: smithy_client_1.expectBoolean,
|
|
798
|
+
resourcesSummary: smithy_client_1._json,
|
|
799
|
+
status: smithy_client_1.expectString,
|
|
800
|
+
timestamp: smithy_client_1.expectString,
|
|
801
|
+
});
|
|
1185
802
|
};
|
|
1186
803
|
const de_TrustedAdvisorCheckSummaryList = (output, context) => {
|
|
1187
804
|
const retVal = (output || [])
|
|
1188
805
|
.filter((e) => e != null)
|
|
1189
806
|
.map((entry) => {
|
|
1190
|
-
if (entry === null) {
|
|
1191
|
-
return null;
|
|
1192
|
-
}
|
|
1193
807
|
return de_TrustedAdvisorCheckSummary(entry, context);
|
|
1194
808
|
});
|
|
1195
809
|
return retVal;
|
|
1196
810
|
};
|
|
1197
811
|
const de_TrustedAdvisorCostOptimizingSummary = (output, context) => {
|
|
1198
|
-
return {
|
|
1199
|
-
estimatedMonthlySavings:
|
|
1200
|
-
estimatedPercentMonthlySavings:
|
|
1201
|
-
};
|
|
812
|
+
return (0, smithy_client_1.take)(output, {
|
|
813
|
+
estimatedMonthlySavings: smithy_client_1.limitedParseDouble,
|
|
814
|
+
estimatedPercentMonthlySavings: smithy_client_1.limitedParseDouble,
|
|
815
|
+
});
|
|
1202
816
|
};
|
|
1203
817
|
const de_TrustedAdvisorResourceDetail = (output, context) => {
|
|
1204
|
-
return {
|
|
1205
|
-
isSuppressed:
|
|
1206
|
-
metadata:
|
|
1207
|
-
region:
|
|
1208
|
-
resourceId:
|
|
1209
|
-
status:
|
|
1210
|
-
};
|
|
818
|
+
return (0, smithy_client_1.take)(output, {
|
|
819
|
+
isSuppressed: smithy_client_1.expectBoolean,
|
|
820
|
+
metadata: (_) => de_StringList(_, context),
|
|
821
|
+
region: smithy_client_1.expectString,
|
|
822
|
+
resourceId: smithy_client_1.expectString,
|
|
823
|
+
status: smithy_client_1.expectString,
|
|
824
|
+
});
|
|
1211
825
|
};
|
|
1212
826
|
const de_TrustedAdvisorResourceDetailList = (output, context) => {
|
|
1213
827
|
const retVal = (output || [])
|
|
1214
828
|
.filter((e) => e != null)
|
|
1215
829
|
.map((entry) => {
|
|
1216
|
-
if (entry === null) {
|
|
1217
|
-
return null;
|
|
1218
|
-
}
|
|
1219
830
|
return de_TrustedAdvisorResourceDetail(entry, context);
|
|
1220
831
|
});
|
|
1221
832
|
return retVal;
|
|
1222
833
|
};
|
|
1223
|
-
const de_TrustedAdvisorResourcesSummary = (output, context) => {
|
|
1224
|
-
return {
|
|
1225
|
-
resourcesFlagged: (0, smithy_client_1.expectLong)(output.resourcesFlagged),
|
|
1226
|
-
resourcesIgnored: (0, smithy_client_1.expectLong)(output.resourcesIgnored),
|
|
1227
|
-
resourcesProcessed: (0, smithy_client_1.expectLong)(output.resourcesProcessed),
|
|
1228
|
-
resourcesSuppressed: (0, smithy_client_1.expectLong)(output.resourcesSuppressed),
|
|
1229
|
-
};
|
|
1230
|
-
};
|
|
1231
834
|
const deserializeMetadata = (output) => ({
|
|
1232
835
|
httpStatusCode: output.statusCode,
|
|
1233
836
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1241,6 +844,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1241
844
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1242
845
|
};
|
|
1243
846
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
847
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SupportServiceException_1.SupportServiceException);
|
|
1244
848
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1245
849
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1246
850
|
const contents = {
|