@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.
- package/dist-cjs/commands/CreateRescoreExecutionPlanCommand.js +2 -2
- package/dist-cjs/commands/DeleteRescoreExecutionPlanCommand.js +2 -2
- package/dist-cjs/commands/DescribeRescoreExecutionPlanCommand.js +2 -2
- package/dist-cjs/commands/ListRescoreExecutionPlansCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/RescoreCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateRescoreExecutionPlanCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +192 -204
- package/dist-es/commands/CreateRescoreExecutionPlanCommand.js +3 -3
- package/dist-es/commands/DeleteRescoreExecutionPlanCommand.js +3 -3
- package/dist-es/commands/DescribeRescoreExecutionPlanCommand.js +3 -3
- package/dist-es/commands/ListRescoreExecutionPlansCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/RescoreCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateRescoreExecutionPlanCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +173 -185
- package/dist-types/protocols/Aws_json1_0.d.ts +72 -18
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +18 -18
- package/package.json +29 -29
|
@@ -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
|
|
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(
|
|
12
|
+
body = JSON.stringify(se_CreateRescoreExecutionPlanRequest(input, context));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
|
-
export const
|
|
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(
|
|
21
|
+
body = JSON.stringify(se_DeleteRescoreExecutionPlanRequest(input, context));
|
|
22
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
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(
|
|
30
|
+
body = JSON.stringify(se_DescribeRescoreExecutionPlanRequest(input, context));
|
|
31
31
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
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(
|
|
39
|
+
body = JSON.stringify(se_ListRescoreExecutionPlansRequest(input, context));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
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(
|
|
48
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
|
-
export const
|
|
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(
|
|
57
|
+
body = JSON.stringify(se_RescoreRequest(input, context));
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
|
-
export const
|
|
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(
|
|
66
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
67
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
68
|
};
|
|
69
|
-
export const
|
|
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(
|
|
75
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
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(
|
|
84
|
+
body = JSON.stringify(se_UpdateRescoreExecutionPlanRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
export const
|
|
87
|
+
export const de_CreateRescoreExecutionPlanCommand = async (output, context) => {
|
|
88
88
|
if (output.statusCode >= 300) {
|
|
89
|
-
return
|
|
89
|
+
return de_CreateRescoreExecutionPlanCommandError(output, context);
|
|
90
90
|
}
|
|
91
91
|
const data = await parseBody(output.body, context);
|
|
92
92
|
let contents = {};
|
|
93
|
-
contents =
|
|
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
|
|
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
|
|
109
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
110
110
|
case "ConflictException":
|
|
111
111
|
case "com.amazonaws.kendraranking#ConflictException":
|
|
112
|
-
throw await
|
|
112
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
113
113
|
case "InternalServerException":
|
|
114
114
|
case "com.amazonaws.kendraranking#InternalServerException":
|
|
115
|
-
throw await
|
|
115
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
116
116
|
case "ServiceQuotaExceededException":
|
|
117
117
|
case "com.amazonaws.kendraranking#ServiceQuotaExceededException":
|
|
118
|
-
throw await
|
|
118
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
119
119
|
case "ThrottlingException":
|
|
120
120
|
case "com.amazonaws.kendraranking#ThrottlingException":
|
|
121
|
-
throw await
|
|
121
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
122
122
|
case "ValidationException":
|
|
123
123
|
case "com.amazonaws.kendraranking#ValidationException":
|
|
124
|
-
throw await
|
|
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
|
|
135
|
+
export const de_DeleteRescoreExecutionPlanCommand = async (output, context) => {
|
|
136
136
|
if (output.statusCode >= 300) {
|
|
137
|
-
return
|
|
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
|
|
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
|
|
154
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
155
155
|
case "ConflictException":
|
|
156
156
|
case "com.amazonaws.kendraranking#ConflictException":
|
|
157
|
-
throw await
|
|
157
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
158
158
|
case "InternalServerException":
|
|
159
159
|
case "com.amazonaws.kendraranking#InternalServerException":
|
|
160
|
-
throw await
|
|
160
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
161
161
|
case "ResourceNotFoundException":
|
|
162
162
|
case "com.amazonaws.kendraranking#ResourceNotFoundException":
|
|
163
|
-
throw await
|
|
163
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
164
164
|
case "ThrottlingException":
|
|
165
165
|
case "com.amazonaws.kendraranking#ThrottlingException":
|
|
166
|
-
throw await
|
|
166
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
167
167
|
case "ValidationException":
|
|
168
168
|
case "com.amazonaws.kendraranking#ValidationException":
|
|
169
|
-
throw await
|
|
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
|
|
180
|
+
export const de_DescribeRescoreExecutionPlanCommand = async (output, context) => {
|
|
181
181
|
if (output.statusCode >= 300) {
|
|
182
|
-
return
|
|
182
|
+
return de_DescribeRescoreExecutionPlanCommandError(output, context);
|
|
183
183
|
}
|
|
184
184
|
const data = await parseBody(output.body, context);
|
|
185
185
|
let contents = {};
|
|
186
|
-
contents =
|
|
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
|
|
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
|
|
202
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
203
203
|
case "InternalServerException":
|
|
204
204
|
case "com.amazonaws.kendraranking#InternalServerException":
|
|
205
|
-
throw await
|
|
205
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
206
206
|
case "ResourceNotFoundException":
|
|
207
207
|
case "com.amazonaws.kendraranking#ResourceNotFoundException":
|
|
208
|
-
throw await
|
|
208
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
209
209
|
case "ThrottlingException":
|
|
210
210
|
case "com.amazonaws.kendraranking#ThrottlingException":
|
|
211
|
-
throw await
|
|
211
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
212
212
|
case "ValidationException":
|
|
213
213
|
case "com.amazonaws.kendraranking#ValidationException":
|
|
214
|
-
throw await
|
|
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
|
|
225
|
+
export const de_ListRescoreExecutionPlansCommand = async (output, context) => {
|
|
226
226
|
if (output.statusCode >= 300) {
|
|
227
|
-
return
|
|
227
|
+
return de_ListRescoreExecutionPlansCommandError(output, context);
|
|
228
228
|
}
|
|
229
229
|
const data = await parseBody(output.body, context);
|
|
230
230
|
let contents = {};
|
|
231
|
-
contents =
|
|
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
|
|
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
|
|
247
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
248
248
|
case "InternalServerException":
|
|
249
249
|
case "com.amazonaws.kendraranking#InternalServerException":
|
|
250
|
-
throw await
|
|
250
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
251
251
|
case "ThrottlingException":
|
|
252
252
|
case "com.amazonaws.kendraranking#ThrottlingException":
|
|
253
|
-
throw await
|
|
253
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
254
254
|
case "ValidationException":
|
|
255
255
|
case "com.amazonaws.kendraranking#ValidationException":
|
|
256
|
-
throw await
|
|
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
|
|
267
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
268
268
|
if (output.statusCode >= 300) {
|
|
269
|
-
return
|
|
269
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
270
270
|
}
|
|
271
271
|
const data = await parseBody(output.body, context);
|
|
272
272
|
let contents = {};
|
|
273
|
-
contents =
|
|
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
|
|
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
|
|
289
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
290
290
|
case "InternalServerException":
|
|
291
291
|
case "com.amazonaws.kendraranking#InternalServerException":
|
|
292
|
-
throw await
|
|
292
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
293
293
|
case "ResourceUnavailableException":
|
|
294
294
|
case "com.amazonaws.kendraranking#ResourceUnavailableException":
|
|
295
|
-
throw await
|
|
295
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
296
296
|
case "ThrottlingException":
|
|
297
297
|
case "com.amazonaws.kendraranking#ThrottlingException":
|
|
298
|
-
throw await
|
|
298
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
299
299
|
case "ValidationException":
|
|
300
300
|
case "com.amazonaws.kendraranking#ValidationException":
|
|
301
|
-
throw await
|
|
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
|
|
312
|
+
export const de_RescoreCommand = async (output, context) => {
|
|
313
313
|
if (output.statusCode >= 300) {
|
|
314
|
-
return
|
|
314
|
+
return de_RescoreCommandError(output, context);
|
|
315
315
|
}
|
|
316
316
|
const data = await parseBody(output.body, context);
|
|
317
317
|
let contents = {};
|
|
318
|
-
contents =
|
|
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
|
|
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
|
|
334
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
335
335
|
case "ConflictException":
|
|
336
336
|
case "com.amazonaws.kendraranking#ConflictException":
|
|
337
|
-
throw await
|
|
337
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
338
338
|
case "InternalServerException":
|
|
339
339
|
case "com.amazonaws.kendraranking#InternalServerException":
|
|
340
|
-
throw await
|
|
340
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
341
341
|
case "ResourceNotFoundException":
|
|
342
342
|
case "com.amazonaws.kendraranking#ResourceNotFoundException":
|
|
343
|
-
throw await
|
|
343
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
344
344
|
case "ThrottlingException":
|
|
345
345
|
case "com.amazonaws.kendraranking#ThrottlingException":
|
|
346
|
-
throw await
|
|
346
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
347
347
|
case "ValidationException":
|
|
348
348
|
case "com.amazonaws.kendraranking#ValidationException":
|
|
349
|
-
throw await
|
|
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
|
|
360
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
361
361
|
if (output.statusCode >= 300) {
|
|
362
|
-
return
|
|
362
|
+
return de_TagResourceCommandError(output, context);
|
|
363
363
|
}
|
|
364
364
|
const data = await parseBody(output.body, context);
|
|
365
365
|
let contents = {};
|
|
366
|
-
contents =
|
|
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
|
|
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
|
|
382
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
383
383
|
case "InternalServerException":
|
|
384
384
|
case "com.amazonaws.kendraranking#InternalServerException":
|
|
385
|
-
throw await
|
|
385
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
386
386
|
case "ResourceUnavailableException":
|
|
387
387
|
case "com.amazonaws.kendraranking#ResourceUnavailableException":
|
|
388
|
-
throw await
|
|
388
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
389
389
|
case "ThrottlingException":
|
|
390
390
|
case "com.amazonaws.kendraranking#ThrottlingException":
|
|
391
|
-
throw await
|
|
391
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
392
392
|
case "ValidationException":
|
|
393
393
|
case "com.amazonaws.kendraranking#ValidationException":
|
|
394
|
-
throw await
|
|
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
|
|
405
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
406
406
|
if (output.statusCode >= 300) {
|
|
407
|
-
return
|
|
407
|
+
return de_UntagResourceCommandError(output, context);
|
|
408
408
|
}
|
|
409
409
|
const data = await parseBody(output.body, context);
|
|
410
410
|
let contents = {};
|
|
411
|
-
contents =
|
|
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
|
|
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
|
|
427
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
428
428
|
case "InternalServerException":
|
|
429
429
|
case "com.amazonaws.kendraranking#InternalServerException":
|
|
430
|
-
throw await
|
|
430
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
431
431
|
case "ResourceUnavailableException":
|
|
432
432
|
case "com.amazonaws.kendraranking#ResourceUnavailableException":
|
|
433
|
-
throw await
|
|
433
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
434
434
|
case "ThrottlingException":
|
|
435
435
|
case "com.amazonaws.kendraranking#ThrottlingException":
|
|
436
|
-
throw await
|
|
436
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
437
437
|
case "ValidationException":
|
|
438
438
|
case "com.amazonaws.kendraranking#ValidationException":
|
|
439
|
-
throw await
|
|
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
|
|
450
|
+
export const de_UpdateRescoreExecutionPlanCommand = async (output, context) => {
|
|
451
451
|
if (output.statusCode >= 300) {
|
|
452
|
-
return
|
|
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
|
|
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
|
|
469
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
470
470
|
case "ConflictException":
|
|
471
471
|
case "com.amazonaws.kendraranking#ConflictException":
|
|
472
|
-
throw await
|
|
472
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
473
473
|
case "InternalServerException":
|
|
474
474
|
case "com.amazonaws.kendraranking#InternalServerException":
|
|
475
|
-
throw await
|
|
475
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
476
476
|
case "ResourceNotFoundException":
|
|
477
477
|
case "com.amazonaws.kendraranking#ResourceNotFoundException":
|
|
478
|
-
throw await
|
|
478
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
479
479
|
case "ServiceQuotaExceededException":
|
|
480
480
|
case "com.amazonaws.kendraranking#ServiceQuotaExceededException":
|
|
481
|
-
throw await
|
|
481
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
482
482
|
case "ThrottlingException":
|
|
483
483
|
case "com.amazonaws.kendraranking#ThrottlingException":
|
|
484
|
-
throw await
|
|
484
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
485
485
|
case "ValidationException":
|
|
486
486
|
case "com.amazonaws.kendraranking#ValidationException":
|
|
487
|
-
throw await
|
|
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
|
|
498
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
499
499
|
const body = parsedOutput.body;
|
|
500
|
-
const deserialized =
|
|
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
|
|
507
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
508
508
|
const body = parsedOutput.body;
|
|
509
|
-
const deserialized =
|
|
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
|
|
516
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
517
517
|
const body = parsedOutput.body;
|
|
518
|
-
const deserialized =
|
|
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
|
|
525
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
526
526
|
const body = parsedOutput.body;
|
|
527
|
-
const deserialized =
|
|
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
|
|
534
|
+
const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
535
535
|
const body = parsedOutput.body;
|
|
536
|
-
const deserialized =
|
|
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
|
|
543
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
544
544
|
const body = parsedOutput.body;
|
|
545
|
-
const deserialized =
|
|
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
|
|
552
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
553
553
|
const body = parsedOutput.body;
|
|
554
|
-
const deserialized =
|
|
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
|
|
561
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
562
562
|
const body = parsedOutput.body;
|
|
563
|
-
const deserialized =
|
|
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
|
|
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
|
|
577
|
+
const se_CapacityUnitsConfiguration = (input, context) => {
|
|
578
578
|
return {
|
|
579
579
|
...(input.RescoreCapacityUnits != null && { RescoreCapacityUnits: input.RescoreCapacityUnits }),
|
|
580
580
|
};
|
|
581
581
|
};
|
|
582
|
-
const
|
|
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:
|
|
588
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
591
589
|
};
|
|
592
590
|
};
|
|
593
|
-
const
|
|
591
|
+
const se_DeleteRescoreExecutionPlanRequest = (input, context) => {
|
|
594
592
|
return {
|
|
595
593
|
...(input.Id != null && { Id: input.Id }),
|
|
596
594
|
};
|
|
597
595
|
};
|
|
598
|
-
const
|
|
596
|
+
const se_DescribeRescoreExecutionPlanRequest = (input, context) => {
|
|
599
597
|
return {
|
|
600
598
|
...(input.Id != null && { Id: input.Id }),
|
|
601
599
|
};
|
|
602
600
|
};
|
|
603
|
-
const
|
|
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
|
-
|
|
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
|
|
612
|
+
const se_DocumentList = (input, context) => {
|
|
619
613
|
return input
|
|
620
614
|
.filter((e) => e != null)
|
|
621
615
|
.map((entry) => {
|
|
622
|
-
return
|
|
616
|
+
return se_Document(entry, context);
|
|
623
617
|
});
|
|
624
618
|
};
|
|
625
|
-
const
|
|
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
|
|
625
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
632
626
|
return {
|
|
633
627
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
634
628
|
};
|
|
635
629
|
};
|
|
636
|
-
const
|
|
630
|
+
const se_RescoreRequest = (input, context) => {
|
|
637
631
|
return {
|
|
638
|
-
...(input.Documents != null && { Documents:
|
|
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
|
|
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
|
|
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
|
|
650
|
+
const se_TagList = (input, context) => {
|
|
657
651
|
return input
|
|
658
652
|
.filter((e) => e != null)
|
|
659
653
|
.map((entry) => {
|
|
660
|
-
return
|
|
654
|
+
return se_Tag(entry, context);
|
|
661
655
|
});
|
|
662
656
|
};
|
|
663
|
-
const
|
|
657
|
+
const se_TagResourceRequest = (input, context) => {
|
|
664
658
|
return {
|
|
665
659
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
666
|
-
...(input.Tags != null && { Tags:
|
|
660
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
667
661
|
};
|
|
668
662
|
};
|
|
669
|
-
const
|
|
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
|
|
670
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
677
671
|
return {
|
|
678
672
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
679
|
-
...(input.TagKeys != null && { TagKeys:
|
|
673
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
680
674
|
};
|
|
681
675
|
};
|
|
682
|
-
const
|
|
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
|
|
684
|
+
const de_AccessDeniedException = (output, context) => {
|
|
693
685
|
return {
|
|
694
686
|
Message: __expectString(output.Message),
|
|
695
687
|
};
|
|
696
688
|
};
|
|
697
|
-
const
|
|
689
|
+
const de_CapacityUnitsConfiguration = (output, context) => {
|
|
698
690
|
return {
|
|
699
691
|
RescoreCapacityUnits: __expectInt32(output.RescoreCapacityUnits),
|
|
700
692
|
};
|
|
701
693
|
};
|
|
702
|
-
const
|
|
694
|
+
const de_ConflictException = (output, context) => {
|
|
703
695
|
return {
|
|
704
696
|
Message: __expectString(output.Message),
|
|
705
697
|
};
|
|
706
698
|
};
|
|
707
|
-
const
|
|
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
|
|
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
|
|
718
|
+
const de_InternalServerException = (output, context) => {
|
|
729
719
|
return {
|
|
730
720
|
Message: __expectString(output.Message),
|
|
731
721
|
};
|
|
732
722
|
};
|
|
733
|
-
const
|
|
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
|
|
729
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
742
730
|
return {
|
|
743
|
-
Tags: output.Tags != null ?
|
|
731
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
744
732
|
};
|
|
745
733
|
};
|
|
746
|
-
const
|
|
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
|
|
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
|
|
750
|
+
return de_RescoreExecutionPlanSummary(entry, context);
|
|
763
751
|
});
|
|
764
752
|
return retVal;
|
|
765
753
|
};
|
|
766
|
-
const
|
|
754
|
+
const de_RescoreResult = (output, context) => {
|
|
767
755
|
return {
|
|
768
756
|
RescoreId: __expectString(output.RescoreId),
|
|
769
|
-
ResultItems: output.ResultItems != null ?
|
|
757
|
+
ResultItems: output.ResultItems != null ? de_RescoreResultItemList(output.ResultItems, context) : undefined,
|
|
770
758
|
};
|
|
771
759
|
};
|
|
772
|
-
const
|
|
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
|
|
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
|
|
773
|
+
return de_RescoreResultItem(entry, context);
|
|
786
774
|
});
|
|
787
775
|
return retVal;
|
|
788
776
|
};
|
|
789
|
-
const
|
|
777
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
790
778
|
return {
|
|
791
779
|
Message: __expectString(output.Message),
|
|
792
780
|
};
|
|
793
781
|
};
|
|
794
|
-
const
|
|
782
|
+
const de_ResourceUnavailableException = (output, context) => {
|
|
795
783
|
return {
|
|
796
784
|
Message: __expectString(output.Message),
|
|
797
785
|
};
|
|
798
786
|
};
|
|
799
|
-
const
|
|
787
|
+
const de_ServiceQuotaExceededException = (output, context) => {
|
|
800
788
|
return {
|
|
801
789
|
Message: __expectString(output.Message),
|
|
802
790
|
};
|
|
803
791
|
};
|
|
804
|
-
const
|
|
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
|
|
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
|
|
805
|
+
return de_Tag(entry, context);
|
|
818
806
|
});
|
|
819
807
|
return retVal;
|
|
820
808
|
};
|
|
821
|
-
const
|
|
809
|
+
const de_TagResourceResponse = (output, context) => {
|
|
822
810
|
return {};
|
|
823
811
|
};
|
|
824
|
-
const
|
|
812
|
+
const de_ThrottlingException = (output, context) => {
|
|
825
813
|
return {
|
|
826
814
|
Message: __expectString(output.Message),
|
|
827
815
|
};
|
|
828
816
|
};
|
|
829
|
-
const
|
|
817
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
830
818
|
return {};
|
|
831
819
|
};
|
|
832
|
-
const
|
|
820
|
+
const de_ValidationException = (output, context) => {
|
|
833
821
|
return {
|
|
834
822
|
Message: __expectString(output.Message),
|
|
835
823
|
};
|