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