@aws-sdk/client-elastic-load-balancing 3.185.0 → 3.188.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 (44) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-cjs/protocols/Aws_query.js +8 -4
  3. package/dist-es/ElasticLoadBalancing.js +118 -125
  4. package/dist-es/ElasticLoadBalancingClient.js +22 -28
  5. package/dist-es/commands/AddTagsCommand.js +21 -28
  6. package/dist-es/commands/ApplySecurityGroupsToLoadBalancerCommand.js +21 -28
  7. package/dist-es/commands/AttachLoadBalancerToSubnetsCommand.js +21 -28
  8. package/dist-es/commands/ConfigureHealthCheckCommand.js +21 -28
  9. package/dist-es/commands/CreateAppCookieStickinessPolicyCommand.js +21 -28
  10. package/dist-es/commands/CreateLBCookieStickinessPolicyCommand.js +21 -28
  11. package/dist-es/commands/CreateLoadBalancerCommand.js +21 -28
  12. package/dist-es/commands/CreateLoadBalancerListenersCommand.js +21 -28
  13. package/dist-es/commands/CreateLoadBalancerPolicyCommand.js +21 -28
  14. package/dist-es/commands/DeleteLoadBalancerCommand.js +21 -28
  15. package/dist-es/commands/DeleteLoadBalancerListenersCommand.js +21 -28
  16. package/dist-es/commands/DeleteLoadBalancerPolicyCommand.js +21 -28
  17. package/dist-es/commands/DeregisterInstancesFromLoadBalancerCommand.js +21 -28
  18. package/dist-es/commands/DescribeAccountLimitsCommand.js +21 -28
  19. package/dist-es/commands/DescribeInstanceHealthCommand.js +21 -28
  20. package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js +21 -28
  21. package/dist-es/commands/DescribeLoadBalancerPoliciesCommand.js +21 -28
  22. package/dist-es/commands/DescribeLoadBalancerPolicyTypesCommand.js +21 -28
  23. package/dist-es/commands/DescribeLoadBalancersCommand.js +21 -28
  24. package/dist-es/commands/DescribeTagsCommand.js +21 -28
  25. package/dist-es/commands/DetachLoadBalancerFromSubnetsCommand.js +21 -28
  26. package/dist-es/commands/DisableAvailabilityZonesForLoadBalancerCommand.js +21 -28
  27. package/dist-es/commands/EnableAvailabilityZonesForLoadBalancerCommand.js +21 -28
  28. package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js +21 -28
  29. package/dist-es/commands/RegisterInstancesWithLoadBalancerCommand.js +21 -28
  30. package/dist-es/commands/RemoveTagsCommand.js +21 -28
  31. package/dist-es/commands/SetLoadBalancerListenerSSLCertificateCommand.js +21 -28
  32. package/dist-es/commands/SetLoadBalancerPoliciesForBackendServerCommand.js +21 -28
  33. package/dist-es/commands/SetLoadBalancerPoliciesOfListenerCommand.js +21 -28
  34. package/dist-es/endpoints.js +8 -8
  35. package/dist-es/models/ElasticLoadBalancingServiceException.js +5 -10
  36. package/dist-es/models/models_0.js +516 -349
  37. package/dist-es/pagination/DescribeLoadBalancersPaginator.js +24 -67
  38. package/dist-es/protocols/Aws_query.js +2200 -2926
  39. package/dist-es/runtimeConfig.browser.js +26 -12
  40. package/dist-es/runtimeConfig.js +30 -12
  41. package/dist-es/runtimeConfig.native.js +8 -5
  42. package/dist-es/runtimeConfig.shared.js +8 -11
  43. package/dist-es/waiters/waitForAnyInstanceInService.js +33 -64
  44. package/package.json +35 -36
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-elastic-load-balancing
9
+
10
+
11
+
12
+
13
+
14
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-elastic-load-balancing
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
23
 
8
24
 
@@ -4,7 +4,6 @@ exports.deserializeAws_queryDetachLoadBalancerFromSubnetsCommand = exports.deser
4
4
  exports.deserializeAws_querySetLoadBalancerPoliciesOfListenerCommand = exports.deserializeAws_querySetLoadBalancerPoliciesForBackendServerCommand = exports.deserializeAws_querySetLoadBalancerListenerSSLCertificateCommand = exports.deserializeAws_queryRemoveTagsCommand = exports.deserializeAws_queryRegisterInstancesWithLoadBalancerCommand = exports.deserializeAws_queryModifyLoadBalancerAttributesCommand = exports.deserializeAws_queryEnableAvailabilityZonesForLoadBalancerCommand = exports.deserializeAws_queryDisableAvailabilityZonesForLoadBalancerCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const entities_1 = require("entities");
