@aws-sdk/client-elastic-load-balancing 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 ElasticLoadBalancingServiceException_1 = require("../models/ElasticLoadBalancingServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const se_AddTagsCommand = async (input, context) => {
11
- const headers = {
12
- "content-type": "application/x-www-form-urlencoded",
13
- };
11
+ const headers = SHARED_HEADERS;
14
12
  let body;
15
13
  body = buildFormUrlencodedString({
16
14
  ...se_AddTagsInput(input, context),
@@ -21,9 +19,7 @@ const se_AddTagsCommand = async (input, context) => {
21
19
  };
22
20
  exports.se_AddTagsCommand = se_AddTagsCommand;
23
21
  const se_ApplySecurityGroupsToLoadBalancerCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-www-form-urlencoded",
26
- };
22
+ const headers = SHARED_HEADERS;
27
23
  let body;
28
24
  body = buildFormUrlencodedString({
29
25
  ...se_ApplySecurityGroupsToLoadBalancerInput(input, context),
@@ -34,9 +30,7 @@ const se_ApplySecurityGroupsToLoadBalancerCommand = async (input, context) => {
34
30
  };
35
31
  exports.se_ApplySecurityGroupsToLoadBalancerCommand = se_ApplySecurityGroupsToLoadBalancerCommand;
36
32
  const se_AttachLoadBalancerToSubnetsCommand = async (input, context) => {
37
- const headers = {
38
- "content-type": "application/x-www-form-urlencoded",
39
- };
33
+ const headers = SHARED_HEADERS;
40
34
  let body;
41
35
  body = buildFormUrlencodedString({
42
36
  ...se_AttachLoadBalancerToSubnetsInput(input, context),
@@ -47,9 +41,7 @@ const se_AttachLoadBalancerToSubnetsCommand = async (input, context) => {
47
41
  };
48
42
  exports.se_AttachLoadBalancerToSubnetsCommand = se_AttachLoadBalancerToSubnetsCommand;
49
43
  const se_ConfigureHealthCheckCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-www-form-urlencoded",
52
- };
44
+ const headers = SHARED_HEADERS;
53
45
  let body;
54
46
  body = buildFormUrlencodedString({
55
47
  ...se_ConfigureHealthCheckInput(input, context),
@@ -60,9 +52,7 @@ const se_ConfigureHealthCheckCommand = async (input, context) => {
60
52
  };
61
53
  exports.se_ConfigureHealthCheckCommand = se_ConfigureHealthCheckCommand;
62
54
  const se_CreateAppCookieStickinessPolicyCommand = async (input, context) => {
63
- const headers = {
64
- "content-type": "application/x-www-form-urlencoded",
65
- };
55
+ const headers = SHARED_HEADERS;
66
56
  let body;
67
57
  body = buildFormUrlencodedString({
68
58
  ...se_CreateAppCookieStickinessPolicyInput(input, context),
@@ -73,9 +63,7 @@ const se_CreateAppCookieStickinessPolicyCommand = async (input, context) => {
73
63
  };
74
64
  exports.se_CreateAppCookieStickinessPolicyCommand = se_CreateAppCookieStickinessPolicyCommand;
75
65
  const se_CreateLBCookieStickinessPolicyCommand = async (input, context) => {
76
- const headers = {
77
- "content-type": "application/x-www-form-urlencoded",
78
- };
66
+ const headers = SHARED_HEADERS;
79
67
  let body;
80
68
  body = buildFormUrlencodedString({
81
69
  ...se_CreateLBCookieStickinessPolicyInput(input, context),
@@ -86,9 +74,7 @@ const se_CreateLBCookieStickinessPolicyCommand = async (input, context) => {
86
74
  };
87
75
  exports.se_CreateLBCookieStickinessPolicyCommand = se_CreateLBCookieStickinessPolicyCommand;
88
76
  const se_CreateLoadBalancerCommand = async (input, context) => {
89
- const headers = {
90
- "content-type": "application/x-www-form-urlencoded",
91
- };
77
+ const headers = SHARED_HEADERS;
92
78
  let body;
93
79
  body = buildFormUrlencodedString({
94
80
  ...se_CreateAccessPointInput(input, context),
@@ -99,9 +85,7 @@ const se_CreateLoadBalancerCommand = async (input, context) => {
99
85
  };
100
86
  exports.se_CreateLoadBalancerCommand = se_CreateLoadBalancerCommand;
101
87
  const se_CreateLoadBalancerListenersCommand = async (input, context) => {
102
- const headers = {
103
- "content-type": "application/x-www-form-urlencoded",
104
- };
88
+ const headers = SHARED_HEADERS;
105
89
  let body;
106
90
  body = buildFormUrlencodedString({
107
91
  ...se_CreateLoadBalancerListenerInput(input, context),
@@ -112,9 +96,7 @@ const se_CreateLoadBalancerListenersCommand = async (input, context) => {
112
96
  };
113
97
  exports.se_CreateLoadBalancerListenersCommand = se_CreateLoadBalancerListenersCommand;
114
98
  const se_CreateLoadBalancerPolicyCommand = async (input, context) => {
115
- const headers = {
116
- "content-type": "application/x-www-form-urlencoded",
117
- };
99
+ const headers = SHARED_HEADERS;
118
100
  let body;
119
101
  body = buildFormUrlencodedString({
120
102
  ...se_CreateLoadBalancerPolicyInput(input, context),
@@ -125,9 +107,7 @@ const se_CreateLoadBalancerPolicyCommand = async (input, context) => {
125
107
  };
126
108
  exports.se_CreateLoadBalancerPolicyCommand = se_CreateLoadBalancerPolicyCommand;
127
109
  const se_DeleteLoadBalancerCommand = async (input, context) => {
128
- const headers = {
129
- "content-type": "application/x-www-form-urlencoded",
130
- };
110
+ const headers = SHARED_HEADERS;
131
111
  let body;
132
112
  body = buildFormUrlencodedString({
133
113
  ...se_DeleteAccessPointInput(input, context),
@@ -138,9 +118,7 @@ const se_DeleteLoadBalancerCommand = async (input, context) => {
138
118
  };
139
119
  exports.se_DeleteLoadBalancerCommand = se_DeleteLoadBalancerCommand;
140
120
  const se_DeleteLoadBalancerListenersCommand = async (input, context) => {
141
- const headers = {
142
- "content-type": "application/x-www-form-urlencoded",
143
- };
121
+ const headers = SHARED_HEADERS;
144
122
  let body;
145
123
  body = buildFormUrlencodedString({
146
124
  ...se_DeleteLoadBalancerListenerInput(input, context),
@@ -151,9 +129,7 @@ const se_DeleteLoadBalancerListenersCommand = async (input, context) => {
151
129
  };
152
130
  exports.se_DeleteLoadBalancerListenersCommand = se_DeleteLoadBalancerListenersCommand;
153
131
  const se_DeleteLoadBalancerPolicyCommand = async (input, context) => {
154
- const headers = {
155
- "content-type": "application/x-www-form-urlencoded",
156
- };
132
+ const headers = SHARED_HEADERS;
157
133
  let body;
158
134
  body = buildFormUrlencodedString({
159
135
  ...se_DeleteLoadBalancerPolicyInput(input, context),
@@ -164,9 +140,7 @@ const se_DeleteLoadBalancerPolicyCommand = async (input, context) => {
164
140
  };
165
141
  exports.se_DeleteLoadBalancerPolicyCommand = se_DeleteLoadBalancerPolicyCommand;
166
142
  const se_DeregisterInstancesFromLoadBalancerCommand = async (input, context) => {
167
- const headers = {
168
- "content-type": "application/x-www-form-urlencoded",
169
- };
143
+ const headers = SHARED_HEADERS;
170
144
  let body;
171
145
  body = buildFormUrlencodedString({
172
146
  ...se_DeregisterEndPointsInput(input, context),
@@ -177,9 +151,7 @@ const se_DeregisterInstancesFromLoadBalancerCommand = async (input, context) =>
177
151
  };
178
152
  exports.se_DeregisterInstancesFromLoadBalancerCommand = se_DeregisterInstancesFromLoadBalancerCommand;
179
153
  const se_DescribeAccountLimitsCommand = async (input, context) => {
180
- const headers = {
181
- "content-type": "application/x-www-form-urlencoded",
182
- };
154
+ const headers = SHARED_HEADERS;
183
155
  let body;
184
156
  body = buildFormUrlencodedString({
185
157
  ...se_DescribeAccountLimitsInput(input, context),
@@ -190,9 +162,7 @@ const se_DescribeAccountLimitsCommand = async (input, context) => {
190
162
  };
191
163
  exports.se_DescribeAccountLimitsCommand = se_DescribeAccountLimitsCommand;
192
164
  const se_DescribeInstanceHealthCommand = async (input, context) => {
193
- const headers = {
194
- "content-type": "application/x-www-form-urlencoded",
195
- };
165
+ const headers = SHARED_HEADERS;
196
166
  let body;
197
167
  body = buildFormUrlencodedString({
198
168
  ...se_DescribeEndPointStateInput(input, context),
@@ -203,9 +173,7 @@ const se_DescribeInstanceHealthCommand = async (input, context) => {
203
173
  };
204
174
  exports.se_DescribeInstanceHealthCommand = se_DescribeInstanceHealthCommand;
205
175
  const se_DescribeLoadBalancerAttributesCommand = async (input, context) => {
206
- const headers = {
207
- "content-type": "application/x-www-form-urlencoded",
208
- };
176
+ const headers = SHARED_HEADERS;
209
177
  let body;
210
178
  body = buildFormUrlencodedString({
211
179
  ...se_DescribeLoadBalancerAttributesInput(input, context),
@@ -216,9 +184,7 @@ const se_DescribeLoadBalancerAttributesCommand = async (input, context) => {
216
184
  };
217
185
  exports.se_DescribeLoadBalancerAttributesCommand = se_DescribeLoadBalancerAttributesCommand;
218
186
  const se_DescribeLoadBalancerPoliciesCommand = async (input, context) => {
219
- const headers = {
220
- "content-type": "application/x-www-form-urlencoded",
221
- };
187
+ const headers = SHARED_HEADERS;
222
188
  let body;
223
189
  body = buildFormUrlencodedString({
224
190
  ...se_DescribeLoadBalancerPoliciesInput(input, context),
@@ -229,9 +195,7 @@ const se_DescribeLoadBalancerPoliciesCommand = async (input, context) => {
229
195
  };
230
196
  exports.se_DescribeLoadBalancerPoliciesCommand = se_DescribeLoadBalancerPoliciesCommand;
231
197
  const se_DescribeLoadBalancerPolicyTypesCommand = async (input, context) => {
232
- const headers = {
233
- "content-type": "application/x-www-form-urlencoded",
234
- };
198
+ const headers = SHARED_HEADERS;
235
199
  let body;
236
200
  body = buildFormUrlencodedString({
237
201
  ...se_DescribeLoadBalancerPolicyTypesInput(input, context),
@@ -242,9 +206,7 @@ const se_DescribeLoadBalancerPolicyTypesCommand = async (input, context) => {
242
206
  };
243
207
  exports.se_DescribeLoadBalancerPolicyTypesCommand = se_DescribeLoadBalancerPolicyTypesCommand;
244
208
  const se_DescribeLoadBalancersCommand = async (input, context) => {
245
- const headers = {
246
- "content-type": "application/x-www-form-urlencoded",
247
- };
209
+ const headers = SHARED_HEADERS;
248
210
  let body;
249
211
  body = buildFormUrlencodedString({
250
212
  ...se_DescribeAccessPointsInput(input, context),
@@ -255,9 +217,7 @@ const se_DescribeLoadBalancersCommand = async (input, context) => {
255
217
  };
256
218
  exports.se_DescribeLoadBalancersCommand = se_DescribeLoadBalancersCommand;
257
219
  const se_DescribeTagsCommand = async (input, context) => {
258
- const headers = {
259
- "content-type": "application/x-www-form-urlencoded",
260
- };
220
+ const headers = SHARED_HEADERS;
261
221
  let body;
262
222
  body = buildFormUrlencodedString({
263
223
  ...se_DescribeTagsInput(input, context),
@@ -268,9 +228,7 @@ const se_DescribeTagsCommand = async (input, context) => {
268
228
  };
269
229
  exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
270
230
  const se_DetachLoadBalancerFromSubnetsCommand = async (input, context) => {
271
- const headers = {
272
- "content-type": "application/x-www-form-urlencoded",
273
- };
231
+ const headers = SHARED_HEADERS;
274
232
  let body;
275
233
  body = buildFormUrlencodedString({
276
234
  ...se_DetachLoadBalancerFromSubnetsInput(input, context),
@@ -281,9 +239,7 @@ const se_DetachLoadBalancerFromSubnetsCommand = async (input, context) => {
281
239
  };
282
240
  exports.se_DetachLoadBalancerFromSubnetsCommand = se_DetachLoadBalancerFromSubnetsCommand;
283
241
  const se_DisableAvailabilityZonesForLoadBalancerCommand = async (input, context) => {
284
- const headers = {
285
- "content-type": "application/x-www-form-urlencoded",
286
- };
242
+ const headers = SHARED_HEADERS;
287
243
  let body;
288
244
  body = buildFormUrlencodedString({
289
245
  ...se_RemoveAvailabilityZonesInput(input, context),
@@ -294,9 +250,7 @@ const se_DisableAvailabilityZonesForLoadBalancerCommand = async (input, context)
294
250
  };
295
251
  exports.se_DisableAvailabilityZonesForLoadBalancerCommand = se_DisableAvailabilityZonesForLoadBalancerCommand;
296
252
  const se_EnableAvailabilityZonesForLoadBalancerCommand = async (input, context) => {
297
- const headers = {
298
- "content-type": "application/x-www-form-urlencoded",
299
- };
253
+ const headers = SHARED_HEADERS;
300
254
  let body;
301
255
  body = buildFormUrlencodedString({
302
256
  ...se_AddAvailabilityZonesInput(input, context),
@@ -307,9 +261,7 @@ const se_EnableAvailabilityZonesForLoadBalancerCommand = async (input, context)
307
261
  };
308
262
  exports.se_EnableAvailabilityZonesForLoadBalancerCommand = se_EnableAvailabilityZonesForLoadBalancerCommand;
309
263
  const se_ModifyLoadBalancerAttributesCommand = async (input, context) => {
310
- const headers = {
311
- "content-type": "application/x-www-form-urlencoded",
312
- };
264
+ const headers = SHARED_HEADERS;
313
265
  let body;
314
266
  body = buildFormUrlencodedString({
315
267
  ...se_ModifyLoadBalancerAttributesInput(input, context),
@@ -320,9 +272,7 @@ const se_ModifyLoadBalancerAttributesCommand = async (input, context) => {
320
272
  };
321
273
  exports.se_ModifyLoadBalancerAttributesCommand = se_ModifyLoadBalancerAttributesCommand;
322
274
  const se_RegisterInstancesWithLoadBalancerCommand = async (input, context) => {
323
- const headers = {
324
- "content-type": "application/x-www-form-urlencoded",
325
- };
275
+ const headers = SHARED_HEADERS;
326
276
  let body;
327
277
  body = buildFormUrlencodedString({
328
278
  ...se_RegisterEndPointsInput(input, context),
@@ -333,9 +283,7 @@ const se_RegisterInstancesWithLoadBalancerCommand = async (input, context) => {
333
283
  };
334
284
  exports.se_RegisterInstancesWithLoadBalancerCommand = se_RegisterInstancesWithLoadBalancerCommand;
335
285
  const se_RemoveTagsCommand = async (input, context) => {
336
- const headers = {
337
- "content-type": "application/x-www-form-urlencoded",
338
- };
286
+ const headers = SHARED_HEADERS;
339
287
  let body;
340
288
  body = buildFormUrlencodedString({
341
289
  ...se_RemoveTagsInput(input, context),
@@ -346,9 +294,7 @@ const se_RemoveTagsCommand = async (input, context) => {
346
294
  };
347
295
  exports.se_RemoveTagsCommand = se_RemoveTagsCommand;
348
296
  const se_SetLoadBalancerListenerSSLCertificateCommand = async (input, context) => {
349
- const headers = {
350
- "content-type": "application/x-www-form-urlencoded",
351
- };
297
+ const headers = SHARED_HEADERS;
352
298
  let body;
353
299
  body = buildFormUrlencodedString({
354
300
  ...se_SetLoadBalancerListenerSSLCertificateInput(input, context),
@@ -359,9 +305,7 @@ const se_SetLoadBalancerListenerSSLCertificateCommand = async (input, context) =
359
305
  };
360
306
  exports.se_SetLoadBalancerListenerSSLCertificateCommand = se_SetLoadBalancerListenerSSLCertificateCommand;
361
307
  const se_SetLoadBalancerPoliciesForBackendServerCommand = async (input, context) => {
362
- const headers = {
363
- "content-type": "application/x-www-form-urlencoded",
364
- };
308
+ const headers = SHARED_HEADERS;
365
309
  let body;
366
310
  body = buildFormUrlencodedString({
367
311
  ...se_SetLoadBalancerPoliciesForBackendServerInput(input, context),
@@ -372,9 +316,7 @@ const se_SetLoadBalancerPoliciesForBackendServerCommand = async (input, context)
372
316
  };
373
317
  exports.se_SetLoadBalancerPoliciesForBackendServerCommand = se_SetLoadBalancerPoliciesForBackendServerCommand;
374
318
  const se_SetLoadBalancerPoliciesOfListenerCommand = async (input, context) => {
375
- const headers = {
376
- "content-type": "application/x-www-form-urlencoded",
377
- };
319
+ const headers = SHARED_HEADERS;
378
320
  let body;
379
321
  body = buildFormUrlencodedString({
380
322
  ...se_SetLoadBalancerPoliciesOfListenerInput(input, context),
@@ -3484,6 +3426,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3484
3426
  }
3485
3427
  return new protocol_http_1.HttpRequest(contents);
3486
3428
  };
3429
+ const SHARED_HEADERS = {
3430
+ "content-type": "application/x-www-form-urlencoded",
3431
+ };
3487
3432
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3488
3433
  if (encoded.length) {
3489
3434
  const parser = new fast_xml_parser_1.XMLParser({
@@ -4,9 +4,7 @@ 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),
@@ -3422,6 +3364,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3422
3364
  }
3423
3365
  return new __HttpRequest(contents);
3424
3366
  };
3367
+ const SHARED_HEADERS = {
3368
+ "content-type": "application/x-www-form-urlencoded",
3369
+ };
3425
3370
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3426
3371
  if (encoded.length) {
3427
3372
  const parser = new XMLParser({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elastic-load-balancing",
3
3
  "description": "AWS SDK for JavaScript Elastic Load Balancing 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",