@aws-sdk/client-elastic-load-balancing-v2 3.201.0 → 3.202.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** aws-query protocol, distinguish explicit empty list ([#4003](https://github.com/aws/aws-sdk-js-v3/issues/4003)) ([8e10769](https://github.com/aws/aws-sdk-js-v3/commit/8e10769b6146f93c0674686fa547290292714917))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
7
18
 
8
19
 
@@ -2350,6 +2350,9 @@ const serializeAws_queryAddListenerCertificatesInput = (input, context) => {
2350
2350
  }
2351
2351
  if (input.Certificates != null) {
2352
2352
  const memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
2353
+ if (input.Certificates?.length === 0) {
2354
+ entries.Certificates = [];
2355
+ }
2353
2356
  Object.entries(memberEntries).forEach(([key, value]) => {
2354
2357
  const loc = `Certificates.${key}`;
2355
2358
  entries[loc] = value;
@@ -2361,6 +2364,9 @@ const serializeAws_queryAddTagsInput = (input, context) => {
2361
2364
  const entries = {};
2362
2365
  if (input.ResourceArns != null) {
2363
2366
  const memberEntries = serializeAws_queryResourceArns(input.ResourceArns, context);
2367
+ if (input.ResourceArns?.length === 0) {
2368
+ entries.ResourceArns = [];
2369
+ }
2364
2370
  Object.entries(memberEntries).forEach(([key, value]) => {
2365
2371
  const loc = `ResourceArns.${key}`;
2366
2372
  entries[loc] = value;
@@ -2368,6 +2374,9 @@ const serializeAws_queryAddTagsInput = (input, context) => {
2368
2374
  }
2369
2375
  if (input.Tags != null) {
2370
2376
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2377
+ if (input.Tags?.length === 0) {
2378
+ entries.Tags = [];
2379
+ }
2371
2380
  Object.entries(memberEntries).forEach(([key, value]) => {
2372
2381
  const loc = `Tags.${key}`;
2373
2382
  entries[loc] = value;
@@ -2528,6 +2537,9 @@ const serializeAws_queryCreateListenerInput = (input, context) => {
2528
2537
  }
2529
2538
  if (input.Certificates != null) {
2530
2539
  const memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
2540
+ if (input.Certificates?.length === 0) {
2541
+ entries.Certificates = [];
2542
+ }
2531
2543
  Object.entries(memberEntries).forEach(([key, value]) => {
2532
2544
  const loc = `Certificates.${key}`;
2533
2545
  entries[loc] = value;
@@ -2535,6 +2547,9 @@ const serializeAws_queryCreateListenerInput = (input, context) => {
2535
2547
  }
2536
2548
  if (input.DefaultActions != null) {
2537
2549
  const memberEntries = serializeAws_queryActions(input.DefaultActions, context);
2550
+ if (input.DefaultActions?.length === 0) {
2551
+ entries.DefaultActions = [];
2552
+ }
2538
2553
  Object.entries(memberEntries).forEach(([key, value]) => {
2539
2554
  const loc = `DefaultActions.${key}`;
2540
2555
  entries[loc] = value;
@@ -2542,6 +2557,9 @@ const serializeAws_queryCreateListenerInput = (input, context) => {
2542
2557
  }
2543
2558
  if (input.AlpnPolicy != null) {
2544
2559
  const memberEntries = serializeAws_queryAlpnPolicyName(input.AlpnPolicy, context);
2560
+ if (input.AlpnPolicy?.length === 0) {
2561
+ entries.AlpnPolicy = [];
2562
+ }
2545
2563
  Object.entries(memberEntries).forEach(([key, value]) => {
2546
2564
  const loc = `AlpnPolicy.${key}`;
2547
2565
  entries[loc] = value;
@@ -2549,6 +2567,9 @@ const serializeAws_queryCreateListenerInput = (input, context) => {
2549
2567
  }
2550
2568
  if (input.Tags != null) {
2551
2569
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2570
+ if (input.Tags?.length === 0) {
2571
+ entries.Tags = [];
2572
+ }
2552
2573
  Object.entries(memberEntries).forEach(([key, value]) => {
2553
2574
  const loc = `Tags.${key}`;
2554
2575
  entries[loc] = value;
@@ -2563,6 +2584,9 @@ const serializeAws_queryCreateLoadBalancerInput = (input, context) => {
2563
2584
  }
2564
2585
  if (input.Subnets != null) {
2565
2586
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
2587
+ if (input.Subnets?.length === 0) {
2588
+ entries.Subnets = [];
2589
+ }
2566
2590
  Object.entries(memberEntries).forEach(([key, value]) => {
2567
2591
  const loc = `Subnets.${key}`;
2568
2592
  entries[loc] = value;
@@ -2570,6 +2594,9 @@ const serializeAws_queryCreateLoadBalancerInput = (input, context) => {
2570
2594
  }
2571
2595
  if (input.SubnetMappings != null) {
2572
2596
  const memberEntries = serializeAws_querySubnetMappings(input.SubnetMappings, context);
2597
+ if (input.SubnetMappings?.length === 0) {
2598
+ entries.SubnetMappings = [];
2599
+ }
2573
2600
  Object.entries(memberEntries).forEach(([key, value]) => {
2574
2601
  const loc = `SubnetMappings.${key}`;
2575
2602
  entries[loc] = value;
@@ -2577,6 +2604,9 @@ const serializeAws_queryCreateLoadBalancerInput = (input, context) => {
2577
2604
  }
2578
2605
  if (input.SecurityGroups != null) {
2579
2606
  const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
2607
+ if (input.SecurityGroups?.length === 0) {
2608
+ entries.SecurityGroups = [];
2609
+ }
2580
2610
  Object.entries(memberEntries).forEach(([key, value]) => {
2581
2611
  const loc = `SecurityGroups.${key}`;
2582
2612
  entries[loc] = value;
@@ -2587,6 +2617,9 @@ const serializeAws_queryCreateLoadBalancerInput = (input, context) => {
2587
2617
  }
2588
2618
  if (input.Tags != null) {
2589
2619
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2620
+ if (input.Tags?.length === 0) {
2621
+ entries.Tags = [];
2622
+ }
2590
2623
  Object.entries(memberEntries).forEach(([key, value]) => {
2591
2624
  const loc = `Tags.${key}`;
2592
2625
  entries[loc] = value;
@@ -2610,6 +2643,9 @@ const serializeAws_queryCreateRuleInput = (input, context) => {
2610
2643
  }
2611
2644
  if (input.Conditions != null) {
2612
2645
  const memberEntries = serializeAws_queryRuleConditionList(input.Conditions, context);
2646
+ if (input.Conditions?.length === 0) {
2647
+ entries.Conditions = [];
2648
+ }
2613
2649
  Object.entries(memberEntries).forEach(([key, value]) => {
2614
2650
  const loc = `Conditions.${key}`;
2615
2651
  entries[loc] = value;
@@ -2620,6 +2656,9 @@ const serializeAws_queryCreateRuleInput = (input, context) => {
2620
2656
  }
2621
2657
  if (input.Actions != null) {
2622
2658
  const memberEntries = serializeAws_queryActions(input.Actions, context);
2659
+ if (input.Actions?.length === 0) {
2660
+ entries.Actions = [];
2661
+ }
2623
2662
  Object.entries(memberEntries).forEach(([key, value]) => {
2624
2663
  const loc = `Actions.${key}`;
2625
2664
  entries[loc] = value;
@@ -2627,6 +2666,9 @@ const serializeAws_queryCreateRuleInput = (input, context) => {
2627
2666
  }
2628
2667
  if (input.Tags != null) {
2629
2668
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2669
+ if (input.Tags?.length === 0) {
2670
+ entries.Tags = [];
2671
+ }
2630
2672
  Object.entries(memberEntries).forEach(([key, value]) => {
2631
2673
  const loc = `Tags.${key}`;
2632
2674
  entries[loc] = value;
@@ -2687,6 +2729,9 @@ const serializeAws_queryCreateTargetGroupInput = (input, context) => {
2687
2729
  }
2688
2730
  if (input.Tags != null) {
2689
2731
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2732
+ if (input.Tags?.length === 0) {
2733
+ entries.Tags = [];
2734
+ }
2690
2735
  Object.entries(memberEntries).forEach(([key, value]) => {
2691
2736
  const loc = `Tags.${key}`;
2692
2737
  entries[loc] = value;
@@ -2732,6 +2777,9 @@ const serializeAws_queryDeregisterTargetsInput = (input, context) => {
2732
2777
  }
2733
2778
  if (input.Targets != null) {
2734
2779
  const memberEntries = serializeAws_queryTargetDescriptions(input.Targets, context);
2780
+ if (input.Targets?.length === 0) {
2781
+ entries.Targets = [];
2782
+ }
2735
2783
  Object.entries(memberEntries).forEach(([key, value]) => {
2736
2784
  const loc = `Targets.${key}`;
2737
2785
  entries[loc] = value;
@@ -2769,6 +2817,9 @@ const serializeAws_queryDescribeListenersInput = (input, context) => {
2769
2817
  }
2770
2818
  if (input.ListenerArns != null) {
2771
2819
  const memberEntries = serializeAws_queryListenerArns(input.ListenerArns, context);
2820
+ if (input.ListenerArns?.length === 0) {
2821
+ entries.ListenerArns = [];
2822
+ }
2772
2823
  Object.entries(memberEntries).forEach(([key, value]) => {
2773
2824
  const loc = `ListenerArns.${key}`;
2774
2825
  entries[loc] = value;
@@ -2793,6 +2844,9 @@ const serializeAws_queryDescribeLoadBalancersInput = (input, context) => {
2793
2844
  const entries = {};
2794
2845
  if (input.LoadBalancerArns != null) {
2795
2846
  const memberEntries = serializeAws_queryLoadBalancerArns(input.LoadBalancerArns, context);
2847
+ if (input.LoadBalancerArns?.length === 0) {
2848
+ entries.LoadBalancerArns = [];
2849
+ }
2796
2850
  Object.entries(memberEntries).forEach(([key, value]) => {
2797
2851
  const loc = `LoadBalancerArns.${key}`;
2798
2852
  entries[loc] = value;
@@ -2800,6 +2854,9 @@ const serializeAws_queryDescribeLoadBalancersInput = (input, context) => {
2800
2854
  }
2801
2855
  if (input.Names != null) {
2802
2856
  const memberEntries = serializeAws_queryLoadBalancerNames(input.Names, context);
2857
+ if (input.Names?.length === 0) {
2858
+ entries.Names = [];
2859
+ }
2803
2860
  Object.entries(memberEntries).forEach(([key, value]) => {
2804
2861
  const loc = `Names.${key}`;
2805
2862
  entries[loc] = value;
@@ -2820,6 +2877,9 @@ const serializeAws_queryDescribeRulesInput = (input, context) => {
2820
2877
  }
2821
2878
  if (input.RuleArns != null) {
2822
2879
  const memberEntries = serializeAws_queryRuleArns(input.RuleArns, context);
2880
+ if (input.RuleArns?.length === 0) {
2881
+ entries.RuleArns = [];
2882
+ }
2823
2883
  Object.entries(memberEntries).forEach(([key, value]) => {
2824
2884
  const loc = `RuleArns.${key}`;
2825
2885
  entries[loc] = value;
@@ -2837,6 +2897,9 @@ const serializeAws_queryDescribeSSLPoliciesInput = (input, context) => {
2837
2897
  const entries = {};
2838
2898
  if (input.Names != null) {
2839
2899
  const memberEntries = serializeAws_querySslPolicyNames(input.Names, context);
2900
+ if (input.Names?.length === 0) {
2901
+ entries.Names = [];
2902
+ }
2840
2903
  Object.entries(memberEntries).forEach(([key, value]) => {
2841
2904
  const loc = `Names.${key}`;
2842
2905
  entries[loc] = value;
@@ -2857,6 +2920,9 @@ const serializeAws_queryDescribeTagsInput = (input, context) => {
2857
2920
  const entries = {};
2858
2921
  if (input.ResourceArns != null) {
2859
2922
  const memberEntries = serializeAws_queryResourceArns(input.ResourceArns, context);
2923
+ if (input.ResourceArns?.length === 0) {
2924
+ entries.ResourceArns = [];
2925
+ }
2860
2926
  Object.entries(memberEntries).forEach(([key, value]) => {
2861
2927
  const loc = `ResourceArns.${key}`;
2862
2928
  entries[loc] = value;
@@ -2878,6 +2944,9 @@ const serializeAws_queryDescribeTargetGroupsInput = (input, context) => {
2878
2944
  }
2879
2945
  if (input.TargetGroupArns != null) {
2880
2946
  const memberEntries = serializeAws_queryTargetGroupArns(input.TargetGroupArns, context);
2947
+ if (input.TargetGroupArns?.length === 0) {
2948
+ entries.TargetGroupArns = [];
2949
+ }
2881
2950
  Object.entries(memberEntries).forEach(([key, value]) => {
2882
2951
  const loc = `TargetGroupArns.${key}`;
2883
2952
  entries[loc] = value;
@@ -2885,6 +2954,9 @@ const serializeAws_queryDescribeTargetGroupsInput = (input, context) => {
2885
2954
  }
2886
2955
  if (input.Names != null) {
2887
2956
  const memberEntries = serializeAws_queryTargetGroupNames(input.Names, context);
2957
+ if (input.Names?.length === 0) {
2958
+ entries.Names = [];
2959
+ }
2888
2960
  Object.entries(memberEntries).forEach(([key, value]) => {
2889
2961
  const loc = `Names.${key}`;
2890
2962
  entries[loc] = value;
@@ -2905,6 +2977,9 @@ const serializeAws_queryDescribeTargetHealthInput = (input, context) => {
2905
2977
  }
2906
2978
  if (input.Targets != null) {
2907
2979
  const memberEntries = serializeAws_queryTargetDescriptions(input.Targets, context);
2980
+ if (input.Targets?.length === 0) {
2981
+ entries.Targets = [];
2982
+ }
2908
2983
  Object.entries(memberEntries).forEach(([key, value]) => {
2909
2984
  const loc = `Targets.${key}`;
2910
2985
  entries[loc] = value;
@@ -2929,6 +3004,9 @@ const serializeAws_queryForwardActionConfig = (input, context) => {
2929
3004
  const entries = {};
2930
3005
  if (input.TargetGroups != null) {
2931
3006
  const memberEntries = serializeAws_queryTargetGroupList(input.TargetGroups, context);
3007
+ if (input.TargetGroups?.length === 0) {
3008
+ entries.TargetGroups = [];
3009
+ }
2932
3010
  Object.entries(memberEntries).forEach(([key, value]) => {
2933
3011
  const loc = `TargetGroups.${key}`;
2934
3012
  entries[loc] = value;
@@ -2947,6 +3025,9 @@ const serializeAws_queryHostHeaderConditionConfig = (input, context) => {
2947
3025
  const entries = {};
2948
3026
  if (input.Values != null) {
2949
3027
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
3028
+ if (input.Values?.length === 0) {
3029
+ entries.Values = [];
3030
+ }
2950
3031
  Object.entries(memberEntries).forEach(([key, value]) => {
2951
3032
  const loc = `Values.${key}`;
2952
3033
  entries[loc] = value;
@@ -2961,6 +3042,9 @@ const serializeAws_queryHttpHeaderConditionConfig = (input, context) => {
2961
3042
  }
2962
3043
  if (input.Values != null) {
2963
3044
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
3045
+ if (input.Values?.length === 0) {
3046
+ entries.Values = [];
3047
+ }
2964
3048
  Object.entries(memberEntries).forEach(([key, value]) => {
2965
3049
  const loc = `Values.${key}`;
2966
3050
  entries[loc] = value;
@@ -2972,6 +3056,9 @@ const serializeAws_queryHttpRequestMethodConditionConfig = (input, context) => {
2972
3056
  const entries = {};
2973
3057
  if (input.Values != null) {
2974
3058
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
3059
+ if (input.Values?.length === 0) {
3060
+ entries.Values = [];
3061
+ }
2975
3062
  Object.entries(memberEntries).forEach(([key, value]) => {
2976
3063
  const loc = `Values.${key}`;
2977
3064
  entries[loc] = value;
@@ -3078,6 +3165,9 @@ const serializeAws_queryModifyListenerInput = (input, context) => {
3078
3165
  }
3079
3166
  if (input.Certificates != null) {
3080
3167
  const memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
3168
+ if (input.Certificates?.length === 0) {
3169
+ entries.Certificates = [];
3170
+ }
3081
3171
  Object.entries(memberEntries).forEach(([key, value]) => {
3082
3172
  const loc = `Certificates.${key}`;
3083
3173
  entries[loc] = value;
@@ -3085,6 +3175,9 @@ const serializeAws_queryModifyListenerInput = (input, context) => {
3085
3175
  }
3086
3176
  if (input.DefaultActions != null) {
3087
3177
  const memberEntries = serializeAws_queryActions(input.DefaultActions, context);
3178
+ if (input.DefaultActions?.length === 0) {
3179
+ entries.DefaultActions = [];
3180
+ }
3088
3181
  Object.entries(memberEntries).forEach(([key, value]) => {
3089
3182
  const loc = `DefaultActions.${key}`;
3090
3183
  entries[loc] = value;
@@ -3092,6 +3185,9 @@ const serializeAws_queryModifyListenerInput = (input, context) => {
3092
3185
  }
3093
3186
  if (input.AlpnPolicy != null) {
3094
3187
  const memberEntries = serializeAws_queryAlpnPolicyName(input.AlpnPolicy, context);
3188
+ if (input.AlpnPolicy?.length === 0) {
3189
+ entries.AlpnPolicy = [];
3190
+ }
3095
3191
  Object.entries(memberEntries).forEach(([key, value]) => {
3096
3192
  const loc = `AlpnPolicy.${key}`;
3097
3193
  entries[loc] = value;
@@ -3106,6 +3202,9 @@ const serializeAws_queryModifyLoadBalancerAttributesInput = (input, context) =>
3106
3202
  }
3107
3203
  if (input.Attributes != null) {
3108
3204
  const memberEntries = serializeAws_queryLoadBalancerAttributes(input.Attributes, context);
3205
+ if (input.Attributes?.length === 0) {
3206
+ entries.Attributes = [];
3207
+ }
3109
3208
  Object.entries(memberEntries).forEach(([key, value]) => {
3110
3209
  const loc = `Attributes.${key}`;
3111
3210
  entries[loc] = value;
@@ -3120,6 +3219,9 @@ const serializeAws_queryModifyRuleInput = (input, context) => {
3120
3219
  }
3121
3220
  if (input.Conditions != null) {
3122
3221
  const memberEntries = serializeAws_queryRuleConditionList(input.Conditions, context);
3222
+ if (input.Conditions?.length === 0) {
3223
+ entries.Conditions = [];
3224
+ }
3123
3225
  Object.entries(memberEntries).forEach(([key, value]) => {
3124
3226
  const loc = `Conditions.${key}`;
3125
3227
  entries[loc] = value;
@@ -3127,6 +3229,9 @@ const serializeAws_queryModifyRuleInput = (input, context) => {
3127
3229
  }
3128
3230
  if (input.Actions != null) {
3129
3231
  const memberEntries = serializeAws_queryActions(input.Actions, context);
3232
+ if (input.Actions?.length === 0) {
3233
+ entries.Actions = [];
3234
+ }
3130
3235
  Object.entries(memberEntries).forEach(([key, value]) => {
3131
3236
  const loc = `Actions.${key}`;
3132
3237
  entries[loc] = value;
@@ -3141,6 +3246,9 @@ const serializeAws_queryModifyTargetGroupAttributesInput = (input, context) => {
3141
3246
  }
3142
3247
  if (input.Attributes != null) {
3143
3248
  const memberEntries = serializeAws_queryTargetGroupAttributes(input.Attributes, context);
3249
+ if (input.Attributes?.length === 0) {
3250
+ entries.Attributes = [];
3251
+ }
3144
3252
  Object.entries(memberEntries).forEach(([key, value]) => {
3145
3253
  const loc = `Attributes.${key}`;
3146
3254
  entries[loc] = value;
@@ -3190,6 +3298,9 @@ const serializeAws_queryPathPatternConditionConfig = (input, context) => {
3190
3298
  const entries = {};
3191
3299
  if (input.Values != null) {
3192
3300
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
3301
+ if (input.Values?.length === 0) {
3302
+ entries.Values = [];
3303
+ }
3193
3304
  Object.entries(memberEntries).forEach(([key, value]) => {
3194
3305
  const loc = `Values.${key}`;
3195
3306
  entries[loc] = value;
@@ -3201,6 +3312,9 @@ const serializeAws_queryQueryStringConditionConfig = (input, context) => {
3201
3312
  const entries = {};
3202
3313
  if (input.Values != null) {
3203
3314
  const memberEntries = serializeAws_queryQueryStringKeyValuePairList(input.Values, context);
3315
+ if (input.Values?.length === 0) {
3316
+ entries.Values = [];
3317
+ }
3204
3318
  Object.entries(memberEntries).forEach(([key, value]) => {
3205
3319
  const loc = `Values.${key}`;
3206
3320
  entries[loc] = value;
@@ -3262,6 +3376,9 @@ const serializeAws_queryRegisterTargetsInput = (input, context) => {
3262
3376
  }
3263
3377
  if (input.Targets != null) {
3264
3378
  const memberEntries = serializeAws_queryTargetDescriptions(input.Targets, context);
3379
+ if (input.Targets?.length === 0) {
3380
+ entries.Targets = [];
3381
+ }
3265
3382
  Object.entries(memberEntries).forEach(([key, value]) => {
3266
3383
  const loc = `Targets.${key}`;
3267
3384
  entries[loc] = value;
@@ -3276,6 +3393,9 @@ const serializeAws_queryRemoveListenerCertificatesInput = (input, context) => {
3276
3393
  }
3277
3394
  if (input.Certificates != null) {
3278
3395
  const memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
3396
+ if (input.Certificates?.length === 0) {
3397
+ entries.Certificates = [];
3398
+ }
3279
3399
  Object.entries(memberEntries).forEach(([key, value]) => {
3280
3400
  const loc = `Certificates.${key}`;
3281
3401
  entries[loc] = value;
@@ -3287,6 +3407,9 @@ const serializeAws_queryRemoveTagsInput = (input, context) => {
3287
3407
  const entries = {};
3288
3408
  if (input.ResourceArns != null) {
3289
3409
  const memberEntries = serializeAws_queryResourceArns(input.ResourceArns, context);
3410
+ if (input.ResourceArns?.length === 0) {
3411
+ entries.ResourceArns = [];
3412
+ }
3290
3413
  Object.entries(memberEntries).forEach(([key, value]) => {
3291
3414
  const loc = `ResourceArns.${key}`;
3292
3415
  entries[loc] = value;
@@ -3294,6 +3417,9 @@ const serializeAws_queryRemoveTagsInput = (input, context) => {
3294
3417
  }
3295
3418
  if (input.TagKeys != null) {
3296
3419
  const memberEntries = serializeAws_queryTagKeys(input.TagKeys, context);
3420
+ if (input.TagKeys?.length === 0) {
3421
+ entries.TagKeys = [];
3422
+ }
3297
3423
  Object.entries(memberEntries).forEach(([key, value]) => {
3298
3424
  const loc = `TagKeys.${key}`;
3299
3425
  entries[loc] = value;
@@ -3332,6 +3458,9 @@ const serializeAws_queryRuleCondition = (input, context) => {
3332
3458
  }
3333
3459
  if (input.Values != null) {
3334
3460
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
3461
+ if (input.Values?.length === 0) {
3462
+ entries.Values = [];
3463
+ }
3335
3464
  Object.entries(memberEntries).forEach(([key, value]) => {
3336
3465
  const loc = `Values.${key}`;
3337
3466
  entries[loc] = value;
@@ -3447,6 +3576,9 @@ const serializeAws_querySetRulePrioritiesInput = (input, context) => {
3447
3576
  const entries = {};
3448
3577
  if (input.RulePriorities != null) {
3449
3578
  const memberEntries = serializeAws_queryRulePriorityList(input.RulePriorities, context);
3579
+ if (input.RulePriorities?.length === 0) {
3580
+ entries.RulePriorities = [];
3581
+ }
3450
3582
  Object.entries(memberEntries).forEach(([key, value]) => {
3451
3583
  const loc = `RulePriorities.${key}`;
3452
3584
  entries[loc] = value;
@@ -3461,6 +3593,9 @@ const serializeAws_querySetSecurityGroupsInput = (input, context) => {
3461
3593
  }
3462
3594
  if (input.SecurityGroups != null) {
3463
3595
  const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
3596
+ if (input.SecurityGroups?.length === 0) {
3597
+ entries.SecurityGroups = [];
3598
+ }
3464
3599
  Object.entries(memberEntries).forEach(([key, value]) => {
3465
3600
  const loc = `SecurityGroups.${key}`;
3466
3601
  entries[loc] = value;
@@ -3475,6 +3610,9 @@ const serializeAws_querySetSubnetsInput = (input, context) => {
3475
3610
  }
3476
3611
  if (input.Subnets != null) {
3477
3612
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
3613
+ if (input.Subnets?.length === 0) {
3614
+ entries.Subnets = [];
3615
+ }
3478
3616
  Object.entries(memberEntries).forEach(([key, value]) => {
3479
3617
  const loc = `Subnets.${key}`;
3480
3618
  entries[loc] = value;
@@ -3482,6 +3620,9 @@ const serializeAws_querySetSubnetsInput = (input, context) => {
3482
3620
  }
3483
3621
  if (input.SubnetMappings != null) {
3484
3622
  const memberEntries = serializeAws_querySubnetMappings(input.SubnetMappings, context);
3623
+ if (input.SubnetMappings?.length === 0) {
3624
+ entries.SubnetMappings = [];
3625
+ }
3485
3626
  Object.entries(memberEntries).forEach(([key, value]) => {
3486
3627
  const loc = `SubnetMappings.${key}`;
3487
3628
  entries[loc] = value;
@@ -3496,6 +3637,9 @@ const serializeAws_querySourceIpConditionConfig = (input, context) => {
3496
3637
  const entries = {};
3497
3638
  if (input.Values != null) {
3498
3639
  const memberEntries = serializeAws_queryListOfString(input.Values, context);
3640
+ if (input.Values?.length === 0) {
3641
+ entries.Values = [];
3642
+ }
3499
3643
  Object.entries(memberEntries).forEach(([key, value]) => {
3500
3644
  const loc = `Values.${key}`;
3501
3645
  entries[loc] = value;
@@ -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;
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.202.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,9 +19,9 @@
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.202.0",
23
23
  "@aws-sdk/config-resolver": "3.201.0",
24
- "@aws-sdk/credential-provider-node": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.202.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.201.0",
26
26
  "@aws-sdk/hash-node": "3.201.0",
27
27
  "@aws-sdk/invalid-dependency": "3.201.0",
@@ -47,7 +47,7 @@
47
47
  "@aws-sdk/util-body-length-node": "3.201.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
49
  "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
- "@aws-sdk/util-endpoints": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.202.0",
51
51
  "@aws-sdk/util-user-agent-browser": "3.201.0",
52
52
  "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",