@aws-sdk/client-global-accelerator 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 (68) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/GlobalAccelerator.js +190 -197
  3. package/dist-es/GlobalAcceleratorClient.js +22 -28
  4. package/dist-es/commands/AddCustomRoutingEndpointsCommand.js +21 -28
  5. package/dist-es/commands/AdvertiseByoipCidrCommand.js +21 -28
  6. package/dist-es/commands/AllowCustomRoutingTrafficCommand.js +22 -29
  7. package/dist-es/commands/CreateAcceleratorCommand.js +21 -28
  8. package/dist-es/commands/CreateCustomRoutingAcceleratorCommand.js +21 -28
  9. package/dist-es/commands/CreateCustomRoutingEndpointGroupCommand.js +21 -28
  10. package/dist-es/commands/CreateCustomRoutingListenerCommand.js +21 -28
  11. package/dist-es/commands/CreateEndpointGroupCommand.js +21 -28
  12. package/dist-es/commands/CreateListenerCommand.js +21 -28
  13. package/dist-es/commands/DeleteAcceleratorCommand.js +22 -29
  14. package/dist-es/commands/DeleteCustomRoutingAcceleratorCommand.js +22 -29
  15. package/dist-es/commands/DeleteCustomRoutingEndpointGroupCommand.js +22 -29
  16. package/dist-es/commands/DeleteCustomRoutingListenerCommand.js +22 -29
  17. package/dist-es/commands/DeleteEndpointGroupCommand.js +22 -29
  18. package/dist-es/commands/DeleteListenerCommand.js +22 -29
  19. package/dist-es/commands/DenyCustomRoutingTrafficCommand.js +22 -29
  20. package/dist-es/commands/DeprovisionByoipCidrCommand.js +21 -28
  21. package/dist-es/commands/DescribeAcceleratorAttributesCommand.js +21 -28
  22. package/dist-es/commands/DescribeAcceleratorCommand.js +21 -28
  23. package/dist-es/commands/DescribeCustomRoutingAcceleratorAttributesCommand.js +21 -28
  24. package/dist-es/commands/DescribeCustomRoutingAcceleratorCommand.js +21 -28
  25. package/dist-es/commands/DescribeCustomRoutingEndpointGroupCommand.js +21 -28
  26. package/dist-es/commands/DescribeCustomRoutingListenerCommand.js +21 -28
  27. package/dist-es/commands/DescribeEndpointGroupCommand.js +21 -28
  28. package/dist-es/commands/DescribeListenerCommand.js +21 -28
  29. package/dist-es/commands/ListAcceleratorsCommand.js +21 -28
  30. package/dist-es/commands/ListByoipCidrsCommand.js +21 -28
  31. package/dist-es/commands/ListCustomRoutingAcceleratorsCommand.js +21 -28
  32. package/dist-es/commands/ListCustomRoutingEndpointGroupsCommand.js +21 -28
  33. package/dist-es/commands/ListCustomRoutingListenersCommand.js +21 -28
  34. package/dist-es/commands/ListCustomRoutingPortMappingsByDestinationCommand.js +21 -28
  35. package/dist-es/commands/ListCustomRoutingPortMappingsCommand.js +21 -28
  36. package/dist-es/commands/ListEndpointGroupsCommand.js +21 -28
  37. package/dist-es/commands/ListListenersCommand.js +21 -28
  38. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  39. package/dist-es/commands/ProvisionByoipCidrCommand.js +21 -28
  40. package/dist-es/commands/RemoveCustomRoutingEndpointsCommand.js +22 -29
  41. package/dist-es/commands/TagResourceCommand.js +21 -28
  42. package/dist-es/commands/UntagResourceCommand.js +21 -28
  43. package/dist-es/commands/UpdateAcceleratorAttributesCommand.js +21 -28
  44. package/dist-es/commands/UpdateAcceleratorCommand.js +21 -28
  45. package/dist-es/commands/UpdateCustomRoutingAcceleratorAttributesCommand.js +21 -28
  46. package/dist-es/commands/UpdateCustomRoutingAcceleratorCommand.js +21 -28
  47. package/dist-es/commands/UpdateCustomRoutingListenerCommand.js +21 -28
  48. package/dist-es/commands/UpdateEndpointGroupCommand.js +21 -28
  49. package/dist-es/commands/UpdateListenerCommand.js +21 -28
  50. package/dist-es/commands/WithdrawByoipCidrCommand.js +21 -28
  51. package/dist-es/endpoints.js +8 -8
  52. package/dist-es/models/GlobalAcceleratorServiceException.js +5 -10
  53. package/dist-es/models/models_0.js +546 -327
  54. package/dist-es/pagination/ListAcceleratorsPaginator.js +25 -68
  55. package/dist-es/pagination/ListByoipCidrsPaginator.js +25 -68
  56. package/dist-es/pagination/ListCustomRoutingAcceleratorsPaginator.js +25 -68
  57. package/dist-es/pagination/ListCustomRoutingEndpointGroupsPaginator.js +25 -68
  58. package/dist-es/pagination/ListCustomRoutingListenersPaginator.js +25 -68
  59. package/dist-es/pagination/ListCustomRoutingPortMappingsByDestinationPaginator.js +25 -68
  60. package/dist-es/pagination/ListCustomRoutingPortMappingsPaginator.js +25 -68
  61. package/dist-es/pagination/ListEndpointGroupsPaginator.js +25 -68
  62. package/dist-es/pagination/ListListenersPaginator.js +25 -68
  63. package/dist-es/protocols/Aws_json1_1.js +3127 -4071
  64. package/dist-es/runtimeConfig.browser.js +26 -12
  65. package/dist-es/runtimeConfig.js +30 -12
  66. package/dist-es/runtimeConfig.native.js +8 -5
  67. package/dist-es/runtimeConfig.shared.js +8 -11
  68. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AddCustomRoutingEndpointsCommand, } from "./commands/AddCustomRoutingEndpointsCommand";
