@aws-sdk/client-elastic-load-balancing 3.929.0 → 3.930.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.
Files changed (50) hide show
  1. package/dist-cjs/index.js +1027 -3010
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/ElasticLoadBalancingClient.js +2 -0
  4. package/dist-es/commands/AddTagsCommand.js +3 -9
  5. package/dist-es/commands/ApplySecurityGroupsToLoadBalancerCommand.js +3 -9
  6. package/dist-es/commands/AttachLoadBalancerToSubnetsCommand.js +3 -9
  7. package/dist-es/commands/ConfigureHealthCheckCommand.js +3 -9
  8. package/dist-es/commands/CreateAppCookieStickinessPolicyCommand.js +3 -9
  9. package/dist-es/commands/CreateLBCookieStickinessPolicyCommand.js +3 -9
  10. package/dist-es/commands/CreateLoadBalancerCommand.js +3 -9
  11. package/dist-es/commands/CreateLoadBalancerListenersCommand.js +3 -9
  12. package/dist-es/commands/CreateLoadBalancerPolicyCommand.js +3 -9
  13. package/dist-es/commands/DeleteLoadBalancerCommand.js +3 -9
  14. package/dist-es/commands/DeleteLoadBalancerListenersCommand.js +3 -9
  15. package/dist-es/commands/DeleteLoadBalancerPolicyCommand.js +3 -9
  16. package/dist-es/commands/DeregisterInstancesFromLoadBalancerCommand.js +3 -9
  17. package/dist-es/commands/DescribeAccountLimitsCommand.js +3 -9
  18. package/dist-es/commands/DescribeInstanceHealthCommand.js +3 -9
  19. package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js +3 -9
  20. package/dist-es/commands/DescribeLoadBalancerPoliciesCommand.js +3 -9
  21. package/dist-es/commands/DescribeLoadBalancerPolicyTypesCommand.js +3 -9
  22. package/dist-es/commands/DescribeLoadBalancersCommand.js +3 -9
  23. package/dist-es/commands/DescribeTagsCommand.js +3 -9
  24. package/dist-es/commands/DetachLoadBalancerFromSubnetsCommand.js +3 -9
  25. package/dist-es/commands/DisableAvailabilityZonesForLoadBalancerCommand.js +3 -9
  26. package/dist-es/commands/EnableAvailabilityZonesForLoadBalancerCommand.js +3 -9
  27. package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js +3 -9
  28. package/dist-es/commands/RegisterInstancesWithLoadBalancerCommand.js +3 -9
  29. package/dist-es/commands/RemoveTagsCommand.js +3 -9
  30. package/dist-es/commands/SetLoadBalancerListenerSSLCertificateCommand.js +3 -9
  31. package/dist-es/commands/SetLoadBalancerPoliciesForBackendServerCommand.js +3 -9
  32. package/dist-es/commands/SetLoadBalancerPoliciesOfListenerCommand.js +3 -9
  33. package/dist-es/runtimeConfig.shared.js +7 -0
  34. package/dist-es/schemas/schemas_0.js +1002 -0
  35. package/dist-types/ElasticLoadBalancingClient.d.ts +10 -1
  36. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  37. package/dist-types/runtimeConfig.d.ts +1 -0
  38. package/dist-types/runtimeConfig.native.d.ts +1 -0
  39. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  40. package/dist-types/schemas/schemas_0.d.ts +163 -0
  41. package/dist-types/ts3.4/ElasticLoadBalancingClient.d.ts +4 -0
  42. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  43. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  44. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  45. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +168 -0
  47. package/package.json +34 -34
  48. package/dist-es/protocols/Aws_query.js +0 -2838
  49. package/dist-types/protocols/Aws_query.d.ts +0 -263
  50. package/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -353
