@aws-sdk/client-support 3.306.0 → 3.310.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.
Files changed (33) hide show
  1. package/dist-cjs/commands/AddAttachmentsToSetCommand.js +2 -2
  2. package/dist-cjs/commands/AddCommunicationToCaseCommand.js +2 -2
  3. package/dist-cjs/commands/CreateCaseCommand.js +2 -2
  4. package/dist-cjs/commands/DescribeAttachmentCommand.js +2 -2
  5. package/dist-cjs/commands/DescribeCasesCommand.js +2 -2
  6. package/dist-cjs/commands/DescribeCommunicationsCommand.js +2 -2
  7. package/dist-cjs/commands/DescribeServicesCommand.js +2 -2
  8. package/dist-cjs/commands/DescribeSeverityLevelsCommand.js +2 -2
  9. package/dist-cjs/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +2 -2
  10. package/dist-cjs/commands/DescribeTrustedAdvisorCheckResultCommand.js +2 -2
  11. package/dist-cjs/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +2 -2
  12. package/dist-cjs/commands/DescribeTrustedAdvisorChecksCommand.js +2 -2
  13. package/dist-cjs/commands/RefreshTrustedAdvisorCheckCommand.js +2 -2
  14. package/dist-cjs/commands/ResolveCaseCommand.js +2 -2
  15. package/dist-cjs/protocols/Aws_json1_1.js +272 -296
  16. package/dist-es/commands/AddAttachmentsToSetCommand.js +3 -3
  17. package/dist-es/commands/AddCommunicationToCaseCommand.js +3 -3
  18. package/dist-es/commands/CreateCaseCommand.js +3 -3
  19. package/dist-es/commands/DescribeAttachmentCommand.js +3 -3
  20. package/dist-es/commands/DescribeCasesCommand.js +3 -3
  21. package/dist-es/commands/DescribeCommunicationsCommand.js +3 -3
  22. package/dist-es/commands/DescribeServicesCommand.js +3 -3
  23. package/dist-es/commands/DescribeSeverityLevelsCommand.js +3 -3
  24. package/dist-es/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +3 -3
  25. package/dist-es/commands/DescribeTrustedAdvisorCheckResultCommand.js +3 -3
  26. package/dist-es/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +3 -3
  27. package/dist-es/commands/DescribeTrustedAdvisorChecksCommand.js +3 -3
  28. package/dist-es/commands/RefreshTrustedAdvisorCheckCommand.js +3 -3
  29. package/dist-es/commands/ResolveCaseCommand.js +3 -3
  30. package/dist-es/protocols/Aws_json1_1.js +243 -267
  31. package/dist-types/protocols/Aws_json1_1.d.ts +112 -28
  32. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +28 -28
  33. package/package.json +35 -35
