@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.
- package/dist-cjs/protocols/Aws_query.js +144 -0
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/protocols/Aws_query.js +144 -0
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +6 -5
- package/CHANGELOG.md +0 -3244
|
@@ -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;
|
|
@@ -8,7 +8,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
8
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
-
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
@@ -24,8 +23,6 @@ const getRuntimeConfig = (config) => {
|
|
|
24
23
|
...config,
|
|
25
24
|
runtime: "browser",
|
|
26
25
|
defaultsMode,
|
|
27
|
-
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
26
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -10,7 +10,6 @@ const hash_node_1 = require("@aws-sdk/hash-node");
|
|
|
10
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
-
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
13
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
14
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
15
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
@@ -28,8 +27,6 @@ const getRuntimeConfig = (config) => {
|
|
|
28
27
|
...config,
|
|
29
28
|
runtime: "node",
|
|
30
29
|
defaultsMode,
|
|
31
|
-
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
-
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
30
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
31
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
32
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
5
6
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
7
|
const getRuntimeConfig = (config) => ({
|
|
7
8
|
apiVersion: "2015-12-01",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
8
11
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
12
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
13
|
logger: config?.logger ?? {},
|