@@ -1,2838 +0,0 @@
1
- import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
4
- import { ElasticLoadBalancingServiceException as __BaseException } from "../models/ElasticLoadBalancingServiceException";
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
- export const se_AddTagsCommand = async (input, context) => {
7
- const headers = SHARED_HEADERS;
8
- let body;
9
- body = buildFormUrlencodedString({
10
- ...se_AddTagsInput(input, context),
11
- [_A]: _AT,
12
- [_V]: _,
13
- });
14
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
- };
16
- export const se_ApplySecurityGroupsToLoadBalancerCommand = async (input, context) => {
17
- const headers = SHARED_HEADERS;
18
- let body;
19
- body = buildFormUrlencodedString({
20
- ...se_ApplySecurityGroupsToLoadBalancerInput(input, context),
21
- [_A]: _ASGTLB,
22
- [_V]: _,
23
- });
24
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
25
- };
26
- export const se_AttachLoadBalancerToSubnetsCommand = async (input, context) => {
27
- const headers = SHARED_HEADERS;
28
- let body;
29
- body = buildFormUrlencodedString({
30
- ...se_AttachLoadBalancerToSubnetsInput(input, context),
31
- [_A]: _ALBTS,
32
- [_V]: _,
33
- });
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_ConfigureHealthCheckCommand = async (input, context) => {
37
- const headers = SHARED_HEADERS;
38
- let body;
39
- body = buildFormUrlencodedString({
40
- ...se_ConfigureHealthCheckInput(input, context),
41
- [_A]: _CHC,
42
- [_V]: _,
43
- });
44
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
45
- };
46
- export const se_CreateAppCookieStickinessPolicyCommand = async (input, context) => {
47
- const headers = SHARED_HEADERS;
48
- let body;
49
- body = buildFormUrlencodedString({
50
- ...se_CreateAppCookieStickinessPolicyInput(input, context),
51
- [_A]: _CACSP,
52
- [_V]: _,
53
- });
54
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
- };
56
- export const se_CreateLBCookieStickinessPolicyCommand = async (input, context) => {
57
- const headers = SHARED_HEADERS;
58
- let body;
59
- body = buildFormUrlencodedString({
60
- ...se_CreateLBCookieStickinessPolicyInput(input, context),
61
- [_A]: _CLBCSP,
62
- [_V]: _,
63
- });
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_CreateLoadBalancerCommand = async (input, context) => {
67
- const headers = SHARED_HEADERS;
68
- let body;
69
- body = buildFormUrlencodedString({
70
- ...se_CreateAccessPointInput(input, context),
71
- [_A]: _CLB,
72
- [_V]: _,
73
- });
74
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
75
- };
76
- export const se_CreateLoadBalancerListenersCommand = async (input, context) => {
77
- const headers = SHARED_HEADERS;
78
- let body;
79
- body = buildFormUrlencodedString({
80
- ...se_CreateLoadBalancerListenerInput(input, context),
81
- [_A]: _CLBL,
82
- [_V]: _,
83
- });
84
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
- };
86
- export const se_CreateLoadBalancerPolicyCommand = async (input, context) => {
87
- const headers = SHARED_HEADERS;
88
- let body;
89
- body = buildFormUrlencodedString({
90
- ...se_CreateLoadBalancerPolicyInput(input, context),
91
- [_A]: _CLBP,
92
- [_V]: _,
93
- });
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_DeleteLoadBalancerCommand = async (input, context) => {
97
- const headers = SHARED_HEADERS;
98
- let body;
99
- body = buildFormUrlencodedString({
100
- ...se_DeleteAccessPointInput(input, context),
101
- [_A]: _DLB,
102
- [_V]: _,
103
- });
104
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
- };
106
- export const se_DeleteLoadBalancerListenersCommand = async (input, context) => {
107
- const headers = SHARED_HEADERS;
108
- let body;
109
- body = buildFormUrlencodedString({
110
- ...se_DeleteLoadBalancerListenerInput(input, context),
111
- [_A]: _DLBL,
112
- [_V]: _,
113
- });
114
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
115
- };
116
- export const se_DeleteLoadBalancerPolicyCommand = async (input, context) => {
117
- const headers = SHARED_HEADERS;
118
- let body;
119
- body = buildFormUrlencodedString({
120
- ...se_DeleteLoadBalancerPolicyInput(input, context),
121
- [_A]: _DLBP,
122
- [_V]: _,
123
- });
124
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
- };
126
- export const se_DeregisterInstancesFromLoadBalancerCommand = async (input, context) => {
127
- const headers = SHARED_HEADERS;
128
- let body;
129
- body = buildFormUrlencodedString({
130
- ...se_DeregisterEndPointsInput(input, context),
131
- [_A]: _DIFLB,
132
- [_V]: _,
133
- });
134
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
135
- };
136
- export const se_DescribeAccountLimitsCommand = async (input, context) => {
137
- const headers = SHARED_HEADERS;
138
- let body;
139
- body = buildFormUrlencodedString({
140
- ...se_DescribeAccountLimitsInput(input, context),
141
- [_A]: _DAL,
142
- [_V]: _,
143
- });
144
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
145
- };
146
- export const se_DescribeInstanceHealthCommand = async (input, context) => {
147
- const headers = SHARED_HEADERS;
148
- let body;
149
- body = buildFormUrlencodedString({
150
- ...se_DescribeEndPointStateInput(input, context),
151
- [_A]: _DIH,
152
- [_V]: _,
153
- });
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- export const se_DescribeLoadBalancerAttributesCommand = async (input, context) => {
157
- const headers = SHARED_HEADERS;
158
- let body;
159
- body = buildFormUrlencodedString({
160
- ...se_DescribeLoadBalancerAttributesInput(input, context),
161
- [_A]: _DLBA,
162
- [_V]: _,
163
- });
164
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
165
- };
166
- export const se_DescribeLoadBalancerPoliciesCommand = async (input, context) => {
167
- const headers = SHARED_HEADERS;
168
- let body;
169
- body = buildFormUrlencodedString({
170
- ...se_DescribeLoadBalancerPoliciesInput(input, context),
171
- [_A]: _DLBPe,
172
- [_V]: _,
173
- });
174
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
- };
176
- export const se_DescribeLoadBalancerPolicyTypesCommand = async (input, context) => {
177
- const headers = SHARED_HEADERS;
178
- let body;
179
- body = buildFormUrlencodedString({
180
- ...se_DescribeLoadBalancerPolicyTypesInput(input, context),
181
- [_A]: _DLBPT,
182
- [_V]: _,
183
- });
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- export const se_DescribeLoadBalancersCommand = async (input, context) => {
187
- const headers = SHARED_HEADERS;
188
- let body;
189
- body = buildFormUrlencodedString({
190
- ...se_DescribeAccessPointsInput(input, context),
191
- [_A]: _DLBe,
192
- [_V]: _,
193
- });
194
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
195
- };
196
- export const se_DescribeTagsCommand = async (input, context) => {
197
- const headers = SHARED_HEADERS;
198
- let body;
199
- body = buildFormUrlencodedString({
200
- ...se_DescribeTagsInput(input, context),
201
- [_A]: _DT,
202
- [_V]: _,
203
- });
204
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
205
- };
206
- export const se_DetachLoadBalancerFromSubnetsCommand = async (input, context) => {
207
- const headers = SHARED_HEADERS;
208
- let body;
209
- body = buildFormUrlencodedString({
210
- ...se_DetachLoadBalancerFromSubnetsInput(input, context),
211
- [_A]: _DLBFS,
212
- [_V]: _,
213
- });
214
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
- };
216
- export const se_DisableAvailabilityZonesForLoadBalancerCommand = async (input, context) => {
217
- const headers = SHARED_HEADERS;
218
- let body;
219
- body = buildFormUrlencodedString({
220
- ...se_RemoveAvailabilityZonesInput(input, context),
221
- [_A]: _DAZFLB,
222
- [_V]: _,
223
- });
224
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
- };
226
- export const se_EnableAvailabilityZonesForLoadBalancerCommand = async (input, context) => {
227
- const headers = SHARED_HEADERS;
228
- let body;
229
- body = buildFormUrlencodedString({
230
- ...se_AddAvailabilityZonesInput(input, context),
231
- [_A]: _EAZFLB,
232
- [_V]: _,
233
- });
234
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
235
- };
236
- export const se_ModifyLoadBalancerAttributesCommand = async (input, context) => {
237
- const headers = SHARED_HEADERS;
238
- let body;
239
- body = buildFormUrlencodedString({
240
- ...se_ModifyLoadBalancerAttributesInput(input, context),
241
- [_A]: _MLBA,
242
- [_V]: _,
243
- });
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- export const se_RegisterInstancesWithLoadBalancerCommand = async (input, context) => {
247
- const headers = SHARED_HEADERS;
248
- let body;
249
- body = buildFormUrlencodedString({
250
- ...se_RegisterEndPointsInput(input, context),
251
- [_A]: _RIWLB,
252
- [_V]: _,
253
- });
254
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
255
- };
256
- export const se_RemoveTagsCommand = async (input, context) => {
257
- const headers = SHARED_HEADERS;
258
- let body;
259
- body = buildFormUrlencodedString({
260
- ...se_RemoveTagsInput(input, context),
261
- [_A]: _RT,
262
- [_V]: _,
263
- });
264
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
- };
266
- export const se_SetLoadBalancerListenerSSLCertificateCommand = async (input, context) => {
267
- const headers = SHARED_HEADERS;
268
- let body;
269
- body = buildFormUrlencodedString({
270
- ...se_SetLoadBalancerListenerSSLCertificateInput(input, context),
271
- [_A]: _SLBLSSLC,
272
- [_V]: _,
273
- });
274
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
- };
276
- export const se_SetLoadBalancerPoliciesForBackendServerCommand = async (input, context) => {
277
- const headers = SHARED_HEADERS;
278
- let body;
279
- body = buildFormUrlencodedString({
280
- ...se_SetLoadBalancerPoliciesForBackendServerInput(input, context),
281
- [_A]: _SLBPFBS,
282
- [_V]: _,
283
- });
284
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
285
- };
286
- export const se_SetLoadBalancerPoliciesOfListenerCommand = async (input, context) => {
287
- const headers = SHARED_HEADERS;
288
- let body;
289
- body = buildFormUrlencodedString({
290
- ...se_SetLoadBalancerPoliciesOfListenerInput(input, context),
291
- [_A]: _SLBPOL,
292
- [_V]: _,
293
- });
294
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
- };
296
- export const de_AddTagsCommand = async (output, context) => {
297
- if (output.statusCode >= 300) {
298
- return de_CommandError(output, context);
299
- }
300
- const data = await parseBody(output.body, context);
301
- let contents = {};
302
- contents = de_AddTagsOutput(data.AddTagsResult, context);
303
- const response = {
304
- $metadata: deserializeMetadata(output),
305
- ...contents,
306
- };
307
- return response;
308
- };
309
- export const de_ApplySecurityGroupsToLoadBalancerCommand = async (output, context) => {
310
- if (output.statusCode >= 300) {
311
- return de_CommandError(output, context);
312
- }
313
- const data = await parseBody(output.body, context);
314
- let contents = {};
315
- contents = de_ApplySecurityGroupsToLoadBalancerOutput(data.ApplySecurityGroupsToLoadBalancerResult, context);
316
- const response = {
317
- $metadata: deserializeMetadata(output),
318
- ...contents,
319
- };
320
- return response;
321
- };
322
- export const de_AttachLoadBalancerToSubnetsCommand = async (output, context) => {
323
- if (output.statusCode >= 300) {
324
- return de_CommandError(output, context);
325
- }
326
- const data = await parseBody(output.body, context);
327
- let contents = {};
328
- contents = de_AttachLoadBalancerToSubnetsOutput(data.AttachLoadBalancerToSubnetsResult, context);
329
- const response = {
330
- $metadata: deserializeMetadata(output),
331
- ...contents,
332
- };
333
- return response;
334
- };
335
- export const de_ConfigureHealthCheckCommand = async (output, context) => {
336
- if (output.statusCode >= 300) {
337
- return de_CommandError(output, context);
338
- }
339
- const data = await parseBody(output.body, context);
340
- let contents = {};
341
- contents = de_ConfigureHealthCheckOutput(data.ConfigureHealthCheckResult, context);
342
- const response = {
343
- $metadata: deserializeMetadata(output),
344
- ...contents,
345
- };
346
- return response;
347
- };
348
- export const de_CreateAppCookieStickinessPolicyCommand = async (output, context) => {
349
- if (output.statusCode >= 300) {
350
- return de_CommandError(output, context);
351
- }
352
- const data = await parseBody(output.body, context);
353
- let contents = {};
354
- contents = de_CreateAppCookieStickinessPolicyOutput(data.CreateAppCookieStickinessPolicyResult, context);
355
- const response = {
356
- $metadata: deserializeMetadata(output),
357
- ...contents,
358
- };
359
- return response;
360
- };
361
- export const de_CreateLBCookieStickinessPolicyCommand = async (output, context) => {
362
- if (output.statusCode >= 300) {
363
- return de_CommandError(output, context);
364
- }
365
- const data = await parseBody(output.body, context);
366
- let contents = {};
367
- contents = de_CreateLBCookieStickinessPolicyOutput(data.CreateLBCookieStickinessPolicyResult, context);
368
- const response = {
369
- $metadata: deserializeMetadata(output),
370
- ...contents,
371
- };
372
- return response;
373
- };
374
- export const de_CreateLoadBalancerCommand = async (output, context) => {
375
- if (output.statusCode >= 300) {
376
- return de_CommandError(output, context);
377
- }
378
- const data = await parseBody(output.body, context);
379
- let contents = {};
380
- contents = de_CreateAccessPointOutput(data.CreateLoadBalancerResult, context);
381
- const response = {
382
- $metadata: deserializeMetadata(output),
383
- ...contents,
384
- };
385
- return response;
386
- };
387
- export const de_CreateLoadBalancerListenersCommand = async (output, context) => {
388
- if (output.statusCode >= 300) {
389
- return de_CommandError(output, context);
390
- }
391
- const data = await parseBody(output.body, context);
392
- let contents = {};
393
- contents = de_CreateLoadBalancerListenerOutput(data.CreateLoadBalancerListenersResult, context);
394
- const response = {
395
- $metadata: deserializeMetadata(output),
396
- ...contents,
397
- };
398
- return response;
399
- };
400
- export const de_CreateLoadBalancerPolicyCommand = async (output, context) => {
401
- if (output.statusCode >= 300) {
402
- return de_CommandError(output, context);
403
- }
404
- const data = await parseBody(output.body, context);
405
- let contents = {};
406
- contents = de_CreateLoadBalancerPolicyOutput(data.CreateLoadBalancerPolicyResult, context);
407
- const response = {
408
- $metadata: deserializeMetadata(output),
409
- ...contents,
410
- };
411
- return response;
412
- };
413
- export const de_DeleteLoadBalancerCommand = async (output, context) => {
414
- if (output.statusCode >= 300) {
415
- return de_CommandError(output, context);
416
- }
417
- const data = await parseBody(output.body, context);
418
- let contents = {};
419
- contents = de_DeleteAccessPointOutput(data.DeleteLoadBalancerResult, context);
420
- const response = {
421
- $metadata: deserializeMetadata(output),
422
- ...contents,
423
- };
424
- return response;
425
- };
426
- export const de_DeleteLoadBalancerListenersCommand = async (output, context) => {
427
- if (output.statusCode >= 300) {
428
- return de_CommandError(output, context);
429
- }
430
- const data = await parseBody(output.body, context);
431
- let contents = {};
432
- contents = de_DeleteLoadBalancerListenerOutput(data.DeleteLoadBalancerListenersResult, context);
433
- const response = {
434
- $metadata: deserializeMetadata(output),
435
- ...contents,
436
- };
437
- return response;
438
- };
439
- export const de_DeleteLoadBalancerPolicyCommand = async (output, context) => {
440
- if (output.statusCode >= 300) {
441
- return de_CommandError(output, context);
442
- }
443
- const data = await parseBody(output.body, context);
444
- let contents = {};
445
- contents = de_DeleteLoadBalancerPolicyOutput(data.DeleteLoadBalancerPolicyResult, context);
446
- const response = {
447
- $metadata: deserializeMetadata(output),
448
- ...contents,
449
- };
450
- return response;
451
- };
452
- export const de_DeregisterInstancesFromLoadBalancerCommand = async (output, context) => {
453
- if (output.statusCode >= 300) {
454
- return de_CommandError(output, context);
455
- }
456
- const data = await parseBody(output.body, context);
457
- let contents = {};
458
- contents = de_DeregisterEndPointsOutput(data.DeregisterInstancesFromLoadBalancerResult, context);
459
- const response = {
460
- $metadata: deserializeMetadata(output),
461
- ...contents,
462
- };
463
- return response;
464
- };
465
- export const de_DescribeAccountLimitsCommand = async (output, context) => {
466
- if (output.statusCode >= 300) {
467
- return de_CommandError(output, context);
468
- }
469
- const data = await parseBody(output.body, context);
470
- let contents = {};
471
- contents = de_DescribeAccountLimitsOutput(data.DescribeAccountLimitsResult, context);
472
- const response = {
473
- $metadata: deserializeMetadata(output),
474
- ...contents,
475
- };
476
- return response;
477
- };
478
- export const de_DescribeInstanceHealthCommand = async (output, context) => {
479
- if (output.statusCode >= 300) {
480
- return de_CommandError(output, context);
481
- }
482
- const data = await parseBody(output.body, context);
483
- let contents = {};
484
- contents = de_DescribeEndPointStateOutput(data.DescribeInstanceHealthResult, context);
485
- const response = {
486
- $metadata: deserializeMetadata(output),
487
- ...contents,
488
- };
489
- return response;
490
- };
491
- export const de_DescribeLoadBalancerAttributesCommand = async (output, context) => {
492
- if (output.statusCode >= 300) {
493
- return de_CommandError(output, context);
494
- }
495
- const data = await parseBody(output.body, context);
496
- let contents = {};
497
- contents = de_DescribeLoadBalancerAttributesOutput(data.DescribeLoadBalancerAttributesResult, context);
498
- const response = {
499
- $metadata: deserializeMetadata(output),
500
- ...contents,
501
- };
502
- return response;
503
- };
504
- export const de_DescribeLoadBalancerPoliciesCommand = async (output, context) => {
505
- if (output.statusCode >= 300) {
506
- return de_CommandError(output, context);
507
- }
508
- const data = await parseBody(output.body, context);
509
- let contents = {};
510
- contents = de_DescribeLoadBalancerPoliciesOutput(data.DescribeLoadBalancerPoliciesResult, context);
511
- const response = {
512
- $metadata: deserializeMetadata(output),
513
- ...contents,
514
- };
515
- return response;
516
- };
517
- export const de_DescribeLoadBalancerPolicyTypesCommand = async (output, context) => {
518
- if (output.statusCode >= 300) {
519
- return de_CommandError(output, context);
520
- }
521
- const data = await parseBody(output.body, context);
522
- let contents = {};
523
- contents = de_DescribeLoadBalancerPolicyTypesOutput(data.DescribeLoadBalancerPolicyTypesResult, context);
524
- const response = {
525
- $metadata: deserializeMetadata(output),
526
- ...contents,
527
- };
528
- return response;
529
- };
530
- export const de_DescribeLoadBalancersCommand = async (output, context) => {
531
- if (output.statusCode >= 300) {
532
- return de_CommandError(output, context);
533
- }
534
- const data = await parseBody(output.body, context);
535
- let contents = {};
536
- contents = de_DescribeAccessPointsOutput(data.DescribeLoadBalancersResult, context);
537
- const response = {
538
- $metadata: deserializeMetadata(output),
539
- ...contents,
540
- };
541
- return response;
542
- };
543
- export const de_DescribeTagsCommand = async (output, context) => {
544
- if (output.statusCode >= 300) {
545
- return de_CommandError(output, context);
546
- }
547
- const data = await parseBody(output.body, context);
548
- let contents = {};
549
- contents = de_DescribeTagsOutput(data.DescribeTagsResult, context);
550
- const response = {
551
- $metadata: deserializeMetadata(output),
552
- ...contents,
553
- };
554
- return response;
555
- };
556
- export const de_DetachLoadBalancerFromSubnetsCommand = async (output, context) => {
557
- if (output.statusCode >= 300) {
558
- return de_CommandError(output, context);
559
- }
560
- const data = await parseBody(output.body, context);
561
- let contents = {};
562
- contents = de_DetachLoadBalancerFromSubnetsOutput(data.DetachLoadBalancerFromSubnetsResult, context);
563
- const response = {
564
- $metadata: deserializeMetadata(output),
565
- ...contents,
566
- };
567
- return response;
568
- };
569
- export const de_DisableAvailabilityZonesForLoadBalancerCommand = async (output, context) => {
570
- if (output.statusCode >= 300) {
571
- return de_CommandError(output, context);
572
- }
573
- const data = await parseBody(output.body, context);
574
- let contents = {};
575
- contents = de_RemoveAvailabilityZonesOutput(data.DisableAvailabilityZonesForLoadBalancerResult, context);
576
- const response = {
577
- $metadata: deserializeMetadata(output),
578
- ...contents,
579
- };
580
- return response;
581
- };
582
- export const de_EnableAvailabilityZonesForLoadBalancerCommand = async (output, context) => {
583
- if (output.statusCode >= 300) {
584
- return de_CommandError(output, context);
585
- }
586
- const data = await parseBody(output.body, context);
587
- let contents = {};
588
- contents = de_AddAvailabilityZonesOutput(data.EnableAvailabilityZonesForLoadBalancerResult, context);
589
- const response = {
590
- $metadata: deserializeMetadata(output),
591
- ...contents,
592
- };
593
- return response;
594
- };
595
- export const de_ModifyLoadBalancerAttributesCommand = async (output, context) => {
596
- if (output.statusCode >= 300) {
597
- return de_CommandError(output, context);
598
- }
599
- const data = await parseBody(output.body, context);
600
- let contents = {};
601
- contents = de_ModifyLoadBalancerAttributesOutput(data.ModifyLoadBalancerAttributesResult, context);
602
- const response = {
603
- $metadata: deserializeMetadata(output),
604
- ...contents,
605
- };
606
- return response;
607
- };
608
- export const de_RegisterInstancesWithLoadBalancerCommand = async (output, context) => {
609
- if (output.statusCode >= 300) {
610
- return de_CommandError(output, context);
611
- }
612
- const data = await parseBody(output.body, context);
613
- let contents = {};
614
- contents = de_RegisterEndPointsOutput(data.RegisterInstancesWithLoadBalancerResult, context);
615
- const response = {
616
- $metadata: deserializeMetadata(output),
617
- ...contents,
618
- };
619
- return response;
620
- };
621
- export const de_RemoveTagsCommand = async (output, context) => {
622
- if (output.statusCode >= 300) {
623
- return de_CommandError(output, context);
624
- }
625
- const data = await parseBody(output.body, context);
626
- let contents = {};
627
- contents = de_RemoveTagsOutput(data.RemoveTagsResult, context);
628
- const response = {
629
- $metadata: deserializeMetadata(output),
630
- ...contents,
631
- };
632
- return response;
633
- };
634
- export const de_SetLoadBalancerListenerSSLCertificateCommand = async (output, context) => {
635
- if (output.statusCode >= 300) {
636
- return de_CommandError(output, context);
637
- }
638
- const data = await parseBody(output.body, context);
639
- let contents = {};
640
- contents = de_SetLoadBalancerListenerSSLCertificateOutput(data.SetLoadBalancerListenerSSLCertificateResult, context);
641
- const response = {
642
- $metadata: deserializeMetadata(output),
643
- ...contents,
644
- };
645
- return response;
646
- };
647
- export const de_SetLoadBalancerPoliciesForBackendServerCommand = async (output, context) => {
648
- if (output.statusCode >= 300) {
649
- return de_CommandError(output, context);
650
- }
651
- const data = await parseBody(output.body, context);
652
- let contents = {};
653
- contents = de_SetLoadBalancerPoliciesForBackendServerOutput(data.SetLoadBalancerPoliciesForBackendServerResult, context);
654
- const response = {
655
- $metadata: deserializeMetadata(output),
656
- ...contents,
657
- };
658
- return response;
659
- };
660
- export const de_SetLoadBalancerPoliciesOfListenerCommand = async (output, context) => {
661
- if (output.statusCode >= 300) {
662
- return de_CommandError(output, context);
663
- }
664
- const data = await parseBody(output.body, context);
665
- let contents = {};
666
- contents = de_SetLoadBalancerPoliciesOfListenerOutput(data.SetLoadBalancerPoliciesOfListenerResult, context);
667
- const response = {
668
- $metadata: deserializeMetadata(output),
669
- ...contents,
670
- };
671
- return response;
672
- };
673
- const de_CommandError = async (output, context) => {
674
- const parsedOutput = {
675
- ...output,
676
- body: await parseErrorBody(output.body, context),
677
- };
678
- const errorCode = loadQueryErrorCode(output, parsedOutput.body);
679
- switch (errorCode) {
680
- case "DuplicateTagKeys":
681
- case "com.amazonaws.elasticloadbalancing#DuplicateTagKeysException":
682
- throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
683
- case "LoadBalancerNotFound":
684
- case "com.amazonaws.elasticloadbalancing#AccessPointNotFoundException":
685
- throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
686
- case "TooManyTags":
687
- case "com.amazonaws.elasticloadbalancing#TooManyTagsException":
688
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
689
- case "InvalidConfigurationRequest":
690
- case "com.amazonaws.elasticloadbalancing#InvalidConfigurationRequestException":
691
- throw await de_InvalidConfigurationRequestExceptionRes(parsedOutput, context);
692
- case "InvalidSecurityGroup":
693
- case "com.amazonaws.elasticloadbalancing#InvalidSecurityGroupException":
694
- throw await de_InvalidSecurityGroupExceptionRes(parsedOutput, context);
695
- case "InvalidSubnet":
696
- case "com.amazonaws.elasticloadbalancing#InvalidSubnetException":
697
- throw await de_InvalidSubnetExceptionRes(parsedOutput, context);
698
- case "SubnetNotFound":
699
- case "com.amazonaws.elasticloadbalancing#SubnetNotFoundException":
700
- throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
701
- case "DuplicatePolicyName":
702
- case "com.amazonaws.elasticloadbalancing#DuplicatePolicyNameException":
703
- throw await de_DuplicatePolicyNameExceptionRes(parsedOutput, context);
704
- case "TooManyPolicies":
705
- case "com.amazonaws.elasticloadbalancing#TooManyPoliciesException":
706
- throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
707
- case "CertificateNotFound":
708
- case "com.amazonaws.elasticloadbalancing#CertificateNotFoundException":
709
- throw await de_CertificateNotFoundExceptionRes(parsedOutput, context);
710
- case "DuplicateLoadBalancerName":
711
- case "com.amazonaws.elasticloadbalancing#DuplicateAccessPointNameException":
712
- throw await de_DuplicateAccessPointNameExceptionRes(parsedOutput, context);
713
- case "InvalidScheme":
714
- case "com.amazonaws.elasticloadbalancing#InvalidSchemeException":
715
- throw await de_InvalidSchemeExceptionRes(parsedOutput, context);
716
- case "OperationNotPermitted":
717
- case "com.amazonaws.elasticloadbalancing#OperationNotPermittedException":
718
- throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
719
- case "TooManyLoadBalancers":
720
- case "com.amazonaws.elasticloadbalancing#TooManyAccessPointsException":
721
- throw await de_TooManyAccessPointsExceptionRes(parsedOutput, context);
722
- case "UnsupportedProtocol":
723
- case "com.amazonaws.elasticloadbalancing#UnsupportedProtocolException":
724
- throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
725
- case "DuplicateListener":
726
- case "com.amazonaws.elasticloadbalancing#DuplicateListenerException":
727
- throw await de_DuplicateListenerExceptionRes(parsedOutput, context);
728
- case "PolicyTypeNotFound":
729
- case "com.amazonaws.elasticloadbalancing#PolicyTypeNotFoundException":
730
- throw await de_PolicyTypeNotFoundExceptionRes(parsedOutput, context);
731
- case "InvalidInstance":
732
- case "com.amazonaws.elasticloadbalancing#InvalidEndPointException":
733
- throw await de_InvalidEndPointExceptionRes(parsedOutput, context);
734
- case "LoadBalancerAttributeNotFound":
735
- case "com.amazonaws.elasticloadbalancing#LoadBalancerAttributeNotFoundException":
736
- throw await de_LoadBalancerAttributeNotFoundExceptionRes(parsedOutput, context);
737
- case "PolicyNotFound":
738
- case "com.amazonaws.elasticloadbalancing#PolicyNotFoundException":
739
- throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
740
- case "DependencyThrottle":
741
- case "com.amazonaws.elasticloadbalancing#DependencyThrottleException":
742
- throw await de_DependencyThrottleExceptionRes(parsedOutput, context);
743
- case "ListenerNotFound":
744
- case "com.amazonaws.elasticloadbalancing#ListenerNotFoundException":
745
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
746
- default:
747
- const parsedBody = parsedOutput.body;
748
- return throwDefaultError({
749
- output,
750
- parsedBody: parsedBody.Error,
751
- errorCode,
752
- });
753
- }
754
- };
755
- const de_AccessPointNotFoundExceptionRes = async (parsedOutput, context) => {
756
- const body = parsedOutput.body;
757
- const deserialized = de_AccessPointNotFoundException(body.Error, context);
758
- const exception = new AccessPointNotFoundException({
759
- $metadata: deserializeMetadata(parsedOutput),
760
- ...deserialized,
761
- });
762
- return __decorateServiceException(exception, body);
763
- };
764
- const de_CertificateNotFoundExceptionRes = async (parsedOutput, context) => {
765
- const body = parsedOutput.body;
766
- const deserialized = de_CertificateNotFoundException(body.Error, context);
767
- const exception = new CertificateNotFoundException({
768
- $metadata: deserializeMetadata(parsedOutput),
769
- ...deserialized,
770
- });
771
- return __decorateServiceException(exception, body);
772
- };
773
- const de_DependencyThrottleExceptionRes = async (parsedOutput, context) => {
774
- const body = parsedOutput.body;
775
- const deserialized = de_DependencyThrottleException(body.Error, context);
776
- const exception = new DependencyThrottleException({
777
- $metadata: deserializeMetadata(parsedOutput),
778
- ...deserialized,
779
- });
780
- return __decorateServiceException(exception, body);
781
- };
782
- const de_DuplicateAccessPointNameExceptionRes = async (parsedOutput, context) => {
783
- const body = parsedOutput.body;
784
- const deserialized = de_DuplicateAccessPointNameException(body.Error, context);
785
- const exception = new DuplicateAccessPointNameException({
786
- $metadata: deserializeMetadata(parsedOutput),
787
- ...deserialized,
788
- });
789
- return __decorateServiceException(exception, body);
790
- };
791
- const de_DuplicateListenerExceptionRes = async (parsedOutput, context) => {
792
- const body = parsedOutput.body;
793
- const deserialized = de_DuplicateListenerException(body.Error, context);
794
- const exception = new DuplicateListenerException({
795
- $metadata: deserializeMetadata(parsedOutput),
796
- ...deserialized,
797
- });
798
- return __decorateServiceException(exception, body);
799
- };
800
- const de_DuplicatePolicyNameExceptionRes = async (parsedOutput, context) => {
801
- const body = parsedOutput.body;
802
- const deserialized = de_DuplicatePolicyNameException(body.Error, context);
803
- const exception = new DuplicatePolicyNameException({
804
- $metadata: deserializeMetadata(parsedOutput),
805
- ...deserialized,
806
- });
807
- return __decorateServiceException(exception, body);
808
- };
809
- const de_DuplicateTagKeysExceptionRes = async (parsedOutput, context) => {
810
- const body = parsedOutput.body;
811
- const deserialized = de_DuplicateTagKeysException(body.Error, context);
812
- const exception = new DuplicateTagKeysException({
813
- $metadata: deserializeMetadata(parsedOutput),
814
- ...deserialized,
815
- });
816
- return __decorateServiceException(exception, body);
817
- };
818
- const de_InvalidConfigurationRequestExceptionRes = async (parsedOutput, context) => {
819
- const body = parsedOutput.body;
820
- const deserialized = de_InvalidConfigurationRequestException(body.Error, context);
821
- const exception = new InvalidConfigurationRequestException({
822
- $metadata: deserializeMetadata(parsedOutput),
823
- ...deserialized,
824
- });
825
- return __decorateServiceException(exception, body);
826
- };
827
- const de_InvalidEndPointExceptionRes = async (parsedOutput, context) => {
828
- const body = parsedOutput.body;
829
- const deserialized = de_InvalidEndPointException(body.Error, context);
830
- const exception = new InvalidEndPointException({
831
- $metadata: deserializeMetadata(parsedOutput),
832
- ...deserialized,
833
- });
834
- return __decorateServiceException(exception, body);
835
- };
836
- const de_InvalidSchemeExceptionRes = async (parsedOutput, context) => {
837
- const body = parsedOutput.body;
838
- const deserialized = de_InvalidSchemeException(body.Error, context);
839
- const exception = new InvalidSchemeException({
840
- $metadata: deserializeMetadata(parsedOutput),
841
- ...deserialized,
842
- });
843
- return __decorateServiceException(exception, body);
844
- };
845
- const de_InvalidSecurityGroupExceptionRes = async (parsedOutput, context) => {
846
- const body = parsedOutput.body;
847
- const deserialized = de_InvalidSecurityGroupException(body.Error, context);
848
- const exception = new InvalidSecurityGroupException({
849
- $metadata: deserializeMetadata(parsedOutput),
850
- ...deserialized,
851
- });
852
- return __decorateServiceException(exception, body);
853
- };
854
- const de_InvalidSubnetExceptionRes = async (parsedOutput, context) => {
855
- const body = parsedOutput.body;
856
- const deserialized = de_InvalidSubnetException(body.Error, context);
857
- const exception = new InvalidSubnetException({
858
- $metadata: deserializeMetadata(parsedOutput),
859
- ...deserialized,
860
- });
861
- return __decorateServiceException(exception, body);
862
- };
863
- const de_ListenerNotFoundExceptionRes = async (parsedOutput, context) => {
864
- const body = parsedOutput.body;
865
- const deserialized = de_ListenerNotFoundException(body.Error, context);
866
- const exception = new ListenerNotFoundException({
867
- $metadata: deserializeMetadata(parsedOutput),
868
- ...deserialized,
869
- });
870
- return __decorateServiceException(exception, body);
871
- };
872
- const de_LoadBalancerAttributeNotFoundExceptionRes = async (parsedOutput, context) => {
873
- const body = parsedOutput.body;
874
- const deserialized = de_LoadBalancerAttributeNotFoundException(body.Error, context);
875
- const exception = new LoadBalancerAttributeNotFoundException({
876
- $metadata: deserializeMetadata(parsedOutput),
877
- ...deserialized,
878
- });
879
- return __decorateServiceException(exception, body);
880
- };
881
- const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
882
- const body = parsedOutput.body;
883
- const deserialized = de_OperationNotPermittedException(body.Error, context);
884
- const exception = new OperationNotPermittedException({
885
- $metadata: deserializeMetadata(parsedOutput),
886
- ...deserialized,
887
- });
888
- return __decorateServiceException(exception, body);
889
- };
890
- const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
891
- const body = parsedOutput.body;
892
- const deserialized = de_PolicyNotFoundException(body.Error, context);
893
- const exception = new PolicyNotFoundException({
894
- $metadata: deserializeMetadata(parsedOutput),
895
- ...deserialized,
896
- });
897
- return __decorateServiceException(exception, body);
898
- };
899
- const de_PolicyTypeNotFoundExceptionRes = async (parsedOutput, context) => {
900
- const body = parsedOutput.body;
901
- const deserialized = de_PolicyTypeNotFoundException(body.Error, context);
902
- const exception = new PolicyTypeNotFoundException({
903
- $metadata: deserializeMetadata(parsedOutput),
904
- ...deserialized,
905
- });
906
- return __decorateServiceException(exception, body);
907
- };
908
- const de_SubnetNotFoundExceptionRes = async (parsedOutput, context) => {
909
- const body = parsedOutput.body;
910
- const deserialized = de_SubnetNotFoundException(body.Error, context);
911
- const exception = new SubnetNotFoundException({
912
- $metadata: deserializeMetadata(parsedOutput),
913
- ...deserialized,
914
- });
915
- return __decorateServiceException(exception, body);
916
- };
917
- const de_TooManyAccessPointsExceptionRes = async (parsedOutput, context) => {
918
- const body = parsedOutput.body;
919
- const deserialized = de_TooManyAccessPointsException(body.Error, context);
920
- const exception = new TooManyAccessPointsException({
921
- $metadata: deserializeMetadata(parsedOutput),
922
- ...deserialized,
923
- });
924
- return __decorateServiceException(exception, body);
925
- };
926
- const de_TooManyPoliciesExceptionRes = async (parsedOutput, context) => {
927
- const body = parsedOutput.body;
928
- const deserialized = de_TooManyPoliciesException(body.Error, context);
929
- const exception = new TooManyPoliciesException({
930
- $metadata: deserializeMetadata(parsedOutput),
931
- ...deserialized,
932
- });
933
- return __decorateServiceException(exception, body);
934
- };
935
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
936
- const body = parsedOutput.body;
937
- const deserialized = de_TooManyTagsException(body.Error, context);
938
- const exception = new TooManyTagsException({
939
- $metadata: deserializeMetadata(parsedOutput),
940
- ...deserialized,
941
- });
942
- return __decorateServiceException(exception, body);
943
- };
944
- const de_UnsupportedProtocolExceptionRes = async (parsedOutput, context) => {
945
- const body = parsedOutput.body;
946
- const deserialized = de_UnsupportedProtocolException(body.Error, context);
947
- const exception = new UnsupportedProtocolException({
948
- $metadata: deserializeMetadata(parsedOutput),
949
- ...deserialized,
950
- });
951
- return __decorateServiceException(exception, body);
952
- };
953
- const se_AccessLog = (input, context) => {
954
- const entries = {};
955
- if (input[_E] != null) {
956
- entries[_E] = input[_E];
957
- }
958
- if (input[_SBN] != null) {
959
- entries[_SBN] = input[_SBN];
960
- }
961
- if (input[_EI] != null) {
962
- entries[_EI] = input[_EI];
963
- }
964
- if (input[_SBP] != null) {
965
- entries[_SBP] = input[_SBP];
966
- }
967
- return entries;
968
- };
969
- const se_AddAvailabilityZonesInput = (input, context) => {
970
- const entries = {};
971
- if (input[_LBN] != null) {
972
- entries[_LBN] = input[_LBN];
973
- }
974
- if (input[_AZ] != null) {
975
- const memberEntries = se_AvailabilityZones(input[_AZ], context);
976
- if (input[_AZ]?.length === 0) {
977
- entries.AvailabilityZones = [];
978
- }
979
- Object.entries(memberEntries).forEach(([key, value]) => {
980
- const loc = `AvailabilityZones.${key}`;
981
- entries[loc] = value;
982
- });
983
- }
984
- return entries;
985
- };
986
- const se_AdditionalAttribute = (input, context) => {
987
- const entries = {};
988
- if (input[_K] != null) {
989
- entries[_K] = input[_K];
990
- }
991
- if (input[_Va] != null) {
992
- entries[_Va] = input[_Va];
993
- }
994
- return entries;
995
- };
996
- const se_AdditionalAttributes = (input, context) => {
997
- const entries = {};
998
- let counter = 1;
999
- for (const entry of input) {
1000
- if (entry === null) {
1001
- continue;
1002
- }
1003
- const memberEntries = se_AdditionalAttribute(entry, context);
1004
- Object.entries(memberEntries).forEach(([key, value]) => {
1005
- entries[`member.${counter}.${key}`] = value;
1006
- });
1007
- counter++;
1008
- }
1009
- return entries;
1010
- };
1011
- const se_AddTagsInput = (input, context) => {
1012
- const entries = {};
1013
- if (input[_LBNo] != null) {
1014
- const memberEntries = se_LoadBalancerNames(input[_LBNo], context);
1015
- if (input[_LBNo]?.length === 0) {
1016
- entries.LoadBalancerNames = [];
1017
- }
1018
- Object.entries(memberEntries).forEach(([key, value]) => {
1019
- const loc = `LoadBalancerNames.${key}`;
1020
- entries[loc] = value;
1021
- });
1022
- }
1023
- if (input[_T] != null) {
1024
- const memberEntries = se_TagList(input[_T], context);
1025
- if (input[_T]?.length === 0) {
1026
- entries.Tags = [];
1027
- }
1028
- Object.entries(memberEntries).forEach(([key, value]) => {
1029
- const loc = `Tags.${key}`;
1030
- entries[loc] = value;
1031
- });
1032
- }
1033
- return entries;
1034
- };
1035
- const se_ApplySecurityGroupsToLoadBalancerInput = (input, context) => {
1036
- const entries = {};
1037
- if (input[_LBN] != null) {
1038
- entries[_LBN] = input[_LBN];
1039
- }
1040
- if (input[_SG] != null) {
1041
- const memberEntries = se_SecurityGroups(input[_SG], context);
1042
- if (input[_SG]?.length === 0) {
1043
- entries.SecurityGroups = [];
1044
- }
1045
- Object.entries(memberEntries).forEach(([key, value]) => {
1046
- const loc = `SecurityGroups.${key}`;
1047
- entries[loc] = value;
1048
- });
1049
- }
1050
- return entries;
1051
- };
1052
- const se_AttachLoadBalancerToSubnetsInput = (input, context) => {
1053
- const entries = {};
1054
- if (input[_LBN] != null) {
1055
- entries[_LBN] = input[_LBN];
1056
- }
1057
- if (input[_S] != null) {
1058
- const memberEntries = se_Subnets(input[_S], context);
1059
- if (input[_S]?.length === 0) {
1060
- entries.Subnets = [];
1061
- }
1062
- Object.entries(memberEntries).forEach(([key, value]) => {
1063
- const loc = `Subnets.${key}`;
1064
- entries[loc] = value;
1065
- });
1066
- }
1067
- return entries;
1068
- };
1069
- const se_AvailabilityZones = (input, context) => {
1070
- const entries = {};
1071
- let counter = 1;
1072
- for (const entry of input) {
1073
- if (entry === null) {
1074
- continue;
1075
- }
1076
- entries[`member.${counter}`] = entry;
1077
- counter++;
1078
- }
1079
- return entries;
1080
- };
1081
- const se_ConfigureHealthCheckInput = (input, context) => {
1082
- const entries = {};
1083
- if (input[_LBN] != null) {
1084
- entries[_LBN] = input[_LBN];
1085
- }
1086
- if (input[_HC] != null) {
1087
- const memberEntries = se_HealthCheck(input[_HC], context);
1088
- Object.entries(memberEntries).forEach(([key, value]) => {
1089
- const loc = `HealthCheck.${key}`;
1090
- entries[loc] = value;
1091
- });
1092
- }
1093
- return entries;
1094
- };
1095
- const se_ConnectionDraining = (input, context) => {
1096
- const entries = {};
1097
- if (input[_E] != null) {
1098
- entries[_E] = input[_E];
1099
- }
1100
- if (input[_Ti] != null) {
1101
- entries[_Ti] = input[_Ti];
1102
- }
1103
- return entries;
1104
- };
1105
- const se_ConnectionSettings = (input, context) => {
1106
- const entries = {};
1107
- if (input[_IT] != null) {
1108
- entries[_IT] = input[_IT];
1109
- }
1110
- return entries;
1111
- };
1112
- const se_CreateAccessPointInput = (input, context) => {
1113
- const entries = {};
1114
- if (input[_LBN] != null) {
1115
- entries[_LBN] = input[_LBN];
1116
- }
1117
- if (input[_L] != null) {
1118
- const memberEntries = se_Listeners(input[_L], context);
1119
- if (input[_L]?.length === 0) {
1120
- entries.Listeners = [];
1121
- }
1122
- Object.entries(memberEntries).forEach(([key, value]) => {
1123
- const loc = `Listeners.${key}`;
1124
- entries[loc] = value;
1125
- });
1126
- }
1127
- if (input[_AZ] != null) {
1128
- const memberEntries = se_AvailabilityZones(input[_AZ], context);
1129
- if (input[_AZ]?.length === 0) {
1130
- entries.AvailabilityZones = [];
1131
- }
1132
- Object.entries(memberEntries).forEach(([key, value]) => {
1133
- const loc = `AvailabilityZones.${key}`;
1134
- entries[loc] = value;
1135
- });
1136
- }
1137
- if (input[_S] != null) {
1138
- const memberEntries = se_Subnets(input[_S], context);
1139
- if (input[_S]?.length === 0) {
1140
- entries.Subnets = [];
1141
- }
1142
- Object.entries(memberEntries).forEach(([key, value]) => {
1143
- const loc = `Subnets.${key}`;
1144
- entries[loc] = value;
1145
- });
1146
- }
1147
- if (input[_SG] != null) {
1148
- const memberEntries = se_SecurityGroups(input[_SG], context);
1149
- if (input[_SG]?.length === 0) {
1150
- entries.SecurityGroups = [];
1151
- }
1152
- Object.entries(memberEntries).forEach(([key, value]) => {
1153
- const loc = `SecurityGroups.${key}`;
1154
- entries[loc] = value;
1155
- });
1156
- }
1157
- if (input[_Sc] != null) {
1158
- entries[_Sc] = input[_Sc];
1159
- }
1160
- if (input[_T] != null) {
1161
- const memberEntries = se_TagList(input[_T], context);
1162
- if (input[_T]?.length === 0) {
1163
- entries.Tags = [];
1164
- }
1165
- Object.entries(memberEntries).forEach(([key, value]) => {
1166
- const loc = `Tags.${key}`;
1167
- entries[loc] = value;
1168
- });
1169
- }
1170
- return entries;
1171
- };
1172
- const se_CreateAppCookieStickinessPolicyInput = (input, context) => {
1173
- const entries = {};
1174
- if (input[_LBN] != null) {
1175
- entries[_LBN] = input[_LBN];
1176
- }
1177
- if (input[_PN] != null) {
1178
- entries[_PN] = input[_PN];
1179
- }
1180
- if (input[_CN] != null) {
1181
- entries[_CN] = input[_CN];
1182
- }
1183
- return entries;
1184
- };
1185
- const se_CreateLBCookieStickinessPolicyInput = (input, context) => {
1186
- const entries = {};
1187
- if (input[_LBN] != null) {
1188
- entries[_LBN] = input[_LBN];
1189
- }
1190
- if (input[_PN] != null) {
1191
- entries[_PN] = input[_PN];
1192
- }
1193
- if (input[_CEP] != null) {
1194
- entries[_CEP] = input[_CEP];
1195
- }
1196
- return entries;
1197
- };
1198
- const se_CreateLoadBalancerListenerInput = (input, context) => {
1199
- const entries = {};
1200
- if (input[_LBN] != null) {
1201
- entries[_LBN] = input[_LBN];
1202
- }
1203
- if (input[_L] != null) {
1204
- const memberEntries = se_Listeners(input[_L], context);
1205
- if (input[_L]?.length === 0) {
1206
- entries.Listeners = [];
1207
- }
1208
- Object.entries(memberEntries).forEach(([key, value]) => {
1209
- const loc = `Listeners.${key}`;
1210
- entries[loc] = value;
1211
- });
1212
- }
1213
- return entries;
1214
- };
1215
- const se_CreateLoadBalancerPolicyInput = (input, context) => {
1216
- const entries = {};
1217
- if (input[_LBN] != null) {
1218
- entries[_LBN] = input[_LBN];
1219
- }
1220
- if (input[_PN] != null) {
1221
- entries[_PN] = input[_PN];
1222
- }
1223
- if (input[_PTN] != null) {
1224
- entries[_PTN] = input[_PTN];
1225
- }
1226
- if (input[_PA] != null) {
1227
- const memberEntries = se_PolicyAttributes(input[_PA], context);
1228
- if (input[_PA]?.length === 0) {
1229
- entries.PolicyAttributes = [];
1230
- }
1231
- Object.entries(memberEntries).forEach(([key, value]) => {
1232
- const loc = `PolicyAttributes.${key}`;
1233
- entries[loc] = value;
1234
- });
1235
- }
1236
- return entries;
1237
- };
1238
- const se_CrossZoneLoadBalancing = (input, context) => {
1239
- const entries = {};
1240
- if (input[_E] != null) {
1241
- entries[_E] = input[_E];
1242
- }
1243
- return entries;
1244
- };
1245
- const se_DeleteAccessPointInput = (input, context) => {
1246
- const entries = {};
1247
- if (input[_LBN] != null) {
1248
- entries[_LBN] = input[_LBN];
1249
- }
1250
- return entries;
1251
- };
1252
- const se_DeleteLoadBalancerListenerInput = (input, context) => {
1253
- const entries = {};
1254
- if (input[_LBN] != null) {
1255
- entries[_LBN] = input[_LBN];
1256
- }
1257
- if (input[_LBP] != null) {
1258
- const memberEntries = se_Ports(input[_LBP], context);
1259
- if (input[_LBP]?.length === 0) {
1260
- entries.LoadBalancerPorts = [];
1261
- }
1262
- Object.entries(memberEntries).forEach(([key, value]) => {
1263
- const loc = `LoadBalancerPorts.${key}`;
1264
- entries[loc] = value;
1265
- });
1266
- }
1267
- return entries;
1268
- };
1269
- const se_DeleteLoadBalancerPolicyInput = (input, context) => {
1270
- const entries = {};
1271
- if (input[_LBN] != null) {
1272
- entries[_LBN] = input[_LBN];
1273
- }
1274
- if (input[_PN] != null) {
1275
- entries[_PN] = input[_PN];
1276
- }
1277
- return entries;
1278
- };
1279
- const se_DeregisterEndPointsInput = (input, context) => {
1280
- const entries = {};
1281
- if (input[_LBN] != null) {
1282
- entries[_LBN] = input[_LBN];
1283
- }
1284
- if (input[_I] != null) {
1285
- const memberEntries = se_Instances(input[_I], context);
1286
- if (input[_I]?.length === 0) {
1287
- entries.Instances = [];
1288
- }
1289
- Object.entries(memberEntries).forEach(([key, value]) => {
1290
- const loc = `Instances.${key}`;
1291
- entries[loc] = value;
1292
- });
1293
- }
1294
- return entries;
1295
- };
1296
- const se_DescribeAccessPointsInput = (input, context) => {
1297
- const entries = {};
1298
- if (input[_LBNo] != null) {
1299
- const memberEntries = se_LoadBalancerNames(input[_LBNo], context);
1300
- if (input[_LBNo]?.length === 0) {
1301
- entries.LoadBalancerNames = [];
1302
- }
1303
- Object.entries(memberEntries).forEach(([key, value]) => {
1304
- const loc = `LoadBalancerNames.${key}`;
1305
- entries[loc] = value;
1306
- });
1307
- }
1308
- if (input[_M] != null) {
1309
- entries[_M] = input[_M];
1310
- }
1311
- if (input[_PS] != null) {
1312
- entries[_PS] = input[_PS];
1313
- }
1314
- return entries;
1315
- };
1316
- const se_DescribeAccountLimitsInput = (input, context) => {
1317
- const entries = {};
1318
- if (input[_M] != null) {
1319
- entries[_M] = input[_M];
1320
- }
1321
- if (input[_PS] != null) {
1322
- entries[_PS] = input[_PS];
1323
- }
1324
- return entries;
1325
- };
1326
- const se_DescribeEndPointStateInput = (input, context) => {
1327
- const entries = {};
1328
- if (input[_LBN] != null) {
1329
- entries[_LBN] = input[_LBN];
1330
- }
1331
- if (input[_I] != null) {
1332
- const memberEntries = se_Instances(input[_I], context);
1333
- if (input[_I]?.length === 0) {
1334
- entries.Instances = [];
1335
- }
1336
- Object.entries(memberEntries).forEach(([key, value]) => {
1337
- const loc = `Instances.${key}`;
1338
- entries[loc] = value;
1339
- });
1340
- }
1341
- return entries;
1342
- };
1343
- const se_DescribeLoadBalancerAttributesInput = (input, context) => {
1344
- const entries = {};
1345
- if (input[_LBN] != null) {
1346
- entries[_LBN] = input[_LBN];
1347
- }
1348
- return entries;
1349
- };
1350
- const se_DescribeLoadBalancerPoliciesInput = (input, context) => {
1351
- const entries = {};
1352
- if (input[_LBN] != null) {
1353
- entries[_LBN] = input[_LBN];
1354
- }
1355
- if (input[_PNo] != null) {
1356
- const memberEntries = se_PolicyNames(input[_PNo], context);
1357
- if (input[_PNo]?.length === 0) {
1358
- entries.PolicyNames = [];
1359
- }
1360
- Object.entries(memberEntries).forEach(([key, value]) => {
1361
- const loc = `PolicyNames.${key}`;
1362
- entries[loc] = value;
1363
- });
1364
- }
1365
- return entries;
1366
- };
1367
- const se_DescribeLoadBalancerPolicyTypesInput = (input, context) => {
1368
- const entries = {};
1369
- if (input[_PTNo] != null) {
1370
- const memberEntries = se_PolicyTypeNames(input[_PTNo], context);
1371
- if (input[_PTNo]?.length === 0) {
1372
- entries.PolicyTypeNames = [];
1373
- }
1374
- Object.entries(memberEntries).forEach(([key, value]) => {
1375
- const loc = `PolicyTypeNames.${key}`;
1376
- entries[loc] = value;
1377
- });
1378
- }
1379
- return entries;
1380
- };
1381
- const se_DescribeTagsInput = (input, context) => {
1382
- const entries = {};
1383
- if (input[_LBNo] != null) {
1384
- const memberEntries = se_LoadBalancerNamesMax20(input[_LBNo], context);
1385
- if (input[_LBNo]?.length === 0) {
1386
- entries.LoadBalancerNames = [];
1387
- }
1388
- Object.entries(memberEntries).forEach(([key, value]) => {
1389
- const loc = `LoadBalancerNames.${key}`;
1390
- entries[loc] = value;
1391
- });
1392
- }
1393
- return entries;
1394
- };
1395
- const se_DetachLoadBalancerFromSubnetsInput = (input, context) => {
1396
- const entries = {};
1397
- if (input[_LBN] != null) {
1398
- entries[_LBN] = input[_LBN];
1399
- }
1400
- if (input[_S] != null) {
1401
- const memberEntries = se_Subnets(input[_S], context);
1402
- if (input[_S]?.length === 0) {
1403
- entries.Subnets = [];
1404
- }
1405
- Object.entries(memberEntries).forEach(([key, value]) => {
1406
- const loc = `Subnets.${key}`;
1407
- entries[loc] = value;
1408
- });
1409
- }
1410
- return entries;
1411
- };
1412
- const se_HealthCheck = (input, context) => {
1413
- const entries = {};
1414
- if (input[_Ta] != null) {
1415
- entries[_Ta] = input[_Ta];
1416
- }
1417
- if (input[_In] != null) {
1418
- entries[_In] = input[_In];
1419
- }
1420
- if (input[_Ti] != null) {
1421
- entries[_Ti] = input[_Ti];
1422
- }
1423
- if (input[_UT] != null) {
1424
- entries[_UT] = input[_UT];
1425
- }
1426
- if (input[_HT] != null) {
1427
- entries[_HT] = input[_HT];
1428
- }
1429
- return entries;
1430
- };
1431
- const se_Instance = (input, context) => {
1432
- const entries = {};
1433
- if (input[_II] != null) {
1434
- entries[_II] = input[_II];
1435
- }
1436
- return entries;
1437
- };
1438
- const se_Instances = (input, context) => {
1439
- const entries = {};
1440
- let counter = 1;
1441
- for (const entry of input) {
1442
- if (entry === null) {
1443
- continue;
1444
- }
1445
- const memberEntries = se_Instance(entry, context);
1446
- Object.entries(memberEntries).forEach(([key, value]) => {
1447
- entries[`member.${counter}.${key}`] = value;
1448
- });
1449
- counter++;
1450
- }
1451
- return entries;
1452
- };
1453
- const se_Listener = (input, context) => {
1454
- const entries = {};
1455
- if (input[_P] != null) {
1456
- entries[_P] = input[_P];
1457
- }
1458
- if (input[_LBPo] != null) {
1459
- entries[_LBPo] = input[_LBPo];
1460
- }
1461
- if (input[_IP] != null) {
1462
- entries[_IP] = input[_IP];
1463
- }
1464
- if (input[_IPn] != null) {
1465
- entries[_IPn] = input[_IPn];
1466
- }
1467
- if (input[_SSLCI] != null) {
1468
- entries[_SSLCI] = input[_SSLCI];
1469
- }
1470
- return entries;
1471
- };
1472
- const se_Listeners = (input, context) => {
1473
- const entries = {};
1474
- let counter = 1;
1475
- for (const entry of input) {
1476
- if (entry === null) {
1477
- continue;
1478
- }
1479
- const memberEntries = se_Listener(entry, context);
1480
- Object.entries(memberEntries).forEach(([key, value]) => {
1481
- entries[`member.${counter}.${key}`] = value;
1482
- });
1483
- counter++;
1484
- }
1485
- return entries;
1486
- };
1487
- const se_LoadBalancerAttributes = (input, context) => {
1488
- const entries = {};
1489
- if (input[_CZLB] != null) {
1490
- const memberEntries = se_CrossZoneLoadBalancing(input[_CZLB], context);
1491
- Object.entries(memberEntries).forEach(([key, value]) => {
1492
- const loc = `CrossZoneLoadBalancing.${key}`;
1493
- entries[loc] = value;
1494
- });
1495
- }
1496
- if (input[_AL] != null) {
1497
- const memberEntries = se_AccessLog(input[_AL], context);
1498
- Object.entries(memberEntries).forEach(([key, value]) => {
1499
- const loc = `AccessLog.${key}`;
1500
- entries[loc] = value;
1501
- });
1502
- }
1503
- if (input[_CD] != null) {
1504
- const memberEntries = se_ConnectionDraining(input[_CD], context);
1505
- Object.entries(memberEntries).forEach(([key, value]) => {
1506
- const loc = `ConnectionDraining.${key}`;
1507
- entries[loc] = value;
1508
- });
1509
- }
1510
- if (input[_CS] != null) {
1511
- const memberEntries = se_ConnectionSettings(input[_CS], context);
1512
- Object.entries(memberEntries).forEach(([key, value]) => {
1513
- const loc = `ConnectionSettings.${key}`;
1514
- entries[loc] = value;
1515
- });
1516
- }
1517
- if (input[_AA] != null) {
1518
- const memberEntries = se_AdditionalAttributes(input[_AA], context);
1519
- if (input[_AA]?.length === 0) {
1520
- entries.AdditionalAttributes = [];
1521
- }
1522
- Object.entries(memberEntries).forEach(([key, value]) => {
1523
- const loc = `AdditionalAttributes.${key}`;
1524
- entries[loc] = value;
1525
- });
1526
- }
1527
- return entries;
1528
- };
1529
- const se_LoadBalancerNames = (input, context) => {
1530
- const entries = {};
1531
- let counter = 1;
1532
- for (const entry of input) {
1533
- if (entry === null) {
1534
- continue;
1535
- }
1536
- entries[`member.${counter}`] = entry;
1537
- counter++;
1538
- }
1539
- return entries;
1540
- };
1541
- const se_LoadBalancerNamesMax20 = (input, context) => {
1542
- const entries = {};
1543
- let counter = 1;
1544
- for (const entry of input) {
1545
- if (entry === null) {
1546
- continue;
1547
- }
1548
- entries[`member.${counter}`] = entry;
1549
- counter++;
1550
- }
1551
- return entries;
1552
- };
1553
- const se_ModifyLoadBalancerAttributesInput = (input, context) => {
1554
- const entries = {};
1555
- if (input[_LBN] != null) {
1556
- entries[_LBN] = input[_LBN];
1557
- }
1558
- if (input[_LBA] != null) {
1559
- const memberEntries = se_LoadBalancerAttributes(input[_LBA], context);
1560
- Object.entries(memberEntries).forEach(([key, value]) => {
1561
- const loc = `LoadBalancerAttributes.${key}`;
1562
- entries[loc] = value;
1563
- });
1564
- }
1565
- return entries;
1566
- };
1567
- const se_PolicyAttribute = (input, context) => {
1568
- const entries = {};
1569
- if (input[_AN] != null) {
1570
- entries[_AN] = input[_AN];
1571
- }
1572
- if (input[_AV] != null) {
1573
- entries[_AV] = input[_AV];
1574
- }
1575
- return entries;
1576
- };
1577
- const se_PolicyAttributes = (input, context) => {
1578
- const entries = {};
1579
- let counter = 1;
1580
- for (const entry of input) {
1581
- if (entry === null) {
1582
- continue;
1583
- }
1584
- const memberEntries = se_PolicyAttribute(entry, context);
1585
- Object.entries(memberEntries).forEach(([key, value]) => {
1586
- entries[`member.${counter}.${key}`] = value;
1587
- });
1588
- counter++;
1589
- }
1590
- return entries;
1591
- };
1592
- const se_PolicyNames = (input, context) => {
1593
- const entries = {};
1594
- let counter = 1;
1595
- for (const entry of input) {
1596
- if (entry === null) {
1597
- continue;
1598
- }
1599
- entries[`member.${counter}`] = entry;
1600
- counter++;
1601
- }
1602
- return entries;
1603
- };
1604
- const se_PolicyTypeNames = (input, context) => {
1605
- const entries = {};
1606
- let counter = 1;
1607
- for (const entry of input) {
1608
- if (entry === null) {
1609
- continue;
1610
- }
1611
- entries[`member.${counter}`] = entry;
1612
- counter++;
1613
- }
1614
- return entries;
1615
- };
1616
- const se_Ports = (input, context) => {
1617
- const entries = {};
1618
- let counter = 1;
1619
- for (const entry of input) {
1620
- if (entry === null) {
1621
- continue;
1622
- }
1623
- entries[`member.${counter}`] = entry;
1624
- counter++;
1625
- }
1626
- return entries;
1627
- };
1628
- const se_RegisterEndPointsInput = (input, context) => {
1629
- const entries = {};
1630
- if (input[_LBN] != null) {
1631
- entries[_LBN] = input[_LBN];
1632
- }
1633
- if (input[_I] != null) {
1634
- const memberEntries = se_Instances(input[_I], context);
1635
- if (input[_I]?.length === 0) {
1636
- entries.Instances = [];
1637
- }
1638
- Object.entries(memberEntries).forEach(([key, value]) => {
1639
- const loc = `Instances.${key}`;
1640
- entries[loc] = value;
1641
- });
1642
- }
1643
- return entries;
1644
- };
1645
- const se_RemoveAvailabilityZonesInput = (input, context) => {
1646
- const entries = {};
1647
- if (input[_LBN] != null) {
1648
- entries[_LBN] = input[_LBN];
1649
- }
1650
- if (input[_AZ] != null) {
1651
- const memberEntries = se_AvailabilityZones(input[_AZ], context);
1652
- if (input[_AZ]?.length === 0) {
1653
- entries.AvailabilityZones = [];
1654
- }
1655
- Object.entries(memberEntries).forEach(([key, value]) => {
1656
- const loc = `AvailabilityZones.${key}`;
1657
- entries[loc] = value;
1658
- });
1659
- }
1660
- return entries;
1661
- };
1662
- const se_RemoveTagsInput = (input, context) => {
1663
- const entries = {};
1664
- if (input[_LBNo] != null) {
1665
- const memberEntries = se_LoadBalancerNames(input[_LBNo], context);
1666
- if (input[_LBNo]?.length === 0) {
1667
- entries.LoadBalancerNames = [];
1668
- }
1669
- Object.entries(memberEntries).forEach(([key, value]) => {
1670
- const loc = `LoadBalancerNames.${key}`;
1671
- entries[loc] = value;
1672
- });
1673
- }
1674
- if (input[_T] != null) {
1675
- const memberEntries = se_TagKeyList(input[_T], context);
1676
- if (input[_T]?.length === 0) {
1677
- entries.Tags = [];
1678
- }
1679
- Object.entries(memberEntries).forEach(([key, value]) => {
1680
- const loc = `Tags.${key}`;
1681
- entries[loc] = value;
1682
- });
1683
- }
1684
- return entries;
1685
- };
1686
- const se_SecurityGroups = (input, context) => {
1687
- const entries = {};
1688
- let counter = 1;
1689
- for (const entry of input) {
1690
- if (entry === null) {
1691
- continue;
1692
- }
1693
- entries[`member.${counter}`] = entry;
1694
- counter++;
1695
- }
1696
- return entries;
1697
- };
1698
- const se_SetLoadBalancerListenerSSLCertificateInput = (input, context) => {
1699
- const entries = {};
1700
- if (input[_LBN] != null) {
1701
- entries[_LBN] = input[_LBN];
1702
- }
1703
- if (input[_LBPo] != null) {
1704
- entries[_LBPo] = input[_LBPo];
1705
- }
1706
- if (input[_SSLCI] != null) {
1707
- entries[_SSLCI] = input[_SSLCI];
1708
- }
1709
- return entries;
1710
- };
1711
- const se_SetLoadBalancerPoliciesForBackendServerInput = (input, context) => {
1712
- const entries = {};
1713
- if (input[_LBN] != null) {
1714
- entries[_LBN] = input[_LBN];
1715
- }
1716
- if (input[_IPn] != null) {
1717
- entries[_IPn] = input[_IPn];
1718
- }
1719
- if (input[_PNo] != null) {
1720
- const memberEntries = se_PolicyNames(input[_PNo], context);
1721
- if (input[_PNo]?.length === 0) {
1722
- entries.PolicyNames = [];
1723
- }
1724
- Object.entries(memberEntries).forEach(([key, value]) => {
1725
- const loc = `PolicyNames.${key}`;
1726
- entries[loc] = value;
1727
- });
1728
- }
1729
- return entries;
1730
- };
1731
- const se_SetLoadBalancerPoliciesOfListenerInput = (input, context) => {
1732
- const entries = {};
1733
- if (input[_LBN] != null) {
1734
- entries[_LBN] = input[_LBN];
1735
- }
1736
- if (input[_LBPo] != null) {
1737
- entries[_LBPo] = input[_LBPo];
1738
- }
1739
- if (input[_PNo] != null) {
1740
- const memberEntries = se_PolicyNames(input[_PNo], context);
1741
- if (input[_PNo]?.length === 0) {
1742
- entries.PolicyNames = [];
1743
- }
1744
- Object.entries(memberEntries).forEach(([key, value]) => {
1745
- const loc = `PolicyNames.${key}`;
1746
- entries[loc] = value;
1747
- });
1748
- }
1749
- return entries;
1750
- };
1751
- const se_Subnets = (input, context) => {
1752
- const entries = {};
1753
- let counter = 1;
1754
- for (const entry of input) {
1755
- if (entry === null) {
1756
- continue;
1757
- }
1758
- entries[`member.${counter}`] = entry;
1759
- counter++;
1760
- }
1761
- return entries;
1762
- };
1763
- const se_Tag = (input, context) => {
1764
- const entries = {};
1765
- if (input[_K] != null) {
1766
- entries[_K] = input[_K];
1767
- }
1768
- if (input[_Va] != null) {
1769
- entries[_Va] = input[_Va];
1770
- }
1771
- return entries;
1772
- };
1773
- const se_TagKeyList = (input, context) => {
1774
- const entries = {};
1775
- let counter = 1;
1776
- for (const entry of input) {
1777
- if (entry === null) {
1778
- continue;
1779
- }
1780
- const memberEntries = se_TagKeyOnly(entry, context);
1781
- Object.entries(memberEntries).forEach(([key, value]) => {
1782
- entries[`member.${counter}.${key}`] = value;
1783
- });
1784
- counter++;
1785
- }
1786
- return entries;
1787
- };
1788
- const se_TagKeyOnly = (input, context) => {
1789
- const entries = {};
1790
- if (input[_K] != null) {
1791
- entries[_K] = input[_K];
1792
- }
1793
- return entries;
1794
- };
1795
- const se_TagList = (input, context) => {
1796
- const entries = {};
1797
- let counter = 1;
1798
- for (const entry of input) {
1799
- if (entry === null) {
1800
- continue;
1801
- }
1802
- const memberEntries = se_Tag(entry, context);
1803
- Object.entries(memberEntries).forEach(([key, value]) => {
1804
- entries[`member.${counter}.${key}`] = value;
1805
- });
1806
- counter++;
1807
- }
1808
- return entries;
1809
- };
1810
- const de_AccessLog = (output, context) => {
1811
- const contents = {};
1812
- if (output[_E] != null) {
1813
- contents[_E] = __parseBoolean(output[_E]);
1814
- }
1815
- if (output[_SBN] != null) {
1816
- contents[_SBN] = __expectString(output[_SBN]);
1817
- }
1818
- if (output[_EI] != null) {
1819
- contents[_EI] = __strictParseInt32(output[_EI]);
1820
- }
1821
- if (output[_SBP] != null) {
1822
- contents[_SBP] = __expectString(output[_SBP]);
1823
- }
1824
- return contents;
1825
- };
1826
- const de_AccessPointNotFoundException = (output, context) => {
1827
- const contents = {};
1828
- if (output[_Me] != null) {
1829
- contents[_Me] = __expectString(output[_Me]);
1830
- }
1831
- return contents;
1832
- };
1833
- const de_AddAvailabilityZonesOutput = (output, context) => {
1834
- const contents = {};
1835
- if (String(output.AvailabilityZones).trim() === "") {
1836
- contents[_AZ] = [];
1837
- }
1838
- else if (output[_AZ] != null && output[_AZ][_m] != null) {
1839
- contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_m]), context);
1840
- }
1841
- return contents;
1842
- };
1843
- const de_AdditionalAttribute = (output, context) => {
1844
- const contents = {};
1845
- if (output[_K] != null) {
1846
- contents[_K] = __expectString(output[_K]);
1847
- }
1848
- if (output[_Va] != null) {
1849
- contents[_Va] = __expectString(output[_Va]);
1850
- }
1851
- return contents;
1852
- };
1853
- const de_AdditionalAttributes = (output, context) => {
1854
- return (output || [])
1855
- .filter((e) => e != null)
1856
- .map((entry) => {
1857
- return de_AdditionalAttribute(entry, context);
1858
- });
1859
- };
1860
- const de_AddTagsOutput = (output, context) => {
1861
- const contents = {};
1862
- return contents;
1863
- };
1864
- const de_AppCookieStickinessPolicies = (output, context) => {
1865
- return (output || [])
1866
- .filter((e) => e != null)
1867
- .map((entry) => {
1868
- return de_AppCookieStickinessPolicy(entry, context);
1869
- });
1870
- };
1871
- const de_AppCookieStickinessPolicy = (output, context) => {
1872
- const contents = {};
1873
- if (output[_PN] != null) {
1874
- contents[_PN] = __expectString(output[_PN]);
1875
- }
1876
- if (output[_CN] != null) {
1877
- contents[_CN] = __expectString(output[_CN]);
1878
- }
1879
- return contents;
1880
- };
1881
- const de_ApplySecurityGroupsToLoadBalancerOutput = (output, context) => {
1882
- const contents = {};
1883
- if (String(output.SecurityGroups).trim() === "") {
1884
- contents[_SG] = [];
1885
- }
1886
- else if (output[_SG] != null && output[_SG][_m] != null) {
1887
- contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_m]), context);
1888
- }
1889
- return contents;
1890
- };
1891
- const de_AttachLoadBalancerToSubnetsOutput = (output, context) => {
1892
- const contents = {};
1893
- if (String(output.Subnets).trim() === "") {
1894
- contents[_S] = [];
1895
- }
1896
- else if (output[_S] != null && output[_S][_m] != null) {
1897
- contents[_S] = de_Subnets(__getArrayIfSingleItem(output[_S][_m]), context);
1898
- }
1899
- return contents;
1900
- };
1901
- const de_AvailabilityZones = (output, context) => {
1902
- return (output || [])
1903
- .filter((e) => e != null)
1904
- .map((entry) => {
1905
- return __expectString(entry);
1906
- });
1907
- };
1908
- const de_BackendServerDescription = (output, context) => {
1909
- const contents = {};
1910
- if (output[_IPn] != null) {
1911
- contents[_IPn] = __strictParseInt32(output[_IPn]);
1912
- }
1913
- if (String(output.PolicyNames).trim() === "") {
1914
- contents[_PNo] = [];
1915
- }
1916
- else if (output[_PNo] != null && output[_PNo][_m] != null) {
1917
- contents[_PNo] = de_PolicyNames(__getArrayIfSingleItem(output[_PNo][_m]), context);
1918
- }
1919
- return contents;
1920
- };
1921
- const de_BackendServerDescriptions = (output, context) => {
1922
- return (output || [])
1923
- .filter((e) => e != null)
1924
- .map((entry) => {
1925
- return de_BackendServerDescription(entry, context);
1926
- });
1927
- };
1928
- const de_CertificateNotFoundException = (output, context) => {
1929
- const contents = {};
1930
- if (output[_Me] != null) {
1931
- contents[_Me] = __expectString(output[_Me]);
1932
- }
1933
- return contents;
1934
- };
1935
- const de_ConfigureHealthCheckOutput = (output, context) => {
1936
- const contents = {};
1937
- if (output[_HC] != null) {
1938
- contents[_HC] = de_HealthCheck(output[_HC], context);
1939
- }
1940
- return contents;
1941
- };
1942
- const de_ConnectionDraining = (output, context) => {
1943
- const contents = {};
1944
- if (output[_E] != null) {
1945
- contents[_E] = __parseBoolean(output[_E]);
1946
- }
1947
- if (output[_Ti] != null) {
1948
- contents[_Ti] = __strictParseInt32(output[_Ti]);
1949
- }
1950
- return contents;
1951
- };
1952
- const de_ConnectionSettings = (output, context) => {
1953
- const contents = {};
1954
- if (output[_IT] != null) {
1955
- contents[_IT] = __strictParseInt32(output[_IT]);
1956
- }
1957
- return contents;
1958
- };
1959
- const de_CreateAccessPointOutput = (output, context) => {
1960
- const contents = {};
1961
- if (output[_DNSN] != null) {
1962
- contents[_DNSN] = __expectString(output[_DNSN]);
1963
- }
1964
- return contents;
1965
- };
1966
- const de_CreateAppCookieStickinessPolicyOutput = (output, context) => {
1967
- const contents = {};
1968
- return contents;
1969
- };
1970
- const de_CreateLBCookieStickinessPolicyOutput = (output, context) => {
1971
- const contents = {};
1972
- return contents;
1973
- };
1974
- const de_CreateLoadBalancerListenerOutput = (output, context) => {
1975
- const contents = {};
1976
- return contents;
1977
- };
1978
- const de_CreateLoadBalancerPolicyOutput = (output, context) => {
1979
- const contents = {};
1980
- return contents;
1981
- };
1982
- const de_CrossZoneLoadBalancing = (output, context) => {
1983
- const contents = {};
1984
- if (output[_E] != null) {
1985
- contents[_E] = __parseBoolean(output[_E]);
1986
- }
1987
- return contents;
1988
- };
1989
- const de_DeleteAccessPointOutput = (output, context) => {
1990
- const contents = {};
1991
- return contents;
1992
- };
1993
- const de_DeleteLoadBalancerListenerOutput = (output, context) => {
1994
- const contents = {};
1995
- return contents;
1996
- };
1997
- const de_DeleteLoadBalancerPolicyOutput = (output, context) => {
1998
- const contents = {};
1999
- return contents;
2000
- };
2001
- const de_DependencyThrottleException = (output, context) => {
2002
- const contents = {};
2003
- if (output[_Me] != null) {
2004
- contents[_Me] = __expectString(output[_Me]);
2005
- }
2006
- return contents;
2007
- };
2008
- const de_DeregisterEndPointsOutput = (output, context) => {
2009
- const contents = {};
2010
- if (String(output.Instances).trim() === "") {
2011
- contents[_I] = [];
2012
- }
2013
- else if (output[_I] != null && output[_I][_m] != null) {
2014
- contents[_I] = de_Instances(__getArrayIfSingleItem(output[_I][_m]), context);
2015
- }
2016
- return contents;
2017
- };
2018
- const de_DescribeAccessPointsOutput = (output, context) => {
2019
- const contents = {};
2020
- if (String(output.LoadBalancerDescriptions).trim() === "") {
2021
- contents[_LBD] = [];
2022
- }
2023
- else if (output[_LBD] != null && output[_LBD][_m] != null) {
2024
- contents[_LBD] = de_LoadBalancerDescriptions(__getArrayIfSingleItem(output[_LBD][_m]), context);
2025
- }
2026
- if (output[_NM] != null) {
2027
- contents[_NM] = __expectString(output[_NM]);
2028
- }
2029
- return contents;
2030
- };
2031
- const de_DescribeAccountLimitsOutput = (output, context) => {
2032
- const contents = {};
2033
- if (String(output.Limits).trim() === "") {
2034
- contents[_Li] = [];
2035
- }
2036
- else if (output[_Li] != null && output[_Li][_m] != null) {
2037
- contents[_Li] = de_Limits(__getArrayIfSingleItem(output[_Li][_m]), context);
2038
- }
2039
- if (output[_NM] != null) {
2040
- contents[_NM] = __expectString(output[_NM]);
2041
- }
2042
- return contents;
2043
- };
2044
- const de_DescribeEndPointStateOutput = (output, context) => {
2045
- const contents = {};
2046
- if (String(output.InstanceStates).trim() === "") {
2047
- contents[_IS] = [];
2048
- }
2049
- else if (output[_IS] != null && output[_IS][_m] != null) {
2050
- contents[_IS] = de_InstanceStates(__getArrayIfSingleItem(output[_IS][_m]), context);
2051
- }
2052
- return contents;
2053
- };
2054
- const de_DescribeLoadBalancerAttributesOutput = (output, context) => {
2055
- const contents = {};
2056
- if (output[_LBA] != null) {
2057
- contents[_LBA] = de_LoadBalancerAttributes(output[_LBA], context);
2058
- }
2059
- return contents;
2060
- };
2061
- const de_DescribeLoadBalancerPoliciesOutput = (output, context) => {
2062
- const contents = {};
2063
- if (String(output.PolicyDescriptions).trim() === "") {
2064
- contents[_PD] = [];
2065
- }
2066
- else if (output[_PD] != null && output[_PD][_m] != null) {
2067
- contents[_PD] = de_PolicyDescriptions(__getArrayIfSingleItem(output[_PD][_m]), context);
2068
- }
2069
- return contents;
2070
- };
2071
- const de_DescribeLoadBalancerPolicyTypesOutput = (output, context) => {
2072
- const contents = {};
2073
- if (String(output.PolicyTypeDescriptions).trim() === "") {
2074
- contents[_PTD] = [];
2075
- }
2076
- else if (output[_PTD] != null && output[_PTD][_m] != null) {
2077
- contents[_PTD] = de_PolicyTypeDescriptions(__getArrayIfSingleItem(output[_PTD][_m]), context);
2078
- }
2079
- return contents;
2080
- };
2081
- const de_DescribeTagsOutput = (output, context) => {
2082
- const contents = {};
2083
- if (String(output.TagDescriptions).trim() === "") {
2084
- contents[_TD] = [];
2085
- }
2086
- else if (output[_TD] != null && output[_TD][_m] != null) {
2087
- contents[_TD] = de_TagDescriptions(__getArrayIfSingleItem(output[_TD][_m]), context);
2088
- }
2089
- return contents;
2090
- };
2091
- const de_DetachLoadBalancerFromSubnetsOutput = (output, context) => {
2092
- const contents = {};
2093
- if (String(output.Subnets).trim() === "") {
2094
- contents[_S] = [];
2095
- }
2096
- else if (output[_S] != null && output[_S][_m] != null) {
2097
- contents[_S] = de_Subnets(__getArrayIfSingleItem(output[_S][_m]), context);
2098
- }
2099
- return contents;
2100
- };
2101
- const de_DuplicateAccessPointNameException = (output, context) => {
2102
- const contents = {};
2103
- if (output[_Me] != null) {
2104
- contents[_Me] = __expectString(output[_Me]);
2105
- }
2106
- return contents;
2107
- };
2108
- const de_DuplicateListenerException = (output, context) => {
2109
- const contents = {};
2110
- if (output[_Me] != null) {
2111
- contents[_Me] = __expectString(output[_Me]);
2112
- }
2113
- return contents;
2114
- };
2115
- const de_DuplicatePolicyNameException = (output, context) => {
2116
- const contents = {};
2117
- if (output[_Me] != null) {
2118
- contents[_Me] = __expectString(output[_Me]);
2119
- }
2120
- return contents;
2121
- };
2122
- const de_DuplicateTagKeysException = (output, context) => {
2123
- const contents = {};
2124
- if (output[_Me] != null) {
2125
- contents[_Me] = __expectString(output[_Me]);
2126
- }
2127
- return contents;
2128
- };
2129
- const de_HealthCheck = (output, context) => {
2130
- const contents = {};
2131
- if (output[_Ta] != null) {
2132
- contents[_Ta] = __expectString(output[_Ta]);
2133
- }
2134
- if (output[_In] != null) {
2135
- contents[_In] = __strictParseInt32(output[_In]);
2136
- }
2137
- if (output[_Ti] != null) {
2138
- contents[_Ti] = __strictParseInt32(output[_Ti]);
2139
- }
2140
- if (output[_UT] != null) {
2141
- contents[_UT] = __strictParseInt32(output[_UT]);
2142
- }
2143
- if (output[_HT] != null) {
2144
- contents[_HT] = __strictParseInt32(output[_HT]);
2145
- }
2146
- return contents;
2147
- };
2148
- const de_Instance = (output, context) => {
2149
- const contents = {};
2150
- if (output[_II] != null) {
2151
- contents[_II] = __expectString(output[_II]);
2152
- }
2153
- return contents;
2154
- };
2155
- const de_Instances = (output, context) => {
2156
- return (output || [])
2157
- .filter((e) => e != null)
2158
- .map((entry) => {
2159
- return de_Instance(entry, context);
2160
- });
2161
- };
2162
- const de_InstanceState = (output, context) => {
2163
- const contents = {};
2164
- if (output[_II] != null) {
2165
- contents[_II] = __expectString(output[_II]);
2166
- }
2167
- if (output[_St] != null) {
2168
- contents[_St] = __expectString(output[_St]);
2169
- }
2170
- if (output[_RC] != null) {
2171
- contents[_RC] = __expectString(output[_RC]);
2172
- }
2173
- if (output[_D] != null) {
2174
- contents[_D] = __expectString(output[_D]);
2175
- }
2176
- return contents;
2177
- };
2178
- const de_InstanceStates = (output, context) => {
2179
- return (output || [])
2180
- .filter((e) => e != null)
2181
- .map((entry) => {
2182
- return de_InstanceState(entry, context);
2183
- });
2184
- };
2185
- const de_InvalidConfigurationRequestException = (output, context) => {
2186
- const contents = {};
2187
- if (output[_Me] != null) {
2188
- contents[_Me] = __expectString(output[_Me]);
2189
- }
2190
- return contents;
2191
- };
2192
- const de_InvalidEndPointException = (output, context) => {
2193
- const contents = {};
2194
- if (output[_Me] != null) {
2195
- contents[_Me] = __expectString(output[_Me]);
2196
- }
2197
- return contents;
2198
- };
2199
- const de_InvalidSchemeException = (output, context) => {
2200
- const contents = {};
2201
- if (output[_Me] != null) {
2202
- contents[_Me] = __expectString(output[_Me]);
2203
- }
2204
- return contents;
2205
- };
2206
- const de_InvalidSecurityGroupException = (output, context) => {
2207
- const contents = {};
2208
- if (output[_Me] != null) {
2209
- contents[_Me] = __expectString(output[_Me]);
2210
- }
2211
- return contents;
2212
- };
2213
- const de_InvalidSubnetException = (output, context) => {
2214
- const contents = {};
2215
- if (output[_Me] != null) {
2216
- contents[_Me] = __expectString(output[_Me]);
2217
- }
2218
- return contents;
2219
- };
2220
- const de_LBCookieStickinessPolicies = (output, context) => {
2221
- return (output || [])
2222
- .filter((e) => e != null)
2223
- .map((entry) => {
2224
- return de_LBCookieStickinessPolicy(entry, context);
2225
- });
2226
- };
2227
- const de_LBCookieStickinessPolicy = (output, context) => {
2228
- const contents = {};
2229
- if (output[_PN] != null) {
2230
- contents[_PN] = __expectString(output[_PN]);
2231
- }
2232
- if (output[_CEP] != null) {
2233
- contents[_CEP] = __strictParseLong(output[_CEP]);
2234
- }
2235
- return contents;
2236
- };
2237
- const de_Limit = (output, context) => {
2238
- const contents = {};
2239
- if (output[_N] != null) {
2240
- contents[_N] = __expectString(output[_N]);
2241
- }
2242
- if (output[_Ma] != null) {
2243
- contents[_Ma] = __expectString(output[_Ma]);
2244
- }
2245
- return contents;
2246
- };
2247
- const de_Limits = (output, context) => {
2248
- return (output || [])
2249
- .filter((e) => e != null)
2250
- .map((entry) => {
2251
- return de_Limit(entry, context);
2252
- });
2253
- };
2254
- const de_Listener = (output, context) => {
2255
- const contents = {};
2256
- if (output[_P] != null) {
2257
- contents[_P] = __expectString(output[_P]);
2258
- }
2259
- if (output[_LBPo] != null) {
2260
- contents[_LBPo] = __strictParseInt32(output[_LBPo]);
2261
- }
2262
- if (output[_IP] != null) {
2263
- contents[_IP] = __expectString(output[_IP]);
2264
- }
2265
- if (output[_IPn] != null) {
2266
- contents[_IPn] = __strictParseInt32(output[_IPn]);
2267
- }
2268
- if (output[_SSLCI] != null) {
2269
- contents[_SSLCI] = __expectString(output[_SSLCI]);
2270
- }
2271
- return contents;
2272
- };
2273
- const de_ListenerDescription = (output, context) => {
2274
- const contents = {};
2275
- if (output[_Lis] != null) {
2276
- contents[_Lis] = de_Listener(output[_Lis], context);
2277
- }
2278
- if (String(output.PolicyNames).trim() === "") {
2279
- contents[_PNo] = [];
2280
- }
2281
- else if (output[_PNo] != null && output[_PNo][_m] != null) {
2282
- contents[_PNo] = de_PolicyNames(__getArrayIfSingleItem(output[_PNo][_m]), context);
2283
- }
2284
- return contents;
2285
- };
2286
- const de_ListenerDescriptions = (output, context) => {
2287
- return (output || [])
2288
- .filter((e) => e != null)
2289
- .map((entry) => {
2290
- return de_ListenerDescription(entry, context);
2291
- });
2292
- };
2293
- const de_ListenerNotFoundException = (output, context) => {
2294
- const contents = {};
2295
- if (output[_Me] != null) {
2296
- contents[_Me] = __expectString(output[_Me]);
2297
- }
2298
- return contents;
2299
- };
2300
- const de_LoadBalancerAttributeNotFoundException = (output, context) => {
2301
- const contents = {};
2302
- if (output[_Me] != null) {
2303
- contents[_Me] = __expectString(output[_Me]);
2304
- }
2305
- return contents;
2306
- };
2307
- const de_LoadBalancerAttributes = (output, context) => {
2308
- const contents = {};
2309
- if (output[_CZLB] != null) {
2310
- contents[_CZLB] = de_CrossZoneLoadBalancing(output[_CZLB], context);
2311
- }
2312
- if (output[_AL] != null) {
2313
- contents[_AL] = de_AccessLog(output[_AL], context);
2314
- }
2315
- if (output[_CD] != null) {
2316
- contents[_CD] = de_ConnectionDraining(output[_CD], context);
2317
- }
2318
- if (output[_CS] != null) {
2319
- contents[_CS] = de_ConnectionSettings(output[_CS], context);
2320
- }
2321
- if (String(output.AdditionalAttributes).trim() === "") {
2322
- contents[_AA] = [];
2323
- }
2324
- else if (output[_AA] != null && output[_AA][_m] != null) {
2325
- contents[_AA] = de_AdditionalAttributes(__getArrayIfSingleItem(output[_AA][_m]), context);
2326
- }
2327
- return contents;
2328
- };
2329
- const de_LoadBalancerDescription = (output, context) => {
2330
- const contents = {};
2331
- if (output[_LBN] != null) {
2332
- contents[_LBN] = __expectString(output[_LBN]);
2333
- }
2334
- if (output[_DNSN] != null) {
2335
- contents[_DNSN] = __expectString(output[_DNSN]);
2336
- }
2337
- if (output[_CHZN] != null) {
2338
- contents[_CHZN] = __expectString(output[_CHZN]);
2339
- }
2340
- if (output[_CHZNID] != null) {
2341
- contents[_CHZNID] = __expectString(output[_CHZNID]);
2342
- }
2343
- if (String(output.ListenerDescriptions).trim() === "") {
2344
- contents[_LD] = [];
2345
- }
2346
- else if (output[_LD] != null && output[_LD][_m] != null) {
2347
- contents[_LD] = de_ListenerDescriptions(__getArrayIfSingleItem(output[_LD][_m]), context);
2348
- }
2349
- if (output[_Po] != null) {
2350
- contents[_Po] = de_Policies(output[_Po], context);
2351
- }
2352
- if (String(output.BackendServerDescriptions).trim() === "") {
2353
- contents[_BSD] = [];
2354
- }
2355
- else if (output[_BSD] != null && output[_BSD][_m] != null) {
2356
- contents[_BSD] = de_BackendServerDescriptions(__getArrayIfSingleItem(output[_BSD][_m]), context);
2357
- }
2358
- if (String(output.AvailabilityZones).trim() === "") {
2359
- contents[_AZ] = [];
2360
- }
2361
- else if (output[_AZ] != null && output[_AZ][_m] != null) {
2362
- contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_m]), context);
2363
- }
2364
- if (String(output.Subnets).trim() === "") {
2365
- contents[_S] = [];
2366
- }
2367
- else if (output[_S] != null && output[_S][_m] != null) {
2368
- contents[_S] = de_Subnets(__getArrayIfSingleItem(output[_S][_m]), context);
2369
- }
2370
- if (output[_VPCI] != null) {
2371
- contents[_VPCI] = __expectString(output[_VPCI]);
2372
- }
2373
- if (String(output.Instances).trim() === "") {
2374
- contents[_I] = [];
2375
- }
2376
- else if (output[_I] != null && output[_I][_m] != null) {
2377
- contents[_I] = de_Instances(__getArrayIfSingleItem(output[_I][_m]), context);
2378
- }
2379
- if (output[_HC] != null) {
2380
- contents[_HC] = de_HealthCheck(output[_HC], context);
2381
- }
2382
- if (output[_SSG] != null) {
2383
- contents[_SSG] = de_SourceSecurityGroup(output[_SSG], context);
2384
- }
2385
- if (String(output.SecurityGroups).trim() === "") {
2386
- contents[_SG] = [];
2387
- }
2388
- else if (output[_SG] != null && output[_SG][_m] != null) {
2389
- contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_m]), context);
2390
- }
2391
- if (output[_CT] != null) {
2392
- contents[_CT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CT]));
2393
- }
2394
- if (output[_Sc] != null) {
2395
- contents[_Sc] = __expectString(output[_Sc]);
2396
- }
2397
- return contents;
2398
- };
2399
- const de_LoadBalancerDescriptions = (output, context) => {
2400
- return (output || [])
2401
- .filter((e) => e != null)
2402
- .map((entry) => {
2403
- return de_LoadBalancerDescription(entry, context);
2404
- });
2405
- };
2406
- const de_ModifyLoadBalancerAttributesOutput = (output, context) => {
2407
- const contents = {};
2408
- if (output[_LBN] != null) {
2409
- contents[_LBN] = __expectString(output[_LBN]);
2410
- }
2411
- if (output[_LBA] != null) {
2412
- contents[_LBA] = de_LoadBalancerAttributes(output[_LBA], context);
2413
- }
2414
- return contents;
2415
- };
2416
- const de_OperationNotPermittedException = (output, context) => {
2417
- const contents = {};
2418
- if (output[_Me] != null) {
2419
- contents[_Me] = __expectString(output[_Me]);
2420
- }
2421
- return contents;
2422
- };
2423
- const de_Policies = (output, context) => {
2424
- const contents = {};
2425
- if (String(output.AppCookieStickinessPolicies).trim() === "") {
2426
- contents[_ACSP] = [];
2427
- }
2428
- else if (output[_ACSP] != null && output[_ACSP][_m] != null) {
2429
- contents[_ACSP] = de_AppCookieStickinessPolicies(__getArrayIfSingleItem(output[_ACSP][_m]), context);
2430
- }
2431
- if (String(output.LBCookieStickinessPolicies).trim() === "") {
2432
- contents[_LBCSP] = [];
2433
- }
2434
- else if (output[_LBCSP] != null && output[_LBCSP][_m] != null) {
2435
- contents[_LBCSP] = de_LBCookieStickinessPolicies(__getArrayIfSingleItem(output[_LBCSP][_m]), context);
2436
- }
2437
- if (String(output.OtherPolicies).trim() === "") {
2438
- contents[_OP] = [];
2439
- }
2440
- else if (output[_OP] != null && output[_OP][_m] != null) {
2441
- contents[_OP] = de_PolicyNames(__getArrayIfSingleItem(output[_OP][_m]), context);
2442
- }
2443
- return contents;
2444
- };
2445
- const de_PolicyAttributeDescription = (output, context) => {
2446
- const contents = {};
2447
- if (output[_AN] != null) {
2448
- contents[_AN] = __expectString(output[_AN]);
2449
- }
2450
- if (output[_AV] != null) {
2451
- contents[_AV] = __expectString(output[_AV]);
2452
- }
2453
- return contents;
2454
- };
2455
- const de_PolicyAttributeDescriptions = (output, context) => {
2456
- return (output || [])
2457
- .filter((e) => e != null)
2458
- .map((entry) => {
2459
- return de_PolicyAttributeDescription(entry, context);
2460
- });
2461
- };
2462
- const de_PolicyAttributeTypeDescription = (output, context) => {
2463
- const contents = {};
2464
- if (output[_AN] != null) {
2465
- contents[_AN] = __expectString(output[_AN]);
2466
- }
2467
- if (output[_ATt] != null) {
2468
- contents[_ATt] = __expectString(output[_ATt]);
2469
- }
2470
- if (output[_D] != null) {
2471
- contents[_D] = __expectString(output[_D]);
2472
- }
2473
- if (output[_DV] != null) {
2474
- contents[_DV] = __expectString(output[_DV]);
2475
- }
2476
- if (output[_C] != null) {
2477
- contents[_C] = __expectString(output[_C]);
2478
- }
2479
- return contents;
2480
- };
2481
- const de_PolicyAttributeTypeDescriptions = (output, context) => {
2482
- return (output || [])
2483
- .filter((e) => e != null)
2484
- .map((entry) => {
2485
- return de_PolicyAttributeTypeDescription(entry, context);
2486
- });
2487
- };
2488
- const de_PolicyDescription = (output, context) => {
2489
- const contents = {};
2490
- if (output[_PN] != null) {
2491
- contents[_PN] = __expectString(output[_PN]);
2492
- }
2493
- if (output[_PTN] != null) {
2494
- contents[_PTN] = __expectString(output[_PTN]);
2495
- }
2496
- if (String(output.PolicyAttributeDescriptions).trim() === "") {
2497
- contents[_PAD] = [];
2498
- }
2499
- else if (output[_PAD] != null && output[_PAD][_m] != null) {
2500
- contents[_PAD] = de_PolicyAttributeDescriptions(__getArrayIfSingleItem(output[_PAD][_m]), context);
2501
- }
2502
- return contents;
2503
- };
2504
- const de_PolicyDescriptions = (output, context) => {
2505
- return (output || [])
2506
- .filter((e) => e != null)
2507
- .map((entry) => {
2508
- return de_PolicyDescription(entry, context);
2509
- });
2510
- };
2511
- const de_PolicyNames = (output, context) => {
2512
- return (output || [])
2513
- .filter((e) => e != null)
2514
- .map((entry) => {
2515
- return __expectString(entry);
2516
- });
2517
- };
2518
- const de_PolicyNotFoundException = (output, context) => {
2519
- const contents = {};
2520
- if (output[_Me] != null) {
2521
- contents[_Me] = __expectString(output[_Me]);
2522
- }
2523
- return contents;
2524
- };
2525
- const de_PolicyTypeDescription = (output, context) => {
2526
- const contents = {};
2527
- if (output[_PTN] != null) {
2528
- contents[_PTN] = __expectString(output[_PTN]);
2529
- }
2530
- if (output[_D] != null) {
2531
- contents[_D] = __expectString(output[_D]);
2532
- }
2533
- if (String(output.PolicyAttributeTypeDescriptions).trim() === "") {
2534
- contents[_PATD] = [];
2535
- }
2536
- else if (output[_PATD] != null && output[_PATD][_m] != null) {
2537
- contents[_PATD] = de_PolicyAttributeTypeDescriptions(__getArrayIfSingleItem(output[_PATD][_m]), context);
2538
- }
2539
- return contents;
2540
- };
2541
- const de_PolicyTypeDescriptions = (output, context) => {
2542
- return (output || [])
2543
- .filter((e) => e != null)
2544
- .map((entry) => {
2545
- return de_PolicyTypeDescription(entry, context);
2546
- });
2547
- };
2548
- const de_PolicyTypeNotFoundException = (output, context) => {
2549
- const contents = {};
2550
- if (output[_Me] != null) {
2551
- contents[_Me] = __expectString(output[_Me]);
2552
- }
2553
- return contents;
2554
- };
2555
- const de_RegisterEndPointsOutput = (output, context) => {
2556
- const contents = {};
2557
- if (String(output.Instances).trim() === "") {
2558
- contents[_I] = [];
2559
- }
2560
- else if (output[_I] != null && output[_I][_m] != null) {
2561
- contents[_I] = de_Instances(__getArrayIfSingleItem(output[_I][_m]), context);
2562
- }
2563
- return contents;
2564
- };
2565
- const de_RemoveAvailabilityZonesOutput = (output, context) => {
2566
- const contents = {};
2567
- if (String(output.AvailabilityZones).trim() === "") {
2568
- contents[_AZ] = [];
2569
- }
2570
- else if (output[_AZ] != null && output[_AZ][_m] != null) {
2571
- contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_m]), context);
2572
- }
2573
- return contents;
2574
- };
2575
- const de_RemoveTagsOutput = (output, context) => {
2576
- const contents = {};
2577
- return contents;
2578
- };
2579
- const de_SecurityGroups = (output, context) => {
2580
- return (output || [])
2581
- .filter((e) => e != null)
2582
- .map((entry) => {
2583
- return __expectString(entry);
2584
- });
2585
- };
2586
- const de_SetLoadBalancerListenerSSLCertificateOutput = (output, context) => {
2587
- const contents = {};
2588
- return contents;
2589
- };
2590
- const de_SetLoadBalancerPoliciesForBackendServerOutput = (output, context) => {
2591
- const contents = {};
2592
- return contents;
2593
- };
2594
- const de_SetLoadBalancerPoliciesOfListenerOutput = (output, context) => {
2595
- const contents = {};
2596
- return contents;
2597
- };
2598
- const de_SourceSecurityGroup = (output, context) => {
2599
- const contents = {};
2600
- if (output[_OA] != null) {
2601
- contents[_OA] = __expectString(output[_OA]);
2602
- }
2603
- if (output[_GN] != null) {
2604
- contents[_GN] = __expectString(output[_GN]);
2605
- }
2606
- return contents;
2607
- };
2608
- const de_SubnetNotFoundException = (output, context) => {
2609
- const contents = {};
2610
- if (output[_Me] != null) {
2611
- contents[_Me] = __expectString(output[_Me]);
2612
- }
2613
- return contents;
2614
- };
2615
- const de_Subnets = (output, context) => {
2616
- return (output || [])
2617
- .filter((e) => e != null)
2618
- .map((entry) => {
2619
- return __expectString(entry);
2620
- });
2621
- };
2622
- const de_Tag = (output, context) => {
2623
- const contents = {};
2624
- if (output[_K] != null) {
2625
- contents[_K] = __expectString(output[_K]);
2626
- }
2627
- if (output[_Va] != null) {
2628
- contents[_Va] = __expectString(output[_Va]);
2629
- }
2630
- return contents;
2631
- };
2632
- const de_TagDescription = (output, context) => {
2633
- const contents = {};
2634
- if (output[_LBN] != null) {
2635
- contents[_LBN] = __expectString(output[_LBN]);
2636
- }
2637
- if (String(output.Tags).trim() === "") {
2638
- contents[_T] = [];
2639
- }
2640
- else if (output[_T] != null && output[_T][_m] != null) {
2641
- contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_m]), context);
2642
- }
2643
- return contents;
2644
- };
2645
- const de_TagDescriptions = (output, context) => {
2646
- return (output || [])
2647
- .filter((e) => e != null)
2648
- .map((entry) => {
2649
- return de_TagDescription(entry, context);
2650
- });
2651
- };
2652
- const de_TagList = (output, context) => {
2653
- return (output || [])
2654
- .filter((e) => e != null)
2655
- .map((entry) => {
2656
- return de_Tag(entry, context);
2657
- });
2658
- };
2659
- const de_TooManyAccessPointsException = (output, context) => {
2660
- const contents = {};
2661
- if (output[_Me] != null) {
2662
- contents[_Me] = __expectString(output[_Me]);
2663
- }
2664
- return contents;
2665
- };
2666
- const de_TooManyPoliciesException = (output, context) => {
2667
- const contents = {};
2668
- if (output[_Me] != null) {
2669
- contents[_Me] = __expectString(output[_Me]);
2670
- }
2671
- return contents;
2672
- };
2673
- const de_TooManyTagsException = (output, context) => {
2674
- const contents = {};
2675
- if (output[_Me] != null) {
2676
- contents[_Me] = __expectString(output[_Me]);
2677
- }
2678
- return contents;
2679
- };
2680
- const de_UnsupportedProtocolException = (output, context) => {
2681
- const contents = {};
2682
- if (output[_Me] != null) {
2683
- contents[_Me] = __expectString(output[_Me]);
2684
- }
2685
- return contents;
2686
- };
2687
- const deserializeMetadata = (output) => ({
2688
- httpStatusCode: output.statusCode,
2689
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2690
- extendedRequestId: output.headers["x-amz-id-2"],
2691
- cfId: output.headers["x-amz-cf-id"],
2692
- });
2693
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2694
- const throwDefaultError = withBaseException(__BaseException);
2695
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2696
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2697
- const contents = {
2698
- protocol,
2699
- hostname,
2700
- port,
2701
- method: "POST",
2702
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2703
- headers,
2704
- };
2705
- if (resolvedHostname !== undefined) {
2706
- contents.hostname = resolvedHostname;
2707
- }
2708
- if (body !== undefined) {
2709
- contents.body = body;
2710
- }
2711
- return new __HttpRequest(contents);
2712
- };
2713
- const SHARED_HEADERS = {
2714
- "content-type": "application/x-www-form-urlencoded",
2715
- };
2716
- const _ = "2012-06-01";
2717
- const _A = "Action";
2718
- const _AA = "AdditionalAttributes";
2719
- const _ACSP = "AppCookieStickinessPolicies";
2720
- const _AL = "AccessLog";
2721
- const _ALBTS = "AttachLoadBalancerToSubnets";
2722
- const _AN = "AttributeName";
2723
- const _ASGTLB = "ApplySecurityGroupsToLoadBalancer";
2724
- const _AT = "AddTags";
2725
- const _ATt = "AttributeType";
2726
- const _AV = "AttributeValue";
2727
- const _AZ = "AvailabilityZones";
2728
- const _BSD = "BackendServerDescriptions";
2729
- const _C = "Cardinality";
2730
- const _CACSP = "CreateAppCookieStickinessPolicy";
2731
- const _CD = "ConnectionDraining";
2732
- const _CEP = "CookieExpirationPeriod";
2733
- const _CHC = "ConfigureHealthCheck";
2734
- const _CHZN = "CanonicalHostedZoneName";
2735
- const _CHZNID = "CanonicalHostedZoneNameID";
2736
- const _CLB = "CreateLoadBalancer";
2737
- const _CLBCSP = "CreateLBCookieStickinessPolicy";
2738
- const _CLBL = "CreateLoadBalancerListeners";
2739
- const _CLBP = "CreateLoadBalancerPolicy";
2740
- const _CN = "CookieName";
2741
- const _CS = "ConnectionSettings";
2742
- const _CT = "CreatedTime";
2743
- const _CZLB = "CrossZoneLoadBalancing";
2744
- const _D = "Description";
2745
- const _DAL = "DescribeAccountLimits";
2746
- const _DAZFLB = "DisableAvailabilityZonesForLoadBalancer";
2747
- const _DIFLB = "DeregisterInstancesFromLoadBalancer";
2748
- const _DIH = "DescribeInstanceHealth";
2749
- const _DLB = "DeleteLoadBalancer";
2750
- const _DLBA = "DescribeLoadBalancerAttributes";
2751
- const _DLBFS = "DetachLoadBalancerFromSubnets";
2752
- const _DLBL = "DeleteLoadBalancerListeners";
2753
- const _DLBP = "DeleteLoadBalancerPolicy";
2754
- const _DLBPT = "DescribeLoadBalancerPolicyTypes";
2755
- const _DLBPe = "DescribeLoadBalancerPolicies";
2756
- const _DLBe = "DescribeLoadBalancers";
2757
- const _DNSN = "DNSName";
2758
- const _DT = "DescribeTags";
2759
- const _DV = "DefaultValue";
2760
- const _E = "Enabled";
2761
- const _EAZFLB = "EnableAvailabilityZonesForLoadBalancer";
2762
- const _EI = "EmitInterval";
2763
- const _GN = "GroupName";
2764
- const _HC = "HealthCheck";
2765
- const _HT = "HealthyThreshold";
2766
- const _I = "Instances";
2767
- const _II = "InstanceId";
2768
- const _IP = "InstanceProtocol";
2769
- const _IPn = "InstancePort";
2770
- const _IS = "InstanceStates";
2771
- const _IT = "IdleTimeout";
2772
- const _In = "Interval";
2773
- const _K = "Key";
2774
- const _L = "Listeners";
2775
- const _LBA = "LoadBalancerAttributes";
2776
- const _LBCSP = "LBCookieStickinessPolicies";
2777
- const _LBD = "LoadBalancerDescriptions";
2778
- const _LBN = "LoadBalancerName";
2779
- const _LBNo = "LoadBalancerNames";
2780
- const _LBP = "LoadBalancerPorts";
2781
- const _LBPo = "LoadBalancerPort";
2782
- const _LD = "ListenerDescriptions";
2783
- const _Li = "Limits";
2784
- const _Lis = "Listener";
2785
- const _M = "Marker";
2786
- const _MLBA = "ModifyLoadBalancerAttributes";
2787
- const _Ma = "Max";
2788
- const _Me = "Message";
2789
- const _N = "Name";
2790
- const _NM = "NextMarker";
2791
- const _OA = "OwnerAlias";
2792
- const _OP = "OtherPolicies";
2793
- const _P = "Protocol";
2794
- const _PA = "PolicyAttributes";
2795
- const _PAD = "PolicyAttributeDescriptions";
2796
- const _PATD = "PolicyAttributeTypeDescriptions";
2797
- const _PD = "PolicyDescriptions";
2798
- const _PN = "PolicyName";
2799
- const _PNo = "PolicyNames";
2800
- const _PS = "PageSize";
2801
- const _PTD = "PolicyTypeDescriptions";
2802
- const _PTN = "PolicyTypeName";
2803
- const _PTNo = "PolicyTypeNames";
2804
- const _Po = "Policies";
2805
- const _RC = "ReasonCode";
2806
- const _RIWLB = "RegisterInstancesWithLoadBalancer";
2807
- const _RT = "RemoveTags";
2808
- const _S = "Subnets";
2809
- const _SBN = "S3BucketName";
2810
- const _SBP = "S3BucketPrefix";
2811
- const _SG = "SecurityGroups";
2812
- const _SLBLSSLC = "SetLoadBalancerListenerSSLCertificate";
2813
- const _SLBPFBS = "SetLoadBalancerPoliciesForBackendServer";
2814
- const _SLBPOL = "SetLoadBalancerPoliciesOfListener";
2815
- const _SSG = "SourceSecurityGroup";
2816
- const _SSLCI = "SSLCertificateId";
2817
- const _Sc = "Scheme";
2818
- const _St = "State";
2819
- const _T = "Tags";
2820
- const _TD = "TagDescriptions";
2821
- const _Ta = "Target";
2822
- const _Ti = "Timeout";
2823
- const _UT = "UnhealthyThreshold";
2824
- const _V = "Version";
2825
- const _VPCI = "VPCId";
2826
- const _Va = "Value";
2827
- const _m = "member";
2828
- const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
2829
- .map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
2830
- .join("&");
2831
- const loadQueryErrorCode = (output, data) => {
2832
- if (data.Error?.Code !== undefined) {
2833
- return data.Error.Code;
2834
- }
2835
- if (output.statusCode == 404) {
2836
- return "NotFound";
2837
- }
2838
- };