@aws-sdk/client-support 3.927.0 → 3.928.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +752 -755
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/SupportClient.js +2 -0
- package/dist-es/commands/AddAttachmentsToSetCommand.js +3 -9
- package/dist-es/commands/AddCommunicationToCaseCommand.js +3 -9
- package/dist-es/commands/CreateCaseCommand.js +3 -9
- package/dist-es/commands/DescribeAttachmentCommand.js +3 -9
- package/dist-es/commands/DescribeCasesCommand.js +3 -9
- package/dist-es/commands/DescribeCommunicationsCommand.js +3 -9
- package/dist-es/commands/DescribeCreateCaseOptionsCommand.js +3 -9
- package/dist-es/commands/DescribeServicesCommand.js +3 -9
- package/dist-es/commands/DescribeSeverityLevelsCommand.js +3 -9
- package/dist-es/commands/DescribeSupportedLanguagesCommand.js +3 -9
- package/dist-es/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +3 -9
- package/dist-es/commands/DescribeTrustedAdvisorCheckResultCommand.js +3 -9
- package/dist-es/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +3 -9
- package/dist-es/commands/DescribeTrustedAdvisorChecksCommand.js +3 -9
- package/dist-es/commands/RefreshTrustedAdvisorCheckCommand.js +3 -9
- package/dist-es/commands/ResolveCaseCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +691 -0
- package/dist-types/SupportClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +99 -0
- package/dist-types/ts3.4/SupportClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +104 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -617
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -146
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -197
|
@@ -1,617 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectString as __expectString, limitedParseDouble as __limitedParseDouble, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AttachmentIdNotFound, AttachmentLimitExceeded, AttachmentSetExpired, AttachmentSetIdNotFound, AttachmentSetSizeLimitExceeded, CaseCreationLimitExceeded, CaseIdNotFound, DescribeAttachmentLimitExceeded, InternalServerError, ThrottlingException, } from "../models/models_0";
|
|
5
|
-
import { SupportServiceException as __BaseException } from "../models/SupportServiceException";
|
|
6
|
-
export const se_AddAttachmentsToSetCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("AddAttachmentsToSet");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(se_AddAttachmentsToSetRequest(input, context));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_AddCommunicationToCaseCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("AddCommunicationToCase");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateCaseCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateCase");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_DescribeAttachmentCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("DescribeAttachment");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DescribeCasesCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DescribeCases");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DescribeCommunicationsCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DescribeCommunications");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DescribeCreateCaseOptionsCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DescribeCreateCaseOptions");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DescribeServicesCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DescribeServices");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DescribeSeverityLevelsCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DescribeSeverityLevels");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DescribeSupportedLanguagesCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DescribeSupportedLanguages");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DescribeTrustedAdvisorCheckRefreshStatuses");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(se_DescribeTrustedAdvisorCheckRefreshStatusesRequest(input, context));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DescribeTrustedAdvisorCheckResultCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DescribeTrustedAdvisorCheckResult");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DescribeTrustedAdvisorChecksCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DescribeTrustedAdvisorChecks");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_DescribeTrustedAdvisorCheckSummariesCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("DescribeTrustedAdvisorCheckSummaries");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(se_DescribeTrustedAdvisorCheckSummariesRequest(input, context));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_RefreshTrustedAdvisorCheckCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("RefreshTrustedAdvisorCheck");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_ResolveCaseCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("ResolveCase");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const de_AddAttachmentsToSetCommand = async (output, context) => {
|
|
103
|
-
if (output.statusCode >= 300) {
|
|
104
|
-
return de_CommandError(output, context);
|
|
105
|
-
}
|
|
106
|
-
const data = await parseBody(output.body, context);
|
|
107
|
-
let contents = {};
|
|
108
|
-
contents = _json(data);
|
|
109
|
-
const response = {
|
|
110
|
-
$metadata: deserializeMetadata(output),
|
|
111
|
-
...contents,
|
|
112
|
-
};
|
|
113
|
-
return response;
|
|
114
|
-
};
|
|
115
|
-
export const de_AddCommunicationToCaseCommand = async (output, context) => {
|
|
116
|
-
if (output.statusCode >= 300) {
|
|
117
|
-
return de_CommandError(output, context);
|
|
118
|
-
}
|
|
119
|
-
const data = await parseBody(output.body, context);
|
|
120
|
-
let contents = {};
|
|
121
|
-
contents = _json(data);
|
|
122
|
-
const response = {
|
|
123
|
-
$metadata: deserializeMetadata(output),
|
|
124
|
-
...contents,
|
|
125
|
-
};
|
|
126
|
-
return response;
|
|
127
|
-
};
|
|
128
|
-
export const de_CreateCaseCommand = async (output, context) => {
|
|
129
|
-
if (output.statusCode >= 300) {
|
|
130
|
-
return de_CommandError(output, context);
|
|
131
|
-
}
|
|
132
|
-
const data = await parseBody(output.body, context);
|
|
133
|
-
let contents = {};
|
|
134
|
-
contents = _json(data);
|
|
135
|
-
const response = {
|
|
136
|
-
$metadata: deserializeMetadata(output),
|
|
137
|
-
...contents,
|
|
138
|
-
};
|
|
139
|
-
return response;
|
|
140
|
-
};
|
|
141
|
-
export const de_DescribeAttachmentCommand = async (output, context) => {
|
|
142
|
-
if (output.statusCode >= 300) {
|
|
143
|
-
return de_CommandError(output, context);
|
|
144
|
-
}
|
|
145
|
-
const data = await parseBody(output.body, context);
|
|
146
|
-
let contents = {};
|
|
147
|
-
contents = de_DescribeAttachmentResponse(data, context);
|
|
148
|
-
const response = {
|
|
149
|
-
$metadata: deserializeMetadata(output),
|
|
150
|
-
...contents,
|
|
151
|
-
};
|
|
152
|
-
return response;
|
|
153
|
-
};
|
|
154
|
-
export const de_DescribeCasesCommand = async (output, context) => {
|
|
155
|
-
if (output.statusCode >= 300) {
|
|
156
|
-
return de_CommandError(output, context);
|
|
157
|
-
}
|
|
158
|
-
const data = await parseBody(output.body, context);
|
|
159
|
-
let contents = {};
|
|
160
|
-
contents = _json(data);
|
|
161
|
-
const response = {
|
|
162
|
-
$metadata: deserializeMetadata(output),
|
|
163
|
-
...contents,
|
|
164
|
-
};
|
|
165
|
-
return response;
|
|
166
|
-
};
|
|
167
|
-
export const de_DescribeCommunicationsCommand = async (output, context) => {
|
|
168
|
-
if (output.statusCode >= 300) {
|
|
169
|
-
return de_CommandError(output, context);
|
|
170
|
-
}
|
|
171
|
-
const data = await parseBody(output.body, context);
|
|
172
|
-
let contents = {};
|
|
173
|
-
contents = _json(data);
|
|
174
|
-
const response = {
|
|
175
|
-
$metadata: deserializeMetadata(output),
|
|
176
|
-
...contents,
|
|
177
|
-
};
|
|
178
|
-
return response;
|
|
179
|
-
};
|
|
180
|
-
export const de_DescribeCreateCaseOptionsCommand = async (output, context) => {
|
|
181
|
-
if (output.statusCode >= 300) {
|
|
182
|
-
return de_CommandError(output, context);
|
|
183
|
-
}
|
|
184
|
-
const data = await parseBody(output.body, context);
|
|
185
|
-
let contents = {};
|
|
186
|
-
contents = _json(data);
|
|
187
|
-
const response = {
|
|
188
|
-
$metadata: deserializeMetadata(output),
|
|
189
|
-
...contents,
|
|
190
|
-
};
|
|
191
|
-
return response;
|
|
192
|
-
};
|
|
193
|
-
export const de_DescribeServicesCommand = async (output, context) => {
|
|
194
|
-
if (output.statusCode >= 300) {
|
|
195
|
-
return de_CommandError(output, context);
|
|
196
|
-
}
|
|
197
|
-
const data = await parseBody(output.body, context);
|
|
198
|
-
let contents = {};
|
|
199
|
-
contents = _json(data);
|
|
200
|
-
const response = {
|
|
201
|
-
$metadata: deserializeMetadata(output),
|
|
202
|
-
...contents,
|
|
203
|
-
};
|
|
204
|
-
return response;
|
|
205
|
-
};
|
|
206
|
-
export const de_DescribeSeverityLevelsCommand = async (output, context) => {
|
|
207
|
-
if (output.statusCode >= 300) {
|
|
208
|
-
return de_CommandError(output, context);
|
|
209
|
-
}
|
|
210
|
-
const data = await parseBody(output.body, context);
|
|
211
|
-
let contents = {};
|
|
212
|
-
contents = _json(data);
|
|
213
|
-
const response = {
|
|
214
|
-
$metadata: deserializeMetadata(output),
|
|
215
|
-
...contents,
|
|
216
|
-
};
|
|
217
|
-
return response;
|
|
218
|
-
};
|
|
219
|
-
export const de_DescribeSupportedLanguagesCommand = async (output, context) => {
|
|
220
|
-
if (output.statusCode >= 300) {
|
|
221
|
-
return de_CommandError(output, context);
|
|
222
|
-
}
|
|
223
|
-
const data = await parseBody(output.body, context);
|
|
224
|
-
let contents = {};
|
|
225
|
-
contents = _json(data);
|
|
226
|
-
const response = {
|
|
227
|
-
$metadata: deserializeMetadata(output),
|
|
228
|
-
...contents,
|
|
229
|
-
};
|
|
230
|
-
return response;
|
|
231
|
-
};
|
|
232
|
-
export const de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (output, context) => {
|
|
233
|
-
if (output.statusCode >= 300) {
|
|
234
|
-
return de_CommandError(output, context);
|
|
235
|
-
}
|
|
236
|
-
const data = await parseBody(output.body, context);
|
|
237
|
-
let contents = {};
|
|
238
|
-
contents = _json(data);
|
|
239
|
-
const response = {
|
|
240
|
-
$metadata: deserializeMetadata(output),
|
|
241
|
-
...contents,
|
|
242
|
-
};
|
|
243
|
-
return response;
|
|
244
|
-
};
|
|
245
|
-
export const de_DescribeTrustedAdvisorCheckResultCommand = async (output, context) => {
|
|
246
|
-
if (output.statusCode >= 300) {
|
|
247
|
-
return de_CommandError(output, context);
|
|
248
|
-
}
|
|
249
|
-
const data = await parseBody(output.body, context);
|
|
250
|
-
let contents = {};
|
|
251
|
-
contents = de_DescribeTrustedAdvisorCheckResultResponse(data, context);
|
|
252
|
-
const response = {
|
|
253
|
-
$metadata: deserializeMetadata(output),
|
|
254
|
-
...contents,
|
|
255
|
-
};
|
|
256
|
-
return response;
|
|
257
|
-
};
|
|
258
|
-
export const de_DescribeTrustedAdvisorChecksCommand = async (output, context) => {
|
|
259
|
-
if (output.statusCode >= 300) {
|
|
260
|
-
return de_CommandError(output, context);
|
|
261
|
-
}
|
|
262
|
-
const data = await parseBody(output.body, context);
|
|
263
|
-
let contents = {};
|
|
264
|
-
contents = de_DescribeTrustedAdvisorChecksResponse(data, context);
|
|
265
|
-
const response = {
|
|
266
|
-
$metadata: deserializeMetadata(output),
|
|
267
|
-
...contents,
|
|
268
|
-
};
|
|
269
|
-
return response;
|
|
270
|
-
};
|
|
271
|
-
export const de_DescribeTrustedAdvisorCheckSummariesCommand = async (output, context) => {
|
|
272
|
-
if (output.statusCode >= 300) {
|
|
273
|
-
return de_CommandError(output, context);
|
|
274
|
-
}
|
|
275
|
-
const data = await parseBody(output.body, context);
|
|
276
|
-
let contents = {};
|
|
277
|
-
contents = de_DescribeTrustedAdvisorCheckSummariesResponse(data, context);
|
|
278
|
-
const response = {
|
|
279
|
-
$metadata: deserializeMetadata(output),
|
|
280
|
-
...contents,
|
|
281
|
-
};
|
|
282
|
-
return response;
|
|
283
|
-
};
|
|
284
|
-
export const de_RefreshTrustedAdvisorCheckCommand = async (output, context) => {
|
|
285
|
-
if (output.statusCode >= 300) {
|
|
286
|
-
return de_CommandError(output, context);
|
|
287
|
-
}
|
|
288
|
-
const data = await parseBody(output.body, context);
|
|
289
|
-
let contents = {};
|
|
290
|
-
contents = _json(data);
|
|
291
|
-
const response = {
|
|
292
|
-
$metadata: deserializeMetadata(output),
|
|
293
|
-
...contents,
|
|
294
|
-
};
|
|
295
|
-
return response;
|
|
296
|
-
};
|
|
297
|
-
export const de_ResolveCaseCommand = async (output, context) => {
|
|
298
|
-
if (output.statusCode >= 300) {
|
|
299
|
-
return de_CommandError(output, context);
|
|
300
|
-
}
|
|
301
|
-
const data = await parseBody(output.body, context);
|
|
302
|
-
let contents = {};
|
|
303
|
-
contents = _json(data);
|
|
304
|
-
const response = {
|
|
305
|
-
$metadata: deserializeMetadata(output),
|
|
306
|
-
...contents,
|
|
307
|
-
};
|
|
308
|
-
return response;
|
|
309
|
-
};
|
|
310
|
-
const de_CommandError = async (output, context) => {
|
|
311
|
-
const parsedOutput = {
|
|
312
|
-
...output,
|
|
313
|
-
body: await parseErrorBody(output.body, context),
|
|
314
|
-
};
|
|
315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
|
-
switch (errorCode) {
|
|
317
|
-
case "AttachmentLimitExceeded":
|
|
318
|
-
case "com.amazonaws.support#AttachmentLimitExceeded":
|
|
319
|
-
throw await de_AttachmentLimitExceededRes(parsedOutput, context);
|
|
320
|
-
case "AttachmentSetExpired":
|
|
321
|
-
case "com.amazonaws.support#AttachmentSetExpired":
|
|
322
|
-
throw await de_AttachmentSetExpiredRes(parsedOutput, context);
|
|
323
|
-
case "AttachmentSetIdNotFound":
|
|
324
|
-
case "com.amazonaws.support#AttachmentSetIdNotFound":
|
|
325
|
-
throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
|
|
326
|
-
case "AttachmentSetSizeLimitExceeded":
|
|
327
|
-
case "com.amazonaws.support#AttachmentSetSizeLimitExceeded":
|
|
328
|
-
throw await de_AttachmentSetSizeLimitExceededRes(parsedOutput, context);
|
|
329
|
-
case "InternalServerError":
|
|
330
|
-
case "com.amazonaws.support#InternalServerError":
|
|
331
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
332
|
-
case "CaseIdNotFound":
|
|
333
|
-
case "com.amazonaws.support#CaseIdNotFound":
|
|
334
|
-
throw await de_CaseIdNotFoundRes(parsedOutput, context);
|
|
335
|
-
case "CaseCreationLimitExceeded":
|
|
336
|
-
case "com.amazonaws.support#CaseCreationLimitExceeded":
|
|
337
|
-
throw await de_CaseCreationLimitExceededRes(parsedOutput, context);
|
|
338
|
-
case "AttachmentIdNotFound":
|
|
339
|
-
case "com.amazonaws.support#AttachmentIdNotFound":
|
|
340
|
-
throw await de_AttachmentIdNotFoundRes(parsedOutput, context);
|
|
341
|
-
case "DescribeAttachmentLimitExceeded":
|
|
342
|
-
case "com.amazonaws.support#DescribeAttachmentLimitExceeded":
|
|
343
|
-
throw await de_DescribeAttachmentLimitExceededRes(parsedOutput, context);
|
|
344
|
-
case "ThrottlingException":
|
|
345
|
-
case "com.amazonaws.support#ThrottlingException":
|
|
346
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
347
|
-
default:
|
|
348
|
-
const parsedBody = parsedOutput.body;
|
|
349
|
-
return throwDefaultError({
|
|
350
|
-
output,
|
|
351
|
-
parsedBody,
|
|
352
|
-
errorCode,
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
const de_AttachmentIdNotFoundRes = async (parsedOutput, context) => {
|
|
357
|
-
const body = parsedOutput.body;
|
|
358
|
-
const deserialized = _json(body);
|
|
359
|
-
const exception = new AttachmentIdNotFound({
|
|
360
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
361
|
-
...deserialized,
|
|
362
|
-
});
|
|
363
|
-
return __decorateServiceException(exception, body);
|
|
364
|
-
};
|
|
365
|
-
const de_AttachmentLimitExceededRes = async (parsedOutput, context) => {
|
|
366
|
-
const body = parsedOutput.body;
|
|
367
|
-
const deserialized = _json(body);
|
|
368
|
-
const exception = new AttachmentLimitExceeded({
|
|
369
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
370
|
-
...deserialized,
|
|
371
|
-
});
|
|
372
|
-
return __decorateServiceException(exception, body);
|
|
373
|
-
};
|
|
374
|
-
const de_AttachmentSetExpiredRes = async (parsedOutput, context) => {
|
|
375
|
-
const body = parsedOutput.body;
|
|
376
|
-
const deserialized = _json(body);
|
|
377
|
-
const exception = new AttachmentSetExpired({
|
|
378
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
379
|
-
...deserialized,
|
|
380
|
-
});
|
|
381
|
-
return __decorateServiceException(exception, body);
|
|
382
|
-
};
|
|
383
|
-
const de_AttachmentSetIdNotFoundRes = async (parsedOutput, context) => {
|
|
384
|
-
const body = parsedOutput.body;
|
|
385
|
-
const deserialized = _json(body);
|
|
386
|
-
const exception = new AttachmentSetIdNotFound({
|
|
387
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
388
|
-
...deserialized,
|
|
389
|
-
});
|
|
390
|
-
return __decorateServiceException(exception, body);
|
|
391
|
-
};
|
|
392
|
-
const de_AttachmentSetSizeLimitExceededRes = async (parsedOutput, context) => {
|
|
393
|
-
const body = parsedOutput.body;
|
|
394
|
-
const deserialized = _json(body);
|
|
395
|
-
const exception = new AttachmentSetSizeLimitExceeded({
|
|
396
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
397
|
-
...deserialized,
|
|
398
|
-
});
|
|
399
|
-
return __decorateServiceException(exception, body);
|
|
400
|
-
};
|
|
401
|
-
const de_CaseCreationLimitExceededRes = async (parsedOutput, context) => {
|
|
402
|
-
const body = parsedOutput.body;
|
|
403
|
-
const deserialized = _json(body);
|
|
404
|
-
const exception = new CaseCreationLimitExceeded({
|
|
405
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
406
|
-
...deserialized,
|
|
407
|
-
});
|
|
408
|
-
return __decorateServiceException(exception, body);
|
|
409
|
-
};
|
|
410
|
-
const de_CaseIdNotFoundRes = async (parsedOutput, context) => {
|
|
411
|
-
const body = parsedOutput.body;
|
|
412
|
-
const deserialized = _json(body);
|
|
413
|
-
const exception = new CaseIdNotFound({
|
|
414
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
415
|
-
...deserialized,
|
|
416
|
-
});
|
|
417
|
-
return __decorateServiceException(exception, body);
|
|
418
|
-
};
|
|
419
|
-
const de_DescribeAttachmentLimitExceededRes = async (parsedOutput, context) => {
|
|
420
|
-
const body = parsedOutput.body;
|
|
421
|
-
const deserialized = _json(body);
|
|
422
|
-
const exception = new DescribeAttachmentLimitExceeded({
|
|
423
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
424
|
-
...deserialized,
|
|
425
|
-
});
|
|
426
|
-
return __decorateServiceException(exception, body);
|
|
427
|
-
};
|
|
428
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
429
|
-
const body = parsedOutput.body;
|
|
430
|
-
const deserialized = _json(body);
|
|
431
|
-
const exception = new InternalServerError({
|
|
432
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
433
|
-
...deserialized,
|
|
434
|
-
});
|
|
435
|
-
return __decorateServiceException(exception, body);
|
|
436
|
-
};
|
|
437
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
438
|
-
const body = parsedOutput.body;
|
|
439
|
-
const deserialized = _json(body);
|
|
440
|
-
const exception = new ThrottlingException({
|
|
441
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
442
|
-
...deserialized,
|
|
443
|
-
});
|
|
444
|
-
return __decorateServiceException(exception, body);
|
|
445
|
-
};
|
|
446
|
-
const se_AddAttachmentsToSetRequest = (input, context) => {
|
|
447
|
-
return take(input, {
|
|
448
|
-
attachmentSetId: [],
|
|
449
|
-
attachments: (_) => se_Attachments(_, context),
|
|
450
|
-
});
|
|
451
|
-
};
|
|
452
|
-
const se_Attachment = (input, context) => {
|
|
453
|
-
return take(input, {
|
|
454
|
-
data: context.base64Encoder,
|
|
455
|
-
fileName: [],
|
|
456
|
-
});
|
|
457
|
-
};
|
|
458
|
-
const se_Attachments = (input, context) => {
|
|
459
|
-
return input
|
|
460
|
-
.filter((e) => e != null)
|
|
461
|
-
.map((entry) => {
|
|
462
|
-
return se_Attachment(entry, context);
|
|
463
|
-
});
|
|
464
|
-
};
|
|
465
|
-
const se_DescribeTrustedAdvisorCheckRefreshStatusesRequest = (input, context) => {
|
|
466
|
-
return take(input, {
|
|
467
|
-
checkIds: (_) => se_StringList(_, context),
|
|
468
|
-
});
|
|
469
|
-
};
|
|
470
|
-
const se_DescribeTrustedAdvisorCheckSummariesRequest = (input, context) => {
|
|
471
|
-
return take(input, {
|
|
472
|
-
checkIds: (_) => se_StringList(_, context),
|
|
473
|
-
});
|
|
474
|
-
};
|
|
475
|
-
const se_StringList = (input, context) => {
|
|
476
|
-
return input;
|
|
477
|
-
};
|
|
478
|
-
const de_Attachment = (output, context) => {
|
|
479
|
-
return take(output, {
|
|
480
|
-
data: context.base64Decoder,
|
|
481
|
-
fileName: __expectString,
|
|
482
|
-
});
|
|
483
|
-
};
|
|
484
|
-
const de_DescribeAttachmentResponse = (output, context) => {
|
|
485
|
-
return take(output, {
|
|
486
|
-
attachment: (_) => de_Attachment(_, context),
|
|
487
|
-
});
|
|
488
|
-
};
|
|
489
|
-
const de_DescribeTrustedAdvisorCheckResultResponse = (output, context) => {
|
|
490
|
-
return take(output, {
|
|
491
|
-
result: (_) => de_TrustedAdvisorCheckResult(_, context),
|
|
492
|
-
});
|
|
493
|
-
};
|
|
494
|
-
const de_DescribeTrustedAdvisorChecksResponse = (output, context) => {
|
|
495
|
-
return take(output, {
|
|
496
|
-
checks: (_) => de_TrustedAdvisorCheckList(_, context),
|
|
497
|
-
});
|
|
498
|
-
};
|
|
499
|
-
const de_DescribeTrustedAdvisorCheckSummariesResponse = (output, context) => {
|
|
500
|
-
return take(output, {
|
|
501
|
-
summaries: (_) => de_TrustedAdvisorCheckSummaryList(_, context),
|
|
502
|
-
});
|
|
503
|
-
};
|
|
504
|
-
const de_StringList = (output, context) => {
|
|
505
|
-
const retVal = (output || []).map((entry) => {
|
|
506
|
-
if (entry === null) {
|
|
507
|
-
return null;
|
|
508
|
-
}
|
|
509
|
-
return __expectString(entry);
|
|
510
|
-
});
|
|
511
|
-
return retVal;
|
|
512
|
-
};
|
|
513
|
-
const de_TrustedAdvisorCategorySpecificSummary = (output, context) => {
|
|
514
|
-
return take(output, {
|
|
515
|
-
costOptimizing: (_) => de_TrustedAdvisorCostOptimizingSummary(_, context),
|
|
516
|
-
});
|
|
517
|
-
};
|
|
518
|
-
const de_TrustedAdvisorCheckDescription = (output, context) => {
|
|
519
|
-
return take(output, {
|
|
520
|
-
category: __expectString,
|
|
521
|
-
description: __expectString,
|
|
522
|
-
id: __expectString,
|
|
523
|
-
metadata: (_) => de_StringList(_, context),
|
|
524
|
-
name: __expectString,
|
|
525
|
-
});
|
|
526
|
-
};
|
|
527
|
-
const de_TrustedAdvisorCheckList = (output, context) => {
|
|
528
|
-
const retVal = (output || [])
|
|
529
|
-
.filter((e) => e != null)
|
|
530
|
-
.map((entry) => {
|
|
531
|
-
return de_TrustedAdvisorCheckDescription(entry, context);
|
|
532
|
-
});
|
|
533
|
-
return retVal;
|
|
534
|
-
};
|
|
535
|
-
const de_TrustedAdvisorCheckResult = (output, context) => {
|
|
536
|
-
return take(output, {
|
|
537
|
-
categorySpecificSummary: (_) => de_TrustedAdvisorCategorySpecificSummary(_, context),
|
|
538
|
-
checkId: __expectString,
|
|
539
|
-
flaggedResources: (_) => de_TrustedAdvisorResourceDetailList(_, context),
|
|
540
|
-
resourcesSummary: _json,
|
|
541
|
-
status: __expectString,
|
|
542
|
-
timestamp: __expectString,
|
|
543
|
-
});
|
|
544
|
-
};
|
|
545
|
-
const de_TrustedAdvisorCheckSummary = (output, context) => {
|
|
546
|
-
return take(output, {
|
|
547
|
-
categorySpecificSummary: (_) => de_TrustedAdvisorCategorySpecificSummary(_, context),
|
|
548
|
-
checkId: __expectString,
|
|
549
|
-
hasFlaggedResources: __expectBoolean,
|
|
550
|
-
resourcesSummary: _json,
|
|
551
|
-
status: __expectString,
|
|
552
|
-
timestamp: __expectString,
|
|
553
|
-
});
|
|
554
|
-
};
|
|
555
|
-
const de_TrustedAdvisorCheckSummaryList = (output, context) => {
|
|
556
|
-
const retVal = (output || [])
|
|
557
|
-
.filter((e) => e != null)
|
|
558
|
-
.map((entry) => {
|
|
559
|
-
return de_TrustedAdvisorCheckSummary(entry, context);
|
|
560
|
-
});
|
|
561
|
-
return retVal;
|
|
562
|
-
};
|
|
563
|
-
const de_TrustedAdvisorCostOptimizingSummary = (output, context) => {
|
|
564
|
-
return take(output, {
|
|
565
|
-
estimatedMonthlySavings: __limitedParseDouble,
|
|
566
|
-
estimatedPercentMonthlySavings: __limitedParseDouble,
|
|
567
|
-
});
|
|
568
|
-
};
|
|
569
|
-
const de_TrustedAdvisorResourceDetail = (output, context) => {
|
|
570
|
-
return take(output, {
|
|
571
|
-
isSuppressed: __expectBoolean,
|
|
572
|
-
metadata: (_) => de_StringList(_, context),
|
|
573
|
-
region: __expectString,
|
|
574
|
-
resourceId: __expectString,
|
|
575
|
-
status: __expectString,
|
|
576
|
-
});
|
|
577
|
-
};
|
|
578
|
-
const de_TrustedAdvisorResourceDetailList = (output, context) => {
|
|
579
|
-
const retVal = (output || [])
|
|
580
|
-
.filter((e) => e != null)
|
|
581
|
-
.map((entry) => {
|
|
582
|
-
return de_TrustedAdvisorResourceDetail(entry, context);
|
|
583
|
-
});
|
|
584
|
-
return retVal;
|
|
585
|
-
};
|
|
586
|
-
const deserializeMetadata = (output) => ({
|
|
587
|
-
httpStatusCode: output.statusCode,
|
|
588
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
589
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
590
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
591
|
-
});
|
|
592
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
593
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
594
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
595
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
596
|
-
const contents = {
|
|
597
|
-
protocol,
|
|
598
|
-
hostname,
|
|
599
|
-
port,
|
|
600
|
-
method: "POST",
|
|
601
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
602
|
-
headers,
|
|
603
|
-
};
|
|
604
|
-
if (resolvedHostname !== undefined) {
|
|
605
|
-
contents.hostname = resolvedHostname;
|
|
606
|
-
}
|
|
607
|
-
if (body !== undefined) {
|
|
608
|
-
contents.body = body;
|
|
609
|
-
}
|
|
610
|
-
return new __HttpRequest(contents);
|
|
611
|
-
};
|
|
612
|
-
function sharedHeaders(operation) {
|
|
613
|
-
return {
|
|
614
|
-
"content-type": "application/x-amz-json-1.1",
|
|
615
|
-
"x-amz-target": `AWSSupport_20130415.${operation}`,
|
|
616
|
-
};
|
|
617
|
-
}
|