@aws-sdk/client-elastic-load-balancing 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 +91 -174
- package/dist-es/protocols/Aws_query.js +92 -175
- package/package.json +6 -6
|
@@ -8,9 +8,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
|
|
|
8
8
|
const ElasticLoadBalancingServiceException_1 = require("../models/ElasticLoadBalancingServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_AddTagsCommand = 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_AddTagsInput(input, context),
|
|
@@ -21,9 +19,7 @@ const se_AddTagsCommand = async (input, context) => {
|
|
|
21
19
|
};
|
|
22
20
|
exports.se_AddTagsCommand = se_AddTagsCommand;
|
|
23
21
|
const se_ApplySecurityGroupsToLoadBalancerCommand = 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_ApplySecurityGroupsToLoadBalancerInput(input, context),
|
|
@@ -34,9 +30,7 @@ const se_ApplySecurityGroupsToLoadBalancerCommand = async (input, context) => {
|
|
|
34
30
|
};
|
|
35
31
|
exports.se_ApplySecurityGroupsToLoadBalancerCommand = se_ApplySecurityGroupsToLoadBalancerCommand;
|
|
36
32
|
const se_AttachLoadBalancerToSubnetsCommand = 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_AttachLoadBalancerToSubnetsInput(input, context),
|
|
@@ -47,9 +41,7 @@ const se_AttachLoadBalancerToSubnetsCommand = async (input, context) => {
|
|
|
47
41
|
};
|
|
48
42
|
exports.se_AttachLoadBalancerToSubnetsCommand = se_AttachLoadBalancerToSubnetsCommand;
|
|
49
43
|
const se_ConfigureHealthCheckCommand = 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_ConfigureHealthCheckInput(input, context),
|
|
@@ -60,9 +52,7 @@ const se_ConfigureHealthCheckCommand = async (input, context) => {
|
|
|
60
52
|
};
|
|
61
53
|
exports.se_ConfigureHealthCheckCommand = se_ConfigureHealthCheckCommand;
|
|
62
54
|
const se_CreateAppCookieStickinessPolicyCommand = 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_CreateAppCookieStickinessPolicyInput(input, context),
|
|
@@ -73,9 +63,7 @@ const se_CreateAppCookieStickinessPolicyCommand = async (input, context) => {
|
|
|
73
63
|
};
|
|
74
64
|
exports.se_CreateAppCookieStickinessPolicyCommand = se_CreateAppCookieStickinessPolicyCommand;
|
|
75
65
|
const se_CreateLBCookieStickinessPolicyCommand = 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_CreateLBCookieStickinessPolicyInput(input, context),
|
|
@@ -86,9 +74,7 @@ const se_CreateLBCookieStickinessPolicyCommand = async (input, context) => {
|
|
|
86
74
|
};
|
|
87
75
|
exports.se_CreateLBCookieStickinessPolicyCommand = se_CreateLBCookieStickinessPolicyCommand;
|
|
88
76
|
const se_CreateLoadBalancerCommand = 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_CreateAccessPointInput(input, context),
|
|
@@ -99,9 +85,7 @@ const se_CreateLoadBalancerCommand = async (input, context) => {
|
|
|
99
85
|
};
|
|
100
86
|
exports.se_CreateLoadBalancerCommand = se_CreateLoadBalancerCommand;
|
|
101
87
|
const se_CreateLoadBalancerListenersCommand = 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_CreateLoadBalancerListenerInput(input, context),
|
|
@@ -112,9 +96,7 @@ const se_CreateLoadBalancerListenersCommand = async (input, context) => {
|
|
|
112
96
|
};
|
|
113
97
|
exports.se_CreateLoadBalancerListenersCommand = se_CreateLoadBalancerListenersCommand;
|
|
114
98
|
const se_CreateLoadBalancerPolicyCommand = 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_CreateLoadBalancerPolicyInput(input, context),
|
|
@@ -125,9 +107,7 @@ const se_CreateLoadBalancerPolicyCommand = async (input, context) => {
|
|
|
125
107
|
};
|
|
126
108
|
exports.se_CreateLoadBalancerPolicyCommand = se_CreateLoadBalancerPolicyCommand;
|
|
127
109
|
const se_DeleteLoadBalancerCommand = 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_DeleteAccessPointInput(input, context),
|
|
@@ -138,9 +118,7 @@ const se_DeleteLoadBalancerCommand = async (input, context) => {
|
|
|
138
118
|
};
|
|
139
119
|
exports.se_DeleteLoadBalancerCommand = se_DeleteLoadBalancerCommand;
|
|
140
120
|
const se_DeleteLoadBalancerListenersCommand = 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_DeleteLoadBalancerListenerInput(input, context),
|
|
@@ -151,9 +129,7 @@ const se_DeleteLoadBalancerListenersCommand = async (input, context) => {
|
|
|
151
129
|
};
|
|
152
130
|
exports.se_DeleteLoadBalancerListenersCommand = se_DeleteLoadBalancerListenersCommand;
|
|
153
131
|
const se_DeleteLoadBalancerPolicyCommand = 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_DeleteLoadBalancerPolicyInput(input, context),
|
|
@@ -164,9 +140,7 @@ const se_DeleteLoadBalancerPolicyCommand = async (input, context) => {
|
|
|
164
140
|
};
|
|
165
141
|
exports.se_DeleteLoadBalancerPolicyCommand = se_DeleteLoadBalancerPolicyCommand;
|
|
166
142
|
const se_DeregisterInstancesFromLoadBalancerCommand = 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_DeregisterEndPointsInput(input, context),
|
|
@@ -177,9 +151,7 @@ const se_DeregisterInstancesFromLoadBalancerCommand = async (input, context) =>
|
|
|
177
151
|
};
|
|
178
152
|
exports.se_DeregisterInstancesFromLoadBalancerCommand = se_DeregisterInstancesFromLoadBalancerCommand;
|
|
179
153
|
const se_DescribeAccountLimitsCommand = 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_DescribeAccountLimitsInput(input, context),
|
|
@@ -190,9 +162,7 @@ const se_DescribeAccountLimitsCommand = async (input, context) => {
|
|
|
190
162
|
};
|
|
191
163
|
exports.se_DescribeAccountLimitsCommand = se_DescribeAccountLimitsCommand;
|
|
192
164
|
const se_DescribeInstanceHealthCommand = 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_DescribeEndPointStateInput(input, context),
|
|
@@ -203,9 +173,7 @@ const se_DescribeInstanceHealthCommand = async (input, context) => {
|
|
|
203
173
|
};
|
|
204
174
|
exports.se_DescribeInstanceHealthCommand = se_DescribeInstanceHealthCommand;
|
|
205
175
|
const se_DescribeLoadBalancerAttributesCommand = 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_DescribeLoadBalancerAttributesInput(input, context),
|
|
@@ -216,9 +184,7 @@ const se_DescribeLoadBalancerAttributesCommand = async (input, context) => {
|
|
|
216
184
|
};
|
|
217
185
|
exports.se_DescribeLoadBalancerAttributesCommand = se_DescribeLoadBalancerAttributesCommand;
|
|
218
186
|
const se_DescribeLoadBalancerPoliciesCommand = 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_DescribeLoadBalancerPoliciesInput(input, context),
|
|
@@ -229,9 +195,7 @@ const se_DescribeLoadBalancerPoliciesCommand = async (input, context) => {
|
|
|
229
195
|
};
|
|
230
196
|
exports.se_DescribeLoadBalancerPoliciesCommand = se_DescribeLoadBalancerPoliciesCommand;
|
|
231
197
|
const se_DescribeLoadBalancerPolicyTypesCommand = 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_DescribeLoadBalancerPolicyTypesInput(input, context),
|
|
@@ -242,9 +206,7 @@ const se_DescribeLoadBalancerPolicyTypesCommand = async (input, context) => {
|
|
|
242
206
|
};
|
|
243
207
|
exports.se_DescribeLoadBalancerPolicyTypesCommand = se_DescribeLoadBalancerPolicyTypesCommand;
|
|
244
208
|
const se_DescribeLoadBalancersCommand = 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_DescribeAccessPointsInput(input, context),
|
|
@@ -255,9 +217,7 @@ const se_DescribeLoadBalancersCommand = async (input, context) => {
|
|
|
255
217
|
};
|
|
256
218
|
exports.se_DescribeLoadBalancersCommand = se_DescribeLoadBalancersCommand;
|
|
257
219
|
const se_DescribeTagsCommand = 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_DescribeTagsInput(input, context),
|
|
@@ -268,9 +228,7 @@ const se_DescribeTagsCommand = async (input, context) => {
|
|
|
268
228
|
};
|
|
269
229
|
exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
|
|
270
230
|
const se_DetachLoadBalancerFromSubnetsCommand = 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_DetachLoadBalancerFromSubnetsInput(input, context),
|
|
@@ -281,9 +239,7 @@ const se_DetachLoadBalancerFromSubnetsCommand = async (input, context) => {
|
|
|
281
239
|
};
|
|
282
240
|
exports.se_DetachLoadBalancerFromSubnetsCommand = se_DetachLoadBalancerFromSubnetsCommand;
|
|
283
241
|
const se_DisableAvailabilityZonesForLoadBalancerCommand = async (input, context) => {
|
|
284
|
-
const headers =
|
|
285
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
286
|
-
};
|
|
242
|
+
const headers = SHARED_HEADERS;
|
|
287
243
|
let body;
|
|
288
244
|
body = buildFormUrlencodedString({
|
|
289
245
|
...se_RemoveAvailabilityZonesInput(input, context),
|
|
@@ -294,9 +250,7 @@ const se_DisableAvailabilityZonesForLoadBalancerCommand = async (input, context)
|
|
|
294
250
|
};
|
|
295
251
|
exports.se_DisableAvailabilityZonesForLoadBalancerCommand = se_DisableAvailabilityZonesForLoadBalancerCommand;
|
|
296
252
|
const se_EnableAvailabilityZonesForLoadBalancerCommand = async (input, context) => {
|
|
297
|
-
const headers =
|
|
298
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
299
|
-
};
|
|
253
|
+
const headers = SHARED_HEADERS;
|
|
300
254
|
let body;
|
|
301
255
|
body = buildFormUrlencodedString({
|
|
302
256
|
...se_AddAvailabilityZonesInput(input, context),
|
|
@@ -307,9 +261,7 @@ const se_EnableAvailabilityZonesForLoadBalancerCommand = async (input, context)
|
|
|
307
261
|
};
|
|
308
262
|
exports.se_EnableAvailabilityZonesForLoadBalancerCommand = se_EnableAvailabilityZonesForLoadBalancerCommand;
|
|
309
263
|
const se_ModifyLoadBalancerAttributesCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
312
|
-
};
|
|
264
|
+
const headers = SHARED_HEADERS;
|
|
313
265
|
let body;
|
|
314
266
|
body = buildFormUrlencodedString({
|
|
315
267
|
...se_ModifyLoadBalancerAttributesInput(input, context),
|
|
@@ -320,9 +272,7 @@ const se_ModifyLoadBalancerAttributesCommand = async (input, context) => {
|
|
|
320
272
|
};
|
|
321
273
|
exports.se_ModifyLoadBalancerAttributesCommand = se_ModifyLoadBalancerAttributesCommand;
|
|
322
274
|
const se_RegisterInstancesWithLoadBalancerCommand = async (input, context) => {
|
|
323
|
-
const headers =
|
|
324
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
325
|
-
};
|
|
275
|
+
const headers = SHARED_HEADERS;
|
|
326
276
|
let body;
|
|
327
277
|
body = buildFormUrlencodedString({
|
|
328
278
|
...se_RegisterEndPointsInput(input, context),
|
|
@@ -333,9 +283,7 @@ const se_RegisterInstancesWithLoadBalancerCommand = async (input, context) => {
|
|
|
333
283
|
};
|
|
334
284
|
exports.se_RegisterInstancesWithLoadBalancerCommand = se_RegisterInstancesWithLoadBalancerCommand;
|
|
335
285
|
const se_RemoveTagsCommand = async (input, context) => {
|
|
336
|
-
const headers =
|
|
337
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
338
|
-
};
|
|
286
|
+
const headers = SHARED_HEADERS;
|
|
339
287
|
let body;
|
|
340
288
|
body = buildFormUrlencodedString({
|
|
341
289
|
...se_RemoveTagsInput(input, context),
|
|
@@ -346,9 +294,7 @@ const se_RemoveTagsCommand = async (input, context) => {
|
|
|
346
294
|
};
|
|
347
295
|
exports.se_RemoveTagsCommand = se_RemoveTagsCommand;
|
|
348
296
|
const se_SetLoadBalancerListenerSSLCertificateCommand = async (input, context) => {
|
|
349
|
-
const headers =
|
|
350
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
351
|
-
};
|
|
297
|
+
const headers = SHARED_HEADERS;
|
|
352
298
|
let body;
|
|
353
299
|
body = buildFormUrlencodedString({
|
|
354
300
|
...se_SetLoadBalancerListenerSSLCertificateInput(input, context),
|
|
@@ -359,9 +305,7 @@ const se_SetLoadBalancerListenerSSLCertificateCommand = async (input, context) =
|
|
|
359
305
|
};
|
|
360
306
|
exports.se_SetLoadBalancerListenerSSLCertificateCommand = se_SetLoadBalancerListenerSSLCertificateCommand;
|
|
361
307
|
const se_SetLoadBalancerPoliciesForBackendServerCommand = async (input, context) => {
|
|
362
|
-
const headers =
|
|
363
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
364
|
-
};
|
|
308
|
+
const headers = SHARED_HEADERS;
|
|
365
309
|
let body;
|
|
366
310
|
body = buildFormUrlencodedString({
|
|
367
311
|
...se_SetLoadBalancerPoliciesForBackendServerInput(input, context),
|
|
@@ -372,9 +316,7 @@ const se_SetLoadBalancerPoliciesForBackendServerCommand = async (input, context)
|
|
|
372
316
|
};
|
|
373
317
|
exports.se_SetLoadBalancerPoliciesForBackendServerCommand = se_SetLoadBalancerPoliciesForBackendServerCommand;
|
|
374
318
|
const se_SetLoadBalancerPoliciesOfListenerCommand = async (input, context) => {
|
|
375
|
-
const headers =
|
|
376
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
377
|
-
};
|
|
319
|
+
const headers = SHARED_HEADERS;
|
|
378
320
|
let body;
|
|
379
321
|
body = buildFormUrlencodedString({
|
|
380
322
|
...se_SetLoadBalancerPoliciesOfListenerInput(input, context),
|
|
@@ -395,7 +337,7 @@ const de_AddTagsCommand = async (output, context) => {
|
|
|
395
337
|
$metadata: deserializeMetadata(output),
|
|
396
338
|
...contents,
|
|
397
339
|
};
|
|
398
|
-
return
|
|
340
|
+
return response;
|
|
399
341
|
};
|
|
400
342
|
exports.de_AddTagsCommand = de_AddTagsCommand;
|
|
401
343
|
const de_AddTagsCommandError = async (output, context) => {
|
|
@@ -416,10 +358,9 @@ const de_AddTagsCommandError = async (output, context) => {
|
|
|
416
358
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
417
359
|
default:
|
|
418
360
|
const parsedBody = parsedOutput.body;
|
|
419
|
-
|
|
361
|
+
return throwDefaultError({
|
|
420
362
|
output,
|
|
421
363
|
parsedBody: parsedBody.Error,
|
|
422
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
423
364
|
errorCode,
|
|
424
365
|
});
|
|
425
366
|
}
|
|
@@ -435,7 +376,7 @@ const de_ApplySecurityGroupsToLoadBalancerCommand = async (output, context) => {
|
|
|
435
376
|
$metadata: deserializeMetadata(output),
|
|
436
377
|
...contents,
|
|
437
378
|
};
|
|
438
|
-
return
|
|
379
|
+
return response;
|
|
439
380
|
};
|
|
440
381
|
exports.de_ApplySecurityGroupsToLoadBalancerCommand = de_ApplySecurityGroupsToLoadBalancerCommand;
|
|
441
382
|
const de_ApplySecurityGroupsToLoadBalancerCommandError = async (output, context) => {
|
|
@@ -456,10 +397,9 @@ const de_ApplySecurityGroupsToLoadBalancerCommandError = async (output, context)
|
|
|
456
397
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
457
398
|
default:
|
|
458
399
|
const parsedBody = parsedOutput.body;
|
|
459
|
-
|
|
400
|
+
return throwDefaultError({
|
|
460
401
|
output,
|
|
461
402
|
parsedBody: parsedBody.Error,
|
|
462
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
463
403
|
errorCode,
|
|
464
404
|
});
|
|
465
405
|
}
|
|
@@ -475,7 +415,7 @@ const de_AttachLoadBalancerToSubnetsCommand = async (output, context) => {
|
|
|
475
415
|
$metadata: deserializeMetadata(output),
|
|
476
416
|
...contents,
|
|
477
417
|
};
|
|
478
|
-
return
|
|
418
|
+
return response;
|
|
479
419
|
};
|
|
480
420
|
exports.de_AttachLoadBalancerToSubnetsCommand = de_AttachLoadBalancerToSubnetsCommand;
|
|
481
421
|
const de_AttachLoadBalancerToSubnetsCommandError = async (output, context) => {
|
|
@@ -499,10 +439,9 @@ const de_AttachLoadBalancerToSubnetsCommandError = async (output, context) => {
|
|
|
499
439
|
throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
|
|
500
440
|
default:
|
|
501
441
|
const parsedBody = parsedOutput.body;
|
|
502
|
-
|
|
442
|
+
return throwDefaultError({
|
|
503
443
|
output,
|
|
504
444
|
parsedBody: parsedBody.Error,
|
|
505
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
506
445
|
errorCode,
|
|
507
446
|
});
|
|
508
447
|
}
|
|
@@ -518,7 +457,7 @@ const de_ConfigureHealthCheckCommand = async (output, context) => {
|
|
|
518
457
|
$metadata: deserializeMetadata(output),
|
|
519
458
|
...contents,
|
|
520
459
|
};
|
|
521
|
-
return
|
|
460
|
+
return response;
|
|
522
461
|
};
|
|
523
462
|
exports.de_ConfigureHealthCheckCommand = de_ConfigureHealthCheckCommand;
|
|
524
463
|
const de_ConfigureHealthCheckCommandError = async (output, context) => {
|
|
@@ -533,10 +472,9 @@ const de_ConfigureHealthCheckCommandError = async (output, context) => {
|
|
|
533
472
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
534
473
|
default:
|
|
535
474
|
const parsedBody = parsedOutput.body;
|
|
536
|
-
|
|
475
|
+
return throwDefaultError({
|
|
537
476
|
output,
|
|
538
477
|
parsedBody: parsedBody.Error,
|
|
539
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
540
478
|
errorCode,
|
|
541
479
|
});
|
|
542
480
|
}
|
|
@@ -552,7 +490,7 @@ const de_CreateAppCookieStickinessPolicyCommand = async (output, context) => {
|
|
|
552
490
|
$metadata: deserializeMetadata(output),
|
|
553
491
|
...contents,
|
|
554
492
|
};
|
|
555
|
-
return
|
|
493
|
+
return response;
|
|
556
494
|
};
|
|
557
495
|
exports.de_CreateAppCookieStickinessPolicyCommand = de_CreateAppCookieStickinessPolicyCommand;
|
|
558
496
|
const de_CreateAppCookieStickinessPolicyCommandError = async (output, context) => {
|
|
@@ -576,10 +514,9 @@ const de_CreateAppCookieStickinessPolicyCommandError = async (output, context) =
|
|
|
576
514
|
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
577
515
|
default:
|
|
578
516
|
const parsedBody = parsedOutput.body;
|
|
579
|
-
|
|
517
|
+
return throwDefaultError({
|
|
580
518
|
output,
|
|
581
519
|
parsedBody: parsedBody.Error,
|
|
582
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
583
520
|
errorCode,
|
|
584
521
|
});
|
|
585
522
|
}
|
|
@@ -595,7 +532,7 @@ const de_CreateLBCookieStickinessPolicyCommand = async (output, context) => {
|
|
|
595
532
|
$metadata: deserializeMetadata(output),
|
|
596
533
|
...contents,
|
|
597
534
|
};
|
|
598
|
-
return
|
|
535
|
+
return response;
|
|
599
536
|
};
|
|
600
537
|
exports.de_CreateLBCookieStickinessPolicyCommand = de_CreateLBCookieStickinessPolicyCommand;
|
|
601
538
|
const de_CreateLBCookieStickinessPolicyCommandError = async (output, context) => {
|
|
@@ -619,10 +556,9 @@ const de_CreateLBCookieStickinessPolicyCommandError = async (output, context) =>
|
|
|
619
556
|
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
620
557
|
default:
|
|
621
558
|
const parsedBody = parsedOutput.body;
|
|
622
|
-
|
|
559
|
+
return throwDefaultError({
|
|
623
560
|
output,
|
|
624
561
|
parsedBody: parsedBody.Error,
|
|
625
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
626
562
|
errorCode,
|
|
627
563
|
});
|
|
628
564
|
}
|
|
@@ -638,7 +574,7 @@ const de_CreateLoadBalancerCommand = async (output, context) => {
|
|
|
638
574
|
$metadata: deserializeMetadata(output),
|
|
639
575
|
...contents,
|
|
640
576
|
};
|
|
641
|
-
return
|
|
577
|
+
return response;
|
|
642
578
|
};
|
|
643
579
|
exports.de_CreateLoadBalancerCommand = de_CreateLoadBalancerCommand;
|
|
644
580
|
const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
@@ -686,10 +622,9 @@ const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
|
686
622
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
687
623
|
default:
|
|
688
624
|
const parsedBody = parsedOutput.body;
|
|
689
|
-
|
|
625
|
+
return throwDefaultError({
|
|
690
626
|
output,
|
|
691
627
|
parsedBody: parsedBody.Error,
|
|
692
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
693
628
|
errorCode,
|
|
694
629
|
});
|
|
695
630
|
}
|
|
@@ -705,7 +640,7 @@ const de_CreateLoadBalancerListenersCommand = async (output, context) => {
|
|
|
705
640
|
$metadata: deserializeMetadata(output),
|
|
706
641
|
...contents,
|
|
707
642
|
};
|
|
708
|
-
return
|
|
643
|
+
return response;
|
|
709
644
|
};
|
|
710
645
|
exports.de_CreateLoadBalancerListenersCommand = de_CreateLoadBalancerListenersCommand;
|
|
711
646
|
const de_CreateLoadBalancerListenersCommandError = async (output, context) => {
|
|
@@ -732,10 +667,9 @@ const de_CreateLoadBalancerListenersCommandError = async (output, context) => {
|
|
|
732
667
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
733
668
|
default:
|
|
734
669
|
const parsedBody = parsedOutput.body;
|
|
735
|
-
|
|
670
|
+
return throwDefaultError({
|
|
736
671
|
output,
|
|
737
672
|
parsedBody: parsedBody.Error,
|
|
738
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
739
673
|
errorCode,
|
|
740
674
|
});
|
|
741
675
|
}
|
|
@@ -751,7 +685,7 @@ const de_CreateLoadBalancerPolicyCommand = async (output, context) => {
|
|
|
751
685
|
$metadata: deserializeMetadata(output),
|
|
752
686
|
...contents,
|
|
753
687
|
};
|
|
754
|
-
return
|
|
688
|
+
return response;
|
|
755
689
|
};
|
|
756
690
|
exports.de_CreateLoadBalancerPolicyCommand = de_CreateLoadBalancerPolicyCommand;
|
|
757
691
|
const de_CreateLoadBalancerPolicyCommandError = async (output, context) => {
|
|
@@ -778,10 +712,9 @@ const de_CreateLoadBalancerPolicyCommandError = async (output, context) => {
|
|
|
778
712
|
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
779
713
|
default:
|
|
780
714
|
const parsedBody = parsedOutput.body;
|
|
781
|
-
|
|
715
|
+
return throwDefaultError({
|
|
782
716
|
output,
|
|
783
717
|
parsedBody: parsedBody.Error,
|
|
784
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
785
718
|
errorCode,
|
|
786
719
|
});
|
|
787
720
|
}
|
|
@@ -797,7 +730,7 @@ const de_DeleteLoadBalancerCommand = async (output, context) => {
|
|
|
797
730
|
$metadata: deserializeMetadata(output),
|
|
798
731
|
...contents,
|
|
799
732
|
};
|
|
800
|
-
return
|
|
733
|
+
return response;
|
|
801
734
|
};
|
|
802
735
|
exports.de_DeleteLoadBalancerCommand = de_DeleteLoadBalancerCommand;
|
|
803
736
|
const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
@@ -807,10 +740,9 @@ const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
|
807
740
|
};
|
|
808
741
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
809
742
|
const parsedBody = parsedOutput.body;
|
|
810
|
-
|
|
743
|
+
return throwDefaultError({
|
|
811
744
|
output,
|
|
812
745
|
parsedBody: parsedBody.Error,
|
|
813
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
814
746
|
errorCode,
|
|
815
747
|
});
|
|
816
748
|
};
|
|
@@ -825,7 +757,7 @@ const de_DeleteLoadBalancerListenersCommand = async (output, context) => {
|
|
|
825
757
|
$metadata: deserializeMetadata(output),
|
|
826
758
|
...contents,
|
|
827
759
|
};
|
|
828
|
-
return
|
|
760
|
+
return response;
|
|
829
761
|
};
|
|
830
762
|
exports.de_DeleteLoadBalancerListenersCommand = de_DeleteLoadBalancerListenersCommand;
|
|
831
763
|
const de_DeleteLoadBalancerListenersCommandError = async (output, context) => {
|
|
@@ -840,10 +772,9 @@ const de_DeleteLoadBalancerListenersCommandError = async (output, context) => {
|
|
|
840
772
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
841
773
|
default:
|
|
842
774
|
const parsedBody = parsedOutput.body;
|
|
843
|
-
|
|
775
|
+
return throwDefaultError({
|
|
844
776
|
output,
|
|
845
777
|
parsedBody: parsedBody.Error,
|
|
846
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
847
778
|
errorCode,
|
|
848
779
|
});
|
|
849
780
|
}
|
|
@@ -859,7 +790,7 @@ const de_DeleteLoadBalancerPolicyCommand = async (output, context) => {
|
|
|
859
790
|
$metadata: deserializeMetadata(output),
|
|
860
791
|
...contents,
|
|
861
792
|
};
|
|
862
|
-
return
|
|
793
|
+
return response;
|
|
863
794
|
};
|
|
864
795
|
exports.de_DeleteLoadBalancerPolicyCommand = de_DeleteLoadBalancerPolicyCommand;
|
|
865
796
|
const de_DeleteLoadBalancerPolicyCommandError = async (output, context) => {
|
|
@@ -877,10 +808,9 @@ const de_DeleteLoadBalancerPolicyCommandError = async (output, context) => {
|
|
|
877
808
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
878
809
|
default:
|
|
879
810
|
const parsedBody = parsedOutput.body;
|
|
880
|
-
|
|
811
|
+
return throwDefaultError({
|
|
881
812
|
output,
|
|
882
813
|
parsedBody: parsedBody.Error,
|
|
883
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
884
814
|
errorCode,
|
|
885
815
|
});
|
|
886
816
|
}
|
|
@@ -896,7 +826,7 @@ const de_DeregisterInstancesFromLoadBalancerCommand = async (output, context) =>
|
|
|
896
826
|
$metadata: deserializeMetadata(output),
|
|
897
827
|
...contents,
|
|
898
828
|
};
|
|
899
|
-
return
|
|
829
|
+
return response;
|
|
900
830
|
};
|
|
901
831
|
exports.de_DeregisterInstancesFromLoadBalancerCommand = de_DeregisterInstancesFromLoadBalancerCommand;
|
|
902
832
|
const de_DeregisterInstancesFromLoadBalancerCommandError = async (output, context) => {
|
|
@@ -914,10 +844,9 @@ const de_DeregisterInstancesFromLoadBalancerCommandError = async (output, contex
|
|
|
914
844
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
915
845
|
default:
|
|
916
846
|
const parsedBody = parsedOutput.body;
|
|
917
|
-
|
|
847
|
+
return throwDefaultError({
|
|
918
848
|
output,
|
|
919
849
|
parsedBody: parsedBody.Error,
|
|
920
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
921
850
|
errorCode,
|
|
922
851
|
});
|
|
923
852
|
}
|
|
@@ -933,7 +862,7 @@ const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
|
933
862
|
$metadata: deserializeMetadata(output),
|
|
934
863
|
...contents,
|
|
935
864
|
};
|
|
936
|
-
return
|
|
865
|
+
return response;
|
|
937
866
|
};
|
|
938
867
|
exports.de_DescribeAccountLimitsCommand = de_DescribeAccountLimitsCommand;
|
|
939
868
|
const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
@@ -943,10 +872,9 @@ const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
|
943
872
|
};
|
|
944
873
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
945
874
|
const parsedBody = parsedOutput.body;
|
|
946
|
-
|
|
875
|
+
return throwDefaultError({
|
|
947
876
|
output,
|
|
948
877
|
parsedBody: parsedBody.Error,
|
|
949
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
950
878
|
errorCode,
|
|
951
879
|
});
|
|
952
880
|
};
|
|
@@ -961,7 +889,7 @@ const de_DescribeInstanceHealthCommand = async (output, context) => {
|
|
|
961
889
|
$metadata: deserializeMetadata(output),
|
|
962
890
|
...contents,
|
|
963
891
|
};
|
|
964
|
-
return
|
|
892
|
+
return response;
|
|
965
893
|
};
|
|
966
894
|
exports.de_DescribeInstanceHealthCommand = de_DescribeInstanceHealthCommand;
|
|
967
895
|
const de_DescribeInstanceHealthCommandError = async (output, context) => {
|
|
@@ -979,10 +907,9 @@ const de_DescribeInstanceHealthCommandError = async (output, context) => {
|
|
|
979
907
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
980
908
|
default:
|
|
981
909
|
const parsedBody = parsedOutput.body;
|
|
982
|
-
|
|
910
|
+
return throwDefaultError({
|
|
983
911
|
output,
|
|
984
912
|
parsedBody: parsedBody.Error,
|
|
985
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
986
913
|
errorCode,
|
|
987
914
|
});
|
|
988
915
|
}
|
|
@@ -998,7 +925,7 @@ const de_DescribeLoadBalancerAttributesCommand = async (output, context) => {
|
|
|
998
925
|
$metadata: deserializeMetadata(output),
|
|
999
926
|
...contents,
|
|
1000
927
|
};
|
|
1001
|
-
return
|
|
928
|
+
return response;
|
|
1002
929
|
};
|
|
1003
930
|
exports.de_DescribeLoadBalancerAttributesCommand = de_DescribeLoadBalancerAttributesCommand;
|
|
1004
931
|
const de_DescribeLoadBalancerAttributesCommandError = async (output, context) => {
|
|
@@ -1016,10 +943,9 @@ const de_DescribeLoadBalancerAttributesCommandError = async (output, context) =>
|
|
|
1016
943
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1017
944
|
default:
|
|
1018
945
|
const parsedBody = parsedOutput.body;
|
|
1019
|
-
|
|
946
|
+
return throwDefaultError({
|
|
1020
947
|
output,
|
|
1021
948
|
parsedBody: parsedBody.Error,
|
|
1022
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1023
949
|
errorCode,
|
|
1024
950
|
});
|
|
1025
951
|
}
|
|
@@ -1035,7 +961,7 @@ const de_DescribeLoadBalancerPoliciesCommand = async (output, context) => {
|
|
|
1035
961
|
$metadata: deserializeMetadata(output),
|
|
1036
962
|
...contents,
|
|
1037
963
|
};
|
|
1038
|
-
return
|
|
964
|
+
return response;
|
|
1039
965
|
};
|
|
1040
966
|
exports.de_DescribeLoadBalancerPoliciesCommand = de_DescribeLoadBalancerPoliciesCommand;
|
|
1041
967
|
const de_DescribeLoadBalancerPoliciesCommandError = async (output, context) => {
|
|
@@ -1053,10 +979,9 @@ const de_DescribeLoadBalancerPoliciesCommandError = async (output, context) => {
|
|
|
1053
979
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1054
980
|
default:
|
|
1055
981
|
const parsedBody = parsedOutput.body;
|
|
1056
|
-
|
|
982
|
+
return throwDefaultError({
|
|
1057
983
|
output,
|
|
1058
984
|
parsedBody: parsedBody.Error,
|
|
1059
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1060
985
|
errorCode,
|
|
1061
986
|
});
|
|
1062
987
|
}
|
|
@@ -1072,7 +997,7 @@ const de_DescribeLoadBalancerPolicyTypesCommand = async (output, context) => {
|
|
|
1072
997
|
$metadata: deserializeMetadata(output),
|
|
1073
998
|
...contents,
|
|
1074
999
|
};
|
|
1075
|
-
return
|
|
1000
|
+
return response;
|
|
1076
1001
|
};
|
|
1077
1002
|
exports.de_DescribeLoadBalancerPolicyTypesCommand = de_DescribeLoadBalancerPolicyTypesCommand;
|
|
1078
1003
|
const de_DescribeLoadBalancerPolicyTypesCommandError = async (output, context) => {
|
|
@@ -1087,10 +1012,9 @@ const de_DescribeLoadBalancerPolicyTypesCommandError = async (output, context) =
|
|
|
1087
1012
|
throw await de_PolicyTypeNotFoundExceptionRes(parsedOutput, context);
|
|
1088
1013
|
default:
|
|
1089
1014
|
const parsedBody = parsedOutput.body;
|
|
1090
|
-
|
|
1015
|
+
return throwDefaultError({
|
|
1091
1016
|
output,
|
|
1092
1017
|
parsedBody: parsedBody.Error,
|
|
1093
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1094
1018
|
errorCode,
|
|
1095
1019
|
});
|
|
1096
1020
|
}
|
|
@@ -1106,7 +1030,7 @@ const de_DescribeLoadBalancersCommand = async (output, context) => {
|
|
|
1106
1030
|
$metadata: deserializeMetadata(output),
|
|
1107
1031
|
...contents,
|
|
1108
1032
|
};
|
|
1109
|
-
return
|
|
1033
|
+
return response;
|
|
1110
1034
|
};
|
|
1111
1035
|
exports.de_DescribeLoadBalancersCommand = de_DescribeLoadBalancersCommand;
|
|
1112
1036
|
const de_DescribeLoadBalancersCommandError = async (output, context) => {
|
|
@@ -1124,10 +1048,9 @@ const de_DescribeLoadBalancersCommandError = async (output, context) => {
|
|
|
1124
1048
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1125
1049
|
default:
|
|
1126
1050
|
const parsedBody = parsedOutput.body;
|
|
1127
|
-
|
|
1051
|
+
return throwDefaultError({
|
|
1128
1052
|
output,
|
|
1129
1053
|
parsedBody: parsedBody.Error,
|
|
1130
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1131
1054
|
errorCode,
|
|
1132
1055
|
});
|
|
1133
1056
|
}
|
|
@@ -1143,7 +1066,7 @@ const de_DescribeTagsCommand = async (output, context) => {
|
|
|
1143
1066
|
$metadata: deserializeMetadata(output),
|
|
1144
1067
|
...contents,
|
|
1145
1068
|
};
|
|
1146
|
-
return
|
|
1069
|
+
return response;
|
|
1147
1070
|
};
|
|
1148
1071
|
exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
|
|
1149
1072
|
const de_DescribeTagsCommandError = async (output, context) => {
|
|
@@ -1158,10 +1081,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
|
|
|
1158
1081
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1159
1082
|
default:
|
|
1160
1083
|
const parsedBody = parsedOutput.body;
|
|
1161
|
-
|
|
1084
|
+
return throwDefaultError({
|
|
1162
1085
|
output,
|
|
1163
1086
|
parsedBody: parsedBody.Error,
|
|
1164
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1165
1087
|
errorCode,
|
|
1166
1088
|
});
|
|
1167
1089
|
}
|
|
@@ -1177,7 +1099,7 @@ const de_DetachLoadBalancerFromSubnetsCommand = async (output, context) => {
|
|
|
1177
1099
|
$metadata: deserializeMetadata(output),
|
|
1178
1100
|
...contents,
|
|
1179
1101
|
};
|
|
1180
|
-
return
|
|
1102
|
+
return response;
|
|
1181
1103
|
};
|
|
1182
1104
|
exports.de_DetachLoadBalancerFromSubnetsCommand = de_DetachLoadBalancerFromSubnetsCommand;
|
|
1183
1105
|
const de_DetachLoadBalancerFromSubnetsCommandError = async (output, context) => {
|
|
@@ -1195,10 +1117,9 @@ const de_DetachLoadBalancerFromSubnetsCommandError = async (output, context) =>
|
|
|
1195
1117
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1196
1118
|
default:
|
|
1197
1119
|
const parsedBody = parsedOutput.body;
|
|
1198
|
-
|
|
1120
|
+
return throwDefaultError({
|
|
1199
1121
|
output,
|
|
1200
1122
|
parsedBody: parsedBody.Error,
|
|
1201
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1202
1123
|
errorCode,
|
|
1203
1124
|
});
|
|
1204
1125
|
}
|
|
@@ -1214,7 +1135,7 @@ const de_DisableAvailabilityZonesForLoadBalancerCommand = async (output, context
|
|
|
1214
1135
|
$metadata: deserializeMetadata(output),
|
|
1215
1136
|
...contents,
|
|
1216
1137
|
};
|
|
1217
|
-
return
|
|
1138
|
+
return response;
|
|
1218
1139
|
};
|
|
1219
1140
|
exports.de_DisableAvailabilityZonesForLoadBalancerCommand = de_DisableAvailabilityZonesForLoadBalancerCommand;
|
|
1220
1141
|
const de_DisableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
|
|
@@ -1232,10 +1153,9 @@ const de_DisableAvailabilityZonesForLoadBalancerCommandError = async (output, co
|
|
|
1232
1153
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1233
1154
|
default:
|
|
1234
1155
|
const parsedBody = parsedOutput.body;
|
|
1235
|
-
|
|
1156
|
+
return throwDefaultError({
|
|
1236
1157
|
output,
|
|
1237
1158
|
parsedBody: parsedBody.Error,
|
|
1238
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1239
1159
|
errorCode,
|
|
1240
1160
|
});
|
|
1241
1161
|
}
|
|
@@ -1251,7 +1171,7 @@ const de_EnableAvailabilityZonesForLoadBalancerCommand = async (output, context)
|
|
|
1251
1171
|
$metadata: deserializeMetadata(output),
|
|
1252
1172
|
...contents,
|
|
1253
1173
|
};
|
|
1254
|
-
return
|
|
1174
|
+
return response;
|
|
1255
1175
|
};
|
|
1256
1176
|
exports.de_EnableAvailabilityZonesForLoadBalancerCommand = de_EnableAvailabilityZonesForLoadBalancerCommand;
|
|
1257
1177
|
const de_EnableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
|
|
@@ -1266,10 +1186,9 @@ const de_EnableAvailabilityZonesForLoadBalancerCommandError = async (output, con
|
|
|
1266
1186
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1267
1187
|
default:
|
|
1268
1188
|
const parsedBody = parsedOutput.body;
|
|
1269
|
-
|
|
1189
|
+
return throwDefaultError({
|
|
1270
1190
|
output,
|
|
1271
1191
|
parsedBody: parsedBody.Error,
|
|
1272
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1273
1192
|
errorCode,
|
|
1274
1193
|
});
|
|
1275
1194
|
}
|
|
@@ -1285,7 +1204,7 @@ const de_ModifyLoadBalancerAttributesCommand = async (output, context) => {
|
|
|
1285
1204
|
$metadata: deserializeMetadata(output),
|
|
1286
1205
|
...contents,
|
|
1287
1206
|
};
|
|
1288
|
-
return
|
|
1207
|
+
return response;
|
|
1289
1208
|
};
|
|
1290
1209
|
exports.de_ModifyLoadBalancerAttributesCommand = de_ModifyLoadBalancerAttributesCommand;
|
|
1291
1210
|
const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
|
|
@@ -1306,10 +1225,9 @@ const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
|
|
|
1306
1225
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1307
1226
|
default:
|
|
1308
1227
|
const parsedBody = parsedOutput.body;
|
|
1309
|
-
|
|
1228
|
+
return throwDefaultError({
|
|
1310
1229
|
output,
|
|
1311
1230
|
parsedBody: parsedBody.Error,
|
|
1312
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1313
1231
|
errorCode,
|
|
1314
1232
|
});
|
|
1315
1233
|
}
|
|
@@ -1325,7 +1243,7 @@ const de_RegisterInstancesWithLoadBalancerCommand = async (output, context) => {
|
|
|
1325
1243
|
$metadata: deserializeMetadata(output),
|
|
1326
1244
|
...contents,
|
|
1327
1245
|
};
|
|
1328
|
-
return
|
|
1246
|
+
return response;
|
|
1329
1247
|
};
|
|
1330
1248
|
exports.de_RegisterInstancesWithLoadBalancerCommand = de_RegisterInstancesWithLoadBalancerCommand;
|
|
1331
1249
|
const de_RegisterInstancesWithLoadBalancerCommandError = async (output, context) => {
|
|
@@ -1343,10 +1261,9 @@ const de_RegisterInstancesWithLoadBalancerCommandError = async (output, context)
|
|
|
1343
1261
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1344
1262
|
default:
|
|
1345
1263
|
const parsedBody = parsedOutput.body;
|
|
1346
|
-
|
|
1264
|
+
return throwDefaultError({
|
|
1347
1265
|
output,
|
|
1348
1266
|
parsedBody: parsedBody.Error,
|
|
1349
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1350
1267
|
errorCode,
|
|
1351
1268
|
});
|
|
1352
1269
|
}
|
|
@@ -1362,7 +1279,7 @@ const de_RemoveTagsCommand = async (output, context) => {
|
|
|
1362
1279
|
$metadata: deserializeMetadata(output),
|
|
1363
1280
|
...contents,
|
|
1364
1281
|
};
|
|
1365
|
-
return
|
|
1282
|
+
return response;
|
|
1366
1283
|
};
|
|
1367
1284
|
exports.de_RemoveTagsCommand = de_RemoveTagsCommand;
|
|
1368
1285
|
const de_RemoveTagsCommandError = async (output, context) => {
|
|
@@ -1377,10 +1294,9 @@ const de_RemoveTagsCommandError = async (output, context) => {
|
|
|
1377
1294
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1378
1295
|
default:
|
|
1379
1296
|
const parsedBody = parsedOutput.body;
|
|
1380
|
-
|
|
1297
|
+
return throwDefaultError({
|
|
1381
1298
|
output,
|
|
1382
1299
|
parsedBody: parsedBody.Error,
|
|
1383
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1384
1300
|
errorCode,
|
|
1385
1301
|
});
|
|
1386
1302
|
}
|
|
@@ -1396,7 +1312,7 @@ const de_SetLoadBalancerListenerSSLCertificateCommand = async (output, context)
|
|
|
1396
1312
|
$metadata: deserializeMetadata(output),
|
|
1397
1313
|
...contents,
|
|
1398
1314
|
};
|
|
1399
|
-
return
|
|
1315
|
+
return response;
|
|
1400
1316
|
};
|
|
1401
1317
|
exports.de_SetLoadBalancerListenerSSLCertificateCommand = de_SetLoadBalancerListenerSSLCertificateCommand;
|
|
1402
1318
|
const de_SetLoadBalancerListenerSSLCertificateCommandError = async (output, context) => {
|
|
@@ -1423,10 +1339,9 @@ const de_SetLoadBalancerListenerSSLCertificateCommandError = async (output, cont
|
|
|
1423
1339
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1424
1340
|
default:
|
|
1425
1341
|
const parsedBody = parsedOutput.body;
|
|
1426
|
-
|
|
1342
|
+
return throwDefaultError({
|
|
1427
1343
|
output,
|
|
1428
1344
|
parsedBody: parsedBody.Error,
|
|
1429
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1430
1345
|
errorCode,
|
|
1431
1346
|
});
|
|
1432
1347
|
}
|
|
@@ -1442,7 +1357,7 @@ const de_SetLoadBalancerPoliciesForBackendServerCommand = async (output, context
|
|
|
1442
1357
|
$metadata: deserializeMetadata(output),
|
|
1443
1358
|
...contents,
|
|
1444
1359
|
};
|
|
1445
|
-
return
|
|
1360
|
+
return response;
|
|
1446
1361
|
};
|
|
1447
1362
|
exports.de_SetLoadBalancerPoliciesForBackendServerCommand = de_SetLoadBalancerPoliciesForBackendServerCommand;
|
|
1448
1363
|
const de_SetLoadBalancerPoliciesForBackendServerCommandError = async (output, context) => {
|
|
@@ -1463,10 +1378,9 @@ const de_SetLoadBalancerPoliciesForBackendServerCommandError = async (output, co
|
|
|
1463
1378
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1464
1379
|
default:
|
|
1465
1380
|
const parsedBody = parsedOutput.body;
|
|
1466
|
-
|
|
1381
|
+
return throwDefaultError({
|
|
1467
1382
|
output,
|
|
1468
1383
|
parsedBody: parsedBody.Error,
|
|
1469
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1470
1384
|
errorCode,
|
|
1471
1385
|
});
|
|
1472
1386
|
}
|
|
@@ -1482,7 +1396,7 @@ const de_SetLoadBalancerPoliciesOfListenerCommand = async (output, context) => {
|
|
|
1482
1396
|
$metadata: deserializeMetadata(output),
|
|
1483
1397
|
...contents,
|
|
1484
1398
|
};
|
|
1485
|
-
return
|
|
1399
|
+
return response;
|
|
1486
1400
|
};
|
|
1487
1401
|
exports.de_SetLoadBalancerPoliciesOfListenerCommand = de_SetLoadBalancerPoliciesOfListenerCommand;
|
|
1488
1402
|
const de_SetLoadBalancerPoliciesOfListenerCommandError = async (output, context) => {
|
|
@@ -1506,10 +1420,9 @@ const de_SetLoadBalancerPoliciesOfListenerCommandError = async (output, context)
|
|
|
1506
1420
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1507
1421
|
default:
|
|
1508
1422
|
const parsedBody = parsedOutput.body;
|
|
1509
|
-
|
|
1423
|
+
return throwDefaultError({
|
|
1510
1424
|
output,
|
|
1511
1425
|
parsedBody: parsedBody.Error,
|
|
1512
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1513
1426
|
errorCode,
|
|
1514
1427
|
});
|
|
1515
1428
|
}
|
|
@@ -3466,6 +3379,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3466
3379
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3467
3380
|
};
|
|
3468
3381
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3382
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException);
|
|
3469
3383
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3470
3384
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3471
3385
|
const contents = {
|
|
@@ -3484,6 +3398,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
3484
3398
|
}
|
|
3485
3399
|
return new protocol_http_1.HttpRequest(contents);
|
|
3486
3400
|
};
|
|
3401
|
+
const SHARED_HEADERS = {
|
|
3402
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
3403
|
+
};
|
|
3487
3404
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3488
3405
|
if (encoded.length) {
|
|
3489
3406
|
const parser = new fast_xml_parser_1.XMLParser({
|