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