@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
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong,
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { CloudSearchServiceException as __BaseException } from "../models/CloudSearchServiceException";
|
|
5
5
|
import { BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_BuildSuggestersCommand = async (input, context) => {
|
|
7
|
-
const headers =
|
|
8
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
9
|
-
};
|
|
7
|
+
const headers = SHARED_HEADERS;
|
|
10
8
|
let body;
|
|
11
9
|
body = buildFormUrlencodedString({
|
|
12
10
|
...se_BuildSuggestersRequest(input, context),
|
|
@@ -16,9 +14,7 @@ export const se_BuildSuggestersCommand = async (input, context) => {
|
|
|
16
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
15
|
};
|
|
18
16
|
export const se_CreateDomainCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
21
|
-
};
|
|
17
|
+
const headers = SHARED_HEADERS;
|
|
22
18
|
let body;
|
|
23
19
|
body = buildFormUrlencodedString({
|
|
24
20
|
...se_CreateDomainRequest(input, context),
|
|
@@ -28,9 +24,7 @@ export const se_CreateDomainCommand = async (input, context) => {
|
|
|
28
24
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
25
|
};
|
|
30
26
|
export const se_DefineAnalysisSchemeCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
33
|
-
};
|
|
27
|
+
const headers = SHARED_HEADERS;
|
|
34
28
|
let body;
|
|
35
29
|
body = buildFormUrlencodedString({
|
|
36
30
|
...se_DefineAnalysisSchemeRequest(input, context),
|
|
@@ -40,9 +34,7 @@ export const se_DefineAnalysisSchemeCommand = async (input, context) => {
|
|
|
40
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
35
|
};
|
|
42
36
|
export const se_DefineExpressionCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
45
|
-
};
|
|
37
|
+
const headers = SHARED_HEADERS;
|
|
46
38
|
let body;
|
|
47
39
|
body = buildFormUrlencodedString({
|
|
48
40
|
...se_DefineExpressionRequest(input, context),
|
|
@@ -52,9 +44,7 @@ export const se_DefineExpressionCommand = async (input, context) => {
|
|
|
52
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
45
|
};
|
|
54
46
|
export const se_DefineIndexFieldCommand = async (input, context) => {
|
|
55
|
-
const headers =
|
|
56
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
57
|
-
};
|
|
47
|
+
const headers = SHARED_HEADERS;
|
|
58
48
|
let body;
|
|
59
49
|
body = buildFormUrlencodedString({
|
|
60
50
|
...se_DefineIndexFieldRequest(input, context),
|
|
@@ -64,9 +54,7 @@ export const se_DefineIndexFieldCommand = async (input, context) => {
|
|
|
64
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
55
|
};
|
|
66
56
|
export const se_DefineSuggesterCommand = async (input, context) => {
|
|
67
|
-
const headers =
|
|
68
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
69
|
-
};
|
|
57
|
+
const headers = SHARED_HEADERS;
|
|
70
58
|
let body;
|
|
71
59
|
body = buildFormUrlencodedString({
|
|
72
60
|
...se_DefineSuggesterRequest(input, context),
|
|
@@ -76,9 +64,7 @@ export const se_DefineSuggesterCommand = async (input, context) => {
|
|
|
76
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
65
|
};
|
|
78
66
|
export const se_DeleteAnalysisSchemeCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
81
|
-
};
|
|
67
|
+
const headers = SHARED_HEADERS;
|
|
82
68
|
let body;
|
|
83
69
|
body = buildFormUrlencodedString({
|
|
84
70
|
...se_DeleteAnalysisSchemeRequest(input, context),
|
|
@@ -88,9 +74,7 @@ export const se_DeleteAnalysisSchemeCommand = async (input, context) => {
|
|
|
88
74
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
75
|
};
|
|
90
76
|
export const se_DeleteDomainCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
93
|
-
};
|
|
77
|
+
const headers = SHARED_HEADERS;
|
|
94
78
|
let body;
|
|
95
79
|
body = buildFormUrlencodedString({
|
|
96
80
|
...se_DeleteDomainRequest(input, context),
|
|
@@ -100,9 +84,7 @@ export const se_DeleteDomainCommand = async (input, context) => {
|
|
|
100
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
85
|
};
|
|
102
86
|
export const se_DeleteExpressionCommand = async (input, context) => {
|
|
103
|
-
const headers =
|
|
104
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
105
|
-
};
|
|
87
|
+
const headers = SHARED_HEADERS;
|
|
106
88
|
let body;
|
|
107
89
|
body = buildFormUrlencodedString({
|
|
108
90
|
...se_DeleteExpressionRequest(input, context),
|
|
@@ -112,9 +94,7 @@ export const se_DeleteExpressionCommand = async (input, context) => {
|
|
|
112
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
95
|
};
|
|
114
96
|
export const se_DeleteIndexFieldCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
117
|
-
};
|
|
97
|
+
const headers = SHARED_HEADERS;
|
|
118
98
|
let body;
|
|
119
99
|
body = buildFormUrlencodedString({
|
|
120
100
|
...se_DeleteIndexFieldRequest(input, context),
|
|
@@ -124,9 +104,7 @@ export const se_DeleteIndexFieldCommand = async (input, context) => {
|
|
|
124
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
105
|
};
|
|
126
106
|
export const se_DeleteSuggesterCommand = async (input, context) => {
|
|
127
|
-
const headers =
|
|
128
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
129
|
-
};
|
|
107
|
+
const headers = SHARED_HEADERS;
|
|
130
108
|
let body;
|
|
131
109
|
body = buildFormUrlencodedString({
|
|
132
110
|
...se_DeleteSuggesterRequest(input, context),
|
|
@@ -136,9 +114,7 @@ export const se_DeleteSuggesterCommand = async (input, context) => {
|
|
|
136
114
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
115
|
};
|
|
138
116
|
export const se_DescribeAnalysisSchemesCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
141
|
-
};
|
|
117
|
+
const headers = SHARED_HEADERS;
|
|
142
118
|
let body;
|
|
143
119
|
body = buildFormUrlencodedString({
|
|
144
120
|
...se_DescribeAnalysisSchemesRequest(input, context),
|
|
@@ -148,9 +124,7 @@ export const se_DescribeAnalysisSchemesCommand = async (input, context) => {
|
|
|
148
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
125
|
};
|
|
150
126
|
export const se_DescribeAvailabilityOptionsCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
153
|
-
};
|
|
127
|
+
const headers = SHARED_HEADERS;
|
|
154
128
|
let body;
|
|
155
129
|
body = buildFormUrlencodedString({
|
|
156
130
|
...se_DescribeAvailabilityOptionsRequest(input, context),
|
|
@@ -160,9 +134,7 @@ export const se_DescribeAvailabilityOptionsCommand = async (input, context) => {
|
|
|
160
134
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
135
|
};
|
|
162
136
|
export const se_DescribeDomainEndpointOptionsCommand = async (input, context) => {
|
|
163
|
-
const headers =
|
|
164
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
165
|
-
};
|
|
137
|
+
const headers = SHARED_HEADERS;
|
|
166
138
|
let body;
|
|
167
139
|
body = buildFormUrlencodedString({
|
|
168
140
|
...se_DescribeDomainEndpointOptionsRequest(input, context),
|
|
@@ -172,9 +144,7 @@ export const se_DescribeDomainEndpointOptionsCommand = async (input, context) =>
|
|
|
172
144
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
145
|
};
|
|
174
146
|
export const se_DescribeDomainsCommand = async (input, context) => {
|
|
175
|
-
const headers =
|
|
176
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
177
|
-
};
|
|
147
|
+
const headers = SHARED_HEADERS;
|
|
178
148
|
let body;
|
|
179
149
|
body = buildFormUrlencodedString({
|
|
180
150
|
...se_DescribeDomainsRequest(input, context),
|
|
@@ -184,9 +154,7 @@ export const se_DescribeDomainsCommand = async (input, context) => {
|
|
|
184
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
155
|
};
|
|
186
156
|
export const se_DescribeExpressionsCommand = async (input, context) => {
|
|
187
|
-
const headers =
|
|
188
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
189
|
-
};
|
|
157
|
+
const headers = SHARED_HEADERS;
|
|
190
158
|
let body;
|
|
191
159
|
body = buildFormUrlencodedString({
|
|
192
160
|
...se_DescribeExpressionsRequest(input, context),
|
|
@@ -196,9 +164,7 @@ export const se_DescribeExpressionsCommand = async (input, context) => {
|
|
|
196
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
165
|
};
|
|
198
166
|
export const se_DescribeIndexFieldsCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
201
|
-
};
|
|
167
|
+
const headers = SHARED_HEADERS;
|
|
202
168
|
let body;
|
|
203
169
|
body = buildFormUrlencodedString({
|
|
204
170
|
...se_DescribeIndexFieldsRequest(input, context),
|
|
@@ -208,9 +174,7 @@ export const se_DescribeIndexFieldsCommand = async (input, context) => {
|
|
|
208
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
175
|
};
|
|
210
176
|
export const se_DescribeScalingParametersCommand = async (input, context) => {
|
|
211
|
-
const headers =
|
|
212
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
213
|
-
};
|
|
177
|
+
const headers = SHARED_HEADERS;
|
|
214
178
|
let body;
|
|
215
179
|
body = buildFormUrlencodedString({
|
|
216
180
|
...se_DescribeScalingParametersRequest(input, context),
|
|
@@ -220,9 +184,7 @@ export const se_DescribeScalingParametersCommand = async (input, context) => {
|
|
|
220
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
185
|
};
|
|
222
186
|
export const se_DescribeServiceAccessPoliciesCommand = async (input, context) => {
|
|
223
|
-
const headers =
|
|
224
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
225
|
-
};
|
|
187
|
+
const headers = SHARED_HEADERS;
|
|
226
188
|
let body;
|
|
227
189
|
body = buildFormUrlencodedString({
|
|
228
190
|
...se_DescribeServiceAccessPoliciesRequest(input, context),
|
|
@@ -232,9 +194,7 @@ export const se_DescribeServiceAccessPoliciesCommand = async (input, context) =>
|
|
|
232
194
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
195
|
};
|
|
234
196
|
export const se_DescribeSuggestersCommand = async (input, context) => {
|
|
235
|
-
const headers =
|
|
236
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
237
|
-
};
|
|
197
|
+
const headers = SHARED_HEADERS;
|
|
238
198
|
let body;
|
|
239
199
|
body = buildFormUrlencodedString({
|
|
240
200
|
...se_DescribeSuggestersRequest(input, context),
|
|
@@ -244,9 +204,7 @@ export const se_DescribeSuggestersCommand = async (input, context) => {
|
|
|
244
204
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
205
|
};
|
|
246
206
|
export const se_IndexDocumentsCommand = async (input, context) => {
|
|
247
|
-
const headers =
|
|
248
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
249
|
-
};
|
|
207
|
+
const headers = SHARED_HEADERS;
|
|
250
208
|
let body;
|
|
251
209
|
body = buildFormUrlencodedString({
|
|
252
210
|
...se_IndexDocumentsRequest(input, context),
|
|
@@ -256,9 +214,7 @@ export const se_IndexDocumentsCommand = async (input, context) => {
|
|
|
256
214
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
215
|
};
|
|
258
216
|
export const se_ListDomainNamesCommand = async (input, context) => {
|
|
259
|
-
const headers =
|
|
260
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
261
|
-
};
|
|
217
|
+
const headers = SHARED_HEADERS;
|
|
262
218
|
const body = buildFormUrlencodedString({
|
|
263
219
|
Action: "ListDomainNames",
|
|
264
220
|
Version: "2013-01-01",
|
|
@@ -266,9 +222,7 @@ export const se_ListDomainNamesCommand = async (input, context) => {
|
|
|
266
222
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
223
|
};
|
|
268
224
|
export const se_UpdateAvailabilityOptionsCommand = async (input, context) => {
|
|
269
|
-
const headers =
|
|
270
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
271
|
-
};
|
|
225
|
+
const headers = SHARED_HEADERS;
|
|
272
226
|
let body;
|
|
273
227
|
body = buildFormUrlencodedString({
|
|
274
228
|
...se_UpdateAvailabilityOptionsRequest(input, context),
|
|
@@ -278,9 +232,7 @@ export const se_UpdateAvailabilityOptionsCommand = async (input, context) => {
|
|
|
278
232
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
279
233
|
};
|
|
280
234
|
export const se_UpdateDomainEndpointOptionsCommand = async (input, context) => {
|
|
281
|
-
const headers =
|
|
282
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
283
|
-
};
|
|
235
|
+
const headers = SHARED_HEADERS;
|
|
284
236
|
let body;
|
|
285
237
|
body = buildFormUrlencodedString({
|
|
286
238
|
...se_UpdateDomainEndpointOptionsRequest(input, context),
|
|
@@ -290,9 +242,7 @@ export const se_UpdateDomainEndpointOptionsCommand = async (input, context) => {
|
|
|
290
242
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
291
243
|
};
|
|
292
244
|
export const se_UpdateScalingParametersCommand = async (input, context) => {
|
|
293
|
-
const headers =
|
|
294
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
295
|
-
};
|
|
245
|
+
const headers = SHARED_HEADERS;
|
|
296
246
|
let body;
|
|
297
247
|
body = buildFormUrlencodedString({
|
|
298
248
|
...se_UpdateScalingParametersRequest(input, context),
|
|
@@ -302,9 +252,7 @@ export const se_UpdateScalingParametersCommand = async (input, context) => {
|
|
|
302
252
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
253
|
};
|
|
304
254
|
export const se_UpdateServiceAccessPoliciesCommand = async (input, context) => {
|
|
305
|
-
const headers =
|
|
306
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
307
|
-
};
|
|
255
|
+
const headers = SHARED_HEADERS;
|
|
308
256
|
let body;
|
|
309
257
|
body = buildFormUrlencodedString({
|
|
310
258
|
...se_UpdateServiceAccessPoliciesRequest(input, context),
|
|
@@ -324,7 +272,7 @@ export const de_BuildSuggestersCommand = async (output, context) => {
|
|
|
324
272
|
$metadata: deserializeMetadata(output),
|
|
325
273
|
...contents,
|
|
326
274
|
};
|
|
327
|
-
return
|
|
275
|
+
return response;
|
|
328
276
|
};
|
|
329
277
|
const de_BuildSuggestersCommandError = async (output, context) => {
|
|
330
278
|
const parsedOutput = {
|
|
@@ -347,10 +295,9 @@ const de_BuildSuggestersCommandError = async (output, context) => {
|
|
|
347
295
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
348
296
|
default:
|
|
349
297
|
const parsedBody = parsedOutput.body;
|
|
350
|
-
throwDefaultError({
|
|
298
|
+
return throwDefaultError({
|
|
351
299
|
output,
|
|
352
300
|
parsedBody: parsedBody.Error,
|
|
353
|
-
exceptionCtor: __BaseException,
|
|
354
301
|
errorCode,
|
|
355
302
|
});
|
|
356
303
|
}
|
|
@@ -366,7 +313,7 @@ export const de_CreateDomainCommand = async (output, context) => {
|
|
|
366
313
|
$metadata: deserializeMetadata(output),
|
|
367
314
|
...contents,
|
|
368
315
|
};
|
|
369
|
-
return
|
|
316
|
+
return response;
|
|
370
317
|
};
|
|
371
318
|
const de_CreateDomainCommandError = async (output, context) => {
|
|
372
319
|
const parsedOutput = {
|
|
@@ -392,10 +339,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
392
339
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
393
340
|
default:
|
|
394
341
|
const parsedBody = parsedOutput.body;
|
|
395
|
-
throwDefaultError({
|
|
342
|
+
return throwDefaultError({
|
|
396
343
|
output,
|
|
397
344
|
parsedBody: parsedBody.Error,
|
|
398
|
-
exceptionCtor: __BaseException,
|
|
399
345
|
errorCode,
|
|
400
346
|
});
|
|
401
347
|
}
|
|
@@ -411,7 +357,7 @@ export const de_DefineAnalysisSchemeCommand = async (output, context) => {
|
|
|
411
357
|
$metadata: deserializeMetadata(output),
|
|
412
358
|
...contents,
|
|
413
359
|
};
|
|
414
|
-
return
|
|
360
|
+
return response;
|
|
415
361
|
};
|
|
416
362
|
const de_DefineAnalysisSchemeCommandError = async (output, context) => {
|
|
417
363
|
const parsedOutput = {
|
|
@@ -440,10 +386,9 @@ const de_DefineAnalysisSchemeCommandError = async (output, context) => {
|
|
|
440
386
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
441
387
|
default:
|
|
442
388
|
const parsedBody = parsedOutput.body;
|
|
443
|
-
throwDefaultError({
|
|
389
|
+
return throwDefaultError({
|
|
444
390
|
output,
|
|
445
391
|
parsedBody: parsedBody.Error,
|
|
446
|
-
exceptionCtor: __BaseException,
|
|
447
392
|
errorCode,
|
|
448
393
|
});
|
|
449
394
|
}
|
|
@@ -459,7 +404,7 @@ export const de_DefineExpressionCommand = async (output, context) => {
|
|
|
459
404
|
$metadata: deserializeMetadata(output),
|
|
460
405
|
...contents,
|
|
461
406
|
};
|
|
462
|
-
return
|
|
407
|
+
return response;
|
|
463
408
|
};
|
|
464
409
|
const de_DefineExpressionCommandError = async (output, context) => {
|
|
465
410
|
const parsedOutput = {
|
|
@@ -488,10 +433,9 @@ const de_DefineExpressionCommandError = async (output, context) => {
|
|
|
488
433
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
489
434
|
default:
|
|
490
435
|
const parsedBody = parsedOutput.body;
|
|
491
|
-
throwDefaultError({
|
|
436
|
+
return throwDefaultError({
|
|
492
437
|
output,
|
|
493
438
|
parsedBody: parsedBody.Error,
|
|
494
|
-
exceptionCtor: __BaseException,
|
|
495
439
|
errorCode,
|
|
496
440
|
});
|
|
497
441
|
}
|
|
@@ -507,7 +451,7 @@ export const de_DefineIndexFieldCommand = async (output, context) => {
|
|
|
507
451
|
$metadata: deserializeMetadata(output),
|
|
508
452
|
...contents,
|
|
509
453
|
};
|
|
510
|
-
return
|
|
454
|
+
return response;
|
|
511
455
|
};
|
|
512
456
|
const de_DefineIndexFieldCommandError = async (output, context) => {
|
|
513
457
|
const parsedOutput = {
|
|
@@ -536,10 +480,9 @@ const de_DefineIndexFieldCommandError = async (output, context) => {
|
|
|
536
480
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
537
481
|
default:
|
|
538
482
|
const parsedBody = parsedOutput.body;
|
|
539
|
-
throwDefaultError({
|
|
483
|
+
return throwDefaultError({
|
|
540
484
|
output,
|
|
541
485
|
parsedBody: parsedBody.Error,
|
|
542
|
-
exceptionCtor: __BaseException,
|
|
543
486
|
errorCode,
|
|
544
487
|
});
|
|
545
488
|
}
|
|
@@ -555,7 +498,7 @@ export const de_DefineSuggesterCommand = async (output, context) => {
|
|
|
555
498
|
$metadata: deserializeMetadata(output),
|
|
556
499
|
...contents,
|
|
557
500
|
};
|
|
558
|
-
return
|
|
501
|
+
return response;
|
|
559
502
|
};
|
|
560
503
|
const de_DefineSuggesterCommandError = async (output, context) => {
|
|
561
504
|
const parsedOutput = {
|
|
@@ -584,10 +527,9 @@ const de_DefineSuggesterCommandError = async (output, context) => {
|
|
|
584
527
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
585
528
|
default:
|
|
586
529
|
const parsedBody = parsedOutput.body;
|
|
587
|
-
throwDefaultError({
|
|
530
|
+
return throwDefaultError({
|
|
588
531
|
output,
|
|
589
532
|
parsedBody: parsedBody.Error,
|
|
590
|
-
exceptionCtor: __BaseException,
|
|
591
533
|
errorCode,
|
|
592
534
|
});
|
|
593
535
|
}
|
|
@@ -603,7 +545,7 @@ export const de_DeleteAnalysisSchemeCommand = async (output, context) => {
|
|
|
603
545
|
$metadata: deserializeMetadata(output),
|
|
604
546
|
...contents,
|
|
605
547
|
};
|
|
606
|
-
return
|
|
548
|
+
return response;
|
|
607
549
|
};
|
|
608
550
|
const de_DeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
609
551
|
const parsedOutput = {
|
|
@@ -629,10 +571,9 @@ const de_DeleteAnalysisSchemeCommandError = async (output, context) => {
|
|
|
629
571
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
630
572
|
default:
|
|
631
573
|
const parsedBody = parsedOutput.body;
|
|
632
|
-
throwDefaultError({
|
|
574
|
+
return throwDefaultError({
|
|
633
575
|
output,
|
|
634
576
|
parsedBody: parsedBody.Error,
|
|
635
|
-
exceptionCtor: __BaseException,
|
|
636
577
|
errorCode,
|
|
637
578
|
});
|
|
638
579
|
}
|
|
@@ -648,7 +589,7 @@ export const de_DeleteDomainCommand = async (output, context) => {
|
|
|
648
589
|
$metadata: deserializeMetadata(output),
|
|
649
590
|
...contents,
|
|
650
591
|
};
|
|
651
|
-
return
|
|
592
|
+
return response;
|
|
652
593
|
};
|
|
653
594
|
const de_DeleteDomainCommandError = async (output, context) => {
|
|
654
595
|
const parsedOutput = {
|
|
@@ -665,10 +606,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
665
606
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
666
607
|
default:
|
|
667
608
|
const parsedBody = parsedOutput.body;
|
|
668
|
-
throwDefaultError({
|
|
609
|
+
return throwDefaultError({
|
|
669
610
|
output,
|
|
670
611
|
parsedBody: parsedBody.Error,
|
|
671
|
-
exceptionCtor: __BaseException,
|
|
672
612
|
errorCode,
|
|
673
613
|
});
|
|
674
614
|
}
|
|
@@ -684,7 +624,7 @@ export const de_DeleteExpressionCommand = async (output, context) => {
|
|
|
684
624
|
$metadata: deserializeMetadata(output),
|
|
685
625
|
...contents,
|
|
686
626
|
};
|
|
687
|
-
return
|
|
627
|
+
return response;
|
|
688
628
|
};
|
|
689
629
|
const de_DeleteExpressionCommandError = async (output, context) => {
|
|
690
630
|
const parsedOutput = {
|
|
@@ -710,10 +650,9 @@ const de_DeleteExpressionCommandError = async (output, context) => {
|
|
|
710
650
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
711
651
|
default:
|
|
712
652
|
const parsedBody = parsedOutput.body;
|
|
713
|
-
throwDefaultError({
|
|
653
|
+
return throwDefaultError({
|
|
714
654
|
output,
|
|
715
655
|
parsedBody: parsedBody.Error,
|
|
716
|
-
exceptionCtor: __BaseException,
|
|
717
656
|
errorCode,
|
|
718
657
|
});
|
|
719
658
|
}
|
|
@@ -729,7 +668,7 @@ export const de_DeleteIndexFieldCommand = async (output, context) => {
|
|
|
729
668
|
$metadata: deserializeMetadata(output),
|
|
730
669
|
...contents,
|
|
731
670
|
};
|
|
732
|
-
return
|
|
671
|
+
return response;
|
|
733
672
|
};
|
|
734
673
|
const de_DeleteIndexFieldCommandError = async (output, context) => {
|
|
735
674
|
const parsedOutput = {
|
|
@@ -755,10 +694,9 @@ const de_DeleteIndexFieldCommandError = async (output, context) => {
|
|
|
755
694
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
756
695
|
default:
|
|
757
696
|
const parsedBody = parsedOutput.body;
|
|
758
|
-
throwDefaultError({
|
|
697
|
+
return throwDefaultError({
|
|
759
698
|
output,
|
|
760
699
|
parsedBody: parsedBody.Error,
|
|
761
|
-
exceptionCtor: __BaseException,
|
|
762
700
|
errorCode,
|
|
763
701
|
});
|
|
764
702
|
}
|
|
@@ -774,7 +712,7 @@ export const de_DeleteSuggesterCommand = async (output, context) => {
|
|
|
774
712
|
$metadata: deserializeMetadata(output),
|
|
775
713
|
...contents,
|
|
776
714
|
};
|
|
777
|
-
return
|
|
715
|
+
return response;
|
|
778
716
|
};
|
|
779
717
|
const de_DeleteSuggesterCommandError = async (output, context) => {
|
|
780
718
|
const parsedOutput = {
|
|
@@ -800,10 +738,9 @@ const de_DeleteSuggesterCommandError = async (output, context) => {
|
|
|
800
738
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
801
739
|
default:
|
|
802
740
|
const parsedBody = parsedOutput.body;
|
|
803
|
-
throwDefaultError({
|
|
741
|
+
return throwDefaultError({
|
|
804
742
|
output,
|
|
805
743
|
parsedBody: parsedBody.Error,
|
|
806
|
-
exceptionCtor: __BaseException,
|
|
807
744
|
errorCode,
|
|
808
745
|
});
|
|
809
746
|
}
|
|
@@ -819,7 +756,7 @@ export const de_DescribeAnalysisSchemesCommand = async (output, context) => {
|
|
|
819
756
|
$metadata: deserializeMetadata(output),
|
|
820
757
|
...contents,
|
|
821
758
|
};
|
|
822
|
-
return
|
|
759
|
+
return response;
|
|
823
760
|
};
|
|
824
761
|
const de_DescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
825
762
|
const parsedOutput = {
|
|
@@ -839,10 +776,9 @@ const de_DescribeAnalysisSchemesCommandError = async (output, context) => {
|
|
|
839
776
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
840
777
|
default:
|
|
841
778
|
const parsedBody = parsedOutput.body;
|
|
842
|
-
throwDefaultError({
|
|
779
|
+
return throwDefaultError({
|
|
843
780
|
output,
|
|
844
781
|
parsedBody: parsedBody.Error,
|
|
845
|
-
exceptionCtor: __BaseException,
|
|
846
782
|
errorCode,
|
|
847
783
|
});
|
|
848
784
|
}
|
|
@@ -858,7 +794,7 @@ export const de_DescribeAvailabilityOptionsCommand = async (output, context) =>
|
|
|
858
794
|
$metadata: deserializeMetadata(output),
|
|
859
795
|
...contents,
|
|
860
796
|
};
|
|
861
|
-
return
|
|
797
|
+
return response;
|
|
862
798
|
};
|
|
863
799
|
const de_DescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
864
800
|
const parsedOutput = {
|
|
@@ -887,10 +823,9 @@ const de_DescribeAvailabilityOptionsCommandError = async (output, context) => {
|
|
|
887
823
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
888
824
|
default:
|
|
889
825
|
const parsedBody = parsedOutput.body;
|
|
890
|
-
throwDefaultError({
|
|
826
|
+
return throwDefaultError({
|
|
891
827
|
output,
|
|
892
828
|
parsedBody: parsedBody.Error,
|
|
893
|
-
exceptionCtor: __BaseException,
|
|
894
829
|
errorCode,
|
|
895
830
|
});
|
|
896
831
|
}
|
|
@@ -906,7 +841,7 @@ export const de_DescribeDomainEndpointOptionsCommand = async (output, context) =
|
|
|
906
841
|
$metadata: deserializeMetadata(output),
|
|
907
842
|
...contents,
|
|
908
843
|
};
|
|
909
|
-
return
|
|
844
|
+
return response;
|
|
910
845
|
};
|
|
911
846
|
const de_DescribeDomainEndpointOptionsCommandError = async (output, context) => {
|
|
912
847
|
const parsedOutput = {
|
|
@@ -932,10 +867,9 @@ const de_DescribeDomainEndpointOptionsCommandError = async (output, context) =>
|
|
|
932
867
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
933
868
|
default:
|
|
934
869
|
const parsedBody = parsedOutput.body;
|
|
935
|
-
throwDefaultError({
|
|
870
|
+
return throwDefaultError({
|
|
936
871
|
output,
|
|
937
872
|
parsedBody: parsedBody.Error,
|
|
938
|
-
exceptionCtor: __BaseException,
|
|
939
873
|
errorCode,
|
|
940
874
|
});
|
|
941
875
|
}
|
|
@@ -951,7 +885,7 @@ export const de_DescribeDomainsCommand = async (output, context) => {
|
|
|
951
885
|
$metadata: deserializeMetadata(output),
|
|
952
886
|
...contents,
|
|
953
887
|
};
|
|
954
|
-
return
|
|
888
|
+
return response;
|
|
955
889
|
};
|
|
956
890
|
const de_DescribeDomainsCommandError = async (output, context) => {
|
|
957
891
|
const parsedOutput = {
|
|
@@ -968,10 +902,9 @@ const de_DescribeDomainsCommandError = async (output, context) => {
|
|
|
968
902
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
969
903
|
default:
|
|
970
904
|
const parsedBody = parsedOutput.body;
|
|
971
|
-
throwDefaultError({
|
|
905
|
+
return throwDefaultError({
|
|
972
906
|
output,
|
|
973
907
|
parsedBody: parsedBody.Error,
|
|
974
|
-
exceptionCtor: __BaseException,
|
|
975
908
|
errorCode,
|
|
976
909
|
});
|
|
977
910
|
}
|
|
@@ -987,7 +920,7 @@ export const de_DescribeExpressionsCommand = async (output, context) => {
|
|
|
987
920
|
$metadata: deserializeMetadata(output),
|
|
988
921
|
...contents,
|
|
989
922
|
};
|
|
990
|
-
return
|
|
923
|
+
return response;
|
|
991
924
|
};
|
|
992
925
|
const de_DescribeExpressionsCommandError = async (output, context) => {
|
|
993
926
|
const parsedOutput = {
|
|
@@ -1007,10 +940,9 @@ const de_DescribeExpressionsCommandError = async (output, context) => {
|
|
|
1007
940
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1008
941
|
default:
|
|
1009
942
|
const parsedBody = parsedOutput.body;
|
|
1010
|
-
throwDefaultError({
|
|
943
|
+
return throwDefaultError({
|
|
1011
944
|
output,
|
|
1012
945
|
parsedBody: parsedBody.Error,
|
|
1013
|
-
exceptionCtor: __BaseException,
|
|
1014
946
|
errorCode,
|
|
1015
947
|
});
|
|
1016
948
|
}
|
|
@@ -1026,7 +958,7 @@ export const de_DescribeIndexFieldsCommand = async (output, context) => {
|
|
|
1026
958
|
$metadata: deserializeMetadata(output),
|
|
1027
959
|
...contents,
|
|
1028
960
|
};
|
|
1029
|
-
return
|
|
961
|
+
return response;
|
|
1030
962
|
};
|
|
1031
963
|
const de_DescribeIndexFieldsCommandError = async (output, context) => {
|
|
1032
964
|
const parsedOutput = {
|
|
@@ -1046,10 +978,9 @@ const de_DescribeIndexFieldsCommandError = async (output, context) => {
|
|
|
1046
978
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1047
979
|
default:
|
|
1048
980
|
const parsedBody = parsedOutput.body;
|
|
1049
|
-
throwDefaultError({
|
|
981
|
+
return throwDefaultError({
|
|
1050
982
|
output,
|
|
1051
983
|
parsedBody: parsedBody.Error,
|
|
1052
|
-
exceptionCtor: __BaseException,
|
|
1053
984
|
errorCode,
|
|
1054
985
|
});
|
|
1055
986
|
}
|
|
@@ -1065,7 +996,7 @@ export const de_DescribeScalingParametersCommand = async (output, context) => {
|
|
|
1065
996
|
$metadata: deserializeMetadata(output),
|
|
1066
997
|
...contents,
|
|
1067
998
|
};
|
|
1068
|
-
return
|
|
999
|
+
return response;
|
|
1069
1000
|
};
|
|
1070
1001
|
const de_DescribeScalingParametersCommandError = async (output, context) => {
|
|
1071
1002
|
const parsedOutput = {
|
|
@@ -1085,10 +1016,9 @@ const de_DescribeScalingParametersCommandError = async (output, context) => {
|
|
|
1085
1016
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1086
1017
|
default:
|
|
1087
1018
|
const parsedBody = parsedOutput.body;
|
|
1088
|
-
throwDefaultError({
|
|
1019
|
+
return throwDefaultError({
|
|
1089
1020
|
output,
|
|
1090
1021
|
parsedBody: parsedBody.Error,
|
|
1091
|
-
exceptionCtor: __BaseException,
|
|
1092
1022
|
errorCode,
|
|
1093
1023
|
});
|
|
1094
1024
|
}
|
|
@@ -1104,7 +1034,7 @@ export const de_DescribeServiceAccessPoliciesCommand = async (output, context) =
|
|
|
1104
1034
|
$metadata: deserializeMetadata(output),
|
|
1105
1035
|
...contents,
|
|
1106
1036
|
};
|
|
1107
|
-
return
|
|
1037
|
+
return response;
|
|
1108
1038
|
};
|
|
1109
1039
|
const de_DescribeServiceAccessPoliciesCommandError = async (output, context) => {
|
|
1110
1040
|
const parsedOutput = {
|
|
@@ -1124,10 +1054,9 @@ const de_DescribeServiceAccessPoliciesCommandError = async (output, context) =>
|
|
|
1124
1054
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1125
1055
|
default:
|
|
1126
1056
|
const parsedBody = parsedOutput.body;
|
|
1127
|
-
throwDefaultError({
|
|
1057
|
+
return throwDefaultError({
|
|
1128
1058
|
output,
|
|
1129
1059
|
parsedBody: parsedBody.Error,
|
|
1130
|
-
exceptionCtor: __BaseException,
|
|
1131
1060
|
errorCode,
|
|
1132
1061
|
});
|
|
1133
1062
|
}
|
|
@@ -1143,7 +1072,7 @@ export const de_DescribeSuggestersCommand = async (output, context) => {
|
|
|
1143
1072
|
$metadata: deserializeMetadata(output),
|
|
1144
1073
|
...contents,
|
|
1145
1074
|
};
|
|
1146
|
-
return
|
|
1075
|
+
return response;
|
|
1147
1076
|
};
|
|
1148
1077
|
const de_DescribeSuggestersCommandError = async (output, context) => {
|
|
1149
1078
|
const parsedOutput = {
|
|
@@ -1163,10 +1092,9 @@ const de_DescribeSuggestersCommandError = async (output, context) => {
|
|
|
1163
1092
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1164
1093
|
default:
|
|
1165
1094
|
const parsedBody = parsedOutput.body;
|
|
1166
|
-
throwDefaultError({
|
|
1095
|
+
return throwDefaultError({
|
|
1167
1096
|
output,
|
|
1168
1097
|
parsedBody: parsedBody.Error,
|
|
1169
|
-
exceptionCtor: __BaseException,
|
|
1170
1098
|
errorCode,
|
|
1171
1099
|
});
|
|
1172
1100
|
}
|
|
@@ -1182,7 +1110,7 @@ export const de_IndexDocumentsCommand = async (output, context) => {
|
|
|
1182
1110
|
$metadata: deserializeMetadata(output),
|
|
1183
1111
|
...contents,
|
|
1184
1112
|
};
|
|
1185
|
-
return
|
|
1113
|
+
return response;
|
|
1186
1114
|
};
|
|
1187
1115
|
const de_IndexDocumentsCommandError = async (output, context) => {
|
|
1188
1116
|
const parsedOutput = {
|
|
@@ -1205,10 +1133,9 @@ const de_IndexDocumentsCommandError = async (output, context) => {
|
|
|
1205
1133
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1206
1134
|
default:
|
|
1207
1135
|
const parsedBody = parsedOutput.body;
|
|
1208
|
-
throwDefaultError({
|
|
1136
|
+
return throwDefaultError({
|
|
1209
1137
|
output,
|
|
1210
1138
|
parsedBody: parsedBody.Error,
|
|
1211
|
-
exceptionCtor: __BaseException,
|
|
1212
1139
|
errorCode,
|
|
1213
1140
|
});
|
|
1214
1141
|
}
|
|
@@ -1224,7 +1151,7 @@ export const de_ListDomainNamesCommand = async (output, context) => {
|
|
|
1224
1151
|
$metadata: deserializeMetadata(output),
|
|
1225
1152
|
...contents,
|
|
1226
1153
|
};
|
|
1227
|
-
return
|
|
1154
|
+
return response;
|
|
1228
1155
|
};
|
|
1229
1156
|
const de_ListDomainNamesCommandError = async (output, context) => {
|
|
1230
1157
|
const parsedOutput = {
|
|
@@ -1238,10 +1165,9 @@ const de_ListDomainNamesCommandError = async (output, context) => {
|
|
|
1238
1165
|
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1239
1166
|
default:
|
|
1240
1167
|
const parsedBody = parsedOutput.body;
|
|
1241
|
-
throwDefaultError({
|
|
1168
|
+
return throwDefaultError({
|
|
1242
1169
|
output,
|
|
1243
1170
|
parsedBody: parsedBody.Error,
|
|
1244
|
-
exceptionCtor: __BaseException,
|
|
1245
1171
|
errorCode,
|
|
1246
1172
|
});
|
|
1247
1173
|
}
|
|
@@ -1257,7 +1183,7 @@ export const de_UpdateAvailabilityOptionsCommand = async (output, context) => {
|
|
|
1257
1183
|
$metadata: deserializeMetadata(output),
|
|
1258
1184
|
...contents,
|
|
1259
1185
|
};
|
|
1260
|
-
return
|
|
1186
|
+
return response;
|
|
1261
1187
|
};
|
|
1262
1188
|
const de_UpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
1263
1189
|
const parsedOutput = {
|
|
@@ -1289,10 +1215,9 @@ const de_UpdateAvailabilityOptionsCommandError = async (output, context) => {
|
|
|
1289
1215
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1290
1216
|
default:
|
|
1291
1217
|
const parsedBody = parsedOutput.body;
|
|
1292
|
-
throwDefaultError({
|
|
1218
|
+
return throwDefaultError({
|
|
1293
1219
|
output,
|
|
1294
1220
|
parsedBody: parsedBody.Error,
|
|
1295
|
-
exceptionCtor: __BaseException,
|
|
1296
1221
|
errorCode,
|
|
1297
1222
|
});
|
|
1298
1223
|
}
|
|
@@ -1308,7 +1233,7 @@ export const de_UpdateDomainEndpointOptionsCommand = async (output, context) =>
|
|
|
1308
1233
|
$metadata: deserializeMetadata(output),
|
|
1309
1234
|
...contents,
|
|
1310
1235
|
};
|
|
1311
|
-
return
|
|
1236
|
+
return response;
|
|
1312
1237
|
};
|
|
1313
1238
|
const de_UpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
1314
1239
|
const parsedOutput = {
|
|
@@ -1340,10 +1265,9 @@ const de_UpdateDomainEndpointOptionsCommandError = async (output, context) => {
|
|
|
1340
1265
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1341
1266
|
default:
|
|
1342
1267
|
const parsedBody = parsedOutput.body;
|
|
1343
|
-
throwDefaultError({
|
|
1268
|
+
return throwDefaultError({
|
|
1344
1269
|
output,
|
|
1345
1270
|
parsedBody: parsedBody.Error,
|
|
1346
|
-
exceptionCtor: __BaseException,
|
|
1347
1271
|
errorCode,
|
|
1348
1272
|
});
|
|
1349
1273
|
}
|
|
@@ -1359,7 +1283,7 @@ export const de_UpdateScalingParametersCommand = async (output, context) => {
|
|
|
1359
1283
|
$metadata: deserializeMetadata(output),
|
|
1360
1284
|
...contents,
|
|
1361
1285
|
};
|
|
1362
|
-
return
|
|
1286
|
+
return response;
|
|
1363
1287
|
};
|
|
1364
1288
|
const de_UpdateScalingParametersCommandError = async (output, context) => {
|
|
1365
1289
|
const parsedOutput = {
|
|
@@ -1388,10 +1312,9 @@ const de_UpdateScalingParametersCommandError = async (output, context) => {
|
|
|
1388
1312
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
1313
|
default:
|
|
1390
1314
|
const parsedBody = parsedOutput.body;
|
|
1391
|
-
throwDefaultError({
|
|
1315
|
+
return throwDefaultError({
|
|
1392
1316
|
output,
|
|
1393
1317
|
parsedBody: parsedBody.Error,
|
|
1394
|
-
exceptionCtor: __BaseException,
|
|
1395
1318
|
errorCode,
|
|
1396
1319
|
});
|
|
1397
1320
|
}
|
|
@@ -1407,7 +1330,7 @@ export const de_UpdateServiceAccessPoliciesCommand = async (output, context) =>
|
|
|
1407
1330
|
$metadata: deserializeMetadata(output),
|
|
1408
1331
|
...contents,
|
|
1409
1332
|
};
|
|
1410
|
-
return
|
|
1333
|
+
return response;
|
|
1411
1334
|
};
|
|
1412
1335
|
const de_UpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
1413
1336
|
const parsedOutput = {
|
|
@@ -1436,10 +1359,9 @@ const de_UpdateServiceAccessPoliciesCommandError = async (output, context) => {
|
|
|
1436
1359
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1437
1360
|
default:
|
|
1438
1361
|
const parsedBody = parsedOutput.body;
|
|
1439
|
-
throwDefaultError({
|
|
1362
|
+
return throwDefaultError({
|
|
1440
1363
|
output,
|
|
1441
1364
|
parsedBody: parsedBody.Error,
|
|
1442
|
-
exceptionCtor: __BaseException,
|
|
1443
1365
|
errorCode,
|
|
1444
1366
|
});
|
|
1445
1367
|
}
|
|
@@ -3132,6 +3054,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3132
3054
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3133
3055
|
};
|
|
3134
3056
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3057
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3135
3058
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3136
3059
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3137
3060
|
const contents = {
|
|
@@ -3150,6 +3073,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
3150
3073
|
}
|
|
3151
3074
|
return new __HttpRequest(contents);
|
|
3152
3075
|
};
|
|
3076
|
+
const SHARED_HEADERS = {
|
|
3077
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
3078
|
+
};
|
|
3153
3079
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3154
3080
|
if (encoded.length) {
|
|
3155
3081
|
const parser = new XMLParser({
|