3
2
  import { AdvertiseByoipCidrCommand, } from "./commands/AdvertiseByoipCidrCommand";
4
3
  import { AllowCustomRoutingTrafficCommand, } from "./commands/AllowCustomRoutingTrafficCommand";
@@ -47,669 +46,663 @@ import { UpdateEndpointGroupCommand, } from "./commands/UpdateEndpointGroupComma
47
46
  import { UpdateListenerCommand, } from "./commands/UpdateListenerCommand";
48
47
  import { WithdrawByoipCidrCommand, } from "./commands/WithdrawByoipCidrCommand";
49
48
  import { GlobalAcceleratorClient } from "./GlobalAcceleratorClient";
50
- var GlobalAccelerator = (function (_super) {
51
- __extends(GlobalAccelerator, _super);
52
- function GlobalAccelerator() {
53
- return _super !== null && _super.apply(this, arguments) || this;
54
- }
55
- GlobalAccelerator.prototype.addCustomRoutingEndpoints = function (args, optionsOrCb, cb) {
56
- var command = new AddCustomRoutingEndpointsCommand(args);
49
+ export class GlobalAccelerator extends GlobalAcceleratorClient {
50
+ addCustomRoutingEndpoints(args, optionsOrCb, cb) {
51
+ const command = new AddCustomRoutingEndpointsCommand(args);
57
52
  if (typeof optionsOrCb === "function") {
58
53
  this.send(command, optionsOrCb);
59
54
  }
60
55
  else if (typeof cb === "function") {
61
56
  if (typeof optionsOrCb !== "object")
62
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
57
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
58
  this.send(command, optionsOrCb || {}, cb);
64
59
  }
65
60
  else {
66
61
  return this.send(command, optionsOrCb);
67
62
  }
68
- };
69
- GlobalAccelerator.prototype.advertiseByoipCidr = function (args, optionsOrCb, cb) {
70
- var command = new AdvertiseByoipCidrCommand(args);
63
+ }
64
+ advertiseByoipCidr(args, optionsOrCb, cb) {
65
+ const command = new AdvertiseByoipCidrCommand(args);
71
66
  if (typeof optionsOrCb === "function") {
72
67
  this.send(command, optionsOrCb);
73
68
  }
74
69
  else if (typeof cb === "function") {
75
70
  if (typeof optionsOrCb !== "object")
76
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
71
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
72
  this.send(command, optionsOrCb || {}, cb);
78
73
  }
79
74
  else {
80
75
  return this.send(command, optionsOrCb);
81
76
  }
82
- };
83
- GlobalAccelerator.prototype.allowCustomRoutingTraffic = function (args, optionsOrCb, cb) {
84
- var command = new AllowCustomRoutingTrafficCommand(args);
77
+ }
78
+ allowCustomRoutingTraffic(args, optionsOrCb, cb) {
79
+ const command = new AllowCustomRoutingTrafficCommand(args);
85
80
  if (typeof optionsOrCb === "function") {
86
81
  this.send(command, optionsOrCb);
87
82
  }
88
83
  else if (typeof cb === "function") {
89
84
  if (typeof optionsOrCb !== "object")
90
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
85
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
86
  this.send(command, optionsOrCb || {}, cb);
92
87
  }
93
88
  else {
94
89
  return this.send(command, optionsOrCb);
95
90
  }
96
- };
97
- GlobalAccelerator.prototype.createAccelerator = function (args, optionsOrCb, cb) {
98
- var command = new CreateAcceleratorCommand(args);
91
+ }
92
+ createAccelerator(args, optionsOrCb, cb) {
93
+ const command = new CreateAcceleratorCommand(args);
99
94
  if (typeof optionsOrCb === "function") {
100
95
  this.send(command, optionsOrCb);
101
96
  }
102
97
  else if (typeof cb === "function") {
103
98
  if (typeof optionsOrCb !== "object")
104
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
99
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
100
  this.send(command, optionsOrCb || {}, cb);
106
101
  }
107
102
  else {
108
103
  return this.send(command, optionsOrCb);
109
104
  }
110
- };
111
- GlobalAccelerator.prototype.createCustomRoutingAccelerator = function (args, optionsOrCb, cb) {
112
- var command = new CreateCustomRoutingAcceleratorCommand(args);
105
+ }
106
+ createCustomRoutingAccelerator(args, optionsOrCb, cb) {
107
+ const command = new CreateCustomRoutingAcceleratorCommand(args);
113
108
  if (typeof optionsOrCb === "function") {
114
109
  this.send(command, optionsOrCb);
115
110
  }
116
111
  else if (typeof cb === "function") {
117
112
  if (typeof optionsOrCb !== "object")
118
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
113
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
114
  this.send(command, optionsOrCb || {}, cb);
120
115
  }
121
116
  else {
122
117
  return this.send(command, optionsOrCb);
123
118
  }
124
- };
125
- GlobalAccelerator.prototype.createCustomRoutingEndpointGroup = function (args, optionsOrCb, cb) {
126
- var command = new CreateCustomRoutingEndpointGroupCommand(args);
119
+ }
120
+ createCustomRoutingEndpointGroup(args, optionsOrCb, cb) {
121
+ const command = new CreateCustomRoutingEndpointGroupCommand(args);
127
122
  if (typeof optionsOrCb === "function") {
128
123
  this.send(command, optionsOrCb);
129
124
  }
130
125
  else if (typeof cb === "function") {
131
126
  if (typeof optionsOrCb !== "object")
132
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
127
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
128
  this.send(command, optionsOrCb || {}, cb);
134
129
  }
135
130
  else {
136
131
  return this.send(command, optionsOrCb);
137
132
  }
138
- };
139
- GlobalAccelerator.prototype.createCustomRoutingListener = function (args, optionsOrCb, cb) {
140
- var command = new CreateCustomRoutingListenerCommand(args);
133
+ }
134
+ createCustomRoutingListener(args, optionsOrCb, cb) {
135
+ const command = new CreateCustomRoutingListenerCommand(args);
141
136
  if (typeof optionsOrCb === "function") {
142
137
  this.send(command, optionsOrCb);
143
138
  }
144
139
  else if (typeof cb === "function") {
145
140
  if (typeof optionsOrCb !== "object")
146
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
141
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
142
  this.send(command, optionsOrCb || {}, cb);
148
143
  }
149
144
  else {
150
145
  return this.send(command, optionsOrCb);
151
146
  }
152
- };
153
- GlobalAccelerator.prototype.createEndpointGroup = function (args, optionsOrCb, cb) {
154
- var command = new CreateEndpointGroupCommand(args);
147
+ }
148
+ createEndpointGroup(args, optionsOrCb, cb) {
149
+ const command = new CreateEndpointGroupCommand(args);
155
150
  if (typeof optionsOrCb === "function") {
156
151
  this.send(command, optionsOrCb);
157
152
  }
158
153
  else if (typeof cb === "function") {
159
154
  if (typeof optionsOrCb !== "object")
160
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
155
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
156
  this.send(command, optionsOrCb || {}, cb);
162
157
  }
163
158
  else {
164
159
  return this.send(command, optionsOrCb);
165
160
  }
166
- };
167
- GlobalAccelerator.prototype.createListener = function (args, optionsOrCb, cb) {
168
- var command = new CreateListenerCommand(args);
161
+ }
162
+ createListener(args, optionsOrCb, cb) {
163
+ const command = new CreateListenerCommand(args);
169
164
  if (typeof optionsOrCb === "function") {
170
165
  this.send(command, optionsOrCb);
171
166
  }
172
167
  else if (typeof cb === "function") {
173
168
  if (typeof optionsOrCb !== "object")
174
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
169
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
170
  this.send(command, optionsOrCb || {}, cb);
176
171
  }
177
172
  else {
178
173
  return this.send(command, optionsOrCb);
179
174
  }
180
- };
181
- GlobalAccelerator.prototype.deleteAccelerator = function (args, optionsOrCb, cb) {
182
- var command = new DeleteAcceleratorCommand(args);
175
+ }
176
+ deleteAccelerator(args, optionsOrCb, cb) {
177
+ const command = new DeleteAcceleratorCommand(args);
183
178
  if (typeof optionsOrCb === "function") {
184
179
  this.send(command, optionsOrCb);
185
180
  }
186
181
  else if (typeof cb === "function") {
187
182
  if (typeof optionsOrCb !== "object")
188
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
183
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
189
184
  this.send(command, optionsOrCb || {}, cb);
190
185
  }
191
186
  else {
192
187
  return this.send(command, optionsOrCb);
193
188
  }
194
- };
195
- GlobalAccelerator.prototype.deleteCustomRoutingAccelerator = function (args, optionsOrCb, cb) {
196
- var command = new DeleteCustomRoutingAcceleratorCommand(args);
189
+ }
190
+ deleteCustomRoutingAccelerator(args, optionsOrCb, cb) {
191
+ const command = new DeleteCustomRoutingAcceleratorCommand(args);
197
192
  if (typeof optionsOrCb === "function") {
198
193
  this.send(command, optionsOrCb);
199
194
  }
200
195
  else if (typeof cb === "function") {
201
196
  if (typeof optionsOrCb !== "object")
202
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
197
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
198
  this.send(command, optionsOrCb || {}, cb);
204
199
  }
205
200
  else {
206
201
  return this.send(command, optionsOrCb);
207
202
  }
208
- };
209
- GlobalAccelerator.prototype.deleteCustomRoutingEndpointGroup = function (args, optionsOrCb, cb) {
210
- var command = new DeleteCustomRoutingEndpointGroupCommand(args);
203
+ }
204
+ deleteCustomRoutingEndpointGroup(args, optionsOrCb, cb) {
205
+ const command = new DeleteCustomRoutingEndpointGroupCommand(args);
211
206
  if (typeof optionsOrCb === "function") {
212
207
  this.send(command, optionsOrCb);
213
208
  }
214
209
  else if (typeof cb === "function") {
215
210
  if (typeof optionsOrCb !== "object")
216
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
211
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
212
  this.send(command, optionsOrCb || {}, cb);
218
213
  }
219
214
  else {
220
215
  return this.send(command, optionsOrCb);
221
216
  }
222
- };
223
- GlobalAccelerator.prototype.deleteCustomRoutingListener = function (args, optionsOrCb, cb) {
224
- var command = new DeleteCustomRoutingListenerCommand(args);
217
+ }
218
+ deleteCustomRoutingListener(args, optionsOrCb, cb) {
219
+ const command = new DeleteCustomRoutingListenerCommand(args);
225
220
  if (typeof optionsOrCb === "function") {
226
221
  this.send(command, optionsOrCb);
227
222
  }
228
223
  else if (typeof cb === "function") {
229
224
  if (typeof optionsOrCb !== "object")
230
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
225
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
226
  this.send(command, optionsOrCb || {}, cb);
232
227
  }
233
228
  else {
234
229
  return this.send(command, optionsOrCb);
235
230
  }
236
- };
237
- GlobalAccelerator.prototype.deleteEndpointGroup = function (args, optionsOrCb, cb) {
238
- var command = new DeleteEndpointGroupCommand(args);
231
+ }
232
+ deleteEndpointGroup(args, optionsOrCb, cb) {
233
+ const command = new DeleteEndpointGroupCommand(args);
239
234
  if (typeof optionsOrCb === "function") {
240
235
  this.send(command, optionsOrCb);
241
236
  }
242
237
  else if (typeof cb === "function") {
243
238
  if (typeof optionsOrCb !== "object")
244
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
239
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
245
240
  this.send(command, optionsOrCb || {}, cb);
246
241
  }
247
242
  else {
248
243
  return this.send(command, optionsOrCb);
249
244
  }
250
- };
251
- GlobalAccelerator.prototype.deleteListener = function (args, optionsOrCb, cb) {
252
- var command = new DeleteListenerCommand(args);
245
+ }
246
+ deleteListener(args, optionsOrCb, cb) {
247
+ const command = new DeleteListenerCommand(args);
253
248
  if (typeof optionsOrCb === "function") {
254
249
  this.send(command, optionsOrCb);
255
250
  }
256
251
  else if (typeof cb === "function") {
257
252
  if (typeof optionsOrCb !== "object")
258
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
253
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
259
254
  this.send(command, optionsOrCb || {}, cb);
260
255
  }
261
256
  else {
262
257
  return this.send(command, optionsOrCb);
263
258
  }
264
- };
265
- GlobalAccelerator.prototype.denyCustomRoutingTraffic = function (args, optionsOrCb, cb) {
266
- var command = new DenyCustomRoutingTrafficCommand(args);
259
+ }
260
+ denyCustomRoutingTraffic(args, optionsOrCb, cb) {
261
+ const command = new DenyCustomRoutingTrafficCommand(args);
267
262
  if (typeof optionsOrCb === "function") {
268
263
  this.send(command, optionsOrCb);
269
264
  }
270
265
  else if (typeof cb === "function") {
271
266
  if (typeof optionsOrCb !== "object")
272
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
267
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
268
  this.send(command, optionsOrCb || {}, cb);
274
269
  }
275
270
  else {
276
271
  return this.send(command, optionsOrCb);
277
272
  }
278
- };
279
- GlobalAccelerator.prototype.deprovisionByoipCidr = function (args, optionsOrCb, cb) {
280
- var command = new DeprovisionByoipCidrCommand(args);
273
+ }
274
+ deprovisionByoipCidr(args, optionsOrCb, cb) {
275
+ const command = new DeprovisionByoipCidrCommand(args);
281
276
  if (typeof optionsOrCb === "function") {
282
277
  this.send(command, optionsOrCb);
283
278
  }
284
279
  else if (typeof cb === "function") {
285
280
  if (typeof optionsOrCb !== "object")
286
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
281
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
282
  this.send(command, optionsOrCb || {}, cb);
288
283
  }
289
284
  else {
290
285
  return this.send(command, optionsOrCb);
291
286
  }
292
- };
293
- GlobalAccelerator.prototype.describeAccelerator = function (args, optionsOrCb, cb) {
294
- var command = new DescribeAcceleratorCommand(args);
287
+ }
288
+ describeAccelerator(args, optionsOrCb, cb) {
289
+ const command = new DescribeAcceleratorCommand(args);
295
290
  if (typeof optionsOrCb === "function") {
296
291
  this.send(command, optionsOrCb);
297
292
  }
298
293
  else if (typeof cb === "function") {
299
294
  if (typeof optionsOrCb !== "object")
300
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
295
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
296
  this.send(command, optionsOrCb || {}, cb);
302
297
  }
303
298
  else {
304
299
  return this.send(command, optionsOrCb);
305
300
  }
306
- };
307
- GlobalAccelerator.prototype.describeAcceleratorAttributes = function (args, optionsOrCb, cb) {
308
- var command = new DescribeAcceleratorAttributesCommand(args);
301
+ }
302
+ describeAcceleratorAttributes(args, optionsOrCb, cb) {
303
+ const command = new DescribeAcceleratorAttributesCommand(args);
309
304
  if (typeof optionsOrCb === "function") {
310
305
  this.send(command, optionsOrCb);
311
306
  }
312
307
  else if (typeof cb === "function") {
313
308
  if (typeof optionsOrCb !== "object")
314
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
309
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
315
310
  this.send(command, optionsOrCb || {}, cb);
316
311
  }
317
312
  else {
318
313
  return this.send(command, optionsOrCb);
319
314
  }
320
- };
321
- GlobalAccelerator.prototype.describeCustomRoutingAccelerator = function (args, optionsOrCb, cb) {
322
- var command = new DescribeCustomRoutingAcceleratorCommand(args);
315
+ }
316
+ describeCustomRoutingAccelerator(args, optionsOrCb, cb) {
317
+ const command = new DescribeCustomRoutingAcceleratorCommand(args);
323
318
  if (typeof optionsOrCb === "function") {
324
319
  this.send(command, optionsOrCb);
325
320
  }
326
321
  else if (typeof cb === "function") {
327
322
  if (typeof optionsOrCb !== "object")
328
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
323
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
329
324
  this.send(command, optionsOrCb || {}, cb);
330
325
  }
331
326
  else {
332
327
  return this.send(command, optionsOrCb);
333
328
  }
334
- };
335
- GlobalAccelerator.prototype.describeCustomRoutingAcceleratorAttributes = function (args, optionsOrCb, cb) {
336
- var command = new DescribeCustomRoutingAcceleratorAttributesCommand(args);
329
+ }
330
+ describeCustomRoutingAcceleratorAttributes(args, optionsOrCb, cb) {
331
+ const command = new DescribeCustomRoutingAcceleratorAttributesCommand(args);
337
332
  if (typeof optionsOrCb === "function") {
338
333
  this.send(command, optionsOrCb);
339
334
  }
340
335
  else if (typeof cb === "function") {
341
336
  if (typeof optionsOrCb !== "object")
342
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
337
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
343
338
  this.send(command, optionsOrCb || {}, cb);
344
339
  }
345
340
  else {
346
341
  return this.send(command, optionsOrCb);
347
342
  }
348
- };
349
- GlobalAccelerator.prototype.describeCustomRoutingEndpointGroup = function (args, optionsOrCb, cb) {
350
- var command = new DescribeCustomRoutingEndpointGroupCommand(args);
343
+ }
344
+ describeCustomRoutingEndpointGroup(args, optionsOrCb, cb) {
345
+ const command = new DescribeCustomRoutingEndpointGroupCommand(args);
351
346
  if (typeof optionsOrCb === "function") {
352
347
  this.send(command, optionsOrCb);
353
348
  }
354
349
  else if (typeof cb === "function") {
355
350
  if (typeof optionsOrCb !== "object")
356
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
351
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
357
352
  this.send(command, optionsOrCb || {}, cb);
358
353
  }
359
354
  else {
360
355
  return this.send(command, optionsOrCb);
361
356
  }
362
- };
363
- GlobalAccelerator.prototype.describeCustomRoutingListener = function (args, optionsOrCb, cb) {
364
- var command = new DescribeCustomRoutingListenerCommand(args);
357
+ }
358
+ describeCustomRoutingListener(args, optionsOrCb, cb) {
359
+ const command = new DescribeCustomRoutingListenerCommand(args);
365
360
  if (typeof optionsOrCb === "function") {
366
361
  this.send(command, optionsOrCb);
367
362
  }
368
363
  else if (typeof cb === "function") {
369
364
  if (typeof optionsOrCb !== "object")
370
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
365
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
371
366
  this.send(command, optionsOrCb || {}, cb);
372
367
  }
373
368
  else {
374
369
  return this.send(command, optionsOrCb);
375
370
  }
376
- };
377
- GlobalAccelerator.prototype.describeEndpointGroup = function (args, optionsOrCb, cb) {
378
- var command = new DescribeEndpointGroupCommand(args);
371
+ }
372
+ describeEndpointGroup(args, optionsOrCb, cb) {
373
+ const command = new DescribeEndpointGroupCommand(args);
379
374
  if (typeof optionsOrCb === "function") {
380
375
  this.send(command, optionsOrCb);
381
376
  }
382
377
  else if (typeof cb === "function") {
383
378
  if (typeof optionsOrCb !== "object")
384
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
379
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
385
380
  this.send(command, optionsOrCb || {}, cb);
386
381
  }
387
382
  else {
388
383
  return this.send(command, optionsOrCb);
389
384
  }
390
- };
391
- GlobalAccelerator.prototype.describeListener = function (args, optionsOrCb, cb) {
392
- var command = new DescribeListenerCommand(args);
385
+ }
386
+ describeListener(args, optionsOrCb, cb) {
387
+ const command = new DescribeListenerCommand(args);
393
388
  if (typeof optionsOrCb === "function") {
394
389
  this.send(command, optionsOrCb);
395
390
  }
396
391
  else if (typeof cb === "function") {
397
392
  if (typeof optionsOrCb !== "object")
398
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
393
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
399
394
  this.send(command, optionsOrCb || {}, cb);
400
395
  }
401
396
  else {
402
397
  return this.send(command, optionsOrCb);
403
398
  }
404
- };
405
- GlobalAccelerator.prototype.listAccelerators = function (args, optionsOrCb, cb) {
406
- var command = new ListAcceleratorsCommand(args);
399
+ }
400
+ listAccelerators(args, optionsOrCb, cb) {
401
+ const command = new ListAcceleratorsCommand(args);
407
402
  if (typeof optionsOrCb === "function") {
408
403
  this.send(command, optionsOrCb);
409
404
  }
410
405
  else if (typeof cb === "function") {
411
406
  if (typeof optionsOrCb !== "object")
412
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
407
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
413
408
  this.send(command, optionsOrCb || {}, cb);
414
409
  }
415
410
  else {
416
411
  return this.send(command, optionsOrCb);
417
412
  }
418
- };
419
- GlobalAccelerator.prototype.listByoipCidrs = function (args, optionsOrCb, cb) {
420
- var command = new ListByoipCidrsCommand(args);
413
+ }
414
+ listByoipCidrs(args, optionsOrCb, cb) {
415
+ const command = new ListByoipCidrsCommand(args);
421
416
  if (typeof optionsOrCb === "function") {
422
417
  this.send(command, optionsOrCb);
423
418
  }
424
419
  else if (typeof cb === "function") {
425
420
  if (typeof optionsOrCb !== "object")
426
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
421
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
427
422
  this.send(command, optionsOrCb || {}, cb);
428
423
  }
429
424
  else {
430
425
  return this.send(command, optionsOrCb);
431
426
  }
432
- };
433
- GlobalAccelerator.prototype.listCustomRoutingAccelerators = function (args, optionsOrCb, cb) {
434
- var command = new ListCustomRoutingAcceleratorsCommand(args);
427
+ }
428
+ listCustomRoutingAccelerators(args, optionsOrCb, cb) {
429
+ const command = new ListCustomRoutingAcceleratorsCommand(args);
435
430
  if (typeof optionsOrCb === "function") {
436
431
  this.send(command, optionsOrCb);
437
432
  }
438
433
  else if (typeof cb === "function") {
439
434
  if (typeof optionsOrCb !== "object")
440
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
435
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
441
436
  this.send(command, optionsOrCb || {}, cb);
442
437
  }
443
438
  else {
444
439
  return this.send(command, optionsOrCb);
445
440
  }
446
- };
447
- GlobalAccelerator.prototype.listCustomRoutingEndpointGroups = function (args, optionsOrCb, cb) {
448
- var command = new ListCustomRoutingEndpointGroupsCommand(args);
441
+ }
442
+ listCustomRoutingEndpointGroups(args, optionsOrCb, cb) {
443
+ const command = new ListCustomRoutingEndpointGroupsCommand(args);
449
444
  if (typeof optionsOrCb === "function") {
450
445
  this.send(command, optionsOrCb);
451
446
  }
452
447
  else if (typeof cb === "function") {
453
448
  if (typeof optionsOrCb !== "object")
454
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
449
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
455
450
  this.send(command, optionsOrCb || {}, cb);
456
451
  }
457
452
  else {
458
453
  return this.send(command, optionsOrCb);
459
454
  }
460
- };
461
- GlobalAccelerator.prototype.listCustomRoutingListeners = function (args, optionsOrCb, cb) {
462
- var command = new ListCustomRoutingListenersCommand(args);
455
+ }
456
+ listCustomRoutingListeners(args, optionsOrCb, cb) {
457
+ const command = new ListCustomRoutingListenersCommand(args);
463
458
  if (typeof optionsOrCb === "function") {
464
459
  this.send(command, optionsOrCb);
465
460
  }
466
461
  else if (typeof cb === "function") {
467
462
  if (typeof optionsOrCb !== "object")
468
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
463
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
469
464
  this.send(command, optionsOrCb || {}, cb);
470
465
  }
471
466
  else {
472
467
  return this.send(command, optionsOrCb);
473
468
  }
474
- };
475
- GlobalAccelerator.prototype.listCustomRoutingPortMappings = function (args, optionsOrCb, cb) {
476
- var command = new ListCustomRoutingPortMappingsCommand(args);
469
+ }
470
+ listCustomRoutingPortMappings(args, optionsOrCb, cb) {
471
+ const command = new ListCustomRoutingPortMappingsCommand(args);
477
472
  if (typeof optionsOrCb === "function") {
478
473
  this.send(command, optionsOrCb);
479
474
  }
480
475
  else if (typeof cb === "function") {
481
476
  if (typeof optionsOrCb !== "object")
482
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
477
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
483
478
  this.send(command, optionsOrCb || {}, cb);
484
479
  }
485
480
  else {
486
481
  return this.send(command, optionsOrCb);
487
482
  }
488
- };
489
- GlobalAccelerator.prototype.listCustomRoutingPortMappingsByDestination = function (args, optionsOrCb, cb) {
490
- var command = new ListCustomRoutingPortMappingsByDestinationCommand(args);
483
+ }
484
+ listCustomRoutingPortMappingsByDestination(args, optionsOrCb, cb) {
485
+ const command = new ListCustomRoutingPortMappingsByDestinationCommand(args);
491
486
  if (typeof optionsOrCb === "function") {
492
487
  this.send(command, optionsOrCb);
493
488
  }
494
489
  else if (typeof cb === "function") {
495
490
  if (typeof optionsOrCb !== "object")
496
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
491
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
497
492
  this.send(command, optionsOrCb || {}, cb);
498
493
  }
499
494
  else {
500
495
  return this.send(command, optionsOrCb);
501
496
  }
502
- };
503
- GlobalAccelerator.prototype.listEndpointGroups = function (args, optionsOrCb, cb) {
504
- var command = new ListEndpointGroupsCommand(args);
497
+ }
498
+ listEndpointGroups(args, optionsOrCb, cb) {
499
+ const command = new ListEndpointGroupsCommand(args);
505
500
  if (typeof optionsOrCb === "function") {
506
501
  this.send(command, optionsOrCb);
507
502
  }
508
503
  else if (typeof cb === "function") {
509
504
  if (typeof optionsOrCb !== "object")
510
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
505
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
511
506
  this.send(command, optionsOrCb || {}, cb);
512
507
  }
513
508
  else {
514
509
  return this.send(command, optionsOrCb);
515
510
  }
516
- };
517
- GlobalAccelerator.prototype.listListeners = function (args, optionsOrCb, cb) {
518
- var command = new ListListenersCommand(args);
511
+ }
512
+ listListeners(args, optionsOrCb, cb) {
513
+ const command = new ListListenersCommand(args);
519
514
  if (typeof optionsOrCb === "function") {
520
515
  this.send(command, optionsOrCb);
521
516
  }
522
517
  else if (typeof cb === "function") {
523
518
  if (typeof optionsOrCb !== "object")
524
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
519
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
525
520
  this.send(command, optionsOrCb || {}, cb);
526
521
  }
527
522
  else {
528
523
  return this.send(command, optionsOrCb);
529
524
  }
530
- };
531
- GlobalAccelerator.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
532
- var command = new ListTagsForResourceCommand(args);
525
+ }
526
+ listTagsForResource(args, optionsOrCb, cb) {
527
+ const command = new ListTagsForResourceCommand(args);
533
528
  if (typeof optionsOrCb === "function") {
534
529
  this.send(command, optionsOrCb);
535
530
  }
536
531
  else if (typeof cb === "function") {
537
532
  if (typeof optionsOrCb !== "object")
538
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
533
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
539
534
  this.send(command, optionsOrCb || {}, cb);
540
535
  }
541
536
  else {
542
537
  return this.send(command, optionsOrCb);
543
538
  }
544
- };
545
- GlobalAccelerator.prototype.provisionByoipCidr = function (args, optionsOrCb, cb) {
546
- var command = new ProvisionByoipCidrCommand(args);
539
+ }
540
+ provisionByoipCidr(args, optionsOrCb, cb) {
541
+ const command = new ProvisionByoipCidrCommand(args);
547
542
  if (typeof optionsOrCb === "function") {
548
543
  this.send(command, optionsOrCb);
549
544
  }
550
545
  else if (typeof cb === "function") {
551
546
  if (typeof optionsOrCb !== "object")
552
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
547
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
553
548
  this.send(command, optionsOrCb || {}, cb);
554
549
  }
555
550
  else {
556
551
  return this.send(command, optionsOrCb);
557
552
  }
558
- };
559
- GlobalAccelerator.prototype.removeCustomRoutingEndpoints = function (args, optionsOrCb, cb) {
560
- var command = new RemoveCustomRoutingEndpointsCommand(args);
553
+ }
554
+ removeCustomRoutingEndpoints(args, optionsOrCb, cb) {
555
+ const command = new RemoveCustomRoutingEndpointsCommand(args);
561
556
  if (typeof optionsOrCb === "function") {
562
557
  this.send(command, optionsOrCb);
563
558
  }
564
559
  else if (typeof cb === "function") {
565
560
  if (typeof optionsOrCb !== "object")
566
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
561
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
567
562
  this.send(command, optionsOrCb || {}, cb);
568
563
  }
569
564
  else {
570
565
  return this.send(command, optionsOrCb);
571
566
  }
572
- };
573
- GlobalAccelerator.prototype.tagResource = function (args, optionsOrCb, cb) {
574
- var command = new TagResourceCommand(args);
567
+ }
568
+ tagResource(args, optionsOrCb, cb) {
569
+ const command = new TagResourceCommand(args);
575
570
  if (typeof optionsOrCb === "function") {
576
571
  this.send(command, optionsOrCb);
577
572
  }
578
573
  else if (typeof cb === "function") {
579
574
  if (typeof optionsOrCb !== "object")
580
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
575
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
581
576
  this.send(command, optionsOrCb || {}, cb);
582
577
  }
583
578
  else {
584
579
  return this.send(command, optionsOrCb);
585
580
  }
586
- };
587
- GlobalAccelerator.prototype.untagResource = function (args, optionsOrCb, cb) {
588
- var command = new UntagResourceCommand(args);
581
+ }
582
+ untagResource(args, optionsOrCb, cb) {
583
+ const command = new UntagResourceCommand(args);
589
584
  if (typeof optionsOrCb === "function") {
590
585
  this.send(command, optionsOrCb);
591
586
  }
592
587
  else if (typeof cb === "function") {
593
588
  if (typeof optionsOrCb !== "object")
594
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
589
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
595
590
  this.send(command, optionsOrCb || {}, cb);
596
591
  }
597
592
  else {
598
593
  return this.send(command, optionsOrCb);
599
594
  }
600
- };
601
- GlobalAccelerator.prototype.updateAccelerator = function (args, optionsOrCb, cb) {
602
- var command = new UpdateAcceleratorCommand(args);
595
+ }
596
+ updateAccelerator(args, optionsOrCb, cb) {
597
+ const command = new UpdateAcceleratorCommand(args);
603
598
  if (typeof optionsOrCb === "function") {
604
599
  this.send(command, optionsOrCb);
605
600
  }
606
601
  else if (typeof cb === "function") {
607
602
  if (typeof optionsOrCb !== "object")
608
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
603
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
609
604
  this.send(command, optionsOrCb || {}, cb);
610
605
  }
611
606
  else {
612
607
  return this.send(command, optionsOrCb);
613
608
  }
614
- };
615
- GlobalAccelerator.prototype.updateAcceleratorAttributes = function (args, optionsOrCb, cb) {
616
- var command = new UpdateAcceleratorAttributesCommand(args);
609
+ }
610
+ updateAcceleratorAttributes(args, optionsOrCb, cb) {
611
+ const command = new UpdateAcceleratorAttributesCommand(args);
617
612
  if (typeof optionsOrCb === "function") {
618
613
  this.send(command, optionsOrCb);
619
614
  }
620
615
  else if (typeof cb === "function") {
621
616
  if (typeof optionsOrCb !== "object")
622
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
617
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
623
618
  this.send(command, optionsOrCb || {}, cb);
624
619
  }
625
620
  else {
626
621
  return this.send(command, optionsOrCb);
627
622
  }
628
- };
629
- GlobalAccelerator.prototype.updateCustomRoutingAccelerator = function (args, optionsOrCb, cb) {
630
- var command = new UpdateCustomRoutingAcceleratorCommand(args);
623
+ }
624
+ updateCustomRoutingAccelerator(args, optionsOrCb, cb) {
625
+ const command = new UpdateCustomRoutingAcceleratorCommand(args);
631
626
  if (typeof optionsOrCb === "function") {
632
627
  this.send(command, optionsOrCb);
633
628
  }
634
629
  else if (typeof cb === "function") {
635
630
  if (typeof optionsOrCb !== "object")
636
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
631
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
637
632
  this.send(command, optionsOrCb || {}, cb);
638
633
  }
639
634
  else {
640
635
  return this.send(command, optionsOrCb);
641
636
  }
642
- };
643
- GlobalAccelerator.prototype.updateCustomRoutingAcceleratorAttributes = function (args, optionsOrCb, cb) {
644
- var command = new UpdateCustomRoutingAcceleratorAttributesCommand(args);
637
+ }
638
+ updateCustomRoutingAcceleratorAttributes(args, optionsOrCb, cb) {
639
+ const command = new UpdateCustomRoutingAcceleratorAttributesCommand(args);
645
640
  if (typeof optionsOrCb === "function") {
646
641
  this.send(command, optionsOrCb);
647
642
  }
648
643
  else if (typeof cb === "function") {
649
644
  if (typeof optionsOrCb !== "object")
650
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
645
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
651
646
  this.send(command, optionsOrCb || {}, cb);
652
647
  }
653
648
  else {
654
649
  return this.send(command, optionsOrCb);
655
650
  }
656
- };
657
- GlobalAccelerator.prototype.updateCustomRoutingListener = function (args, optionsOrCb, cb) {
658
- var command = new UpdateCustomRoutingListenerCommand(args);
651
+ }
652
+ updateCustomRoutingListener(args, optionsOrCb, cb) {
653
+ const command = new UpdateCustomRoutingListenerCommand(args);
659
654
  if (typeof optionsOrCb === "function") {
660
655
  this.send(command, optionsOrCb);
661
656
  }
662
657
  else if (typeof cb === "function") {
663
658
  if (typeof optionsOrCb !== "object")
664
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
659
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
665
660
  this.send(command, optionsOrCb || {}, cb);
666
661
  }
667
662
  else {
668
663
  return this.send(command, optionsOrCb);
669
664
  }
670
- };
671
- GlobalAccelerator.prototype.updateEndpointGroup = function (args, optionsOrCb, cb) {
672
- var command = new UpdateEndpointGroupCommand(args);
665
+ }
666
+ updateEndpointGroup(args, optionsOrCb, cb) {
667
+ const command = new UpdateEndpointGroupCommand(args);
673
668
  if (typeof optionsOrCb === "function") {
674
669
  this.send(command, optionsOrCb);
675
670
  }
676
671
  else if (typeof cb === "function") {
677
672
  if (typeof optionsOrCb !== "object")
678
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
673
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
679
674
  this.send(command, optionsOrCb || {}, cb);
680
675
  }
681
676
  else {
682
677
  return this.send(command, optionsOrCb);
683
678
  }
684
- };
685
- GlobalAccelerator.prototype.updateListener = function (args, optionsOrCb, cb) {
686
- var command = new UpdateListenerCommand(args);
679
+ }
680
+ updateListener(args, optionsOrCb, cb) {
681
+ const command = new UpdateListenerCommand(args);
687
682
  if (typeof optionsOrCb === "function") {
688
683
  this.send(command, optionsOrCb);
689
684
  }
690
685
  else if (typeof cb === "function") {
691
686
  if (typeof optionsOrCb !== "object")
692
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
687
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
693
688
  this.send(command, optionsOrCb || {}, cb);
694
689
  }
695
690
  else {
696
691
  return this.send(command, optionsOrCb);
697
692
  }
698
- };
699
- GlobalAccelerator.prototype.withdrawByoipCidr = function (args, optionsOrCb, cb) {
700
- var command = new WithdrawByoipCidrCommand(args);
693
+ }
694
+ withdrawByoipCidr(args, optionsOrCb, cb) {
695
+ const command = new WithdrawByoipCidrCommand(args);
701
696
  if (typeof optionsOrCb === "function") {
702
697
  this.send(command, optionsOrCb);
703
698
  }
704
699
  else if (typeof cb === "function") {
705
700
  if (typeof optionsOrCb !== "object")
706
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
701
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
707
702
  this.send(command, optionsOrCb || {}, cb);
708
703
  }
709
704
  else {
710
705
  return this.send(command, optionsOrCb);
711
706
  }
712
- };
713
- return GlobalAccelerator;
714
- }(GlobalAcceleratorClient));
715
- export { GlobalAccelerator };
707
+ }
708
+ }