@@ -2,146 +2,146 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, throwDefaultError, } 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
- export const serializeAws_json1_1AddAttachmentsToSetCommand = async (input, context) => {
5
+ export const se_AddAttachmentsToSetCommand = async (input, context) => {
6
6
  const headers = {
7
7
  "content-type": "application/x-amz-json-1.1",
8
8
  "x-amz-target": "AWSSupport_20130415.AddAttachmentsToSet",
9
9
  };
10
10
  let body;
11
- body = JSON.stringify(serializeAws_json1_1AddAttachmentsToSetRequest(input, context));
11
+ body = JSON.stringify(se_AddAttachmentsToSetRequest(input, context));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
- export const serializeAws_json1_1AddCommunicationToCaseCommand = async (input, context) => {
14
+ export const se_AddCommunicationToCaseCommand = async (input, context) => {
15
15
  const headers = {
16
16
  "content-type": "application/x-amz-json-1.1",
17
17
  "x-amz-target": "AWSSupport_20130415.AddCommunicationToCase",
18
18
  };
19
19
  let body;
20
- body = JSON.stringify(serializeAws_json1_1AddCommunicationToCaseRequest(input, context));
20
+ body = JSON.stringify(se_AddCommunicationToCaseRequest(input, context));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
- export const serializeAws_json1_1CreateCaseCommand = async (input, context) => {
23
+ export const se_CreateCaseCommand = async (input, context) => {
24
24
  const headers = {
25
25
  "content-type": "application/x-amz-json-1.1",
26
26
  "x-amz-target": "AWSSupport_20130415.CreateCase",
27
27
  };
28
28
  let body;
29
- body = JSON.stringify(serializeAws_json1_1CreateCaseRequest(input, context));
29
+ body = JSON.stringify(se_CreateCaseRequest(input, context));
30
30
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
31
  };
32
- export const serializeAws_json1_1DescribeAttachmentCommand = async (input, context) => {
32
+ export const se_DescribeAttachmentCommand = async (input, context) => {
33
33
  const headers = {
34
34
  "content-type": "application/x-amz-json-1.1",
35
35
  "x-amz-target": "AWSSupport_20130415.DescribeAttachment",
36
36
  };
37
37
  let body;
38
- body = JSON.stringify(serializeAws_json1_1DescribeAttachmentRequest(input, context));
38
+ body = JSON.stringify(se_DescribeAttachmentRequest(input, context));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
- export const serializeAws_json1_1DescribeCasesCommand = async (input, context) => {
41
+ export const se_DescribeCasesCommand = async (input, context) => {
42
42
  const headers = {
43
43
  "content-type": "application/x-amz-json-1.1",
44
44
  "x-amz-target": "AWSSupport_20130415.DescribeCases",
45
45
  };
46
46
  let body;
47
- body = JSON.stringify(serializeAws_json1_1DescribeCasesRequest(input, context));
47
+ body = JSON.stringify(se_DescribeCasesRequest(input, context));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
- export const serializeAws_json1_1DescribeCommunicationsCommand = async (input, context) => {
50
+ export const se_DescribeCommunicationsCommand = async (input, context) => {
51
51
  const headers = {
52
52
  "content-type": "application/x-amz-json-1.1",
53
53
  "x-amz-target": "AWSSupport_20130415.DescribeCommunications",
54
54
  };
55
55
  let body;
56
- body = JSON.stringify(serializeAws_json1_1DescribeCommunicationsRequest(input, context));
56
+ body = JSON.stringify(se_DescribeCommunicationsRequest(input, context));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
- export const serializeAws_json1_1DescribeServicesCommand = async (input, context) => {
59
+ export const se_DescribeServicesCommand = async (input, context) => {
60
60
  const headers = {
61
61
  "content-type": "application/x-amz-json-1.1",
62
62
  "x-amz-target": "AWSSupport_20130415.DescribeServices",
63
63
  };
64
64
  let body;
65
- body = JSON.stringify(serializeAws_json1_1DescribeServicesRequest(input, context));
65
+ body = JSON.stringify(se_DescribeServicesRequest(input, context));
66
66
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
67
  };
68
- export const serializeAws_json1_1DescribeSeverityLevelsCommand = async (input, context) => {
68
+ export const se_DescribeSeverityLevelsCommand = async (input, context) => {
69
69
  const headers = {
70
70
  "content-type": "application/x-amz-json-1.1",
71
71
  "x-amz-target": "AWSSupport_20130415.DescribeSeverityLevels",
72
72
  };
73
73
  let body;
74
- body = JSON.stringify(serializeAws_json1_1DescribeSeverityLevelsRequest(input, context));
74
+ body = JSON.stringify(se_DescribeSeverityLevelsRequest(input, context));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
- export const serializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (input, context) => {
77
+ export const se_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (input, context) => {
78
78
  const headers = {
79
79
  "content-type": "application/x-amz-json-1.1",
80
80
  "x-amz-target": "AWSSupport_20130415.DescribeTrustedAdvisorCheckRefreshStatuses",
81
81
  };
82
82
  let body;
83
- body = JSON.stringify(serializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesRequest(input, context));
83
+ body = JSON.stringify(se_DescribeTrustedAdvisorCheckRefreshStatusesRequest(input, context));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
- export const serializeAws_json1_1DescribeTrustedAdvisorCheckResultCommand = async (input, context) => {
86
+ export const se_DescribeTrustedAdvisorCheckResultCommand = async (input, context) => {
87
87
  const headers = {
88
88
  "content-type": "application/x-amz-json-1.1",
89
89
  "x-amz-target": "AWSSupport_20130415.DescribeTrustedAdvisorCheckResult",
90
90
  };
91
91
  let body;
92
- body = JSON.stringify(serializeAws_json1_1DescribeTrustedAdvisorCheckResultRequest(input, context));
92
+ body = JSON.stringify(se_DescribeTrustedAdvisorCheckResultRequest(input, context));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
- export const serializeAws_json1_1DescribeTrustedAdvisorChecksCommand = async (input, context) => {
95
+ export const se_DescribeTrustedAdvisorChecksCommand = async (input, context) => {
96
96
  const headers = {
97
97
  "content-type": "application/x-amz-json-1.1",
98
98
  "x-amz-target": "AWSSupport_20130415.DescribeTrustedAdvisorChecks",
99
99
  };
100
100
  let body;
101
- body = JSON.stringify(serializeAws_json1_1DescribeTrustedAdvisorChecksRequest(input, context));
101
+ body = JSON.stringify(se_DescribeTrustedAdvisorChecksRequest(input, context));
102
102
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
103
  };
104
- export const serializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommand = async (input, context) => {
104
+ export const se_DescribeTrustedAdvisorCheckSummariesCommand = async (input, context) => {
105
105
  const headers = {
106
106
  "content-type": "application/x-amz-json-1.1",
107
107
  "x-amz-target": "AWSSupport_20130415.DescribeTrustedAdvisorCheckSummaries",
108
108
  };
109
109
  let body;
110
- body = JSON.stringify(serializeAws_json1_1DescribeTrustedAdvisorCheckSummariesRequest(input, context));
110
+ body = JSON.stringify(se_DescribeTrustedAdvisorCheckSummariesRequest(input, context));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
- export const serializeAws_json1_1RefreshTrustedAdvisorCheckCommand = async (input, context) => {
113
+ export const se_RefreshTrustedAdvisorCheckCommand = async (input, context) => {
114
114
  const headers = {
115
115
  "content-type": "application/x-amz-json-1.1",
116
116
  "x-amz-target": "AWSSupport_20130415.RefreshTrustedAdvisorCheck",
117
117
  };
118
118
  let body;
119
- body = JSON.stringify(serializeAws_json1_1RefreshTrustedAdvisorCheckRequest(input, context));
119
+ body = JSON.stringify(se_RefreshTrustedAdvisorCheckRequest(input, context));
120
120
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
121
  };
122
- export const serializeAws_json1_1ResolveCaseCommand = async (input, context) => {
122
+ export const se_ResolveCaseCommand = async (input, context) => {
123
123
  const headers = {
124
124
  "content-type": "application/x-amz-json-1.1",
125
125
  "x-amz-target": "AWSSupport_20130415.ResolveCase",
126
126
  };
127
127
  let body;
128
- body = JSON.stringify(serializeAws_json1_1ResolveCaseRequest(input, context));
128
+ body = JSON.stringify(se_ResolveCaseRequest(input, context));
129
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
130
  };
131
- export const deserializeAws_json1_1AddAttachmentsToSetCommand = async (output, context) => {
131
+ export const de_AddAttachmentsToSetCommand = async (output, context) => {
132
132
  if (output.statusCode >= 300) {
133
- return deserializeAws_json1_1AddAttachmentsToSetCommandError(output, context);
133
+ return de_AddAttachmentsToSetCommandError(output, context);
134
134
  }
135
135
  const data = await parseBody(output.body, context);
136
136
  let contents = {};
137
- contents = deserializeAws_json1_1AddAttachmentsToSetResponse(data, context);
137
+ contents = de_AddAttachmentsToSetResponse(data, context);
138
138
  const response = {
139
139
  $metadata: deserializeMetadata(output),
140
140
  ...contents,
141
141
  };
142
142
  return Promise.resolve(response);
143
143
  };
144
- const deserializeAws_json1_1AddAttachmentsToSetCommandError = async (output, context) => {
144
+ const de_AddAttachmentsToSetCommandError = async (output, context) => {
145
145
  const parsedOutput = {
146
146
  ...output,
147
147
  body: await parseErrorBody(output.body, context),
@@ -150,19 +150,19 @@ const deserializeAws_json1_1AddAttachmentsToSetCommandError = async (output, con
150
150
  switch (errorCode) {
151
151
  case "AttachmentLimitExceeded":
152
152
  case "com.amazonaws.support#AttachmentLimitExceeded":
153
- throw await deserializeAws_json1_1AttachmentLimitExceededResponse(parsedOutput, context);
153
+ throw await de_AttachmentLimitExceededRes(parsedOutput, context);
154
154
  case "AttachmentSetExpired":
155
155
  case "com.amazonaws.support#AttachmentSetExpired":
156
- throw await deserializeAws_json1_1AttachmentSetExpiredResponse(parsedOutput, context);
156
+ throw await de_AttachmentSetExpiredRes(parsedOutput, context);
157
157
  case "AttachmentSetIdNotFound":
158
158
  case "com.amazonaws.support#AttachmentSetIdNotFound":
159
- throw await deserializeAws_json1_1AttachmentSetIdNotFoundResponse(parsedOutput, context);
159
+ throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
160
160
  case "AttachmentSetSizeLimitExceeded":
161
161
  case "com.amazonaws.support#AttachmentSetSizeLimitExceeded":
162
- throw await deserializeAws_json1_1AttachmentSetSizeLimitExceededResponse(parsedOutput, context);
162
+ throw await de_AttachmentSetSizeLimitExceededRes(parsedOutput, context);
163
163
  case "InternalServerError":
164
164
  case "com.amazonaws.support#InternalServerError":
165
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
165
+ throw await de_InternalServerErrorRes(parsedOutput, context);
166
166
  default:
167
167
  const parsedBody = parsedOutput.body;
168
168
  throwDefaultError({
@@ -173,20 +173,20 @@ const deserializeAws_json1_1AddAttachmentsToSetCommandError = async (output, con
173
173
  });
174
174
  }
175
175
  };
176
- export const deserializeAws_json1_1AddCommunicationToCaseCommand = async (output, context) => {
176
+ export const de_AddCommunicationToCaseCommand = async (output, context) => {
177
177
  if (output.statusCode >= 300) {
178
- return deserializeAws_json1_1AddCommunicationToCaseCommandError(output, context);
178
+ return de_AddCommunicationToCaseCommandError(output, context);
179
179
  }
180
180
  const data = await parseBody(output.body, context);
181
181
  let contents = {};
182
- contents = deserializeAws_json1_1AddCommunicationToCaseResponse(data, context);
182
+ contents = de_AddCommunicationToCaseResponse(data, context);
183
183
  const response = {
184
184
  $metadata: deserializeMetadata(output),
185
185
  ...contents,
186
186
  };
187
187
  return Promise.resolve(response);
188
188
  };
189
- const deserializeAws_json1_1AddCommunicationToCaseCommandError = async (output, context) => {
189
+ const de_AddCommunicationToCaseCommandError = async (output, context) => {
190
190
  const parsedOutput = {
191
191
  ...output,
192
192
  body: await parseErrorBody(output.body, context),
@@ -195,16 +195,16 @@ const deserializeAws_json1_1AddCommunicationToCaseCommandError = async (output,
195
195
  switch (errorCode) {
196
196
  case "AttachmentSetExpired":
197
197
  case "com.amazonaws.support#AttachmentSetExpired":
198
- throw await deserializeAws_json1_1AttachmentSetExpiredResponse(parsedOutput, context);
198
+ throw await de_AttachmentSetExpiredRes(parsedOutput, context);
199
199
  case "AttachmentSetIdNotFound":
200
200
  case "com.amazonaws.support#AttachmentSetIdNotFound":
201
- throw await deserializeAws_json1_1AttachmentSetIdNotFoundResponse(parsedOutput, context);
201
+ throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
202
202
  case "CaseIdNotFound":
203
203
  case "com.amazonaws.support#CaseIdNotFound":
204
- throw await deserializeAws_json1_1CaseIdNotFoundResponse(parsedOutput, context);
204
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
205
205
  case "InternalServerError":
206
206
  case "com.amazonaws.support#InternalServerError":
207
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
207
+ throw await de_InternalServerErrorRes(parsedOutput, context);
208
208
  default:
209
209
  const parsedBody = parsedOutput.body;
210
210
  throwDefaultError({
@@ -215,20 +215,20 @@ const deserializeAws_json1_1AddCommunicationToCaseCommandError = async (output,
215
215
  });
216
216
  }
217
217
  };
218
- export const deserializeAws_json1_1CreateCaseCommand = async (output, context) => {
218
+ export const de_CreateCaseCommand = async (output, context) => {
219
219
  if (output.statusCode >= 300) {
220
- return deserializeAws_json1_1CreateCaseCommandError(output, context);
220
+ return de_CreateCaseCommandError(output, context);
221
221
  }
222
222
  const data = await parseBody(output.body, context);
223
223
  let contents = {};
224
- contents = deserializeAws_json1_1CreateCaseResponse(data, context);
224
+ contents = de_CreateCaseResponse(data, context);
225
225
  const response = {
226
226
  $metadata: deserializeMetadata(output),
227
227
  ...contents,
228
228
  };
229
229
  return Promise.resolve(response);
230
230
  };
231
- const deserializeAws_json1_1CreateCaseCommandError = async (output, context) => {
231
+ const de_CreateCaseCommandError = async (output, context) => {
232
232
  const parsedOutput = {
233
233
  ...output,
234
234
  body: await parseErrorBody(output.body, context),
@@ -237,16 +237,16 @@ const deserializeAws_json1_1CreateCaseCommandError = async (output, context) =>
237
237
  switch (errorCode) {
238
238
  case "AttachmentSetExpired":
239
239
  case "com.amazonaws.support#AttachmentSetExpired":
240
- throw await deserializeAws_json1_1AttachmentSetExpiredResponse(parsedOutput, context);
240
+ throw await de_AttachmentSetExpiredRes(parsedOutput, context);
241
241
  case "AttachmentSetIdNotFound":
242
242
  case "com.amazonaws.support#AttachmentSetIdNotFound":
243
- throw await deserializeAws_json1_1AttachmentSetIdNotFoundResponse(parsedOutput, context);
243
+ throw await de_AttachmentSetIdNotFoundRes(parsedOutput, context);
244
244
  case "CaseCreationLimitExceeded":
245
245
  case "com.amazonaws.support#CaseCreationLimitExceeded":
246
- throw await deserializeAws_json1_1CaseCreationLimitExceededResponse(parsedOutput, context);
246
+ throw await de_CaseCreationLimitExceededRes(parsedOutput, context);
247
247
  case "InternalServerError":
248
248
  case "com.amazonaws.support#InternalServerError":
249
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
249
+ throw await de_InternalServerErrorRes(parsedOutput, context);
250
250
  default:
251
251
  const parsedBody = parsedOutput.body;
252
252
  throwDefaultError({
@@ -257,20 +257,20 @@ const deserializeAws_json1_1CreateCaseCommandError = async (output, context) =>
257
257
  });
258
258
  }
259
259
  };
260
- export const deserializeAws_json1_1DescribeAttachmentCommand = async (output, context) => {
260
+ export const de_DescribeAttachmentCommand = async (output, context) => {
261
261
  if (output.statusCode >= 300) {
262
- return deserializeAws_json1_1DescribeAttachmentCommandError(output, context);
262
+ return de_DescribeAttachmentCommandError(output, context);
263
263
  }
264
264
  const data = await parseBody(output.body, context);
265
265
  let contents = {};
266
- contents = deserializeAws_json1_1DescribeAttachmentResponse(data, context);
266
+ contents = de_DescribeAttachmentResponse(data, context);
267
267
  const response = {
268
268
  $metadata: deserializeMetadata(output),
269
269
  ...contents,
270
270
  };
271
271
  return Promise.resolve(response);
272
272
  };
273
- const deserializeAws_json1_1DescribeAttachmentCommandError = async (output, context) => {
273
+ const de_DescribeAttachmentCommandError = async (output, context) => {
274
274
  const parsedOutput = {
275
275
  ...output,
276
276
  body: await parseErrorBody(output.body, context),
@@ -279,13 +279,13 @@ const deserializeAws_json1_1DescribeAttachmentCommandError = async (output, cont
279
279
  switch (errorCode) {
280
280
  case "AttachmentIdNotFound":
281
281
  case "com.amazonaws.support#AttachmentIdNotFound":
282
- throw await deserializeAws_json1_1AttachmentIdNotFoundResponse(parsedOutput, context);
282
+ throw await de_AttachmentIdNotFoundRes(parsedOutput, context);
283
283
  case "DescribeAttachmentLimitExceeded":
284
284
  case "com.amazonaws.support#DescribeAttachmentLimitExceeded":
285
- throw await deserializeAws_json1_1DescribeAttachmentLimitExceededResponse(parsedOutput, context);
285
+ throw await de_DescribeAttachmentLimitExceededRes(parsedOutput, context);
286
286
  case "InternalServerError":
287
287
  case "com.amazonaws.support#InternalServerError":
288
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
288
+ throw await de_InternalServerErrorRes(parsedOutput, context);
289
289
  default:
290
290
  const parsedBody = parsedOutput.body;
291
291
  throwDefaultError({
@@ -296,20 +296,20 @@ const deserializeAws_json1_1DescribeAttachmentCommandError = async (output, cont
296
296
  });
297
297
  }
298
298
  };
299
- export const deserializeAws_json1_1DescribeCasesCommand = async (output, context) => {
299
+ export const de_DescribeCasesCommand = async (output, context) => {
300
300
  if (output.statusCode >= 300) {
301
- return deserializeAws_json1_1DescribeCasesCommandError(output, context);
301
+ return de_DescribeCasesCommandError(output, context);
302
302
  }
303
303
  const data = await parseBody(output.body, context);
304
304
  let contents = {};
305
- contents = deserializeAws_json1_1DescribeCasesResponse(data, context);
305
+ contents = de_DescribeCasesResponse(data, context);
306
306
  const response = {
307
307
  $metadata: deserializeMetadata(output),
308
308
  ...contents,
309
309
  };
310
310
  return Promise.resolve(response);
311
311
  };
312
- const deserializeAws_json1_1DescribeCasesCommandError = async (output, context) => {
312
+ const de_DescribeCasesCommandError = async (output, context) => {
313
313
  const parsedOutput = {
314
314
  ...output,
315
315
  body: await parseErrorBody(output.body, context),
@@ -318,10 +318,10 @@ const deserializeAws_json1_1DescribeCasesCommandError = async (output, context)
318
318
  switch (errorCode) {
319
319
  case "CaseIdNotFound":
320
320
  case "com.amazonaws.support#CaseIdNotFound":
321
- throw await deserializeAws_json1_1CaseIdNotFoundResponse(parsedOutput, context);
321
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
322
322
  case "InternalServerError":
323
323
  case "com.amazonaws.support#InternalServerError":
324
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
324
+ throw await de_InternalServerErrorRes(parsedOutput, context);
325
325
  default:
326
326
  const parsedBody = parsedOutput.body;
327
327
  throwDefaultError({
@@ -332,20 +332,20 @@ const deserializeAws_json1_1DescribeCasesCommandError = async (output, context)
332
332
  });
333
333
  }
334
334
  };
335
- export const deserializeAws_json1_1DescribeCommunicationsCommand = async (output, context) => {
335
+ export const de_DescribeCommunicationsCommand = async (output, context) => {
336
336
  if (output.statusCode >= 300) {
337
- return deserializeAws_json1_1DescribeCommunicationsCommandError(output, context);
337
+ return de_DescribeCommunicationsCommandError(output, context);
338
338
  }
339
339
  const data = await parseBody(output.body, context);
340
340
  let contents = {};
341
- contents = deserializeAws_json1_1DescribeCommunicationsResponse(data, context);
341
+ contents = de_DescribeCommunicationsResponse(data, context);
342
342
  const response = {
343
343
  $metadata: deserializeMetadata(output),
344
344
  ...contents,
345
345
  };
346
346
  return Promise.resolve(response);
347
347
  };
348
- const deserializeAws_json1_1DescribeCommunicationsCommandError = async (output, context) => {
348
+ const de_DescribeCommunicationsCommandError = async (output, context) => {
349
349
  const parsedOutput = {
350
350
  ...output,
351
351
  body: await parseErrorBody(output.body, context),
@@ -354,10 +354,10 @@ const deserializeAws_json1_1DescribeCommunicationsCommandError = async (output,
354
354
  switch (errorCode) {
355
355
  case "CaseIdNotFound":
356
356
  case "com.amazonaws.support#CaseIdNotFound":
357
- throw await deserializeAws_json1_1CaseIdNotFoundResponse(parsedOutput, context);
357
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
358
358
  case "InternalServerError":
359
359
  case "com.amazonaws.support#InternalServerError":
360
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
360
+ throw await de_InternalServerErrorRes(parsedOutput, context);
361
361
  default:
362
362
  const parsedBody = parsedOutput.body;
363
363
  throwDefaultError({
@@ -368,20 +368,20 @@ const deserializeAws_json1_1DescribeCommunicationsCommandError = async (output,
368
368
  });
369
369
  }
370
370
  };
371
- export const deserializeAws_json1_1DescribeServicesCommand = async (output, context) => {
371
+ export const de_DescribeServicesCommand = async (output, context) => {
372
372
  if (output.statusCode >= 300) {
373
- return deserializeAws_json1_1DescribeServicesCommandError(output, context);
373
+ return de_DescribeServicesCommandError(output, context);
374
374
  }
375
375
  const data = await parseBody(output.body, context);
376
376
  let contents = {};
377
- contents = deserializeAws_json1_1DescribeServicesResponse(data, context);
377
+ contents = de_DescribeServicesResponse(data, context);
378
378
  const response = {
379
379
  $metadata: deserializeMetadata(output),
380
380
  ...contents,
381
381
  };
382
382
  return Promise.resolve(response);
383
383
  };
384
- const deserializeAws_json1_1DescribeServicesCommandError = async (output, context) => {
384
+ const de_DescribeServicesCommandError = async (output, context) => {
385
385
  const parsedOutput = {
386
386
  ...output,
387
387
  body: await parseErrorBody(output.body, context),
@@ -390,7 +390,7 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
390
390
  switch (errorCode) {
391
391
  case "InternalServerError":
392
392
  case "com.amazonaws.support#InternalServerError":
393
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
393
+ throw await de_InternalServerErrorRes(parsedOutput, context);
394
394
  default:
395
395
  const parsedBody = parsedOutput.body;
396
396
  throwDefaultError({
@@ -401,20 +401,20 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
401
401
  });
402
402
  }
403
403
  };
404
- export const deserializeAws_json1_1DescribeSeverityLevelsCommand = async (output, context) => {
404
+ export const de_DescribeSeverityLevelsCommand = async (output, context) => {
405
405
  if (output.statusCode >= 300) {
406
- return deserializeAws_json1_1DescribeSeverityLevelsCommandError(output, context);
406
+ return de_DescribeSeverityLevelsCommandError(output, context);
407
407
  }
408
408
  const data = await parseBody(output.body, context);
409
409
  let contents = {};
410
- contents = deserializeAws_json1_1DescribeSeverityLevelsResponse(data, context);
410
+ contents = de_DescribeSeverityLevelsResponse(data, context);
411
411
  const response = {
412
412
  $metadata: deserializeMetadata(output),
413
413
  ...contents,
414
414
  };
415
415
  return Promise.resolve(response);
416
416
  };
417
- const deserializeAws_json1_1DescribeSeverityLevelsCommandError = async (output, context) => {
417
+ const de_DescribeSeverityLevelsCommandError = async (output, context) => {
418
418
  const parsedOutput = {
419
419
  ...output,
420
420
  body: await parseErrorBody(output.body, context),
@@ -423,7 +423,7 @@ const deserializeAws_json1_1DescribeSeverityLevelsCommandError = async (output,
423
423
  switch (errorCode) {
424
424
  case "InternalServerError":
425
425
  case "com.amazonaws.support#InternalServerError":
426
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
426
+ throw await de_InternalServerErrorRes(parsedOutput, context);
427
427
  default:
428
428
  const parsedBody = parsedOutput.body;
429
429
  throwDefaultError({
@@ -434,20 +434,20 @@ const deserializeAws_json1_1DescribeSeverityLevelsCommandError = async (output,
434
434
  });
435
435
  }
436
436
  };
437
- export const deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (output, context) => {
437
+ export const de_DescribeTrustedAdvisorCheckRefreshStatusesCommand = async (output, context) => {
438
438
  if (output.statusCode >= 300) {
439
- return deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommandError(output, context);
439
+ return de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError(output, context);
440
440
  }
441
441
  const data = await parseBody(output.body, context);
442
442
  let contents = {};
443
- contents = deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesResponse(data, context);
443
+ contents = de_DescribeTrustedAdvisorCheckRefreshStatusesResponse(data, context);
444
444
  const response = {
445
445
  $metadata: deserializeMetadata(output),
446
446
  ...contents,
447
447
  };
448
448
  return Promise.resolve(response);
449
449
  };
450
- const deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommandError = async (output, context) => {
450
+ const de_DescribeTrustedAdvisorCheckRefreshStatusesCommandError = async (output, context) => {
451
451
  const parsedOutput = {
452
452
  ...output,
453
453
  body: await parseErrorBody(output.body, context),
@@ -456,7 +456,7 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommandErr
456
456
  switch (errorCode) {
457
457
  case "InternalServerError":
458
458
  case "com.amazonaws.support#InternalServerError":
459
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
459
+ throw await de_InternalServerErrorRes(parsedOutput, context);
460
460
  default:
461
461
  const parsedBody = parsedOutput.body;
462
462
  throwDefaultError({
@@ -467,20 +467,20 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesCommandErr
467
467
  });
468
468
  }
469
469
  };
470
- export const deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommand = async (output, context) => {
470
+ export const de_DescribeTrustedAdvisorCheckResultCommand = async (output, context) => {
471
471
  if (output.statusCode >= 300) {
472
- return deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommandError(output, context);
472
+ return de_DescribeTrustedAdvisorCheckResultCommandError(output, context);
473
473
  }
474
474
  const data = await parseBody(output.body, context);
475
475
  let contents = {};
476
- contents = deserializeAws_json1_1DescribeTrustedAdvisorCheckResultResponse(data, context);
476
+ contents = de_DescribeTrustedAdvisorCheckResultResponse(data, context);
477
477
  const response = {
478
478
  $metadata: deserializeMetadata(output),
479
479
  ...contents,
480
480
  };
481
481
  return Promise.resolve(response);
482
482
  };
483
- const deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommandError = async (output, context) => {
483
+ const de_DescribeTrustedAdvisorCheckResultCommandError = async (output, context) => {
484
484
  const parsedOutput = {
485
485
  ...output,
486
486
  body: await parseErrorBody(output.body, context),
@@ -489,7 +489,7 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommandError = asyn
489
489
  switch (errorCode) {
490
490
  case "InternalServerError":
491
491
  case "com.amazonaws.support#InternalServerError":
492
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
492
+ throw await de_InternalServerErrorRes(parsedOutput, context);
493
493
  default:
494
494
  const parsedBody = parsedOutput.body;
495
495
  throwDefaultError({
@@ -500,20 +500,20 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckResultCommandError = asyn
500
500
  });
501
501
  }
502
502
  };
503
- export const deserializeAws_json1_1DescribeTrustedAdvisorChecksCommand = async (output, context) => {
503
+ export const de_DescribeTrustedAdvisorChecksCommand = async (output, context) => {
504
504
  if (output.statusCode >= 300) {
505
- return deserializeAws_json1_1DescribeTrustedAdvisorChecksCommandError(output, context);
505
+ return de_DescribeTrustedAdvisorChecksCommandError(output, context);
506
506
  }
507
507
  const data = await parseBody(output.body, context);
508
508
  let contents = {};
509
- contents = deserializeAws_json1_1DescribeTrustedAdvisorChecksResponse(data, context);
509
+ contents = de_DescribeTrustedAdvisorChecksResponse(data, context);
510
510
  const response = {
511
511
  $metadata: deserializeMetadata(output),
512
512
  ...contents,
513
513
  };
514
514
  return Promise.resolve(response);
515
515
  };
516
- const deserializeAws_json1_1DescribeTrustedAdvisorChecksCommandError = async (output, context) => {
516
+ const de_DescribeTrustedAdvisorChecksCommandError = async (output, context) => {
517
517
  const parsedOutput = {
518
518
  ...output,
519
519
  body: await parseErrorBody(output.body, context),
@@ -522,7 +522,7 @@ const deserializeAws_json1_1DescribeTrustedAdvisorChecksCommandError = async (ou
522
522
  switch (errorCode) {
523
523
  case "InternalServerError":
524
524
  case "com.amazonaws.support#InternalServerError":
525
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
525
+ throw await de_InternalServerErrorRes(parsedOutput, context);
526
526
  default:
527
527
  const parsedBody = parsedOutput.body;
528
528
  throwDefaultError({
@@ -533,20 +533,20 @@ const deserializeAws_json1_1DescribeTrustedAdvisorChecksCommandError = async (ou
533
533
  });
534
534
  }
535
535
  };
536
- export const deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommand = async (output, context) => {
536
+ export const de_DescribeTrustedAdvisorCheckSummariesCommand = async (output, context) => {
537
537
  if (output.statusCode >= 300) {
538
- return deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommandError(output, context);
538
+ return de_DescribeTrustedAdvisorCheckSummariesCommandError(output, context);
539
539
  }
540
540
  const data = await parseBody(output.body, context);
541
541
  let contents = {};
542
- contents = deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesResponse(data, context);
542
+ contents = de_DescribeTrustedAdvisorCheckSummariesResponse(data, context);
543
543
  const response = {
544
544
  $metadata: deserializeMetadata(output),
545
545
  ...contents,
546
546
  };
547
547
  return Promise.resolve(response);
548
548
  };
549
- const deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommandError = async (output, context) => {
549
+ const de_DescribeTrustedAdvisorCheckSummariesCommandError = async (output, context) => {
550
550
  const parsedOutput = {
551
551
  ...output,
552
552
  body: await parseErrorBody(output.body, context),
@@ -555,7 +555,7 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommandError = a
555
555
  switch (errorCode) {
556
556
  case "InternalServerError":
557
557
  case "com.amazonaws.support#InternalServerError":
558
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
558
+ throw await de_InternalServerErrorRes(parsedOutput, context);
559
559
  default:
560
560
  const parsedBody = parsedOutput.body;
561
561
  throwDefaultError({
@@ -566,20 +566,20 @@ const deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesCommandError = a
566
566
  });
567
567
  }
568
568
  };
569
- export const deserializeAws_json1_1RefreshTrustedAdvisorCheckCommand = async (output, context) => {
569
+ export const de_RefreshTrustedAdvisorCheckCommand = async (output, context) => {
570
570
  if (output.statusCode >= 300) {
571
- return deserializeAws_json1_1RefreshTrustedAdvisorCheckCommandError(output, context);
571
+ return de_RefreshTrustedAdvisorCheckCommandError(output, context);
572
572
  }
573
573
  const data = await parseBody(output.body, context);
574
574
  let contents = {};
575
- contents = deserializeAws_json1_1RefreshTrustedAdvisorCheckResponse(data, context);
575
+ contents = de_RefreshTrustedAdvisorCheckResponse(data, context);
576
576
  const response = {
577
577
  $metadata: deserializeMetadata(output),
578
578
  ...contents,
579
579
  };
580
580
  return Promise.resolve(response);
581
581
  };
582
- const deserializeAws_json1_1RefreshTrustedAdvisorCheckCommandError = async (output, context) => {
582
+ const de_RefreshTrustedAdvisorCheckCommandError = async (output, context) => {
583
583
  const parsedOutput = {
584
584
  ...output,
585
585
  body: await parseErrorBody(output.body, context),
@@ -588,7 +588,7 @@ const deserializeAws_json1_1RefreshTrustedAdvisorCheckCommandError = async (outp
588
588
  switch (errorCode) {
589
589
  case "InternalServerError":
590
590
  case "com.amazonaws.support#InternalServerError":
591
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
591
+ throw await de_InternalServerErrorRes(parsedOutput, context);
592
592
  default:
593
593
  const parsedBody = parsedOutput.body;
594
594
  throwDefaultError({
@@ -599,20 +599,20 @@ const deserializeAws_json1_1RefreshTrustedAdvisorCheckCommandError = async (outp
599
599
  });
600
600
  }
601
601
  };
602
- export const deserializeAws_json1_1ResolveCaseCommand = async (output, context) => {
602
+ export const de_ResolveCaseCommand = async (output, context) => {
603
603
  if (output.statusCode >= 300) {
604
- return deserializeAws_json1_1ResolveCaseCommandError(output, context);
604
+ return de_ResolveCaseCommandError(output, context);
605
605
  }
606
606
  const data = await parseBody(output.body, context);
607
607
  let contents = {};
608
- contents = deserializeAws_json1_1ResolveCaseResponse(data, context);
608
+ contents = de_ResolveCaseResponse(data, context);
609
609
  const response = {
610
610
  $metadata: deserializeMetadata(output),
611
611
  ...contents,
612
612
  };
613
613
  return Promise.resolve(response);
614
614
  };
615
- const deserializeAws_json1_1ResolveCaseCommandError = async (output, context) => {
615
+ const de_ResolveCaseCommandError = async (output, context) => {
616
616
  const parsedOutput = {
617
617
  ...output,
618
618
  body: await parseErrorBody(output.body, context),
@@ -621,10 +621,10 @@ const deserializeAws_json1_1ResolveCaseCommandError = async (output, context) =>
621
621
  switch (errorCode) {
622
622
  case "CaseIdNotFound":
623
623
  case "com.amazonaws.support#CaseIdNotFound":
624
- throw await deserializeAws_json1_1CaseIdNotFoundResponse(parsedOutput, context);
624
+ throw await de_CaseIdNotFoundRes(parsedOutput, context);
625
625
  case "InternalServerError":
626
626
  case "com.amazonaws.support#InternalServerError":
627
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
627
+ throw await de_InternalServerErrorRes(parsedOutput, context);
628
628
  default:
629
629
  const parsedBody = parsedOutput.body;
630
630
  throwDefaultError({
@@ -635,137 +635,133 @@ const deserializeAws_json1_1ResolveCaseCommandError = async (output, context) =>
635
635
  });
636
636
  }
637
637
  };
638
- const deserializeAws_json1_1AttachmentIdNotFoundResponse = async (parsedOutput, context) => {
638
+ const de_AttachmentIdNotFoundRes = async (parsedOutput, context) => {
639
639
  const body = parsedOutput.body;
640
- const deserialized = deserializeAws_json1_1AttachmentIdNotFound(body, context);
640
+ const deserialized = de_AttachmentIdNotFound(body, context);
641
641
  const exception = new AttachmentIdNotFound({
642
642
  $metadata: deserializeMetadata(parsedOutput),
643
643
  ...deserialized,
644
644
  });
645
645
  return __decorateServiceException(exception, body);
646
646
  };
647
- const deserializeAws_json1_1AttachmentLimitExceededResponse = async (parsedOutput, context) => {
647
+ const de_AttachmentLimitExceededRes = async (parsedOutput, context) => {
648
648
  const body = parsedOutput.body;
649
- const deserialized = deserializeAws_json1_1AttachmentLimitExceeded(body, context);
649
+ const deserialized = de_AttachmentLimitExceeded(body, context);
650
650
  const exception = new AttachmentLimitExceeded({
651
651
  $metadata: deserializeMetadata(parsedOutput),
652
652
  ...deserialized,
653
653
  });
654
654
  return __decorateServiceException(exception, body);
655
655
  };
656
- const deserializeAws_json1_1AttachmentSetExpiredResponse = async (parsedOutput, context) => {
656
+ const de_AttachmentSetExpiredRes = async (parsedOutput, context) => {
657
657
  const body = parsedOutput.body;
658
- const deserialized = deserializeAws_json1_1AttachmentSetExpired(body, context);
658
+ const deserialized = de_AttachmentSetExpired(body, context);
659
659
  const exception = new AttachmentSetExpired({
660
660
  $metadata: deserializeMetadata(parsedOutput),
661
661
  ...deserialized,
662
662
  });
663
663
  return __decorateServiceException(exception, body);
664
664
  };
665
- const deserializeAws_json1_1AttachmentSetIdNotFoundResponse = async (parsedOutput, context) => {
665
+ const de_AttachmentSetIdNotFoundRes = async (parsedOutput, context) => {
666
666
  const body = parsedOutput.body;
667
- const deserialized = deserializeAws_json1_1AttachmentSetIdNotFound(body, context);
667
+ const deserialized = de_AttachmentSetIdNotFound(body, context);
668
668
  const exception = new AttachmentSetIdNotFound({
669
669
  $metadata: deserializeMetadata(parsedOutput),
670
670
  ...deserialized,
671
671
  });
672
672
  return __decorateServiceException(exception, body);
673
673
  };
674
- const deserializeAws_json1_1AttachmentSetSizeLimitExceededResponse = async (parsedOutput, context) => {
674
+ const de_AttachmentSetSizeLimitExceededRes = async (parsedOutput, context) => {
675
675
  const body = parsedOutput.body;
676
- const deserialized = deserializeAws_json1_1AttachmentSetSizeLimitExceeded(body, context);
676
+ const deserialized = de_AttachmentSetSizeLimitExceeded(body, context);
677
677
  const exception = new AttachmentSetSizeLimitExceeded({
678
678
  $metadata: deserializeMetadata(parsedOutput),
679
679
  ...deserialized,
680
680
  });
681
681
  return __decorateServiceException(exception, body);
682
682
  };
683
- const deserializeAws_json1_1CaseCreationLimitExceededResponse = async (parsedOutput, context) => {
683
+ const de_CaseCreationLimitExceededRes = async (parsedOutput, context) => {
684
684
  const body = parsedOutput.body;
685
- const deserialized = deserializeAws_json1_1CaseCreationLimitExceeded(body, context);
685
+ const deserialized = de_CaseCreationLimitExceeded(body, context);
686
686
  const exception = new CaseCreationLimitExceeded({
687
687
  $metadata: deserializeMetadata(parsedOutput),
688
688
  ...deserialized,
689
689
  });
690
690
  return __decorateServiceException(exception, body);
691
691
  };
692
- const deserializeAws_json1_1CaseIdNotFoundResponse = async (parsedOutput, context) => {
692
+ const de_CaseIdNotFoundRes = async (parsedOutput, context) => {
693
693
  const body = parsedOutput.body;
694
- const deserialized = deserializeAws_json1_1CaseIdNotFound(body, context);
694
+ const deserialized = de_CaseIdNotFound(body, context);
695
695
  const exception = new CaseIdNotFound({
696
696
  $metadata: deserializeMetadata(parsedOutput),
697
697
  ...deserialized,
698
698
  });
699
699
  return __decorateServiceException(exception, body);
700
700
  };
701
- const deserializeAws_json1_1DescribeAttachmentLimitExceededResponse = async (parsedOutput, context) => {
701
+ const de_DescribeAttachmentLimitExceededRes = async (parsedOutput, context) => {
702
702
  const body = parsedOutput.body;
703
- const deserialized = deserializeAws_json1_1DescribeAttachmentLimitExceeded(body, context);
703
+ const deserialized = de_DescribeAttachmentLimitExceeded(body, context);
704
704
  const exception = new DescribeAttachmentLimitExceeded({
705
705
  $metadata: deserializeMetadata(parsedOutput),
706
706
  ...deserialized,
707
707
  });
708
708
  return __decorateServiceException(exception, body);
709
709
  };
710
- const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
710
+ const de_InternalServerErrorRes = async (parsedOutput, context) => {
711
711
  const body = parsedOutput.body;
712
- const deserialized = deserializeAws_json1_1InternalServerError(body, context);
712
+ const deserialized = de_InternalServerError(body, context);
713
713
  const exception = new InternalServerError({
714
714
  $metadata: deserializeMetadata(parsedOutput),
715
715
  ...deserialized,
716
716
  });
717
717
  return __decorateServiceException(exception, body);
718
718
  };
719
- const serializeAws_json1_1AddAttachmentsToSetRequest = (input, context) => {
719
+ const se_AddAttachmentsToSetRequest = (input, context) => {
720
720
  return {
721
721
  ...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
722
- ...(input.attachments != null && { attachments: serializeAws_json1_1Attachments(input.attachments, context) }),
722
+ ...(input.attachments != null && { attachments: se_Attachments(input.attachments, context) }),
723
723
  };
724
724
  };
725
- const serializeAws_json1_1AddCommunicationToCaseRequest = (input, context) => {
725
+ const se_AddCommunicationToCaseRequest = (input, context) => {
726
726
  return {
727
727
  ...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
728
728
  ...(input.caseId != null && { caseId: input.caseId }),
729
- ...(input.ccEmailAddresses != null && {
730
- ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
731
- }),
729
+ ...(input.ccEmailAddresses != null && { ccEmailAddresses: se_CcEmailAddressList(input.ccEmailAddresses, context) }),
732
730
  ...(input.communicationBody != null && { communicationBody: input.communicationBody }),
733
731
  };
734
732
  };
735
- const serializeAws_json1_1Attachment = (input, context) => {
733
+ const se_Attachment = (input, context) => {
736
734
  return {
737
735
  ...(input.data != null && { data: context.base64Encoder(input.data) }),
738
736
  ...(input.fileName != null && { fileName: input.fileName }),
739
737
  };
740
738
  };
741
- const serializeAws_json1_1Attachments = (input, context) => {
739
+ const se_Attachments = (input, context) => {
742
740
  return input
743
741
  .filter((e) => e != null)
744
742
  .map((entry) => {
745
- return serializeAws_json1_1Attachment(entry, context);
743
+ return se_Attachment(entry, context);
746
744
  });
747
745
  };
748
- const serializeAws_json1_1CaseIdList = (input, context) => {
746
+ const se_CaseIdList = (input, context) => {
749
747
  return input
750
748
  .filter((e) => e != null)
751
749
  .map((entry) => {
752
750
  return entry;
753
751
  });
754
752
  };
755
- const serializeAws_json1_1CcEmailAddressList = (input, context) => {
753
+ const se_CcEmailAddressList = (input, context) => {
756
754
  return input
757
755
  .filter((e) => e != null)
758
756
  .map((entry) => {
759
757
  return entry;
760
758
  });
761
759
  };
762
- const serializeAws_json1_1CreateCaseRequest = (input, context) => {
760
+ const se_CreateCaseRequest = (input, context) => {
763
761
  return {
764
762
  ...(input.attachmentSetId != null && { attachmentSetId: input.attachmentSetId }),
765
763
  ...(input.categoryCode != null && { categoryCode: input.categoryCode }),
766
- ...(input.ccEmailAddresses != null && {
767
- ccEmailAddresses: serializeAws_json1_1CcEmailAddressList(input.ccEmailAddresses, context),
768
- }),
764
+ ...(input.ccEmailAddresses != null && { ccEmailAddresses: se_CcEmailAddressList(input.ccEmailAddresses, context) }),
769
765
  ...(input.communicationBody != null && { communicationBody: input.communicationBody }),
770
766
  ...(input.issueType != null && { issueType: input.issueType }),
771
767
  ...(input.language != null && { language: input.language }),
@@ -774,16 +770,16 @@ const serializeAws_json1_1CreateCaseRequest = (input, context) => {
774
770
  ...(input.subject != null && { subject: input.subject }),
775
771
  };
776
772
  };
777
- const serializeAws_json1_1DescribeAttachmentRequest = (input, context) => {
773
+ const se_DescribeAttachmentRequest = (input, context) => {
778
774
  return {
779
775
  ...(input.attachmentId != null && { attachmentId: input.attachmentId }),
780
776
  };
781
777
  };
782
- const serializeAws_json1_1DescribeCasesRequest = (input, context) => {
778
+ const se_DescribeCasesRequest = (input, context) => {
783
779
  return {
784
780
  ...(input.afterTime != null && { afterTime: input.afterTime }),
785
781
  ...(input.beforeTime != null && { beforeTime: input.beforeTime }),
786
- ...(input.caseIdList != null && { caseIdList: serializeAws_json1_1CaseIdList(input.caseIdList, context) }),
782
+ ...(input.caseIdList != null && { caseIdList: se_CaseIdList(input.caseIdList, context) }),
787
783
  ...(input.displayId != null && { displayId: input.displayId }),
788
784
  ...(input.includeCommunications != null && { includeCommunications: input.includeCommunications }),
789
785
  ...(input.includeResolvedCases != null && { includeResolvedCases: input.includeResolvedCases }),
@@ -792,7 +788,7 @@ const serializeAws_json1_1DescribeCasesRequest = (input, context) => {
792
788
  ...(input.nextToken != null && { nextToken: input.nextToken }),
793
789
  };
794
790
  };
795
- const serializeAws_json1_1DescribeCommunicationsRequest = (input, context) => {
791
+ const se_DescribeCommunicationsRequest = (input, context) => {
796
792
  return {
797
793
  ...(input.afterTime != null && { afterTime: input.afterTime }),
798
794
  ...(input.beforeTime != null && { beforeTime: input.beforeTime }),
@@ -801,58 +797,56 @@ const serializeAws_json1_1DescribeCommunicationsRequest = (input, context) => {
801
797
  ...(input.nextToken != null && { nextToken: input.nextToken }),
802
798
  };
803
799
  };
804
- const serializeAws_json1_1DescribeServicesRequest = (input, context) => {
800
+ const se_DescribeServicesRequest = (input, context) => {
805
801
  return {
806
802
  ...(input.language != null && { language: input.language }),
807
- ...(input.serviceCodeList != null && {
808
- serviceCodeList: serializeAws_json1_1ServiceCodeList(input.serviceCodeList, context),
809
- }),
803
+ ...(input.serviceCodeList != null && { serviceCodeList: se_ServiceCodeList(input.serviceCodeList, context) }),
810
804
  };
811
805
  };
812
- const serializeAws_json1_1DescribeSeverityLevelsRequest = (input, context) => {
806
+ const se_DescribeSeverityLevelsRequest = (input, context) => {
813
807
  return {
814
808
  ...(input.language != null && { language: input.language }),
815
809
  };
816
810
  };
817
- const serializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesRequest = (input, context) => {
811
+ const se_DescribeTrustedAdvisorCheckRefreshStatusesRequest = (input, context) => {
818
812
  return {
819
- ...(input.checkIds != null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }),
813
+ ...(input.checkIds != null && { checkIds: se_StringList(input.checkIds, context) }),
820
814
  };
821
815
  };
822
- const serializeAws_json1_1DescribeTrustedAdvisorCheckResultRequest = (input, context) => {
816
+ const se_DescribeTrustedAdvisorCheckResultRequest = (input, context) => {
823
817
  return {
824
818
  ...(input.checkId != null && { checkId: input.checkId }),
825
819
  ...(input.language != null && { language: input.language }),
826
820
  };
827
821
  };
828
- const serializeAws_json1_1DescribeTrustedAdvisorChecksRequest = (input, context) => {
822
+ const se_DescribeTrustedAdvisorChecksRequest = (input, context) => {
829
823
  return {
830
824
  ...(input.language != null && { language: input.language }),
831
825
  };
832
826
  };
833
- const serializeAws_json1_1DescribeTrustedAdvisorCheckSummariesRequest = (input, context) => {
827
+ const se_DescribeTrustedAdvisorCheckSummariesRequest = (input, context) => {
834
828
  return {
835
- ...(input.checkIds != null && { checkIds: serializeAws_json1_1StringList(input.checkIds, context) }),
829
+ ...(input.checkIds != null && { checkIds: se_StringList(input.checkIds, context) }),
836
830
  };
837
831
  };
838
- const serializeAws_json1_1RefreshTrustedAdvisorCheckRequest = (input, context) => {
832
+ const se_RefreshTrustedAdvisorCheckRequest = (input, context) => {
839
833
  return {
840
834
  ...(input.checkId != null && { checkId: input.checkId }),
841
835
  };
842
836
  };
843
- const serializeAws_json1_1ResolveCaseRequest = (input, context) => {
837
+ const se_ResolveCaseRequest = (input, context) => {
844
838
  return {
845
839
  ...(input.caseId != null && { caseId: input.caseId }),
846
840
  };
847
841
  };
848
- const serializeAws_json1_1ServiceCodeList = (input, context) => {
842
+ const se_ServiceCodeList = (input, context) => {
849
843
  return input
850
844
  .filter((e) => e != null)
851
845
  .map((entry) => {
852
846
  return entry;
853
847
  });
854
848
  };
855
- const serializeAws_json1_1StringList = (input, context) => {
849
+ const se_StringList = (input, context) => {
856
850
  return input.map((entry) => {
857
851
  if (entry === null) {
858
852
  return null;
@@ -860,81 +854,79 @@ const serializeAws_json1_1StringList = (input, context) => {
860
854
  return entry;
861
855
  });
862
856
  };
863
- const deserializeAws_json1_1AddAttachmentsToSetResponse = (output, context) => {
857
+ const de_AddAttachmentsToSetResponse = (output, context) => {
864
858
  return {
865
859
  attachmentSetId: __expectString(output.attachmentSetId),
866
860
  expiryTime: __expectString(output.expiryTime),
867
861
  };
868
862
  };
869
- const deserializeAws_json1_1AddCommunicationToCaseResponse = (output, context) => {
863
+ const de_AddCommunicationToCaseResponse = (output, context) => {
870
864
  return {
871
865
  result: __expectBoolean(output.result),
872
866
  };
873
867
  };
874
- const deserializeAws_json1_1Attachment = (output, context) => {
868
+ const de_Attachment = (output, context) => {
875
869
  return {
876
870
  data: output.data != null ? context.base64Decoder(output.data) : undefined,
877
871
  fileName: __expectString(output.fileName),
878
872
  };
879
873
  };
880
- const deserializeAws_json1_1AttachmentDetails = (output, context) => {
874
+ const de_AttachmentDetails = (output, context) => {
881
875
  return {
882
876
  attachmentId: __expectString(output.attachmentId),
883
877
  fileName: __expectString(output.fileName),
884
878
  };
885
879
  };
886
- const deserializeAws_json1_1AttachmentIdNotFound = (output, context) => {
880
+ const de_AttachmentIdNotFound = (output, context) => {
887
881
  return {
888
882
  message: __expectString(output.message),
889
883
  };
890
884
  };
891
- const deserializeAws_json1_1AttachmentLimitExceeded = (output, context) => {
885
+ const de_AttachmentLimitExceeded = (output, context) => {
892
886
  return {
893
887
  message: __expectString(output.message),
894
888
  };
895
889
  };
896
- const deserializeAws_json1_1AttachmentSet = (output, context) => {
890
+ const de_AttachmentSet = (output, context) => {
897
891
  const retVal = (output || [])
898
892
  .filter((e) => e != null)
899
893
  .map((entry) => {
900
894
  if (entry === null) {
901
895
  return null;
902
896
  }
903
- return deserializeAws_json1_1AttachmentDetails(entry, context);
897
+ return de_AttachmentDetails(entry, context);
904
898
  });
905
899
  return retVal;
906
900
  };
907
- const deserializeAws_json1_1AttachmentSetExpired = (output, context) => {
901
+ const de_AttachmentSetExpired = (output, context) => {
908
902
  return {
909
903
  message: __expectString(output.message),
910
904
  };
911
905
  };
912
- const deserializeAws_json1_1AttachmentSetIdNotFound = (output, context) => {
906
+ const de_AttachmentSetIdNotFound = (output, context) => {
913
907
  return {
914
908
  message: __expectString(output.message),
915
909
  };
916
910
  };
917
- const deserializeAws_json1_1AttachmentSetSizeLimitExceeded = (output, context) => {
911
+ const de_AttachmentSetSizeLimitExceeded = (output, context) => {
918
912
  return {
919
913
  message: __expectString(output.message),
920
914
  };
921
915
  };
922
- const deserializeAws_json1_1CaseCreationLimitExceeded = (output, context) => {
916
+ const de_CaseCreationLimitExceeded = (output, context) => {
923
917
  return {
924
918
  message: __expectString(output.message),
925
919
  };
926
920
  };
927
- const deserializeAws_json1_1CaseDetails = (output, context) => {
921
+ const de_CaseDetails = (output, context) => {
928
922
  return {
929
923
  caseId: __expectString(output.caseId),
930
924
  categoryCode: __expectString(output.categoryCode),
931
- ccEmailAddresses: output.ccEmailAddresses != null
932
- ? deserializeAws_json1_1CcEmailAddressList(output.ccEmailAddresses, context)
933
- : undefined,
925
+ ccEmailAddresses: output.ccEmailAddresses != null ? de_CcEmailAddressList(output.ccEmailAddresses, context) : undefined,
934
926
  displayId: __expectString(output.displayId),
935
927
  language: __expectString(output.language),
936
928
  recentCommunications: output.recentCommunications != null
937
- ? deserializeAws_json1_1RecentCaseCommunications(output.recentCommunications, context)
929
+ ? de_RecentCaseCommunications(output.recentCommunications, context)
938
930
  : undefined,
939
931
  serviceCode: __expectString(output.serviceCode),
940
932
  severityCode: __expectString(output.severityCode),
@@ -944,40 +936,40 @@ const deserializeAws_json1_1CaseDetails = (output, context) => {
944
936
  timeCreated: __expectString(output.timeCreated),
945
937
  };
946
938
  };
947
- const deserializeAws_json1_1CaseIdNotFound = (output, context) => {
939
+ const de_CaseIdNotFound = (output, context) => {
948
940
  return {
949
941
  message: __expectString(output.message),
950
942
  };
951
943
  };
952
- const deserializeAws_json1_1CaseList = (output, context) => {
944
+ const de_CaseList = (output, context) => {
953
945
  const retVal = (output || [])
954
946
  .filter((e) => e != null)
955
947
  .map((entry) => {
956
948
  if (entry === null) {
957
949
  return null;
958
950
  }
959
- return deserializeAws_json1_1CaseDetails(entry, context);
951
+ return de_CaseDetails(entry, context);
960
952
  });
961
953
  return retVal;
962
954
  };
963
- const deserializeAws_json1_1Category = (output, context) => {
955
+ const de_Category = (output, context) => {
964
956
  return {
965
957
  code: __expectString(output.code),
966
958
  name: __expectString(output.name),
967
959
  };
968
960
  };
969
- const deserializeAws_json1_1CategoryList = (output, context) => {
961
+ const de_CategoryList = (output, context) => {
970
962
  const retVal = (output || [])
971
963
  .filter((e) => e != null)
972
964
  .map((entry) => {
973
965
  if (entry === null) {
974
966
  return null;
975
967
  }
976
- return deserializeAws_json1_1Category(entry, context);
968
+ return de_Category(entry, context);
977
969
  });
978
970
  return retVal;
979
971
  };
980
- const deserializeAws_json1_1CcEmailAddressList = (output, context) => {
972
+ const de_CcEmailAddressList = (output, context) => {
981
973
  const retVal = (output || [])
982
974
  .filter((e) => e != null)
983
975
  .map((entry) => {
@@ -988,153 +980,141 @@ const deserializeAws_json1_1CcEmailAddressList = (output, context) => {
988
980
  });
989
981
  return retVal;
990
982
  };
991
- const deserializeAws_json1_1Communication = (output, context) => {
983
+ const de_Communication = (output, context) => {
992
984
  return {
993
- attachmentSet: output.attachmentSet != null ? deserializeAws_json1_1AttachmentSet(output.attachmentSet, context) : undefined,
985
+ attachmentSet: output.attachmentSet != null ? de_AttachmentSet(output.attachmentSet, context) : undefined,
994
986
  body: __expectString(output.body),
995
987
  caseId: __expectString(output.caseId),
996
988
  submittedBy: __expectString(output.submittedBy),
997
989
  timeCreated: __expectString(output.timeCreated),
998
990
  };
999
991
  };
1000
- const deserializeAws_json1_1CommunicationList = (output, context) => {
992
+ const de_CommunicationList = (output, context) => {
1001
993
  const retVal = (output || [])
1002
994
  .filter((e) => e != null)
1003
995
  .map((entry) => {
1004
996
  if (entry === null) {
1005
997
  return null;
1006
998
  }
1007
- return deserializeAws_json1_1Communication(entry, context);
999
+ return de_Communication(entry, context);
1008
1000
  });
1009
1001
  return retVal;
1010
1002
  };
1011
- const deserializeAws_json1_1CreateCaseResponse = (output, context) => {
1003
+ const de_CreateCaseResponse = (output, context) => {
1012
1004
  return {
1013
1005
  caseId: __expectString(output.caseId),
1014
1006
  };
1015
1007
  };
1016
- const deserializeAws_json1_1DescribeAttachmentLimitExceeded = (output, context) => {
1008
+ const de_DescribeAttachmentLimitExceeded = (output, context) => {
1017
1009
  return {
1018
1010
  message: __expectString(output.message),
1019
1011
  };
1020
1012
  };
1021
- const deserializeAws_json1_1DescribeAttachmentResponse = (output, context) => {
1013
+ const de_DescribeAttachmentResponse = (output, context) => {
1022
1014
  return {
1023
- attachment: output.attachment != null ? deserializeAws_json1_1Attachment(output.attachment, context) : undefined,
1015
+ attachment: output.attachment != null ? de_Attachment(output.attachment, context) : undefined,
1024
1016
  };
1025
1017
  };
1026
- const deserializeAws_json1_1DescribeCasesResponse = (output, context) => {
1018
+ const de_DescribeCasesResponse = (output, context) => {
1027
1019
  return {
1028
- cases: output.cases != null ? deserializeAws_json1_1CaseList(output.cases, context) : undefined,
1020
+ cases: output.cases != null ? de_CaseList(output.cases, context) : undefined,
1029
1021
  nextToken: __expectString(output.nextToken),
1030
1022
  };
1031
1023
  };
1032
- const deserializeAws_json1_1DescribeCommunicationsResponse = (output, context) => {
1024
+ const de_DescribeCommunicationsResponse = (output, context) => {
1033
1025
  return {
1034
- communications: output.communications != null
1035
- ? deserializeAws_json1_1CommunicationList(output.communications, context)
1036
- : undefined,
1026
+ communications: output.communications != null ? de_CommunicationList(output.communications, context) : undefined,
1037
1027
  nextToken: __expectString(output.nextToken),
1038
1028
  };
1039
1029
  };
1040
- const deserializeAws_json1_1DescribeServicesResponse = (output, context) => {
1030
+ const de_DescribeServicesResponse = (output, context) => {
1041
1031
  return {
1042
- services: output.services != null ? deserializeAws_json1_1ServiceList(output.services, context) : undefined,
1032
+ services: output.services != null ? de_ServiceList(output.services, context) : undefined,
1043
1033
  };
1044
1034
  };
1045
- const deserializeAws_json1_1DescribeSeverityLevelsResponse = (output, context) => {
1035
+ const de_DescribeSeverityLevelsResponse = (output, context) => {
1046
1036
  return {
1047
- severityLevels: output.severityLevels != null
1048
- ? deserializeAws_json1_1SeverityLevelsList(output.severityLevels, context)
1049
- : undefined,
1037
+ severityLevels: output.severityLevels != null ? de_SeverityLevelsList(output.severityLevels, context) : undefined,
1050
1038
  };
1051
1039
  };
1052
- const deserializeAws_json1_1DescribeTrustedAdvisorCheckRefreshStatusesResponse = (output, context) => {
1040
+ const de_DescribeTrustedAdvisorCheckRefreshStatusesResponse = (output, context) => {
1053
1041
  return {
1054
- statuses: output.statuses != null
1055
- ? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList(output.statuses, context)
1056
- : undefined,
1042
+ statuses: output.statuses != null ? de_TrustedAdvisorCheckRefreshStatusList(output.statuses, context) : undefined,
1057
1043
  };
1058
1044
  };
1059
- const deserializeAws_json1_1DescribeTrustedAdvisorCheckResultResponse = (output, context) => {
1045
+ const de_DescribeTrustedAdvisorCheckResultResponse = (output, context) => {
1060
1046
  return {
1061
- result: output.result != null ? deserializeAws_json1_1TrustedAdvisorCheckResult(output.result, context) : undefined,
1047
+ result: output.result != null ? de_TrustedAdvisorCheckResult(output.result, context) : undefined,
1062
1048
  };
1063
1049
  };
1064
- const deserializeAws_json1_1DescribeTrustedAdvisorChecksResponse = (output, context) => {
1050
+ const de_DescribeTrustedAdvisorChecksResponse = (output, context) => {
1065
1051
  return {
1066
- checks: output.checks != null ? deserializeAws_json1_1TrustedAdvisorCheckList(output.checks, context) : undefined,
1052
+ checks: output.checks != null ? de_TrustedAdvisorCheckList(output.checks, context) : undefined,
1067
1053
  };
1068
1054
  };
1069
- const deserializeAws_json1_1DescribeTrustedAdvisorCheckSummariesResponse = (output, context) => {
1055
+ const de_DescribeTrustedAdvisorCheckSummariesResponse = (output, context) => {
1070
1056
  return {
1071
- summaries: output.summaries != null
1072
- ? deserializeAws_json1_1TrustedAdvisorCheckSummaryList(output.summaries, context)
1073
- : undefined,
1057
+ summaries: output.summaries != null ? de_TrustedAdvisorCheckSummaryList(output.summaries, context) : undefined,
1074
1058
  };
1075
1059
  };
1076
- const deserializeAws_json1_1InternalServerError = (output, context) => {
1060
+ const de_InternalServerError = (output, context) => {
1077
1061
  return {
1078
1062
  message: __expectString(output.message),
1079
1063
  };
1080
1064
  };
1081
- const deserializeAws_json1_1RecentCaseCommunications = (output, context) => {
1065
+ const de_RecentCaseCommunications = (output, context) => {
1082
1066
  return {
1083
- communications: output.communications != null
1084
- ? deserializeAws_json1_1CommunicationList(output.communications, context)
1085
- : undefined,
1067
+ communications: output.communications != null ? de_CommunicationList(output.communications, context) : undefined,
1086
1068
  nextToken: __expectString(output.nextToken),
1087
1069
  };
1088
1070
  };
1089
- const deserializeAws_json1_1RefreshTrustedAdvisorCheckResponse = (output, context) => {
1071
+ const de_RefreshTrustedAdvisorCheckResponse = (output, context) => {
1090
1072
  return {
1091
- status: output.status != null
1092
- ? deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus(output.status, context)
1093
- : undefined,
1073
+ status: output.status != null ? de_TrustedAdvisorCheckRefreshStatus(output.status, context) : undefined,
1094
1074
  };
1095
1075
  };
1096
- const deserializeAws_json1_1ResolveCaseResponse = (output, context) => {
1076
+ const de_ResolveCaseResponse = (output, context) => {
1097
1077
  return {
1098
1078
  finalCaseStatus: __expectString(output.finalCaseStatus),
1099
1079
  initialCaseStatus: __expectString(output.initialCaseStatus),
1100
1080
  };
1101
1081
  };
1102
- const deserializeAws_json1_1Service = (output, context) => {
1082
+ const de_Service = (output, context) => {
1103
1083
  return {
1104
- categories: output.categories != null ? deserializeAws_json1_1CategoryList(output.categories, context) : undefined,
1084
+ categories: output.categories != null ? de_CategoryList(output.categories, context) : undefined,
1105
1085
  code: __expectString(output.code),
1106
1086
  name: __expectString(output.name),
1107
1087
  };
1108
1088
  };
1109
- const deserializeAws_json1_1ServiceList = (output, context) => {
1089
+ const de_ServiceList = (output, context) => {
1110
1090
  const retVal = (output || [])
1111
1091
  .filter((e) => e != null)
1112
1092
  .map((entry) => {
1113
1093
  if (entry === null) {
1114
1094
  return null;
1115
1095
  }
1116
- return deserializeAws_json1_1Service(entry, context);
1096
+ return de_Service(entry, context);
1117
1097
  });
1118
1098
  return retVal;
1119
1099
  };
1120
- const deserializeAws_json1_1SeverityLevel = (output, context) => {
1100
+ const de_SeverityLevel = (output, context) => {
1121
1101
  return {
1122
1102
  code: __expectString(output.code),
1123
1103
  name: __expectString(output.name),
1124
1104
  };
1125
1105
  };
1126
- const deserializeAws_json1_1SeverityLevelsList = (output, context) => {
1106
+ const de_SeverityLevelsList = (output, context) => {
1127
1107
  const retVal = (output || [])
1128
1108
  .filter((e) => e != null)
1129
1109
  .map((entry) => {
1130
1110
  if (entry === null) {
1131
1111
  return null;
1132
1112
  }
1133
- return deserializeAws_json1_1SeverityLevel(entry, context);
1113
+ return de_SeverityLevel(entry, context);
1134
1114
  });
1135
1115
  return retVal;
1136
1116
  };
1137
- const deserializeAws_json1_1StringList = (output, context) => {
1117
+ const de_StringList = (output, context) => {
1138
1118
  const retVal = (output || []).map((entry) => {
1139
1119
  if (entry === null) {
1140
1120
  return null;
@@ -1143,119 +1123,115 @@ const deserializeAws_json1_1StringList = (output, context) => {
1143
1123
  });
1144
1124
  return retVal;
1145
1125
  };
1146
- const deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary = (output, context) => {
1126
+ const de_TrustedAdvisorCategorySpecificSummary = (output, context) => {
1147
1127
  return {
1148
1128
  costOptimizing: output.costOptimizing != null
1149
- ? deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary(output.costOptimizing, context)
1129
+ ? de_TrustedAdvisorCostOptimizingSummary(output.costOptimizing, context)
1150
1130
  : undefined,
1151
1131
  };
1152
1132
  };
1153
- const deserializeAws_json1_1TrustedAdvisorCheckDescription = (output, context) => {
1133
+ const de_TrustedAdvisorCheckDescription = (output, context) => {
1154
1134
  return {
1155
1135
  category: __expectString(output.category),
1156
1136
  description: __expectString(output.description),
1157
1137
  id: __expectString(output.id),
1158
- metadata: output.metadata != null ? deserializeAws_json1_1StringList(output.metadata, context) : undefined,
1138
+ metadata: output.metadata != null ? de_StringList(output.metadata, context) : undefined,
1159
1139
  name: __expectString(output.name),
1160
1140
  };
1161
1141
  };
1162
- const deserializeAws_json1_1TrustedAdvisorCheckList = (output, context) => {
1142
+ const de_TrustedAdvisorCheckList = (output, context) => {
1163
1143
  const retVal = (output || [])
1164
1144
  .filter((e) => e != null)
1165
1145
  .map((entry) => {
1166
1146
  if (entry === null) {
1167
1147
  return null;
1168
1148
  }
1169
- return deserializeAws_json1_1TrustedAdvisorCheckDescription(entry, context);
1149
+ return de_TrustedAdvisorCheckDescription(entry, context);
1170
1150
  });
1171
1151
  return retVal;
1172
1152
  };
1173
- const deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus = (output, context) => {
1153
+ const de_TrustedAdvisorCheckRefreshStatus = (output, context) => {
1174
1154
  return {
1175
1155
  checkId: __expectString(output.checkId),
1176
1156
  millisUntilNextRefreshable: __expectLong(output.millisUntilNextRefreshable),
1177
1157
  status: __expectString(output.status),
1178
1158
  };
1179
1159
  };
1180
- const deserializeAws_json1_1TrustedAdvisorCheckRefreshStatusList = (output, context) => {
1160
+ const de_TrustedAdvisorCheckRefreshStatusList = (output, context) => {
1181
1161
  const retVal = (output || [])
1182
1162
  .filter((e) => e != null)
1183
1163
  .map((entry) => {
1184
1164
  if (entry === null) {
1185
1165
  return null;
1186
1166
  }
1187
- return deserializeAws_json1_1TrustedAdvisorCheckRefreshStatus(entry, context);
1167
+ return de_TrustedAdvisorCheckRefreshStatus(entry, context);
1188
1168
  });
1189
1169
  return retVal;
1190
1170
  };
1191
- const deserializeAws_json1_1TrustedAdvisorCheckResult = (output, context) => {
1171
+ const de_TrustedAdvisorCheckResult = (output, context) => {
1192
1172
  return {
1193
1173
  categorySpecificSummary: output.categorySpecificSummary != null
1194
- ? deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
1174
+ ? de_TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
1195
1175
  : undefined,
1196
1176
  checkId: __expectString(output.checkId),
1197
1177
  flaggedResources: output.flaggedResources != null
1198
- ? deserializeAws_json1_1TrustedAdvisorResourceDetailList(output.flaggedResources, context)
1199
- : undefined,
1200
- resourcesSummary: output.resourcesSummary != null
1201
- ? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
1178
+ ? de_TrustedAdvisorResourceDetailList(output.flaggedResources, context)
1202
1179
  : undefined,
1180
+ resourcesSummary: output.resourcesSummary != null ? de_TrustedAdvisorResourcesSummary(output.resourcesSummary, context) : undefined,
1203
1181
  status: __expectString(output.status),
1204
1182
  timestamp: __expectString(output.timestamp),
1205
1183
  };
1206
1184
  };
1207
- const deserializeAws_json1_1TrustedAdvisorCheckSummary = (output, context) => {
1185
+ const de_TrustedAdvisorCheckSummary = (output, context) => {
1208
1186
  return {
1209
1187
  categorySpecificSummary: output.categorySpecificSummary != null
1210
- ? deserializeAws_json1_1TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
1188
+ ? de_TrustedAdvisorCategorySpecificSummary(output.categorySpecificSummary, context)
1211
1189
  : undefined,
1212
1190
  checkId: __expectString(output.checkId),
1213
1191
  hasFlaggedResources: __expectBoolean(output.hasFlaggedResources),
1214
- resourcesSummary: output.resourcesSummary != null
1215
- ? deserializeAws_json1_1TrustedAdvisorResourcesSummary(output.resourcesSummary, context)
1216
- : undefined,
1192
+ resourcesSummary: output.resourcesSummary != null ? de_TrustedAdvisorResourcesSummary(output.resourcesSummary, context) : undefined,
1217
1193
  status: __expectString(output.status),
1218
1194
  timestamp: __expectString(output.timestamp),
1219
1195
  };
1220
1196
  };
1221
- const deserializeAws_json1_1TrustedAdvisorCheckSummaryList = (output, context) => {
1197
+ const de_TrustedAdvisorCheckSummaryList = (output, context) => {
1222
1198
  const retVal = (output || [])
1223
1199
  .filter((e) => e != null)
1224
1200
  .map((entry) => {
1225
1201
  if (entry === null) {
1226
1202
  return null;
1227
1203
  }
1228
- return deserializeAws_json1_1TrustedAdvisorCheckSummary(entry, context);
1204
+ return de_TrustedAdvisorCheckSummary(entry, context);
1229
1205
  });
1230
1206
  return retVal;
1231
1207
  };
1232
- const deserializeAws_json1_1TrustedAdvisorCostOptimizingSummary = (output, context) => {
1208
+ const de_TrustedAdvisorCostOptimizingSummary = (output, context) => {
1233
1209
  return {
1234
1210
  estimatedMonthlySavings: __limitedParseDouble(output.estimatedMonthlySavings),
1235
1211
  estimatedPercentMonthlySavings: __limitedParseDouble(output.estimatedPercentMonthlySavings),
1236
1212
  };
1237
1213
  };
1238
- const deserializeAws_json1_1TrustedAdvisorResourceDetail = (output, context) => {
1214
+ const de_TrustedAdvisorResourceDetail = (output, context) => {
1239
1215
  return {
1240
1216
  isSuppressed: __expectBoolean(output.isSuppressed),
1241
- metadata: output.metadata != null ? deserializeAws_json1_1StringList(output.metadata, context) : undefined,
1217
+ metadata: output.metadata != null ? de_StringList(output.metadata, context) : undefined,
1242
1218
  region: __expectString(output.region),
1243
1219
  resourceId: __expectString(output.resourceId),
1244
1220
  status: __expectString(output.status),
1245
1221
  };
1246
1222
  };
1247
- const deserializeAws_json1_1TrustedAdvisorResourceDetailList = (output, context) => {
1223
+ const de_TrustedAdvisorResourceDetailList = (output, context) => {
1248
1224
  const retVal = (output || [])
1249
1225
  .filter((e) => e != null)
1250
1226
  .map((entry) => {
1251
1227
  if (entry === null) {
1252
1228
  return null;
1253
1229
  }
1254
- return deserializeAws_json1_1TrustedAdvisorResourceDetail(entry, context);
1230
+ return de_TrustedAdvisorResourceDetail(entry, context);
1255
1231
  });
1256
1232
  return retVal;
1257
1233
  };
1258
- const deserializeAws_json1_1TrustedAdvisorResourcesSummary = (output, context) => {
1234
+ const de_TrustedAdvisorResourcesSummary = (output, context) => {
1259
1235
  return {
1260
1236
  resourcesFlagged: __expectLong(output.resourcesFlagged),
1261
1237
  resourcesIgnored: __expectLong(output.resourcesIgnored),