@aws-sdk/client-elastic-load-balancing-v2 3.201.0 → 3.204.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.
@@ -2278,6 +2278,9 @@ const serializeAws_queryAddListenerCertificatesInput = (input, context) => {
2278
2278
  }
2279
2279
  if (input.Certificates != null) {
2280
2280
  const memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
2281
+ if (input.Certificates?.length === 0) {
2282
+ entries.Certificates = [];
2283
+ }
2281
2284
  Object.entries(memberEntries).forEach(([key, value]) => {
2282
2285
  const loc = `Certificates.${key}`;
2283
2286
  entries[loc] = value;
@@ -2289,6 +2292,9 @@ const serializeAws_queryAddTagsInput = (input, context) => {
2289
2292
  const entries = {};
2290
2293
  if (input.ResourceArns != null) {
2291
2294
  const memberEntries = serializeAws_queryResourceArns(input.ResourceArns, context);
2295
+ if (input.ResourceArns?.length === 0) {
2296
+ entries.ResourceArns = [];
2297
+ }
2292
2298
  Object.entries(memberEntries).forEach(([key, value]) => {
2293
2299
  const loc = `ResourceArns.${key}`;
2294
2300
  entries[loc] = value;
@@ -2296,6 +2302,9 @@ const serializeAws_queryAddTagsInput = (input, context) => {
2296
2302
  }
2297
2303
  if (input.Tags != null) {
2298
2304
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2305
+ if (input.Tags?.length === 0) {
2306
+ entries.Tags = [];
2307
+ }
2299
2308
  Object.entries(memberEntries).forEach(([key, value]) => {
2300
2309
  const loc = `Tags.${key}`;
2301
2310
  entries[loc] = value;
@@ -2456,6 +2465,9 @@ const serializeAws_queryCreateListenerInput = (input, context) => {
2456
2465
  }
2457
2466
  if (input.Certificates != null) {
2458
2467
  const memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
2468
+ if (input.Certificates?.length === 0) {
2469
+ entries.Certificates = [];
2470
+ }
2459
2471
  Object.entries(memberEntries).forEach(([key, value]) => {
2460
2472
  const loc = `Certificates.${key}`;
2461
2473
  entries[loc] = value;
@@ -2463,6 +2475,9 @@ const serializeAws_queryCreateListenerInput = (input, context) => {
2463
2475
  }
2464
2476
  if (input.DefaultActions != null) {
2465
2477
  const memberEntries = serializeAws_queryActions(input.DefaultActions, context);
2478
+ if (input.DefaultActions?.length === 0) {
2479
+ entries.DefaultActions = [];
2480
+ }
2466
2481
  Object.entries(memberEntries).forEach(([key, value]) => {
2467
2482
  const loc = `DefaultActions.${key}`;
2468
2483
  entries[loc] = value;
@@ -2470,6 +2485,9 @@ const serializeAws_queryCreateListenerInput = (input, context) => {
2470
2485
  }
2471
2486
  if (input.AlpnPolicy != null) {
2472
2487
  const memberEntries = serializeAws_queryAlpnPolicyName(input.AlpnPolicy, context);
2488
+ if (input.AlpnPolicy?.length === 0) {
2489
+ entries.AlpnPolicy = [];
2490
+ }
2473
2491
  Object.entries(memberEntries).forEach(([key, value]) => {
2474
2492
  const loc = `AlpnPolicy.${key}`;
2475
2493
  entries[loc] = value;
@@ -2477,6 +2495,9 @@ const serializeAws_queryCreateListenerInput = (input, context) => {
2477
2495
  }
2478
2496
  if (input.Tags != null) {
2479
2497
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2498
+ if (input.Tags?.length === 0) {
2499
+ entries.Tags = [];
2500
+ }
2480
2501
  Object.entries(memberEntries).forEach(([key, value]) => {
2481
2502
  const loc = `Tags.${key}`;
2482
2503
  entries[loc] = value;
@@ -2491,6 +2512,9 @@ const serializeAws_queryCreateLoadBalancerInput = (input, context) => {
2491
2512
  }
2492
2513
  if (input.Subnets != null) {
2493
2514
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
2515
+ if (input.Subnets?.length === 0) {
2516
+ entries.Subnets = [];
2517
+ }
2494
2518
  Object.entries(memberEntries).forEach(([key, value]) => {
2495
2519
  const loc = `Subnets.${key}`;
2496
2520
  entries[loc] = value;
@@ -2498,6 +2522,9 @@ const serializeAws_queryCreateLoadBalancerInput = (input, context) => {
2498
2522
  }
2499
2523
  if (input.SubnetMappings != null) {
2500
2524
  const memberEntries = serializeAws_querySubnetMappings(input.SubnetMappings, context);
2525
+ if (input.SubnetMappings?.length === 0) {
2526
+ entries.SubnetMappings = [];
2527
+ }
2501
2528
  Object.entries(memberEntries).forEach(([key, value]) => {
2502
2529
  const loc = `SubnetMappings.${key}`;
2503
2530
  entries[loc] = value;
@@ -2505,6 +2532,9 @@ const serializeAws_queryCreateLoadBalancerInput = (input, context) => {
2505
2532
  }
2506
2533
  if (input.SecurityGroups != null) {
2507
2534
  const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
2535
+ if (input.SecurityGroups?.length === 0) {
2536
+ entries.SecurityGroups = [];
2537
+ }
2508
2538
  Object.entries(memberEntries).forEach(([key, value]) => {
2509
2539
  const loc = `SecurityGroups.${key}`;
2510
2540
  entries[loc] = value;
@@ -2515,6 +2545,9 @@ const serializeAws_queryCreateLoadBalancerInput = (input, context) => {
2515
2545
  }
2516
2546
  if (input.Tags != null) {
2517
2547
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2548
+ if (input.Tags?.length === 0) {
2549
+ entries.Tags = [];
2550
+ }
2518
2551
  Object.entries(memberEntries).forEach(([key, value]) => {
2519
2552
  const loc = `Tags.${key}`;
2520
2553
  entries[loc] = value;
@@ -2538,6 +2571,9 @@ const serializeAws_queryCreateRuleInput = (input, context) => {
2538
2571
  }
2539
2572
  if (input.Conditions != null) {
2540
2573
  const memberEntries = serializeAws_queryRuleConditionList(input.Conditions, context);
2574
+ if (input.Conditions?.length === 0) {
2575
+ entries.Conditions = [];
2576
+ }
2541
2577
  Object.entries(memberEntries).forEach(([key, value]) => {
2542
2578
  const loc = `Conditions.${key}`;
2543
2579
  entries[loc] = value;
@@ -2548,6 +2584,9 @@ const serializeAws_queryCreateRuleInput = (input, context) => {
2548
2584
  }
2549
2585
  if (input.Actions != null) {
2550
2586
  const memberEntries = serializeAws_queryActions(input.Actions, context);
2587
+ if (input.Actions?.length === 0) {
2588
+ entries.Actions = [];
2589
+ }
2551
2590
  Object.entries(memberEntries).forEach(([key, value]) => {
2552
2591
  const loc = `Actions.${key}`;
2553
2592
  entries[loc] = value;
@@ -2555,6 +2594,9 @@ const serializeAws_queryCreateRuleInput = (input, context) => {
2555
2594
  }
2556
2595
  if (input.Tags != null) {
2557
2596
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2597
+ if (input.Tags?.length === 0) {
2598
+ entries.Tags = [];
2599
+ }
2558
2600
  Object.entries(memberEntries).forEach(([key, value]) => {
2559
2601
  const loc = `Tags.${key}`;
2560
2602
  entries[loc] = value;
@@ -2615,6 +2657,9 @@ const serializeAws_queryCreateTargetGroupInput = (input, context) => {
2615
2657
  }
2616
2658
  if (input.Tags != null) {
2617
2659
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2660
+ if (input.Tags?.length === 0) {
2661
+ entries.Tags = [];
2662
+ }
2618
2663
  Object.entries(memberEntries).forEach(([key, value]) => {
2619
2664
  const loc = `Tags.${key}`;
2620
2665
  entries[loc] = value;
@@ -2660,6 +2705,9 @@ const serializeAws_queryDeregisterTargetsInput = (input, context) => {
2660
2705
  }
2661
2706
  if (input.Targets != null) {
2662
2707
  const memberEntries = serializeAws_queryTargetDescriptions(input.Targets, context);
2708
+ if (input.Targets?.length === 0) {
2709
+ entries.Targets = [];
2710
+ }
2663
2711
  Object.entries(memberEntries).forEach(([key, value]) => {
2664
2712
  const loc = `Targets.${key}`;
2665
2713
  entries[loc] = value;
@@ -2697,6 +2745,9 @@ const serializeAws_queryDescribeListenersInput = (input, context) => {
2697
2745
  }
2698
2746
  if (input.ListenerArns != null) {
2699
2747
  const memberEntries = serializeAws_queryListenerArns(input.ListenerArns, context);
2748
+ if (input.ListenerArns?.length === 0) {
2749
+ entries.ListenerArns = [];
2750
+ }
2700
2751
  Object.entries(memberEntries).forEach(([key, value]) => {
2701
2752
  const loc = `ListenerArns.${key}`;
2702
2753
  entries[loc] = value;
@@ -2721,6 +2772,9 @@ const serializeAws_queryDescribeLoadBalancersInput = (input, context) => {
2721
2772
  const entries = {};
2722
2773
  if (input.LoadBalancerArns != null) {
2723
2774
  const memberEntries = serializeAws_queryLoadBalancerArns(input.LoadBalancerArns, context);
2775
+ if (input.LoadBalancerArns?.length === 0) {
2776
+ entries.LoadBalancerArns = [];
2777
+ }
2724
2778
  Object.entries(memberEntries).forEach(([key, value]) => {
2725
2779
  const loc = `LoadBalancerArns.${key}`;
2726
2780
  entries[loc] = value;
@@ -2728,6 +2782,9 @@ const serializeAws_queryDescribeLoadBalancersInput = (input, context) => {
2728
2782
  }
2729
2783
  if (input.Names != null) {
2730
2784
  const memberEntries = serializeAws_queryLoadBalancerNames(input.Names, context);
2785
+ if (input.Names?.length === 0) {
2786
+ entries.Names = [];
2787
+ }
2731
2788
  Object.entries(memberEntries).forEach(([key, value]) => {
2732
2789
  const loc = `Names.${key}`;
2733
2790
  entries[loc] = value;
@@ -2748,6 +2805,9 @@ const serializeAws_queryDescribeRulesInput = (input, context) => {
2748
2805
  }
2749
2806
  if (input.RuleArns != null) {
2750
2807
  const memberEntries = serializeAws_queryRuleArns(input.RuleArns, context);
2808
+ if (input.RuleArns?.length === 0) {
2809
+ entries.RuleArns = [];
2810
+ }
2751
2811
  Object.entries(memberEntries).forEach(([key, value]) => {
2752
2812
  const loc = `RuleArns.${key}`;
2753
2813
  entries[loc] = value;
@@ -2765,6 +2825,9 @@ const serializeAws_queryDescribeSSLPoliciesInput = (input, context) => {
2765
2825
  const entries = {};
2766
2826
  if (input.Names != null) {
2767
2827
  const memberEntries = serializeAws_querySslPolicyNames(input.Names, context);
2828
+ if (input.Names?.length === 0) {
2829
+ entries.Names = [];
2830
+ }
2768
2831
  Object.entries(memberEntries).forEach(([key, value]) => {
2769
2832
  const loc = `Names.${key}`;
2770
2833
  entries[loc] = value;
@@ -2785,6 +2848,9 @@ const serializeAws_queryDescribeTagsInput = (input, context) => {
2785
2848
  const entries = {};
2786
2849
  if (input.ResourceArns != null) {
2787
2850
  const memberEntries = serializeAws_queryResourceArns(input.ResourceArns, context);
2851
+ if (input.ResourceArns?.length === 0) {
2852
+ entries.ResourceArns = [];
2853
+ }
2788
2854
  Object.entries(memberEntries).forEach(([key, value]) => {
2789
2855
  const loc = `ResourceArns.${key}`;
2790
2856
  entries[loc] = value;
@@ -2806,6 +2872,9 @@ const serializeAws_queryDescribeTargetGroupsInput = (input, context) => {
2806
2872
  }
2807
2873
  if (input.TargetGroupArns != null) {
2808
2874
  const memberEntries = serializeAws_queryTargetGroupArns(input.TargetGroupArns, context);
2875
+ if (input.TargetGroupArns?.length === 0) {
2876
+ entries.TargetGroupArns = [];
2877
+ }
2809
2878
  Object.entries(memberEntries).forEach(([key, value]) => {
2810
2879
  const loc = `TargetGroupArns.${key}`;
2811
2880
  entries[loc] = value;
@@ -2813,6 +2882,9 @@ const serializeAws_queryDescribeTargetGroupsInput = (input, context) => {
2813
2882
  }
2814
2883
  if (input.Names != null) {
2815
2884
  const memberEntries = serializeAws_queryTargetGroupNames(input.Names, context);
2885
+ if (input.Names?.length === 0) {
2886
+ entries.Names = [];
2887
+ }
2816
2888
  Object.entries(memberEntries).forEach(([key, value]) => {
2817
2889
  const loc = `Names.${key}`;
2818
2890
  entries[loc] = value;
@@ -2833,6 +2905,9 @@ const serializeAws_queryDescribeTargetHealthInput = (input, context) => {
2833
2905
  }
2834
2906
  if (input.Targets != null) {
2835
2907
  const memberEntries = serializeAws_queryTargetDescriptions(input.Targets, context);
2908
+ if (input.Targets?.length === 0) {
2909
+ entries.Targets = [];
2910
+ }
2836
2911
  Object.entries(memberEntries).forEach(([key, value]) => {
2837
2912
  const loc = `Targets.${key}`;
2838
2913
  entries[loc] = value;
@@ -2857,6 +2932,9 @@ const serializeAws_queryForwardActionConfig = (input, context) => {
2857
2932
  const entries = {};
2858
2933
  if (input.TargetGroups != null) {
2859
2934
  const memberEntries = serializeAws_queryTargetGroupList(input.TargetGroups, context);
2935
+ if (input.TargetGroups?.length === 0) {
2936
+ entries.TargetGroups = [];
2937
+ }
2860
2938
  Object.entries(memberEntries).forEach(([key, value]) => {
2861
2939
  const loc = `TargetGroups.${key}`;
2862
2940
  entries[loc] = value;
@@ -2875,6 +2953,9 @@ const serializeAws_queryHostHeaderConditionConfig = (input, context) => {
2875
2953
  const entries = {};
2876
2954
  if (input.Values != null) {
2877
2955
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
2956
+ if (input.Values?.length === 0) {
2957
+ entries.Values = [];
2958
+ }
2878
2959
  Object.entries(memberEntries).forEach(([key, value]) => {
2879
2960
  const loc = `Values.${key}`;
2880
2961
  entries[loc] = value;
@@ -2889,6 +2970,9 @@ const serializeAws_queryHttpHeaderConditionConfig = (input, context) => {
2889
2970
  }
2890
2971
  if (input.Values != null) {
2891
2972
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
2973
+ if (input.Values?.length === 0) {
2974
+ entries.Values = [];
2975
+ }
2892
2976
  Object.entries(memberEntries).forEach(([key, value]) => {
2893
2977
  const loc = `Values.${key}`;
2894
2978
  entries[loc] = value;
@@ -2900,6 +2984,9 @@ const serializeAws_queryHttpRequestMethodConditionConfig = (input, context) => {
2900
2984
  const entries = {};
2901
2985
  if (input.Values != null) {
2902
2986
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
2987
+ if (input.Values?.length === 0) {
2988
+ entries.Values = [];
2989
+ }
2903
2990
  Object.entries(memberEntries).forEach(([key, value]) => {
2904
2991
  const loc = `Values.${key}`;
2905
2992
  entries[loc] = value;
@@ -3006,6 +3093,9 @@ const serializeAws_queryModifyListenerInput = (input, context) => {
3006
3093
  }
3007
3094
  if (input.Certificates != null) {
3008
3095
  const memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
3096
+ if (input.Certificates?.length === 0) {
3097
+ entries.Certificates = [];
3098
+ }
3009
3099
  Object.entries(memberEntries).forEach(([key, value]) => {
3010
3100
  const loc = `Certificates.${key}`;
3011
3101
  entries[loc] = value;
@@ -3013,6 +3103,9 @@ const serializeAws_queryModifyListenerInput = (input, context) => {
3013
3103
  }
3014
3104
  if (input.DefaultActions != null) {
3015
3105
  const memberEntries = serializeAws_queryActions(input.DefaultActions, context);
3106
+ if (input.DefaultActions?.length === 0) {
3107
+ entries.DefaultActions = [];
3108
+ }
3016
3109
  Object.entries(memberEntries).forEach(([key, value]) => {
3017
3110
  const loc = `DefaultActions.${key}`;
3018
3111
  entries[loc] = value;
@@ -3020,6 +3113,9 @@ const serializeAws_queryModifyListenerInput = (input, context) => {
3020
3113
  }
3021
3114
  if (input.AlpnPolicy != null) {
3022
3115
  const memberEntries = serializeAws_queryAlpnPolicyName(input.AlpnPolicy, context);
3116
+ if (input.AlpnPolicy?.length === 0) {
3117
+ entries.AlpnPolicy = [];
3118
+ }
3023
3119
  Object.entries(memberEntries).forEach(([key, value]) => {
3024
3120
  const loc = `AlpnPolicy.${key}`;
3025
3121
  entries[loc] = value;
@@ -3034,6 +3130,9 @@ const serializeAws_queryModifyLoadBalancerAttributesInput = (input, context) =>
3034
3130
  }
3035
3131
  if (input.Attributes != null) {
3036
3132
  const memberEntries = serializeAws_queryLoadBalancerAttributes(input.Attributes, context);
3133
+ if (input.Attributes?.length === 0) {
3134
+ entries.Attributes = [];
3135
+ }
3037
3136
  Object.entries(memberEntries).forEach(([key, value]) => {
3038
3137
  const loc = `Attributes.${key}`;
3039
3138
  entries[loc] = value;
@@ -3048,6 +3147,9 @@ const serializeAws_queryModifyRuleInput = (input, context) => {
3048
3147
  }
3049
3148
  if (input.Conditions != null) {
3050
3149
  const memberEntries = serializeAws_queryRuleConditionList(input.Conditions, context);
3150
+ if (input.Conditions?.length === 0) {
3151
+ entries.Conditions = [];
3152
+ }
3051
3153
  Object.entries(memberEntries).forEach(([key, value]) => {
3052
3154
  const loc = `Conditions.${key}`;
3053
3155
  entries[loc] = value;
@@ -3055,6 +3157,9 @@ const serializeAws_queryModifyRuleInput = (input, context) => {
3055
3157
  }
3056
3158
  if (input.Actions != null) {
3057
3159
  const memberEntries = serializeAws_queryActions(input.Actions, context);
3160
+ if (input.Actions?.length === 0) {
3161
+ entries.Actions = [];
3162
+ }
3058
3163
  Object.entries(memberEntries).forEach(([key, value]) => {
3059
3164
  const loc = `Actions.${key}`;
3060
3165
  entries[loc] = value;
@@ -3069,6 +3174,9 @@ const serializeAws_queryModifyTargetGroupAttributesInput = (input, context) => {
3069
3174
  }
3070
3175
  if (input.Attributes != null) {
3071
3176
  const memberEntries = serializeAws_queryTargetGroupAttributes(input.Attributes, context);
3177
+ if (input.Attributes?.length === 0) {
3178
+ entries.Attributes = [];
3179
+ }
3072
3180
  Object.entries(memberEntries).forEach(([key, value]) => {
3073
3181
  const loc = `Attributes.${key}`;
3074
3182
  entries[loc] = value;
@@ -3118,6 +3226,9 @@ const serializeAws_queryPathPatternConditionConfig = (input, context) => {
3118
3226
  const entries = {};
3119
3227
  if (input.Values != null) {
3120
3228
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
3229
+ if (input.Values?.length === 0) {
3230
+ entries.Values = [];
3231
+ }
3121
3232
  Object.entries(memberEntries).forEach(([key, value]) => {
3122
3233
  const loc = `Values.${key}`;
3123
3234
  entries[loc] = value;
@@ -3129,6 +3240,9 @@ const serializeAws_queryQueryStringConditionConfig = (input, context) => {
3129
3240
  const entries = {};
3130
3241
  if (input.Values != null) {
3131
3242
  const memberEntries = serializeAws_queryQueryStringKeyValuePairList(input.Values, context);
3243
+ if (input.Values?.length === 0) {
3244
+ entries.Values = [];
3245
+ }
3132
3246
  Object.entries(memberEntries).forEach(([key, value]) => {
3133
3247
  const loc = `Values.${key}`;
3134
3248
  entries[loc] = value;
@@ -3190,6 +3304,9 @@ const serializeAws_queryRegisterTargetsInput = (input, context) => {
3190
3304
  }
3191
3305
  if (input.Targets != null) {
3192
3306
  const memberEntries = serializeAws_queryTargetDescriptions(input.Targets, context);
3307
+ if (input.Targets?.length === 0) {
3308
+ entries.Targets = [];
3309
+ }
3193
3310
  Object.entries(memberEntries).forEach(([key, value]) => {
3194
3311
  const loc = `Targets.${key}`;
3195
3312
  entries[loc] = value;
@@ -3204,6 +3321,9 @@ const serializeAws_queryRemoveListenerCertificatesInput = (input, context) => {
3204
3321
  }
3205
3322
  if (input.Certificates != null) {
3206
3323
  const memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
3324
+ if (input.Certificates?.length === 0) {
3325
+ entries.Certificates = [];
3326
+ }
3207
3327
  Object.entries(memberEntries).forEach(([key, value]) => {
3208
3328
  const loc = `Certificates.${key}`;
3209
3329
  entries[loc] = value;
@@ -3215,6 +3335,9 @@ const serializeAws_queryRemoveTagsInput = (input, context) => {
3215
3335
  const entries = {};
3216
3336
  if (input.ResourceArns != null) {
3217
3337
  const memberEntries = serializeAws_queryResourceArns(input.ResourceArns, context);
3338
+ if (input.ResourceArns?.length === 0) {
3339
+ entries.ResourceArns = [];
3340
+ }
3218
3341
  Object.entries(memberEntries).forEach(([key, value]) => {
3219
3342
  const loc = `ResourceArns.${key}`;
3220
3343
  entries[loc] = value;
@@ -3222,6 +3345,9 @@ const serializeAws_queryRemoveTagsInput = (input, context) => {
3222
3345
  }
3223
3346
  if (input.TagKeys != null) {
3224
3347
  const memberEntries = serializeAws_queryTagKeys(input.TagKeys, context);
3348
+ if (input.TagKeys?.length === 0) {
3349
+ entries.TagKeys = [];
3350
+ }
3225
3351
  Object.entries(memberEntries).forEach(([key, value]) => {
3226
3352
  const loc = `TagKeys.${key}`;
3227
3353
  entries[loc] = value;
@@ -3260,6 +3386,9 @@ const serializeAws_queryRuleCondition = (input, context) => {
3260
3386
  }
3261
3387
  if (input.Values != null) {
3262
3388
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
3389
+ if (input.Values?.length === 0) {
3390
+ entries.Values = [];
3391
+ }
3263
3392
  Object.entries(memberEntries).forEach(([key, value]) => {
3264
3393
  const loc = `Values.${key}`;
3265
3394
  entries[loc] = value;
@@ -3375,6 +3504,9 @@ const serializeAws_querySetRulePrioritiesInput = (input, context) => {
3375
3504
  const entries = {};
3376
3505
  if (input.RulePriorities != null) {
3377
3506
  const memberEntries = serializeAws_queryRulePriorityList(input.RulePriorities, context);
3507
+ if (input.RulePriorities?.length === 0) {
3508
+ entries.RulePriorities = [];
3509
+ }
3378
3510
  Object.entries(memberEntries).forEach(([key, value]) => {
3379
3511
  const loc = `RulePriorities.${key}`;
3380
3512
  entries[loc] = value;
@@ -3389,6 +3521,9 @@ const serializeAws_querySetSecurityGroupsInput = (input, context) => {
3389
3521
  }
3390
3522
  if (input.SecurityGroups != null) {
3391
3523
  const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
3524
+ if (input.SecurityGroups?.length === 0) {
3525
+ entries.SecurityGroups = [];
3526
+ }
3392
3527
  Object.entries(memberEntries).forEach(([key, value]) => {
3393
3528
  const loc = `SecurityGroups.${key}`;
3394
3529
  entries[loc] = value;
@@ -3403,6 +3538,9 @@ const serializeAws_querySetSubnetsInput = (input, context) => {
3403
3538
  }
3404
3539
  if (input.Subnets != null) {
3405
3540
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
3541
+ if (input.Subnets?.length === 0) {
3542
+ entries.Subnets = [];
3543
+ }
3406
3544
  Object.entries(memberEntries).forEach(([key, value]) => {
3407
3545
  const loc = `Subnets.${key}`;
3408
3546
  entries[loc] = value;
@@ -3410,6 +3548,9 @@ const serializeAws_querySetSubnetsInput = (input, context) => {
3410
3548
  }
3411
3549
  if (input.SubnetMappings != null) {
3412
3550
  const memberEntries = serializeAws_querySubnetMappings(input.SubnetMappings, context);
3551
+ if (input.SubnetMappings?.length === 0) {
3552
+ entries.SubnetMappings = [];
3553
+ }
3413
3554
  Object.entries(memberEntries).forEach(([key, value]) => {
3414
3555
  const loc = `SubnetMappings.${key}`;
3415
3556
  entries[loc] = value;
@@ -3424,6 +3565,9 @@ const serializeAws_querySourceIpConditionConfig = (input, context) => {
3424
3565
  const entries = {};
3425
3566
  if (input.Values != null) {
3426
3567
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
3568
+ if (input.Values?.length === 0) {
3569
+ entries.Values = [];
3570
+ }
3427
3571
  Object.entries(memberEntries).forEach(([key, value]) => {
3428
3572
  const loc = `Values.${key}`;
3429
3573
  entries[loc] = value;
@@ -4,7 +4,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-
4
4
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
6
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
7
- import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
8
7
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
8
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
9
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
@@ -20,8 +19,6 @@ export const getRuntimeConfig = (config) => {
20
19
  ...config,
21
20
  runtime: "browser",
22
21
  defaultsMode,
23
- base64Decoder: config?.base64Decoder ?? fromBase64,
24
- base64Encoder: config?.base64Encoder ?? toBase64,
25
22
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
23
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
24
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
6
6
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
7
7
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
8
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
- import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
10
9
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
11
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
12
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
@@ -24,8 +23,6 @@ export const getRuntimeConfig = (config) => {
24
23
  ...config,
25
24
  runtime: "node",
26
25
  defaultsMode,
27
- base64Decoder: config?.base64Decoder ?? fromBase64,
28
- base64Encoder: config?.base64Encoder ?? toBase64,
29
26
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -1,7 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
2
3
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
3
4
  export const getRuntimeConfig = (config) => ({
4
5
  apiVersion: "2015-12-01",
6
+ base64Decoder: config?.base64Decoder ?? fromBase64,
7
+ base64Encoder: config?.base64Encoder ?? toBase64,
5
8
  disableHostPrefix: config?.disableHostPrefix ?? false,
6
9
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
7
10
  logger: config?.logger ?? {},
@@ -6,8 +6,6 @@ import { ElasticLoadBalancingV2ClientConfig } from "./ElasticLoadBalancingV2Clie
6
6
  export declare const getRuntimeConfig: (config: ElasticLoadBalancingV2ClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
- base64Decoder: import("@aws-sdk/types").Decoder;
10
- base64Encoder: import("@aws-sdk/types").Encoder;
11
9
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
@@ -23,6 +21,8 @@ export declare const getRuntimeConfig: (config: ElasticLoadBalancingV2ClientConf
23
21
  utf8Encoder: import("@aws-sdk/types").Encoder;
24
22
  apiVersion: string;
25
23
  urlParser: import("@aws-sdk/types").UrlParser;
24
+ base64Decoder: import("@aws-sdk/types").Decoder;
25
+ base64Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -6,8 +6,6 @@ import { ElasticLoadBalancingV2ClientConfig } from "./ElasticLoadBalancingV2Clie
6
6
  export declare const getRuntimeConfig: (config: ElasticLoadBalancingV2ClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
- base64Decoder: import("@aws-sdk/types").Decoder;
10
- base64Encoder: import("@aws-sdk/types").Encoder;
11
9
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
@@ -23,6 +21,8 @@ export declare const getRuntimeConfig: (config: ElasticLoadBalancingV2ClientConf
23
21
  utf8Encoder: import("@aws-sdk/types").Encoder;
24
22
  apiVersion: string;
25
23
  urlParser: import("@aws-sdk/types").UrlParser;
24
+ base64Decoder: import("@aws-sdk/types").Decoder;
25
+ base64Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -5,6 +5,8 @@ import { ElasticLoadBalancingV2ClientConfig } from "./ElasticLoadBalancingV2Clie
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: ElasticLoadBalancingV2ClientConfig) => {
7
7
  apiVersion: string;
8
+ base64Decoder: import("@aws-sdk/types").Decoder;
9
+ base64Encoder: import("@aws-sdk/types").Encoder;
8
10
  disableHostPrefix: boolean;
9
11
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
10
12
  logger?: __Logger | undefined;
@@ -7,8 +7,6 @@ export declare const getRuntimeConfig: (
7
7
  defaultsMode: import("@aws-sdk/types").Provider<
8
8
  import("@aws-sdk/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
- base64Decoder: import("@aws-sdk/types").Decoder;
11
- base64Encoder: import("@aws-sdk/types").Encoder;
12
10
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
13
11
  credentialDefaultProvider: (
14
12
  input: any
@@ -35,6 +33,8 @@ export declare const getRuntimeConfig: (
35
33
  utf8Encoder: import("@aws-sdk/types").Encoder;
36
34
  apiVersion: string;
37
35
  urlParser: import("@aws-sdk/types").UrlParser;
36
+ base64Decoder: import("@aws-sdk/types").Decoder;
37
+ base64Encoder: import("@aws-sdk/types").Encoder;
38
38
  disableHostPrefix: boolean;
39
39
  logger: import("@aws-sdk/types").Logger;
40
40
  serviceId: string;
@@ -7,8 +7,6 @@ export declare const getRuntimeConfig: (
7
7
  defaultsMode: import("@aws-sdk/types").Provider<
8
8
  import("@aws-sdk/smithy-client").ResolvedDefaultsMode
9
9
  >;
10
- base64Decoder: import("@aws-sdk/types").Decoder;
11
- base64Encoder: import("@aws-sdk/types").Encoder;
12
10
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
13
11
  credentialDefaultProvider: (
14
12
  input: any
@@ -35,6 +33,8 @@ export declare const getRuntimeConfig: (
35
33
  utf8Encoder: import("@aws-sdk/types").Encoder;
36
34
  apiVersion: string;
37
35
  urlParser: import("@aws-sdk/types").UrlParser;
36
+ base64Decoder: import("@aws-sdk/types").Decoder;
37
+ base64Encoder: import("@aws-sdk/types").Encoder;
38
38
  disableHostPrefix: boolean;
39
39
  logger: import("@aws-sdk/types").Logger;
40
40
  serviceId: string;
@@ -4,6 +4,8 @@ export declare const getRuntimeConfig: (
4
4
  config: ElasticLoadBalancingV2ClientConfig
5
5
  ) => {
6
6
  apiVersion: string;
7
+ base64Decoder: import("@aws-sdk/types").Decoder;
8
+ base64Encoder: import("@aws-sdk/types").Encoder;
7
9
  disableHostPrefix: boolean;
8
10
  endpointProvider: (
9
11
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elastic-load-balancing-v2",
3
3
  "description": "AWS SDK for JavaScript Elastic Load Balancing V2 Client for Node.js, Browser and React Native",
4
- "version": "3.201.0",
4
+ "version": "3.204.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,10 +19,10 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.201.0",
22
+ "@aws-sdk/client-sts": "3.204.0",
23
23
  "@aws-sdk/config-resolver": "3.201.0",
24
- "@aws-sdk/credential-provider-node": "3.201.0",
25
- "@aws-sdk/fetch-http-handler": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.204.0",
25
+ "@aws-sdk/fetch-http-handler": "3.204.0",
26
26
  "@aws-sdk/hash-node": "3.201.0",
27
27
  "@aws-sdk/invalid-dependency": "3.201.0",
28
28
  "@aws-sdk/middleware-content-length": "3.201.0",
@@ -41,13 +41,14 @@
41
41
  "@aws-sdk/smithy-client": "3.201.0",
42
42
  "@aws-sdk/types": "3.201.0",
43
43
  "@aws-sdk/url-parser": "3.201.0",
44
+ "@aws-sdk/util-base64": "3.202.0",
44
45
  "@aws-sdk/util-base64-browser": "3.188.0",
45
46
  "@aws-sdk/util-base64-node": "3.201.0",
46
47
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
48
  "@aws-sdk/util-body-length-node": "3.201.0",
48
49
  "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
50
  "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
- "@aws-sdk/util-endpoints": "3.201.0",
51
+ "@aws-sdk/util-endpoints": "3.202.0",
51
52
  "@aws-sdk/util-user-agent-browser": "3.201.0",
52
53
  "@aws-sdk/util-user-agent-node": "3.201.0",
53
54
  "@aws-sdk/util-utf8-browser": "3.188.0",