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