@aws-sdk/client-gamelift 3.312.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GameLift = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AcceptMatchCommand_1 = require("./commands/AcceptMatchCommand");
5
6
  const ClaimGameServerCommand_1 = require("./commands/ClaimGameServerCommand");
6
7
  const CreateAliasCommand_1 = require("./commands/CreateAliasCommand");
@@ -106,1462 +107,113 @@ const UpdateRuntimeConfigurationCommand_1 = require("./commands/UpdateRuntimeCon
106
107
  const UpdateScriptCommand_1 = require("./commands/UpdateScriptCommand");
107
108
  const ValidateMatchmakingRuleSetCommand_1 = require("./commands/ValidateMatchmakingRuleSetCommand");
108
109
  const GameLiftClient_1 = require("./GameLiftClient");
110
+ const commands = {
111
+ AcceptMatchCommand: AcceptMatchCommand_1.AcceptMatchCommand,
112
+ ClaimGameServerCommand: ClaimGameServerCommand_1.ClaimGameServerCommand,
113
+ CreateAliasCommand: CreateAliasCommand_1.CreateAliasCommand,
114
+ CreateBuildCommand: CreateBuildCommand_1.CreateBuildCommand,
115
+ CreateFleetCommand: CreateFleetCommand_1.CreateFleetCommand,
116
+ CreateFleetLocationsCommand: CreateFleetLocationsCommand_1.CreateFleetLocationsCommand,
117
+ CreateGameServerGroupCommand: CreateGameServerGroupCommand_1.CreateGameServerGroupCommand,
118
+ CreateGameSessionCommand: CreateGameSessionCommand_1.CreateGameSessionCommand,
119
+ CreateGameSessionQueueCommand: CreateGameSessionQueueCommand_1.CreateGameSessionQueueCommand,
120
+ CreateLocationCommand: CreateLocationCommand_1.CreateLocationCommand,
121
+ CreateMatchmakingConfigurationCommand: CreateMatchmakingConfigurationCommand_1.CreateMatchmakingConfigurationCommand,
122
+ CreateMatchmakingRuleSetCommand: CreateMatchmakingRuleSetCommand_1.CreateMatchmakingRuleSetCommand,
123
+ CreatePlayerSessionCommand: CreatePlayerSessionCommand_1.CreatePlayerSessionCommand,
124
+ CreatePlayerSessionsCommand: CreatePlayerSessionsCommand_1.CreatePlayerSessionsCommand,
125
+ CreateScriptCommand: CreateScriptCommand_1.CreateScriptCommand,
126
+ CreateVpcPeeringAuthorizationCommand: CreateVpcPeeringAuthorizationCommand_1.CreateVpcPeeringAuthorizationCommand,
127
+ CreateVpcPeeringConnectionCommand: CreateVpcPeeringConnectionCommand_1.CreateVpcPeeringConnectionCommand,
128
+ DeleteAliasCommand: DeleteAliasCommand_1.DeleteAliasCommand,
129
+ DeleteBuildCommand: DeleteBuildCommand_1.DeleteBuildCommand,
130
+ DeleteFleetCommand: DeleteFleetCommand_1.DeleteFleetCommand,
131
+ DeleteFleetLocationsCommand: DeleteFleetLocationsCommand_1.DeleteFleetLocationsCommand,
132
+ DeleteGameServerGroupCommand: DeleteGameServerGroupCommand_1.DeleteGameServerGroupCommand,
133
+ DeleteGameSessionQueueCommand: DeleteGameSessionQueueCommand_1.DeleteGameSessionQueueCommand,
134
+ DeleteLocationCommand: DeleteLocationCommand_1.DeleteLocationCommand,
135
+ DeleteMatchmakingConfigurationCommand: DeleteMatchmakingConfigurationCommand_1.DeleteMatchmakingConfigurationCommand,
136
+ DeleteMatchmakingRuleSetCommand: DeleteMatchmakingRuleSetCommand_1.DeleteMatchmakingRuleSetCommand,
137
+ DeleteScalingPolicyCommand: DeleteScalingPolicyCommand_1.DeleteScalingPolicyCommand,
138
+ DeleteScriptCommand: DeleteScriptCommand_1.DeleteScriptCommand,
139
+ DeleteVpcPeeringAuthorizationCommand: DeleteVpcPeeringAuthorizationCommand_1.DeleteVpcPeeringAuthorizationCommand,
140
+ DeleteVpcPeeringConnectionCommand: DeleteVpcPeeringConnectionCommand_1.DeleteVpcPeeringConnectionCommand,
141
+ DeregisterComputeCommand: DeregisterComputeCommand_1.DeregisterComputeCommand,
142
+ DeregisterGameServerCommand: DeregisterGameServerCommand_1.DeregisterGameServerCommand,
143
+ DescribeAliasCommand: DescribeAliasCommand_1.DescribeAliasCommand,
144
+ DescribeBuildCommand: DescribeBuildCommand_1.DescribeBuildCommand,
145
+ DescribeComputeCommand: DescribeComputeCommand_1.DescribeComputeCommand,
146
+ DescribeEC2InstanceLimitsCommand: DescribeEC2InstanceLimitsCommand_1.DescribeEC2InstanceLimitsCommand,
147
+ DescribeFleetAttributesCommand: DescribeFleetAttributesCommand_1.DescribeFleetAttributesCommand,
148
+ DescribeFleetCapacityCommand: DescribeFleetCapacityCommand_1.DescribeFleetCapacityCommand,
149
+ DescribeFleetEventsCommand: DescribeFleetEventsCommand_1.DescribeFleetEventsCommand,
150
+ DescribeFleetLocationAttributesCommand: DescribeFleetLocationAttributesCommand_1.DescribeFleetLocationAttributesCommand,
151
+ DescribeFleetLocationCapacityCommand: DescribeFleetLocationCapacityCommand_1.DescribeFleetLocationCapacityCommand,
152
+ DescribeFleetLocationUtilizationCommand: DescribeFleetLocationUtilizationCommand_1.DescribeFleetLocationUtilizationCommand,
153
+ DescribeFleetPortSettingsCommand: DescribeFleetPortSettingsCommand_1.DescribeFleetPortSettingsCommand,
154
+ DescribeFleetUtilizationCommand: DescribeFleetUtilizationCommand_1.DescribeFleetUtilizationCommand,
155
+ DescribeGameServerCommand: DescribeGameServerCommand_1.DescribeGameServerCommand,
156
+ DescribeGameServerGroupCommand: DescribeGameServerGroupCommand_1.DescribeGameServerGroupCommand,
157
+ DescribeGameServerInstancesCommand: DescribeGameServerInstancesCommand_1.DescribeGameServerInstancesCommand,
158
+ DescribeGameSessionDetailsCommand: DescribeGameSessionDetailsCommand_1.DescribeGameSessionDetailsCommand,
159
+ DescribeGameSessionPlacementCommand: DescribeGameSessionPlacementCommand_1.DescribeGameSessionPlacementCommand,
160
+ DescribeGameSessionQueuesCommand: DescribeGameSessionQueuesCommand_1.DescribeGameSessionQueuesCommand,
161
+ DescribeGameSessionsCommand: DescribeGameSessionsCommand_1.DescribeGameSessionsCommand,
162
+ DescribeInstancesCommand: DescribeInstancesCommand_1.DescribeInstancesCommand,
163
+ DescribeMatchmakingCommand: DescribeMatchmakingCommand_1.DescribeMatchmakingCommand,
164
+ DescribeMatchmakingConfigurationsCommand: DescribeMatchmakingConfigurationsCommand_1.DescribeMatchmakingConfigurationsCommand,
165
+ DescribeMatchmakingRuleSetsCommand: DescribeMatchmakingRuleSetsCommand_1.DescribeMatchmakingRuleSetsCommand,
166
+ DescribePlayerSessionsCommand: DescribePlayerSessionsCommand_1.DescribePlayerSessionsCommand,
167
+ DescribeRuntimeConfigurationCommand: DescribeRuntimeConfigurationCommand_1.DescribeRuntimeConfigurationCommand,
168
+ DescribeScalingPoliciesCommand: DescribeScalingPoliciesCommand_1.DescribeScalingPoliciesCommand,
169
+ DescribeScriptCommand: DescribeScriptCommand_1.DescribeScriptCommand,
170
+ DescribeVpcPeeringAuthorizationsCommand: DescribeVpcPeeringAuthorizationsCommand_1.DescribeVpcPeeringAuthorizationsCommand,
171
+ DescribeVpcPeeringConnectionsCommand: DescribeVpcPeeringConnectionsCommand_1.DescribeVpcPeeringConnectionsCommand,
172
+ GetComputeAccessCommand: GetComputeAccessCommand_1.GetComputeAccessCommand,
173
+ GetComputeAuthTokenCommand: GetComputeAuthTokenCommand_1.GetComputeAuthTokenCommand,
174
+ GetGameSessionLogUrlCommand: GetGameSessionLogUrlCommand_1.GetGameSessionLogUrlCommand,
175
+ GetInstanceAccessCommand: GetInstanceAccessCommand_1.GetInstanceAccessCommand,
176
+ ListAliasesCommand: ListAliasesCommand_1.ListAliasesCommand,
177
+ ListBuildsCommand: ListBuildsCommand_1.ListBuildsCommand,
178
+ ListComputeCommand: ListComputeCommand_1.ListComputeCommand,
179
+ ListFleetsCommand: ListFleetsCommand_1.ListFleetsCommand,
180
+ ListGameServerGroupsCommand: ListGameServerGroupsCommand_1.ListGameServerGroupsCommand,
181
+ ListGameServersCommand: ListGameServersCommand_1.ListGameServersCommand,
182
+ ListLocationsCommand: ListLocationsCommand_1.ListLocationsCommand,
183
+ ListScriptsCommand: ListScriptsCommand_1.ListScriptsCommand,
184
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
185
+ PutScalingPolicyCommand: PutScalingPolicyCommand_1.PutScalingPolicyCommand,
186
+ RegisterComputeCommand: RegisterComputeCommand_1.RegisterComputeCommand,
187
+ RegisterGameServerCommand: RegisterGameServerCommand_1.RegisterGameServerCommand,
188
+ RequestUploadCredentialsCommand: RequestUploadCredentialsCommand_1.RequestUploadCredentialsCommand,
189
+ ResolveAliasCommand: ResolveAliasCommand_1.ResolveAliasCommand,
190
+ ResumeGameServerGroupCommand: ResumeGameServerGroupCommand_1.ResumeGameServerGroupCommand,
191
+ SearchGameSessionsCommand: SearchGameSessionsCommand_1.SearchGameSessionsCommand,
192
+ StartFleetActionsCommand: StartFleetActionsCommand_1.StartFleetActionsCommand,
193
+ StartGameSessionPlacementCommand: StartGameSessionPlacementCommand_1.StartGameSessionPlacementCommand,
194
+ StartMatchBackfillCommand: StartMatchBackfillCommand_1.StartMatchBackfillCommand,
195
+ StartMatchmakingCommand: StartMatchmakingCommand_1.StartMatchmakingCommand,
196
+ StopFleetActionsCommand: StopFleetActionsCommand_1.StopFleetActionsCommand,
197
+ StopGameSessionPlacementCommand: StopGameSessionPlacementCommand_1.StopGameSessionPlacementCommand,
198
+ StopMatchmakingCommand: StopMatchmakingCommand_1.StopMatchmakingCommand,
199
+ SuspendGameServerGroupCommand: SuspendGameServerGroupCommand_1.SuspendGameServerGroupCommand,
200
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
201
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
202
+ UpdateAliasCommand: UpdateAliasCommand_1.UpdateAliasCommand,
203
+ UpdateBuildCommand: UpdateBuildCommand_1.UpdateBuildCommand,
204
+ UpdateFleetAttributesCommand: UpdateFleetAttributesCommand_1.UpdateFleetAttributesCommand,
205
+ UpdateFleetCapacityCommand: UpdateFleetCapacityCommand_1.UpdateFleetCapacityCommand,
206
+ UpdateFleetPortSettingsCommand: UpdateFleetPortSettingsCommand_1.UpdateFleetPortSettingsCommand,
207
+ UpdateGameServerCommand: UpdateGameServerCommand_1.UpdateGameServerCommand,
208
+ UpdateGameServerGroupCommand: UpdateGameServerGroupCommand_1.UpdateGameServerGroupCommand,
209
+ UpdateGameSessionCommand: UpdateGameSessionCommand_1.UpdateGameSessionCommand,
210
+ UpdateGameSessionQueueCommand: UpdateGameSessionQueueCommand_1.UpdateGameSessionQueueCommand,
211
+ UpdateMatchmakingConfigurationCommand: UpdateMatchmakingConfigurationCommand_1.UpdateMatchmakingConfigurationCommand,
212
+ UpdateRuntimeConfigurationCommand: UpdateRuntimeConfigurationCommand_1.UpdateRuntimeConfigurationCommand,
213
+ UpdateScriptCommand: UpdateScriptCommand_1.UpdateScriptCommand,
214
+ ValidateMatchmakingRuleSetCommand: ValidateMatchmakingRuleSetCommand_1.ValidateMatchmakingRuleSetCommand,
215
+ };
109
216
  class GameLift extends GameLiftClient_1.GameLiftClient {
110
- acceptMatch(args, optionsOrCb, cb) {
111
- const command = new AcceptMatchCommand_1.AcceptMatchCommand(args);
112
- if (typeof optionsOrCb === "function") {
113
- this.send(command, optionsOrCb);
114
- }
115
- else if (typeof cb === "function") {
116
- if (typeof optionsOrCb !== "object")
117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
118
- this.send(command, optionsOrCb || {}, cb);
119
- }
120
- else {
121
- return this.send(command, optionsOrCb);
122
- }
123
- }
124
- claimGameServer(args, optionsOrCb, cb) {
125
- const command = new ClaimGameServerCommand_1.ClaimGameServerCommand(args);
126
- if (typeof optionsOrCb === "function") {
127
- this.send(command, optionsOrCb);
128
- }
129
- else if (typeof cb === "function") {
130
- if (typeof optionsOrCb !== "object")
131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
132
- this.send(command, optionsOrCb || {}, cb);
133
- }
134
- else {
135
- return this.send(command, optionsOrCb);
136
- }
137
- }
138
- createAlias(args, optionsOrCb, cb) {
139
- const command = new CreateAliasCommand_1.CreateAliasCommand(args);
140
- if (typeof optionsOrCb === "function") {
141
- this.send(command, optionsOrCb);
142
- }
143
- else if (typeof cb === "function") {
144
- if (typeof optionsOrCb !== "object")
145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
146
- this.send(command, optionsOrCb || {}, cb);
147
- }
148
- else {
149
- return this.send(command, optionsOrCb);
150
- }
151
- }
152
- createBuild(args, optionsOrCb, cb) {
153
- const command = new CreateBuildCommand_1.CreateBuildCommand(args);
154
- if (typeof optionsOrCb === "function") {
155
- this.send(command, optionsOrCb);
156
- }
157
- else if (typeof cb === "function") {
158
- if (typeof optionsOrCb !== "object")
159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
160
- this.send(command, optionsOrCb || {}, cb);
161
- }
162
- else {
163
- return this.send(command, optionsOrCb);
164
- }
165
- }
166
- createFleet(args, optionsOrCb, cb) {
167
- const command = new CreateFleetCommand_1.CreateFleetCommand(args);
168
- if (typeof optionsOrCb === "function") {
169
- this.send(command, optionsOrCb);
170
- }
171
- else if (typeof cb === "function") {
172
- if (typeof optionsOrCb !== "object")
173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
174
- this.send(command, optionsOrCb || {}, cb);
175
- }
176
- else {
177
- return this.send(command, optionsOrCb);
178
- }
179
- }
180
- createFleetLocations(args, optionsOrCb, cb) {
181
- const command = new CreateFleetLocationsCommand_1.CreateFleetLocationsCommand(args);
182
- if (typeof optionsOrCb === "function") {
183
- this.send(command, optionsOrCb);
184
- }
185
- else if (typeof cb === "function") {
186
- if (typeof optionsOrCb !== "object")
187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
188
- this.send(command, optionsOrCb || {}, cb);
189
- }
190
- else {
191
- return this.send(command, optionsOrCb);
192
- }
193
- }
194
- createGameServerGroup(args, optionsOrCb, cb) {
195
- const command = new CreateGameServerGroupCommand_1.CreateGameServerGroupCommand(args);
196
- if (typeof optionsOrCb === "function") {
197
- this.send(command, optionsOrCb);
198
- }
199
- else if (typeof cb === "function") {
200
- if (typeof optionsOrCb !== "object")
201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202
- this.send(command, optionsOrCb || {}, cb);
203
- }
204
- else {
205
- return this.send(command, optionsOrCb);
206
- }
207
- }
208
- createGameSession(args, optionsOrCb, cb) {
209
- const command = new CreateGameSessionCommand_1.CreateGameSessionCommand(args);
210
- if (typeof optionsOrCb === "function") {
211
- this.send(command, optionsOrCb);
212
- }
213
- else if (typeof cb === "function") {
214
- if (typeof optionsOrCb !== "object")
215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
216
- this.send(command, optionsOrCb || {}, cb);
217
- }
218
- else {
219
- return this.send(command, optionsOrCb);
220
- }
221
- }
222
- createGameSessionQueue(args, optionsOrCb, cb) {
223
- const command = new CreateGameSessionQueueCommand_1.CreateGameSessionQueueCommand(args);
224
- if (typeof optionsOrCb === "function") {
225
- this.send(command, optionsOrCb);
226
- }
227
- else if (typeof cb === "function") {
228
- if (typeof optionsOrCb !== "object")
229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
230
- this.send(command, optionsOrCb || {}, cb);
231
- }
232
- else {
233
- return this.send(command, optionsOrCb);
234
- }
235
- }
236
- createLocation(args, optionsOrCb, cb) {
237
- const command = new CreateLocationCommand_1.CreateLocationCommand(args);
238
- if (typeof optionsOrCb === "function") {
239
- this.send(command, optionsOrCb);
240
- }
241
- else if (typeof cb === "function") {
242
- if (typeof optionsOrCb !== "object")
243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
244
- this.send(command, optionsOrCb || {}, cb);
245
- }
246
- else {
247
- return this.send(command, optionsOrCb);
248
- }
249
- }
250
- createMatchmakingConfiguration(args, optionsOrCb, cb) {
251
- const command = new CreateMatchmakingConfigurationCommand_1.CreateMatchmakingConfigurationCommand(args);
252
- if (typeof optionsOrCb === "function") {
253
- this.send(command, optionsOrCb);
254
- }
255
- else if (typeof cb === "function") {
256
- if (typeof optionsOrCb !== "object")
257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
258
- this.send(command, optionsOrCb || {}, cb);
259
- }
260
- else {
261
- return this.send(command, optionsOrCb);
262
- }
263
- }
264
- createMatchmakingRuleSet(args, optionsOrCb, cb) {
265
- const command = new CreateMatchmakingRuleSetCommand_1.CreateMatchmakingRuleSetCommand(args);
266
- if (typeof optionsOrCb === "function") {
267
- this.send(command, optionsOrCb);
268
- }
269
- else if (typeof cb === "function") {
270
- if (typeof optionsOrCb !== "object")
271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
- this.send(command, optionsOrCb || {}, cb);
273
- }
274
- else {
275
- return this.send(command, optionsOrCb);
276
- }
277
- }
278
- createPlayerSession(args, optionsOrCb, cb) {
279
- const command = new CreatePlayerSessionCommand_1.CreatePlayerSessionCommand(args);
280
- if (typeof optionsOrCb === "function") {
281
- this.send(command, optionsOrCb);
282
- }
283
- else if (typeof cb === "function") {
284
- if (typeof optionsOrCb !== "object")
285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
286
- this.send(command, optionsOrCb || {}, cb);
287
- }
288
- else {
289
- return this.send(command, optionsOrCb);
290
- }
291
- }
292
- createPlayerSessions(args, optionsOrCb, cb) {
293
- const command = new CreatePlayerSessionsCommand_1.CreatePlayerSessionsCommand(args);
294
- if (typeof optionsOrCb === "function") {
295
- this.send(command, optionsOrCb);
296
- }
297
- else if (typeof cb === "function") {
298
- if (typeof optionsOrCb !== "object")
299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
300
- this.send(command, optionsOrCb || {}, cb);
301
- }
302
- else {
303
- return this.send(command, optionsOrCb);
304
- }
305
- }
306
- createScript(args, optionsOrCb, cb) {
307
- const command = new CreateScriptCommand_1.CreateScriptCommand(args);
308
- if (typeof optionsOrCb === "function") {
309
- this.send(command, optionsOrCb);
310
- }
311
- else if (typeof cb === "function") {
312
- if (typeof optionsOrCb !== "object")
313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
314
- this.send(command, optionsOrCb || {}, cb);
315
- }
316
- else {
317
- return this.send(command, optionsOrCb);
318
- }
319
- }
320
- createVpcPeeringAuthorization(args, optionsOrCb, cb) {
321
- const command = new CreateVpcPeeringAuthorizationCommand_1.CreateVpcPeeringAuthorizationCommand(args);
322
- if (typeof optionsOrCb === "function") {
323
- this.send(command, optionsOrCb);
324
- }
325
- else if (typeof cb === "function") {
326
- if (typeof optionsOrCb !== "object")
327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
328
- this.send(command, optionsOrCb || {}, cb);
329
- }
330
- else {
331
- return this.send(command, optionsOrCb);
332
- }
333
- }
334
- createVpcPeeringConnection(args, optionsOrCb, cb) {
335
- const command = new CreateVpcPeeringConnectionCommand_1.CreateVpcPeeringConnectionCommand(args);
336
- if (typeof optionsOrCb === "function") {
337
- this.send(command, optionsOrCb);
338
- }
339
- else if (typeof cb === "function") {
340
- if (typeof optionsOrCb !== "object")
341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
342
- this.send(command, optionsOrCb || {}, cb);
343
- }
344
- else {
345
- return this.send(command, optionsOrCb);
346
- }
347
- }
348
- deleteAlias(args, optionsOrCb, cb) {
349
- const command = new DeleteAliasCommand_1.DeleteAliasCommand(args);
350
- if (typeof optionsOrCb === "function") {
351
- this.send(command, optionsOrCb);
352
- }
353
- else if (typeof cb === "function") {
354
- if (typeof optionsOrCb !== "object")
355
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
356
- this.send(command, optionsOrCb || {}, cb);
357
- }
358
- else {
359
- return this.send(command, optionsOrCb);
360
- }
361
- }
362
- deleteBuild(args, optionsOrCb, cb) {
363
- const command = new DeleteBuildCommand_1.DeleteBuildCommand(args);
364
- if (typeof optionsOrCb === "function") {
365
- this.send(command, optionsOrCb);
366
- }
367
- else if (typeof cb === "function") {
368
- if (typeof optionsOrCb !== "object")
369
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
370
- this.send(command, optionsOrCb || {}, cb);
371
- }
372
- else {
373
- return this.send(command, optionsOrCb);
374
- }
375
- }
376
- deleteFleet(args, optionsOrCb, cb) {
377
- const command = new DeleteFleetCommand_1.DeleteFleetCommand(args);
378
- if (typeof optionsOrCb === "function") {
379
- this.send(command, optionsOrCb);
380
- }
381
- else if (typeof cb === "function") {
382
- if (typeof optionsOrCb !== "object")
383
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
384
- this.send(command, optionsOrCb || {}, cb);
385
- }
386
- else {
387
- return this.send(command, optionsOrCb);
388
- }
389
- }
390
- deleteFleetLocations(args, optionsOrCb, cb) {
391
- const command = new DeleteFleetLocationsCommand_1.DeleteFleetLocationsCommand(args);
392
- if (typeof optionsOrCb === "function") {
393
- this.send(command, optionsOrCb);
394
- }
395
- else if (typeof cb === "function") {
396
- if (typeof optionsOrCb !== "object")
397
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
398
- this.send(command, optionsOrCb || {}, cb);
399
- }
400
- else {
401
- return this.send(command, optionsOrCb);
402
- }
403
- }
404
- deleteGameServerGroup(args, optionsOrCb, cb) {
405
- const command = new DeleteGameServerGroupCommand_1.DeleteGameServerGroupCommand(args);
406
- if (typeof optionsOrCb === "function") {
407
- this.send(command, optionsOrCb);
408
- }
409
- else if (typeof cb === "function") {
410
- if (typeof optionsOrCb !== "object")
411
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
412
- this.send(command, optionsOrCb || {}, cb);
413
- }
414
- else {
415
- return this.send(command, optionsOrCb);
416
- }
417
- }
418
- deleteGameSessionQueue(args, optionsOrCb, cb) {
419
- const command = new DeleteGameSessionQueueCommand_1.DeleteGameSessionQueueCommand(args);
420
- if (typeof optionsOrCb === "function") {
421
- this.send(command, optionsOrCb);
422
- }
423
- else if (typeof cb === "function") {
424
- if (typeof optionsOrCb !== "object")
425
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
426
- this.send(command, optionsOrCb || {}, cb);
427
- }
428
- else {
429
- return this.send(command, optionsOrCb);
430
- }
431
- }
432
- deleteLocation(args, optionsOrCb, cb) {
433
- const command = new DeleteLocationCommand_1.DeleteLocationCommand(args);
434
- if (typeof optionsOrCb === "function") {
435
- this.send(command, optionsOrCb);
436
- }
437
- else if (typeof cb === "function") {
438
- if (typeof optionsOrCb !== "object")
439
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
440
- this.send(command, optionsOrCb || {}, cb);
441
- }
442
- else {
443
- return this.send(command, optionsOrCb);
444
- }
445
- }
446
- deleteMatchmakingConfiguration(args, optionsOrCb, cb) {
447
- const command = new DeleteMatchmakingConfigurationCommand_1.DeleteMatchmakingConfigurationCommand(args);
448
- if (typeof optionsOrCb === "function") {
449
- this.send(command, optionsOrCb);
450
- }
451
- else if (typeof cb === "function") {
452
- if (typeof optionsOrCb !== "object")
453
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
454
- this.send(command, optionsOrCb || {}, cb);
455
- }
456
- else {
457
- return this.send(command, optionsOrCb);
458
- }
459
- }
460
- deleteMatchmakingRuleSet(args, optionsOrCb, cb) {
461
- const command = new DeleteMatchmakingRuleSetCommand_1.DeleteMatchmakingRuleSetCommand(args);
462
- if (typeof optionsOrCb === "function") {
463
- this.send(command, optionsOrCb);
464
- }
465
- else if (typeof cb === "function") {
466
- if (typeof optionsOrCb !== "object")
467
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
468
- this.send(command, optionsOrCb || {}, cb);
469
- }
470
- else {
471
- return this.send(command, optionsOrCb);
472
- }
473
- }
474
- deleteScalingPolicy(args, optionsOrCb, cb) {
475
- const command = new DeleteScalingPolicyCommand_1.DeleteScalingPolicyCommand(args);
476
- if (typeof optionsOrCb === "function") {
477
- this.send(command, optionsOrCb);
478
- }
479
- else if (typeof cb === "function") {
480
- if (typeof optionsOrCb !== "object")
481
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
482
- this.send(command, optionsOrCb || {}, cb);
483
- }
484
- else {
485
- return this.send(command, optionsOrCb);
486
- }
487
- }
488
- deleteScript(args, optionsOrCb, cb) {
489
- const command = new DeleteScriptCommand_1.DeleteScriptCommand(args);
490
- if (typeof optionsOrCb === "function") {
491
- this.send(command, optionsOrCb);
492
- }
493
- else if (typeof cb === "function") {
494
- if (typeof optionsOrCb !== "object")
495
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
496
- this.send(command, optionsOrCb || {}, cb);
497
- }
498
- else {
499
- return this.send(command, optionsOrCb);
500
- }
501
- }
502
- deleteVpcPeeringAuthorization(args, optionsOrCb, cb) {
503
- const command = new DeleteVpcPeeringAuthorizationCommand_1.DeleteVpcPeeringAuthorizationCommand(args);
504
- if (typeof optionsOrCb === "function") {
505
- this.send(command, optionsOrCb);
506
- }
507
- else if (typeof cb === "function") {
508
- if (typeof optionsOrCb !== "object")
509
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
510
- this.send(command, optionsOrCb || {}, cb);
511
- }
512
- else {
513
- return this.send(command, optionsOrCb);
514
- }
515
- }
516
- deleteVpcPeeringConnection(args, optionsOrCb, cb) {
517
- const command = new DeleteVpcPeeringConnectionCommand_1.DeleteVpcPeeringConnectionCommand(args);
518
- if (typeof optionsOrCb === "function") {
519
- this.send(command, optionsOrCb);
520
- }
521
- else if (typeof cb === "function") {
522
- if (typeof optionsOrCb !== "object")
523
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
524
- this.send(command, optionsOrCb || {}, cb);
525
- }
526
- else {
527
- return this.send(command, optionsOrCb);
528
- }
529
- }
530
- deregisterCompute(args, optionsOrCb, cb) {
531
- const command = new DeregisterComputeCommand_1.DeregisterComputeCommand(args);
532
- if (typeof optionsOrCb === "function") {
533
- this.send(command, optionsOrCb);
534
- }
535
- else if (typeof cb === "function") {
536
- if (typeof optionsOrCb !== "object")
537
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
538
- this.send(command, optionsOrCb || {}, cb);
539
- }
540
- else {
541
- return this.send(command, optionsOrCb);
542
- }
543
- }
544
- deregisterGameServer(args, optionsOrCb, cb) {
545
- const command = new DeregisterGameServerCommand_1.DeregisterGameServerCommand(args);
546
- if (typeof optionsOrCb === "function") {
547
- this.send(command, optionsOrCb);
548
- }
549
- else if (typeof cb === "function") {
550
- if (typeof optionsOrCb !== "object")
551
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
552
- this.send(command, optionsOrCb || {}, cb);
553
- }
554
- else {
555
- return this.send(command, optionsOrCb);
556
- }
557
- }
558
- describeAlias(args, optionsOrCb, cb) {
559
- const command = new DescribeAliasCommand_1.DescribeAliasCommand(args);
560
- if (typeof optionsOrCb === "function") {
561
- this.send(command, optionsOrCb);
562
- }
563
- else if (typeof cb === "function") {
564
- if (typeof optionsOrCb !== "object")
565
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
566
- this.send(command, optionsOrCb || {}, cb);
567
- }
568
- else {
569
- return this.send(command, optionsOrCb);
570
- }
571
- }
572
- describeBuild(args, optionsOrCb, cb) {
573
- const command = new DescribeBuildCommand_1.DescribeBuildCommand(args);
574
- if (typeof optionsOrCb === "function") {
575
- this.send(command, optionsOrCb);
576
- }
577
- else if (typeof cb === "function") {
578
- if (typeof optionsOrCb !== "object")
579
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
580
- this.send(command, optionsOrCb || {}, cb);
581
- }
582
- else {
583
- return this.send(command, optionsOrCb);
584
- }
585
- }
586
- describeCompute(args, optionsOrCb, cb) {
587
- const command = new DescribeComputeCommand_1.DescribeComputeCommand(args);
588
- if (typeof optionsOrCb === "function") {
589
- this.send(command, optionsOrCb);
590
- }
591
- else if (typeof cb === "function") {
592
- if (typeof optionsOrCb !== "object")
593
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
594
- this.send(command, optionsOrCb || {}, cb);
595
- }
596
- else {
597
- return this.send(command, optionsOrCb);
598
- }
599
- }
600
- describeEC2InstanceLimits(args, optionsOrCb, cb) {
601
- const command = new DescribeEC2InstanceLimitsCommand_1.DescribeEC2InstanceLimitsCommand(args);
602
- if (typeof optionsOrCb === "function") {
603
- this.send(command, optionsOrCb);
604
- }
605
- else if (typeof cb === "function") {
606
- if (typeof optionsOrCb !== "object")
607
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
608
- this.send(command, optionsOrCb || {}, cb);
609
- }
610
- else {
611
- return this.send(command, optionsOrCb);
612
- }
613
- }
614
- describeFleetAttributes(args, optionsOrCb, cb) {
615
- const command = new DescribeFleetAttributesCommand_1.DescribeFleetAttributesCommand(args);
616
- if (typeof optionsOrCb === "function") {
617
- this.send(command, optionsOrCb);
618
- }
619
- else if (typeof cb === "function") {
620
- if (typeof optionsOrCb !== "object")
621
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
622
- this.send(command, optionsOrCb || {}, cb);
623
- }
624
- else {
625
- return this.send(command, optionsOrCb);
626
- }
627
- }
628
- describeFleetCapacity(args, optionsOrCb, cb) {
629
- const command = new DescribeFleetCapacityCommand_1.DescribeFleetCapacityCommand(args);
630
- if (typeof optionsOrCb === "function") {
631
- this.send(command, optionsOrCb);
632
- }
633
- else if (typeof cb === "function") {
634
- if (typeof optionsOrCb !== "object")
635
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
636
- this.send(command, optionsOrCb || {}, cb);
637
- }
638
- else {
639
- return this.send(command, optionsOrCb);
640
- }
641
- }
642
- describeFleetEvents(args, optionsOrCb, cb) {
643
- const command = new DescribeFleetEventsCommand_1.DescribeFleetEventsCommand(args);
644
- if (typeof optionsOrCb === "function") {
645
- this.send(command, optionsOrCb);
646
- }
647
- else if (typeof cb === "function") {
648
- if (typeof optionsOrCb !== "object")
649
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
650
- this.send(command, optionsOrCb || {}, cb);
651
- }
652
- else {
653
- return this.send(command, optionsOrCb);
654
- }
655
- }
656
- describeFleetLocationAttributes(args, optionsOrCb, cb) {
657
- const command = new DescribeFleetLocationAttributesCommand_1.DescribeFleetLocationAttributesCommand(args);
658
- if (typeof optionsOrCb === "function") {
659
- this.send(command, optionsOrCb);
660
- }
661
- else if (typeof cb === "function") {
662
- if (typeof optionsOrCb !== "object")
663
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
664
- this.send(command, optionsOrCb || {}, cb);
665
- }
666
- else {
667
- return this.send(command, optionsOrCb);
668
- }
669
- }
670
- describeFleetLocationCapacity(args, optionsOrCb, cb) {
671
- const command = new DescribeFleetLocationCapacityCommand_1.DescribeFleetLocationCapacityCommand(args);
672
- if (typeof optionsOrCb === "function") {
673
- this.send(command, optionsOrCb);
674
- }
675
- else if (typeof cb === "function") {
676
- if (typeof optionsOrCb !== "object")
677
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
678
- this.send(command, optionsOrCb || {}, cb);
679
- }
680
- else {
681
- return this.send(command, optionsOrCb);
682
- }
683
- }
684
- describeFleetLocationUtilization(args, optionsOrCb, cb) {
685
- const command = new DescribeFleetLocationUtilizationCommand_1.DescribeFleetLocationUtilizationCommand(args);
686
- if (typeof optionsOrCb === "function") {
687
- this.send(command, optionsOrCb);
688
- }
689
- else if (typeof cb === "function") {
690
- if (typeof optionsOrCb !== "object")
691
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
692
- this.send(command, optionsOrCb || {}, cb);
693
- }
694
- else {
695
- return this.send(command, optionsOrCb);
696
- }
697
- }
698
- describeFleetPortSettings(args, optionsOrCb, cb) {
699
- const command = new DescribeFleetPortSettingsCommand_1.DescribeFleetPortSettingsCommand(args);
700
- if (typeof optionsOrCb === "function") {
701
- this.send(command, optionsOrCb);
702
- }
703
- else if (typeof cb === "function") {
704
- if (typeof optionsOrCb !== "object")
705
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
706
- this.send(command, optionsOrCb || {}, cb);
707
- }
708
- else {
709
- return this.send(command, optionsOrCb);
710
- }
711
- }
712
- describeFleetUtilization(args, optionsOrCb, cb) {
713
- const command = new DescribeFleetUtilizationCommand_1.DescribeFleetUtilizationCommand(args);
714
- if (typeof optionsOrCb === "function") {
715
- this.send(command, optionsOrCb);
716
- }
717
- else if (typeof cb === "function") {
718
- if (typeof optionsOrCb !== "object")
719
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
720
- this.send(command, optionsOrCb || {}, cb);
721
- }
722
- else {
723
- return this.send(command, optionsOrCb);
724
- }
725
- }
726
- describeGameServer(args, optionsOrCb, cb) {
727
- const command = new DescribeGameServerCommand_1.DescribeGameServerCommand(args);
728
- if (typeof optionsOrCb === "function") {
729
- this.send(command, optionsOrCb);
730
- }
731
- else if (typeof cb === "function") {
732
- if (typeof optionsOrCb !== "object")
733
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
734
- this.send(command, optionsOrCb || {}, cb);
735
- }
736
- else {
737
- return this.send(command, optionsOrCb);
738
- }
739
- }
740
- describeGameServerGroup(args, optionsOrCb, cb) {
741
- const command = new DescribeGameServerGroupCommand_1.DescribeGameServerGroupCommand(args);
742
- if (typeof optionsOrCb === "function") {
743
- this.send(command, optionsOrCb);
744
- }
745
- else if (typeof cb === "function") {
746
- if (typeof optionsOrCb !== "object")
747
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
748
- this.send(command, optionsOrCb || {}, cb);
749
- }
750
- else {
751
- return this.send(command, optionsOrCb);
752
- }
753
- }
754
- describeGameServerInstances(args, optionsOrCb, cb) {
755
- const command = new DescribeGameServerInstancesCommand_1.DescribeGameServerInstancesCommand(args);
756
- if (typeof optionsOrCb === "function") {
757
- this.send(command, optionsOrCb);
758
- }
759
- else if (typeof cb === "function") {
760
- if (typeof optionsOrCb !== "object")
761
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
762
- this.send(command, optionsOrCb || {}, cb);
763
- }
764
- else {
765
- return this.send(command, optionsOrCb);
766
- }
767
- }
768
- describeGameSessionDetails(args, optionsOrCb, cb) {
769
- const command = new DescribeGameSessionDetailsCommand_1.DescribeGameSessionDetailsCommand(args);
770
- if (typeof optionsOrCb === "function") {
771
- this.send(command, optionsOrCb);
772
- }
773
- else if (typeof cb === "function") {
774
- if (typeof optionsOrCb !== "object")
775
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
776
- this.send(command, optionsOrCb || {}, cb);
777
- }
778
- else {
779
- return this.send(command, optionsOrCb);
780
- }
781
- }
782
- describeGameSessionPlacement(args, optionsOrCb, cb) {
783
- const command = new DescribeGameSessionPlacementCommand_1.DescribeGameSessionPlacementCommand(args);
784
- if (typeof optionsOrCb === "function") {
785
- this.send(command, optionsOrCb);
786
- }
787
- else if (typeof cb === "function") {
788
- if (typeof optionsOrCb !== "object")
789
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
790
- this.send(command, optionsOrCb || {}, cb);
791
- }
792
- else {
793
- return this.send(command, optionsOrCb);
794
- }
795
- }
796
- describeGameSessionQueues(args, optionsOrCb, cb) {
797
- const command = new DescribeGameSessionQueuesCommand_1.DescribeGameSessionQueuesCommand(args);
798
- if (typeof optionsOrCb === "function") {
799
- this.send(command, optionsOrCb);
800
- }
801
- else if (typeof cb === "function") {
802
- if (typeof optionsOrCb !== "object")
803
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
804
- this.send(command, optionsOrCb || {}, cb);
805
- }
806
- else {
807
- return this.send(command, optionsOrCb);
808
- }
809
- }
810
- describeGameSessions(args, optionsOrCb, cb) {
811
- const command = new DescribeGameSessionsCommand_1.DescribeGameSessionsCommand(args);
812
- if (typeof optionsOrCb === "function") {
813
- this.send(command, optionsOrCb);
814
- }
815
- else if (typeof cb === "function") {
816
- if (typeof optionsOrCb !== "object")
817
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
818
- this.send(command, optionsOrCb || {}, cb);
819
- }
820
- else {
821
- return this.send(command, optionsOrCb);
822
- }
823
- }
824
- describeInstances(args, optionsOrCb, cb) {
825
- const command = new DescribeInstancesCommand_1.DescribeInstancesCommand(args);
826
- if (typeof optionsOrCb === "function") {
827
- this.send(command, optionsOrCb);
828
- }
829
- else if (typeof cb === "function") {
830
- if (typeof optionsOrCb !== "object")
831
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
832
- this.send(command, optionsOrCb || {}, cb);
833
- }
834
- else {
835
- return this.send(command, optionsOrCb);
836
- }
837
- }
838
- describeMatchmaking(args, optionsOrCb, cb) {
839
- const command = new DescribeMatchmakingCommand_1.DescribeMatchmakingCommand(args);
840
- if (typeof optionsOrCb === "function") {
841
- this.send(command, optionsOrCb);
842
- }
843
- else if (typeof cb === "function") {
844
- if (typeof optionsOrCb !== "object")
845
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
846
- this.send(command, optionsOrCb || {}, cb);
847
- }
848
- else {
849
- return this.send(command, optionsOrCb);
850
- }
851
- }
852
- describeMatchmakingConfigurations(args, optionsOrCb, cb) {
853
- const command = new DescribeMatchmakingConfigurationsCommand_1.DescribeMatchmakingConfigurationsCommand(args);
854
- if (typeof optionsOrCb === "function") {
855
- this.send(command, optionsOrCb);
856
- }
857
- else if (typeof cb === "function") {
858
- if (typeof optionsOrCb !== "object")
859
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
860
- this.send(command, optionsOrCb || {}, cb);
861
- }
862
- else {
863
- return this.send(command, optionsOrCb);
864
- }
865
- }
866
- describeMatchmakingRuleSets(args, optionsOrCb, cb) {
867
- const command = new DescribeMatchmakingRuleSetsCommand_1.DescribeMatchmakingRuleSetsCommand(args);
868
- if (typeof optionsOrCb === "function") {
869
- this.send(command, optionsOrCb);
870
- }
871
- else if (typeof cb === "function") {
872
- if (typeof optionsOrCb !== "object")
873
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
874
- this.send(command, optionsOrCb || {}, cb);
875
- }
876
- else {
877
- return this.send(command, optionsOrCb);
878
- }
879
- }
880
- describePlayerSessions(args, optionsOrCb, cb) {
881
- const command = new DescribePlayerSessionsCommand_1.DescribePlayerSessionsCommand(args);
882
- if (typeof optionsOrCb === "function") {
883
- this.send(command, optionsOrCb);
884
- }
885
- else if (typeof cb === "function") {
886
- if (typeof optionsOrCb !== "object")
887
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
888
- this.send(command, optionsOrCb || {}, cb);
889
- }
890
- else {
891
- return this.send(command, optionsOrCb);
892
- }
893
- }
894
- describeRuntimeConfiguration(args, optionsOrCb, cb) {
895
- const command = new DescribeRuntimeConfigurationCommand_1.DescribeRuntimeConfigurationCommand(args);
896
- if (typeof optionsOrCb === "function") {
897
- this.send(command, optionsOrCb);
898
- }
899
- else if (typeof cb === "function") {
900
- if (typeof optionsOrCb !== "object")
901
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
902
- this.send(command, optionsOrCb || {}, cb);
903
- }
904
- else {
905
- return this.send(command, optionsOrCb);
906
- }
907
- }
908
- describeScalingPolicies(args, optionsOrCb, cb) {
909
- const command = new DescribeScalingPoliciesCommand_1.DescribeScalingPoliciesCommand(args);
910
- if (typeof optionsOrCb === "function") {
911
- this.send(command, optionsOrCb);
912
- }
913
- else if (typeof cb === "function") {
914
- if (typeof optionsOrCb !== "object")
915
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
916
- this.send(command, optionsOrCb || {}, cb);
917
- }
918
- else {
919
- return this.send(command, optionsOrCb);
920
- }
921
- }
922
- describeScript(args, optionsOrCb, cb) {
923
- const command = new DescribeScriptCommand_1.DescribeScriptCommand(args);
924
- if (typeof optionsOrCb === "function") {
925
- this.send(command, optionsOrCb);
926
- }
927
- else if (typeof cb === "function") {
928
- if (typeof optionsOrCb !== "object")
929
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
930
- this.send(command, optionsOrCb || {}, cb);
931
- }
932
- else {
933
- return this.send(command, optionsOrCb);
934
- }
935
- }
936
- describeVpcPeeringAuthorizations(args, optionsOrCb, cb) {
937
- const command = new DescribeVpcPeeringAuthorizationsCommand_1.DescribeVpcPeeringAuthorizationsCommand(args);
938
- if (typeof optionsOrCb === "function") {
939
- this.send(command, optionsOrCb);
940
- }
941
- else if (typeof cb === "function") {
942
- if (typeof optionsOrCb !== "object")
943
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
944
- this.send(command, optionsOrCb || {}, cb);
945
- }
946
- else {
947
- return this.send(command, optionsOrCb);
948
- }
949
- }
950
- describeVpcPeeringConnections(args, optionsOrCb, cb) {
951
- const command = new DescribeVpcPeeringConnectionsCommand_1.DescribeVpcPeeringConnectionsCommand(args);
952
- if (typeof optionsOrCb === "function") {
953
- this.send(command, optionsOrCb);
954
- }
955
- else if (typeof cb === "function") {
956
- if (typeof optionsOrCb !== "object")
957
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
958
- this.send(command, optionsOrCb || {}, cb);
959
- }
960
- else {
961
- return this.send(command, optionsOrCb);
962
- }
963
- }
964
- getComputeAccess(args, optionsOrCb, cb) {
965
- const command = new GetComputeAccessCommand_1.GetComputeAccessCommand(args);
966
- if (typeof optionsOrCb === "function") {
967
- this.send(command, optionsOrCb);
968
- }
969
- else if (typeof cb === "function") {
970
- if (typeof optionsOrCb !== "object")
971
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
972
- this.send(command, optionsOrCb || {}, cb);
973
- }
974
- else {
975
- return this.send(command, optionsOrCb);
976
- }
977
- }
978
- getComputeAuthToken(args, optionsOrCb, cb) {
979
- const command = new GetComputeAuthTokenCommand_1.GetComputeAuthTokenCommand(args);
980
- if (typeof optionsOrCb === "function") {
981
- this.send(command, optionsOrCb);
982
- }
983
- else if (typeof cb === "function") {
984
- if (typeof optionsOrCb !== "object")
985
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
986
- this.send(command, optionsOrCb || {}, cb);
987
- }
988
- else {
989
- return this.send(command, optionsOrCb);
990
- }
991
- }
992
- getGameSessionLogUrl(args, optionsOrCb, cb) {
993
- const command = new GetGameSessionLogUrlCommand_1.GetGameSessionLogUrlCommand(args);
994
- if (typeof optionsOrCb === "function") {
995
- this.send(command, optionsOrCb);
996
- }
997
- else if (typeof cb === "function") {
998
- if (typeof optionsOrCb !== "object")
999
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1000
- this.send(command, optionsOrCb || {}, cb);
1001
- }
1002
- else {
1003
- return this.send(command, optionsOrCb);
1004
- }
1005
- }
1006
- getInstanceAccess(args, optionsOrCb, cb) {
1007
- const command = new GetInstanceAccessCommand_1.GetInstanceAccessCommand(args);
1008
- if (typeof optionsOrCb === "function") {
1009
- this.send(command, optionsOrCb);
1010
- }
1011
- else if (typeof cb === "function") {
1012
- if (typeof optionsOrCb !== "object")
1013
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1014
- this.send(command, optionsOrCb || {}, cb);
1015
- }
1016
- else {
1017
- return this.send(command, optionsOrCb);
1018
- }
1019
- }
1020
- listAliases(args, optionsOrCb, cb) {
1021
- const command = new ListAliasesCommand_1.ListAliasesCommand(args);
1022
- if (typeof optionsOrCb === "function") {
1023
- this.send(command, optionsOrCb);
1024
- }
1025
- else if (typeof cb === "function") {
1026
- if (typeof optionsOrCb !== "object")
1027
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1028
- this.send(command, optionsOrCb || {}, cb);
1029
- }
1030
- else {
1031
- return this.send(command, optionsOrCb);
1032
- }
1033
- }
1034
- listBuilds(args, optionsOrCb, cb) {
1035
- const command = new ListBuildsCommand_1.ListBuildsCommand(args);
1036
- if (typeof optionsOrCb === "function") {
1037
- this.send(command, optionsOrCb);
1038
- }
1039
- else if (typeof cb === "function") {
1040
- if (typeof optionsOrCb !== "object")
1041
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1042
- this.send(command, optionsOrCb || {}, cb);
1043
- }
1044
- else {
1045
- return this.send(command, optionsOrCb);
1046
- }
1047
- }
1048
- listCompute(args, optionsOrCb, cb) {
1049
- const command = new ListComputeCommand_1.ListComputeCommand(args);
1050
- if (typeof optionsOrCb === "function") {
1051
- this.send(command, optionsOrCb);
1052
- }
1053
- else if (typeof cb === "function") {
1054
- if (typeof optionsOrCb !== "object")
1055
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1056
- this.send(command, optionsOrCb || {}, cb);
1057
- }
1058
- else {
1059
- return this.send(command, optionsOrCb);
1060
- }
1061
- }
1062
- listFleets(args, optionsOrCb, cb) {
1063
- const command = new ListFleetsCommand_1.ListFleetsCommand(args);
1064
- if (typeof optionsOrCb === "function") {
1065
- this.send(command, optionsOrCb);
1066
- }
1067
- else if (typeof cb === "function") {
1068
- if (typeof optionsOrCb !== "object")
1069
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1070
- this.send(command, optionsOrCb || {}, cb);
1071
- }
1072
- else {
1073
- return this.send(command, optionsOrCb);
1074
- }
1075
- }
1076
- listGameServerGroups(args, optionsOrCb, cb) {
1077
- const command = new ListGameServerGroupsCommand_1.ListGameServerGroupsCommand(args);
1078
- if (typeof optionsOrCb === "function") {
1079
- this.send(command, optionsOrCb);
1080
- }
1081
- else if (typeof cb === "function") {
1082
- if (typeof optionsOrCb !== "object")
1083
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1084
- this.send(command, optionsOrCb || {}, cb);
1085
- }
1086
- else {
1087
- return this.send(command, optionsOrCb);
1088
- }
1089
- }
1090
- listGameServers(args, optionsOrCb, cb) {
1091
- const command = new ListGameServersCommand_1.ListGameServersCommand(args);
1092
- if (typeof optionsOrCb === "function") {
1093
- this.send(command, optionsOrCb);
1094
- }
1095
- else if (typeof cb === "function") {
1096
- if (typeof optionsOrCb !== "object")
1097
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1098
- this.send(command, optionsOrCb || {}, cb);
1099
- }
1100
- else {
1101
- return this.send(command, optionsOrCb);
1102
- }
1103
- }
1104
- listLocations(args, optionsOrCb, cb) {
1105
- const command = new ListLocationsCommand_1.ListLocationsCommand(args);
1106
- if (typeof optionsOrCb === "function") {
1107
- this.send(command, optionsOrCb);
1108
- }
1109
- else if (typeof cb === "function") {
1110
- if (typeof optionsOrCb !== "object")
1111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1112
- this.send(command, optionsOrCb || {}, cb);
1113
- }
1114
- else {
1115
- return this.send(command, optionsOrCb);
1116
- }
1117
- }
1118
- listScripts(args, optionsOrCb, cb) {
1119
- const command = new ListScriptsCommand_1.ListScriptsCommand(args);
1120
- if (typeof optionsOrCb === "function") {
1121
- this.send(command, optionsOrCb);
1122
- }
1123
- else if (typeof cb === "function") {
1124
- if (typeof optionsOrCb !== "object")
1125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1126
- this.send(command, optionsOrCb || {}, cb);
1127
- }
1128
- else {
1129
- return this.send(command, optionsOrCb);
1130
- }
1131
- }
1132
- listTagsForResource(args, optionsOrCb, cb) {
1133
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
1134
- if (typeof optionsOrCb === "function") {
1135
- this.send(command, optionsOrCb);
1136
- }
1137
- else if (typeof cb === "function") {
1138
- if (typeof optionsOrCb !== "object")
1139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1140
- this.send(command, optionsOrCb || {}, cb);
1141
- }
1142
- else {
1143
- return this.send(command, optionsOrCb);
1144
- }
1145
- }
1146
- putScalingPolicy(args, optionsOrCb, cb) {
1147
- const command = new PutScalingPolicyCommand_1.PutScalingPolicyCommand(args);
1148
- if (typeof optionsOrCb === "function") {
1149
- this.send(command, optionsOrCb);
1150
- }
1151
- else if (typeof cb === "function") {
1152
- if (typeof optionsOrCb !== "object")
1153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1154
- this.send(command, optionsOrCb || {}, cb);
1155
- }
1156
- else {
1157
- return this.send(command, optionsOrCb);
1158
- }
1159
- }
1160
- registerCompute(args, optionsOrCb, cb) {
1161
- const command = new RegisterComputeCommand_1.RegisterComputeCommand(args);
1162
- if (typeof optionsOrCb === "function") {
1163
- this.send(command, optionsOrCb);
1164
- }
1165
- else if (typeof cb === "function") {
1166
- if (typeof optionsOrCb !== "object")
1167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1168
- this.send(command, optionsOrCb || {}, cb);
1169
- }
1170
- else {
1171
- return this.send(command, optionsOrCb);
1172
- }
1173
- }
1174
- registerGameServer(args, optionsOrCb, cb) {
1175
- const command = new RegisterGameServerCommand_1.RegisterGameServerCommand(args);
1176
- if (typeof optionsOrCb === "function") {
1177
- this.send(command, optionsOrCb);
1178
- }
1179
- else if (typeof cb === "function") {
1180
- if (typeof optionsOrCb !== "object")
1181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1182
- this.send(command, optionsOrCb || {}, cb);
1183
- }
1184
- else {
1185
- return this.send(command, optionsOrCb);
1186
- }
1187
- }
1188
- requestUploadCredentials(args, optionsOrCb, cb) {
1189
- const command = new RequestUploadCredentialsCommand_1.RequestUploadCredentialsCommand(args);
1190
- if (typeof optionsOrCb === "function") {
1191
- this.send(command, optionsOrCb);
1192
- }
1193
- else if (typeof cb === "function") {
1194
- if (typeof optionsOrCb !== "object")
1195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1196
- this.send(command, optionsOrCb || {}, cb);
1197
- }
1198
- else {
1199
- return this.send(command, optionsOrCb);
1200
- }
1201
- }
1202
- resolveAlias(args, optionsOrCb, cb) {
1203
- const command = new ResolveAliasCommand_1.ResolveAliasCommand(args);
1204
- if (typeof optionsOrCb === "function") {
1205
- this.send(command, optionsOrCb);
1206
- }
1207
- else if (typeof cb === "function") {
1208
- if (typeof optionsOrCb !== "object")
1209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1210
- this.send(command, optionsOrCb || {}, cb);
1211
- }
1212
- else {
1213
- return this.send(command, optionsOrCb);
1214
- }
1215
- }
1216
- resumeGameServerGroup(args, optionsOrCb, cb) {
1217
- const command = new ResumeGameServerGroupCommand_1.ResumeGameServerGroupCommand(args);
1218
- if (typeof optionsOrCb === "function") {
1219
- this.send(command, optionsOrCb);
1220
- }
1221
- else if (typeof cb === "function") {
1222
- if (typeof optionsOrCb !== "object")
1223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1224
- this.send(command, optionsOrCb || {}, cb);
1225
- }
1226
- else {
1227
- return this.send(command, optionsOrCb);
1228
- }
1229
- }
1230
- searchGameSessions(args, optionsOrCb, cb) {
1231
- const command = new SearchGameSessionsCommand_1.SearchGameSessionsCommand(args);
1232
- if (typeof optionsOrCb === "function") {
1233
- this.send(command, optionsOrCb);
1234
- }
1235
- else if (typeof cb === "function") {
1236
- if (typeof optionsOrCb !== "object")
1237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1238
- this.send(command, optionsOrCb || {}, cb);
1239
- }
1240
- else {
1241
- return this.send(command, optionsOrCb);
1242
- }
1243
- }
1244
- startFleetActions(args, optionsOrCb, cb) {
1245
- const command = new StartFleetActionsCommand_1.StartFleetActionsCommand(args);
1246
- if (typeof optionsOrCb === "function") {
1247
- this.send(command, optionsOrCb);
1248
- }
1249
- else if (typeof cb === "function") {
1250
- if (typeof optionsOrCb !== "object")
1251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1252
- this.send(command, optionsOrCb || {}, cb);
1253
- }
1254
- else {
1255
- return this.send(command, optionsOrCb);
1256
- }
1257
- }
1258
- startGameSessionPlacement(args, optionsOrCb, cb) {
1259
- const command = new StartGameSessionPlacementCommand_1.StartGameSessionPlacementCommand(args);
1260
- if (typeof optionsOrCb === "function") {
1261
- this.send(command, optionsOrCb);
1262
- }
1263
- else if (typeof cb === "function") {
1264
- if (typeof optionsOrCb !== "object")
1265
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1266
- this.send(command, optionsOrCb || {}, cb);
1267
- }
1268
- else {
1269
- return this.send(command, optionsOrCb);
1270
- }
1271
- }
1272
- startMatchBackfill(args, optionsOrCb, cb) {
1273
- const command = new StartMatchBackfillCommand_1.StartMatchBackfillCommand(args);
1274
- if (typeof optionsOrCb === "function") {
1275
- this.send(command, optionsOrCb);
1276
- }
1277
- else if (typeof cb === "function") {
1278
- if (typeof optionsOrCb !== "object")
1279
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1280
- this.send(command, optionsOrCb || {}, cb);
1281
- }
1282
- else {
1283
- return this.send(command, optionsOrCb);
1284
- }
1285
- }
1286
- startMatchmaking(args, optionsOrCb, cb) {
1287
- const command = new StartMatchmakingCommand_1.StartMatchmakingCommand(args);
1288
- if (typeof optionsOrCb === "function") {
1289
- this.send(command, optionsOrCb);
1290
- }
1291
- else if (typeof cb === "function") {
1292
- if (typeof optionsOrCb !== "object")
1293
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1294
- this.send(command, optionsOrCb || {}, cb);
1295
- }
1296
- else {
1297
- return this.send(command, optionsOrCb);
1298
- }
1299
- }
1300
- stopFleetActions(args, optionsOrCb, cb) {
1301
- const command = new StopFleetActionsCommand_1.StopFleetActionsCommand(args);
1302
- if (typeof optionsOrCb === "function") {
1303
- this.send(command, optionsOrCb);
1304
- }
1305
- else if (typeof cb === "function") {
1306
- if (typeof optionsOrCb !== "object")
1307
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1308
- this.send(command, optionsOrCb || {}, cb);
1309
- }
1310
- else {
1311
- return this.send(command, optionsOrCb);
1312
- }
1313
- }
1314
- stopGameSessionPlacement(args, optionsOrCb, cb) {
1315
- const command = new StopGameSessionPlacementCommand_1.StopGameSessionPlacementCommand(args);
1316
- if (typeof optionsOrCb === "function") {
1317
- this.send(command, optionsOrCb);
1318
- }
1319
- else if (typeof cb === "function") {
1320
- if (typeof optionsOrCb !== "object")
1321
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1322
- this.send(command, optionsOrCb || {}, cb);
1323
- }
1324
- else {
1325
- return this.send(command, optionsOrCb);
1326
- }
1327
- }
1328
- stopMatchmaking(args, optionsOrCb, cb) {
1329
- const command = new StopMatchmakingCommand_1.StopMatchmakingCommand(args);
1330
- if (typeof optionsOrCb === "function") {
1331
- this.send(command, optionsOrCb);
1332
- }
1333
- else if (typeof cb === "function") {
1334
- if (typeof optionsOrCb !== "object")
1335
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1336
- this.send(command, optionsOrCb || {}, cb);
1337
- }
1338
- else {
1339
- return this.send(command, optionsOrCb);
1340
- }
1341
- }
1342
- suspendGameServerGroup(args, optionsOrCb, cb) {
1343
- const command = new SuspendGameServerGroupCommand_1.SuspendGameServerGroupCommand(args);
1344
- if (typeof optionsOrCb === "function") {
1345
- this.send(command, optionsOrCb);
1346
- }
1347
- else if (typeof cb === "function") {
1348
- if (typeof optionsOrCb !== "object")
1349
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1350
- this.send(command, optionsOrCb || {}, cb);
1351
- }
1352
- else {
1353
- return this.send(command, optionsOrCb);
1354
- }
1355
- }
1356
- tagResource(args, optionsOrCb, cb) {
1357
- const command = new TagResourceCommand_1.TagResourceCommand(args);
1358
- if (typeof optionsOrCb === "function") {
1359
- this.send(command, optionsOrCb);
1360
- }
1361
- else if (typeof cb === "function") {
1362
- if (typeof optionsOrCb !== "object")
1363
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1364
- this.send(command, optionsOrCb || {}, cb);
1365
- }
1366
- else {
1367
- return this.send(command, optionsOrCb);
1368
- }
1369
- }
1370
- untagResource(args, optionsOrCb, cb) {
1371
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
1372
- if (typeof optionsOrCb === "function") {
1373
- this.send(command, optionsOrCb);
1374
- }
1375
- else if (typeof cb === "function") {
1376
- if (typeof optionsOrCb !== "object")
1377
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1378
- this.send(command, optionsOrCb || {}, cb);
1379
- }
1380
- else {
1381
- return this.send(command, optionsOrCb);
1382
- }
1383
- }
1384
- updateAlias(args, optionsOrCb, cb) {
1385
- const command = new UpdateAliasCommand_1.UpdateAliasCommand(args);
1386
- if (typeof optionsOrCb === "function") {
1387
- this.send(command, optionsOrCb);
1388
- }
1389
- else if (typeof cb === "function") {
1390
- if (typeof optionsOrCb !== "object")
1391
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1392
- this.send(command, optionsOrCb || {}, cb);
1393
- }
1394
- else {
1395
- return this.send(command, optionsOrCb);
1396
- }
1397
- }
1398
- updateBuild(args, optionsOrCb, cb) {
1399
- const command = new UpdateBuildCommand_1.UpdateBuildCommand(args);
1400
- if (typeof optionsOrCb === "function") {
1401
- this.send(command, optionsOrCb);
1402
- }
1403
- else if (typeof cb === "function") {
1404
- if (typeof optionsOrCb !== "object")
1405
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1406
- this.send(command, optionsOrCb || {}, cb);
1407
- }
1408
- else {
1409
- return this.send(command, optionsOrCb);
1410
- }
1411
- }
1412
- updateFleetAttributes(args, optionsOrCb, cb) {
1413
- const command = new UpdateFleetAttributesCommand_1.UpdateFleetAttributesCommand(args);
1414
- if (typeof optionsOrCb === "function") {
1415
- this.send(command, optionsOrCb);
1416
- }
1417
- else if (typeof cb === "function") {
1418
- if (typeof optionsOrCb !== "object")
1419
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1420
- this.send(command, optionsOrCb || {}, cb);
1421
- }
1422
- else {
1423
- return this.send(command, optionsOrCb);
1424
- }
1425
- }
1426
- updateFleetCapacity(args, optionsOrCb, cb) {
1427
- const command = new UpdateFleetCapacityCommand_1.UpdateFleetCapacityCommand(args);
1428
- if (typeof optionsOrCb === "function") {
1429
- this.send(command, optionsOrCb);
1430
- }
1431
- else if (typeof cb === "function") {
1432
- if (typeof optionsOrCb !== "object")
1433
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1434
- this.send(command, optionsOrCb || {}, cb);
1435
- }
1436
- else {
1437
- return this.send(command, optionsOrCb);
1438
- }
1439
- }
1440
- updateFleetPortSettings(args, optionsOrCb, cb) {
1441
- const command = new UpdateFleetPortSettingsCommand_1.UpdateFleetPortSettingsCommand(args);
1442
- if (typeof optionsOrCb === "function") {
1443
- this.send(command, optionsOrCb);
1444
- }
1445
- else if (typeof cb === "function") {
1446
- if (typeof optionsOrCb !== "object")
1447
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1448
- this.send(command, optionsOrCb || {}, cb);
1449
- }
1450
- else {
1451
- return this.send(command, optionsOrCb);
1452
- }
1453
- }
1454
- updateGameServer(args, optionsOrCb, cb) {
1455
- const command = new UpdateGameServerCommand_1.UpdateGameServerCommand(args);
1456
- if (typeof optionsOrCb === "function") {
1457
- this.send(command, optionsOrCb);
1458
- }
1459
- else if (typeof cb === "function") {
1460
- if (typeof optionsOrCb !== "object")
1461
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1462
- this.send(command, optionsOrCb || {}, cb);
1463
- }
1464
- else {
1465
- return this.send(command, optionsOrCb);
1466
- }
1467
- }
1468
- updateGameServerGroup(args, optionsOrCb, cb) {
1469
- const command = new UpdateGameServerGroupCommand_1.UpdateGameServerGroupCommand(args);
1470
- if (typeof optionsOrCb === "function") {
1471
- this.send(command, optionsOrCb);
1472
- }
1473
- else if (typeof cb === "function") {
1474
- if (typeof optionsOrCb !== "object")
1475
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1476
- this.send(command, optionsOrCb || {}, cb);
1477
- }
1478
- else {
1479
- return this.send(command, optionsOrCb);
1480
- }
1481
- }
1482
- updateGameSession(args, optionsOrCb, cb) {
1483
- const command = new UpdateGameSessionCommand_1.UpdateGameSessionCommand(args);
1484
- if (typeof optionsOrCb === "function") {
1485
- this.send(command, optionsOrCb);
1486
- }
1487
- else if (typeof cb === "function") {
1488
- if (typeof optionsOrCb !== "object")
1489
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1490
- this.send(command, optionsOrCb || {}, cb);
1491
- }
1492
- else {
1493
- return this.send(command, optionsOrCb);
1494
- }
1495
- }
1496
- updateGameSessionQueue(args, optionsOrCb, cb) {
1497
- const command = new UpdateGameSessionQueueCommand_1.UpdateGameSessionQueueCommand(args);
1498
- if (typeof optionsOrCb === "function") {
1499
- this.send(command, optionsOrCb);
1500
- }
1501
- else if (typeof cb === "function") {
1502
- if (typeof optionsOrCb !== "object")
1503
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1504
- this.send(command, optionsOrCb || {}, cb);
1505
- }
1506
- else {
1507
- return this.send(command, optionsOrCb);
1508
- }
1509
- }
1510
- updateMatchmakingConfiguration(args, optionsOrCb, cb) {
1511
- const command = new UpdateMatchmakingConfigurationCommand_1.UpdateMatchmakingConfigurationCommand(args);
1512
- if (typeof optionsOrCb === "function") {
1513
- this.send(command, optionsOrCb);
1514
- }
1515
- else if (typeof cb === "function") {
1516
- if (typeof optionsOrCb !== "object")
1517
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1518
- this.send(command, optionsOrCb || {}, cb);
1519
- }
1520
- else {
1521
- return this.send(command, optionsOrCb);
1522
- }
1523
- }
1524
- updateRuntimeConfiguration(args, optionsOrCb, cb) {
1525
- const command = new UpdateRuntimeConfigurationCommand_1.UpdateRuntimeConfigurationCommand(args);
1526
- if (typeof optionsOrCb === "function") {
1527
- this.send(command, optionsOrCb);
1528
- }
1529
- else if (typeof cb === "function") {
1530
- if (typeof optionsOrCb !== "object")
1531
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1532
- this.send(command, optionsOrCb || {}, cb);
1533
- }
1534
- else {
1535
- return this.send(command, optionsOrCb);
1536
- }
1537
- }
1538
- updateScript(args, optionsOrCb, cb) {
1539
- const command = new UpdateScriptCommand_1.UpdateScriptCommand(args);
1540
- if (typeof optionsOrCb === "function") {
1541
- this.send(command, optionsOrCb);
1542
- }
1543
- else if (typeof cb === "function") {
1544
- if (typeof optionsOrCb !== "object")
1545
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1546
- this.send(command, optionsOrCb || {}, cb);
1547
- }
1548
- else {
1549
- return this.send(command, optionsOrCb);
1550
- }
1551
- }
1552
- validateMatchmakingRuleSet(args, optionsOrCb, cb) {
1553
- const command = new ValidateMatchmakingRuleSetCommand_1.ValidateMatchmakingRuleSetCommand(args);
1554
- if (typeof optionsOrCb === "function") {
1555
- this.send(command, optionsOrCb);
1556
- }
1557
- else if (typeof cb === "function") {
1558
- if (typeof optionsOrCb !== "object")
1559
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1560
- this.send(command, optionsOrCb || {}, cb);
1561
- }
1562
- else {
1563
- return this.send(command, optionsOrCb);
1564
- }
1565
- }
1566
217
  }
1567
218
  exports.GameLift = GameLift;
219
+ (0, smithy_client_1.createAggregatedClient)(commands, GameLift);