8
7
  const fast_xml_parser_1 = require("fast-xml-parser");
9
8
  const ElasticLoadBalancingServiceException_1 = require("../models/ElasticLoadBalancingServiceException");
10
9
  const models_0_1 = require("../models/models_0");
@@ -3592,13 +3591,18 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
3592
3591
  };
3593
3592
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
3594
3593
  if (encoded.length) {
3595
- const parsedObj = (0, fast_xml_parser_1.parse)(encoded, {
3594
+ const parser = new fast_xml_parser_1.XMLParser({
3596
3595
  attributeNamePrefix: "",
3596
+ htmlEntities: true,
3597
3597
  ignoreAttributes: false,
3598
- parseNodeValue: false,
3598
+ ignoreDeclaration: true,
3599
+ parseTagValue: false,
3599
3600
  trimValues: false,
3600
- tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val)),
3601
+ tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
3601
3602
  });
3603
+ parser.addEntity("#xD", "\r");
3604
+ parser.addEntity("#10", "\n");
3605
+ const parsedObj = parser.parse(encoded);
3602
3606
  const textNodeName = "#text";
3603
3607
  const key = Object.keys(parsedObj)[0];
3604
3608
  const parsedObjToReturn = parsedObj[key];
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AddTagsCommand } from "./commands/AddTagsCommand";
3
2
  import { ApplySecurityGroupsToLoadBalancerCommand, } from "./commands/ApplySecurityGroupsToLoadBalancerCommand";
4
3
  import { AttachLoadBalancerToSubnetsCommand, } from "./commands/AttachLoadBalancerToSubnetsCommand";
@@ -29,417 +28,411 @@ import { SetLoadBalancerListenerSSLCertificateCommand, } from "./commands/SetLoa
29
28
  import { SetLoadBalancerPoliciesForBackendServerCommand, } from "./commands/SetLoadBalancerPoliciesForBackendServerCommand";
30
29
  import { SetLoadBalancerPoliciesOfListenerCommand, } from "./commands/SetLoadBalancerPoliciesOfListenerCommand";
31
30
  import { ElasticLoadBalancingClient } from "./ElasticLoadBalancingClient";
