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