@aws-sdk/client-elastic-load-balancing-v2 3.36.1 → 3.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/commands/index.js +37 -0
  3. package/dist-cjs/endpoints.js +130 -24
  4. package/dist-cjs/index.js +5 -45
  5. package/dist-cjs/models/models_0.js +8 -3
  6. package/dist-cjs/pagination/index.js +7 -0
  7. package/dist-cjs/protocols/Aws_query.js +18 -0
  8. package/dist-cjs/runtimeConfig.browser.js +6 -3
  9. package/dist-cjs/runtimeConfig.js +5 -3
  10. package/dist-cjs/waiters/index.js +8 -0
  11. package/dist-es/commands/index.js +34 -0
  12. package/dist-es/endpoints.js +130 -24
  13. package/dist-es/index.js +5 -45
  14. package/dist-es/models/models_0.js +5 -0
  15. package/dist-es/pagination/index.js +4 -0
  16. package/dist-es/protocols/Aws_query.js +18 -0
  17. package/dist-es/runtimeConfig.browser.js +3 -2
  18. package/dist-es/runtimeConfig.js +3 -3
  19. package/dist-es/waiters/index.js +5 -0
  20. package/dist-types/ElasticLoadBalancingV2Client.d.ts +8 -0
  21. package/dist-types/commands/index.d.ts +34 -0
  22. package/dist-types/index.d.ts +5 -45
  23. package/dist-types/models/models_0.d.ts +41 -12
  24. package/dist-types/pagination/index.d.ts +4 -0
  25. package/dist-types/runtimeConfig.browser.d.ts +3 -3
  26. package/dist-types/runtimeConfig.d.ts +2 -0
  27. package/dist-types/runtimeConfig.native.d.ts +2 -0
  28. package/dist-types/ts3.4/ElasticLoadBalancingV2Client.d.ts +4 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +34 -0
  30. package/dist-types/ts3.4/index.d.ts +5 -45
  31. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  35. package/dist-types/ts3.4/waiters/index.d.ts +5 -0
  36. package/dist-types/waiters/index.d.ts +5 -0
  37. package/package.json +33 -33
