@aws-sdk/client-kendra-ranking 3.303.0 → 3.309.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.
@@ -3,101 +3,101 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { KendraRankingServiceException as __BaseException } from "../models/KendraRankingServiceException";
5
5
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const serializeAws_json1_0CreateRescoreExecutionPlanCommand = async (input, context) => {
6
+ export const se_CreateRescoreExecutionPlanCommand = async (input, context) => {
7
7
  const headers = {
8
8
  "content-type": "application/x-amz-json-1.0",
9
9
  "x-amz-target": "AWSKendraRerankingFrontendService.CreateRescoreExecutionPlan",
10
10
  };
11
11
  let body;
12
- body = JSON.stringify(serializeAws_json1_0CreateRescoreExecutionPlanRequest(input, context));
12
+ body = JSON.stringify(se_CreateRescoreExecutionPlanRequest(input, context));
13
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
14
  };
15
- export const serializeAws_json1_0DeleteRescoreExecutionPlanCommand = async (input, context) => {
15
+ export const se_DeleteRescoreExecutionPlanCommand = async (input, context) => {
16
16
  const headers = {
17
17
  "content-type": "application/x-amz-json-1.0",
18
18
  "x-amz-target": "AWSKendraRerankingFrontendService.DeleteRescoreExecutionPlan",
19
19
  };
20
20
  let body;
21
- body = JSON.stringify(serializeAws_json1_0DeleteRescoreExecutionPlanRequest(input, context));
21
+ body = JSON.stringify(se_DeleteRescoreExecutionPlanRequest(input, context));
22
22
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
23
  };
24
- export const serializeAws_json1_0DescribeRescoreExecutionPlanCommand = async (input, context) => {
24
+ export const se_DescribeRescoreExecutionPlanCommand = async (input, context) => {
25
25
  const headers = {
26
26
  "content-type": "application/x-amz-json-1.0",
27
27
  "x-amz-target": "AWSKendraRerankingFrontendService.DescribeRescoreExecutionPlan",
28
28
  };
29
29
  let body;
30
- body = JSON.stringify(serializeAws_json1_0DescribeRescoreExecutionPlanRequest(input, context));
30
+ body = JSON.stringify(se_DescribeRescoreExecutionPlanRequest(input, context));
31
31
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
32
32
  };
33
- export const serializeAws_json1_0ListRescoreExecutionPlansCommand = async (input, context) => {
33
+ export const se_ListRescoreExecutionPlansCommand = async (input, context) => {
34
34
  const headers = {
35
35
  "content-type": "application/x-amz-json-1.0",
36
36
  "x-amz-target": "AWSKendraRerankingFrontendService.ListRescoreExecutionPlans",
37
37
  };
38
38
  let body;
39
- body = JSON.stringify(serializeAws_json1_0ListRescoreExecutionPlansRequest(input, context));
39
+ body = JSON.stringify(se_ListRescoreExecutionPlansRequest(input, context));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
- export const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) => {
42
+ export const se_ListTagsForResourceCommand = async (input, context) => {
43
43
  const headers = {
44
44
  "content-type": "application/x-amz-json-1.0",
45
45
  "x-amz-target": "AWSKendraRerankingFrontendService.ListTagsForResource",
46
46
  };
47
47
  let body;
48
- body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
48
+ body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
49
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
50
  };
51
- export const serializeAws_json1_0RescoreCommand = async (input, context) => {
51
+ export const se_RescoreCommand = async (input, context) => {
52
52
  const headers = {
53
53
  "content-type": "application/x-amz-json-1.0",
54
54
  "x-amz-target": "AWSKendraRerankingFrontendService.Rescore",
55
55
  };
56
56
  let body;
57
- body = JSON.stringify(serializeAws_json1_0RescoreRequest(input, context));
57
+ body = JSON.stringify(se_RescoreRequest(input, context));
58
58
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
59
  };
60
- export const serializeAws_json1_0TagResourceCommand = async (input, context) => {
60
+ export const se_TagResourceCommand = async (input, context) => {
61
61
  const headers = {
62
62
  "content-type": "application/x-amz-json-1.0",
63
63
  "x-amz-target": "AWSKendraRerankingFrontendService.TagResource",
64
64
  };
65
65
  let body;
66
- body = JSON.stringify(serializeAws_json1_0TagResourceRequest(input, context));
66
+ body = JSON.stringify(se_TagResourceRequest(input, context));
67
67
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
68
68
  };
69
- export const serializeAws_json1_0UntagResourceCommand = async (input, context) => {
69
+ export const se_UntagResourceCommand = async (input, context) => {
70
70
  const headers = {
71
71
  "content-type": "application/x-amz-json-1.0",
72
72
  "x-amz-target": "AWSKendraRerankingFrontendService.UntagResource",
73
73
  };
74
74
  let body;
75
- body = JSON.stringify(serializeAws_json1_0UntagResourceRequest(input, context));
75
+ body = JSON.stringify(se_UntagResourceRequest(input, context));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
- export const serializeAws_json1_0UpdateRescoreExecutionPlanCommand = async (input, context) => {
78
+ export const se_UpdateRescoreExecutionPlanCommand = async (input, context) => {
79
79
  const headers = {
80
80
  "content-type": "application/x-amz-json-1.0",
81
81
  "x-amz-target": "AWSKendraRerankingFrontendService.UpdateRescoreExecutionPlan",
82
82
  };
83
83
  let body;
84
- body = JSON.stringify(serializeAws_json1_0UpdateRescoreExecutionPlanRequest(input, context));
84
+ body = JSON.stringify(se_UpdateRescoreExecutionPlanRequest(input, context));
85
85
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
86
86
  };
87
- export const deserializeAws_json1_0CreateRescoreExecutionPlanCommand = async (output, context) => {
87
+ export const de_CreateRescoreExecutionPlanCommand = async (output, context) => {
88
88
  if (output.statusCode >= 300) {
89
- return deserializeAws_json1_0CreateRescoreExecutionPlanCommandError(output, context);
89
+ return de_CreateRescoreExecutionPlanCommandError(output, context);
90
90
  }
91
91
  const data = await parseBody(output.body, context);
92
92
  let contents = {};
93
- contents = deserializeAws_json1_0CreateRescoreExecutionPlanResponse(data, context);
93
+ contents = de_CreateRescoreExecutionPlanResponse(data, context);
94
94
  const response = {
95
95
  $metadata: deserializeMetadata(output),
96
96
  ...contents,
97
97
  };
98
98
  return Promise.resolve(response);
99
99
  };
100
- const deserializeAws_json1_0CreateRescoreExecutionPlanCommandError = async (output, context) => {
100
+ const de_CreateRescoreExecutionPlanCommandError = async (output, context) => {
101
101
  const parsedOutput = {
102
102
  ...output,
103
103
  body: await parseErrorBody(output.body, context),
@@ -106,22 +106,22 @@ const deserializeAws_json1_0CreateRescoreExecutionPlanCommandError = async (outp
106
106
  switch (errorCode) {
107
107
  case "AccessDeniedException":
108
108
  case "com.amazonaws.kendraranking#AccessDeniedException":
109
- throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
109
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
110
110
  case "ConflictException":
111
111
  case "com.amazonaws.kendraranking#ConflictException":
112
- throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
112
+ throw await de_ConflictExceptionRes(parsedOutput, context);
113
113
  case "InternalServerException":
114
114
  case "com.amazonaws.kendraranking#InternalServerException":
115
- throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
115
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
116
116
  case "ServiceQuotaExceededException":
117
117
  case "com.amazonaws.kendraranking#ServiceQuotaExceededException":
118
- throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
118
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
119
119
  case "ThrottlingException":
120
120
  case "com.amazonaws.kendraranking#ThrottlingException":
121
- throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
121
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
122
122
  case "ValidationException":
123
123
  case "com.amazonaws.kendraranking#ValidationException":
124
- throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
124
+ throw await de_ValidationExceptionRes(parsedOutput, context);
125
125
  default:
126
126
  const parsedBody = parsedOutput.body;
127
127
  throwDefaultError({
@@ -132,9 +132,9 @@ const deserializeAws_json1_0CreateRescoreExecutionPlanCommandError = async (outp
132
132
  });
133
133
  }
134
134
  };
135
- export const deserializeAws_json1_0DeleteRescoreExecutionPlanCommand = async (output, context) => {
135
+ export const de_DeleteRescoreExecutionPlanCommand = async (output, context) => {
136
136
  if (output.statusCode >= 300) {
137
- return deserializeAws_json1_0DeleteRescoreExecutionPlanCommandError(output, context);
137
+ return de_DeleteRescoreExecutionPlanCommandError(output, context);
138
138
  }
139
139
  await collectBody(output.body, context);
140
140
  const response = {
@@ -142,7 +142,7 @@ export const deserializeAws_json1_0DeleteRescoreExecutionPlanCommand = async (ou
142
142
  };
143
143
  return Promise.resolve(response);
144
144
  };
145
- const deserializeAws_json1_0DeleteRescoreExecutionPlanCommandError = async (output, context) => {
145
+ const de_DeleteRescoreExecutionPlanCommandError = async (output, context) => {
146
146
  const parsedOutput = {
147
147
  ...output,
148
148
  body: await parseErrorBody(output.body, context),
@@ -151,22 +151,22 @@ const deserializeAws_json1_0DeleteRescoreExecutionPlanCommandError = async (outp
151
151
  switch (errorCode) {
152
152
  case "AccessDeniedException":
153
153
  case "com.amazonaws.kendraranking#AccessDeniedException":
154
- throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
154
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
155
155
  case "ConflictException":
156
156
  case "com.amazonaws.kendraranking#ConflictException":
157
- throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
157
+ throw await de_ConflictExceptionRes(parsedOutput, context);
158
158
  case "InternalServerException":
159
159
  case "com.amazonaws.kendraranking#InternalServerException":
160
- throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
160
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
161
161
  case "ResourceNotFoundException":
162
162
  case "com.amazonaws.kendraranking#ResourceNotFoundException":
163
- throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
163
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
164
164
  case "ThrottlingException":
165
165
  case "com.amazonaws.kendraranking#ThrottlingException":
166
- throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
166
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
167
167
  case "ValidationException":
168
168
  case "com.amazonaws.kendraranking#ValidationException":
169
- throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
169
+ throw await de_ValidationExceptionRes(parsedOutput, context);
170
170
  default:
171
171
  const parsedBody = parsedOutput.body;
172
172
  throwDefaultError({
@@ -177,20 +177,20 @@ const deserializeAws_json1_0DeleteRescoreExecutionPlanCommandError = async (outp
177
177
  });
178
178
  }
179
179
  };
180
- export const deserializeAws_json1_0DescribeRescoreExecutionPlanCommand = async (output, context) => {
180
+ export const de_DescribeRescoreExecutionPlanCommand = async (output, context) => {
181
181
  if (output.statusCode >= 300) {
182
- return deserializeAws_json1_0DescribeRescoreExecutionPlanCommandError(output, context);
182
+ return de_DescribeRescoreExecutionPlanCommandError(output, context);
183
183
  }
184
184
  const data = await parseBody(output.body, context);
185
185
  let contents = {};
186
- contents = deserializeAws_json1_0DescribeRescoreExecutionPlanResponse(data, context);
186
+ contents = de_DescribeRescoreExecutionPlanResponse(data, context);
187
187
  const response = {
188
188
  $metadata: deserializeMetadata(output),
189
189
  ...contents,
190
190
  };
191
191
  return Promise.resolve(response);
192
192
  };
193
- const deserializeAws_json1_0DescribeRescoreExecutionPlanCommandError = async (output, context) => {
193
+ const de_DescribeRescoreExecutionPlanCommandError = async (output, context) => {
194
194
  const parsedOutput = {
195
195
  ...output,
196
196
  body: await parseErrorBody(output.body, context),
@@ -199,19 +199,19 @@ const deserializeAws_json1_0DescribeRescoreExecutionPlanCommandError = async (ou
199
199
  switch (errorCode) {
200
200
  case "AccessDeniedException":
201
201
  case "com.amazonaws.kendraranking#AccessDeniedException":
202
- throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
202
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
203
203
  case "InternalServerException":
204
204
  case "com.amazonaws.kendraranking#InternalServerException":
205
- throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
205
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
206
206
  case "ResourceNotFoundException":
207
207
  case "com.amazonaws.kendraranking#ResourceNotFoundException":
208
- throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
208
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
209
209
  case "ThrottlingException":
210
210
  case "com.amazonaws.kendraranking#ThrottlingException":
211
- throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
211
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
212
212
  case "ValidationException":
213
213
  case "com.amazonaws.kendraranking#ValidationException":
214
- throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
214
+ throw await de_ValidationExceptionRes(parsedOutput, context);
215
215
  default:
216
216
  const parsedBody = parsedOutput.body;
217
217
  throwDefaultError({
@@ -222,20 +222,20 @@ const deserializeAws_json1_0DescribeRescoreExecutionPlanCommandError = async (ou
222
222
  });
223
223
  }
224
224
  };
225
- export const deserializeAws_json1_0ListRescoreExecutionPlansCommand = async (output, context) => {
225
+ export const de_ListRescoreExecutionPlansCommand = async (output, context) => {
226
226
  if (output.statusCode >= 300) {
227
- return deserializeAws_json1_0ListRescoreExecutionPlansCommandError(output, context);
227
+ return de_ListRescoreExecutionPlansCommandError(output, context);
228
228
  }
229
229
  const data = await parseBody(output.body, context);
230
230
  let contents = {};
231
- contents = deserializeAws_json1_0ListRescoreExecutionPlansResponse(data, context);
231
+ contents = de_ListRescoreExecutionPlansResponse(data, context);
232
232
  const response = {
233
233
  $metadata: deserializeMetadata(output),
234
234
  ...contents,
235
235
  };
236
236
  return Promise.resolve(response);
237
237
  };
238
- const deserializeAws_json1_0ListRescoreExecutionPlansCommandError = async (output, context) => {
238
+ const de_ListRescoreExecutionPlansCommandError = async (output, context) => {
239
239
  const parsedOutput = {
240
240
  ...output,
241
241
  body: await parseErrorBody(output.body, context),
@@ -244,16 +244,16 @@ const deserializeAws_json1_0ListRescoreExecutionPlansCommandError = async (outpu
244
244
  switch (errorCode) {
245
245
  case "AccessDeniedException":
246
246
  case "com.amazonaws.kendraranking#AccessDeniedException":
247
- throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
247
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
248
248
  case "InternalServerException":
249
249
  case "com.amazonaws.kendraranking#InternalServerException":
250
- throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
250
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
251
251
  case "ThrottlingException":
252
252
  case "com.amazonaws.kendraranking#ThrottlingException":
253
- throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
253
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
254
254
  case "ValidationException":
255
255
  case "com.amazonaws.kendraranking#ValidationException":
256
- throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
256
+ throw await de_ValidationExceptionRes(parsedOutput, context);
257
257
  default:
258
258
  const parsedBody = parsedOutput.body;
259
259
  throwDefaultError({
@@ -264,20 +264,20 @@ const deserializeAws_json1_0ListRescoreExecutionPlansCommandError = async (outpu
264
264
  });
265
265
  }
266
266
  };
267
- export const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
267
+ export const de_ListTagsForResourceCommand = async (output, context) => {
268
268
  if (output.statusCode >= 300) {
269
- return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
269
+ return de_ListTagsForResourceCommandError(output, context);
270
270
  }
271
271
  const data = await parseBody(output.body, context);
272
272
  let contents = {};
273
- contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
273
+ contents = de_ListTagsForResourceResponse(data, context);
274
274
  const response = {
275
275
  $metadata: deserializeMetadata(output),
276
276
  ...contents,
277
277
  };
278
278
  return Promise.resolve(response);
279
279
  };
280
- const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
280
+ const de_ListTagsForResourceCommandError = async (output, context) => {
281
281
  const parsedOutput = {
282
282
  ...output,
283
283
  body: await parseErrorBody(output.body, context),
@@ -286,19 +286,19 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
286
286
  switch (errorCode) {
287
287
  case "AccessDeniedException":
288
288
  case "com.amazonaws.kendraranking#AccessDeniedException":
289
- throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
289
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
290
290
  case "InternalServerException":
291
291
  case "com.amazonaws.kendraranking#InternalServerException":
292
- throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
292
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
293
293
  case "ResourceUnavailableException":
294
294
  case "com.amazonaws.kendraranking#ResourceUnavailableException":
295
- throw await deserializeAws_json1_0ResourceUnavailableExceptionResponse(parsedOutput, context);
295
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
296
296
  case "ThrottlingException":
297
297
  case "com.amazonaws.kendraranking#ThrottlingException":
298
- throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
298
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
299
299
  case "ValidationException":
300
300
  case "com.amazonaws.kendraranking#ValidationException":
301
- throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
301
+ throw await de_ValidationExceptionRes(parsedOutput, context);
302
302
  default:
303
303
  const parsedBody = parsedOutput.body;
304
304
  throwDefaultError({
@@ -309,20 +309,20 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
309
309
  });
310
310
  }
311
311
  };
312
- export const deserializeAws_json1_0RescoreCommand = async (output, context) => {
312
+ export const de_RescoreCommand = async (output, context) => {
313
313
  if (output.statusCode >= 300) {
314
- return deserializeAws_json1_0RescoreCommandError(output, context);
314
+ return de_RescoreCommandError(output, context);
315
315
  }
316
316
  const data = await parseBody(output.body, context);
317
317
  let contents = {};
318
- contents = deserializeAws_json1_0RescoreResult(data, context);
318
+ contents = de_RescoreResult(data, context);
319
319
  const response = {
320
320
  $metadata: deserializeMetadata(output),
321
321
  ...contents,
322
322
  };
323
323
  return Promise.resolve(response);
324
324
  };
325
- const deserializeAws_json1_0RescoreCommandError = async (output, context) => {
325
+ const de_RescoreCommandError = async (output, context) => {
326
326
  const parsedOutput = {
327
327
  ...output,
328
328
  body: await parseErrorBody(output.body, context),
@@ -331,22 +331,22 @@ const deserializeAws_json1_0RescoreCommandError = async (output, context) => {
331
331
  switch (errorCode) {
332
332
  case "AccessDeniedException":
333
333
  case "com.amazonaws.kendraranking#AccessDeniedException":
334
- throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
334
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
335
335
  case "ConflictException":
336
336
  case "com.amazonaws.kendraranking#ConflictException":
337
- throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
337
+ throw await de_ConflictExceptionRes(parsedOutput, context);
338
338
  case "InternalServerException":
339
339
  case "com.amazonaws.kendraranking#InternalServerException":
340
- throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
340
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
341
341
  case "ResourceNotFoundException":
342
342
  case "com.amazonaws.kendraranking#ResourceNotFoundException":
343
- throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
343
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
344
344
  case "ThrottlingException":
345
345
  case "com.amazonaws.kendraranking#ThrottlingException":
346
- throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
346
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
347
347
  case "ValidationException":
348
348
  case "com.amazonaws.kendraranking#ValidationException":
349
- throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
349
+ throw await de_ValidationExceptionRes(parsedOutput, context);
350
350
  default:
351
351
  const parsedBody = parsedOutput.body;
352
352
  throwDefaultError({
@@ -357,20 +357,20 @@ const deserializeAws_json1_0RescoreCommandError = async (output, context) => {
357
357
  });
358
358
  }
359
359
  };
360
- export const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
360
+ export const de_TagResourceCommand = async (output, context) => {
361
361
  if (output.statusCode >= 300) {
362
- return deserializeAws_json1_0TagResourceCommandError(output, context);
362
+ return de_TagResourceCommandError(output, context);
363
363
  }
364
364
  const data = await parseBody(output.body, context);
365
365
  let contents = {};
366
- contents = deserializeAws_json1_0TagResourceResponse(data, context);
366
+ contents = de_TagResourceResponse(data, context);
367
367
  const response = {
368
368
  $metadata: deserializeMetadata(output),
369
369
  ...contents,
370
370
  };
371
371
  return Promise.resolve(response);
372
372
  };
373
- const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
373
+ const de_TagResourceCommandError = async (output, context) => {
374
374
  const parsedOutput = {
375
375
  ...output,
376
376
  body: await parseErrorBody(output.body, context),
@@ -379,19 +379,19 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
379
379
  switch (errorCode) {
380
380
  case "AccessDeniedException":
381
381
  case "com.amazonaws.kendraranking#AccessDeniedException":
382
- throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
382
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
383
383
  case "InternalServerException":
384
384
  case "com.amazonaws.kendraranking#InternalServerException":
385
- throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
385
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
386
386
  case "ResourceUnavailableException":
387
387
  case "com.amazonaws.kendraranking#ResourceUnavailableException":
388
- throw await deserializeAws_json1_0ResourceUnavailableExceptionResponse(parsedOutput, context);
388
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
389
389
  case "ThrottlingException":
390
390
  case "com.amazonaws.kendraranking#ThrottlingException":
391
- throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
391
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
392
392
  case "ValidationException":
393
393
  case "com.amazonaws.kendraranking#ValidationException":
394
- throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
394
+ throw await de_ValidationExceptionRes(parsedOutput, context);
395
395
  default:
396
396
  const parsedBody = parsedOutput.body;
397
397
  throwDefaultError({
@@ -402,20 +402,20 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
402
402
  });
403
403
  }
404
404
  };
405
- export const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
405
+ export const de_UntagResourceCommand = async (output, context) => {
406
406
  if (output.statusCode >= 300) {
407
- return deserializeAws_json1_0UntagResourceCommandError(output, context);
407
+ return de_UntagResourceCommandError(output, context);
408
408
  }
409
409
  const data = await parseBody(output.body, context);
410
410
  let contents = {};
411
- contents = deserializeAws_json1_0UntagResourceResponse(data, context);
411
+ contents = de_UntagResourceResponse(data, context);
412
412
  const response = {
413
413
  $metadata: deserializeMetadata(output),
414
414
  ...contents,
415
415
  };
416
416
  return Promise.resolve(response);
417
417
  };
418
- const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
418
+ const de_UntagResourceCommandError = async (output, context) => {
419
419
  const parsedOutput = {
420
420
  ...output,
421
421
  body: await parseErrorBody(output.body, context),
@@ -424,19 +424,19 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
424
424
  switch (errorCode) {
425
425
  case "AccessDeniedException":
426
426
  case "com.amazonaws.kendraranking#AccessDeniedException":
427
- throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
427
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
428
428
  case "InternalServerException":
429
429
  case "com.amazonaws.kendraranking#InternalServerException":
430
- throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
430
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
431
431
  case "ResourceUnavailableException":
432
432
  case "com.amazonaws.kendraranking#ResourceUnavailableException":
433
- throw await deserializeAws_json1_0ResourceUnavailableExceptionResponse(parsedOutput, context);
433
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
434
434
  case "ThrottlingException":
435
435
  case "com.amazonaws.kendraranking#ThrottlingException":
436
- throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
436
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
437
437
  case "ValidationException":
438
438
  case "com.amazonaws.kendraranking#ValidationException":
439
- throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
439
+ throw await de_ValidationExceptionRes(parsedOutput, context);
440
440
  default:
441
441
  const parsedBody = parsedOutput.body;
442
442
  throwDefaultError({
@@ -447,9 +447,9 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
447
447
  });
448
448
  }
449
449
  };
450
- export const deserializeAws_json1_0UpdateRescoreExecutionPlanCommand = async (output, context) => {
450
+ export const de_UpdateRescoreExecutionPlanCommand = async (output, context) => {
451
451
  if (output.statusCode >= 300) {
452
- return deserializeAws_json1_0UpdateRescoreExecutionPlanCommandError(output, context);
452
+ return de_UpdateRescoreExecutionPlanCommandError(output, context);
453
453
  }
454
454
  await collectBody(output.body, context);
455
455
  const response = {
@@ -457,7 +457,7 @@ export const deserializeAws_json1_0UpdateRescoreExecutionPlanCommand = async (ou
457
457
  };
458
458
  return Promise.resolve(response);
459
459
  };
460
- const deserializeAws_json1_0UpdateRescoreExecutionPlanCommandError = async (output, context) => {
460
+ const de_UpdateRescoreExecutionPlanCommandError = async (output, context) => {
461
461
  const parsedOutput = {
462
462
  ...output,
463
463
  body: await parseErrorBody(output.body, context),
@@ -466,25 +466,25 @@ const deserializeAws_json1_0UpdateRescoreExecutionPlanCommandError = async (outp
466
466
  switch (errorCode) {
467
467
  case "AccessDeniedException":
468
468
  case "com.amazonaws.kendraranking#AccessDeniedException":
469
- throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
469
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
470
470
  case "ConflictException":
471
471
  case "com.amazonaws.kendraranking#ConflictException":
472
- throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
472
+ throw await de_ConflictExceptionRes(parsedOutput, context);
473
473
  case "InternalServerException":
474
474
  case "com.amazonaws.kendraranking#InternalServerException":
475
- throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
475
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
476
476
  case "ResourceNotFoundException":
477
477
  case "com.amazonaws.kendraranking#ResourceNotFoundException":
478
- throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
478
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
479
479
  case "ServiceQuotaExceededException":
480
480
  case "com.amazonaws.kendraranking#ServiceQuotaExceededException":
481
- throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
481
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
482
482
  case "ThrottlingException":
483
483
  case "com.amazonaws.kendraranking#ThrottlingException":
484
- throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
484
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
485
485
  case "ValidationException":
486
486
  case "com.amazonaws.kendraranking#ValidationException":
487
- throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
487
+ throw await de_ValidationExceptionRes(parsedOutput, context);
488
488
  default:
489
489
  const parsedBody = parsedOutput.body;
490
490
  throwDefaultError({
@@ -495,227 +495,217 @@ const deserializeAws_json1_0UpdateRescoreExecutionPlanCommandError = async (outp
495
495
  });
496
496
  }
497
497
  };
498
- const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
498
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
499
499
  const body = parsedOutput.body;
500
- const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
500
+ const deserialized = de_AccessDeniedException(body, context);
501
501
  const exception = new AccessDeniedException({
502
502
  $metadata: deserializeMetadata(parsedOutput),
503
503
  ...deserialized,
504
504
  });
505
505
  return __decorateServiceException(exception, body);
506
506
  };
507
- const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
507
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
508
508
  const body = parsedOutput.body;
509
- const deserialized = deserializeAws_json1_0ConflictException(body, context);
509
+ const deserialized = de_ConflictException(body, context);
510
510
  const exception = new ConflictException({
511
511
  $metadata: deserializeMetadata(parsedOutput),
512
512
  ...deserialized,
513
513
  });
514
514
  return __decorateServiceException(exception, body);
515
515
  };
516
- const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutput, context) => {
516
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
517
517
  const body = parsedOutput.body;
518
- const deserialized = deserializeAws_json1_0InternalServerException(body, context);
518
+ const deserialized = de_InternalServerException(body, context);
519
519
  const exception = new InternalServerException({
520
520
  $metadata: deserializeMetadata(parsedOutput),
521
521
  ...deserialized,
522
522
  });
523
523
  return __decorateServiceException(exception, body);
524
524
  };
525
- const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
525
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
526
526
  const body = parsedOutput.body;
527
- const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
527
+ const deserialized = de_ResourceNotFoundException(body, context);
528
528
  const exception = new ResourceNotFoundException({
529
529
  $metadata: deserializeMetadata(parsedOutput),
530
530
  ...deserialized,
531
531
  });
532
532
  return __decorateServiceException(exception, body);
533
533
  };
534
- const deserializeAws_json1_0ResourceUnavailableExceptionResponse = async (parsedOutput, context) => {
534
+ const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
535
535
  const body = parsedOutput.body;
536
- const deserialized = deserializeAws_json1_0ResourceUnavailableException(body, context);
536
+ const deserialized = de_ResourceUnavailableException(body, context);
537
537
  const exception = new ResourceUnavailableException({
538
538
  $metadata: deserializeMetadata(parsedOutput),
539
539
  ...deserialized,
540
540
  });
541
541
  return __decorateServiceException(exception, body);
542
542
  };
543
- const deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
543
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
544
544
  const body = parsedOutput.body;
545
- const deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
545
+ const deserialized = de_ServiceQuotaExceededException(body, context);
546
546
  const exception = new ServiceQuotaExceededException({
547
547
  $metadata: deserializeMetadata(parsedOutput),
548
548
  ...deserialized,
549
549
  });
550
550
  return __decorateServiceException(exception, body);
551
551
  };
552
- const deserializeAws_json1_0ThrottlingExceptionResponse = async (parsedOutput, context) => {
552
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
553
553
  const body = parsedOutput.body;
554
- const deserialized = deserializeAws_json1_0ThrottlingException(body, context);
554
+ const deserialized = de_ThrottlingException(body, context);
555
555
  const exception = new ThrottlingException({
556
556
  $metadata: deserializeMetadata(parsedOutput),
557
557
  ...deserialized,
558
558
  });
559
559
  return __decorateServiceException(exception, body);
560
560
  };
561
- const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
561
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
562
562
  const body = parsedOutput.body;
563
- const deserialized = deserializeAws_json1_0ValidationException(body, context);
563
+ const deserialized = de_ValidationException(body, context);
564
564
  const exception = new ValidationException({
565
565
  $metadata: deserializeMetadata(parsedOutput),
566
566
  ...deserialized,
567
567
  });
568
568
  return __decorateServiceException(exception, body);
569
569
  };
570
- const serializeAws_json1_0BodyTokensList = (input, context) => {
570
+ const se_BodyTokensList = (input, context) => {
571
571
  return input
572
572
  .filter((e) => e != null)
573
573
  .map((entry) => {
574
574
  return entry;
575
575
  });
576
576
  };
577
- const serializeAws_json1_0CapacityUnitsConfiguration = (input, context) => {
577
+ const se_CapacityUnitsConfiguration = (input, context) => {
578
578
  return {
579
579
  ...(input.RescoreCapacityUnits != null && { RescoreCapacityUnits: input.RescoreCapacityUnits }),
580
580
  };
581
581
  };
582
- const serializeAws_json1_0CreateRescoreExecutionPlanRequest = (input, context) => {
582
+ const se_CreateRescoreExecutionPlanRequest = (input, context) => {
583
583
  return {
584
- ...(input.CapacityUnits != null && {
585
- CapacityUnits: serializeAws_json1_0CapacityUnitsConfiguration(input.CapacityUnits, context),
586
- }),
584
+ ...(input.CapacityUnits != null && { CapacityUnits: se_CapacityUnitsConfiguration(input.CapacityUnits, context) }),
587
585
  ClientToken: input.ClientToken ?? generateIdempotencyToken(),
588
586
  ...(input.Description != null && { Description: input.Description }),
589
587
  ...(input.Name != null && { Name: input.Name }),
590
- ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
588
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
591
589
  };
592
590
  };
593
- const serializeAws_json1_0DeleteRescoreExecutionPlanRequest = (input, context) => {
591
+ const se_DeleteRescoreExecutionPlanRequest = (input, context) => {
594
592
  return {
595
593
  ...(input.Id != null && { Id: input.Id }),
596
594
  };
597
595
  };
598
- const serializeAws_json1_0DescribeRescoreExecutionPlanRequest = (input, context) => {
596
+ const se_DescribeRescoreExecutionPlanRequest = (input, context) => {
599
597
  return {
600
598
  ...(input.Id != null && { Id: input.Id }),
601
599
  };
602
600
  };
603
- const serializeAws_json1_0Document = (input, context) => {
601
+ const se_Document = (input, context) => {
604
602
  return {
605
603
  ...(input.Body != null && { Body: input.Body }),
606
604
  ...(input.GroupId != null && { GroupId: input.GroupId }),
607
605
  ...(input.Id != null && { Id: input.Id }),
608
606
  ...(input.OriginalScore != null && { OriginalScore: __serializeFloat(input.OriginalScore) }),
609
607
  ...(input.Title != null && { Title: input.Title }),
610
- ...(input.TokenizedBody != null && {
611
- TokenizedBody: serializeAws_json1_0BodyTokensList(input.TokenizedBody, context),
612
- }),
613
- ...(input.TokenizedTitle != null && {
614
- TokenizedTitle: serializeAws_json1_0TitleTokensList(input.TokenizedTitle, context),
615
- }),
608
+ ...(input.TokenizedBody != null && { TokenizedBody: se_BodyTokensList(input.TokenizedBody, context) }),
609
+ ...(input.TokenizedTitle != null && { TokenizedTitle: se_TitleTokensList(input.TokenizedTitle, context) }),
616
610
  };
617
611
  };
618
- const serializeAws_json1_0DocumentList = (input, context) => {
612
+ const se_DocumentList = (input, context) => {
619
613
  return input
620
614
  .filter((e) => e != null)
621
615
  .map((entry) => {
622
- return serializeAws_json1_0Document(entry, context);
616
+ return se_Document(entry, context);
623
617
  });
624
618
  };
625
- const serializeAws_json1_0ListRescoreExecutionPlansRequest = (input, context) => {
619
+ const se_ListRescoreExecutionPlansRequest = (input, context) => {
626
620
  return {
627
621
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
628
622
  ...(input.NextToken != null && { NextToken: input.NextToken }),
629
623
  };
630
624
  };
631
- const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
625
+ const se_ListTagsForResourceRequest = (input, context) => {
632
626
  return {
633
627
  ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
634
628
  };
635
629
  };
636
- const serializeAws_json1_0RescoreRequest = (input, context) => {
630
+ const se_RescoreRequest = (input, context) => {
637
631
  return {
638
- ...(input.Documents != null && { Documents: serializeAws_json1_0DocumentList(input.Documents, context) }),
632
+ ...(input.Documents != null && { Documents: se_DocumentList(input.Documents, context) }),
639
633
  ...(input.RescoreExecutionPlanId != null && { RescoreExecutionPlanId: input.RescoreExecutionPlanId }),
640
634
  ...(input.SearchQuery != null && { SearchQuery: input.SearchQuery }),
641
635
  };
642
636
  };
643
- const serializeAws_json1_0Tag = (input, context) => {
637
+ const se_Tag = (input, context) => {
644
638
  return {
645
639
  ...(input.Key != null && { Key: input.Key }),
646
640
  ...(input.Value != null && { Value: input.Value }),
647
641
  };
648
642
  };
649
- const serializeAws_json1_0TagKeyList = (input, context) => {
643
+ const se_TagKeyList = (input, context) => {
650
644
  return input
651
645
  .filter((e) => e != null)
652
646
  .map((entry) => {
653
647
  return entry;
654
648
  });
655
649
  };
656
- const serializeAws_json1_0TagList = (input, context) => {
650
+ const se_TagList = (input, context) => {
657
651
  return input
658
652
  .filter((e) => e != null)
659
653
  .map((entry) => {
660
- return serializeAws_json1_0Tag(entry, context);
654
+ return se_Tag(entry, context);
661
655
  });
662
656
  };
663
- const serializeAws_json1_0TagResourceRequest = (input, context) => {
657
+ const se_TagResourceRequest = (input, context) => {
664
658
  return {
665
659
  ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
666
- ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
660
+ ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
667
661
  };
668
662
  };
669
- const serializeAws_json1_0TitleTokensList = (input, context) => {
663
+ const se_TitleTokensList = (input, context) => {
670
664
  return input
671
665
  .filter((e) => e != null)
672
666
  .map((entry) => {
673
667
  return entry;
674
668
  });
675
669
  };
676
- const serializeAws_json1_0UntagResourceRequest = (input, context) => {
670
+ const se_UntagResourceRequest = (input, context) => {
677
671
  return {
678
672
  ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
679
- ...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
673
+ ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
680
674
  };
681
675
  };
682
- const serializeAws_json1_0UpdateRescoreExecutionPlanRequest = (input, context) => {
676
+ const se_UpdateRescoreExecutionPlanRequest = (input, context) => {
683
677
  return {
684
- ...(input.CapacityUnits != null && {
685
- CapacityUnits: serializeAws_json1_0CapacityUnitsConfiguration(input.CapacityUnits, context),
686
- }),
678
+ ...(input.CapacityUnits != null && { CapacityUnits: se_CapacityUnitsConfiguration(input.CapacityUnits, context) }),
687
679
  ...(input.Description != null && { Description: input.Description }),
688
680
  ...(input.Id != null && { Id: input.Id }),
689
681
  ...(input.Name != null && { Name: input.Name }),
690
682
  };
691
683
  };
692
- const deserializeAws_json1_0AccessDeniedException = (output, context) => {
684
+ const de_AccessDeniedException = (output, context) => {
693
685
  return {
694
686
  Message: __expectString(output.Message),
695
687
  };
696
688
  };
697
- const deserializeAws_json1_0CapacityUnitsConfiguration = (output, context) => {
689
+ const de_CapacityUnitsConfiguration = (output, context) => {
698
690
  return {
699
691
  RescoreCapacityUnits: __expectInt32(output.RescoreCapacityUnits),
700
692
  };
701
693
  };
702
- const deserializeAws_json1_0ConflictException = (output, context) => {
694
+ const de_ConflictException = (output, context) => {
703
695
  return {
704
696
  Message: __expectString(output.Message),
705
697
  };
706
698
  };
707
- const deserializeAws_json1_0CreateRescoreExecutionPlanResponse = (output, context) => {
699
+ const de_CreateRescoreExecutionPlanResponse = (output, context) => {
708
700
  return {
709
701
  Arn: __expectString(output.Arn),
710
702
  Id: __expectString(output.Id),
711
703
  };
712
704
  };
713
- const deserializeAws_json1_0DescribeRescoreExecutionPlanResponse = (output, context) => {
705
+ const de_DescribeRescoreExecutionPlanResponse = (output, context) => {
714
706
  return {
715
707
  Arn: __expectString(output.Arn),
716
- CapacityUnits: output.CapacityUnits != null
717
- ? deserializeAws_json1_0CapacityUnitsConfiguration(output.CapacityUnits, context)
718
- : undefined,
708
+ CapacityUnits: output.CapacityUnits != null ? de_CapacityUnitsConfiguration(output.CapacityUnits, context) : undefined,
719
709
  CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
720
710
  Description: __expectString(output.Description),
721
711
  ErrorMessage: __expectString(output.ErrorMessage),
@@ -725,25 +715,23 @@ const deserializeAws_json1_0DescribeRescoreExecutionPlanResponse = (output, cont
725
715
  UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
726
716
  };
727
717
  };
728
- const deserializeAws_json1_0InternalServerException = (output, context) => {
718
+ const de_InternalServerException = (output, context) => {
729
719
  return {
730
720
  Message: __expectString(output.Message),
731
721
  };
732
722
  };
733
- const deserializeAws_json1_0ListRescoreExecutionPlansResponse = (output, context) => {
723
+ const de_ListRescoreExecutionPlansResponse = (output, context) => {
734
724
  return {
735
725
  NextToken: __expectString(output.NextToken),
736
- SummaryItems: output.SummaryItems != null
737
- ? deserializeAws_json1_0RescoreExecutionPlanSummaryList(output.SummaryItems, context)
738
- : undefined,
726
+ SummaryItems: output.SummaryItems != null ? de_RescoreExecutionPlanSummaryList(output.SummaryItems, context) : undefined,
739
727
  };
740
728
  };
741
- const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
729
+ const de_ListTagsForResourceResponse = (output, context) => {
742
730
  return {
743
- Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
731
+ Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
744
732
  };
745
733
  };
746
- const deserializeAws_json1_0RescoreExecutionPlanSummary = (output, context) => {
734
+ const de_RescoreExecutionPlanSummary = (output, context) => {
747
735
  return {
748
736
  CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
749
737
  Id: __expectString(output.Id),
@@ -752,84 +740,84 @@ const deserializeAws_json1_0RescoreExecutionPlanSummary = (output, context) => {
752
740
  UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
753
741
  };
754
742
  };
755
- const deserializeAws_json1_0RescoreExecutionPlanSummaryList = (output, context) => {
743
+ const de_RescoreExecutionPlanSummaryList = (output, context) => {
756
744
  const retVal = (output || [])
757
745
  .filter((e) => e != null)
758
746
  .map((entry) => {
759
747
  if (entry === null) {
760
748
  return null;
761
749
  }
762
- return deserializeAws_json1_0RescoreExecutionPlanSummary(entry, context);
750
+ return de_RescoreExecutionPlanSummary(entry, context);
763
751
  });
764
752
  return retVal;
765
753
  };
766
- const deserializeAws_json1_0RescoreResult = (output, context) => {
754
+ const de_RescoreResult = (output, context) => {
767
755
  return {
768
756
  RescoreId: __expectString(output.RescoreId),
769
- ResultItems: output.ResultItems != null ? deserializeAws_json1_0RescoreResultItemList(output.ResultItems, context) : undefined,
757
+ ResultItems: output.ResultItems != null ? de_RescoreResultItemList(output.ResultItems, context) : undefined,
770
758
  };
771
759
  };
772
- const deserializeAws_json1_0RescoreResultItem = (output, context) => {
760
+ const de_RescoreResultItem = (output, context) => {
773
761
  return {
774
762
  DocumentId: __expectString(output.DocumentId),
775
763
  Score: __limitedParseFloat32(output.Score),
776
764
  };
777
765
  };
778
- const deserializeAws_json1_0RescoreResultItemList = (output, context) => {
766
+ const de_RescoreResultItemList = (output, context) => {
779
767
  const retVal = (output || [])
780
768
  .filter((e) => e != null)
781
769
  .map((entry) => {
782
770
  if (entry === null) {
783
771
  return null;
784
772
  }
785
- return deserializeAws_json1_0RescoreResultItem(entry, context);
773
+ return de_RescoreResultItem(entry, context);
786
774
  });
787
775
  return retVal;
788
776
  };
789
- const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
777
+ const de_ResourceNotFoundException = (output, context) => {
790
778
  return {
791
779
  Message: __expectString(output.Message),
792
780
  };
793
781
  };
794
- const deserializeAws_json1_0ResourceUnavailableException = (output, context) => {
782
+ const de_ResourceUnavailableException = (output, context) => {
795
783
  return {
796
784
  Message: __expectString(output.Message),
797
785
  };
798
786
  };
799
- const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) => {
787
+ const de_ServiceQuotaExceededException = (output, context) => {
800
788
  return {
801
789
  Message: __expectString(output.Message),
802
790
  };
803
791
  };
804
- const deserializeAws_json1_0Tag = (output, context) => {
792
+ const de_Tag = (output, context) => {
805
793
  return {
806
794
  Key: __expectString(output.Key),
807
795
  Value: __expectString(output.Value),
808
796
  };
809
797
  };
810
- const deserializeAws_json1_0TagList = (output, context) => {
798
+ const de_TagList = (output, context) => {
811
799
  const retVal = (output || [])
812
800
  .filter((e) => e != null)
813
801
  .map((entry) => {
814
802
  if (entry === null) {
815
803
  return null;
816
804
  }
817
- return deserializeAws_json1_0Tag(entry, context);
805
+ return de_Tag(entry, context);
818
806
  });
819
807
  return retVal;
820
808
  };
821
- const deserializeAws_json1_0TagResourceResponse = (output, context) => {
809
+ const de_TagResourceResponse = (output, context) => {
822
810
  return {};
823
811
  };
824
- const deserializeAws_json1_0ThrottlingException = (output, context) => {
812
+ const de_ThrottlingException = (output, context) => {
825
813
  return {
826
814
  Message: __expectString(output.Message),
827
815
  };
828
816
  };
829
- const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
817
+ const de_UntagResourceResponse = (output, context) => {
830
818
  return {};
831
819
  };
832
- const deserializeAws_json1_0ValidationException = (output, context) => {
820
+ const de_ValidationException = (output, context) => {
833
821
  return {
834
822
  Message: __expectString(output.Message),
835
823
  };