@aws-sdk/client-elastic-load-balancing 3.200.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,28 @@
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
+
17
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
23
+
24
+
25
+
26
+
27
+
6
28
  # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
29
 
8
30
  **Note:** Version bump only for package @aws-sdk/client-elastic-load-balancing
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b;
6
5
  return {
7
6
  ...options,
8
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
10
9
  defaultSigningName: "elasticloadbalancing",
11
10
  };
12
11
  };
@@ -1735,6 +1735,9 @@ const serializeAws_queryAddAvailabilityZonesInput = (input, context) => {
1735
1735
  }
1736
1736
  if (input.AvailabilityZones != null) {
1737
1737
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
1738
+ if (input.AvailabilityZones?.length === 0) {
1739
+ entries.AvailabilityZones = [];
1740
+ }
1738
1741
  Object.entries(memberEntries).forEach(([key, value]) => {
1739
1742
  const loc = `AvailabilityZones.${key}`;
1740
1743
  entries[loc] = value;
@@ -1771,6 +1774,9 @@ const serializeAws_queryAddTagsInput = (input, context) => {
1771
1774
  const entries = {};
1772
1775
  if (input.LoadBalancerNames != null) {
1773
1776
  const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
1777
+ if (input.LoadBalancerNames?.length === 0) {
1778
+ entries.LoadBalancerNames = [];
1779
+ }
1774
1780
  Object.entries(memberEntries).forEach(([key, value]) => {
1775
1781
  const loc = `LoadBalancerNames.${key}`;
1776
1782
  entries[loc] = value;
@@ -1778,6 +1784,9 @@ const serializeAws_queryAddTagsInput = (input, context) => {
1778
1784
  }
1779
1785
  if (input.Tags != null) {
1780
1786
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
1787
+ if (input.Tags?.length === 0) {
1788
+ entries.Tags = [];
1789
+ }
1781
1790
  Object.entries(memberEntries).forEach(([key, value]) => {
1782
1791
  const loc = `Tags.${key}`;
1783
1792
  entries[loc] = value;
@@ -1792,6 +1801,9 @@ const serializeAws_queryApplySecurityGroupsToLoadBalancerInput = (input, context
1792
1801
  }
1793
1802
  if (input.SecurityGroups != null) {
1794
1803
  const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
1804
+ if (input.SecurityGroups?.length === 0) {
1805
+ entries.SecurityGroups = [];
1806
+ }
1795
1807
  Object.entries(memberEntries).forEach(([key, value]) => {
1796
1808
  const loc = `SecurityGroups.${key}`;
1797
1809
  entries[loc] = value;
@@ -1806,6 +1818,9 @@ const serializeAws_queryAttachLoadBalancerToSubnetsInput = (input, context) => {
1806
1818
  }
1807
1819
  if (input.Subnets != null) {
1808
1820
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
1821
+ if (input.Subnets?.length === 0) {
1822
+ entries.Subnets = [];
1823
+ }
1809
1824
  Object.entries(memberEntries).forEach(([key, value]) => {
1810
1825
  const loc = `Subnets.${key}`;
1811
1826
  entries[loc] = value;
@@ -1863,6 +1878,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1863
1878
  }
1864
1879
  if (input.Listeners != null) {
1865
1880
  const memberEntries = serializeAws_queryListeners(input.Listeners, context);
1881
+ if (input.Listeners?.length === 0) {
1882
+ entries.Listeners = [];
1883
+ }
1866
1884
  Object.entries(memberEntries).forEach(([key, value]) => {
1867
1885
  const loc = `Listeners.${key}`;
1868
1886
  entries[loc] = value;
@@ -1870,6 +1888,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1870
1888
  }
1871
1889
  if (input.AvailabilityZones != null) {
1872
1890
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
1891
+ if (input.AvailabilityZones?.length === 0) {
1892
+ entries.AvailabilityZones = [];
1893
+ }
1873
1894
  Object.entries(memberEntries).forEach(([key, value]) => {
1874
1895
  const loc = `AvailabilityZones.${key}`;
1875
1896
  entries[loc] = value;
@@ -1877,6 +1898,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1877
1898
  }
1878
1899
  if (input.Subnets != null) {
1879
1900
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
1901
+ if (input.Subnets?.length === 0) {
1902
+ entries.Subnets = [];
1903
+ }
1880
1904
  Object.entries(memberEntries).forEach(([key, value]) => {
1881
1905
  const loc = `Subnets.${key}`;
1882
1906
  entries[loc] = value;
@@ -1884,6 +1908,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1884
1908
  }
1885
1909
  if (input.SecurityGroups != null) {
1886
1910
  const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
1911
+ if (input.SecurityGroups?.length === 0) {
1912
+ entries.SecurityGroups = [];
1913
+ }
1887
1914
  Object.entries(memberEntries).forEach(([key, value]) => {
1888
1915
  const loc = `SecurityGroups.${key}`;
1889
1916
  entries[loc] = value;
@@ -1894,6 +1921,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1894
1921
  }
1895
1922
  if (input.Tags != null) {
1896
1923
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
1924
+ if (input.Tags?.length === 0) {
1925
+ entries.Tags = [];
1926
+ }
1897
1927
  Object.entries(memberEntries).forEach(([key, value]) => {
1898
1928
  const loc = `Tags.${key}`;
1899
1929
  entries[loc] = value;
@@ -1934,6 +1964,9 @@ const serializeAws_queryCreateLoadBalancerListenerInput = (input, context) => {
1934
1964
  }
1935
1965
  if (input.Listeners != null) {
1936
1966
  const memberEntries = serializeAws_queryListeners(input.Listeners, context);
1967
+ if (input.Listeners?.length === 0) {
1968
+ entries.Listeners = [];
1969
+ }
1937
1970
  Object.entries(memberEntries).forEach(([key, value]) => {
1938
1971
  const loc = `Listeners.${key}`;
1939
1972
  entries[loc] = value;
@@ -1954,6 +1987,9 @@ const serializeAws_queryCreateLoadBalancerPolicyInput = (input, context) => {
1954
1987
  }
1955
1988
  if (input.PolicyAttributes != null) {
1956
1989
  const memberEntries = serializeAws_queryPolicyAttributes(input.PolicyAttributes, context);
1990
+ if (input.PolicyAttributes?.length === 0) {
1991
+ entries.PolicyAttributes = [];
1992
+ }
1957
1993
  Object.entries(memberEntries).forEach(([key, value]) => {
1958
1994
  const loc = `PolicyAttributes.${key}`;
1959
1995
  entries[loc] = value;
@@ -1982,6 +2018,9 @@ const serializeAws_queryDeleteLoadBalancerListenerInput = (input, context) => {
1982
2018
  }
1983
2019
  if (input.LoadBalancerPorts != null) {
1984
2020
  const memberEntries = serializeAws_queryPorts(input.LoadBalancerPorts, context);
2021
+ if (input.LoadBalancerPorts?.length === 0) {
2022
+ entries.LoadBalancerPorts = [];
2023
+ }
1985
2024
  Object.entries(memberEntries).forEach(([key, value]) => {
1986
2025
  const loc = `LoadBalancerPorts.${key}`;
1987
2026
  entries[loc] = value;
@@ -2006,6 +2045,9 @@ const serializeAws_queryDeregisterEndPointsInput = (input, context) => {
2006
2045
  }
2007
2046
  if (input.Instances != null) {
2008
2047
  const memberEntries = serializeAws_queryInstances(input.Instances, context);
2048
+ if (input.Instances?.length === 0) {
2049
+ entries.Instances = [];
2050
+ }
2009
2051
  Object.entries(memberEntries).forEach(([key, value]) => {
2010
2052
  const loc = `Instances.${key}`;
2011
2053
  entries[loc] = value;
@@ -2017,6 +2059,9 @@ const serializeAws_queryDescribeAccessPointsInput = (input, context) => {
2017
2059
  const entries = {};
2018
2060
  if (input.LoadBalancerNames != null) {
2019
2061
  const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
2062
+ if (input.LoadBalancerNames?.length === 0) {
2063
+ entries.LoadBalancerNames = [];
2064
+ }
2020
2065
  Object.entries(memberEntries).forEach(([key, value]) => {
2021
2066
  const loc = `LoadBalancerNames.${key}`;
2022
2067
  entries[loc] = value;
@@ -2047,6 +2092,9 @@ const serializeAws_queryDescribeEndPointStateInput = (input, context) => {
2047
2092
  }
2048
2093
  if (input.Instances != null) {
2049
2094
  const memberEntries = serializeAws_queryInstances(input.Instances, context);
2095
+ if (input.Instances?.length === 0) {
2096
+ entries.Instances = [];
2097
+ }
2050
2098
  Object.entries(memberEntries).forEach(([key, value]) => {
2051
2099
  const loc = `Instances.${key}`;
2052
2100
  entries[loc] = value;
@@ -2068,6 +2116,9 @@ const serializeAws_queryDescribeLoadBalancerPoliciesInput = (input, context) =>
2068
2116
  }
2069
2117
  if (input.PolicyNames != null) {
2070
2118
  const memberEntries = serializeAws_queryPolicyNames(input.PolicyNames, context);
2119
+ if (input.PolicyNames?.length === 0) {
2120
+ entries.PolicyNames = [];
2121
+ }
2071
2122
  Object.entries(memberEntries).forEach(([key, value]) => {
2072
2123
  const loc = `PolicyNames.${key}`;
2073
2124
  entries[loc] = value;
@@ -2079,6 +2130,9 @@ const serializeAws_queryDescribeLoadBalancerPolicyTypesInput = (input, context)
2079
2130
  const entries = {};
2080
2131
  if (input.PolicyTypeNames != null) {
2081
2132
  const memberEntries = serializeAws_queryPolicyTypeNames(input.PolicyTypeNames, context);
2133
+ if (input.PolicyTypeNames?.length === 0) {
2134
+ entries.PolicyTypeNames = [];
2135
+ }
2082
2136
  Object.entries(memberEntries).forEach(([key, value]) => {
2083
2137
  const loc = `PolicyTypeNames.${key}`;
2084
2138
  entries[loc] = value;
@@ -2090,6 +2144,9 @@ const serializeAws_queryDescribeTagsInput = (input, context) => {
2090
2144
  const entries = {};
2091
2145
  if (input.LoadBalancerNames != null) {
2092
2146
  const memberEntries = serializeAws_queryLoadBalancerNamesMax20(input.LoadBalancerNames, context);
2147
+ if (input.LoadBalancerNames?.length === 0) {
2148
+ entries.LoadBalancerNames = [];
2149
+ }
2093
2150
  Object.entries(memberEntries).forEach(([key, value]) => {
2094
2151
  const loc = `LoadBalancerNames.${key}`;
2095
2152
  entries[loc] = value;
@@ -2104,6 +2161,9 @@ const serializeAws_queryDetachLoadBalancerFromSubnetsInput = (input, context) =>
2104
2161
  }
2105
2162
  if (input.Subnets != null) {
2106
2163
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
2164
+ if (input.Subnets?.length === 0) {
2165
+ entries.Subnets = [];
2166
+ }
2107
2167
  Object.entries(memberEntries).forEach(([key, value]) => {
2108
2168
  const loc = `Subnets.${key}`;
2109
2169
  entries[loc] = value;
@@ -2218,6 +2278,9 @@ const serializeAws_queryLoadBalancerAttributes = (input, context) => {
2218
2278
  }
2219
2279
  if (input.AdditionalAttributes != null) {
2220
2280
  const memberEntries = serializeAws_queryAdditionalAttributes(input.AdditionalAttributes, context);
2281
+ if (input.AdditionalAttributes?.length === 0) {
2282
+ entries.AdditionalAttributes = [];
2283
+ }
2221
2284
  Object.entries(memberEntries).forEach(([key, value]) => {
2222
2285
  const loc = `AdditionalAttributes.${key}`;
2223
2286
  entries[loc] = value;
@@ -2331,6 +2394,9 @@ const serializeAws_queryRegisterEndPointsInput = (input, context) => {
2331
2394
  }
2332
2395
  if (input.Instances != null) {
2333
2396
  const memberEntries = serializeAws_queryInstances(input.Instances, context);
2397
+ if (input.Instances?.length === 0) {
2398
+ entries.Instances = [];
2399
+ }
2334
2400
  Object.entries(memberEntries).forEach(([key, value]) => {
2335
2401
  const loc = `Instances.${key}`;
2336
2402
  entries[loc] = value;
@@ -2345,6 +2411,9 @@ const serializeAws_queryRemoveAvailabilityZonesInput = (input, context) => {
2345
2411
  }
2346
2412
  if (input.AvailabilityZones != null) {
2347
2413
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
2414
+ if (input.AvailabilityZones?.length === 0) {
2415
+ entries.AvailabilityZones = [];
2416
+ }
2348
2417
  Object.entries(memberEntries).forEach(([key, value]) => {
2349
2418
  const loc = `AvailabilityZones.${key}`;
2350
2419
  entries[loc] = value;
@@ -2356,6 +2425,9 @@ const serializeAws_queryRemoveTagsInput = (input, context) => {
2356
2425
  const entries = {};
2357
2426
  if (input.LoadBalancerNames != null) {
2358
2427
  const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
2428
+ if (input.LoadBalancerNames?.length === 0) {
2429
+ entries.LoadBalancerNames = [];
2430
+ }
2359
2431
  Object.entries(memberEntries).forEach(([key, value]) => {
2360
2432
  const loc = `LoadBalancerNames.${key}`;
2361
2433
  entries[loc] = value;
@@ -2363,6 +2435,9 @@ const serializeAws_queryRemoveTagsInput = (input, context) => {
2363
2435
  }
2364
2436
  if (input.Tags != null) {
2365
2437
  const memberEntries = serializeAws_queryTagKeyList(input.Tags, context);
2438
+ if (input.Tags?.length === 0) {
2439
+ entries.Tags = [];
2440
+ }
2366
2441
  Object.entries(memberEntries).forEach(([key, value]) => {
2367
2442
  const loc = `Tags.${key}`;
2368
2443
  entries[loc] = value;
@@ -2405,6 +2480,9 @@ const serializeAws_querySetLoadBalancerPoliciesForBackendServerInput = (input, c
2405
2480
  }
2406
2481
  if (input.PolicyNames != null) {
2407
2482
  const memberEntries = serializeAws_queryPolicyNames(input.PolicyNames, context);
2483
+ if (input.PolicyNames?.length === 0) {
2484
+ entries.PolicyNames = [];
2485
+ }
2408
2486
  Object.entries(memberEntries).forEach(([key, value]) => {
2409
2487
  const loc = `PolicyNames.${key}`;
2410
2488
  entries[loc] = value;
@@ -2422,6 +2500,9 @@ const serializeAws_querySetLoadBalancerPoliciesOfListenerInput = (input, context
2422
2500
  }
2423
2501
  if (input.PolicyNames != null) {
2424
2502
  const memberEntries = serializeAws_queryPolicyNames(input.PolicyNames, context);
2503
+ if (input.PolicyNames?.length === 0) {
2504
+ entries.PolicyNames = [];
2505
+ }
2425
2506
  Object.entries(memberEntries).forEach(([key, value]) => {
2426
2507
  const loc = `PolicyNames.${key}`;
2427
2508
  entries[loc] = value;
@@ -3555,15 +3636,12 @@ const deserializeAws_queryUnsupportedProtocolException = (output, context) => {
3555
3636
  }
3556
3637
  return contents;
3557
3638
  };
3558
- const deserializeMetadata = (output) => {
3559
- var _a, _b;
3560
- return ({
3561
- httpStatusCode: output.statusCode,
3562
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
3563
- extendedRequestId: output.headers["x-amz-id-2"],
3564
- cfId: output.headers["x-amz-cf-id"],
3565
- });
3566
- };
3639
+ const deserializeMetadata = (output) => ({
3640
+ httpStatusCode: output.statusCode,
3641
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3642
+ extendedRequestId: output.headers["x-amz-id-2"],
3643
+ cfId: output.headers["x-amz-cf-id"],
3644
+ });
3567
3645
  const collectBody = (streamBody = new Uint8Array(), context) => {
3568
3646
  if (streamBody instanceof Uint8Array) {
3569
3647
  return Promise.resolve(streamBody);
@@ -3615,10 +3693,9 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
3615
3693
  return {};
3616
3694
  });
3617
3695
  const parseErrorBody = async (errorBody, context) => {
3618
- var _a;
3619
3696
  const value = await parseBody(errorBody, context);
3620
3697
  if (value.Error) {
3621
- value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
3698
+ value.Error.message = value.Error.message ?? value.Error.Message;
3622
3699
  }
3623
3700
  return value;
3624
3701
  };
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (0, node_config_provider_1.loadConfig)({
42
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
+ }),
45
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2012-06-01",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Elastic Load Balancing",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2012-06-01",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "Elastic Load Balancing",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1673,6 +1673,9 @@ const serializeAws_queryAddAvailabilityZonesInput = (input, context) => {
1673
1673
  }
1674
1674
  if (input.AvailabilityZones != null) {
1675
1675
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
1676
+ if (input.AvailabilityZones?.length === 0) {
1677
+ entries.AvailabilityZones = [];
1678
+ }
1676
1679
  Object.entries(memberEntries).forEach(([key, value]) => {
1677
1680
  const loc = `AvailabilityZones.${key}`;
1678
1681
  entries[loc] = value;
@@ -1709,6 +1712,9 @@ const serializeAws_queryAddTagsInput = (input, context) => {
1709
1712
  const entries = {};
1710
1713
  if (input.LoadBalancerNames != null) {
1711
1714
  const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
1715
+ if (input.LoadBalancerNames?.length === 0) {
1716
+ entries.LoadBalancerNames = [];
1717
+ }
1712
1718
  Object.entries(memberEntries).forEach(([key, value]) => {
1713
1719
  const loc = `LoadBalancerNames.${key}`;
1714
1720
  entries[loc] = value;
@@ -1716,6 +1722,9 @@ const serializeAws_queryAddTagsInput = (input, context) => {
1716
1722
  }
1717
1723
  if (input.Tags != null) {
1718
1724
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
1725
+ if (input.Tags?.length === 0) {
1726
+ entries.Tags = [];
1727
+ }
1719
1728
  Object.entries(memberEntries).forEach(([key, value]) => {
1720
1729
  const loc = `Tags.${key}`;
1721
1730
  entries[loc] = value;
@@ -1730,6 +1739,9 @@ const serializeAws_queryApplySecurityGroupsToLoadBalancerInput = (input, context
1730
1739
  }
1731
1740
  if (input.SecurityGroups != null) {
1732
1741
  const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
1742
+ if (input.SecurityGroups?.length === 0) {
1743
+ entries.SecurityGroups = [];
1744
+ }
1733
1745
  Object.entries(memberEntries).forEach(([key, value]) => {
1734
1746
  const loc = `SecurityGroups.${key}`;
1735
1747
  entries[loc] = value;
@@ -1744,6 +1756,9 @@ const serializeAws_queryAttachLoadBalancerToSubnetsInput = (input, context) => {
1744
1756
  }
1745
1757
  if (input.Subnets != null) {
1746
1758
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
1759
+ if (input.Subnets?.length === 0) {
1760
+ entries.Subnets = [];
1761
+ }
1747
1762
  Object.entries(memberEntries).forEach(([key, value]) => {
1748
1763
  const loc = `Subnets.${key}`;
1749
1764
  entries[loc] = value;
@@ -1801,6 +1816,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1801
1816
  }
1802
1817
  if (input.Listeners != null) {
1803
1818
  const memberEntries = serializeAws_queryListeners(input.Listeners, context);
1819
+ if (input.Listeners?.length === 0) {
1820
+ entries.Listeners = [];
1821
+ }
1804
1822
  Object.entries(memberEntries).forEach(([key, value]) => {
1805
1823
  const loc = `Listeners.${key}`;
1806
1824
  entries[loc] = value;
@@ -1808,6 +1826,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1808
1826
  }
1809
1827
  if (input.AvailabilityZones != null) {
1810
1828
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
1829
+ if (input.AvailabilityZones?.length === 0) {
1830
+ entries.AvailabilityZones = [];
1831
+ }
1811
1832
  Object.entries(memberEntries).forEach(([key, value]) => {
1812
1833
  const loc = `AvailabilityZones.${key}`;
1813
1834
  entries[loc] = value;
@@ -1815,6 +1836,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1815
1836
  }
1816
1837
  if (input.Subnets != null) {
1817
1838
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
1839
+ if (input.Subnets?.length === 0) {
1840
+ entries.Subnets = [];
1841
+ }
1818
1842
  Object.entries(memberEntries).forEach(([key, value]) => {
1819
1843
  const loc = `Subnets.${key}`;
1820
1844
  entries[loc] = value;
@@ -1822,6 +1846,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1822
1846
  }
1823
1847
  if (input.SecurityGroups != null) {
1824
1848
  const memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
1849
+ if (input.SecurityGroups?.length === 0) {
1850
+ entries.SecurityGroups = [];
1851
+ }
1825
1852
  Object.entries(memberEntries).forEach(([key, value]) => {
1826
1853
  const loc = `SecurityGroups.${key}`;
1827
1854
  entries[loc] = value;
@@ -1832,6 +1859,9 @@ const serializeAws_queryCreateAccessPointInput = (input, context) => {
1832
1859
  }
1833
1860
  if (input.Tags != null) {
1834
1861
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
1862
+ if (input.Tags?.length === 0) {
1863
+ entries.Tags = [];
1864
+ }
1835
1865
  Object.entries(memberEntries).forEach(([key, value]) => {
1836
1866
  const loc = `Tags.${key}`;
1837
1867
  entries[loc] = value;
@@ -1872,6 +1902,9 @@ const serializeAws_queryCreateLoadBalancerListenerInput = (input, context) => {
1872
1902
  }
1873
1903
  if (input.Listeners != null) {
1874
1904
  const memberEntries = serializeAws_queryListeners(input.Listeners, context);
1905
+ if (input.Listeners?.length === 0) {
1906
+ entries.Listeners = [];
1907
+ }
1875
1908
  Object.entries(memberEntries).forEach(([key, value]) => {
1876
1909
  const loc = `Listeners.${key}`;
1877
1910
  entries[loc] = value;
@@ -1892,6 +1925,9 @@ const serializeAws_queryCreateLoadBalancerPolicyInput = (input, context) => {
1892
1925
  }
1893
1926
  if (input.PolicyAttributes != null) {
1894
1927
  const memberEntries = serializeAws_queryPolicyAttributes(input.PolicyAttributes, context);
1928
+ if (input.PolicyAttributes?.length === 0) {
1929
+ entries.PolicyAttributes = [];
1930
+ }
1895
1931
  Object.entries(memberEntries).forEach(([key, value]) => {
1896
1932
  const loc = `PolicyAttributes.${key}`;
1897
1933
  entries[loc] = value;
@@ -1920,6 +1956,9 @@ const serializeAws_queryDeleteLoadBalancerListenerInput = (input, context) => {
1920
1956
  }
1921
1957
  if (input.LoadBalancerPorts != null) {
1922
1958
  const memberEntries = serializeAws_queryPorts(input.LoadBalancerPorts, context);
1959
+ if (input.LoadBalancerPorts?.length === 0) {
1960
+ entries.LoadBalancerPorts = [];
1961
+ }
1923
1962
  Object.entries(memberEntries).forEach(([key, value]) => {
1924
1963
  const loc = `LoadBalancerPorts.${key}`;
1925
1964
  entries[loc] = value;
@@ -1944,6 +1983,9 @@ const serializeAws_queryDeregisterEndPointsInput = (input, context) => {
1944
1983
  }
1945
1984
  if (input.Instances != null) {
1946
1985
  const memberEntries = serializeAws_queryInstances(input.Instances, context);
1986
+ if (input.Instances?.length === 0) {
1987
+ entries.Instances = [];
1988
+ }
1947
1989
  Object.entries(memberEntries).forEach(([key, value]) => {
1948
1990
  const loc = `Instances.${key}`;
1949
1991
  entries[loc] = value;
@@ -1955,6 +1997,9 @@ const serializeAws_queryDescribeAccessPointsInput = (input, context) => {
1955
1997
  const entries = {};
1956
1998
  if (input.LoadBalancerNames != null) {
1957
1999
  const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
2000
+ if (input.LoadBalancerNames?.length === 0) {
2001
+ entries.LoadBalancerNames = [];
2002
+ }
1958
2003
  Object.entries(memberEntries).forEach(([key, value]) => {
1959
2004
  const loc = `LoadBalancerNames.${key}`;
1960
2005
  entries[loc] = value;
@@ -1985,6 +2030,9 @@ const serializeAws_queryDescribeEndPointStateInput = (input, context) => {
1985
2030
  }
1986
2031
  if (input.Instances != null) {
1987
2032
  const memberEntries = serializeAws_queryInstances(input.Instances, context);
2033
+ if (input.Instances?.length === 0) {
2034
+ entries.Instances = [];
2035
+ }
1988
2036
  Object.entries(memberEntries).forEach(([key, value]) => {
1989
2037
  const loc = `Instances.${key}`;
1990
2038
  entries[loc] = value;
@@ -2006,6 +2054,9 @@ const serializeAws_queryDescribeLoadBalancerPoliciesInput = (input, context) =>
2006
2054
  }
2007
2055
  if (input.PolicyNames != null) {
2008
2056
  const memberEntries = serializeAws_queryPolicyNames(input.PolicyNames, context);
2057
+ if (input.PolicyNames?.length === 0) {
2058
+ entries.PolicyNames = [];
2059
+ }
2009
2060
  Object.entries(memberEntries).forEach(([key, value]) => {
2010
2061
  const loc = `PolicyNames.${key}`;
2011
2062
  entries[loc] = value;
@@ -2017,6 +2068,9 @@ const serializeAws_queryDescribeLoadBalancerPolicyTypesInput = (input, context)
2017
2068
  const entries = {};
2018
2069
  if (input.PolicyTypeNames != null) {
2019
2070
  const memberEntries = serializeAws_queryPolicyTypeNames(input.PolicyTypeNames, context);
2071
+ if (input.PolicyTypeNames?.length === 0) {
2072
+ entries.PolicyTypeNames = [];
2073
+ }
2020
2074
  Object.entries(memberEntries).forEach(([key, value]) => {
2021
2075
  const loc = `PolicyTypeNames.${key}`;
2022
2076
  entries[loc] = value;
@@ -2028,6 +2082,9 @@ const serializeAws_queryDescribeTagsInput = (input, context) => {
2028
2082
  const entries = {};
2029
2083
  if (input.LoadBalancerNames != null) {
2030
2084
  const memberEntries = serializeAws_queryLoadBalancerNamesMax20(input.LoadBalancerNames, context);
2085
+ if (input.LoadBalancerNames?.length === 0) {
2086
+ entries.LoadBalancerNames = [];
2087
+ }
2031
2088
  Object.entries(memberEntries).forEach(([key, value]) => {
2032
2089
  const loc = `LoadBalancerNames.${key}`;
2033
2090
  entries[loc] = value;
@@ -2042,6 +2099,9 @@ const serializeAws_queryDetachLoadBalancerFromSubnetsInput = (input, context) =>
2042
2099
  }
2043
2100
  if (input.Subnets != null) {
2044
2101
  const memberEntries = serializeAws_querySubnets(input.Subnets, context);
2102
+ if (input.Subnets?.length === 0) {
2103
+ entries.Subnets = [];
2104
+ }
2045
2105
  Object.entries(memberEntries).forEach(([key, value]) => {
2046
2106
  const loc = `Subnets.${key}`;
2047
2107
  entries[loc] = value;
@@ -2156,6 +2216,9 @@ const serializeAws_queryLoadBalancerAttributes = (input, context) => {
2156
2216
  }
2157
2217
  if (input.AdditionalAttributes != null) {
2158
2218
  const memberEntries = serializeAws_queryAdditionalAttributes(input.AdditionalAttributes, context);
2219
+ if (input.AdditionalAttributes?.length === 0) {
2220
+ entries.AdditionalAttributes = [];
2221
+ }
2159
2222
  Object.entries(memberEntries).forEach(([key, value]) => {
2160
2223
  const loc = `AdditionalAttributes.${key}`;
2161
2224
  entries[loc] = value;
@@ -2269,6 +2332,9 @@ const serializeAws_queryRegisterEndPointsInput = (input, context) => {
2269
2332
  }
2270
2333
  if (input.Instances != null) {
2271
2334
  const memberEntries = serializeAws_queryInstances(input.Instances, context);
2335
+ if (input.Instances?.length === 0) {
2336
+ entries.Instances = [];
2337
+ }
2272
2338
  Object.entries(memberEntries).forEach(([key, value]) => {
2273
2339
  const loc = `Instances.${key}`;
2274
2340
  entries[loc] = value;
@@ -2283,6 +2349,9 @@ const serializeAws_queryRemoveAvailabilityZonesInput = (input, context) => {
2283
2349
  }
2284
2350
  if (input.AvailabilityZones != null) {
2285
2351
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
2352
+ if (input.AvailabilityZones?.length === 0) {
2353
+ entries.AvailabilityZones = [];
2354
+ }
2286
2355
  Object.entries(memberEntries).forEach(([key, value]) => {
2287
2356
  const loc = `AvailabilityZones.${key}`;
2288
2357
  entries[loc] = value;
@@ -2294,6 +2363,9 @@ const serializeAws_queryRemoveTagsInput = (input, context) => {
2294
2363
  const entries = {};
2295
2364
  if (input.LoadBalancerNames != null) {
2296
2365
  const memberEntries = serializeAws_queryLoadBalancerNames(input.LoadBalancerNames, context);
2366
+ if (input.LoadBalancerNames?.length === 0) {
2367
+ entries.LoadBalancerNames = [];
2368
+ }
2297
2369
  Object.entries(memberEntries).forEach(([key, value]) => {
2298
2370
  const loc = `LoadBalancerNames.${key}`;
2299
2371
  entries[loc] = value;
@@ -2301,6 +2373,9 @@ const serializeAws_queryRemoveTagsInput = (input, context) => {
2301
2373
  }
2302
2374
  if (input.Tags != null) {
2303
2375
  const memberEntries = serializeAws_queryTagKeyList(input.Tags, context);
2376
+ if (input.Tags?.length === 0) {
2377
+ entries.Tags = [];
2378
+ }
2304
2379
  Object.entries(memberEntries).forEach(([key, value]) => {
2305
2380
  const loc = `Tags.${key}`;
2306
2381
  entries[loc] = value;
@@ -2343,6 +2418,9 @@ const serializeAws_querySetLoadBalancerPoliciesForBackendServerInput = (input, c
2343
2418
  }
2344
2419
  if (input.PolicyNames != null) {
2345
2420
  const memberEntries = serializeAws_queryPolicyNames(input.PolicyNames, context);
2421
+ if (input.PolicyNames?.length === 0) {
2422
+ entries.PolicyNames = [];
2423
+ }
2346
2424
  Object.entries(memberEntries).forEach(([key, value]) => {
2347
2425
  const loc = `PolicyNames.${key}`;
2348
2426
  entries[loc] = value;
@@ -2360,6 +2438,9 @@ const serializeAws_querySetLoadBalancerPoliciesOfListenerInput = (input, context
2360
2438
  }
2361
2439
  if (input.PolicyNames != null) {
2362
2440
  const memberEntries = serializeAws_queryPolicyNames(input.PolicyNames, context);
2441
+ if (input.PolicyNames?.length === 0) {
2442
+ entries.PolicyNames = [];
2443
+ }
2363
2444
  Object.entries(memberEntries).forEach(([key, value]) => {
2364
2445
  const loc = `PolicyNames.${key}`;
2365
2446
  entries[loc] = value;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elastic-load-balancing",
3
3
  "description": "AWS SDK for JavaScript Elastic Load Balancing Client for Node.js, Browser and React Native",
4
- "version": "3.200.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,46 +19,46 @@
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.200.0",
23
- "@aws-sdk/config-resolver": "3.200.0",
24
- "@aws-sdk/credential-provider-node": "3.200.0",
25
- "@aws-sdk/fetch-http-handler": "3.200.0",
26
- "@aws-sdk/hash-node": "3.200.0",
27
- "@aws-sdk/invalid-dependency": "3.200.0",
28
- "@aws-sdk/middleware-content-length": "3.200.0",
29
- "@aws-sdk/middleware-endpoint": "3.200.0",
30
- "@aws-sdk/middleware-host-header": "3.200.0",
31
- "@aws-sdk/middleware-logger": "3.200.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
33
- "@aws-sdk/middleware-retry": "3.200.0",
34
- "@aws-sdk/middleware-serde": "3.200.0",
35
- "@aws-sdk/middleware-signing": "3.200.0",
36
- "@aws-sdk/middleware-stack": "3.200.0",
37
- "@aws-sdk/middleware-user-agent": "3.200.0",
38
- "@aws-sdk/node-config-provider": "3.200.0",
39
- "@aws-sdk/node-http-handler": "3.200.0",
40
- "@aws-sdk/protocol-http": "3.200.0",
41
- "@aws-sdk/smithy-client": "3.200.0",
42
- "@aws-sdk/types": "3.200.0",
43
- "@aws-sdk/url-parser": "3.200.0",
22
+ "@aws-sdk/client-sts": "3.202.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.202.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
50
- "@aws-sdk/util-endpoints": "3.200.0",
51
- "@aws-sdk/util-user-agent-browser": "3.200.0",
52
- "@aws-sdk/util-user-agent-node": "3.200.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.202.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
55
- "@aws-sdk/util-waiter": "3.200.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
+ "@aws-sdk/util-waiter": "3.201.0",
56
56
  "fast-xml-parser": "4.0.11",
57
57
  "tslib": "^2.3.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
61
- "@tsconfig/recommended": "1.0.1",
61
+ "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^12.7.5",
63
63
  "concurrently": "7.0.0",
64
64
  "downlevel-dts": "0.10.1",
@@ -72,7 +72,7 @@
72
72
  }
73
73
  },
74
74
  "engines": {
75
- "node": ">=12.0.0"
75
+ "node": ">=14.0.0"
76
76
  },
77
77
  "typesVersions": {
78
78
  "<4.0": {