@aws-sdk/client-elastic-load-balancing-v2 3.183.0 → 3.185.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 (55) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_query.js +2 -2
  3. package/dist-es/ElasticLoadBalancingV2.js +145 -138
  4. package/dist-es/ElasticLoadBalancingV2Client.js +28 -22
  5. package/dist-es/commands/AddListenerCertificatesCommand.js +28 -21
  6. package/dist-es/commands/AddTagsCommand.js +28 -21
  7. package/dist-es/commands/CreateListenerCommand.js +28 -21
  8. package/dist-es/commands/CreateLoadBalancerCommand.js +28 -21
  9. package/dist-es/commands/CreateRuleCommand.js +28 -21
  10. package/dist-es/commands/CreateTargetGroupCommand.js +28 -21
  11. package/dist-es/commands/DeleteListenerCommand.js +28 -21
  12. package/dist-es/commands/DeleteLoadBalancerCommand.js +28 -21
  13. package/dist-es/commands/DeleteRuleCommand.js +28 -21
  14. package/dist-es/commands/DeleteTargetGroupCommand.js +28 -21
  15. package/dist-es/commands/DeregisterTargetsCommand.js +28 -21
  16. package/dist-es/commands/DescribeAccountLimitsCommand.js +28 -21
  17. package/dist-es/commands/DescribeListenerCertificatesCommand.js +28 -21
  18. package/dist-es/commands/DescribeListenersCommand.js +28 -21
  19. package/dist-es/commands/DescribeLoadBalancerAttributesCommand.js +28 -21
  20. package/dist-es/commands/DescribeLoadBalancersCommand.js +28 -21
  21. package/dist-es/commands/DescribeRulesCommand.js +28 -21
  22. package/dist-es/commands/DescribeSSLPoliciesCommand.js +28 -21
  23. package/dist-es/commands/DescribeTagsCommand.js +28 -21
  24. package/dist-es/commands/DescribeTargetGroupAttributesCommand.js +28 -21
  25. package/dist-es/commands/DescribeTargetGroupsCommand.js +28 -21
  26. package/dist-es/commands/DescribeTargetHealthCommand.js +28 -21
  27. package/dist-es/commands/ModifyListenerCommand.js +28 -21
  28. package/dist-es/commands/ModifyLoadBalancerAttributesCommand.js +28 -21
  29. package/dist-es/commands/ModifyRuleCommand.js +28 -21
  30. package/dist-es/commands/ModifyTargetGroupAttributesCommand.js +28 -21
  31. package/dist-es/commands/ModifyTargetGroupCommand.js +28 -21
  32. package/dist-es/commands/RegisterTargetsCommand.js +28 -21
  33. package/dist-es/commands/RemoveListenerCertificatesCommand.js +28 -21
  34. package/dist-es/commands/RemoveTagsCommand.js +28 -21
  35. package/dist-es/commands/SetIpAddressTypeCommand.js +28 -21
  36. package/dist-es/commands/SetRulePrioritiesCommand.js +28 -21
  37. package/dist-es/commands/SetSecurityGroupsCommand.js +28 -21
  38. package/dist-es/commands/SetSubnetsCommand.js +28 -21
  39. package/dist-es/endpoints.js +8 -8
  40. package/dist-es/models/ElasticLoadBalancingV2ServiceException.js +10 -5
  41. package/dist-es/models/models_0.js +587 -796
  42. package/dist-es/pagination/DescribeListenersPaginator.js +67 -24
  43. package/dist-es/pagination/DescribeLoadBalancersPaginator.js +67 -24
  44. package/dist-es/pagination/DescribeTargetGroupsPaginator.js +67 -24
  45. package/dist-es/protocols/Aws_query.js +4090 -3070
  46. package/dist-es/runtimeConfig.browser.js +12 -26
  47. package/dist-es/runtimeConfig.js +12 -30
  48. package/dist-es/runtimeConfig.native.js +5 -8
  49. package/dist-es/runtimeConfig.shared.js +11 -8
  50. package/dist-es/waiters/waitForLoadBalancerAvailable.js +93 -52
  51. package/dist-es/waiters/waitForLoadBalancerExists.js +42 -23
  52. package/dist-es/waiters/waitForLoadBalancersDeleted.js +69 -38
  53. package/dist-es/waiters/waitForTargetDeregistered.js +69 -38
  54. package/dist-es/waiters/waitForTargetInService.js +69 -38
  55. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AddListenerCertificatesCommand, } from "./commands/AddListenerCertificatesCommand";
