@aws-sdk/client-cloudsearch 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_query.js +82 -156
- package/dist-es/protocols/Aws_query.js +83 -157
- package/package.json +6 -6
|
@@ -8,9 +8,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
|
|
|
8
8
|
const CloudSearchServiceException_1 = require("../models/CloudSearchServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_BuildSuggestersCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
13
|
-
};
|
|
11
|
+
const headers = SHARED_HEADERS;
|
|
14
12
|
let body;
|
|
15
13
|
body = buildFormUrlencodedString({
|
|
16
14
|
...se_BuildSuggestersRequest(input, context),
|
|
@@ -21,9 +19,7 @@ const se_BuildSuggestersCommand = async (input, context) => {
|
|
|
21
19
|
};
|
|
22
20
|
exports.se_BuildSuggestersCommand = se_BuildSuggestersCommand;
|
|
23
21
|
const se_CreateDomainCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
26
|
-
};
|
|
22
|
+
const headers = SHARED_HEADERS;
|
|
27
23
|
let body;
|
|
28
24
|
body = buildFormUrlencodedString({
|
|
29
25
|
...se_CreateDomainRequest(input, context),
|
|
@@ -34,9 +30,7 @@ const se_CreateDomainCommand = async (input, context) => {
|
|
|
34
30
|
};
|
|
35
31
|
exports.se_CreateDomainCommand = se_CreateDomainCommand;
|
|
36
32
|
const se_DefineAnalysisSchemeCommand = async (input, context) => {
|
|
37
|
-
const headers =
|
|
38
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
39
|
-
};
|
|
33
|
+
const headers = SHARED_HEADERS;
|
|
40
34
|
let body;
|
|
41
35
|
body = buildFormUrlencodedString({
|
|
42
36
|
...se_DefineAnalysisSchemeRequest(input, context),
|
|
@@ -47,9 +41,7 @@ const se_DefineAnalysisSchemeCommand = async (input, context) => {
|
|
|
47
41
|
};
|
|
48
42
|
exports.se_DefineAnalysisSchemeCommand = se_DefineAnalysisSchemeCommand;
|
|
49
43
|
const se_DefineExpressionCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
52
|
-
};
|
|
44
|
+
const headers = SHARED_HEADERS;
|
|
53
45
|
let body;
|
|
54
46
|
body = buildFormUrlencodedString({
|
|
55
47
|
...se_DefineExpressionRequest(input, context),
|
|
@@ -60,9 +52,7 @@ const se_DefineExpressionCommand = async (input, context) => {
|
|
|
60
52
|
};
|
|
61
53
|
exports.se_DefineExpressionCommand = se_DefineExpressionCommand;
|
|
62
54
|
const se_DefineIndexFieldCommand = async (input, context) => {
|
|
63
|
-
const headers =
|
|
64
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
65
|
-
};
|
|
55
|
+
const headers = SHARED_HEADERS;
|
|
66
56
|
let body;
|
|
67
57
|
body = buildFormUrlencodedString({
|
|
68
58
|
...se_DefineIndexFieldRequest(input, context),
|
|
@@ -73,9 +63,7 @@ const se_DefineIndexFieldCommand = async (input, context) => {
|
|
|
73
63
|
};
|
|
74
64
|
exports.se_DefineIndexFieldCommand = se_DefineIndexFieldCommand;
|
|
75
65
|
const se_DefineSuggesterCommand = async (input, context) => {
|
|
76
|
-
const headers =
|
|
77
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
78
|
-
};
|
|
66
|
+
const headers = SHARED_HEADERS;
|
|
79
67
|
let body;
|
|
80
68
|
body = buildFormUrlencodedString({
|
|
81
69
|
...se_DefineSuggesterRequest(input, context),
|
|
@@ -86,9 +74,7 @@ const se_DefineSuggesterCommand = async (input, context) => {
|
|
|
86
74
|
};
|
|
87
75
|
exports.se_DefineSuggesterCommand = se_DefineSuggesterCommand;
|
|
88
76
|
const se_DeleteAnalysisSchemeCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
91
|
-
};
|
|
77
|
+
const headers = SHARED_HEADERS;
|
|
92
78
|
let body;
|
|
93
79
|
body = buildFormUrlencodedString({
|
|
94
80
|
...se_DeleteAnalysisSchemeRequest(input, context),
|
|
@@ -99,9 +85,7 @@ const se_DeleteAnalysisSchemeCommand = async (input, context) => {
|
|
|
99
85
|
};
|
|
100
86
|
exports.se_DeleteAnalysisSchemeCommand = se_DeleteAnalysisSchemeCommand;
|
|
101
87
|
const se_DeleteDomainCommand = async (input, context) => {
|
|
102
|
-
const headers =
|
|
103
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
104
|
-
};
|
|
88
|
+
const headers = SHARED_HEADERS;
|
|
105
89
|
let body;
|
|
106
90
|
body = buildFormUrlencodedString({
|
|
107
91
|
...se_DeleteDomainRequest(input, context),
|
|
@@ -112,9 +96,7 @@ const se_DeleteDomainCommand = async (input, context) => {
|
|
|
112
96
|
};
|
|
113
97
|
exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
|
|
114
98
|
const se_DeleteExpressionCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
117
|
-
};
|
|
99
|
+
const headers = SHARED_HEADERS;
|
|
118
100
|
let body;
|
|
119
101
|
body = buildFormUrlencodedString({
|
|
120
102
|
...se_DeleteExpressionRequest(input, context),
|
|
@@ -125,9 +107,7 @@ const se_DeleteExpressionCommand = async (input, context) => {
|
|
|
125
107
|
};
|
|
126
108
|
exports.se_DeleteExpressionCommand = se_DeleteExpressionCommand;
|
|
127
109
|
const se_DeleteIndexFieldCommand = async (input, context) => {
|
|
128
|
-
const headers =
|
|
129
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
130
|
-
};
|
|
110
|
+
const headers = SHARED_HEADERS;
|
|
131
111
|
let body;
|
|
132
112
|
body = buildFormUrlencodedString({
|
|
133
113
|
...se_DeleteIndexFieldRequest(input, context),
|
|
@@ -138,9 +118,7 @@ const se_DeleteIndexFieldCommand = async (input, context) => {
|
|
|
138
118
|
};
|
|
139
119
|
exports.se_DeleteIndexFieldCommand = se_DeleteIndexFieldCommand;
|
|
140
120
|
const se_DeleteSuggesterCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
143
|
-
};
|
|
121
|
+
const headers = SHARED_HEADERS;
|
|
144
122
|
let body;
|
|
145
123
|
body = buildFormUrlencodedString({
|
|
146
124
|
...se_DeleteSuggesterRequest(input, context),
|
|
@@ -151,9 +129,7 @@ const se_DeleteSuggesterCommand = async (input, context) => {
|
|
|
151
129
|
};
|
|
152
130
|
exports.se_DeleteSuggesterCommand = se_DeleteSuggesterCommand;
|
|
153
131
|
const se_DescribeAnalysisSchemesCommand = async (input, context) => {
|
|
154
|
-
const headers =
|
|
155
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
156
|
-
};
|
|
132
|
+
const headers = SHARED_HEADERS;
|
|
157
133
|
let body;
|
|
158
134
|
body = buildFormUrlencodedString({
|
|
159
135
|
...se_DescribeAnalysisSchemesRequest(input, context),
|
|
@@ -164,9 +140,7 @@ const se_DescribeAnalysisSchemesCommand = async (input, context) => {
|
|
|
164
140
|
};
|
|
165
141
|
exports.se_DescribeAnalysisSchemesCommand = se_DescribeAnalysisSchemesCommand;
|
|
166
142
|
const se_DescribeAvailabilityOptionsCommand = async (input, context) => {
|
|
167
|
-
const headers =
|
|
168
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
169
|
-
};
|
|
143
|
+
const headers = SHARED_HEADERS;
|
|
170
144
|
let body;
|
|
171
145
|
body = buildFormUrlencodedString({
|
|
172
146
|
...se_DescribeAvailabilityOptionsRequest(input, context),
|
|
@@ -177,9 +151,7 @@ const se_DescribeAvailabilityOptionsCommand = async (input, context) => {
|
|
|
177
151
|
};
|
|
178
152
|
exports.se_DescribeAvailabilityOptionsCommand = se_DescribeAvailabilityOptionsCommand;
|
|
179
153
|
const se_DescribeDomainEndpointOptionsCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
182
|
-
};
|
|
154
|
+
const headers = SHARED_HEADERS;
|
|
183
155
|
let body;
|
|
184
156
|
body = buildFormUrlencodedString({
|
|
185
157
|
...se_DescribeDomainEndpointOptionsRequest(input, context),
|
|
@@ -190,9 +162,7 @@ const se_DescribeDomainEndpointOptionsCommand = async (input, context) => {
|
|
|
190
162
|
};
|
|
191
163
|
exports.se_DescribeDomainEndpointOptionsCommand = se_DescribeDomainEndpointOptionsCommand;
|
|
192
164
|
const se_DescribeDomainsCommand = async (input, context) => {
|
|
193
|
-
const headers =
|
|
194
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
195
|
-
};
|
|
165
|
+
const headers = SHARED_HEADERS;
|
|
196
166
|
let body;
|
|
197
167
|
body = buildFormUrlencodedString({
|
|
198
168
|
...se_DescribeDomainsRequest(input, context),
|
|
@@ -203,9 +173,7 @@ const se_DescribeDomainsCommand = async (input, context) => {
|
|
|
203
173
|
};
|
|
204
174
|
exports.se_DescribeDomainsCommand = se_DescribeDomainsCommand;
|
|
205
175
|
const se_DescribeExpressionsCommand = async (input, context) => {
|
|
206
|
-
const headers =
|
|
207
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
208
|
-
};
|
|
176
|
+
const headers = SHARED_HEADERS;
|
|
209
177
|
let body;
|
|
210
178
|
body = buildFormUrlencodedString({
|
|
211
179
|
...se_DescribeExpressionsRequest(input, context),
|
|
@@ -216,9 +184,7 @@ const se_DescribeExpressionsCommand = async (input, context) => {
|
|
|
216
184
|
};
|
|
217
185
|
exports.se_DescribeExpressionsCommand = se_DescribeExpressionsCommand;
|
|
218
186
|
const se_DescribeIndexFieldsCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
221
|
-
};
|
|
187
|
+
const headers = SHARED_HEADERS;
|
|
222
188
|
let body;
|
|
223
189
|
body = buildFormUrlencodedString({
|
|
224
190
|
...se_DescribeIndexFieldsRequest(input, context),
|
|
@@ -229,9 +195,7 @@ const se_DescribeIndexFieldsCommand = async (input, context) => {
|
|
|
229
195
|
};
|
|
230
196
|
exports.se_DescribeIndexFieldsCommand = se_DescribeIndexFieldsCommand;
|
|
231
197
|
const se_DescribeScalingParametersCommand = async (input, context) => {
|
|
232
|
-
const headers =
|
|
233
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
234
|
-
};
|
|
198
|
+
const headers = SHARED_HEADERS;
|
|
235
199
|
let body;
|
|
236
200
|
body = buildFormUrlencodedString({
|
|
237
201
|
...se_DescribeScalingParametersRequest(input, context),
|
|
@@ -242,9 +206,7 @@ const se_DescribeScalingParametersCommand = async (input, context) => {
|
|
|
242
206
|
};
|
|
243
207
|
exports.se_DescribeScalingParametersCommand = se_DescribeScalingParametersCommand;
|
|
244
208
|
const se_DescribeServiceAccessPoliciesCommand = async (input, context) => {
|
|
245
|
-
const headers =
|
|
246
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
247
|
-
};
|
|
209
|
+
const headers = SHARED_HEADERS;
|
|
248
210
|
let body;
|
|
249
211
|
body = buildFormUrlencodedString({
|
|
250
212
|
...se_DescribeServiceAccessPoliciesRequest(input, context),
|
|
@@ -255,9 +217,7 @@ const se_DescribeServiceAccessPoliciesCommand = async (input, context) => {
|
|
|
255
217
|
};
|
|
256
218
|
exports.se_DescribeServiceAccessPoliciesCommand = se_DescribeServiceAccessPoliciesCommand;
|
|
257
219
|
const se_DescribeSuggestersCommand = async (input, context) => {
|
|
258
|
-
const headers =
|
|
259
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
260
|
-
};
|
|
220
|
+
const headers = SHARED_HEADERS;
|
|
261
221
|
let body;
|
|
262
222
|
body = buildFormUrlencodedString({
|
|
263
223
|
...se_DescribeSuggestersRequest(input, context),
|
|
@@ -268,9 +228,7 @@ const se_DescribeSuggestersCommand = async (input, context) => {
|
|
|
268
228
|
};
|
|
269
229
|
exports.se_DescribeSuggestersCommand = se_DescribeSuggestersCommand;
|
|
270
230
|
const se_IndexDocumentsCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
273
|
-
};
|
|
231
|
+
const headers = SHARED_HEADERS;
|
|
274
232
|
let body;
|
|
275
233
|
body = buildFormUrlencodedString({
|
|
276
234
|
...se_IndexDocumentsRequest(input, context),
|
|
@@ -281,9 +239,7 @@ const se_IndexDocumentsCommand = async (input, context) => {
|
|
|
281
239
|
};
|
|
282
240
|
exports.se_IndexDocumentsCommand = se_IndexDocumentsCommand;
|
|
283
241
|
const se_ListDomainNamesCommand = async (input, context) => {
|
|
284
|
-
const headers =
|
|
285
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
286
|
-
};
|
|
242
|
+
const headers = SHARED_HEADERS;
|
|
287
243
|
const body = buildFormUrlencodedString({
|
|
288
244
|
Action: "ListDomainNames",
|
|
289
245
|
Version: "2013-01-01",
|
|
@@ -292,9 +248,7 @@ const se_ListDomainNamesCommand = async (input, context) => {
|
|
|
292
248
|
};
|
|
293
249
|
exports.se_ListDomainNamesCommand = se_ListDomainNamesCommand;
|
|
294
250
|
const se_UpdateAvailabilityOptionsCommand = async (input, context) => {
|
|
295
|
-
const headers =
|
|
296
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
297
|
-
};
|
|
251
|
+
const headers = SHARED_HEADERS;
|
|
298
252
|
let body;
|
|
299
253
|
body = buildFormUrlencodedString({
|
|
300
254
|
...se_UpdateAvailabilityOptionsRequest(input, context),
|
|
@@ -305,9 +259,7 @@ const se_UpdateAvailabilityOptionsCommand = async (input, context) => {
|
|
|
305
259
|
};
|
|
306
260
|
exports.se_UpdateAvailabilityOptionsCommand = se_UpdateAvailabilityOptionsCommand;
|
|
307
261
|
const se_UpdateDomainEndpointOptionsCommand = async (input, context) => {
|
|
308
|
-
const headers =
|
|
309
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
310
|
-
};
|
|
262
|
+
const headers = SHARED_HEADERS;
|
|
311
263
|
let body;
|
|
312
264
|
body = buildFormUrlencodedString({
|
|
313
265
|
...se_UpdateDomainEndpointOptionsRequest(input, context),
|
|
@@ -318,9 +270,7 @@ const se_UpdateDomainEndpointOptionsCommand = async (input, context) => {
|
|
|
318
270
|
};
|
|
319
271
|
exports.se_UpdateDomainEndpointOptionsCommand = se_UpdateDomainEndpointOptionsCommand;
|
|
320
272
|
const se_UpdateScalingParametersCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
323
|
-
};
|
|
273
|
+
const headers = SHARED_HEADERS;
|
|
324
274
|
let body;
|
|
325
275
|
body = buildFormUrlencodedString({
|
|
326
276
|
...se_UpdateScalingParametersRequest(input, context),
|
|
@@ -331,9 +281,7 @@ const se_UpdateScalingParametersCommand = async (input, context) => {
|
|
|
331
281
|
};
|
|
332
282
|
exports.se_UpdateScalingParametersCommand = se_UpdateScalingParametersCommand;
|
|
333
283
|
const se_UpdateServiceAccessPoliciesCommand = async (input, context) => {
|
|
334
|
-
const headers =
|
|
335
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
336
|
-
};
|
|
284
|
+
const headers = SHARED_HEADERS;
|
|
337
285
|
let body;
|
|
338
286
|
body = buildFormUrlencodedString({
|
|
339
287
|
...se_UpdateServiceAccessPoliciesRequest(input, context),
|
|
@@ -354,7 +302,7 @@ const de_BuildSuggestersCommand = async (output, context) => {
|
|
|
354
302
|
$metadata: deserializeMetadata(output),
|
|
355
303
|
...contents,
|
|
356
304
|
};
|
|
357
|
-
return
|
|
305
|
+
return response;
|
|
358
306
|
};
|
|
359
307
|
exports.de_BuildSuggestersCommand = de_BuildSuggestersCommand;
|
|
360
308
|
const de_BuildSuggestersCommandError = async (output, context) => {
|
|
@@ -378,10 +326,9 @@ const de_BuildSuggestersCommandError = async (output, context) => {
|
|
|
378
326
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
379
327
|
default:
|
|
380
328
|
const parsedBody = parsedOutput.body;
|
|
381
|
-
|
|
329
|
+
return throwDefaultError({
|
|
382
330
|
output,
|
|
383
331
|
parsedBody: parsedBody.Error,
|
|
384
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
385
332
|
errorCode,
|
|
386
333
|
});
|
|
387
334
|
}
|
|
@@ -397,7 +344,7 @@ const de_CreateDomainCommand = async (output, context) => {
|
|
|
397
344
|
$metadata: deserializeMetadata(output),
|
|
398
345
|
...contents,
|
|
399
346
|
};
|
|
400
|
-
return
|
|
347
|
+
return response;
|
|
401
348
|
};
|
|
402
349
|
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
403
350
|
const de_CreateDomainCommandError = async (output, context) => {
|
|
@@ -424,10 +371,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
424
371
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
425
372
|
default:
|
|
426
373
|
const parsedBody = parsedOutput.body;
|
|
427
|
-
|
|
374
|
+
return throwDefaultError({
|
|
428
375
|
output,
|
|
429
376
|
parsedBody: parsedBody.Error,
|
|
430
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
431
377
|
errorCode,
|
|
432
378
|
});
|
|
433
379
|
}
|
|
@@ -443,7 +389,7 @@ const de_DefineAnalysisSchemeCommand = async (output, context) => {
|
|
|
443
389
|
$metadata: deserializeMetadata(output),
|
|
444
390
|
...contents,
|
|
445
391
|
};
|
|
446
|
-
return
|
|
392
|
+
return response;
|
|
447
393
|
};
|
|
448
394
|
exports.de_DefineAnalysisSchemeCommand = de_DefineAnalysisSchemeCommand;
|
|
449
395
|
const de_DefineAnalysisSchemeCommandError = async (output, context) => {
|
|
@@ -473,10 +419,9 @@ const de_DefineAnalysisSchemeCommandError = async (output, context) => {
|
|
|
473
419
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
474
420
|
default:
|
|
475
421
|
const parsedBody = parsedOutput.body;
|
|
476
|
-
|
|
422
|
+
return throwDefaultError({
|
|
477
423
|
output,
|
|
478
424
|
parsedBody: parsedBody.Error,
|
|
479
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
480
425
|
errorCode,
|
|
481
426
|
});
|
|
482
427
|
}
|
|
@@ -492,7 +437,7 @@ const de_DefineExpressionCommand = async (output, context) => {
|
|
|
492
437
|
$metadata: deserializeMetadata(output),
|
|
493
438
|
...contents,
|
|
494
439
|
};
|
|
495
|
-
return
|
|
440
|
+
return response;
|
|
496
441
|
};
|
|
497
442
|
exports.de_DefineExpressionCommand = de_DefineExpressionCommand;
|
|
498
443
|
const de_DefineExpressionCommandError = async (output, context) => {
|
|
@@ -522,10 +467,9 @@ const de_DefineExpressionCommandError = async (output, context) => {
|
|
|
522
467
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
523
468
|
default:
|
|
524
469
|
const parsedBody = parsedOutput.body;
|
|
525
|
-
|
|
470
|
+
return throwDefaultError({
|
|
526
471
|
output,
|
|
527
472
|
parsedBody: parsedBody.Error,
|
|
528
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
529
473
|
errorCode,
|
|
530
474
|
});
|
|
531
475
|
}
|
|
@@ -541,7 +485,7 @@ const de_DefineIndexFieldCommand = async (output, context) => {
|
|
|
541
485
|
$metadata: deserializeMetadata(output),
|
|
542
486
|
...contents,
|
|
543
487
|
};
|
|
544
|
-
return
|
|
488
|
+
return response;
|
|
545
489
|
};
|
|
546
490
|
exports.de_DefineIndexFieldCommand = de_DefineIndexFieldCommand;
|
|
547
491
|
const de_DefineIndexFieldCommandError = async (output, context) => {
|
|
@@ -571,10 +515,9 @@ const de_DefineIndexFieldCommandError = async (output, context) => {
|
|
|
571
515
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
572
516
|
default:
|
|
573
517
|
const parsedBody = parsedOutput.body;
|
|
574
|
-
|
|
518
|
+
return throwDefaultError({
|
|
575
519
|
output,
|
|
576
520
|
parsedBody: parsedBody.Error,
|
|
577
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
578
521
|
errorCode,
|
|
579
522
|
});
|
|
580
523
|
}
|
|
@@ -590,7 +533,7 @@ const de_DefineSuggesterCommand = async (output, context) => {
|
|
|
590
533
|
$metadata: deserializeMetadata(output),
|
|
591
534
|
...contents,
|
|
592
535
|
};
|
|
593
|
-
return
|
|
536
|
+
return response;
|
|
594
537
|
};
|
|
595
538
|
exports.de_DefineSuggesterCommand = de_DefineSuggesterCommand;
|
|
596
539
|
const de_DefineSuggesterCommandError = async (output, context) => {
|
|
@@ -620,10 +563,9 @@ const de_DefineSuggesterCommandError = async (output, context) => {
|
|
|
620
563
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
621
564
|
default:
|
|
622
565
|
const parsedBody = parsedOutput.body;
|
|
623
|
-
|
|
566
|
+
return throwDefaultError({
|
|
624
567
|
output,
|
|
625
568
|
parsedBody: parsedBody.Error,
|
|
626
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
627
569
|
errorCode,
|
|
628
570
|
});
|
|
629
571
|
}
|
|
@@ -639,7 +581,7 @@ const de_DeleteAnalysisSchemeCommand = async (output, context) => {
|
|
|
639
581
|
$metadata: deserializeMetadata(output),
|
|
640
582
|
...contents,
|
|
641
583
|
};
|
|
642
|
-
return
|
|
584
|
+
return response;
|
|
643
585
|
};
|
|
644
586
|
exports.de_DeleteAnalysisSchemeCommand = de_DeleteAnalysisSchemeCommand;
|
|
645
587
|
const de_DeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
@@ -666,10 +608,9 @@ const de_DeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
|
666
608
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
667
609
|
default:
|
|
668
610
|
const parsedBody = parsedOutput.body;
|
|
669
|
-
|
|
611
|
+
return throwDefaultError({
|
|
670
612
|
output,
|
|
671
613
|
parsedBody: parsedBody.Error,
|
|
672
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
673
614
|
errorCode,
|
|
674
615
|
});
|
|
675
616
|
}
|
|
@@ -685,7 +626,7 @@ const de_DeleteDomainCommand = async (output, context) => {
|
|
|
685
626
|
$metadata: deserializeMetadata(output),
|
|
686
627
|
...contents,
|
|
687
628
|
};
|
|
688
|
-
return
|
|
629
|
+
return response;
|
|
689
630
|
};
|
|
690
631
|
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
691
632
|
const de_DeleteDomainCommandError = async (output, context) => {
|
|
@@ -703,10 +644,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
703
644
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
704
645
|
default:
|
|
705
646
|
const parsedBody = parsedOutput.body;
|
|
706
|
-
|
|
647
|
+
return throwDefaultError({
|
|
707
648
|
output,
|
|
708
649
|
parsedBody: parsedBody.Error,
|
|
709
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
710
650
|
errorCode,
|
|
711
651
|
});
|
|
712
652
|
}
|
|
@@ -722,7 +662,7 @@ const de_DeleteExpressionCommand = async (output, context) => {
|
|
|
722
662
|
$metadata: deserializeMetadata(output),
|
|
723
663
|
...contents,
|
|
724
664
|
};
|
|
725
|
-
return
|
|
665
|
+
return response;
|
|
726
666
|
};
|
|
727
667
|
exports.de_DeleteExpressionCommand = de_DeleteExpressionCommand;
|
|
728
668
|
const de_DeleteExpressionCommandError = async (output, context) => {
|
|
@@ -749,10 +689,9 @@ const de_DeleteExpressionCommandError = async (output, context) => {
|
|
|
749
689
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
750
690
|
default:
|
|
751
691
|
const parsedBody = parsedOutput.body;
|
|
752
|
-
|
|
692
|
+
return throwDefaultError({
|
|
753
693
|
output,
|
|
754
694
|
parsedBody: parsedBody.Error,
|
|
755
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
756
695
|
errorCode,
|
|
757
696
|
});
|
|
758
697
|
}
|
|
@@ -768,7 +707,7 @@ const de_DeleteIndexFieldCommand = async (output, context) => {
|
|
|
768
707
|
$metadata: deserializeMetadata(output),
|
|
769
708
|
...contents,
|
|
770
709
|
};
|
|
771
|
-
return
|
|
710
|
+
return response;
|
|
772
711
|
};
|
|
773
712
|
exports.de_DeleteIndexFieldCommand = de_DeleteIndexFieldCommand;
|
|
774
713
|
const de_DeleteIndexFieldCommandError = async (output, context) => {
|
|
@@ -795,10 +734,9 @@ const de_DeleteIndexFieldCommandError = async (output, context) => {
|
|
|
795
734
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
796
735
|
default:
|
|
797
736
|
const parsedBody = parsedOutput.body;
|
|
798
|
-
|
|
737
|
+
return throwDefaultError({
|
|
799
738
|
output,
|
|
800
739
|
parsedBody: parsedBody.Error,
|
|
801
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
802
740
|
errorCode,
|
|
803
741
|
});
|
|
804
742
|
}
|
|
@@ -814,7 +752,7 @@ const de_DeleteSuggesterCommand = async (output, context) => {
|
|
|
814
752
|
$metadata: deserializeMetadata(output),
|
|
815
753
|
...contents,
|
|
816
754
|
};
|
|
817
|
-
return
|
|
755
|
+
return response;
|
|
818
756
|
};
|
|
819
757
|
exports.de_DeleteSuggesterCommand = de_DeleteSuggesterCommand;
|
|
820
758
|
const de_DeleteSuggesterCommandError = async (output, context) => {
|
|
@@ -841,10 +779,9 @@ const de_DeleteSuggesterCommandError = async (output, context) => {
|
|
|
841
779
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
842
780
|
default:
|
|
843
781
|
const parsedBody = parsedOutput.body;
|
|
844
|
-
|
|
782
|
+
return throwDefaultError({
|
|
845
783
|
output,
|
|
846
784
|
parsedBody: parsedBody.Error,
|
|
847
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
848
785
|
errorCode,
|
|
849
786
|
});
|
|
850
787
|
}
|
|
@@ -860,7 +797,7 @@ const de_DescribeAnalysisSchemesCommand = async (output, context) => {
|
|
|
860
797
|
$metadata: deserializeMetadata(output),
|
|
861
798
|
...contents,
|
|
862
799
|
};
|
|
863
|
-
return
|
|
800
|
+
return response;
|
|
864
801
|
};
|
|
865
802
|
exports.de_DescribeAnalysisSchemesCommand = de_DescribeAnalysisSchemesCommand;
|
|
866
803
|
const de_DescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
@@ -881,10 +818,9 @@ const de_DescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
|
881
818
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
882
819
|
default:
|
|
883
820
|
const parsedBody = parsedOutput.body;
|
|
884
|
-
|
|
821
|
+
return throwDefaultError({
|
|
885
822
|
output,
|
|
886
823
|
parsedBody: parsedBody.Error,
|
|
887
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
888
824
|
errorCode,
|
|
889
825
|
});
|
|
890
826
|
}
|
|
@@ -900,7 +836,7 @@ const de_DescribeAvailabilityOptionsCommand = async (output, context) => {
|
|
|
900
836
|
$metadata: deserializeMetadata(output),
|
|
901
837
|
...contents,
|
|
902
838
|
};
|
|
903
|
-
return
|
|
839
|
+
return response;
|
|
904
840
|
};
|
|
905
841
|
exports.de_DescribeAvailabilityOptionsCommand = de_DescribeAvailabilityOptionsCommand;
|
|
906
842
|
const de_DescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
@@ -930,10 +866,9 @@ const de_DescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
|
930
866
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
931
867
|
default:
|
|
932
868
|
const parsedBody = parsedOutput.body;
|
|
933
|
-
|
|
869
|
+
return throwDefaultError({
|
|
934
870
|
output,
|
|
935
871
|
parsedBody: parsedBody.Error,
|
|
936
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
937
872
|
errorCode,
|
|
938
873
|
});
|
|
939
874
|
}
|
|
@@ -949,7 +884,7 @@ const de_DescribeDomainEndpointOptionsCommand = async (output, context) => {
|
|
|
949
884
|
$metadata: deserializeMetadata(output),
|
|
950
885
|
...contents,
|
|
951
886
|
};
|
|
952
|
-
return
|
|
887
|
+
return response;
|
|
953
888
|
};
|
|
954
889
|
exports.de_DescribeDomainEndpointOptionsCommand = de_DescribeDomainEndpointOptionsCommand;
|
|
955
890
|
const de_DescribeDomainEndpointOptionsCommandError = async (output, context) => {
|
|
@@ -976,10 +911,9 @@ const de_DescribeDomainEndpointOptionsCommandError = async (output, context) =>
|
|
|
976
911
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
977
912
|
default:
|
|
978
913
|
const parsedBody = parsedOutput.body;
|
|
979
|
-
|
|
914
|
+
return throwDefaultError({
|
|
980
915
|
output,
|
|
981
916
|
parsedBody: parsedBody.Error,
|
|
982
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
983
917
|
errorCode,
|
|
984
918
|
});
|
|
985
919
|
}
|
|
@@ -995,7 +929,7 @@ const de_DescribeDomainsCommand = async (output, context) => {
|
|
|
995
929
|
$metadata: deserializeMetadata(output),
|
|
996
930
|
...contents,
|
|
997
931
|
};
|
|
998
|
-
return
|
|
932
|
+
return response;
|
|
999
933
|
};
|
|
1000
934
|
exports.de_DescribeDomainsCommand = de_DescribeDomainsCommand;
|
|
1001
935
|
const de_DescribeDomainsCommandError = async (output, context) => {
|
|
@@ -1013,10 +947,9 @@ const de_DescribeDomainsCommandError = async (output, context) => {
|
|
|
1013
947
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1014
948
|
default:
|
|
1015
949
|
const parsedBody = parsedOutput.body;
|
|
1016
|
-
|
|
950
|
+
return throwDefaultError({
|
|
1017
951
|
output,
|
|
1018
952
|
parsedBody: parsedBody.Error,
|
|
1019
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1020
953
|
errorCode,
|
|
1021
954
|
});
|
|
1022
955
|
}
|
|
@@ -1032,7 +965,7 @@ const de_DescribeExpressionsCommand = async (output, context) => {
|
|
|
1032
965
|
$metadata: deserializeMetadata(output),
|
|
1033
966
|
...contents,
|
|
1034
967
|
};
|
|
1035
|
-
return
|
|
968
|
+
return response;
|
|
1036
969
|
};
|
|
1037
970
|
exports.de_DescribeExpressionsCommand = de_DescribeExpressionsCommand;
|
|
1038
971
|
const de_DescribeExpressionsCommandError = async (output, context) => {
|
|
@@ -1053,10 +986,9 @@ const de_DescribeExpressionsCommandError = async (output, context) => {
|
|
|
1053
986
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1054
987
|
default:
|
|
1055
988
|
const parsedBody = parsedOutput.body;
|
|
1056
|
-
|
|
989
|
+
return throwDefaultError({
|
|
1057
990
|
output,
|
|
1058
991
|
parsedBody: parsedBody.Error,
|
|
1059
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1060
992
|
errorCode,
|
|
1061
993
|
});
|
|
1062
994
|
}
|
|
@@ -1072,7 +1004,7 @@ const de_DescribeIndexFieldsCommand = async (output, context) => {
|
|
|
1072
1004
|
$metadata: deserializeMetadata(output),
|
|
1073
1005
|
...contents,
|
|
1074
1006
|
};
|
|
1075
|
-
return
|
|
1007
|
+
return response;
|
|
1076
1008
|
};
|
|
1077
1009
|
exports.de_DescribeIndexFieldsCommand = de_DescribeIndexFieldsCommand;
|
|
1078
1010
|
const de_DescribeIndexFieldsCommandError = async (output, context) => {
|
|
@@ -1093,10 +1025,9 @@ const de_DescribeIndexFieldsCommandError = async (output, context) => {
|
|
|
1093
1025
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1094
1026
|
default:
|
|
1095
1027
|
const parsedBody = parsedOutput.body;
|
|
1096
|
-
|
|
1028
|
+
return throwDefaultError({
|
|
1097
1029
|
output,
|
|
1098
1030
|
parsedBody: parsedBody.Error,
|
|
1099
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1100
1031
|
errorCode,
|
|
1101
1032
|
});
|
|
1102
1033
|
}
|
|
@@ -1112,7 +1043,7 @@ const de_DescribeScalingParametersCommand = async (output, context) => {
|
|
|
1112
1043
|
$metadata: deserializeMetadata(output),
|
|
1113
1044
|
...contents,
|
|
1114
1045
|
};
|
|
1115
|
-
return
|
|
1046
|
+
return response;
|
|
1116
1047
|
};
|
|
1117
1048
|
exports.de_DescribeScalingParametersCommand = de_DescribeScalingParametersCommand;
|
|
1118
1049
|
const de_DescribeScalingParametersCommandError = async (output, context) => {
|
|
@@ -1133,10 +1064,9 @@ const de_DescribeScalingParametersCommandError = async (output, context) => {
|
|
|
1133
1064
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1134
1065
|
default:
|
|
1135
1066
|
const parsedBody = parsedOutput.body;
|
|
1136
|
-
|
|
1067
|
+
return throwDefaultError({
|
|
1137
1068
|
output,
|
|
1138
1069
|
parsedBody: parsedBody.Error,
|
|
1139
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1140
1070
|
errorCode,
|
|
1141
1071
|
});
|
|
1142
1072
|
}
|
|
@@ -1152,7 +1082,7 @@ const de_DescribeServiceAccessPoliciesCommand = async (output, context) => {
|
|
|
1152
1082
|
$metadata: deserializeMetadata(output),
|
|
1153
1083
|
...contents,
|
|
1154
1084
|
};
|
|
1155
|
-
return
|
|
1085
|
+
return response;
|
|
1156
1086
|
};
|
|
1157
1087
|
exports.de_DescribeServiceAccessPoliciesCommand = de_DescribeServiceAccessPoliciesCommand;
|
|
1158
1088
|
const de_DescribeServiceAccessPoliciesCommandError = async (output, context) => {
|
|
@@ -1173,10 +1103,9 @@ const de_DescribeServiceAccessPoliciesCommandError = async (output, context) =>
|
|
|
1173
1103
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1174
1104
|
default:
|
|
1175
1105
|
const parsedBody = parsedOutput.body;
|
|
1176
|
-
|
|
1106
|
+
return throwDefaultError({
|
|
1177
1107
|
output,
|
|
1178
1108
|
parsedBody: parsedBody.Error,
|
|
1179
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1180
1109
|
errorCode,
|
|
1181
1110
|
});
|
|
1182
1111
|
}
|
|
@@ -1192,7 +1121,7 @@ const de_DescribeSuggestersCommand = async (output, context) => {
|
|
|
1192
1121
|
$metadata: deserializeMetadata(output),
|
|
1193
1122
|
...contents,
|
|
1194
1123
|
};
|
|
1195
|
-
return
|
|
1124
|
+
return response;
|
|
1196
1125
|
};
|
|
1197
1126
|
exports.de_DescribeSuggestersCommand = de_DescribeSuggestersCommand;
|
|
1198
1127
|
const de_DescribeSuggestersCommandError = async (output, context) => {
|
|
@@ -1213,10 +1142,9 @@ const de_DescribeSuggestersCommandError = async (output, context) => {
|
|
|
1213
1142
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
1143
|
default:
|
|
1215
1144
|
const parsedBody = parsedOutput.body;
|
|
1216
|
-
|
|
1145
|
+
return throwDefaultError({
|
|
1217
1146
|
output,
|
|
1218
1147
|
parsedBody: parsedBody.Error,
|
|
1219
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1220
1148
|
errorCode,
|
|
1221
1149
|
});
|
|
1222
1150
|
}
|
|
@@ -1232,7 +1160,7 @@ const de_IndexDocumentsCommand = async (output, context) => {
|
|
|
1232
1160
|
$metadata: deserializeMetadata(output),
|
|
1233
1161
|
...contents,
|
|
1234
1162
|
};
|
|
1235
|
-
return
|
|
1163
|
+
return response;
|
|
1236
1164
|
};
|
|
1237
1165
|
exports.de_IndexDocumentsCommand = de_IndexDocumentsCommand;
|
|
1238
1166
|
const de_IndexDocumentsCommandError = async (output, context) => {
|
|
@@ -1256,10 +1184,9 @@ const de_IndexDocumentsCommandError = async (output, context) => {
|
|
|
1256
1184
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1257
1185
|
default:
|
|
1258
1186
|
const parsedBody = parsedOutput.body;
|
|
1259
|
-
|
|
1187
|
+
return throwDefaultError({
|
|
1260
1188
|
output,
|
|
1261
1189
|
parsedBody: parsedBody.Error,
|
|
1262
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1263
1190
|
errorCode,
|
|
1264
1191
|
});
|
|
1265
1192
|
}
|
|
@@ -1275,7 +1202,7 @@ const de_ListDomainNamesCommand = async (output, context) => {
|
|
|
1275
1202
|
$metadata: deserializeMetadata(output),
|
|
1276
1203
|
...contents,
|
|
1277
1204
|
};
|
|
1278
|
-
return
|
|
1205
|
+
return response;
|
|
1279
1206
|
};
|
|
1280
1207
|
exports.de_ListDomainNamesCommand = de_ListDomainNamesCommand;
|
|
1281
1208
|
const de_ListDomainNamesCommandError = async (output, context) => {
|
|
@@ -1290,10 +1217,9 @@ const de_ListDomainNamesCommandError = async (output, context) => {
|
|
|
1290
1217
|
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1291
1218
|
default:
|
|
1292
1219
|
const parsedBody = parsedOutput.body;
|
|
1293
|
-
|
|
1220
|
+
return throwDefaultError({
|
|
1294
1221
|
output,
|
|
1295
1222
|
parsedBody: parsedBody.Error,
|
|
1296
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1297
1223
|
errorCode,
|
|
1298
1224
|
});
|
|
1299
1225
|
}
|
|
@@ -1309,7 +1235,7 @@ const de_UpdateAvailabilityOptionsCommand = async (output, context) => {
|
|
|
1309
1235
|
$metadata: deserializeMetadata(output),
|
|
1310
1236
|
...contents,
|
|
1311
1237
|
};
|
|
1312
|
-
return
|
|
1238
|
+
return response;
|
|
1313
1239
|
};
|
|
1314
1240
|
exports.de_UpdateAvailabilityOptionsCommand = de_UpdateAvailabilityOptionsCommand;
|
|
1315
1241
|
const de_UpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
@@ -1342,10 +1268,9 @@ const de_UpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
|
1342
1268
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1343
1269
|
default:
|
|
1344
1270
|
const parsedBody = parsedOutput.body;
|
|
1345
|
-
|
|
1271
|
+
return throwDefaultError({
|
|
1346
1272
|
output,
|
|
1347
1273
|
parsedBody: parsedBody.Error,
|
|
1348
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1349
1274
|
errorCode,
|
|
1350
1275
|
});
|
|
1351
1276
|
}
|
|
@@ -1361,7 +1286,7 @@ const de_UpdateDomainEndpointOptionsCommand = async (output, context) => {
|
|
|
1361
1286
|
$metadata: deserializeMetadata(output),
|
|
1362
1287
|
...contents,
|
|
1363
1288
|
};
|
|
1364
|
-
return
|
|
1289
|
+
return response;
|
|
1365
1290
|
};
|
|
1366
1291
|
exports.de_UpdateDomainEndpointOptionsCommand = de_UpdateDomainEndpointOptionsCommand;
|
|
1367
1292
|
const de_UpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
@@ -1394,10 +1319,9 @@ const de_UpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
|
1394
1319
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1395
1320
|
default:
|
|
1396
1321
|
const parsedBody = parsedOutput.body;
|
|
1397
|
-
|
|
1322
|
+
return throwDefaultError({
|
|
1398
1323
|
output,
|
|
1399
1324
|
parsedBody: parsedBody.Error,
|
|
1400
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1401
1325
|
errorCode,
|
|
1402
1326
|
});
|
|
1403
1327
|
}
|
|
@@ -1413,7 +1337,7 @@ const de_UpdateScalingParametersCommand = async (output, context) => {
|
|
|
1413
1337
|
$metadata: deserializeMetadata(output),
|
|
1414
1338
|
...contents,
|
|
1415
1339
|
};
|
|
1416
|
-
return
|
|
1340
|
+
return response;
|
|
1417
1341
|
};
|
|
1418
1342
|
exports.de_UpdateScalingParametersCommand = de_UpdateScalingParametersCommand;
|
|
1419
1343
|
const de_UpdateScalingParametersCommandError = async (output, context) => {
|
|
@@ -1443,10 +1367,9 @@ const de_UpdateScalingParametersCommandError = async (output, context) => {
|
|
|
1443
1367
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1444
1368
|
default:
|
|
1445
1369
|
const parsedBody = parsedOutput.body;
|
|
1446
|
-
|
|
1370
|
+
return throwDefaultError({
|
|
1447
1371
|
output,
|
|
1448
1372
|
parsedBody: parsedBody.Error,
|
|
1449
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1450
1373
|
errorCode,
|
|
1451
1374
|
});
|
|
1452
1375
|
}
|
|
@@ -1462,7 +1385,7 @@ const de_UpdateServiceAccessPoliciesCommand = async (output, context) => {
|
|
|
1462
1385
|
$metadata: deserializeMetadata(output),
|
|
1463
1386
|
...contents,
|
|
1464
1387
|
};
|
|
1465
|
-
return
|
|
1388
|
+
return response;
|
|
1466
1389
|
};
|
|
1467
1390
|
exports.de_UpdateServiceAccessPoliciesCommand = de_UpdateServiceAccessPoliciesCommand;
|
|
1468
1391
|
const de_UpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
@@ -1492,10 +1415,9 @@ const de_UpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
|
1492
1415
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1493
1416
|
default:
|
|
1494
1417
|
const parsedBody = parsedOutput.body;
|
|
1495
|
-
|
|
1418
|
+
return throwDefaultError({
|
|
1496
1419
|
output,
|
|
1497
1420
|
parsedBody: parsedBody.Error,
|
|
1498
|
-
exceptionCtor: CloudSearchServiceException_1.CloudSearchServiceException,
|
|
1499
1421
|
errorCode,
|
|
1500
1422
|
});
|
|
1501
1423
|
}
|
|
@@ -3188,6 +3110,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3188
3110
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3189
3111
|
};
|
|
3190
3112
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3113
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudSearchServiceException_1.CloudSearchServiceException);
|
|
3191
3114
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3192
3115
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3193
3116
|
const contents = {
|
|
@@ -3206,6 +3129,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
3206
3129
|
}
|
|
3207
3130
|
return new protocol_http_1.HttpRequest(contents);
|
|
3208
3131
|
};
|
|
3132
|
+
const SHARED_HEADERS = {
|
|
3133
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
3134
|
+
};
|
|
3209
3135
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3210
3136
|
if (encoded.length) {
|
|
3211
3137
|
const parser = new fast_xml_parser_1.XMLParser({
|