@@ -1,29 +1,77 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-us-east-1": {
5
- hostname: "elasticloadbalancing-fips.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
4
+ "us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "elasticloadbalancing.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "elasticloadbalancing-fips.us-east-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-us-east-2": {
9
- hostname: "elasticloadbalancing-fips.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
16
+ "us-east-2": {
17
+ variants: [
18
+ {
19
+ hostname: "elasticloadbalancing.us-east-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "elasticloadbalancing-fips.us-east-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-us-gov-east-1": {
13
- hostname: "elasticloadbalancing.us-gov-east-1.amazonaws.com",
14
- signingRegion: "us-gov-east-1",
28
+ "us-gov-east-1": {
29
+ variants: [
30
+ {
31
+ hostname: "elasticloadbalancing.us-gov-east-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "elasticloadbalancing.us-gov-east-1.amazonaws.com",
36
+ tags: ["fips"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-us-gov-west-1": {
17
- hostname: "elasticloadbalancing.us-gov-west-1.amazonaws.com",
18
- signingRegion: "us-gov-west-1",
40
+ "us-gov-west-1": {
41
+ variants: [
42
+ {
43
+ hostname: "elasticloadbalancing.us-gov-west-1.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "elasticloadbalancing.us-gov-west-1.amazonaws.com",
48
+ tags: ["fips"],
49
+ },
50
+ ],
19
51
  },
20
- "fips-us-west-1": {
21
- hostname: "elasticloadbalancing-fips.us-west-1.amazonaws.com",
22
- signingRegion: "us-west-1",
52
+ "us-west-1": {
53
+ variants: [
54
+ {
55
+ hostname: "elasticloadbalancing.us-west-1.amazonaws.com",
56
+ tags: [],
57
+ },
58
+ {
59
+ hostname: "elasticloadbalancing-fips.us-west-1.amazonaws.com",
60
+ tags: ["fips"],
61
+ },
62
+ ],
23
63
  },
24
- "fips-us-west-2": {
25
- hostname: "elasticloadbalancing-fips.us-west-2.amazonaws.com",
26
- signingRegion: "us-west-2",
64
+ "us-west-2": {
65
+ variants: [
66
+ {
67
+ hostname: "elasticloadbalancing.us-west-2.amazonaws.com",
68
+ tags: [],
69
+ },
70
+ {
71
+ hostname: "elasticloadbalancing-fips.us-west-2.amazonaws.com",
72
+ tags: ["fips"],
73
+ },
74
+ ],
27
75
  },
28
76
  };
29
77
  var partitionHash = {
@@ -55,23 +103,81 @@ var partitionHash = {
55
103
  "us-west-1",
56
104
  "us-west-2",
57
105
  ],
58
- hostname: "elasticloadbalancing.{region}.amazonaws.com",
106
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
107
+ variants: [
108
+ {
109
+ hostname: "elasticloadbalancing.{region}.amazonaws.com",
110
+ tags: [],
111
+ },
112
+ {
113
+ hostname: "elasticloadbalancing-fips.{region}.amazonaws.com",
114
+ tags: ["fips"],
115
+ },
116
+ {
117
+ hostname: "elasticloadbalancing-fips.{region}.api.aws",
118
+ tags: ["dualstack", "fips"],
119
+ },
120
+ {
121
+ hostname: "elasticloadbalancing.{region}.api.aws",
122
+ tags: ["dualstack"],
123
+ },
124
+ ],
59
125
  },
60
126
  "aws-cn": {
61
127
  regions: ["cn-north-1", "cn-northwest-1"],
62
- hostname: "elasticloadbalancing.{region}.amazonaws.com.cn",
128
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
129
+ variants: [
130
+ {
131
+ hostname: "elasticloadbalancing.{region}.amazonaws.com.cn",
132
+ tags: [],
133
+ },
134
+ {
135
+ hostname: "elasticloadbalancing-fips.{region}.amazonaws.com.cn",
136
+ tags: ["fips"],
137
+ },
138
+ {
139
+ hostname: "elasticloadbalancing-fips.{region}.api.amazonwebservices.com.cn",
140
+ tags: ["dualstack", "fips"],
141
+ },
142
+ {
143
+ hostname: "elasticloadbalancing.{region}.api.amazonwebservices.com.cn",
144
+ tags: ["dualstack"],
145
+ },
146
+ ],
63
147
  },
64
148
  "aws-iso": {
65
- regions: ["us-iso-east-1"],
66
- hostname: "elasticloadbalancing.{region}.c2s.ic.gov",
149
+ regions: ["us-iso-east-1", "us-iso-west-1"],
150
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
151
+ variants: [
152
+ {
153
+ hostname: "elasticloadbalancing.{region}.c2s.ic.gov",
154
+ tags: [],
155
+ },
156
+ ],
67
157
  },
68
158
  "aws-iso-b": {
69
159
  regions: ["us-isob-east-1"],
70
- hostname: "elasticloadbalancing.{region}.sc2s.sgov.gov",
160
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
161
+ variants: [
162
+ {
163
+ hostname: "elasticloadbalancing.{region}.sc2s.sgov.gov",
164
+ tags: [],
165
+ },
166
+ ],
71
167
  },
72
168
  "aws-us-gov": {
73
169
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
74
- hostname: "elasticloadbalancing.{region}.amazonaws.com",
170
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
171
+ variants: [
172
+ {
173
+ hostname: "elasticloadbalancing.{region}.amazonaws.com",
174
+ tags: [],
175
+ },
176
+ {
177
+ hostname: "elasticloadbalancing.{region}.amazonaws.com",
178
+ tags: ["fips"],
179
+ },
180
+ ],
75
181
  },
76
182
  };
77
183
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
package/dist-es/index.js CHANGED
@@ -1,46 +1,6 @@
1
- export * from "./ElasticLoadBalancingV2Client";
2
1
  export * from "./ElasticLoadBalancingV2";
3
- export * from "./commands/AddListenerCertificatesCommand";
4
- export * from "./commands/AddTagsCommand";
5
- export * from "./commands/CreateListenerCommand";
6
- export * from "./commands/CreateLoadBalancerCommand";
7
- export * from "./commands/CreateRuleCommand";
8
- export * from "./commands/CreateTargetGroupCommand";
9
- export * from "./commands/DeleteListenerCommand";
10
- export * from "./commands/DeleteLoadBalancerCommand";
11
- export * from "./commands/DeleteRuleCommand";
12
- export * from "./commands/DeleteTargetGroupCommand";
13
- export * from "./commands/DeregisterTargetsCommand";
14
- export * from "./commands/DescribeAccountLimitsCommand";
15
- export * from "./commands/DescribeListenerCertificatesCommand";
16
- export * from "./commands/DescribeListenersCommand";
17
- export * from "./pagination/DescribeListenersPaginator";
18
- export * from "./commands/DescribeLoadBalancerAttributesCommand";
19
- export * from "./commands/DescribeLoadBalancersCommand";
20
- export * from "./pagination/DescribeLoadBalancersPaginator";
21
- export * from "./waiters/waitForLoadBalancerAvailable";
22
- export * from "./waiters/waitForLoadBalancerExists";
23
- export * from "./waiters/waitForLoadBalancersDeleted";
24
- export * from "./commands/DescribeRulesCommand";
25
- export * from "./commands/DescribeSSLPoliciesCommand";
26
- export * from "./commands/DescribeTagsCommand";
27
- export * from "./commands/DescribeTargetGroupAttributesCommand";
28
- export * from "./commands/DescribeTargetGroupsCommand";
29
- export * from "./pagination/DescribeTargetGroupsPaginator";
30
- export * from "./commands/DescribeTargetHealthCommand";
31
- export * from "./waiters/waitForTargetDeregistered";
32
- export * from "./waiters/waitForTargetInService";
33
- export * from "./commands/ModifyListenerCommand";
34
- export * from "./commands/ModifyLoadBalancerAttributesCommand";
35
- export * from "./commands/ModifyRuleCommand";
36
- export * from "./commands/ModifyTargetGroupCommand";
37
- export * from "./commands/ModifyTargetGroupAttributesCommand";
38
- export * from "./commands/RegisterTargetsCommand";
39
- export * from "./commands/RemoveListenerCertificatesCommand";
40
- export * from "./commands/RemoveTagsCommand";
41
- export * from "./commands/SetIpAddressTypeCommand";
42
- export * from "./commands/SetRulePrioritiesCommand";
43
- export * from "./commands/SetSecurityGroupsCommand";
44
- export * from "./commands/SetSubnetsCommand";
45
- export * from "./pagination/Interfaces";
46
- export * from "./models/index";
2
+ export * from "./ElasticLoadBalancingV2Client";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -327,6 +327,11 @@ export var TooManyTargetGroupsException;
327
327
  (function (TooManyTargetGroupsException) {
328
328
  TooManyTargetGroupsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
329
329
  })(TooManyTargetGroupsException || (TooManyTargetGroupsException = {}));
330
+ export var TargetGroupIpAddressTypeEnum;
331
+ (function (TargetGroupIpAddressTypeEnum) {
332
+ TargetGroupIpAddressTypeEnum["IPV4"] = "ipv4";
333
+ TargetGroupIpAddressTypeEnum["IPV6"] = "ipv6";
334
+ })(TargetGroupIpAddressTypeEnum || (TargetGroupIpAddressTypeEnum = {}));
330
335
  export var Matcher;
331
336
  (function (Matcher) {
332
337
  Matcher.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,4 @@
1
+ export * from "./DescribeListenersPaginator";
2
+ export * from "./DescribeLoadBalancersPaginator";
3
+ export * from "./DescribeTargetGroupsPaginator";
4
+ export * from "./Interfaces";
@@ -3966,6 +3966,9 @@ var serializeAws_queryCreateTargetGroupInput = function (input, context) {
3966
3966
  entries[loc] = value;
3967
3967
  });
3968
3968
  }
3969
+ if (input.IpAddressType !== undefined && input.IpAddressType !== null) {
3970
+ entries["IpAddressType"] = input.IpAddressType;
3971
+ }
3969
3972
  return entries;
3970
3973
  };
3971
3974
  var serializeAws_queryDeleteListenerInput = function (input, context) {
@@ -4125,6 +4128,9 @@ var serializeAws_queryDescribeSSLPoliciesInput = function (input, context) {
4125
4128
  if (input.PageSize !== undefined && input.PageSize !== null) {
4126
4129
  entries["PageSize"] = input.PageSize;
4127
4130
  }
4131
+ if (input.LoadBalancerType !== undefined && input.LoadBalancerType !== null) {
4132
+ entries["LoadBalancerType"] = input.LoadBalancerType;
4133
+ }
4128
4134
  return entries;
4129
4135
  };
4130
4136
  var serializeAws_queryDescribeTagsInput = function (input, context) {
@@ -6603,6 +6609,7 @@ var deserializeAws_querySslPolicy = function (output, context) {
6603
6609
  SslProtocols: undefined,
6604
6610
  Ciphers: undefined,
6605
6611
  Name: undefined,
6612
+ SupportedLoadBalancerTypes: undefined,
6606
6613
  };
6607
6614
  if (output.SslProtocols === "") {
6608
6615
  contents.SslProtocols = [];
@@ -6619,6 +6626,13 @@ var deserializeAws_querySslPolicy = function (output, context) {
6619
6626
  if (output["Name"] !== undefined) {
6620
6627
  contents.Name = __expectString(output["Name"]);
6621
6628
  }
6629
+ if (output.SupportedLoadBalancerTypes === "") {
6630
+ contents.SupportedLoadBalancerTypes = [];
6631
+ }
6632
+ if (output["SupportedLoadBalancerTypes"] !== undefined &&
6633
+ output["SupportedLoadBalancerTypes"]["member"] !== undefined) {
6634
+ contents.SupportedLoadBalancerTypes = deserializeAws_queryListOfString(__getArrayIfSingleItem(output["SupportedLoadBalancerTypes"]["member"]), context);
6635
+ }
6622
6636
  return contents;
6623
6637
  };
6624
6638
  var deserializeAws_querySSLPolicyNotFoundException = function (output, context) {
@@ -6734,6 +6748,7 @@ var deserializeAws_queryTargetGroup = function (output, context) {
6734
6748
  LoadBalancerArns: undefined,
6735
6749
  TargetType: undefined,
6736
6750
  ProtocolVersion: undefined,
6751
+ IpAddressType: undefined,
6737
6752
  };
6738
6753
  if (output["TargetGroupArn"] !== undefined) {
6739
6754
  contents.TargetGroupArn = __expectString(output["TargetGroupArn"]);
@@ -6789,6 +6804,9 @@ var deserializeAws_queryTargetGroup = function (output, context) {
6789
6804
  if (output["ProtocolVersion"] !== undefined) {
6790
6805
  contents.ProtocolVersion = __expectString(output["ProtocolVersion"]);
6791
6806
  }
6807
+ if (output["IpAddressType"] !== undefined) {
6808
+ contents.IpAddressType = __expectString(output["IpAddressType"]);
6809
+ }
6792
6810
  return contents;
6793
6811
  };
6794
6812
  var deserializeAws_queryTargetGroupAssociationLimitException = function (output, context) {
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
21
  };
@@ -0,0 +1,5 @@
1
+ export * from "./waitForLoadBalancerAvailable";
2
+ export * from "./waitForLoadBalancerExists";
3
+ export * from "./waitForLoadBalancersDeleted";
4
+ export * from "./waitForTargetDeregistered";
5
+ export * from "./waitForTargetInService";
@@ -110,6 +110,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
110
110
  * Optional logger for logging debug/info/warn/error.
111
111
  */
112
112
  logger?: __Logger;
113
+ /**
114
+ * Enables IPv6/IPv4 dualstack endpoint.
115
+ */
116
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
117
+ /**
118
+ * Enables FIPS compatible endpoints.
119
+ */
120
+ useFipsEndpoint?: boolean | __Provider<boolean>;
113
121
  /**
114
122
  * Unique service identifier.
115
123
  * @internal
@@ -0,0 +1,34 @@
1
+ export * from "./AddListenerCertificatesCommand";
2
+ export * from "./AddTagsCommand";
3
+ export * from "./CreateListenerCommand";
4
+ export * from "./CreateLoadBalancerCommand";
5
+ export * from "./CreateRuleCommand";
6
+ export * from "./CreateTargetGroupCommand";
7
+ export * from "./DeleteListenerCommand";
8
+ export * from "./DeleteLoadBalancerCommand";
9
+ export * from "./DeleteRuleCommand";
10
+ export * from "./DeleteTargetGroupCommand";
11
+ export * from "./DeregisterTargetsCommand";
12
+ export * from "./DescribeAccountLimitsCommand";
13
+ export * from "./DescribeListenerCertificatesCommand";
14
+ export * from "./DescribeListenersCommand";
15
+ export * from "./DescribeLoadBalancerAttributesCommand";
16
+ export * from "./DescribeLoadBalancersCommand";
17
+ export * from "./DescribeRulesCommand";
18
+ export * from "./DescribeSSLPoliciesCommand";
19
+ export * from "./DescribeTagsCommand";
20
+ export * from "./DescribeTargetGroupAttributesCommand";
21
+ export * from "./DescribeTargetGroupsCommand";
22
+ export * from "./DescribeTargetHealthCommand";
23
+ export * from "./ModifyListenerCommand";
24
+ export * from "./ModifyLoadBalancerAttributesCommand";
25
+ export * from "./ModifyRuleCommand";
26
+ export * from "./ModifyTargetGroupAttributesCommand";
27
+ export * from "./ModifyTargetGroupCommand";
28
+ export * from "./RegisterTargetsCommand";
29
+ export * from "./RemoveListenerCertificatesCommand";
30
+ export * from "./RemoveTagsCommand";
31
+ export * from "./SetIpAddressTypeCommand";
32
+ export * from "./SetRulePrioritiesCommand";
33
+ export * from "./SetSecurityGroupsCommand";
34
+ export * from "./SetSubnetsCommand";
@@ -1,46 +1,6 @@
1
- export * from "./ElasticLoadBalancingV2Client";
2
1
  export * from "./ElasticLoadBalancingV2";
3
- export * from "./commands/AddListenerCertificatesCommand";
4
- export * from "./commands/AddTagsCommand";
5
- export * from "./commands/CreateListenerCommand";
6
- export * from "./commands/CreateLoadBalancerCommand";
7
- export * from "./commands/CreateRuleCommand";
8
- export * from "./commands/CreateTargetGroupCommand";
9
- export * from "./commands/DeleteListenerCommand";
10
- export * from "./commands/DeleteLoadBalancerCommand";
11
- export * from "./commands/DeleteRuleCommand";
12
- export * from "./commands/DeleteTargetGroupCommand";
13
- export * from "./commands/DeregisterTargetsCommand";
14
- export * from "./commands/DescribeAccountLimitsCommand";
15
- export * from "./commands/DescribeListenerCertificatesCommand";
16
- export * from "./commands/DescribeListenersCommand";
17
- export * from "./pagination/DescribeListenersPaginator";
18
- export * from "./commands/DescribeLoadBalancerAttributesCommand";
19
- export * from "./commands/DescribeLoadBalancersCommand";
20
- export * from "./pagination/DescribeLoadBalancersPaginator";
21
- export * from "./waiters/waitForLoadBalancerAvailable";
22
- export * from "./waiters/waitForLoadBalancerExists";
23
- export * from "./waiters/waitForLoadBalancersDeleted";
24
- export * from "./commands/DescribeRulesCommand";
25
- export * from "./commands/DescribeSSLPoliciesCommand";
26
- export * from "./commands/DescribeTagsCommand";
27
- export * from "./commands/DescribeTargetGroupAttributesCommand";
28
- export * from "./commands/DescribeTargetGroupsCommand";
29
- export * from "./pagination/DescribeTargetGroupsPaginator";
30
- export * from "./commands/DescribeTargetHealthCommand";
31
- export * from "./waiters/waitForTargetDeregistered";
32
- export * from "./waiters/waitForTargetInService";
33
- export * from "./commands/ModifyListenerCommand";
34
- export * from "./commands/ModifyLoadBalancerAttributesCommand";
35
- export * from "./commands/ModifyRuleCommand";
36
- export * from "./commands/ModifyTargetGroupCommand";
37
- export * from "./commands/ModifyTargetGroupAttributesCommand";
38
- export * from "./commands/RegisterTargetsCommand";
39
- export * from "./commands/RemoveListenerCertificatesCommand";
40
- export * from "./commands/RemoveTagsCommand";
41
- export * from "./commands/SetIpAddressTypeCommand";
42
- export * from "./commands/SetRulePrioritiesCommand";
43
- export * from "./commands/SetSecurityGroupsCommand";
44
- export * from "./commands/SetSubnetsCommand";
45
- export * from "./pagination/Interfaces";
46
- export * from "./models/index";
2
+ export * from "./ElasticLoadBalancingV2Client";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -1767,9 +1767,13 @@ export declare namespace TooManyTargetGroupsException {
1767
1767
  */
1768
1768
  const filterSensitiveLog: (obj: TooManyTargetGroupsException) => any;
1769
1769
  }
1770
+ export declare enum TargetGroupIpAddressTypeEnum {
1771
+ IPV4 = "ipv4",
1772
+ IPV6 = "ipv6"
1773
+ }
1770
1774
  /**
1771
1775
  * <p>The codes to use when checking for a successful response from a target. If the protocol
1772
- * version is gRPC, these are gRPC codes. Otherwise, these are HTTP codes.</p>
1776
+ * version is gRPC, these are gRPC codes. Otherwise, these are HTTP codes. </p>
1773
1777
  */
1774
1778
  export interface Matcher {
1775
1779
  /**
@@ -1777,6 +1781,8 @@ export interface Matcher {
1777
1781
  * default value is 200. You can specify multiple values (for example, "200,202") or a range of
1778
1782
  * values (for example, "200-299").</p>
1779
1783
  * <p>For Network Load Balancers and Gateway Load Balancers, this must be "200–399".</p>
1784
+ * <p>Note that when using shorthand syntax, some values such as commas need to be
1785
+ * escaped.</p>
1780
1786
  */
1781
1787
  HttpCode?: string;
1782
1788
  /**
@@ -1926,6 +1932,12 @@ export interface CreateTargetGroupInput {
1926
1932
  * <p>The tags to assign to the target group.</p>
1927
1933
  */
1928
1934
  Tags?: Tag[];
1935
+ /**
1936
+ * <p>The type of IP address used for this target group. The possible values are
1937
+ * <code>ipv4</code> and <code>ipv6</code>. This is an optional parameter. If not specified,
1938
+ * the IP address type defaults to <code>ipv4</code>.</p>
1939
+ */
1940
+ IpAddressType?: TargetGroupIpAddressTypeEnum | string;
1929
1941
  }
1930
1942
  export declare namespace CreateTargetGroupInput {
1931
1943
  /**
@@ -2018,6 +2030,12 @@ export interface TargetGroup {
2018
2030
  * <code>HTTP1</code>, and <code>HTTP2</code>.</p>
2019
2031
  */
2020
2032
  ProtocolVersion?: string;
2033
+ /**
2034
+ * <p>The type of IP address used for this target group. The possible values are
2035
+ * <code>ipv4</code> and <code>ipv6</code>. This is an optional parameter. If not specified,
2036
+ * the IP address type defaults to <code>ipv4</code>.</p>
2037
+ */
2038
+ IpAddressType?: TargetGroupIpAddressTypeEnum | string;
2021
2039
  }
2022
2040
  export declare namespace TargetGroup {
2023
2041
  /**
@@ -2476,22 +2494,22 @@ export interface LoadBalancerAttribute {
2476
2494
  * </li>
2477
2495
  * <li>
2478
2496
  * <p>
2479
- * <code>routing.http.x_amzn_tls_version_and_cipher_suite.enabled</code> - Indicates whether the two headers (<code>x-amzn-tls-version</code> and
2480
- * <code>x-amzn-tls-cipher-suite</code>), which contain information about
2481
- * the negotiated TLS version and cipher suite, are added to the client request
2482
- * before sending it to the target. The <code>x-amzn-tls-version</code> header
2483
- * has information about the TLS protocol version negotiated with the client,
2484
- * and the <code>x-amzn-tls-cipher-suite</code> header has information about
2485
- * the cipher suite negotiated with the client. Both headers are in OpenSSL
2486
- * format. The possible values for the attribute are <code>true</code> and
2487
- * <code>false</code>. The default is <code>false</code>.</p>
2497
+ * <code>routing.http.x_amzn_tls_version_and_cipher_suite.enabled</code> - Indicates
2498
+ * whether the two headers (<code>x-amzn-tls-version</code> and
2499
+ * <code>x-amzn-tls-cipher-suite</code>), which contain information about the negotiated
2500
+ * TLS version and cipher suite, are added to the client request before sending it to the
2501
+ * target. The <code>x-amzn-tls-version</code> header has information about the TLS protocol
2502
+ * version negotiated with the client, and the <code>x-amzn-tls-cipher-suite</code> header
2503
+ * has information about the cipher suite negotiated with the client. Both headers are in
2504
+ * OpenSSL format. The possible values for the attribute are <code>true</code> and
2505
+ * <code>false</code>. The default is <code>false</code>.</p>
2488
2506
  * </li>
2489
2507
  * <li>
2490
2508
  * <p>
2491
2509
  * <code>routing.http.xff_client_port.enabled</code> - Indicates whether the
2492
- * <code>X-Forwarded-For</code> header should preserve the source port that the client used
2510
+ * <code>X-Forwarded-For</code> header should preserve the source port that the client used
2493
2511
  * to connect to the load balancer. The possible values are <code>true</code> and
2494
- * <code>false</code>. The default is <code>false</code>.</p>
2512
+ * <code>false</code>. The default is <code>false</code>.</p>
2495
2513
  * </li>
2496
2514
  * <li>
2497
2515
  * <p>
@@ -2642,6 +2660,11 @@ export interface DescribeSSLPoliciesInput {
2642
2660
  * <p>The maximum number of results to return with this call.</p>
2643
2661
  */
2644
2662
  PageSize?: number;
2663
+ /**
2664
+ * <p> The type of load balancer. The default lists the SSL policies for all load
2665
+ * balancers.</p>
2666
+ */
2667
+ LoadBalancerType?: LoadBalancerTypeEnum | string;
2645
2668
  }
2646
2669
  export declare namespace DescribeSSLPoliciesInput {
2647
2670
  /**
@@ -2665,6 +2688,12 @@ export interface SslPolicy {
2665
2688
  * <p>The name of the policy.</p>
2666
2689
  */
2667
2690
  Name?: string;
2691
+ /**
2692
+ * <p>
2693
+ * The supported load balancers.
2694
+ * </p>
2695
+ */
2696
+ SupportedLoadBalancerTypes?: string[];
2668
2697
  }
2669
2698
  export declare namespace SslPolicy {
2670
2699
  /**
@@ -0,0 +1,4 @@
1
+ export * from "./DescribeListenersPaginator";
2
+ export * from "./DescribeLoadBalancersPaginator";
3
+ export * from "./DescribeTargetGroupsPaginator";
4
+ export * from "./Interfaces";
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: ElasticLoadBalancingV2ClientConf
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -31,9 +33,7 @@ export declare const getRuntimeConfig: (config: ElasticLoadBalancingV2ClientConf
31
33
  signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined;
32
34
  signingEscapePath?: boolean | undefined;
33
35
  systemClockOffset?: number | undefined;
34
- signingRegion?: string | undefined; /**
35
- * @internal
36
- */
36
+ signingRegion?: string | undefined;
37
37
  signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
38
38
  customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
39
39
  };
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: ElasticLoadBalancingV2ClientConf
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -18,6 +18,8 @@ export declare const getRuntimeConfig: (config: ElasticLoadBalancingV2ClientConf
18
18
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
19
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
20
20
  logger: import("@aws-sdk/types").Logger;
21
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
23
  serviceId: string;
22
24
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;