2
3
  import { AddTagsCommand } from "./commands/AddTagsCommand";
3
4
  import { CreateListenerCommand, } from "./commands/CreateListenerCommand";
@@ -33,481 +34,487 @@ import { SetRulePrioritiesCommand, } from "./commands/SetRulePrioritiesCommand";
33
34
  import { SetSecurityGroupsCommand, } from "./commands/SetSecurityGroupsCommand";
34
35
  import { SetSubnetsCommand } from "./commands/SetSubnetsCommand";
35
36
  import { ElasticLoadBalancingV2Client } from "./ElasticLoadBalancingV2Client";
36
- export class ElasticLoadBalancingV2 extends ElasticLoadBalancingV2Client {
37
- addListenerCertificates(args, optionsOrCb, cb) {
38
- const command = new AddListenerCertificatesCommand(args);
37
+ var ElasticLoadBalancingV2 = (function (_super) {
38
+ __extends(ElasticLoadBalancingV2, _super);
39
+ function ElasticLoadBalancingV2() {
40
+ return _super !== null && _super.apply(this, arguments) || this;
41
+ }
42
+ ElasticLoadBalancingV2.prototype.addListenerCertificates = function (args, optionsOrCb, cb) {
43
+ var command = new AddListenerCertificatesCommand(args);
39
44
  if (typeof optionsOrCb === "function") {
40
45
  this.send(command, optionsOrCb);
41
46
  }
42
47
  else if (typeof cb === "function") {
43
48
  if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
45
50
  this.send(command, optionsOrCb || {}, cb);
46
51
  }
47
52
  else {
48
53
  return this.send(command, optionsOrCb);
49
54
  }
50
- }
51
- addTags(args, optionsOrCb, cb) {
52
- const command = new AddTagsCommand(args);
55
+ };
56
+ ElasticLoadBalancingV2.prototype.addTags = function (args, optionsOrCb, cb) {
57
+ var command = new AddTagsCommand(args);
53
58
  if (typeof optionsOrCb === "function") {
54
59
  this.send(command, optionsOrCb);
55
60
  }
56
61
  else if (typeof cb === "function") {
57
62
  if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
59
64
  this.send(command, optionsOrCb || {}, cb);
60
65
  }
61
66
  else {
62
67
  return this.send(command, optionsOrCb);
63
68
  }
64
- }
65
- createListener(args, optionsOrCb, cb) {
66
- const command = new CreateListenerCommand(args);
69
+ };
70
+ ElasticLoadBalancingV2.prototype.createListener = function (args, optionsOrCb, cb) {
71
+ var command = new CreateListenerCommand(args);
67
72
  if (typeof optionsOrCb === "function") {
68
73
  this.send(command, optionsOrCb);
69
74
  }
70
75
  else if (typeof cb === "function") {
71
76
  if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
73
78
  this.send(command, optionsOrCb || {}, cb);
74
79
  }
75
80
  else {
76
81
  return this.send(command, optionsOrCb);
77
82
  }
78
- }
79
- createLoadBalancer(args, optionsOrCb, cb) {
80
- const command = new CreateLoadBalancerCommand(args);
83
+ };
84
+ ElasticLoadBalancingV2.prototype.createLoadBalancer = function (args, optionsOrCb, cb) {
85
+ var command = new CreateLoadBalancerCommand(args);
81
86
  if (typeof optionsOrCb === "function") {
82
87
  this.send(command, optionsOrCb);
83
88
  }
84
89
  else if (typeof cb === "function") {
85
90
  if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
92
  this.send(command, optionsOrCb || {}, cb);
88
93
  }
89
94
  else {
90
95
  return this.send(command, optionsOrCb);
91
96
  }
92
- }
93
- createRule(args, optionsOrCb, cb) {
94
- const command = new CreateRuleCommand(args);
97
+ };
98
+ ElasticLoadBalancingV2.prototype.createRule = function (args, optionsOrCb, cb) {
99
+ var command = new CreateRuleCommand(args);
95
100
  if (typeof optionsOrCb === "function") {
96
101
  this.send(command, optionsOrCb);
97
102
  }
98
103
  else if (typeof cb === "function") {
99
104
  if (typeof optionsOrCb !== "object")
100
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
101
106
  this.send(command, optionsOrCb || {}, cb);
102
107
  }
103
108
  else {
104
109
  return this.send(command, optionsOrCb);
105
110
  }
106
- }
107
- createTargetGroup(args, optionsOrCb, cb) {
108
- const command = new CreateTargetGroupCommand(args);
111
+ };
112
+ ElasticLoadBalancingV2.prototype.createTargetGroup = function (args, optionsOrCb, cb) {
113
+ var command = new CreateTargetGroupCommand(args);
109
114
  if (typeof optionsOrCb === "function") {
110
115
  this.send(command, optionsOrCb);
111
116
  }
112
117
  else if (typeof cb === "function") {
113
118
  if (typeof optionsOrCb !== "object")
114
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
115
120
  this.send(command, optionsOrCb || {}, cb);
116
121
  }
117
122
  else {
118
123
  return this.send(command, optionsOrCb);
119
124
  }
120
- }
121
- deleteListener(args, optionsOrCb, cb) {
122
- const command = new DeleteListenerCommand(args);
125
+ };
126
+ ElasticLoadBalancingV2.prototype.deleteListener = function (args, optionsOrCb, cb) {
127
+ var command = new DeleteListenerCommand(args);
123
128
  if (typeof optionsOrCb === "function") {
124
129
  this.send(command, optionsOrCb);
125
130
  }
126
131
  else if (typeof cb === "function") {
127
132
  if (typeof optionsOrCb !== "object")
128
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
129
134
  this.send(command, optionsOrCb || {}, cb);
130
135
  }
131
136
  else {
132
137
  return this.send(command, optionsOrCb);
133
138
  }
134
- }
135
- deleteLoadBalancer(args, optionsOrCb, cb) {
136
- const command = new DeleteLoadBalancerCommand(args);
139
+ };
140
+ ElasticLoadBalancingV2.prototype.deleteLoadBalancer = function (args, optionsOrCb, cb) {
141
+ var command = new DeleteLoadBalancerCommand(args);
137
142
  if (typeof optionsOrCb === "function") {
138
143
  this.send(command, optionsOrCb);
139
144
  }
140
145
  else if (typeof cb === "function") {
141
146
  if (typeof optionsOrCb !== "object")
142
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
143
148
  this.send(command, optionsOrCb || {}, cb);
144
149
  }
145
150
  else {
146
151
  return this.send(command, optionsOrCb);
147
152
  }
148
- }
149
- deleteRule(args, optionsOrCb, cb) {
150
- const command = new DeleteRuleCommand(args);
153
+ };
154
+ ElasticLoadBalancingV2.prototype.deleteRule = function (args, optionsOrCb, cb) {
155
+ var command = new DeleteRuleCommand(args);
151
156
  if (typeof optionsOrCb === "function") {
152
157
  this.send(command, optionsOrCb);
153
158
  }
154
159
  else if (typeof cb === "function") {
155
160
  if (typeof optionsOrCb !== "object")
156
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
162
  this.send(command, optionsOrCb || {}, cb);
158
163
  }
159
164
  else {
160
165
  return this.send(command, optionsOrCb);
161
166
  }
162
- }
163
- deleteTargetGroup(args, optionsOrCb, cb) {
164
- const command = new DeleteTargetGroupCommand(args);
167
+ };
168
+ ElasticLoadBalancingV2.prototype.deleteTargetGroup = function (args, optionsOrCb, cb) {
169
+ var command = new DeleteTargetGroupCommand(args);
165
170
  if (typeof optionsOrCb === "function") {
166
171
  this.send(command, optionsOrCb);
167
172
  }
168
173
  else if (typeof cb === "function") {
169
174
  if (typeof optionsOrCb !== "object")
170
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
171
176
  this.send(command, optionsOrCb || {}, cb);
172
177
  }
173
178
  else {
174
179
  return this.send(command, optionsOrCb);
175
180
  }
176
- }
177
- deregisterTargets(args, optionsOrCb, cb) {
178
- const command = new DeregisterTargetsCommand(args);
181
+ };
182
+ ElasticLoadBalancingV2.prototype.deregisterTargets = function (args, optionsOrCb, cb) {
183
+ var command = new DeregisterTargetsCommand(args);
179
184
  if (typeof optionsOrCb === "function") {
180
185
  this.send(command, optionsOrCb);
181
186
  }
182
187
  else if (typeof cb === "function") {
183
188
  if (typeof optionsOrCb !== "object")
184
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
189
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
185
190
  this.send(command, optionsOrCb || {}, cb);
186
191
  }
187
192
  else {
188
193
  return this.send(command, optionsOrCb);
189
194
  }
190
- }
191
- describeAccountLimits(args, optionsOrCb, cb) {
192
- const command = new DescribeAccountLimitsCommand(args);
195
+ };
196
+ ElasticLoadBalancingV2.prototype.describeAccountLimits = function (args, optionsOrCb, cb) {
197
+ var command = new DescribeAccountLimitsCommand(args);
193
198
  if (typeof optionsOrCb === "function") {
194
199
  this.send(command, optionsOrCb);
195
200
  }
196
201
  else if (typeof cb === "function") {
197
202
  if (typeof optionsOrCb !== "object")
198
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
199
204
  this.send(command, optionsOrCb || {}, cb);
200
205
  }
201
206
  else {
202
207
  return this.send(command, optionsOrCb);
203
208
  }
204
- }
205
- describeListenerCertificates(args, optionsOrCb, cb) {
206
- const command = new DescribeListenerCertificatesCommand(args);
209
+ };
210
+ ElasticLoadBalancingV2.prototype.describeListenerCertificates = function (args, optionsOrCb, cb) {
211
+ var command = new DescribeListenerCertificatesCommand(args);
207
212
  if (typeof optionsOrCb === "function") {
208
213
  this.send(command, optionsOrCb);
209
214
  }
210
215
  else if (typeof cb === "function") {
211
216
  if (typeof optionsOrCb !== "object")
212
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
213
218
  this.send(command, optionsOrCb || {}, cb);
214
219
  }
215
220
  else {
216
221
  return this.send(command, optionsOrCb);
217
222
  }
218
- }
219
- describeListeners(args, optionsOrCb, cb) {
220
- const command = new DescribeListenersCommand(args);
223
+ };
224
+ ElasticLoadBalancingV2.prototype.describeListeners = function (args, optionsOrCb, cb) {
225
+ var command = new DescribeListenersCommand(args);
221
226
  if (typeof optionsOrCb === "function") {
222
227
  this.send(command, optionsOrCb);
223
228
  }
224
229
  else if (typeof cb === "function") {
225
230
  if (typeof optionsOrCb !== "object")
226
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
227
232
  this.send(command, optionsOrCb || {}, cb);
228
233
  }
229
234
  else {
230
235
  return this.send(command, optionsOrCb);
231
236
  }
232
- }
233
- describeLoadBalancerAttributes(args, optionsOrCb, cb) {
234
- const command = new DescribeLoadBalancerAttributesCommand(args);
237
+ };
238
+ ElasticLoadBalancingV2.prototype.describeLoadBalancerAttributes = function (args, optionsOrCb, cb) {
239
+ var command = new DescribeLoadBalancerAttributesCommand(args);
235
240
  if (typeof optionsOrCb === "function") {
236
241
  this.send(command, optionsOrCb);
237
242
  }
238
243
  else if (typeof cb === "function") {
239
244
  if (typeof optionsOrCb !== "object")
240
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
245
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
241
246
  this.send(command, optionsOrCb || {}, cb);
242
247
  }
243
248
  else {
244
249
  return this.send(command, optionsOrCb);
245
250
  }
246
- }
247
- describeLoadBalancers(args, optionsOrCb, cb) {
248
- const command = new DescribeLoadBalancersCommand(args);
251
+ };
252
+ ElasticLoadBalancingV2.prototype.describeLoadBalancers = function (args, optionsOrCb, cb) {
253
+ var command = new DescribeLoadBalancersCommand(args);
249
254
  if (typeof optionsOrCb === "function") {
250
255
  this.send(command, optionsOrCb);
251
256
  }
252
257
  else if (typeof cb === "function") {
253
258
  if (typeof optionsOrCb !== "object")
254
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
259
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
255
260
  this.send(command, optionsOrCb || {}, cb);
256
261
  }
257
262
  else {
258
263
  return this.send(command, optionsOrCb);
259
264
  }
260
- }
261
- describeRules(args, optionsOrCb, cb) {
262
- const command = new DescribeRulesCommand(args);
265
+ };
266
+ ElasticLoadBalancingV2.prototype.describeRules = function (args, optionsOrCb, cb) {
267
+ var command = new DescribeRulesCommand(args);
263
268
  if (typeof optionsOrCb === "function") {
264
269
  this.send(command, optionsOrCb);
265
270
  }
266
271
  else if (typeof cb === "function") {
267
272
  if (typeof optionsOrCb !== "object")
268
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
269
274
  this.send(command, optionsOrCb || {}, cb);
270
275
  }
271
276
  else {
272
277
  return this.send(command, optionsOrCb);
273
278
  }
274
- }
275
- describeSSLPolicies(args, optionsOrCb, cb) {
276
- const command = new DescribeSSLPoliciesCommand(args);
279
+ };
280
+ ElasticLoadBalancingV2.prototype.describeSSLPolicies = function (args, optionsOrCb, cb) {
281
+ var command = new DescribeSSLPoliciesCommand(args);
277
282
  if (typeof optionsOrCb === "function") {
278
283
  this.send(command, optionsOrCb);
279
284
  }
280
285
  else if (typeof cb === "function") {
281
286
  if (typeof optionsOrCb !== "object")
282
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
283
288
  this.send(command, optionsOrCb || {}, cb);
284
289
  }
285
290
  else {
286
291
  return this.send(command, optionsOrCb);
287
292
  }
288
- }
289
- describeTags(args, optionsOrCb, cb) {
290
- const command = new DescribeTagsCommand(args);
293
+ };
294
+ ElasticLoadBalancingV2.prototype.describeTags = function (args, optionsOrCb, cb) {
295
+ var command = new DescribeTagsCommand(args);
291
296
  if (typeof optionsOrCb === "function") {
292
297
  this.send(command, optionsOrCb);
293
298
  }
294
299
  else if (typeof cb === "function") {
295
300
  if (typeof optionsOrCb !== "object")
296
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
297
302
  this.send(command, optionsOrCb || {}, cb);
298
303
  }
299
304
  else {
300
305
  return this.send(command, optionsOrCb);
301
306
  }
302
- }
303
- describeTargetGroupAttributes(args, optionsOrCb, cb) {
304
- const command = new DescribeTargetGroupAttributesCommand(args);
307
+ };
308
+ ElasticLoadBalancingV2.prototype.describeTargetGroupAttributes = function (args, optionsOrCb, cb) {
309
+ var command = new DescribeTargetGroupAttributesCommand(args);
305
310
  if (typeof optionsOrCb === "function") {
306
311
  this.send(command, optionsOrCb);
307
312
  }
308
313
  else if (typeof cb === "function") {
309
314
  if (typeof optionsOrCb !== "object")
310
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
315
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
311
316
  this.send(command, optionsOrCb || {}, cb);
312
317
  }
313
318
  else {
314
319
  return this.send(command, optionsOrCb);
315
320
  }
316
- }
317
- describeTargetGroups(args, optionsOrCb, cb) {
318
- const command = new DescribeTargetGroupsCommand(args);
321
+ };
322
+ ElasticLoadBalancingV2.prototype.describeTargetGroups = function (args, optionsOrCb, cb) {
323
+ var command = new DescribeTargetGroupsCommand(args);
319
324
  if (typeof optionsOrCb === "function") {
320
325
  this.send(command, optionsOrCb);
321
326
  }
322
327
  else if (typeof cb === "function") {
323
328
  if (typeof optionsOrCb !== "object")
324
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
329
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
325
330
  this.send(command, optionsOrCb || {}, cb);
326
331
  }
327
332
  else {
328
333
  return this.send(command, optionsOrCb);
329
334
  }
330
- }
331
- describeTargetHealth(args, optionsOrCb, cb) {
332
- const command = new DescribeTargetHealthCommand(args);
335
+ };
336
+ ElasticLoadBalancingV2.prototype.describeTargetHealth = function (args, optionsOrCb, cb) {
337
+ var command = new DescribeTargetHealthCommand(args);
333
338
  if (typeof optionsOrCb === "function") {
334
339
  this.send(command, optionsOrCb);
335
340
  }
336
341
  else if (typeof cb === "function") {
337
342
  if (typeof optionsOrCb !== "object")
338
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
343
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
339
344
  this.send(command, optionsOrCb || {}, cb);
340
345
  }
341
346
  else {
342
347
  return this.send(command, optionsOrCb);
343
348
  }
344
- }
345
- modifyListener(args, optionsOrCb, cb) {
346
- const command = new ModifyListenerCommand(args);
349
+ };
350
+ ElasticLoadBalancingV2.prototype.modifyListener = function (args, optionsOrCb, cb) {
351
+ var command = new ModifyListenerCommand(args);
347
352
  if (typeof optionsOrCb === "function") {
348
353
  this.send(command, optionsOrCb);
349
354
  }
350
355
  else if (typeof cb === "function") {
351
356
  if (typeof optionsOrCb !== "object")
352
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
357
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
353
358
  this.send(command, optionsOrCb || {}, cb);
354
359
  }
355
360
  else {
356
361
  return this.send(command, optionsOrCb);
357
362
  }
358
- }
359
- modifyLoadBalancerAttributes(args, optionsOrCb, cb) {
360
- const command = new ModifyLoadBalancerAttributesCommand(args);
363
+ };
364
+ ElasticLoadBalancingV2.prototype.modifyLoadBalancerAttributes = function (args, optionsOrCb, cb) {
365
+ var command = new ModifyLoadBalancerAttributesCommand(args);
361
366
  if (typeof optionsOrCb === "function") {
362
367
  this.send(command, optionsOrCb);
363
368
  }
364
369
  else if (typeof cb === "function") {
365
370
  if (typeof optionsOrCb !== "object")
366
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
371
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
367
372
  this.send(command, optionsOrCb || {}, cb);
368
373
  }
369
374
  else {
370
375
  return this.send(command, optionsOrCb);
371
376
  }
372
- }
373
- modifyRule(args, optionsOrCb, cb) {
374
- const command = new ModifyRuleCommand(args);
377
+ };
378
+ ElasticLoadBalancingV2.prototype.modifyRule = function (args, optionsOrCb, cb) {
379
+ var command = new ModifyRuleCommand(args);
375
380
  if (typeof optionsOrCb === "function") {
376
381
  this.send(command, optionsOrCb);
377
382
  }
378
383
  else if (typeof cb === "function") {
379
384
  if (typeof optionsOrCb !== "object")
380
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
385
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
381
386
  this.send(command, optionsOrCb || {}, cb);
382
387
  }
383
388
  else {
384
389
  return this.send(command, optionsOrCb);
385
390
  }
386
- }
387
- modifyTargetGroup(args, optionsOrCb, cb) {
388
- const command = new ModifyTargetGroupCommand(args);
391
+ };
392
+ ElasticLoadBalancingV2.prototype.modifyTargetGroup = function (args, optionsOrCb, cb) {
393
+ var command = new ModifyTargetGroupCommand(args);
389
394
  if (typeof optionsOrCb === "function") {
390
395
  this.send(command, optionsOrCb);
391
396
  }
392
397
  else if (typeof cb === "function") {
393
398
  if (typeof optionsOrCb !== "object")
394
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
399
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
395
400
  this.send(command, optionsOrCb || {}, cb);
396
401
  }
397
402
  else {
398
403
  return this.send(command, optionsOrCb);
399
404
  }
400
- }
401
- modifyTargetGroupAttributes(args, optionsOrCb, cb) {
402
- const command = new ModifyTargetGroupAttributesCommand(args);
405
+ };
406
+ ElasticLoadBalancingV2.prototype.modifyTargetGroupAttributes = function (args, optionsOrCb, cb) {
407
+ var command = new ModifyTargetGroupAttributesCommand(args);
403
408
  if (typeof optionsOrCb === "function") {
404
409
  this.send(command, optionsOrCb);
405
410
  }
406
411
  else if (typeof cb === "function") {
407
412
  if (typeof optionsOrCb !== "object")
408
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
413
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
409
414
  this.send(command, optionsOrCb || {}, cb);
410
415
  }
411
416
  else {
412
417
  return this.send(command, optionsOrCb);
413
418
  }
414
- }
415
- registerTargets(args, optionsOrCb, cb) {
416
- const command = new RegisterTargetsCommand(args);
419
+ };
420
+ ElasticLoadBalancingV2.prototype.registerTargets = function (args, optionsOrCb, cb) {
421
+ var command = new RegisterTargetsCommand(args);
417
422
  if (typeof optionsOrCb === "function") {
418
423
  this.send(command, optionsOrCb);
419
424
  }
420
425
  else if (typeof cb === "function") {
421
426
  if (typeof optionsOrCb !== "object")
422
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
427
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
423
428
  this.send(command, optionsOrCb || {}, cb);
424
429
  }
425
430
  else {
426
431
  return this.send(command, optionsOrCb);
427
432
  }
428
- }
429
- removeListenerCertificates(args, optionsOrCb, cb) {
430
- const command = new RemoveListenerCertificatesCommand(args);
433
+ };
434
+ ElasticLoadBalancingV2.prototype.removeListenerCertificates = function (args, optionsOrCb, cb) {
435
+ var command = new RemoveListenerCertificatesCommand(args);
431
436
  if (typeof optionsOrCb === "function") {
432
437
  this.send(command, optionsOrCb);
433
438
  }
434
439
  else if (typeof cb === "function") {
435
440
  if (typeof optionsOrCb !== "object")
436
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
441
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
437
442
  this.send(command, optionsOrCb || {}, cb);
438
443
  }
439
444
  else {
440
445
  return this.send(command, optionsOrCb);
441
446
  }
442
- }
443
- removeTags(args, optionsOrCb, cb) {
444
- const command = new RemoveTagsCommand(args);
447
+ };
448
+ ElasticLoadBalancingV2.prototype.removeTags = function (args, optionsOrCb, cb) {
449
+ var command = new RemoveTagsCommand(args);
445
450
  if (typeof optionsOrCb === "function") {
446
451
  this.send(command, optionsOrCb);
447
452
  }
448
453
  else if (typeof cb === "function") {
449
454
  if (typeof optionsOrCb !== "object")
450
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
455
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
451
456
  this.send(command, optionsOrCb || {}, cb);
452
457
  }
453
458
  else {
454
459
  return this.send(command, optionsOrCb);
455
460
  }
456
- }
457
- setIpAddressType(args, optionsOrCb, cb) {
458
- const command = new SetIpAddressTypeCommand(args);
461
+ };
462
+ ElasticLoadBalancingV2.prototype.setIpAddressType = function (args, optionsOrCb, cb) {
463
+ var command = new SetIpAddressTypeCommand(args);
459
464
  if (typeof optionsOrCb === "function") {
460
465
  this.send(command, optionsOrCb);
461
466
  }
462
467
  else if (typeof cb === "function") {
463
468
  if (typeof optionsOrCb !== "object")
464
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
469
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
465
470
  this.send(command, optionsOrCb || {}, cb);
466
471
  }
467
472
  else {
468
473
  return this.send(command, optionsOrCb);
469
474
  }
470
- }
471
- setRulePriorities(args, optionsOrCb, cb) {
472
- const command = new SetRulePrioritiesCommand(args);
475
+ };
476
+ ElasticLoadBalancingV2.prototype.setRulePriorities = function (args, optionsOrCb, cb) {
477
+ var command = new SetRulePrioritiesCommand(args);
473
478
  if (typeof optionsOrCb === "function") {
474
479
  this.send(command, optionsOrCb);
475
480
  }
476
481
  else if (typeof cb === "function") {
477
482
  if (typeof optionsOrCb !== "object")
478
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
483
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
479
484
  this.send(command, optionsOrCb || {}, cb);
480
485
  }
481
486
  else {
482
487
  return this.send(command, optionsOrCb);
483
488
  }
484
- }
485
- setSecurityGroups(args, optionsOrCb, cb) {
486
- const command = new SetSecurityGroupsCommand(args);
489
+ };
490
+ ElasticLoadBalancingV2.prototype.setSecurityGroups = function (args, optionsOrCb, cb) {
491
+ var command = new SetSecurityGroupsCommand(args);
487
492
  if (typeof optionsOrCb === "function") {
488
493
  this.send(command, optionsOrCb);
489
494
  }
490
495
  else if (typeof cb === "function") {
491
496
  if (typeof optionsOrCb !== "object")
492
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
497
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
493
498
  this.send(command, optionsOrCb || {}, cb);
494
499
  }
495
500
  else {
496
501
  return this.send(command, optionsOrCb);
497
502
  }
498
- }
499
- setSubnets(args, optionsOrCb, cb) {
500
- const command = new SetSubnetsCommand(args);
503
+ };
504
+ ElasticLoadBalancingV2.prototype.setSubnets = function (args, optionsOrCb, cb) {
505
+ var command = new SetSubnetsCommand(args);
501
506
  if (typeof optionsOrCb === "function") {
502
507
  this.send(command, optionsOrCb);
503
508
  }
504
509
  else if (typeof cb === "function") {
505
510
  if (typeof optionsOrCb !== "object")
506
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
511
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
507
512
  this.send(command, optionsOrCb || {}, cb);
508
513
  }
509
514
  else {
510
515
  return this.send(command, optionsOrCb);
511
516
  }
512
- }
513
- }
517
+ };
518
+ return ElasticLoadBalancingV2;
519
+ }(ElasticLoadBalancingV2Client));
520
+ export { ElasticLoadBalancingV2 };