@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
|
@@ -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, 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, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { ElasticLoadBalancingServiceException as __BaseException } from "../models/ElasticLoadBalancingServiceException";
|
|
5
5
|
import { AccessPointNotFoundException, CertificateNotFoundException, DependencyThrottleException, DuplicateAccessPointNameException, DuplicateListenerException, DuplicatePolicyNameException, DuplicateTagKeysException, InvalidConfigurationRequestException, InvalidEndPointException, InvalidSchemeException, InvalidSecurityGroupException, InvalidSubnetException, ListenerNotFoundException, LoadBalancerAttributeNotFoundException, OperationNotPermittedException, PolicyNotFoundException, PolicyTypeNotFoundException, SubnetNotFoundException, TooManyAccessPointsException, TooManyPoliciesException, TooManyTagsException, UnsupportedProtocolException, } from "../models/models_0";
|
|
6
6
|
export const se_AddTagsCommand = 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_AddTagsInput(input, context),
|
|
@@ -16,9 +14,7 @@ export const se_AddTagsCommand = async (input, context) => {
|
|
|
16
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
15
|
};
|
|
18
16
|
export const se_ApplySecurityGroupsToLoadBalancerCommand = 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_ApplySecurityGroupsToLoadBalancerInput(input, context),
|
|
@@ -28,9 +24,7 @@ export const se_ApplySecurityGroupsToLoadBalancerCommand = async (input, context
|
|
|
28
24
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
25
|
};
|
|
30
26
|
export const se_AttachLoadBalancerToSubnetsCommand = 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_AttachLoadBalancerToSubnetsInput(input, context),
|
|
@@ -40,9 +34,7 @@ export const se_AttachLoadBalancerToSubnetsCommand = async (input, context) => {
|
|
|
40
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
35
|
};
|
|
42
36
|
export const se_ConfigureHealthCheckCommand = 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_ConfigureHealthCheckInput(input, context),
|
|
@@ -52,9 +44,7 @@ export const se_ConfigureHealthCheckCommand = async (input, context) => {
|
|
|
52
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
45
|
};
|
|
54
46
|
export const se_CreateAppCookieStickinessPolicyCommand = 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_CreateAppCookieStickinessPolicyInput(input, context),
|
|
@@ -64,9 +54,7 @@ export const se_CreateAppCookieStickinessPolicyCommand = async (input, context)
|
|
|
64
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
55
|
};
|
|
66
56
|
export const se_CreateLBCookieStickinessPolicyCommand = 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_CreateLBCookieStickinessPolicyInput(input, context),
|
|
@@ -76,9 +64,7 @@ export const se_CreateLBCookieStickinessPolicyCommand = async (input, context) =
|
|
|
76
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
65
|
};
|
|
78
66
|
export const se_CreateLoadBalancerCommand = 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_CreateAccessPointInput(input, context),
|
|
@@ -88,9 +74,7 @@ export const se_CreateLoadBalancerCommand = async (input, context) => {
|
|
|
88
74
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
75
|
};
|
|
90
76
|
export const se_CreateLoadBalancerListenersCommand = 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_CreateLoadBalancerListenerInput(input, context),
|
|
@@ -100,9 +84,7 @@ export const se_CreateLoadBalancerListenersCommand = async (input, context) => {
|
|
|
100
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
85
|
};
|
|
102
86
|
export const se_CreateLoadBalancerPolicyCommand = 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_CreateLoadBalancerPolicyInput(input, context),
|
|
@@ -112,9 +94,7 @@ export const se_CreateLoadBalancerPolicyCommand = async (input, context) => {
|
|
|
112
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
95
|
};
|
|
114
96
|
export const se_DeleteLoadBalancerCommand = 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_DeleteAccessPointInput(input, context),
|
|
@@ -124,9 +104,7 @@ export const se_DeleteLoadBalancerCommand = async (input, context) => {
|
|
|
124
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
105
|
};
|
|
126
106
|
export const se_DeleteLoadBalancerListenersCommand = 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_DeleteLoadBalancerListenerInput(input, context),
|
|
@@ -136,9 +114,7 @@ export const se_DeleteLoadBalancerListenersCommand = async (input, context) => {
|
|
|
136
114
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
115
|
};
|
|
138
116
|
export const se_DeleteLoadBalancerPolicyCommand = 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_DeleteLoadBalancerPolicyInput(input, context),
|
|
@@ -148,9 +124,7 @@ export const se_DeleteLoadBalancerPolicyCommand = async (input, context) => {
|
|
|
148
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
125
|
};
|
|
150
126
|
export const se_DeregisterInstancesFromLoadBalancerCommand = 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_DeregisterEndPointsInput(input, context),
|
|
@@ -160,9 +134,7 @@ export const se_DeregisterInstancesFromLoadBalancerCommand = async (input, conte
|
|
|
160
134
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
135
|
};
|
|
162
136
|
export const se_DescribeAccountLimitsCommand = 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_DescribeAccountLimitsInput(input, context),
|
|
@@ -172,9 +144,7 @@ export const se_DescribeAccountLimitsCommand = async (input, context) => {
|
|
|
172
144
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
145
|
};
|
|
174
146
|
export const se_DescribeInstanceHealthCommand = 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_DescribeEndPointStateInput(input, context),
|
|
@@ -184,9 +154,7 @@ export const se_DescribeInstanceHealthCommand = async (input, context) => {
|
|
|
184
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
155
|
};
|
|
186
156
|
export const se_DescribeLoadBalancerAttributesCommand = 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_DescribeLoadBalancerAttributesInput(input, context),
|
|
@@ -196,9 +164,7 @@ export const se_DescribeLoadBalancerAttributesCommand = async (input, context) =
|
|
|
196
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
165
|
};
|
|
198
166
|
export const se_DescribeLoadBalancerPoliciesCommand = 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_DescribeLoadBalancerPoliciesInput(input, context),
|
|
@@ -208,9 +174,7 @@ export const se_DescribeLoadBalancerPoliciesCommand = async (input, context) =>
|
|
|
208
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
175
|
};
|
|
210
176
|
export const se_DescribeLoadBalancerPolicyTypesCommand = 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_DescribeLoadBalancerPolicyTypesInput(input, context),
|
|
@@ -220,9 +184,7 @@ export const se_DescribeLoadBalancerPolicyTypesCommand = async (input, context)
|
|
|
220
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
185
|
};
|
|
222
186
|
export const se_DescribeLoadBalancersCommand = 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_DescribeAccessPointsInput(input, context),
|
|
@@ -232,9 +194,7 @@ export const se_DescribeLoadBalancersCommand = async (input, context) => {
|
|
|
232
194
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
195
|
};
|
|
234
196
|
export const se_DescribeTagsCommand = 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_DescribeTagsInput(input, context),
|
|
@@ -244,9 +204,7 @@ export const se_DescribeTagsCommand = async (input, context) => {
|
|
|
244
204
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
205
|
};
|
|
246
206
|
export const se_DetachLoadBalancerFromSubnetsCommand = 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_DetachLoadBalancerFromSubnetsInput(input, context),
|
|
@@ -256,9 +214,7 @@ export const se_DetachLoadBalancerFromSubnetsCommand = async (input, context) =>
|
|
|
256
214
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
215
|
};
|
|
258
216
|
export const se_DisableAvailabilityZonesForLoadBalancerCommand = async (input, context) => {
|
|
259
|
-
const headers =
|
|
260
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
261
|
-
};
|
|
217
|
+
const headers = SHARED_HEADERS;
|
|
262
218
|
let body;
|
|
263
219
|
body = buildFormUrlencodedString({
|
|
264
220
|
...se_RemoveAvailabilityZonesInput(input, context),
|
|
@@ -268,9 +224,7 @@ export const se_DisableAvailabilityZonesForLoadBalancerCommand = async (input, c
|
|
|
268
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
225
|
};
|
|
270
226
|
export const se_EnableAvailabilityZonesForLoadBalancerCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
273
|
-
};
|
|
227
|
+
const headers = SHARED_HEADERS;
|
|
274
228
|
let body;
|
|
275
229
|
body = buildFormUrlencodedString({
|
|
276
230
|
...se_AddAvailabilityZonesInput(input, context),
|
|
@@ -280,9 +234,7 @@ export const se_EnableAvailabilityZonesForLoadBalancerCommand = async (input, co
|
|
|
280
234
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
235
|
};
|
|
282
236
|
export const se_ModifyLoadBalancerAttributesCommand = async (input, context) => {
|
|
283
|
-
const headers =
|
|
284
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
285
|
-
};
|
|
237
|
+
const headers = SHARED_HEADERS;
|
|
286
238
|
let body;
|
|
287
239
|
body = buildFormUrlencodedString({
|
|
288
240
|
...se_ModifyLoadBalancerAttributesInput(input, context),
|
|
@@ -292,9 +244,7 @@ export const se_ModifyLoadBalancerAttributesCommand = async (input, context) =>
|
|
|
292
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
245
|
};
|
|
294
246
|
export const se_RegisterInstancesWithLoadBalancerCommand = async (input, context) => {
|
|
295
|
-
const headers =
|
|
296
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
297
|
-
};
|
|
247
|
+
const headers = SHARED_HEADERS;
|
|
298
248
|
let body;
|
|
299
249
|
body = buildFormUrlencodedString({
|
|
300
250
|
...se_RegisterEndPointsInput(input, context),
|
|
@@ -304,9 +254,7 @@ export const se_RegisterInstancesWithLoadBalancerCommand = async (input, context
|
|
|
304
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
255
|
};
|
|
306
256
|
export const se_RemoveTagsCommand = async (input, context) => {
|
|
307
|
-
const headers =
|
|
308
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
309
|
-
};
|
|
257
|
+
const headers = SHARED_HEADERS;
|
|
310
258
|
let body;
|
|
311
259
|
body = buildFormUrlencodedString({
|
|
312
260
|
...se_RemoveTagsInput(input, context),
|
|
@@ -316,9 +264,7 @@ export const se_RemoveTagsCommand = async (input, context) => {
|
|
|
316
264
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
265
|
};
|
|
318
266
|
export const se_SetLoadBalancerListenerSSLCertificateCommand = async (input, context) => {
|
|
319
|
-
const headers =
|
|
320
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
321
|
-
};
|
|
267
|
+
const headers = SHARED_HEADERS;
|
|
322
268
|
let body;
|
|
323
269
|
body = buildFormUrlencodedString({
|
|
324
270
|
...se_SetLoadBalancerListenerSSLCertificateInput(input, context),
|
|
@@ -328,9 +274,7 @@ export const se_SetLoadBalancerListenerSSLCertificateCommand = async (input, con
|
|
|
328
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
275
|
};
|
|
330
276
|
export const se_SetLoadBalancerPoliciesForBackendServerCommand = async (input, context) => {
|
|
331
|
-
const headers =
|
|
332
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
333
|
-
};
|
|
277
|
+
const headers = SHARED_HEADERS;
|
|
334
278
|
let body;
|
|
335
279
|
body = buildFormUrlencodedString({
|
|
336
280
|
...se_SetLoadBalancerPoliciesForBackendServerInput(input, context),
|
|
@@ -340,9 +284,7 @@ export const se_SetLoadBalancerPoliciesForBackendServerCommand = async (input, c
|
|
|
340
284
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
285
|
};
|
|
342
286
|
export const se_SetLoadBalancerPoliciesOfListenerCommand = async (input, context) => {
|
|
343
|
-
const headers =
|
|
344
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
345
|
-
};
|
|
287
|
+
const headers = SHARED_HEADERS;
|
|
346
288
|
let body;
|
|
347
289
|
body = buildFormUrlencodedString({
|
|
348
290
|
...se_SetLoadBalancerPoliciesOfListenerInput(input, context),
|
|
@@ -362,7 +304,7 @@ export const de_AddTagsCommand = async (output, context) => {
|
|
|
362
304
|
$metadata: deserializeMetadata(output),
|
|
363
305
|
...contents,
|
|
364
306
|
};
|
|
365
|
-
return
|
|
307
|
+
return response;
|
|
366
308
|
};
|
|
367
309
|
const de_AddTagsCommandError = async (output, context) => {
|
|
368
310
|
const parsedOutput = {
|
|
@@ -382,10 +324,9 @@ const de_AddTagsCommandError = async (output, context) => {
|
|
|
382
324
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
383
325
|
default:
|
|
384
326
|
const parsedBody = parsedOutput.body;
|
|
385
|
-
throwDefaultError({
|
|
327
|
+
return throwDefaultError({
|
|
386
328
|
output,
|
|
387
329
|
parsedBody: parsedBody.Error,
|
|
388
|
-
exceptionCtor: __BaseException,
|
|
389
330
|
errorCode,
|
|
390
331
|
});
|
|
391
332
|
}
|
|
@@ -401,7 +342,7 @@ export const de_ApplySecurityGroupsToLoadBalancerCommand = async (output, contex
|
|
|
401
342
|
$metadata: deserializeMetadata(output),
|
|
402
343
|
...contents,
|
|
403
344
|
};
|
|
404
|
-
return
|
|
345
|
+
return response;
|
|
405
346
|
};
|
|
406
347
|
const de_ApplySecurityGroupsToLoadBalancerCommandError = async (output, context) => {
|
|
407
348
|
const parsedOutput = {
|
|
@@ -421,10 +362,9 @@ const de_ApplySecurityGroupsToLoadBalancerCommandError = async (output, context)
|
|
|
421
362
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
422
363
|
default:
|
|
423
364
|
const parsedBody = parsedOutput.body;
|
|
424
|
-
throwDefaultError({
|
|
365
|
+
return throwDefaultError({
|
|
425
366
|
output,
|
|
426
367
|
parsedBody: parsedBody.Error,
|
|
427
|
-
exceptionCtor: __BaseException,
|
|
428
368
|
errorCode,
|
|
429
369
|
});
|
|
430
370
|
}
|
|
@@ -440,7 +380,7 @@ export const de_AttachLoadBalancerToSubnetsCommand = async (output, context) =>
|
|
|
440
380
|
$metadata: deserializeMetadata(output),
|
|
441
381
|
...contents,
|
|
442
382
|
};
|
|
443
|
-
return
|
|
383
|
+
return response;
|
|
444
384
|
};
|
|
445
385
|
const de_AttachLoadBalancerToSubnetsCommandError = async (output, context) => {
|
|
446
386
|
const parsedOutput = {
|
|
@@ -463,10 +403,9 @@ const de_AttachLoadBalancerToSubnetsCommandError = async (output, context) => {
|
|
|
463
403
|
throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
|
|
464
404
|
default:
|
|
465
405
|
const parsedBody = parsedOutput.body;
|
|
466
|
-
throwDefaultError({
|
|
406
|
+
return throwDefaultError({
|
|
467
407
|
output,
|
|
468
408
|
parsedBody: parsedBody.Error,
|
|
469
|
-
exceptionCtor: __BaseException,
|
|
470
409
|
errorCode,
|
|
471
410
|
});
|
|
472
411
|
}
|
|
@@ -482,7 +421,7 @@ export const de_ConfigureHealthCheckCommand = async (output, context) => {
|
|
|
482
421
|
$metadata: deserializeMetadata(output),
|
|
483
422
|
...contents,
|
|
484
423
|
};
|
|
485
|
-
return
|
|
424
|
+
return response;
|
|
486
425
|
};
|
|
487
426
|
const de_ConfigureHealthCheckCommandError = async (output, context) => {
|
|
488
427
|
const parsedOutput = {
|
|
@@ -496,10 +435,9 @@ const de_ConfigureHealthCheckCommandError = async (output, context) => {
|
|
|
496
435
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
497
436
|
default:
|
|
498
437
|
const parsedBody = parsedOutput.body;
|
|
499
|
-
throwDefaultError({
|
|
438
|
+
return throwDefaultError({
|
|
500
439
|
output,
|
|
501
440
|
parsedBody: parsedBody.Error,
|
|
502
|
-
exceptionCtor: __BaseException,
|
|
503
441
|
errorCode,
|
|
504
442
|
});
|
|
505
443
|
}
|
|
@@ -515,7 +453,7 @@ export const de_CreateAppCookieStickinessPolicyCommand = async (output, context)
|
|
|
515
453
|
$metadata: deserializeMetadata(output),
|
|
516
454
|
...contents,
|
|
517
455
|
};
|
|
518
|
-
return
|
|
456
|
+
return response;
|
|
519
457
|
};
|
|
520
458
|
const de_CreateAppCookieStickinessPolicyCommandError = async (output, context) => {
|
|
521
459
|
const parsedOutput = {
|
|
@@ -538,10 +476,9 @@ const de_CreateAppCookieStickinessPolicyCommandError = async (output, context) =
|
|
|
538
476
|
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
539
477
|
default:
|
|
540
478
|
const parsedBody = parsedOutput.body;
|
|
541
|
-
throwDefaultError({
|
|
479
|
+
return throwDefaultError({
|
|
542
480
|
output,
|
|
543
481
|
parsedBody: parsedBody.Error,
|
|
544
|
-
exceptionCtor: __BaseException,
|
|
545
482
|
errorCode,
|
|
546
483
|
});
|
|
547
484
|
}
|
|
@@ -557,7 +494,7 @@ export const de_CreateLBCookieStickinessPolicyCommand = async (output, context)
|
|
|
557
494
|
$metadata: deserializeMetadata(output),
|
|
558
495
|
...contents,
|
|
559
496
|
};
|
|
560
|
-
return
|
|
497
|
+
return response;
|
|
561
498
|
};
|
|
562
499
|
const de_CreateLBCookieStickinessPolicyCommandError = async (output, context) => {
|
|
563
500
|
const parsedOutput = {
|
|
@@ -580,10 +517,9 @@ const de_CreateLBCookieStickinessPolicyCommandError = async (output, context) =>
|
|
|
580
517
|
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
581
518
|
default:
|
|
582
519
|
const parsedBody = parsedOutput.body;
|
|
583
|
-
throwDefaultError({
|
|
520
|
+
return throwDefaultError({
|
|
584
521
|
output,
|
|
585
522
|
parsedBody: parsedBody.Error,
|
|
586
|
-
exceptionCtor: __BaseException,
|
|
587
523
|
errorCode,
|
|
588
524
|
});
|
|
589
525
|
}
|
|
@@ -599,7 +535,7 @@ export const de_CreateLoadBalancerCommand = async (output, context) => {
|
|
|
599
535
|
$metadata: deserializeMetadata(output),
|
|
600
536
|
...contents,
|
|
601
537
|
};
|
|
602
|
-
return
|
|
538
|
+
return response;
|
|
603
539
|
};
|
|
604
540
|
const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
605
541
|
const parsedOutput = {
|
|
@@ -646,10 +582,9 @@ const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
|
646
582
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
647
583
|
default:
|
|
648
584
|
const parsedBody = parsedOutput.body;
|
|
649
|
-
throwDefaultError({
|
|
585
|
+
return throwDefaultError({
|
|
650
586
|
output,
|
|
651
587
|
parsedBody: parsedBody.Error,
|
|
652
|
-
exceptionCtor: __BaseException,
|
|
653
588
|
errorCode,
|
|
654
589
|
});
|
|
655
590
|
}
|
|
@@ -665,7 +600,7 @@ export const de_CreateLoadBalancerListenersCommand = async (output, context) =>
|
|
|
665
600
|
$metadata: deserializeMetadata(output),
|
|
666
601
|
...contents,
|
|
667
602
|
};
|
|
668
|
-
return
|
|
603
|
+
return response;
|
|
669
604
|
};
|
|
670
605
|
const de_CreateLoadBalancerListenersCommandError = async (output, context) => {
|
|
671
606
|
const parsedOutput = {
|
|
@@ -691,10 +626,9 @@ const de_CreateLoadBalancerListenersCommandError = async (output, context) => {
|
|
|
691
626
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
692
627
|
default:
|
|
693
628
|
const parsedBody = parsedOutput.body;
|
|
694
|
-
throwDefaultError({
|
|
629
|
+
return throwDefaultError({
|
|
695
630
|
output,
|
|
696
631
|
parsedBody: parsedBody.Error,
|
|
697
|
-
exceptionCtor: __BaseException,
|
|
698
632
|
errorCode,
|
|
699
633
|
});
|
|
700
634
|
}
|
|
@@ -710,7 +644,7 @@ export const de_CreateLoadBalancerPolicyCommand = async (output, context) => {
|
|
|
710
644
|
$metadata: deserializeMetadata(output),
|
|
711
645
|
...contents,
|
|
712
646
|
};
|
|
713
|
-
return
|
|
647
|
+
return response;
|
|
714
648
|
};
|
|
715
649
|
const de_CreateLoadBalancerPolicyCommandError = async (output, context) => {
|
|
716
650
|
const parsedOutput = {
|
|
@@ -736,10 +670,9 @@ const de_CreateLoadBalancerPolicyCommandError = async (output, context) => {
|
|
|
736
670
|
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
737
671
|
default:
|
|
738
672
|
const parsedBody = parsedOutput.body;
|
|
739
|
-
throwDefaultError({
|
|
673
|
+
return throwDefaultError({
|
|
740
674
|
output,
|
|
741
675
|
parsedBody: parsedBody.Error,
|
|
742
|
-
exceptionCtor: __BaseException,
|
|
743
676
|
errorCode,
|
|
744
677
|
});
|
|
745
678
|
}
|
|
@@ -755,7 +688,7 @@ export const de_DeleteLoadBalancerCommand = async (output, context) => {
|
|
|
755
688
|
$metadata: deserializeMetadata(output),
|
|
756
689
|
...contents,
|
|
757
690
|
};
|
|
758
|
-
return
|
|
691
|
+
return response;
|
|
759
692
|
};
|
|
760
693
|
const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
761
694
|
const parsedOutput = {
|
|
@@ -764,10 +697,9 @@ const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
|
764
697
|
};
|
|
765
698
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
766
699
|
const parsedBody = parsedOutput.body;
|
|
767
|
-
throwDefaultError({
|
|
700
|
+
return throwDefaultError({
|
|
768
701
|
output,
|
|
769
702
|
parsedBody: parsedBody.Error,
|
|
770
|
-
exceptionCtor: __BaseException,
|
|
771
703
|
errorCode,
|
|
772
704
|
});
|
|
773
705
|
};
|
|
@@ -782,7 +714,7 @@ export const de_DeleteLoadBalancerListenersCommand = async (output, context) =>
|
|
|
782
714
|
$metadata: deserializeMetadata(output),
|
|
783
715
|
...contents,
|
|
784
716
|
};
|
|
785
|
-
return
|
|
717
|
+
return response;
|
|
786
718
|
};
|
|
787
719
|
const de_DeleteLoadBalancerListenersCommandError = async (output, context) => {
|
|
788
720
|
const parsedOutput = {
|
|
@@ -796,10 +728,9 @@ const de_DeleteLoadBalancerListenersCommandError = async (output, context) => {
|
|
|
796
728
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
797
729
|
default:
|
|
798
730
|
const parsedBody = parsedOutput.body;
|
|
799
|
-
throwDefaultError({
|
|
731
|
+
return throwDefaultError({
|
|
800
732
|
output,
|
|
801
733
|
parsedBody: parsedBody.Error,
|
|
802
|
-
exceptionCtor: __BaseException,
|
|
803
734
|
errorCode,
|
|
804
735
|
});
|
|
805
736
|
}
|
|
@@ -815,7 +746,7 @@ export const de_DeleteLoadBalancerPolicyCommand = async (output, context) => {
|
|
|
815
746
|
$metadata: deserializeMetadata(output),
|
|
816
747
|
...contents,
|
|
817
748
|
};
|
|
818
|
-
return
|
|
749
|
+
return response;
|
|
819
750
|
};
|
|
820
751
|
const de_DeleteLoadBalancerPolicyCommandError = async (output, context) => {
|
|
821
752
|
const parsedOutput = {
|
|
@@ -832,10 +763,9 @@ const de_DeleteLoadBalancerPolicyCommandError = async (output, context) => {
|
|
|
832
763
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
833
764
|
default:
|
|
834
765
|
const parsedBody = parsedOutput.body;
|
|
835
|
-
throwDefaultError({
|
|
766
|
+
return throwDefaultError({
|
|
836
767
|
output,
|
|
837
768
|
parsedBody: parsedBody.Error,
|
|
838
|
-
exceptionCtor: __BaseException,
|
|
839
769
|
errorCode,
|
|
840
770
|
});
|
|
841
771
|
}
|
|
@@ -851,7 +781,7 @@ export const de_DeregisterInstancesFromLoadBalancerCommand = async (output, cont
|
|
|
851
781
|
$metadata: deserializeMetadata(output),
|
|
852
782
|
...contents,
|
|
853
783
|
};
|
|
854
|
-
return
|
|
784
|
+
return response;
|
|
855
785
|
};
|
|
856
786
|
const de_DeregisterInstancesFromLoadBalancerCommandError = async (output, context) => {
|
|
857
787
|
const parsedOutput = {
|
|
@@ -868,10 +798,9 @@ const de_DeregisterInstancesFromLoadBalancerCommandError = async (output, contex
|
|
|
868
798
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
869
799
|
default:
|
|
870
800
|
const parsedBody = parsedOutput.body;
|
|
871
|
-
throwDefaultError({
|
|
801
|
+
return throwDefaultError({
|
|
872
802
|
output,
|
|
873
803
|
parsedBody: parsedBody.Error,
|
|
874
|
-
exceptionCtor: __BaseException,
|
|
875
804
|
errorCode,
|
|
876
805
|
});
|
|
877
806
|
}
|
|
@@ -887,7 +816,7 @@ export const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
|
887
816
|
$metadata: deserializeMetadata(output),
|
|
888
817
|
...contents,
|
|
889
818
|
};
|
|
890
|
-
return
|
|
819
|
+
return response;
|
|
891
820
|
};
|
|
892
821
|
const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
893
822
|
const parsedOutput = {
|
|
@@ -896,10 +825,9 @@ const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
|
896
825
|
};
|
|
897
826
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
898
827
|
const parsedBody = parsedOutput.body;
|
|
899
|
-
throwDefaultError({
|
|
828
|
+
return throwDefaultError({
|
|
900
829
|
output,
|
|
901
830
|
parsedBody: parsedBody.Error,
|
|
902
|
-
exceptionCtor: __BaseException,
|
|
903
831
|
errorCode,
|
|
904
832
|
});
|
|
905
833
|
};
|
|
@@ -914,7 +842,7 @@ export const de_DescribeInstanceHealthCommand = async (output, context) => {
|
|
|
914
842
|
$metadata: deserializeMetadata(output),
|
|
915
843
|
...contents,
|
|
916
844
|
};
|
|
917
|
-
return
|
|
845
|
+
return response;
|
|
918
846
|
};
|
|
919
847
|
const de_DescribeInstanceHealthCommandError = async (output, context) => {
|
|
920
848
|
const parsedOutput = {
|
|
@@ -931,10 +859,9 @@ const de_DescribeInstanceHealthCommandError = async (output, context) => {
|
|
|
931
859
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
932
860
|
default:
|
|
933
861
|
const parsedBody = parsedOutput.body;
|
|
934
|
-
throwDefaultError({
|
|
862
|
+
return throwDefaultError({
|
|
935
863
|
output,
|
|
936
864
|
parsedBody: parsedBody.Error,
|
|
937
|
-
exceptionCtor: __BaseException,
|
|
938
865
|
errorCode,
|
|
939
866
|
});
|
|
940
867
|
}
|
|
@@ -950,7 +877,7 @@ export const de_DescribeLoadBalancerAttributesCommand = async (output, context)
|
|
|
950
877
|
$metadata: deserializeMetadata(output),
|
|
951
878
|
...contents,
|
|
952
879
|
};
|
|
953
|
-
return
|
|
880
|
+
return response;
|
|
954
881
|
};
|
|
955
882
|
const de_DescribeLoadBalancerAttributesCommandError = async (output, context) => {
|
|
956
883
|
const parsedOutput = {
|
|
@@ -967,10 +894,9 @@ const de_DescribeLoadBalancerAttributesCommandError = async (output, context) =>
|
|
|
967
894
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
968
895
|
default:
|
|
969
896
|
const parsedBody = parsedOutput.body;
|
|
970
|
-
throwDefaultError({
|
|
897
|
+
return throwDefaultError({
|
|
971
898
|
output,
|
|
972
899
|
parsedBody: parsedBody.Error,
|
|
973
|
-
exceptionCtor: __BaseException,
|
|
974
900
|
errorCode,
|
|
975
901
|
});
|
|
976
902
|
}
|
|
@@ -986,7 +912,7 @@ export const de_DescribeLoadBalancerPoliciesCommand = async (output, context) =>
|
|
|
986
912
|
$metadata: deserializeMetadata(output),
|
|
987
913
|
...contents,
|
|
988
914
|
};
|
|
989
|
-
return
|
|
915
|
+
return response;
|
|
990
916
|
};
|
|
991
917
|
const de_DescribeLoadBalancerPoliciesCommandError = async (output, context) => {
|
|
992
918
|
const parsedOutput = {
|
|
@@ -1003,10 +929,9 @@ const de_DescribeLoadBalancerPoliciesCommandError = async (output, context) => {
|
|
|
1003
929
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1004
930
|
default:
|
|
1005
931
|
const parsedBody = parsedOutput.body;
|
|
1006
|
-
throwDefaultError({
|
|
932
|
+
return throwDefaultError({
|
|
1007
933
|
output,
|
|
1008
934
|
parsedBody: parsedBody.Error,
|
|
1009
|
-
exceptionCtor: __BaseException,
|
|
1010
935
|
errorCode,
|
|
1011
936
|
});
|
|
1012
937
|
}
|
|
@@ -1022,7 +947,7 @@ export const de_DescribeLoadBalancerPolicyTypesCommand = async (output, context)
|
|
|
1022
947
|
$metadata: deserializeMetadata(output),
|
|
1023
948
|
...contents,
|
|
1024
949
|
};
|
|
1025
|
-
return
|
|
950
|
+
return response;
|
|
1026
951
|
};
|
|
1027
952
|
const de_DescribeLoadBalancerPolicyTypesCommandError = async (output, context) => {
|
|
1028
953
|
const parsedOutput = {
|
|
@@ -1036,10 +961,9 @@ const de_DescribeLoadBalancerPolicyTypesCommandError = async (output, context) =
|
|
|
1036
961
|
throw await de_PolicyTypeNotFoundExceptionRes(parsedOutput, context);
|
|
1037
962
|
default:
|
|
1038
963
|
const parsedBody = parsedOutput.body;
|
|
1039
|
-
throwDefaultError({
|
|
964
|
+
return throwDefaultError({
|
|
1040
965
|
output,
|
|
1041
966
|
parsedBody: parsedBody.Error,
|
|
1042
|
-
exceptionCtor: __BaseException,
|
|
1043
967
|
errorCode,
|
|
1044
968
|
});
|
|
1045
969
|
}
|
|
@@ -1055,7 +979,7 @@ export const de_DescribeLoadBalancersCommand = async (output, context) => {
|
|
|
1055
979
|
$metadata: deserializeMetadata(output),
|
|
1056
980
|
...contents,
|
|
1057
981
|
};
|
|
1058
|
-
return
|
|
982
|
+
return response;
|
|
1059
983
|
};
|
|
1060
984
|
const de_DescribeLoadBalancersCommandError = async (output, context) => {
|
|
1061
985
|
const parsedOutput = {
|
|
@@ -1072,10 +996,9 @@ const de_DescribeLoadBalancersCommandError = async (output, context) => {
|
|
|
1072
996
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1073
997
|
default:
|
|
1074
998
|
const parsedBody = parsedOutput.body;
|
|
1075
|
-
throwDefaultError({
|
|
999
|
+
return throwDefaultError({
|
|
1076
1000
|
output,
|
|
1077
1001
|
parsedBody: parsedBody.Error,
|
|
1078
|
-
exceptionCtor: __BaseException,
|
|
1079
1002
|
errorCode,
|
|
1080
1003
|
});
|
|
1081
1004
|
}
|
|
@@ -1091,7 +1014,7 @@ export const de_DescribeTagsCommand = async (output, context) => {
|
|
|
1091
1014
|
$metadata: deserializeMetadata(output),
|
|
1092
1015
|
...contents,
|
|
1093
1016
|
};
|
|
1094
|
-
return
|
|
1017
|
+
return response;
|
|
1095
1018
|
};
|
|
1096
1019
|
const de_DescribeTagsCommandError = async (output, context) => {
|
|
1097
1020
|
const parsedOutput = {
|
|
@@ -1105,10 +1028,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
|
|
|
1105
1028
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1106
1029
|
default:
|
|
1107
1030
|
const parsedBody = parsedOutput.body;
|
|
1108
|
-
throwDefaultError({
|
|
1031
|
+
return throwDefaultError({
|
|
1109
1032
|
output,
|
|
1110
1033
|
parsedBody: parsedBody.Error,
|
|
1111
|
-
exceptionCtor: __BaseException,
|
|
1112
1034
|
errorCode,
|
|
1113
1035
|
});
|
|
1114
1036
|
}
|
|
@@ -1124,7 +1046,7 @@ export const de_DetachLoadBalancerFromSubnetsCommand = async (output, context) =
|
|
|
1124
1046
|
$metadata: deserializeMetadata(output),
|
|
1125
1047
|
...contents,
|
|
1126
1048
|
};
|
|
1127
|
-
return
|
|
1049
|
+
return response;
|
|
1128
1050
|
};
|
|
1129
1051
|
const de_DetachLoadBalancerFromSubnetsCommandError = async (output, context) => {
|
|
1130
1052
|
const parsedOutput = {
|
|
@@ -1141,10 +1063,9 @@ const de_DetachLoadBalancerFromSubnetsCommandError = async (output, context) =>
|
|
|
1141
1063
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1142
1064
|
default:
|
|
1143
1065
|
const parsedBody = parsedOutput.body;
|
|
1144
|
-
throwDefaultError({
|
|
1066
|
+
return throwDefaultError({
|
|
1145
1067
|
output,
|
|
1146
1068
|
parsedBody: parsedBody.Error,
|
|
1147
|
-
exceptionCtor: __BaseException,
|
|
1148
1069
|
errorCode,
|
|
1149
1070
|
});
|
|
1150
1071
|
}
|
|
@@ -1160,7 +1081,7 @@ export const de_DisableAvailabilityZonesForLoadBalancerCommand = async (output,
|
|
|
1160
1081
|
$metadata: deserializeMetadata(output),
|
|
1161
1082
|
...contents,
|
|
1162
1083
|
};
|
|
1163
|
-
return
|
|
1084
|
+
return response;
|
|
1164
1085
|
};
|
|
1165
1086
|
const de_DisableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
|
|
1166
1087
|
const parsedOutput = {
|
|
@@ -1177,10 +1098,9 @@ const de_DisableAvailabilityZonesForLoadBalancerCommandError = async (output, co
|
|
|
1177
1098
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1178
1099
|
default:
|
|
1179
1100
|
const parsedBody = parsedOutput.body;
|
|
1180
|
-
throwDefaultError({
|
|
1101
|
+
return throwDefaultError({
|
|
1181
1102
|
output,
|
|
1182
1103
|
parsedBody: parsedBody.Error,
|
|
1183
|
-
exceptionCtor: __BaseException,
|
|
1184
1104
|
errorCode,
|
|
1185
1105
|
});
|
|
1186
1106
|
}
|
|
@@ -1196,7 +1116,7 @@ export const de_EnableAvailabilityZonesForLoadBalancerCommand = async (output, c
|
|
|
1196
1116
|
$metadata: deserializeMetadata(output),
|
|
1197
1117
|
...contents,
|
|
1198
1118
|
};
|
|
1199
|
-
return
|
|
1119
|
+
return response;
|
|
1200
1120
|
};
|
|
1201
1121
|
const de_EnableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
|
|
1202
1122
|
const parsedOutput = {
|
|
@@ -1210,10 +1130,9 @@ const de_EnableAvailabilityZonesForLoadBalancerCommandError = async (output, con
|
|
|
1210
1130
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1211
1131
|
default:
|
|
1212
1132
|
const parsedBody = parsedOutput.body;
|
|
1213
|
-
throwDefaultError({
|
|
1133
|
+
return throwDefaultError({
|
|
1214
1134
|
output,
|
|
1215
1135
|
parsedBody: parsedBody.Error,
|
|
1216
|
-
exceptionCtor: __BaseException,
|
|
1217
1136
|
errorCode,
|
|
1218
1137
|
});
|
|
1219
1138
|
}
|
|
@@ -1229,7 +1148,7 @@ export const de_ModifyLoadBalancerAttributesCommand = async (output, context) =>
|
|
|
1229
1148
|
$metadata: deserializeMetadata(output),
|
|
1230
1149
|
...contents,
|
|
1231
1150
|
};
|
|
1232
|
-
return
|
|
1151
|
+
return response;
|
|
1233
1152
|
};
|
|
1234
1153
|
const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
|
|
1235
1154
|
const parsedOutput = {
|
|
@@ -1249,10 +1168,9 @@ const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
|
|
|
1249
1168
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1250
1169
|
default:
|
|
1251
1170
|
const parsedBody = parsedOutput.body;
|
|
1252
|
-
throwDefaultError({
|
|
1171
|
+
return throwDefaultError({
|
|
1253
1172
|
output,
|
|
1254
1173
|
parsedBody: parsedBody.Error,
|
|
1255
|
-
exceptionCtor: __BaseException,
|
|
1256
1174
|
errorCode,
|
|
1257
1175
|
});
|
|
1258
1176
|
}
|
|
@@ -1268,7 +1186,7 @@ export const de_RegisterInstancesWithLoadBalancerCommand = async (output, contex
|
|
|
1268
1186
|
$metadata: deserializeMetadata(output),
|
|
1269
1187
|
...contents,
|
|
1270
1188
|
};
|
|
1271
|
-
return
|
|
1189
|
+
return response;
|
|
1272
1190
|
};
|
|
1273
1191
|
const de_RegisterInstancesWithLoadBalancerCommandError = async (output, context) => {
|
|
1274
1192
|
const parsedOutput = {
|
|
@@ -1285,10 +1203,9 @@ const de_RegisterInstancesWithLoadBalancerCommandError = async (output, context)
|
|
|
1285
1203
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1286
1204
|
default:
|
|
1287
1205
|
const parsedBody = parsedOutput.body;
|
|
1288
|
-
throwDefaultError({
|
|
1206
|
+
return throwDefaultError({
|
|
1289
1207
|
output,
|
|
1290
1208
|
parsedBody: parsedBody.Error,
|
|
1291
|
-
exceptionCtor: __BaseException,
|
|
1292
1209
|
errorCode,
|
|
1293
1210
|
});
|
|
1294
1211
|
}
|
|
@@ -1304,7 +1221,7 @@ export const de_RemoveTagsCommand = async (output, context) => {
|
|
|
1304
1221
|
$metadata: deserializeMetadata(output),
|
|
1305
1222
|
...contents,
|
|
1306
1223
|
};
|
|
1307
|
-
return
|
|
1224
|
+
return response;
|
|
1308
1225
|
};
|
|
1309
1226
|
const de_RemoveTagsCommandError = async (output, context) => {
|
|
1310
1227
|
const parsedOutput = {
|
|
@@ -1318,10 +1235,9 @@ const de_RemoveTagsCommandError = async (output, context) => {
|
|
|
1318
1235
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1319
1236
|
default:
|
|
1320
1237
|
const parsedBody = parsedOutput.body;
|
|
1321
|
-
throwDefaultError({
|
|
1238
|
+
return throwDefaultError({
|
|
1322
1239
|
output,
|
|
1323
1240
|
parsedBody: parsedBody.Error,
|
|
1324
|
-
exceptionCtor: __BaseException,
|
|
1325
1241
|
errorCode,
|
|
1326
1242
|
});
|
|
1327
1243
|
}
|
|
@@ -1337,7 +1253,7 @@ export const de_SetLoadBalancerListenerSSLCertificateCommand = async (output, co
|
|
|
1337
1253
|
$metadata: deserializeMetadata(output),
|
|
1338
1254
|
...contents,
|
|
1339
1255
|
};
|
|
1340
|
-
return
|
|
1256
|
+
return response;
|
|
1341
1257
|
};
|
|
1342
1258
|
const de_SetLoadBalancerListenerSSLCertificateCommandError = async (output, context) => {
|
|
1343
1259
|
const parsedOutput = {
|
|
@@ -1363,10 +1279,9 @@ const de_SetLoadBalancerListenerSSLCertificateCommandError = async (output, cont
|
|
|
1363
1279
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1364
1280
|
default:
|
|
1365
1281
|
const parsedBody = parsedOutput.body;
|
|
1366
|
-
throwDefaultError({
|
|
1282
|
+
return throwDefaultError({
|
|
1367
1283
|
output,
|
|
1368
1284
|
parsedBody: parsedBody.Error,
|
|
1369
|
-
exceptionCtor: __BaseException,
|
|
1370
1285
|
errorCode,
|
|
1371
1286
|
});
|
|
1372
1287
|
}
|
|
@@ -1382,7 +1297,7 @@ export const de_SetLoadBalancerPoliciesForBackendServerCommand = async (output,
|
|
|
1382
1297
|
$metadata: deserializeMetadata(output),
|
|
1383
1298
|
...contents,
|
|
1384
1299
|
};
|
|
1385
|
-
return
|
|
1300
|
+
return response;
|
|
1386
1301
|
};
|
|
1387
1302
|
const de_SetLoadBalancerPoliciesForBackendServerCommandError = async (output, context) => {
|
|
1388
1303
|
const parsedOutput = {
|
|
@@ -1402,10 +1317,9 @@ const de_SetLoadBalancerPoliciesForBackendServerCommandError = async (output, co
|
|
|
1402
1317
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1403
1318
|
default:
|
|
1404
1319
|
const parsedBody = parsedOutput.body;
|
|
1405
|
-
throwDefaultError({
|
|
1320
|
+
return throwDefaultError({
|
|
1406
1321
|
output,
|
|
1407
1322
|
parsedBody: parsedBody.Error,
|
|
1408
|
-
exceptionCtor: __BaseException,
|
|
1409
1323
|
errorCode,
|
|
1410
1324
|
});
|
|
1411
1325
|
}
|
|
@@ -1421,7 +1335,7 @@ export const de_SetLoadBalancerPoliciesOfListenerCommand = async (output, contex
|
|
|
1421
1335
|
$metadata: deserializeMetadata(output),
|
|
1422
1336
|
...contents,
|
|
1423
1337
|
};
|
|
1424
|
-
return
|
|
1338
|
+
return response;
|
|
1425
1339
|
};
|
|
1426
1340
|
const de_SetLoadBalancerPoliciesOfListenerCommandError = async (output, context) => {
|
|
1427
1341
|
const parsedOutput = {
|
|
@@ -1444,10 +1358,9 @@ const de_SetLoadBalancerPoliciesOfListenerCommandError = async (output, context)
|
|
|
1444
1358
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1445
1359
|
default:
|
|
1446
1360
|
const parsedBody = parsedOutput.body;
|
|
1447
|
-
throwDefaultError({
|
|
1361
|
+
return throwDefaultError({
|
|
1448
1362
|
output,
|
|
1449
1363
|
parsedBody: parsedBody.Error,
|
|
1450
|
-
exceptionCtor: __BaseException,
|
|
1451
1364
|
errorCode,
|
|
1452
1365
|
});
|
|
1453
1366
|
}
|
|
@@ -3404,6 +3317,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3404
3317
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3405
3318
|
};
|
|
3406
3319
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3320
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3407
3321
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3408
3322
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3409
3323
|
const contents = {
|
|
@@ -3422,6 +3336,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
3422
3336
|
}
|
|
3423
3337
|
return new __HttpRequest(contents);
|
|
3424
3338
|
};
|
|
3339
|
+
const SHARED_HEADERS = {
|
|
3340
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
3341
|
+
};
|
|
3425
3342
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3426
3343
|
if (encoded.length) {
|
|
3427
3344
|
const parser = new XMLParser({
|