32
- var ElasticLoadBalancing = (function (_super) {
33
- __extends(ElasticLoadBalancing, _super);
34
- function ElasticLoadBalancing() {
35
- return _super !== null && _super.apply(this, arguments) || this;
36
- }
37
- ElasticLoadBalancing.prototype.addTags = function (args, optionsOrCb, cb) {
38
- var command = new AddTagsCommand(args);
31
+ export class ElasticLoadBalancing extends ElasticLoadBalancingClient {
32
+ addTags(args, optionsOrCb, cb) {
33
+ const command = new AddTagsCommand(args);
39
34
  if (typeof optionsOrCb === "function") {
40
35
  this.send(command, optionsOrCb);
41
36
  }
42
37
  else if (typeof cb === "function") {
43
38
  if (typeof optionsOrCb !== "object")
44
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
39
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
40
  this.send(command, optionsOrCb || {}, cb);
46
41
  }
47
42
  else {
48
43
  return this.send(command, optionsOrCb);
49
44
  }
50
- };
51
- ElasticLoadBalancing.prototype.applySecurityGroupsToLoadBalancer = function (args, optionsOrCb, cb) {
52
- var command = new ApplySecurityGroupsToLoadBalancerCommand(args);
45
+ }
46
+ applySecurityGroupsToLoadBalancer(args, optionsOrCb, cb) {
47
+ const command = new ApplySecurityGroupsToLoadBalancerCommand(args);
53
48
  if (typeof optionsOrCb === "function") {
54
49
  this.send(command, optionsOrCb);
55
50
  }
56
51
  else if (typeof cb === "function") {
57
52
  if (typeof optionsOrCb !== "object")
58
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
53
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
54
  this.send(command, optionsOrCb || {}, cb);
60
55
  }
61
56
  else {
62
57
  return this.send(command, optionsOrCb);
63
58
  }
64
- };
65
- ElasticLoadBalancing.prototype.attachLoadBalancerToSubnets = function (args, optionsOrCb, cb) {
66
- var command = new AttachLoadBalancerToSubnetsCommand(args);
59
+ }
60
+ attachLoadBalancerToSubnets(args, optionsOrCb, cb) {
61
+ const command = new AttachLoadBalancerToSubnetsCommand(args);
67
62
  if (typeof optionsOrCb === "function") {
68
63
  this.send(command, optionsOrCb);
69
64
  }
70
65
  else if (typeof cb === "function") {
71
66
  if (typeof optionsOrCb !== "object")
72
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
67
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
68
  this.send(command, optionsOrCb || {}, cb);
74
69
  }
75
70
  else {
76
71
  return this.send(command, optionsOrCb);
77
72
  }
78
- };
79
- ElasticLoadBalancing.prototype.configureHealthCheck = function (args, optionsOrCb, cb) {
80
- var command = new ConfigureHealthCheckCommand(args);
73
+ }
74
+ configureHealthCheck(args, optionsOrCb, cb) {
75
+ const command = new ConfigureHealthCheckCommand(args);
81
76
  if (typeof optionsOrCb === "function") {
82
77
  this.send(command, optionsOrCb);
83
78
  }
84
79
  else if (typeof cb === "function") {
85
80
  if (typeof optionsOrCb !== "object")
86
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
81
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
82
  this.send(command, optionsOrCb || {}, cb);
88
83
  }
89
84
  else {
90
85
  return this.send(command, optionsOrCb);
91
86
  }
92
- };
93
- ElasticLoadBalancing.prototype.createAppCookieStickinessPolicy = function (args, optionsOrCb, cb) {
94
- var command = new CreateAppCookieStickinessPolicyCommand(args);
87
+ }
88
+ createAppCookieStickinessPolicy(args, optionsOrCb, cb) {
89
+ const command = new CreateAppCookieStickinessPolicyCommand(args);
95
90
  if (typeof optionsOrCb === "function") {
96
91
  this.send(command, optionsOrCb);
97
92
  }
98
93
  else if (typeof cb === "function") {
99
94
  if (typeof optionsOrCb !== "object")
100
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
95
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
96
  this.send(command, optionsOrCb || {}, cb);
102
97
  }
103
98
  else {
104
99
  return this.send(command, optionsOrCb);
105
100
  }
106
- };
107
- ElasticLoadBalancing.prototype.createLBCookieStickinessPolicy = function (args, optionsOrCb, cb) {
108
- var command = new CreateLBCookieStickinessPolicyCommand(args);
101
+ }
102
+ createLBCookieStickinessPolicy(args, optionsOrCb, cb) {
103
+ const command = new CreateLBCookieStickinessPolicyCommand(args);
109
104
  if (typeof optionsOrCb === "function") {
110
105
  this.send(command, optionsOrCb);
111
106
  }
112
107
  else if (typeof cb === "function") {
113
108
  if (typeof optionsOrCb !== "object")
114
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
109
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
110
  this.send(command, optionsOrCb || {}, cb);
116
111
  }
117
112
  else {
118
113
  return this.send(command, optionsOrCb);
119
114
  }
120
- };
121
- ElasticLoadBalancing.prototype.createLoadBalancer = function (args, optionsOrCb, cb) {
122
- var command = new CreateLoadBalancerCommand(args);
115
+ }
116
+ createLoadBalancer(args, optionsOrCb, cb) {
117
+ const command = new CreateLoadBalancerCommand(args);
123
118
  if (typeof optionsOrCb === "function") {
124
119
  this.send(command, optionsOrCb);
125
120
  }
126
121
  else if (typeof cb === "function") {
127
122
  if (typeof optionsOrCb !== "object")
128
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
123
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
124
  this.send(command, optionsOrCb || {}, cb);
130
125
  }
131
126
  else {
132
127
  return this.send(command, optionsOrCb);
133
128
  }
134
- };
135
- ElasticLoadBalancing.prototype.createLoadBalancerListeners = function (args, optionsOrCb, cb) {
136
- var command = new CreateLoadBalancerListenersCommand(args);
129
+ }
130
+ createLoadBalancerListeners(args, optionsOrCb, cb) {
131
+ const command = new CreateLoadBalancerListenersCommand(args);
137
132
  if (typeof optionsOrCb === "function") {
138
133
  this.send(command, optionsOrCb);
139
134
  }
140
135
  else if (typeof cb === "function") {
141
136
  if (typeof optionsOrCb !== "object")
142
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
137
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
138
  this.send(command, optionsOrCb || {}, cb);
144
139
  }
145
140
  else {
146
141
  return this.send(command, optionsOrCb);
147
142
  }
148
- };
149
- ElasticLoadBalancing.prototype.createLoadBalancerPolicy = function (args, optionsOrCb, cb) {
150
- var command = new CreateLoadBalancerPolicyCommand(args);
143
+ }
144
+ createLoadBalancerPolicy(args, optionsOrCb, cb) {
145
+ const command = new CreateLoadBalancerPolicyCommand(args);
151
146
  if (typeof optionsOrCb === "function") {
152
147
  this.send(command, optionsOrCb);
153
148
  }
154
149
  else if (typeof cb === "function") {
155
150
  if (typeof optionsOrCb !== "object")
156
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
151
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
152
  this.send(command, optionsOrCb || {}, cb);
158
153
  }
159
154
  else {
160
155
  return this.send(command, optionsOrCb);
161
156
  }
162
- };
163
- ElasticLoadBalancing.prototype.deleteLoadBalancer = function (args, optionsOrCb, cb) {
164
- var command = new DeleteLoadBalancerCommand(args);
157
+ }
158
+ deleteLoadBalancer(args, optionsOrCb, cb) {
159
+ const command = new DeleteLoadBalancerCommand(args);
165
160
  if (typeof optionsOrCb === "function") {
166
161
  this.send(command, optionsOrCb);
167
162
  }
168
163
  else if (typeof cb === "function") {
169
164
  if (typeof optionsOrCb !== "object")
170
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
165
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
166
  this.send(command, optionsOrCb || {}, cb);
172
167
  }
173
168
  else {
174
169
  return this.send(command, optionsOrCb);
175
170
  }
176
- };
177
- ElasticLoadBalancing.prototype.deleteLoadBalancerListeners = function (args, optionsOrCb, cb) {
178
- var command = new DeleteLoadBalancerListenersCommand(args);
171
+ }
172
+ deleteLoadBalancerListeners(args, optionsOrCb, cb) {
173
+ const command = new DeleteLoadBalancerListenersCommand(args);
179
174
  if (typeof optionsOrCb === "function") {
180
175
  this.send(command, optionsOrCb);
181
176
  }
182
177
  else if (typeof cb === "function") {
183
178
  if (typeof optionsOrCb !== "object")
184
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
179
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
180
  this.send(command, optionsOrCb || {}, cb);
186
181
  }
187
182
  else {
188
183
  return this.send(command, optionsOrCb);
189
184
  }
190
- };
191
- ElasticLoadBalancing.prototype.deleteLoadBalancerPolicy = function (args, optionsOrCb, cb) {
192
- var command = new DeleteLoadBalancerPolicyCommand(args);
185
+ }
186
+ deleteLoadBalancerPolicy(args, optionsOrCb, cb) {
187
+ const command = new DeleteLoadBalancerPolicyCommand(args);
193
188
  if (typeof optionsOrCb === "function") {
194
189
  this.send(command, optionsOrCb);
195
190
  }
196
191
  else if (typeof cb === "function") {
197
192
  if (typeof optionsOrCb !== "object")
198
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
193
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
194
  this.send(command, optionsOrCb || {}, cb);
200
195
  }
201
196
  else {
202
197
  return this.send(command, optionsOrCb);
203
198
  }
204
- };
205
- ElasticLoadBalancing.prototype.deregisterInstancesFromLoadBalancer = function (args, optionsOrCb, cb) {
206
- var command = new DeregisterInstancesFromLoadBalancerCommand(args);
199
+ }
200
+ deregisterInstancesFromLoadBalancer(args, optionsOrCb, cb) {
201
+ const command = new DeregisterInstancesFromLoadBalancerCommand(args);
207
202
  if (typeof optionsOrCb === "function") {
208
203
  this.send(command, optionsOrCb);
209
204
  }
210
205
  else if (typeof cb === "function") {
211
206
  if (typeof optionsOrCb !== "object")
212
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
207
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
213
208
  this.send(command, optionsOrCb || {}, cb);
214
209
  }
215
210
  else {
216
211
  return this.send(command, optionsOrCb);
217
212
  }
218
- };
219
- ElasticLoadBalancing.prototype.describeAccountLimits = function (args, optionsOrCb, cb) {
220
- var command = new DescribeAccountLimitsCommand(args);
213
+ }
214
+ describeAccountLimits(args, optionsOrCb, cb) {
215
+ const command = new DescribeAccountLimitsCommand(args);
221
216
  if (typeof optionsOrCb === "function") {
222
217
  this.send(command, optionsOrCb);
223
218
  }
224
219
  else if (typeof cb === "function") {
225
220
  if (typeof optionsOrCb !== "object")
226
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
221
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
227
222
  this.send(command, optionsOrCb || {}, cb);
228
223
  }
229
224
  else {
230
225
  return this.send(command, optionsOrCb);
231
226
  }
232
- };
233
- ElasticLoadBalancing.prototype.describeInstanceHealth = function (args, optionsOrCb, cb) {
234
- var command = new DescribeInstanceHealthCommand(args);
227
+ }
228
+ describeInstanceHealth(args, optionsOrCb, cb) {
229
+ const command = new DescribeInstanceHealthCommand(args);
235
230
  if (typeof optionsOrCb === "function") {
236
231
  this.send(command, optionsOrCb);
237
232
  }
238
233
  else if (typeof cb === "function") {
239
234
  if (typeof optionsOrCb !== "object")
240
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
235
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
241
236
  this.send(command, optionsOrCb || {}, cb);
242
237
  }
243
238
  else {
244
239
  return this.send(command, optionsOrCb);
245
240
  }
246
- };
247
- ElasticLoadBalancing.prototype.describeLoadBalancerAttributes = function (args, optionsOrCb, cb) {
248
- var command = new DescribeLoadBalancerAttributesCommand(args);
241
+ }
242
+ describeLoadBalancerAttributes(args, optionsOrCb, cb) {
243
+ const command = new DescribeLoadBalancerAttributesCommand(args);
249
244
  if (typeof optionsOrCb === "function") {
250
245
  this.send(command, optionsOrCb);
251
246
  }
252
247
  else if (typeof cb === "function") {
253
248
  if (typeof optionsOrCb !== "object")
254
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
249
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
255
250
  this.send(command, optionsOrCb || {}, cb);
256
251
  }
257
252
  else {
258
253
  return this.send(command, optionsOrCb);
259
254
  }
260
- };
261
- ElasticLoadBalancing.prototype.describeLoadBalancerPolicies = function (args, optionsOrCb, cb) {
262
- var command = new DescribeLoadBalancerPoliciesCommand(args);
255
+ }
256
+ describeLoadBalancerPolicies(args, optionsOrCb, cb) {
257
+ const command = new DescribeLoadBalancerPoliciesCommand(args);
263
258
  if (typeof optionsOrCb === "function") {
264
259
  this.send(command, optionsOrCb);
265
260
  }
266
261
  else if (typeof cb === "function") {
267
262
  if (typeof optionsOrCb !== "object")
268
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
263
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
269
264
  this.send(command, optionsOrCb || {}, cb);
270
265
  }
271
266
  else {
272
267
  return this.send(command, optionsOrCb);
273
268
  }
274
- };
275
- ElasticLoadBalancing.prototype.describeLoadBalancerPolicyTypes = function (args, optionsOrCb, cb) {
276
- var command = new DescribeLoadBalancerPolicyTypesCommand(args);
269
+ }
270
+ describeLoadBalancerPolicyTypes(args, optionsOrCb, cb) {
271
+ const command = new DescribeLoadBalancerPolicyTypesCommand(args);
277
272
  if (typeof optionsOrCb === "function") {
278
273
  this.send(command, optionsOrCb);
279
274
  }
280
275
  else if (typeof cb === "function") {
281
276
  if (typeof optionsOrCb !== "object")
282
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
277
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
283
278
  this.send(command, optionsOrCb || {}, cb);
284
279
  }
285
280
  else {
286
281
  return this.send(command, optionsOrCb);
287
282
  }
288
- };
289
- ElasticLoadBalancing.prototype.describeLoadBalancers = function (args, optionsOrCb, cb) {
290
- var command = new DescribeLoadBalancersCommand(args);
283
+ }
284
+ describeLoadBalancers(args, optionsOrCb, cb) {
285
+ const command = new DescribeLoadBalancersCommand(args);
291
286
  if (typeof optionsOrCb === "function") {
292
287
  this.send(command, optionsOrCb);
293
288
  }
294
289
  else if (typeof cb === "function") {
295
290
  if (typeof optionsOrCb !== "object")
296
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
291
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
297
292
  this.send(command, optionsOrCb || {}, cb);
298
293
  }
299
294
  else {
300
295
  return this.send(command, optionsOrCb);
301
296
  }
302
- };
303
- ElasticLoadBalancing.prototype.describeTags = function (args, optionsOrCb, cb) {
304
- var command = new DescribeTagsCommand(args);
297
+ }
298
+ describeTags(args, optionsOrCb, cb) {
299
+ const command = new DescribeTagsCommand(args);
305
300
  if (typeof optionsOrCb === "function") {
306
301
  this.send(command, optionsOrCb);
307
302
  }
308
303
  else if (typeof cb === "function") {
309
304
  if (typeof optionsOrCb !== "object")
310
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
305
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
311
306
  this.send(command, optionsOrCb || {}, cb);
312
307
  }
313
308
  else {
314
309
  return this.send(command, optionsOrCb);
315
310
  }
316
- };
317
- ElasticLoadBalancing.prototype.detachLoadBalancerFromSubnets = function (args, optionsOrCb, cb) {
318
- var command = new DetachLoadBalancerFromSubnetsCommand(args);
311
+ }
312
+ detachLoadBalancerFromSubnets(args, optionsOrCb, cb) {
313
+ const command = new DetachLoadBalancerFromSubnetsCommand(args);
319
314
  if (typeof optionsOrCb === "function") {
320
315
  this.send(command, optionsOrCb);
321
316
  }
322
317
  else if (typeof cb === "function") {
323
318
  if (typeof optionsOrCb !== "object")
324
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
319
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
325
320
  this.send(command, optionsOrCb || {}, cb);
326
321
  }
327
322
  else {
328
323
  return this.send(command, optionsOrCb);
329
324
  }
330
- };
331
- ElasticLoadBalancing.prototype.disableAvailabilityZonesForLoadBalancer = function (args, optionsOrCb, cb) {
332
- var command = new DisableAvailabilityZonesForLoadBalancerCommand(args);
325
+ }
326
+ disableAvailabilityZonesForLoadBalancer(args, optionsOrCb, cb) {
327
+ const command = new DisableAvailabilityZonesForLoadBalancerCommand(args);
333
328
  if (typeof optionsOrCb === "function") {
334
329
  this.send(command, optionsOrCb);
335
330
  }
336
331
  else if (typeof cb === "function") {
337
332
  if (typeof optionsOrCb !== "object")
338
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
333
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
339
334
  this.send(command, optionsOrCb || {}, cb);
340
335
  }
341
336
  else {
342
337
  return this.send(command, optionsOrCb);
343
338
  }
344
- };
345
- ElasticLoadBalancing.prototype.enableAvailabilityZonesForLoadBalancer = function (args, optionsOrCb, cb) {
346
- var command = new EnableAvailabilityZonesForLoadBalancerCommand(args);
339
+ }
340
+ enableAvailabilityZonesForLoadBalancer(args, optionsOrCb, cb) {
341
+ const command = new EnableAvailabilityZonesForLoadBalancerCommand(args);
347
342
  if (typeof optionsOrCb === "function") {
348
343
  this.send(command, optionsOrCb);
349
344
  }
350
345
  else if (typeof cb === "function") {
351
346
  if (typeof optionsOrCb !== "object")
352
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
347
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
353
348
  this.send(command, optionsOrCb || {}, cb);
354
349
  }
355
350
  else {
356
351
  return this.send(command, optionsOrCb);
357
352
  }
358
- };
359
- ElasticLoadBalancing.prototype.modifyLoadBalancerAttributes = function (args, optionsOrCb, cb) {
360
- var command = new ModifyLoadBalancerAttributesCommand(args);
353
+ }
354
+ modifyLoadBalancerAttributes(args, optionsOrCb, cb) {
355
+ const command = new ModifyLoadBalancerAttributesCommand(args);
361
356
  if (typeof optionsOrCb === "function") {
362
357
  this.send(command, optionsOrCb);
363
358
  }
364
359
  else if (typeof cb === "function") {
365
360
  if (typeof optionsOrCb !== "object")
366
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
361
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
367
362
  this.send(command, optionsOrCb || {}, cb);
368
363
  }
369
364
  else {
370
365
  return this.send(command, optionsOrCb);
371
366
  }
372
- };
373
- ElasticLoadBalancing.prototype.registerInstancesWithLoadBalancer = function (args, optionsOrCb, cb) {
374
- var command = new RegisterInstancesWithLoadBalancerCommand(args);
367
+ }
368
+ registerInstancesWithLoadBalancer(args, optionsOrCb, cb) {
369
+ const command = new RegisterInstancesWithLoadBalancerCommand(args);
375
370
  if (typeof optionsOrCb === "function") {
376
371
  this.send(command, optionsOrCb);
377
372
  }
378
373
  else if (typeof cb === "function") {
379
374
  if (typeof optionsOrCb !== "object")
380
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
375
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
381
376
  this.send(command, optionsOrCb || {}, cb);
382
377
  }
383
378
  else {
384
379
  return this.send(command, optionsOrCb);
385
380
  }
386
- };
387
- ElasticLoadBalancing.prototype.removeTags = function (args, optionsOrCb, cb) {
388
- var command = new RemoveTagsCommand(args);
381
+ }
382
+ removeTags(args, optionsOrCb, cb) {
383
+ const command = new RemoveTagsCommand(args);
389
384
  if (typeof optionsOrCb === "function") {
390
385
  this.send(command, optionsOrCb);
391
386
  }
392
387
  else if (typeof cb === "function") {
393
388
  if (typeof optionsOrCb !== "object")
394
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
389
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
395
390
  this.send(command, optionsOrCb || {}, cb);
396
391
  }
397
392
  else {
398
393
  return this.send(command, optionsOrCb);
399
394
  }
400
- };
401
- ElasticLoadBalancing.prototype.setLoadBalancerListenerSSLCertificate = function (args, optionsOrCb, cb) {
402
- var command = new SetLoadBalancerListenerSSLCertificateCommand(args);
395
+ }
396
+ setLoadBalancerListenerSSLCertificate(args, optionsOrCb, cb) {
397
+ const command = new SetLoadBalancerListenerSSLCertificateCommand(args);
403
398
  if (typeof optionsOrCb === "function") {
404
399
  this.send(command, optionsOrCb);
405
400
  }
406
401
  else if (typeof cb === "function") {
407
402
  if (typeof optionsOrCb !== "object")
408
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
403
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
409
404
  this.send(command, optionsOrCb || {}, cb);
410
405
  }
411
406
  else {
412
407
  return this.send(command, optionsOrCb);
413
408
  }
414
- };
415
- ElasticLoadBalancing.prototype.setLoadBalancerPoliciesForBackendServer = function (args, optionsOrCb, cb) {
416
- var command = new SetLoadBalancerPoliciesForBackendServerCommand(args);
409
+ }
410
+ setLoadBalancerPoliciesForBackendServer(args, optionsOrCb, cb) {
411
+ const command = new SetLoadBalancerPoliciesForBackendServerCommand(args);
417
412
  if (typeof optionsOrCb === "function") {
418
413
  this.send(command, optionsOrCb);
419
414
  }
420
415
  else if (typeof cb === "function") {
421
416
  if (typeof optionsOrCb !== "object")
422
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
417
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
423
418
  this.send(command, optionsOrCb || {}, cb);
424
419
  }
425
420
  else {
426
421
  return this.send(command, optionsOrCb);
427
422
  }
428
- };
429
- ElasticLoadBalancing.prototype.setLoadBalancerPoliciesOfListener = function (args, optionsOrCb, cb) {
430
- var command = new SetLoadBalancerPoliciesOfListenerCommand(args);
423
+ }
424
+ setLoadBalancerPoliciesOfListener(args, optionsOrCb, cb) {
425
+ const command = new SetLoadBalancerPoliciesOfListenerCommand(args);
431
426
  if (typeof optionsOrCb === "function") {
432
427
  this.send(command, optionsOrCb);
433
428
  }
434
429
  else if (typeof cb === "function") {
435
430
  if (typeof optionsOrCb !== "object")
436
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
431
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
437
432
  this.send(command, optionsOrCb || {}, cb);
438
433
  }
439
434
  else {
440
435
  return this.send(command, optionsOrCb);
441
436
  }
442
- };
443
- return ElasticLoadBalancing;
444
- }(ElasticLoadBalancingClient));
445
- export { ElasticLoadBalancing };
437
+ }
438
+ }