@aws-sdk/client-elastic-load-balancing-v2 3.310.0 → 3.312.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.
@@ -8,9 +8,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
8
8
  const ElasticLoadBalancingV2ServiceException_1 = require("../models/ElasticLoadBalancingV2ServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_AddListenerCertificatesCommand = async (input, context) => {
11
- const headers = {
12
- "content-type": "application/x-www-form-urlencoded",
13
- };
11
+ const headers = SHARED_HEADERS;
14
12
  let body;
15
13
  body = buildFormUrlencodedString({
16
14
  ...se_AddListenerCertificatesInput(input, context),
@@ -21,9 +19,7 @@ const se_AddListenerCertificatesCommand = async (input, context) => {
21
19
  };
22
20
  exports.se_AddListenerCertificatesCommand = se_AddListenerCertificatesCommand;
23
21
  const se_AddTagsCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-www-form-urlencoded",
26
- };
22
+ const headers = SHARED_HEADERS;
27
23
  let body;
28
24
  body = buildFormUrlencodedString({
29
25
  ...se_AddTagsInput(input, context),
@@ -34,9 +30,7 @@ const se_AddTagsCommand = async (input, context) => {
34
30
  };
35
31
  exports.se_AddTagsCommand = se_AddTagsCommand;
36
32
  const se_CreateListenerCommand = async (input, context) => {
37
- const headers = {
38
- "content-type": "application/x-www-form-urlencoded",
39
- };
33
+ const headers = SHARED_HEADERS;
40
34
  let body;
41
35
  body = buildFormUrlencodedString({
42
36
  ...se_CreateListenerInput(input, context),
@@ -47,9 +41,7 @@ const se_CreateListenerCommand = async (input, context) => {
47
41
  };
48
42
  exports.se_CreateListenerCommand = se_CreateListenerCommand;
49
43
  const se_CreateLoadBalancerCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-www-form-urlencoded",
52
- };
44
+ const headers = SHARED_HEADERS;
53
45
  let body;
54
46
  body = buildFormUrlencodedString({
55
47
  ...se_CreateLoadBalancerInput(input, context),
@@ -60,9 +52,7 @@ const se_CreateLoadBalancerCommand = async (input, context) => {
60
52
  };
61
53
  exports.se_CreateLoadBalancerCommand = se_CreateLoadBalancerCommand;
62
54
  const se_CreateRuleCommand = async (input, context) => {
63
- const headers = {
64
- "content-type": "application/x-www-form-urlencoded",
65
- };
55
+ const headers = SHARED_HEADERS;
66
56
  let body;
67
57
  body = buildFormUrlencodedString({
68
58
  ...se_CreateRuleInput(input, context),
@@ -73,9 +63,7 @@ const se_CreateRuleCommand = async (input, context) => {
73
63
  };
74
64
  exports.se_CreateRuleCommand = se_CreateRuleCommand;
75
65
  const se_CreateTargetGroupCommand = async (input, context) => {
76
- const headers = {
77
- "content-type": "application/x-www-form-urlencoded",
78
- };
66
+ const headers = SHARED_HEADERS;
79
67
  let body;
80
68
  body = buildFormUrlencodedString({
81
69
  ...se_CreateTargetGroupInput(input, context),
@@ -86,9 +74,7 @@ const se_CreateTargetGroupCommand = async (input, context) => {
86
74
  };
87
75
  exports.se_CreateTargetGroupCommand = se_CreateTargetGroupCommand;
88
76
  const se_DeleteListenerCommand = async (input, context) => {
89
- const headers = {
90
- "content-type": "application/x-www-form-urlencoded",
91
- };
77
+ const headers = SHARED_HEADERS;
92
78
  let body;
93
79
  body = buildFormUrlencodedString({
94
80
  ...se_DeleteListenerInput(input, context),
@@ -99,9 +85,7 @@ const se_DeleteListenerCommand = async (input, context) => {
99
85
  };
100
86
  exports.se_DeleteListenerCommand = se_DeleteListenerCommand;
101
87
  const se_DeleteLoadBalancerCommand = async (input, context) => {
102
- const headers = {
103
- "content-type": "application/x-www-form-urlencoded",
104
- };
88
+ const headers = SHARED_HEADERS;
105
89
  let body;
106
90
  body = buildFormUrlencodedString({
107
91
  ...se_DeleteLoadBalancerInput(input, context),
@@ -112,9 +96,7 @@ const se_DeleteLoadBalancerCommand = async (input, context) => {
112
96
  };
113
97
  exports.se_DeleteLoadBalancerCommand = se_DeleteLoadBalancerCommand;
114
98
  const se_DeleteRuleCommand = async (input, context) => {
115
- const headers = {
116
- "content-type": "application/x-www-form-urlencoded",
117
- };
99
+ const headers = SHARED_HEADERS;
118
100
  let body;
119
101
  body = buildFormUrlencodedString({
120
102
  ...se_DeleteRuleInput(input, context),
@@ -125,9 +107,7 @@ const se_DeleteRuleCommand = async (input, context) => {
125
107
  };
126
108
  exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
127
109
  const se_DeleteTargetGroupCommand = async (input, context) => {
128
- const headers = {
129
- "content-type": "application/x-www-form-urlencoded",
130
- };
110
+ const headers = SHARED_HEADERS;
131
111
  let body;
132
112
  body = buildFormUrlencodedString({
133
113
  ...se_DeleteTargetGroupInput(input, context),
@@ -138,9 +118,7 @@ const se_DeleteTargetGroupCommand = async (input, context) => {
138
118
  };
139
119
  exports.se_DeleteTargetGroupCommand = se_DeleteTargetGroupCommand;
140
120
  const se_DeregisterTargetsCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-www-form-urlencoded",
143
- };
121
+ const headers = SHARED_HEADERS;
144
122
  let body;
145
123
  body = buildFormUrlencodedString({
146
124
  ...se_DeregisterTargetsInput(input, context),
@@ -151,9 +129,7 @@ const se_DeregisterTargetsCommand = async (input, context) => {
151
129
  };
152
130
  exports.se_DeregisterTargetsCommand = se_DeregisterTargetsCommand;
153
131
  const se_DescribeAccountLimitsCommand = async (input, context) => {
154
- const headers = {
155
- "content-type": "application/x-www-form-urlencoded",
156
- };
132
+ const headers = SHARED_HEADERS;
157
133
  let body;
158
134
  body = buildFormUrlencodedString({
159
135
  ...se_DescribeAccountLimitsInput(input, context),
@@ -164,9 +140,7 @@ const se_DescribeAccountLimitsCommand = async (input, context) => {
164
140
  };
165
141
  exports.se_DescribeAccountLimitsCommand = se_DescribeAccountLimitsCommand;
166
142
  const se_DescribeListenerCertificatesCommand = async (input, context) => {
167
- const headers = {
168
- "content-type": "application/x-www-form-urlencoded",
169
- };
143
+ const headers = SHARED_HEADERS;
170
144
  let body;
171
145
  body = buildFormUrlencodedString({
172
146
  ...se_DescribeListenerCertificatesInput(input, context),
@@ -177,9 +151,7 @@ const se_DescribeListenerCertificatesCommand = async (input, context) => {
177
151
  };
178
152
  exports.se_DescribeListenerCertificatesCommand = se_DescribeListenerCertificatesCommand;
179
153
  const se_DescribeListenersCommand = async (input, context) => {
180
- const headers = {
181
- "content-type": "application/x-www-form-urlencoded",
182
- };
154
+ const headers = SHARED_HEADERS;
183
155
  let body;
184
156
  body = buildFormUrlencodedString({
185
157
  ...se_DescribeListenersInput(input, context),
@@ -190,9 +162,7 @@ const se_DescribeListenersCommand = async (input, context) => {
190
162
  };
191
163
  exports.se_DescribeListenersCommand = se_DescribeListenersCommand;
192
164
  const se_DescribeLoadBalancerAttributesCommand = async (input, context) => {
193
- const headers = {
194
- "content-type": "application/x-www-form-urlencoded",
195
- };
165
+ const headers = SHARED_HEADERS;
196
166
  let body;
197
167
  body = buildFormUrlencodedString({
198
168
  ...se_DescribeLoadBalancerAttributesInput(input, context),
@@ -203,9 +173,7 @@ const se_DescribeLoadBalancerAttributesCommand = async (input, context) => {
203
173
  };
204
174
  exports.se_DescribeLoadBalancerAttributesCommand = se_DescribeLoadBalancerAttributesCommand;
205
175
  const se_DescribeLoadBalancersCommand = async (input, context) => {
206
- const headers = {
207
- "content-type": "application/x-www-form-urlencoded",
208
- };
176
+ const headers = SHARED_HEADERS;
209
177
  let body;
210
178
  body = buildFormUrlencodedString({
211
179
  ...se_DescribeLoadBalancersInput(input, context),
@@ -216,9 +184,7 @@ const se_DescribeLoadBalancersCommand = async (input, context) => {
216
184
  };
217
185
  exports.se_DescribeLoadBalancersCommand = se_DescribeLoadBalancersCommand;
218
186
  const se_DescribeRulesCommand = async (input, context) => {
219
- const headers = {
220
- "content-type": "application/x-www-form-urlencoded",
221
- };
187
+ const headers = SHARED_HEADERS;
222
188
  let body;
223
189
  body = buildFormUrlencodedString({
224
190
  ...se_DescribeRulesInput(input, context),
@@ -229,9 +195,7 @@ const se_DescribeRulesCommand = async (input, context) => {
229
195
  };
230
196
  exports.se_DescribeRulesCommand = se_DescribeRulesCommand;
231
197
  const se_DescribeSSLPoliciesCommand = async (input, context) => {
232
- const headers = {
233
- "content-type": "application/x-www-form-urlencoded",
234
- };
198
+ const headers = SHARED_HEADERS;
235
199
  let body;
236
200
  body = buildFormUrlencodedString({
237
201
  ...se_DescribeSSLPoliciesInput(input, context),
@@ -242,9 +206,7 @@ const se_DescribeSSLPoliciesCommand = async (input, context) => {
242
206
  };
243
207
  exports.se_DescribeSSLPoliciesCommand = se_DescribeSSLPoliciesCommand;
244
208
  const se_DescribeTagsCommand = async (input, context) => {
245
- const headers = {
246
- "content-type": "application/x-www-form-urlencoded",
247
- };
209
+ const headers = SHARED_HEADERS;
248
210
  let body;
249
211
  body = buildFormUrlencodedString({
250
212
  ...se_DescribeTagsInput(input, context),
@@ -255,9 +217,7 @@ const se_DescribeTagsCommand = async (input, context) => {
255
217
  };
256
218
  exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
257
219
  const se_DescribeTargetGroupAttributesCommand = async (input, context) => {
258
- const headers = {
259
- "content-type": "application/x-www-form-urlencoded",
260
- };
220
+ const headers = SHARED_HEADERS;
261
221
  let body;
262
222
  body = buildFormUrlencodedString({
263
223
  ...se_DescribeTargetGroupAttributesInput(input, context),
@@ -268,9 +228,7 @@ const se_DescribeTargetGroupAttributesCommand = async (input, context) => {
268
228
  };
269
229
  exports.se_DescribeTargetGroupAttributesCommand = se_DescribeTargetGroupAttributesCommand;
270
230
  const se_DescribeTargetGroupsCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-www-form-urlencoded",
273
- };
231
+ const headers = SHARED_HEADERS;
274
232
  let body;
275
233
  body = buildFormUrlencodedString({
276
234
  ...se_DescribeTargetGroupsInput(input, context),
@@ -281,9 +239,7 @@ const se_DescribeTargetGroupsCommand = async (input, context) => {
281
239
  };
282
240
  exports.se_DescribeTargetGroupsCommand = se_DescribeTargetGroupsCommand;
283
241
  const se_DescribeTargetHealthCommand = async (input, context) => {
284
- const headers = {
285
- "content-type": "application/x-www-form-urlencoded",
286
- };
242
+ const headers = SHARED_HEADERS;
287
243
  let body;
288
244
  body = buildFormUrlencodedString({
289
245
  ...se_DescribeTargetHealthInput(input, context),
@@ -294,9 +250,7 @@ const se_DescribeTargetHealthCommand = async (input, context) => {
294
250
  };
295
251
  exports.se_DescribeTargetHealthCommand = se_DescribeTargetHealthCommand;
296
252
  const se_ModifyListenerCommand = async (input, context) => {
297
- const headers = {
298
- "content-type": "application/x-www-form-urlencoded",
299
- };
253
+ const headers = SHARED_HEADERS;
300
254
  let body;
301
255
  body = buildFormUrlencodedString({
302
256
  ...se_ModifyListenerInput(input, context),
@@ -307,9 +261,7 @@ const se_ModifyListenerCommand = async (input, context) => {
307
261
  };
308
262
  exports.se_ModifyListenerCommand = se_ModifyListenerCommand;
309
263
  const se_ModifyLoadBalancerAttributesCommand = async (input, context) => {
310
- const headers = {
311
- "content-type": "application/x-www-form-urlencoded",
312
- };
264
+ const headers = SHARED_HEADERS;
313
265
  let body;
314
266
  body = buildFormUrlencodedString({
315
267
  ...se_ModifyLoadBalancerAttributesInput(input, context),
@@ -320,9 +272,7 @@ const se_ModifyLoadBalancerAttributesCommand = async (input, context) => {
320
272
  };
321
273
  exports.se_ModifyLoadBalancerAttributesCommand = se_ModifyLoadBalancerAttributesCommand;
322
274
  const se_ModifyRuleCommand = async (input, context) => {
323
- const headers = {
324
- "content-type": "application/x-www-form-urlencoded",
325
- };
275
+ const headers = SHARED_HEADERS;
326
276
  let body;
327
277
  body = buildFormUrlencodedString({
328
278
  ...se_ModifyRuleInput(input, context),
@@ -333,9 +283,7 @@ const se_ModifyRuleCommand = async (input, context) => {
333
283
  };
334
284
  exports.se_ModifyRuleCommand = se_ModifyRuleCommand;
335
285
  const se_ModifyTargetGroupCommand = async (input, context) => {
336
- const headers = {
337
- "content-type": "application/x-www-form-urlencoded",
338
- };
286
+ const headers = SHARED_HEADERS;
339
287
  let body;
340
288
  body = buildFormUrlencodedString({
341
289
  ...se_ModifyTargetGroupInput(input, context),
@@ -346,9 +294,7 @@ const se_ModifyTargetGroupCommand = async (input, context) => {
346
294
  };
347
295
  exports.se_ModifyTargetGroupCommand = se_ModifyTargetGroupCommand;
348
296
  const se_ModifyTargetGroupAttributesCommand = async (input, context) => {
349
- const headers = {
350
- "content-type": "application/x-www-form-urlencoded",
351
- };
297
+ const headers = SHARED_HEADERS;
352
298
  let body;
353
299
  body = buildFormUrlencodedString({
354
300
  ...se_ModifyTargetGroupAttributesInput(input, context),
@@ -359,9 +305,7 @@ const se_ModifyTargetGroupAttributesCommand = async (input, context) => {
359
305
  };
360
306
  exports.se_ModifyTargetGroupAttributesCommand = se_ModifyTargetGroupAttributesCommand;
361
307
  const se_RegisterTargetsCommand = async (input, context) => {
362
- const headers = {
363
- "content-type": "application/x-www-form-urlencoded",
364
- };
308
+ const headers = SHARED_HEADERS;
365
309
  let body;
366
310
  body = buildFormUrlencodedString({
367
311
  ...se_RegisterTargetsInput(input, context),
@@ -372,9 +316,7 @@ const se_RegisterTargetsCommand = async (input, context) => {
372
316
  };
373
317
  exports.se_RegisterTargetsCommand = se_RegisterTargetsCommand;
374
318
  const se_RemoveListenerCertificatesCommand = async (input, context) => {
375
- const headers = {
376
- "content-type": "application/x-www-form-urlencoded",
377
- };
319
+ const headers = SHARED_HEADERS;
378
320
  let body;
379
321
  body = buildFormUrlencodedString({
380
322
  ...se_RemoveListenerCertificatesInput(input, context),
@@ -385,9 +327,7 @@ const se_RemoveListenerCertificatesCommand = async (input, context) => {
385
327
  };
386
328
  exports.se_RemoveListenerCertificatesCommand = se_RemoveListenerCertificatesCommand;
387
329
  const se_RemoveTagsCommand = async (input, context) => {
388
- const headers = {
389
- "content-type": "application/x-www-form-urlencoded",
390
- };
330
+ const headers = SHARED_HEADERS;
391
331
  let body;
392
332
  body = buildFormUrlencodedString({
393
333
  ...se_RemoveTagsInput(input, context),
@@ -398,9 +338,7 @@ const se_RemoveTagsCommand = async (input, context) => {
398
338
  };
399
339
  exports.se_RemoveTagsCommand = se_RemoveTagsCommand;
400
340
  const se_SetIpAddressTypeCommand = async (input, context) => {
401
- const headers = {
402
- "content-type": "application/x-www-form-urlencoded",
403
- };
341
+ const headers = SHARED_HEADERS;
404
342
  let body;
405
343
  body = buildFormUrlencodedString({
406
344
  ...se_SetIpAddressTypeInput(input, context),
@@ -411,9 +349,7 @@ const se_SetIpAddressTypeCommand = async (input, context) => {
411
349
  };
412
350
  exports.se_SetIpAddressTypeCommand = se_SetIpAddressTypeCommand;
413
351
  const se_SetRulePrioritiesCommand = async (input, context) => {
414
- const headers = {
415
- "content-type": "application/x-www-form-urlencoded",
416
- };
352
+ const headers = SHARED_HEADERS;
417
353
  let body;
418
354
  body = buildFormUrlencodedString({
419
355
  ...se_SetRulePrioritiesInput(input, context),
@@ -424,9 +360,7 @@ const se_SetRulePrioritiesCommand = async (input, context) => {
424
360
  };
425
361
  exports.se_SetRulePrioritiesCommand = se_SetRulePrioritiesCommand;
426
362
  const se_SetSecurityGroupsCommand = async (input, context) => {
427
- const headers = {
428
- "content-type": "application/x-www-form-urlencoded",
429
- };
363
+ const headers = SHARED_HEADERS;
430
364
  let body;
431
365
  body = buildFormUrlencodedString({
432
366
  ...se_SetSecurityGroupsInput(input, context),
@@ -437,9 +371,7 @@ const se_SetSecurityGroupsCommand = async (input, context) => {
437
371
  };
438
372
  exports.se_SetSecurityGroupsCommand = se_SetSecurityGroupsCommand;
439
373
  const se_SetSubnetsCommand = async (input, context) => {
440
- const headers = {
441
- "content-type": "application/x-www-form-urlencoded",
442
- };
374
+ const headers = SHARED_HEADERS;
443
375
  let body;
444
376
  body = buildFormUrlencodedString({
445
377
  ...se_SetSubnetsInput(input, context),
@@ -5276,6 +5208,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
5276
5208
  }
5277
5209
  return new protocol_http_1.HttpRequest(contents);
5278
5210
  };
5211
+ const SHARED_HEADERS = {
5212
+ "content-type": "application/x-www-form-urlencoded",
5213
+ };
5279
5214
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5280
5215
  if (encoded.length) {
5281
5216
  const parser = new fast_xml_parser_1.XMLParser({
@@ -4,9 +4,7 @@ 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),
@@ -5204,6 +5136,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
5204
5136
  }
5205
5137
  return new __HttpRequest(contents);
5206
5138
  };
5139
+ const SHARED_HEADERS = {
5140
+ "content-type": "application/x-www-form-urlencoded",
5141
+ };
5207
5142
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5208
5143
  if (encoded.length) {
5209
5144
  const parser = new XMLParser({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elastic-load-balancing-v2",
3
3
  "description": "AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native",
4
- "version": "3.310.0",
4
+ "version": "3.312.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.310.0",
24
+ "@aws-sdk/client-sts": "3.312.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
26
  "@aws-sdk/credential-provider-node": "3.310.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",