@aws-sdk/client-elastic-load-balancing-v2 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 +106 -204
- package/dist-es/protocols/Aws_query.js +107 -205
- 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 { ElasticLoadBalancingV2ServiceException as __BaseException } from "../models/ElasticLoadBalancingV2ServiceException";
|
|
5
5
|
import { AllocationIdNotFoundException, ALPNPolicyNotSupportedException, AvailabilityZoneNotSupportedException, CertificateNotFoundException, DuplicateListenerException, DuplicateLoadBalancerNameException, DuplicateTagKeysException, DuplicateTargetGroupNameException, HealthUnavailableException, IncompatibleProtocolsException, InvalidConfigurationRequestException, InvalidLoadBalancerActionException, InvalidSchemeException, InvalidSecurityGroupException, InvalidSubnetException, InvalidTargetException, ListenerNotFoundException, LoadBalancerNotFoundException, OperationNotPermittedException, PriorityInUseException, ResourceInUseException, RuleNotFoundException, SSLPolicyNotFoundException, SubnetNotFoundException, TargetGroupAssociationLimitException, TargetGroupNotFoundException, TooManyActionsException, TooManyCertificatesException, TooManyListenersException, TooManyLoadBalancersException, TooManyRegistrationsForTargetIdException, TooManyRulesException, TooManyTagsException, TooManyTargetGroupsException, TooManyTargetsException, TooManyUniqueTargetGroupsPerLoadBalancerException, UnsupportedProtocolException, } from "../models/models_0";
|
|
6
6
|
export const se_AddListenerCertificatesCommand = 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_AddListenerCertificatesInput(input, context),
|
|
@@ -16,9 +14,7 @@ export const se_AddListenerCertificatesCommand = async (input, context) => {
|
|
|
16
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
15
|
};
|
|
18
16
|
export const se_AddTagsCommand = 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_AddTagsInput(input, context),
|
|
@@ -28,9 +24,7 @@ export const se_AddTagsCommand = async (input, context) => {
|
|
|
28
24
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
25
|
};
|
|
30
26
|
export const se_CreateListenerCommand = 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_CreateListenerInput(input, context),
|
|
@@ -40,9 +34,7 @@ export const se_CreateListenerCommand = async (input, context) => {
|
|
|
40
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
35
|
};
|
|
42
36
|
export const se_CreateLoadBalancerCommand = 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_CreateLoadBalancerInput(input, context),
|
|
@@ -52,9 +44,7 @@ export const se_CreateLoadBalancerCommand = async (input, context) => {
|
|
|
52
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
45
|
};
|
|
54
46
|
export const se_CreateRuleCommand = 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_CreateRuleInput(input, context),
|
|
@@ -64,9 +54,7 @@ export const se_CreateRuleCommand = async (input, context) => {
|
|
|
64
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
55
|
};
|
|
66
56
|
export const se_CreateTargetGroupCommand = 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_CreateTargetGroupInput(input, context),
|
|
@@ -76,9 +64,7 @@ export const se_CreateTargetGroupCommand = async (input, context) => {
|
|
|
76
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
65
|
};
|
|
78
66
|
export const se_DeleteListenerCommand = 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_DeleteListenerInput(input, context),
|
|
@@ -88,9 +74,7 @@ export const se_DeleteListenerCommand = async (input, context) => {
|
|
|
88
74
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
75
|
};
|
|
90
76
|
export const se_DeleteLoadBalancerCommand = 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_DeleteLoadBalancerInput(input, context),
|
|
@@ -100,9 +84,7 @@ export const se_DeleteLoadBalancerCommand = async (input, context) => {
|
|
|
100
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
85
|
};
|
|
102
86
|
export const se_DeleteRuleCommand = 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_DeleteRuleInput(input, context),
|
|
@@ -112,9 +94,7 @@ export const se_DeleteRuleCommand = async (input, context) => {
|
|
|
112
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
95
|
};
|
|
114
96
|
export const se_DeleteTargetGroupCommand = 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_DeleteTargetGroupInput(input, context),
|
|
@@ -124,9 +104,7 @@ export const se_DeleteTargetGroupCommand = async (input, context) => {
|
|
|
124
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
105
|
};
|
|
126
106
|
export const se_DeregisterTargetsCommand = 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_DeregisterTargetsInput(input, context),
|
|
@@ -136,9 +114,7 @@ export const se_DeregisterTargetsCommand = async (input, context) => {
|
|
|
136
114
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
115
|
};
|
|
138
116
|
export const se_DescribeAccountLimitsCommand = 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_DescribeAccountLimitsInput(input, context),
|
|
@@ -148,9 +124,7 @@ export const se_DescribeAccountLimitsCommand = async (input, context) => {
|
|
|
148
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
125
|
};
|
|
150
126
|
export const se_DescribeListenerCertificatesCommand = 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_DescribeListenerCertificatesInput(input, context),
|
|
@@ -160,9 +134,7 @@ export const se_DescribeListenerCertificatesCommand = async (input, context) =>
|
|
|
160
134
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
135
|
};
|
|
162
136
|
export const se_DescribeListenersCommand = 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_DescribeListenersInput(input, context),
|
|
@@ -172,9 +144,7 @@ export const se_DescribeListenersCommand = async (input, context) => {
|
|
|
172
144
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
145
|
};
|
|
174
146
|
export const se_DescribeLoadBalancerAttributesCommand = 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_DescribeLoadBalancerAttributesInput(input, context),
|
|
@@ -184,9 +154,7 @@ export const se_DescribeLoadBalancerAttributesCommand = async (input, context) =
|
|
|
184
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
155
|
};
|
|
186
156
|
export const se_DescribeLoadBalancersCommand = 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_DescribeLoadBalancersInput(input, context),
|
|
@@ -196,9 +164,7 @@ export const se_DescribeLoadBalancersCommand = async (input, context) => {
|
|
|
196
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
165
|
};
|
|
198
166
|
export const se_DescribeRulesCommand = 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_DescribeRulesInput(input, context),
|
|
@@ -208,9 +174,7 @@ export const se_DescribeRulesCommand = async (input, context) => {
|
|
|
208
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
175
|
};
|
|
210
176
|
export const se_DescribeSSLPoliciesCommand = 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_DescribeSSLPoliciesInput(input, context),
|
|
@@ -220,9 +184,7 @@ export const se_DescribeSSLPoliciesCommand = async (input, context) => {
|
|
|
220
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
185
|
};
|
|
222
186
|
export const se_DescribeTagsCommand = 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_DescribeTagsInput(input, context),
|
|
@@ -232,9 +194,7 @@ export const se_DescribeTagsCommand = async (input, context) => {
|
|
|
232
194
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
195
|
};
|
|
234
196
|
export const se_DescribeTargetGroupAttributesCommand = 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_DescribeTargetGroupAttributesInput(input, context),
|
|
@@ -244,9 +204,7 @@ export const se_DescribeTargetGroupAttributesCommand = async (input, context) =>
|
|
|
244
204
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
205
|
};
|
|
246
206
|
export const se_DescribeTargetGroupsCommand = 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_DescribeTargetGroupsInput(input, context),
|
|
@@ -256,9 +214,7 @@ export const se_DescribeTargetGroupsCommand = async (input, context) => {
|
|
|
256
214
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
215
|
};
|
|
258
216
|
export const se_DescribeTargetHealthCommand = 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_DescribeTargetHealthInput(input, context),
|
|
@@ -268,9 +224,7 @@ export const se_DescribeTargetHealthCommand = async (input, context) => {
|
|
|
268
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
225
|
};
|
|
270
226
|
export const se_ModifyListenerCommand = 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_ModifyListenerInput(input, context),
|
|
@@ -280,9 +234,7 @@ export const se_ModifyListenerCommand = async (input, context) => {
|
|
|
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_ModifyRuleCommand = 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_ModifyRuleInput(input, context),
|
|
@@ -304,9 +254,7 @@ export const se_ModifyRuleCommand = async (input, context) => {
|
|
|
304
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
255
|
};
|
|
306
256
|
export const se_ModifyTargetGroupCommand = 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_ModifyTargetGroupInput(input, context),
|
|
@@ -316,9 +264,7 @@ export const se_ModifyTargetGroupCommand = async (input, context) => {
|
|
|
316
264
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
265
|
};
|
|
318
266
|
export const se_ModifyTargetGroupAttributesCommand = 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_ModifyTargetGroupAttributesInput(input, context),
|
|
@@ -328,9 +274,7 @@ export const se_ModifyTargetGroupAttributesCommand = async (input, context) => {
|
|
|
328
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
275
|
};
|
|
330
276
|
export const se_RegisterTargetsCommand = 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_RegisterTargetsInput(input, context),
|
|
@@ -340,9 +284,7 @@ export const se_RegisterTargetsCommand = async (input, context) => {
|
|
|
340
284
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
285
|
};
|
|
342
286
|
export const se_RemoveListenerCertificatesCommand = 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_RemoveListenerCertificatesInput(input, context),
|
|
@@ -352,9 +294,7 @@ export const se_RemoveListenerCertificatesCommand = async (input, context) => {
|
|
|
352
294
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
295
|
};
|
|
354
296
|
export const se_RemoveTagsCommand = async (input, context) => {
|
|
355
|
-
const headers =
|
|
356
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
357
|
-
};
|
|
297
|
+
const headers = SHARED_HEADERS;
|
|
358
298
|
let body;
|
|
359
299
|
body = buildFormUrlencodedString({
|
|
360
300
|
...se_RemoveTagsInput(input, context),
|
|
@@ -364,9 +304,7 @@ export const se_RemoveTagsCommand = async (input, context) => {
|
|
|
364
304
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
305
|
};
|
|
366
306
|
export const se_SetIpAddressTypeCommand = async (input, context) => {
|
|
367
|
-
const headers =
|
|
368
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
369
|
-
};
|
|
307
|
+
const headers = SHARED_HEADERS;
|
|
370
308
|
let body;
|
|
371
309
|
body = buildFormUrlencodedString({
|
|
372
310
|
...se_SetIpAddressTypeInput(input, context),
|
|
@@ -376,9 +314,7 @@ export const se_SetIpAddressTypeCommand = async (input, context) => {
|
|
|
376
314
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
315
|
};
|
|
378
316
|
export const se_SetRulePrioritiesCommand = async (input, context) => {
|
|
379
|
-
const headers =
|
|
380
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
381
|
-
};
|
|
317
|
+
const headers = SHARED_HEADERS;
|
|
382
318
|
let body;
|
|
383
319
|
body = buildFormUrlencodedString({
|
|
384
320
|
...se_SetRulePrioritiesInput(input, context),
|
|
@@ -388,9 +324,7 @@ export const se_SetRulePrioritiesCommand = async (input, context) => {
|
|
|
388
324
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
389
325
|
};
|
|
390
326
|
export const se_SetSecurityGroupsCommand = async (input, context) => {
|
|
391
|
-
const headers =
|
|
392
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
393
|
-
};
|
|
327
|
+
const headers = SHARED_HEADERS;
|
|
394
328
|
let body;
|
|
395
329
|
body = buildFormUrlencodedString({
|
|
396
330
|
...se_SetSecurityGroupsInput(input, context),
|
|
@@ -400,9 +334,7 @@ export const se_SetSecurityGroupsCommand = async (input, context) => {
|
|
|
400
334
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
335
|
};
|
|
402
336
|
export const se_SetSubnetsCommand = async (input, context) => {
|
|
403
|
-
const headers =
|
|
404
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
405
|
-
};
|
|
337
|
+
const headers = SHARED_HEADERS;
|
|
406
338
|
let body;
|
|
407
339
|
body = buildFormUrlencodedString({
|
|
408
340
|
...se_SetSubnetsInput(input, context),
|
|
@@ -422,7 +354,7 @@ export const de_AddListenerCertificatesCommand = async (output, context) => {
|
|
|
422
354
|
$metadata: deserializeMetadata(output),
|
|
423
355
|
...contents,
|
|
424
356
|
};
|
|
425
|
-
return
|
|
357
|
+
return response;
|
|
426
358
|
};
|
|
427
359
|
const de_AddListenerCertificatesCommandError = async (output, context) => {
|
|
428
360
|
const parsedOutput = {
|
|
@@ -442,10 +374,9 @@ const de_AddListenerCertificatesCommandError = async (output, context) => {
|
|
|
442
374
|
throw await de_TooManyCertificatesExceptionRes(parsedOutput, context);
|
|
443
375
|
default:
|
|
444
376
|
const parsedBody = parsedOutput.body;
|
|
445
|
-
throwDefaultError({
|
|
377
|
+
return throwDefaultError({
|
|
446
378
|
output,
|
|
447
379
|
parsedBody: parsedBody.Error,
|
|
448
|
-
exceptionCtor: __BaseException,
|
|
449
380
|
errorCode,
|
|
450
381
|
});
|
|
451
382
|
}
|
|
@@ -461,7 +392,7 @@ export const de_AddTagsCommand = async (output, context) => {
|
|
|
461
392
|
$metadata: deserializeMetadata(output),
|
|
462
393
|
...contents,
|
|
463
394
|
};
|
|
464
|
-
return
|
|
395
|
+
return response;
|
|
465
396
|
};
|
|
466
397
|
const de_AddTagsCommandError = async (output, context) => {
|
|
467
398
|
const parsedOutput = {
|
|
@@ -490,10 +421,9 @@ const de_AddTagsCommandError = async (output, context) => {
|
|
|
490
421
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
491
422
|
default:
|
|
492
423
|
const parsedBody = parsedOutput.body;
|
|
493
|
-
throwDefaultError({
|
|
424
|
+
return throwDefaultError({
|
|
494
425
|
output,
|
|
495
426
|
parsedBody: parsedBody.Error,
|
|
496
|
-
exceptionCtor: __BaseException,
|
|
497
427
|
errorCode,
|
|
498
428
|
});
|
|
499
429
|
}
|
|
@@ -509,7 +439,7 @@ export const de_CreateListenerCommand = async (output, context) => {
|
|
|
509
439
|
$metadata: deserializeMetadata(output),
|
|
510
440
|
...contents,
|
|
511
441
|
};
|
|
512
|
-
return
|
|
442
|
+
return response;
|
|
513
443
|
};
|
|
514
444
|
const de_CreateListenerCommandError = async (output, context) => {
|
|
515
445
|
const parsedOutput = {
|
|
@@ -574,10 +504,9 @@ const de_CreateListenerCommandError = async (output, context) => {
|
|
|
574
504
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
575
505
|
default:
|
|
576
506
|
const parsedBody = parsedOutput.body;
|
|
577
|
-
throwDefaultError({
|
|
507
|
+
return throwDefaultError({
|
|
578
508
|
output,
|
|
579
509
|
parsedBody: parsedBody.Error,
|
|
580
|
-
exceptionCtor: __BaseException,
|
|
581
510
|
errorCode,
|
|
582
511
|
});
|
|
583
512
|
}
|
|
@@ -593,7 +522,7 @@ export const de_CreateLoadBalancerCommand = async (output, context) => {
|
|
|
593
522
|
$metadata: deserializeMetadata(output),
|
|
594
523
|
...contents,
|
|
595
524
|
};
|
|
596
|
-
return
|
|
525
|
+
return response;
|
|
597
526
|
};
|
|
598
527
|
const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
599
528
|
const parsedOutput = {
|
|
@@ -643,10 +572,9 @@ const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
|
643
572
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
644
573
|
default:
|
|
645
574
|
const parsedBody = parsedOutput.body;
|
|
646
|
-
throwDefaultError({
|
|
575
|
+
return throwDefaultError({
|
|
647
576
|
output,
|
|
648
577
|
parsedBody: parsedBody.Error,
|
|
649
|
-
exceptionCtor: __BaseException,
|
|
650
578
|
errorCode,
|
|
651
579
|
});
|
|
652
580
|
}
|
|
@@ -662,7 +590,7 @@ export const de_CreateRuleCommand = async (output, context) => {
|
|
|
662
590
|
$metadata: deserializeMetadata(output),
|
|
663
591
|
...contents,
|
|
664
592
|
};
|
|
665
|
-
return
|
|
593
|
+
return response;
|
|
666
594
|
};
|
|
667
595
|
const de_CreateRuleCommandError = async (output, context) => {
|
|
668
596
|
const parsedOutput = {
|
|
@@ -718,10 +646,9 @@ const de_CreateRuleCommandError = async (output, context) => {
|
|
|
718
646
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
719
647
|
default:
|
|
720
648
|
const parsedBody = parsedOutput.body;
|
|
721
|
-
throwDefaultError({
|
|
649
|
+
return throwDefaultError({
|
|
722
650
|
output,
|
|
723
651
|
parsedBody: parsedBody.Error,
|
|
724
|
-
exceptionCtor: __BaseException,
|
|
725
652
|
errorCode,
|
|
726
653
|
});
|
|
727
654
|
}
|
|
@@ -737,7 +664,7 @@ export const de_CreateTargetGroupCommand = async (output, context) => {
|
|
|
737
664
|
$metadata: deserializeMetadata(output),
|
|
738
665
|
...contents,
|
|
739
666
|
};
|
|
740
|
-
return
|
|
667
|
+
return response;
|
|
741
668
|
};
|
|
742
669
|
const de_CreateTargetGroupCommandError = async (output, context) => {
|
|
743
670
|
const parsedOutput = {
|
|
@@ -760,10 +687,9 @@ const de_CreateTargetGroupCommandError = async (output, context) => {
|
|
|
760
687
|
throw await de_TooManyTargetGroupsExceptionRes(parsedOutput, context);
|
|
761
688
|
default:
|
|
762
689
|
const parsedBody = parsedOutput.body;
|
|
763
|
-
throwDefaultError({
|
|
690
|
+
return throwDefaultError({
|
|
764
691
|
output,
|
|
765
692
|
parsedBody: parsedBody.Error,
|
|
766
|
-
exceptionCtor: __BaseException,
|
|
767
693
|
errorCode,
|
|
768
694
|
});
|
|
769
695
|
}
|
|
@@ -779,7 +705,7 @@ export const de_DeleteListenerCommand = async (output, context) => {
|
|
|
779
705
|
$metadata: deserializeMetadata(output),
|
|
780
706
|
...contents,
|
|
781
707
|
};
|
|
782
|
-
return
|
|
708
|
+
return response;
|
|
783
709
|
};
|
|
784
710
|
const de_DeleteListenerCommandError = async (output, context) => {
|
|
785
711
|
const parsedOutput = {
|
|
@@ -796,10 +722,9 @@ const de_DeleteListenerCommandError = async (output, context) => {
|
|
|
796
722
|
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
797
723
|
default:
|
|
798
724
|
const parsedBody = parsedOutput.body;
|
|
799
|
-
throwDefaultError({
|
|
725
|
+
return throwDefaultError({
|
|
800
726
|
output,
|
|
801
727
|
parsedBody: parsedBody.Error,
|
|
802
|
-
exceptionCtor: __BaseException,
|
|
803
728
|
errorCode,
|
|
804
729
|
});
|
|
805
730
|
}
|
|
@@ -815,7 +740,7 @@ export const de_DeleteLoadBalancerCommand = async (output, context) => {
|
|
|
815
740
|
$metadata: deserializeMetadata(output),
|
|
816
741
|
...contents,
|
|
817
742
|
};
|
|
818
|
-
return
|
|
743
|
+
return response;
|
|
819
744
|
};
|
|
820
745
|
const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
821
746
|
const parsedOutput = {
|
|
@@ -835,10 +760,9 @@ const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
|
835
760
|
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
836
761
|
default:
|
|
837
762
|
const parsedBody = parsedOutput.body;
|
|
838
|
-
throwDefaultError({
|
|
763
|
+
return throwDefaultError({
|
|
839
764
|
output,
|
|
840
765
|
parsedBody: parsedBody.Error,
|
|
841
|
-
exceptionCtor: __BaseException,
|
|
842
766
|
errorCode,
|
|
843
767
|
});
|
|
844
768
|
}
|
|
@@ -854,7 +778,7 @@ export const de_DeleteRuleCommand = async (output, context) => {
|
|
|
854
778
|
$metadata: deserializeMetadata(output),
|
|
855
779
|
...contents,
|
|
856
780
|
};
|
|
857
|
-
return
|
|
781
|
+
return response;
|
|
858
782
|
};
|
|
859
783
|
const de_DeleteRuleCommandError = async (output, context) => {
|
|
860
784
|
const parsedOutput = {
|
|
@@ -871,10 +795,9 @@ const de_DeleteRuleCommandError = async (output, context) => {
|
|
|
871
795
|
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
872
796
|
default:
|
|
873
797
|
const parsedBody = parsedOutput.body;
|
|
874
|
-
throwDefaultError({
|
|
798
|
+
return throwDefaultError({
|
|
875
799
|
output,
|
|
876
800
|
parsedBody: parsedBody.Error,
|
|
877
|
-
exceptionCtor: __BaseException,
|
|
878
801
|
errorCode,
|
|
879
802
|
});
|
|
880
803
|
}
|
|
@@ -890,7 +813,7 @@ export const de_DeleteTargetGroupCommand = async (output, context) => {
|
|
|
890
813
|
$metadata: deserializeMetadata(output),
|
|
891
814
|
...contents,
|
|
892
815
|
};
|
|
893
|
-
return
|
|
816
|
+
return response;
|
|
894
817
|
};
|
|
895
818
|
const de_DeleteTargetGroupCommandError = async (output, context) => {
|
|
896
819
|
const parsedOutput = {
|
|
@@ -904,10 +827,9 @@ const de_DeleteTargetGroupCommandError = async (output, context) => {
|
|
|
904
827
|
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
905
828
|
default:
|
|
906
829
|
const parsedBody = parsedOutput.body;
|
|
907
|
-
throwDefaultError({
|
|
830
|
+
return throwDefaultError({
|
|
908
831
|
output,
|
|
909
832
|
parsedBody: parsedBody.Error,
|
|
910
|
-
exceptionCtor: __BaseException,
|
|
911
833
|
errorCode,
|
|
912
834
|
});
|
|
913
835
|
}
|
|
@@ -923,7 +845,7 @@ export const de_DeregisterTargetsCommand = async (output, context) => {
|
|
|
923
845
|
$metadata: deserializeMetadata(output),
|
|
924
846
|
...contents,
|
|
925
847
|
};
|
|
926
|
-
return
|
|
848
|
+
return response;
|
|
927
849
|
};
|
|
928
850
|
const de_DeregisterTargetsCommandError = async (output, context) => {
|
|
929
851
|
const parsedOutput = {
|
|
@@ -940,10 +862,9 @@ const de_DeregisterTargetsCommandError = async (output, context) => {
|
|
|
940
862
|
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
941
863
|
default:
|
|
942
864
|
const parsedBody = parsedOutput.body;
|
|
943
|
-
throwDefaultError({
|
|
865
|
+
return throwDefaultError({
|
|
944
866
|
output,
|
|
945
867
|
parsedBody: parsedBody.Error,
|
|
946
|
-
exceptionCtor: __BaseException,
|
|
947
868
|
errorCode,
|
|
948
869
|
});
|
|
949
870
|
}
|
|
@@ -959,7 +880,7 @@ export const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
|
959
880
|
$metadata: deserializeMetadata(output),
|
|
960
881
|
...contents,
|
|
961
882
|
};
|
|
962
|
-
return
|
|
883
|
+
return response;
|
|
963
884
|
};
|
|
964
885
|
const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
965
886
|
const parsedOutput = {
|
|
@@ -968,10 +889,9 @@ const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
|
968
889
|
};
|
|
969
890
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
970
891
|
const parsedBody = parsedOutput.body;
|
|
971
|
-
throwDefaultError({
|
|
892
|
+
return throwDefaultError({
|
|
972
893
|
output,
|
|
973
894
|
parsedBody: parsedBody.Error,
|
|
974
|
-
exceptionCtor: __BaseException,
|
|
975
895
|
errorCode,
|
|
976
896
|
});
|
|
977
897
|
};
|
|
@@ -986,7 +906,7 @@ export const de_DescribeListenerCertificatesCommand = async (output, context) =>
|
|
|
986
906
|
$metadata: deserializeMetadata(output),
|
|
987
907
|
...contents,
|
|
988
908
|
};
|
|
989
|
-
return
|
|
909
|
+
return response;
|
|
990
910
|
};
|
|
991
911
|
const de_DescribeListenerCertificatesCommandError = async (output, context) => {
|
|
992
912
|
const parsedOutput = {
|
|
@@ -1000,10 +920,9 @@ const de_DescribeListenerCertificatesCommandError = async (output, context) => {
|
|
|
1000
920
|
throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
|
|
1001
921
|
default:
|
|
1002
922
|
const parsedBody = parsedOutput.body;
|
|
1003
|
-
throwDefaultError({
|
|
923
|
+
return throwDefaultError({
|
|
1004
924
|
output,
|
|
1005
925
|
parsedBody: parsedBody.Error,
|
|
1006
|
-
exceptionCtor: __BaseException,
|
|
1007
926
|
errorCode,
|
|
1008
927
|
});
|
|
1009
928
|
}
|
|
@@ -1019,7 +938,7 @@ export const de_DescribeListenersCommand = async (output, context) => {
|
|
|
1019
938
|
$metadata: deserializeMetadata(output),
|
|
1020
939
|
...contents,
|
|
1021
940
|
};
|
|
1022
|
-
return
|
|
941
|
+
return response;
|
|
1023
942
|
};
|
|
1024
943
|
const de_DescribeListenersCommandError = async (output, context) => {
|
|
1025
944
|
const parsedOutput = {
|
|
@@ -1039,10 +958,9 @@ const de_DescribeListenersCommandError = async (output, context) => {
|
|
|
1039
958
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1040
959
|
default:
|
|
1041
960
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
throwDefaultError({
|
|
961
|
+
return throwDefaultError({
|
|
1043
962
|
output,
|
|
1044
963
|
parsedBody: parsedBody.Error,
|
|
1045
|
-
exceptionCtor: __BaseException,
|
|
1046
964
|
errorCode,
|
|
1047
965
|
});
|
|
1048
966
|
}
|
|
@@ -1058,7 +976,7 @@ export const de_DescribeLoadBalancerAttributesCommand = async (output, context)
|
|
|
1058
976
|
$metadata: deserializeMetadata(output),
|
|
1059
977
|
...contents,
|
|
1060
978
|
};
|
|
1061
|
-
return
|
|
979
|
+
return response;
|
|
1062
980
|
};
|
|
1063
981
|
const de_DescribeLoadBalancerAttributesCommandError = async (output, context) => {
|
|
1064
982
|
const parsedOutput = {
|
|
@@ -1072,10 +990,9 @@ const de_DescribeLoadBalancerAttributesCommandError = async (output, context) =>
|
|
|
1072
990
|
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1073
991
|
default:
|
|
1074
992
|
const parsedBody = parsedOutput.body;
|
|
1075
|
-
throwDefaultError({
|
|
993
|
+
return throwDefaultError({
|
|
1076
994
|
output,
|
|
1077
995
|
parsedBody: parsedBody.Error,
|
|
1078
|
-
exceptionCtor: __BaseException,
|
|
1079
996
|
errorCode,
|
|
1080
997
|
});
|
|
1081
998
|
}
|
|
@@ -1091,7 +1008,7 @@ export const de_DescribeLoadBalancersCommand = async (output, context) => {
|
|
|
1091
1008
|
$metadata: deserializeMetadata(output),
|
|
1092
1009
|
...contents,
|
|
1093
1010
|
};
|
|
1094
|
-
return
|
|
1011
|
+
return response;
|
|
1095
1012
|
};
|
|
1096
1013
|
const de_DescribeLoadBalancersCommandError = async (output, context) => {
|
|
1097
1014
|
const parsedOutput = {
|
|
@@ -1105,10 +1022,9 @@ const de_DescribeLoadBalancersCommandError = async (output, context) => {
|
|
|
1105
1022
|
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1106
1023
|
default:
|
|
1107
1024
|
const parsedBody = parsedOutput.body;
|
|
1108
|
-
throwDefaultError({
|
|
1025
|
+
return throwDefaultError({
|
|
1109
1026
|
output,
|
|
1110
1027
|
parsedBody: parsedBody.Error,
|
|
1111
|
-
exceptionCtor: __BaseException,
|
|
1112
1028
|
errorCode,
|
|
1113
1029
|
});
|
|
1114
1030
|
}
|
|
@@ -1124,7 +1040,7 @@ export const de_DescribeRulesCommand = async (output, context) => {
|
|
|
1124
1040
|
$metadata: deserializeMetadata(output),
|
|
1125
1041
|
...contents,
|
|
1126
1042
|
};
|
|
1127
|
-
return
|
|
1043
|
+
return response;
|
|
1128
1044
|
};
|
|
1129
1045
|
const de_DescribeRulesCommandError = async (output, context) => {
|
|
1130
1046
|
const parsedOutput = {
|
|
@@ -1144,10 +1060,9 @@ const de_DescribeRulesCommandError = async (output, context) => {
|
|
|
1144
1060
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1145
1061
|
default:
|
|
1146
1062
|
const parsedBody = parsedOutput.body;
|
|
1147
|
-
throwDefaultError({
|
|
1063
|
+
return throwDefaultError({
|
|
1148
1064
|
output,
|
|
1149
1065
|
parsedBody: parsedBody.Error,
|
|
1150
|
-
exceptionCtor: __BaseException,
|
|
1151
1066
|
errorCode,
|
|
1152
1067
|
});
|
|
1153
1068
|
}
|
|
@@ -1163,7 +1078,7 @@ export const de_DescribeSSLPoliciesCommand = async (output, context) => {
|
|
|
1163
1078
|
$metadata: deserializeMetadata(output),
|
|
1164
1079
|
...contents,
|
|
1165
1080
|
};
|
|
1166
|
-
return
|
|
1081
|
+
return response;
|
|
1167
1082
|
};
|
|
1168
1083
|
const de_DescribeSSLPoliciesCommandError = async (output, context) => {
|
|
1169
1084
|
const parsedOutput = {
|
|
@@ -1177,10 +1092,9 @@ const de_DescribeSSLPoliciesCommandError = async (output, context) => {
|
|
|
1177
1092
|
throw await de_SSLPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1178
1093
|
default:
|
|
1179
1094
|
const parsedBody = parsedOutput.body;
|
|
1180
|
-
throwDefaultError({
|
|
1095
|
+
return throwDefaultError({
|
|
1181
1096
|
output,
|
|
1182
1097
|
parsedBody: parsedBody.Error,
|
|
1183
|
-
exceptionCtor: __BaseException,
|
|
1184
1098
|
errorCode,
|
|
1185
1099
|
});
|
|
1186
1100
|
}
|
|
@@ -1196,7 +1110,7 @@ export const de_DescribeTagsCommand = async (output, context) => {
|
|
|
1196
1110
|
$metadata: deserializeMetadata(output),
|
|
1197
1111
|
...contents,
|
|
1198
1112
|
};
|
|
1199
|
-
return
|
|
1113
|
+
return response;
|
|
1200
1114
|
};
|
|
1201
1115
|
const de_DescribeTagsCommandError = async (output, context) => {
|
|
1202
1116
|
const parsedOutput = {
|
|
@@ -1219,10 +1133,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
|
|
|
1219
1133
|
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1220
1134
|
default:
|
|
1221
1135
|
const parsedBody = parsedOutput.body;
|
|
1222
|
-
throwDefaultError({
|
|
1136
|
+
return throwDefaultError({
|
|
1223
1137
|
output,
|
|
1224
1138
|
parsedBody: parsedBody.Error,
|
|
1225
|
-
exceptionCtor: __BaseException,
|
|
1226
1139
|
errorCode,
|
|
1227
1140
|
});
|
|
1228
1141
|
}
|
|
@@ -1238,7 +1151,7 @@ export const de_DescribeTargetGroupAttributesCommand = async (output, context) =
|
|
|
1238
1151
|
$metadata: deserializeMetadata(output),
|
|
1239
1152
|
...contents,
|
|
1240
1153
|
};
|
|
1241
|
-
return
|
|
1154
|
+
return response;
|
|
1242
1155
|
};
|
|
1243
1156
|
const de_DescribeTargetGroupAttributesCommandError = async (output, context) => {
|
|
1244
1157
|
const parsedOutput = {
|
|
@@ -1252,10 +1165,9 @@ const de_DescribeTargetGroupAttributesCommandError = async (output, context) =>
|
|
|
1252
1165
|
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1253
1166
|
default:
|
|
1254
1167
|
const parsedBody = parsedOutput.body;
|
|
1255
|
-
throwDefaultError({
|
|
1168
|
+
return throwDefaultError({
|
|
1256
1169
|
output,
|
|
1257
1170
|
parsedBody: parsedBody.Error,
|
|
1258
|
-
exceptionCtor: __BaseException,
|
|
1259
1171
|
errorCode,
|
|
1260
1172
|
});
|
|
1261
1173
|
}
|
|
@@ -1271,7 +1183,7 @@ export const de_DescribeTargetGroupsCommand = async (output, context) => {
|
|
|
1271
1183
|
$metadata: deserializeMetadata(output),
|
|
1272
1184
|
...contents,
|
|
1273
1185
|
};
|
|
1274
|
-
return
|
|
1186
|
+
return response;
|
|
1275
1187
|
};
|
|
1276
1188
|
const de_DescribeTargetGroupsCommandError = async (output, context) => {
|
|
1277
1189
|
const parsedOutput = {
|
|
@@ -1288,10 +1200,9 @@ const de_DescribeTargetGroupsCommandError = async (output, context) => {
|
|
|
1288
1200
|
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1289
1201
|
default:
|
|
1290
1202
|
const parsedBody = parsedOutput.body;
|
|
1291
|
-
throwDefaultError({
|
|
1203
|
+
return throwDefaultError({
|
|
1292
1204
|
output,
|
|
1293
1205
|
parsedBody: parsedBody.Error,
|
|
1294
|
-
exceptionCtor: __BaseException,
|
|
1295
1206
|
errorCode,
|
|
1296
1207
|
});
|
|
1297
1208
|
}
|
|
@@ -1307,7 +1218,7 @@ export const de_DescribeTargetHealthCommand = async (output, context) => {
|
|
|
1307
1218
|
$metadata: deserializeMetadata(output),
|
|
1308
1219
|
...contents,
|
|
1309
1220
|
};
|
|
1310
|
-
return
|
|
1221
|
+
return response;
|
|
1311
1222
|
};
|
|
1312
1223
|
const de_DescribeTargetHealthCommandError = async (output, context) => {
|
|
1313
1224
|
const parsedOutput = {
|
|
@@ -1327,10 +1238,9 @@ const de_DescribeTargetHealthCommandError = async (output, context) => {
|
|
|
1327
1238
|
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1328
1239
|
default:
|
|
1329
1240
|
const parsedBody = parsedOutput.body;
|
|
1330
|
-
throwDefaultError({
|
|
1241
|
+
return throwDefaultError({
|
|
1331
1242
|
output,
|
|
1332
1243
|
parsedBody: parsedBody.Error,
|
|
1333
|
-
exceptionCtor: __BaseException,
|
|
1334
1244
|
errorCode,
|
|
1335
1245
|
});
|
|
1336
1246
|
}
|
|
@@ -1346,7 +1256,7 @@ export const de_ModifyListenerCommand = async (output, context) => {
|
|
|
1346
1256
|
$metadata: deserializeMetadata(output),
|
|
1347
1257
|
...contents,
|
|
1348
1258
|
};
|
|
1349
|
-
return
|
|
1259
|
+
return response;
|
|
1350
1260
|
};
|
|
1351
1261
|
const de_ModifyListenerCommandError = async (output, context) => {
|
|
1352
1262
|
const parsedOutput = {
|
|
@@ -1408,10 +1318,9 @@ const de_ModifyListenerCommandError = async (output, context) => {
|
|
|
1408
1318
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1409
1319
|
default:
|
|
1410
1320
|
const parsedBody = parsedOutput.body;
|
|
1411
|
-
throwDefaultError({
|
|
1321
|
+
return throwDefaultError({
|
|
1412
1322
|
output,
|
|
1413
1323
|
parsedBody: parsedBody.Error,
|
|
1414
|
-
exceptionCtor: __BaseException,
|
|
1415
1324
|
errorCode,
|
|
1416
1325
|
});
|
|
1417
1326
|
}
|
|
@@ -1427,7 +1336,7 @@ export const de_ModifyLoadBalancerAttributesCommand = async (output, context) =>
|
|
|
1427
1336
|
$metadata: deserializeMetadata(output),
|
|
1428
1337
|
...contents,
|
|
1429
1338
|
};
|
|
1430
|
-
return
|
|
1339
|
+
return response;
|
|
1431
1340
|
};
|
|
1432
1341
|
const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
|
|
1433
1342
|
const parsedOutput = {
|
|
@@ -1444,10 +1353,9 @@ const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
|
|
|
1444
1353
|
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1445
1354
|
default:
|
|
1446
1355
|
const parsedBody = parsedOutput.body;
|
|
1447
|
-
throwDefaultError({
|
|
1356
|
+
return throwDefaultError({
|
|
1448
1357
|
output,
|
|
1449
1358
|
parsedBody: parsedBody.Error,
|
|
1450
|
-
exceptionCtor: __BaseException,
|
|
1451
1359
|
errorCode,
|
|
1452
1360
|
});
|
|
1453
1361
|
}
|
|
@@ -1463,7 +1371,7 @@ export const de_ModifyRuleCommand = async (output, context) => {
|
|
|
1463
1371
|
$metadata: deserializeMetadata(output),
|
|
1464
1372
|
...contents,
|
|
1465
1373
|
};
|
|
1466
|
-
return
|
|
1374
|
+
return response;
|
|
1467
1375
|
};
|
|
1468
1376
|
const de_ModifyRuleCommandError = async (output, context) => {
|
|
1469
1377
|
const parsedOutput = {
|
|
@@ -1507,10 +1415,9 @@ const de_ModifyRuleCommandError = async (output, context) => {
|
|
|
1507
1415
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1508
1416
|
default:
|
|
1509
1417
|
const parsedBody = parsedOutput.body;
|
|
1510
|
-
throwDefaultError({
|
|
1418
|
+
return throwDefaultError({
|
|
1511
1419
|
output,
|
|
1512
1420
|
parsedBody: parsedBody.Error,
|
|
1513
|
-
exceptionCtor: __BaseException,
|
|
1514
1421
|
errorCode,
|
|
1515
1422
|
});
|
|
1516
1423
|
}
|
|
@@ -1526,7 +1433,7 @@ export const de_ModifyTargetGroupCommand = async (output, context) => {
|
|
|
1526
1433
|
$metadata: deserializeMetadata(output),
|
|
1527
1434
|
...contents,
|
|
1528
1435
|
};
|
|
1529
|
-
return
|
|
1436
|
+
return response;
|
|
1530
1437
|
};
|
|
1531
1438
|
const de_ModifyTargetGroupCommandError = async (output, context) => {
|
|
1532
1439
|
const parsedOutput = {
|
|
@@ -1543,10 +1450,9 @@ const de_ModifyTargetGroupCommandError = async (output, context) => {
|
|
|
1543
1450
|
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1544
1451
|
default:
|
|
1545
1452
|
const parsedBody = parsedOutput.body;
|
|
1546
|
-
throwDefaultError({
|
|
1453
|
+
return throwDefaultError({
|
|
1547
1454
|
output,
|
|
1548
1455
|
parsedBody: parsedBody.Error,
|
|
1549
|
-
exceptionCtor: __BaseException,
|
|
1550
1456
|
errorCode,
|
|
1551
1457
|
});
|
|
1552
1458
|
}
|
|
@@ -1562,7 +1468,7 @@ export const de_ModifyTargetGroupAttributesCommand = async (output, context) =>
|
|
|
1562
1468
|
$metadata: deserializeMetadata(output),
|
|
1563
1469
|
...contents,
|
|
1564
1470
|
};
|
|
1565
|
-
return
|
|
1471
|
+
return response;
|
|
1566
1472
|
};
|
|
1567
1473
|
const de_ModifyTargetGroupAttributesCommandError = async (output, context) => {
|
|
1568
1474
|
const parsedOutput = {
|
|
@@ -1579,10 +1485,9 @@ const de_ModifyTargetGroupAttributesCommandError = async (output, context) => {
|
|
|
1579
1485
|
throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
|
|
1580
1486
|
default:
|
|
1581
1487
|
const parsedBody = parsedOutput.body;
|
|
1582
|
-
throwDefaultError({
|
|
1488
|
+
return throwDefaultError({
|
|
1583
1489
|
output,
|
|
1584
1490
|
parsedBody: parsedBody.Error,
|
|
1585
|
-
exceptionCtor: __BaseException,
|
|
1586
1491
|
errorCode,
|
|
1587
1492
|
});
|
|
1588
1493
|
}
|
|
@@ -1598,7 +1503,7 @@ export const de_RegisterTargetsCommand = async (output, context) => {
|
|
|
1598
1503
|
$metadata: deserializeMetadata(output),
|
|
1599
1504
|
...contents,
|
|
1600
1505
|
};
|
|
1601
|
-
return
|
|
1506
|
+
return response;
|
|
1602
1507
|
};
|
|
1603
1508
|
const de_RegisterTargetsCommandError = async (output, context) => {
|
|
1604
1509
|
const parsedOutput = {
|
|
@@ -1621,10 +1526,9 @@ const de_RegisterTargetsCommandError = async (output, context) => {
|
|
|
1621
1526
|
throw await de_TooManyTargetsExceptionRes(parsedOutput, context);
|
|
1622
1527
|
default:
|
|
1623
1528
|
const parsedBody = parsedOutput.body;
|
|
1624
|
-
throwDefaultError({
|
|
1529
|
+
return throwDefaultError({
|
|
1625
1530
|
output,
|
|
1626
1531
|
parsedBody: parsedBody.Error,
|
|
1627
|
-
exceptionCtor: __BaseException,
|
|
1628
1532
|
errorCode,
|
|
1629
1533
|
});
|
|
1630
1534
|
}
|
|
@@ -1640,7 +1544,7 @@ export const de_RemoveListenerCertificatesCommand = async (output, context) => {
|
|
|
1640
1544
|
$metadata: deserializeMetadata(output),
|
|
1641
1545
|
...contents,
|
|
1642
1546
|
};
|
|
1643
|
-
return
|
|
1547
|
+
return response;
|
|
1644
1548
|
};
|
|
1645
1549
|
const de_RemoveListenerCertificatesCommandError = async (output, context) => {
|
|
1646
1550
|
const parsedOutput = {
|
|
@@ -1657,10 +1561,9 @@ const de_RemoveListenerCertificatesCommandError = async (output, context) => {
|
|
|
1657
1561
|
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1658
1562
|
default:
|
|
1659
1563
|
const parsedBody = parsedOutput.body;
|
|
1660
|
-
throwDefaultError({
|
|
1564
|
+
return throwDefaultError({
|
|
1661
1565
|
output,
|
|
1662
1566
|
parsedBody: parsedBody.Error,
|
|
1663
|
-
exceptionCtor: __BaseException,
|
|
1664
1567
|
errorCode,
|
|
1665
1568
|
});
|
|
1666
1569
|
}
|
|
@@ -1676,7 +1579,7 @@ export const de_RemoveTagsCommand = async (output, context) => {
|
|
|
1676
1579
|
$metadata: deserializeMetadata(output),
|
|
1677
1580
|
...contents,
|
|
1678
1581
|
};
|
|
1679
|
-
return
|
|
1582
|
+
return response;
|
|
1680
1583
|
};
|
|
1681
1584
|
const de_RemoveTagsCommandError = async (output, context) => {
|
|
1682
1585
|
const parsedOutput = {
|
|
@@ -1702,10 +1605,9 @@ const de_RemoveTagsCommandError = async (output, context) => {
|
|
|
1702
1605
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1703
1606
|
default:
|
|
1704
1607
|
const parsedBody = parsedOutput.body;
|
|
1705
|
-
throwDefaultError({
|
|
1608
|
+
return throwDefaultError({
|
|
1706
1609
|
output,
|
|
1707
1610
|
parsedBody: parsedBody.Error,
|
|
1708
|
-
exceptionCtor: __BaseException,
|
|
1709
1611
|
errorCode,
|
|
1710
1612
|
});
|
|
1711
1613
|
}
|
|
@@ -1721,7 +1623,7 @@ export const de_SetIpAddressTypeCommand = async (output, context) => {
|
|
|
1721
1623
|
$metadata: deserializeMetadata(output),
|
|
1722
1624
|
...contents,
|
|
1723
1625
|
};
|
|
1724
|
-
return
|
|
1626
|
+
return response;
|
|
1725
1627
|
};
|
|
1726
1628
|
const de_SetIpAddressTypeCommandError = async (output, context) => {
|
|
1727
1629
|
const parsedOutput = {
|
|
@@ -1741,10 +1643,9 @@ const de_SetIpAddressTypeCommandError = async (output, context) => {
|
|
|
1741
1643
|
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1742
1644
|
default:
|
|
1743
1645
|
const parsedBody = parsedOutput.body;
|
|
1744
|
-
throwDefaultError({
|
|
1646
|
+
return throwDefaultError({
|
|
1745
1647
|
output,
|
|
1746
1648
|
parsedBody: parsedBody.Error,
|
|
1747
|
-
exceptionCtor: __BaseException,
|
|
1748
1649
|
errorCode,
|
|
1749
1650
|
});
|
|
1750
1651
|
}
|
|
@@ -1760,7 +1661,7 @@ export const de_SetRulePrioritiesCommand = async (output, context) => {
|
|
|
1760
1661
|
$metadata: deserializeMetadata(output),
|
|
1761
1662
|
...contents,
|
|
1762
1663
|
};
|
|
1763
|
-
return
|
|
1664
|
+
return response;
|
|
1764
1665
|
};
|
|
1765
1666
|
const de_SetRulePrioritiesCommandError = async (output, context) => {
|
|
1766
1667
|
const parsedOutput = {
|
|
@@ -1780,10 +1681,9 @@ const de_SetRulePrioritiesCommandError = async (output, context) => {
|
|
|
1780
1681
|
throw await de_RuleNotFoundExceptionRes(parsedOutput, context);
|
|
1781
1682
|
default:
|
|
1782
1683
|
const parsedBody = parsedOutput.body;
|
|
1783
|
-
throwDefaultError({
|
|
1684
|
+
return throwDefaultError({
|
|
1784
1685
|
output,
|
|
1785
1686
|
parsedBody: parsedBody.Error,
|
|
1786
|
-
exceptionCtor: __BaseException,
|
|
1787
1687
|
errorCode,
|
|
1788
1688
|
});
|
|
1789
1689
|
}
|
|
@@ -1799,7 +1699,7 @@ export const de_SetSecurityGroupsCommand = async (output, context) => {
|
|
|
1799
1699
|
$metadata: deserializeMetadata(output),
|
|
1800
1700
|
...contents,
|
|
1801
1701
|
};
|
|
1802
|
-
return
|
|
1702
|
+
return response;
|
|
1803
1703
|
};
|
|
1804
1704
|
const de_SetSecurityGroupsCommandError = async (output, context) => {
|
|
1805
1705
|
const parsedOutput = {
|
|
@@ -1819,10 +1719,9 @@ const de_SetSecurityGroupsCommandError = async (output, context) => {
|
|
|
1819
1719
|
throw await de_LoadBalancerNotFoundExceptionRes(parsedOutput, context);
|
|
1820
1720
|
default:
|
|
1821
1721
|
const parsedBody = parsedOutput.body;
|
|
1822
|
-
throwDefaultError({
|
|
1722
|
+
return throwDefaultError({
|
|
1823
1723
|
output,
|
|
1824
1724
|
parsedBody: parsedBody.Error,
|
|
1825
|
-
exceptionCtor: __BaseException,
|
|
1826
1725
|
errorCode,
|
|
1827
1726
|
});
|
|
1828
1727
|
}
|
|
@@ -1838,7 +1737,7 @@ export const de_SetSubnetsCommand = async (output, context) => {
|
|
|
1838
1737
|
$metadata: deserializeMetadata(output),
|
|
1839
1738
|
...contents,
|
|
1840
1739
|
};
|
|
1841
|
-
return
|
|
1740
|
+
return response;
|
|
1842
1741
|
};
|
|
1843
1742
|
const de_SetSubnetsCommandError = async (output, context) => {
|
|
1844
1743
|
const parsedOutput = {
|
|
@@ -1867,10 +1766,9 @@ const de_SetSubnetsCommandError = async (output, context) => {
|
|
|
1867
1766
|
throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
|
|
1868
1767
|
default:
|
|
1869
1768
|
const parsedBody = parsedOutput.body;
|
|
1870
|
-
throwDefaultError({
|
|
1769
|
+
return throwDefaultError({
|
|
1871
1770
|
output,
|
|
1872
1771
|
parsedBody: parsedBody.Error,
|
|
1873
|
-
exceptionCtor: __BaseException,
|
|
1874
1772
|
errorCode,
|
|
1875
1773
|
});
|
|
1876
1774
|
}
|
|
@@ -5186,6 +5084,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
5186
5084
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
5187
5085
|
};
|
|
5188
5086
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
5087
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
5189
5088
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
5190
5089
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5191
5090
|
const contents = {
|
|
@@ -5204,6 +5103,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
5204
5103
|
}
|
|
5205
5104
|
return new __HttpRequest(contents);
|
|
5206
5105
|
};
|
|
5106
|
+
const SHARED_HEADERS = {
|
|
5107
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
5108
|
+
};
|
|
5207
5109
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5208
5110
|
if (encoded.length) {
|
|
5209
5111
|
const parser = new XMLParser({
|