Skip to content

Commit b38a48f

Browse files
author
awstools
committed
feat(client-gamelift): GameLift introduces a new feature, GameLift Anywhere. GameLift Anywhere allows you to integrate your own compute resources with GameLift. You can also use GameLift Anywhere to iteratively test your game servers without uploading the build to GameLift for every iteration.
1 parent 5c0d056 commit b38a48f

File tree

119 files changed

+10545
-9049
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+10545
-9049
lines changed

clients/client-gamelift/README.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99

1010
AWS SDK for JavaScript GameLift Client for Node.js, Browser and React Native.
1111

12-
<fullname>GameLift Service</fullname>
13-
14-
<p>Amazon Web Services provides solutions for hosting session-based multiplayer game servers in the
15-
cloud, including tools for deploying, operating, and scaling game servers. Built on Amazon Web Services
16-
global computing infrastructure, GameLift helps you deliver high-performance,
12+
<p>Amazon GameLift provides solutions for hosting session-based multiplayer game servers in the
13+
cloud, including tools for deploying, operating, and scaling game servers. Built on
14+
Amazon Web Services global computing infrastructure, GameLift helps you deliver high-performance,
1715
high-reliability, low-cost game servers while dynamically scaling your resource usage to
1816
meet player demand. </p>
1917
<p>
@@ -22,24 +20,25 @@ meet player demand. </p>
2220
<p>Get more information on these GameLift solutions in the <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/">GameLift Developer Guide</a>.</p>
2321
<ul>
2422
<li>
25-
<p>GameLift managed hosting -- GameLift offers a fully managed service to set up and maintain
26-
computing machines for hosting, manage game session and player session life
27-
cycle, and handle security, storage, and performance tracking. You can use
28-
automatic scaling tools to balance player demand and hosting costs, configure
29-
your game session management to minimize player latency, and add FlexMatch for
30-
matchmaking.</p>
23+
<p>GameLift managed hosting -- GameLift offers a fully managed service to set up
24+
and maintain computing machines for hosting, manage game session and player
25+
session life cycle, and handle security, storage, and performance tracking. You
26+
can use automatic scaling tools to balance player demand and hosting costs,
27+
configure your game session management to minimize player latency, and add
28+
FlexMatch for matchmaking.</p>
3129
</li>
3230
<li>
33-
<p>Managed hosting with Realtime Servers -- With GameLift Realtime Servers, you can quickly configure and set up
34-
ready-to-go game servers for your game. Realtime Servers provides a game server framework
35-
with core GameLift infrastructure already built in. Then use the full range of
36-
GameLift managed hosting features, including FlexMatch, for your game.</p>
31+
<p>Managed hosting with Realtime Servers -- With GameLift Realtime Servers, you can quickly configure
32+
and set up ready-to-go game servers for your game. Realtime Servers provides a game server
33+
framework with core GameLift infrastructure already built in. Then use the full
34+
range of GameLift managed hosting features, including FlexMatch, for your
35+
game.</p>
3736
</li>
3837
<li>
39-
<p>GameLift FleetIQ -- Use GameLift FleetIQ as a standalone service while hosting your games using EC2 instances and
40-
Auto Scaling groups. GameLift FleetIQ provides optimizations for game hosting, including
41-
boosting the viability of low-cost Spot Instances gaming. For a complete
42-
solution, pair the GameLift FleetIQ and FlexMatch standalone services.</p>
38+
<p>GameLift FleetIQ -- Use GameLift FleetIQ as a standalone service while hosting your games using EC2
39+
instances and Auto Scaling groups. GameLift FleetIQ provides optimizations for game
40+
hosting, including boosting the viability of low-cost Spot Instances gaming. For
41+
a complete solution, pair the GameLift FleetIQ and FlexMatch standalone services.</p>
4342
</li>
4443
<li>
4544
<p>GameLift FlexMatch -- Add matchmaking to your game hosting solution. FlexMatch is a
@@ -51,7 +50,7 @@ service into your own hosting solution.</p>
5150
<p>
5251
<b>About this API Reference</b>
5352
</p>
54-
<p>This reference guide describes the low-level service API for Amazon Web Services. With each topic
53+
<p>This reference guide describes the low-level service API for Amazon GameLift. With each topic
5554
in this guide, you can find links to language-specific SDK guides and the Amazon Web Services CLI
5655
reference. Useful links:</p>
5756
<ul>

clients/client-gamelift/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@aws-sdk/util-defaults-mode-browser": "*",
4848
"@aws-sdk/util-defaults-mode-node": "*",
4949
"@aws-sdk/util-endpoints": "*",
50+
"@aws-sdk/util-retry": "*",
5051
"@aws-sdk/util-user-agent-browser": "*",
5152
"@aws-sdk/util-user-agent-node": "*",
5253
"@aws-sdk/util-utf8-browser": "*",

clients/client-gamelift/src/GameLift.ts

Lines changed: 1019 additions & 1760 deletions
Large diffs are not rendered by default.

clients/client-gamelift/src/GameLiftClient.ts

Lines changed: 51 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ import {
6565
CreateGameSessionQueueCommandInput,
6666
CreateGameSessionQueueCommandOutput,
6767
} from "./commands/CreateGameSessionQueueCommand";
68+
import { CreateLocationCommandInput, CreateLocationCommandOutput } from "./commands/CreateLocationCommand";
6869
import {
6970
CreateMatchmakingConfigurationCommandInput,
7071
CreateMatchmakingConfigurationCommandOutput,
@@ -105,6 +106,7 @@ import {
105106
DeleteGameSessionQueueCommandInput,
106107
DeleteGameSessionQueueCommandOutput,
107108
} from "./commands/DeleteGameSessionQueueCommand";
109+
import { DeleteLocationCommandInput, DeleteLocationCommandOutput } from "./commands/DeleteLocationCommand";
108110
import {
109111
DeleteMatchmakingConfigurationCommandInput,
110112
DeleteMatchmakingConfigurationCommandOutput,
@@ -126,12 +128,14 @@ import {
126128
DeleteVpcPeeringConnectionCommandInput,
127129
DeleteVpcPeeringConnectionCommandOutput,
128130
} from "./commands/DeleteVpcPeeringConnectionCommand";
131+
import { DeregisterComputeCommandInput, DeregisterComputeCommandOutput } from "./commands/DeregisterComputeCommand";
129132
import {
130133
DeregisterGameServerCommandInput,
131134
DeregisterGameServerCommandOutput,
132135
} from "./commands/DeregisterGameServerCommand";
133136
import { DescribeAliasCommandInput, DescribeAliasCommandOutput } from "./commands/DescribeAliasCommand";
134137
import { DescribeBuildCommandInput, DescribeBuildCommandOutput } from "./commands/DescribeBuildCommand";
138+
import { DescribeComputeCommandInput, DescribeComputeCommandOutput } from "./commands/DescribeComputeCommand";
135139
import {
136140
DescribeEC2InstanceLimitsCommandInput,
137141
DescribeEC2InstanceLimitsCommandOutput,
@@ -227,25 +231,33 @@ import {
227231
DescribeVpcPeeringConnectionsCommandInput,
228232
DescribeVpcPeeringConnectionsCommandOutput,
229233
} from "./commands/DescribeVpcPeeringConnectionsCommand";
234+
import { GetComputeAccessCommandInput, GetComputeAccessCommandOutput } from "./commands/GetComputeAccessCommand";
235+
import {
236+
GetComputeAuthTokenCommandInput,
237+
GetComputeAuthTokenCommandOutput,
238+
} from "./commands/GetComputeAuthTokenCommand";
230239
import {
231240
GetGameSessionLogUrlCommandInput,
232241
GetGameSessionLogUrlCommandOutput,
233242
} from "./commands/GetGameSessionLogUrlCommand";
234243
import { GetInstanceAccessCommandInput, GetInstanceAccessCommandOutput } from "./commands/GetInstanceAccessCommand";
235244
import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
236245
import { ListBuildsCommandInput, ListBuildsCommandOutput } from "./commands/ListBuildsCommand";
246+
import { ListComputeCommandInput, ListComputeCommandOutput } from "./commands/ListComputeCommand";
237247
import { ListFleetsCommandInput, ListFleetsCommandOutput } from "./commands/ListFleetsCommand";
238248
import {
239249
ListGameServerGroupsCommandInput,
240250
ListGameServerGroupsCommandOutput,
241251
} from "./commands/ListGameServerGroupsCommand";
242252
import { ListGameServersCommandInput, ListGameServersCommandOutput } from "./commands/ListGameServersCommand";
253+
import { ListLocationsCommandInput, ListLocationsCommandOutput } from "./commands/ListLocationsCommand";
243254
import { ListScriptsCommandInput, ListScriptsCommandOutput } from "./commands/ListScriptsCommand";
244255
import {
245256
ListTagsForResourceCommandInput,
246257
ListTagsForResourceCommandOutput,
247258
} from "./commands/ListTagsForResourceCommand";
248259
import { PutScalingPolicyCommandInput, PutScalingPolicyCommandOutput } from "./commands/PutScalingPolicyCommand";
260+
import { RegisterComputeCommandInput, RegisterComputeCommandOutput } from "./commands/RegisterComputeCommand";
249261
import { RegisterGameServerCommandInput, RegisterGameServerCommandOutput } from "./commands/RegisterGameServerCommand";
250262
import {
251263
RequestUploadCredentialsCommandInput,
@@ -331,6 +343,7 @@ export type ServiceInputTypes =
331343
| CreateGameServerGroupCommandInput
332344
| CreateGameSessionCommandInput
333345
| CreateGameSessionQueueCommandInput
346+
| CreateLocationCommandInput
334347
| CreateMatchmakingConfigurationCommandInput
335348
| CreateMatchmakingRuleSetCommandInput
336349
| CreatePlayerSessionCommandInput
@@ -344,15 +357,18 @@ export type ServiceInputTypes =
344357
| DeleteFleetLocationsCommandInput
345358
| DeleteGameServerGroupCommandInput
346359
| DeleteGameSessionQueueCommandInput
360+
| DeleteLocationCommandInput
347361
| DeleteMatchmakingConfigurationCommandInput
348362
| DeleteMatchmakingRuleSetCommandInput
349363
| DeleteScalingPolicyCommandInput
350364
| DeleteScriptCommandInput
351365
| DeleteVpcPeeringAuthorizationCommandInput
352366
| DeleteVpcPeeringConnectionCommandInput
367+
| DeregisterComputeCommandInput
353368
| DeregisterGameServerCommandInput
354369
| DescribeAliasCommandInput
355370
| DescribeBuildCommandInput
371+
| DescribeComputeCommandInput
356372
| DescribeEC2InstanceLimitsCommandInput
357373
| DescribeFleetAttributesCommandInput
358374
| DescribeFleetCapacityCommandInput
@@ -379,16 +395,21 @@ export type ServiceInputTypes =
379395
| DescribeScriptCommandInput
380396
| DescribeVpcPeeringAuthorizationsCommandInput
381397
| DescribeVpcPeeringConnectionsCommandInput
398+
| GetComputeAccessCommandInput
399+
| GetComputeAuthTokenCommandInput
382400
| GetGameSessionLogUrlCommandInput
383401
| GetInstanceAccessCommandInput
384402
| ListAliasesCommandInput
385403
| ListBuildsCommandInput
404+
| ListComputeCommandInput
386405
| ListFleetsCommandInput
387406
| ListGameServerGroupsCommandInput
388407
| ListGameServersCommandInput
408+
| ListLocationsCommandInput
389409
| ListScriptsCommandInput
390410
| ListTagsForResourceCommandInput
391411
| PutScalingPolicyCommandInput
412+
| RegisterComputeCommandInput
392413
| RegisterGameServerCommandInput
393414
| RequestUploadCredentialsCommandInput
394415
| ResolveAliasCommandInput
@@ -428,6 +449,7 @@ export type ServiceOutputTypes =
428449
| CreateGameServerGroupCommandOutput
429450
| CreateGameSessionCommandOutput
430451
| CreateGameSessionQueueCommandOutput
452+
| CreateLocationCommandOutput
431453
| CreateMatchmakingConfigurationCommandOutput
432454
| CreateMatchmakingRuleSetCommandOutput
433455
| CreatePlayerSessionCommandOutput
@@ -441,15 +463,18 @@ export type ServiceOutputTypes =
441463
| DeleteFleetLocationsCommandOutput
442464
| DeleteGameServerGroupCommandOutput
443465
| DeleteGameSessionQueueCommandOutput
466+
| DeleteLocationCommandOutput
444467
| DeleteMatchmakingConfigurationCommandOutput
445468
| DeleteMatchmakingRuleSetCommandOutput
446469
| DeleteScalingPolicyCommandOutput
447470
| DeleteScriptCommandOutput
448471
| DeleteVpcPeeringAuthorizationCommandOutput
449472
| DeleteVpcPeeringConnectionCommandOutput
473+
| DeregisterComputeCommandOutput
450474
| DeregisterGameServerCommandOutput
451475
| DescribeAliasCommandOutput
452476
| DescribeBuildCommandOutput
477+
| DescribeComputeCommandOutput
453478
| DescribeEC2InstanceLimitsCommandOutput
454479
| DescribeFleetAttributesCommandOutput
455480
| DescribeFleetCapacityCommandOutput
@@ -476,16 +501,21 @@ export type ServiceOutputTypes =
476501
| DescribeScriptCommandOutput
477502
| DescribeVpcPeeringAuthorizationsCommandOutput
478503
| DescribeVpcPeeringConnectionsCommandOutput
504+
| GetComputeAccessCommandOutput
505+
| GetComputeAuthTokenCommandOutput
479506
| GetGameSessionLogUrlCommandOutput
480507
| GetInstanceAccessCommandOutput
481508
| ListAliasesCommandOutput
482509
| ListBuildsCommandOutput
510+
| ListComputeCommandOutput
483511
| ListFleetsCommandOutput
484512
| ListGameServerGroupsCommandOutput
485513
| ListGameServersCommandOutput
514+
| ListLocationsCommandOutput
486515
| ListScriptsCommandOutput
487516
| ListTagsForResourceCommandOutput
488517
| PutScalingPolicyCommandOutput
518+
| RegisterComputeCommandOutput
489519
| RegisterGameServerCommandOutput
490520
| RequestUploadCredentialsCommandOutput
491521
| ResolveAliasCommandOutput
@@ -665,10 +695,9 @@ type GameLiftClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHand
665695
export interface GameLiftClientResolvedConfig extends GameLiftClientResolvedConfigType {}
666696

667697
/**
668-
* <fullname>GameLift Service</fullname>
669-
* <p>Amazon Web Services provides solutions for hosting session-based multiplayer game servers in the
670-
* cloud, including tools for deploying, operating, and scaling game servers. Built on Amazon Web Services
671-
* global computing infrastructure, GameLift helps you deliver high-performance,
698+
* <p>Amazon GameLift provides solutions for hosting session-based multiplayer game servers in the
699+
* cloud, including tools for deploying, operating, and scaling game servers. Built on
700+
* Amazon Web Services global computing infrastructure, GameLift helps you deliver high-performance,
672701
* high-reliability, low-cost game servers while dynamically scaling your resource usage to
673702
* meet player demand. </p>
674703
* <p>
@@ -677,24 +706,25 @@ export interface GameLiftClientResolvedConfig extends GameLiftClientResolvedConf
677706
* <p>Get more information on these GameLift solutions in the <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/">GameLift Developer Guide</a>.</p>
678707
* <ul>
679708
* <li>
680-
* <p>GameLift managed hosting -- GameLift offers a fully managed service to set up and maintain
681-
* computing machines for hosting, manage game session and player session life
682-
* cycle, and handle security, storage, and performance tracking. You can use
683-
* automatic scaling tools to balance player demand and hosting costs, configure
684-
* your game session management to minimize player latency, and add FlexMatch for
685-
* matchmaking.</p>
709+
* <p>GameLift managed hosting -- GameLift offers a fully managed service to set up
710+
* and maintain computing machines for hosting, manage game session and player
711+
* session life cycle, and handle security, storage, and performance tracking. You
712+
* can use automatic scaling tools to balance player demand and hosting costs,
713+
* configure your game session management to minimize player latency, and add
714+
* FlexMatch for matchmaking.</p>
686715
* </li>
687716
* <li>
688-
* <p>Managed hosting with Realtime Servers -- With GameLift Realtime Servers, you can quickly configure and set up
689-
* ready-to-go game servers for your game. Realtime Servers provides a game server framework
690-
* with core GameLift infrastructure already built in. Then use the full range of
691-
* GameLift managed hosting features, including FlexMatch, for your game.</p>
717+
* <p>Managed hosting with Realtime Servers -- With GameLift Realtime Servers, you can quickly configure
718+
* and set up ready-to-go game servers for your game. Realtime Servers provides a game server
719+
* framework with core GameLift infrastructure already built in. Then use the full
720+
* range of GameLift managed hosting features, including FlexMatch, for your
721+
* game.</p>
692722
* </li>
693723
* <li>
694-
* <p>GameLift FleetIQ -- Use GameLift FleetIQ as a standalone service while hosting your games using EC2 instances and
695-
* Auto Scaling groups. GameLift FleetIQ provides optimizations for game hosting, including
696-
* boosting the viability of low-cost Spot Instances gaming. For a complete
697-
* solution, pair the GameLift FleetIQ and FlexMatch standalone services.</p>
724+
* <p>GameLift FleetIQ -- Use GameLift FleetIQ as a standalone service while hosting your games using EC2
725+
* instances and Auto Scaling groups. GameLift FleetIQ provides optimizations for game
726+
* hosting, including boosting the viability of low-cost Spot Instances gaming. For
727+
* a complete solution, pair the GameLift FleetIQ and FlexMatch standalone services.</p>
698728
* </li>
699729
* <li>
700730
* <p>GameLift FlexMatch -- Add matchmaking to your game hosting solution. FlexMatch is a
@@ -706,20 +736,20 @@ export interface GameLiftClientResolvedConfig extends GameLiftClientResolvedConf
706736
* <p>
707737
* <b>About this API Reference</b>
708738
* </p>
709-
* <p>This reference guide describes the low-level service API for Amazon Web Services. With each topic
739+
* <p>This reference guide describes the low-level service API for Amazon GameLift. With each topic
710740
* in this guide, you can find links to language-specific SDK guides and the Amazon Web Services CLI
711741
* reference. Useful links:</p>
712742
* <ul>
713743
* <li>
714744
* <p>
715745
* <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-awssdk.html">GameLift API
716-
* operations listed by tasks</a>
746+
* operations listed by tasks</a>
717747
* </p>
718748
* </li>
719749
* <li>
720750
* <p>
721751
* <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-components.html"> GameLift tools
722-
* and resources</a>
752+
* and resources</a>
723753
* </p>
724754
* </li>
725755
* </ul>

clients/client-gamelift/src/commands/AcceptMatchCommand.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface AcceptMatchCommandOutput extends AcceptMatchOutput, __MetadataB
4040
* error.</p>
4141
* <p>To register acceptance, specify the ticket ID, a response, and one or more players.
4242
* Once all players have registered acceptance, the matchmaking tickets advance to status
43-
* <code>PLACING</code>, where a new game session is created for the match. </p>
43+
* <code>PLACING</code>, where a new game session is created for the match. </p>
4444
* <p>If any player rejects the match, or if acceptances are not received before a specified
4545
* timeout, the proposed match is dropped. The matchmaking tickets are then handled in one
4646
* of two ways: For tickets where one or more players rejected the match or failed to
@@ -56,18 +56,8 @@ export interface AcceptMatchCommandOutput extends AcceptMatchOutput, __MetadataB
5656
* Add FlexMatch to a game client</a>
5757
* </p>
5858
* <p>
59-
* <a href="https://docs.aws.amazon.com/gamelift/latest/flexmatchguide/match-events.html"> FlexMatch events</a> (reference)</p>
60-
* <p>
61-
* <b>Related actions</b>
62-
* </p>
63-
* <p>
64-
* <a>StartMatchmaking</a> |
65-
* <a>DescribeMatchmaking</a> |
66-
* <a>StopMatchmaking</a> |
67-
* <a>AcceptMatch</a> |
68-
* <a>StartMatchBackfill</a> |
69-
* <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-awssdk.html#reference-awssdk-resources-fleets">All APIs by task</a>
70-
* </p>
59+
* <a href="https://docs.aws.amazon.com/gamelift/latest/flexmatchguide/match-events.html">
60+
* FlexMatch events</a> (reference)</p>
7161
* @example
7262
* Use a bare-bones client and the command you need to make an API call.
7363
* ```javascript

0 commit comments

Comments
 (0)