@aws-sdk/client-gamelift 3.470.0 → 3.474.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.
@@ -25,12 +25,7 @@ export interface SearchGameSessionsCommandOutput extends SearchGameSessionsOutpu
25
25
  * @public
26
26
  * <p>Retrieves all active game sessions that match a set of search criteria and sorts them
27
27
  * into a specified order. </p>
28
- * <p>This operation is not designed to be continually called to track game session status.
29
- * This practice can cause you to exceed your API limit, which results in errors. Instead,
30
- * you must configure configure an Amazon Simple Notification Service (SNS) topic to receive notifications from
31
- * FlexMatch or queues. Continuously polling game session status with
32
- * <code>DescribeGameSessions</code> should only be used for games in development with
33
- * low game session usage. </p>
28
+ * <p>This operation is not designed to continually track game session status because that practice can cause you to exceed your API limit and generate errors. Instead, configure an Amazon Simple Notification Service (Amazon SNS) topic to receive notifications from a matchmaker or game session placement queue.</p>
34
29
  * <p>When searching for game sessions, you specify exactly where you want to search and
35
30
  * provide a search filter expression, a sort expression, or both. A search request can
36
31
  * search only one fleet, but it can search all of a fleet's locations. </p>
@@ -52,7 +47,7 @@ export interface SearchGameSessionsCommandOutput extends SearchGameSessionsOutpu
52
47
  * <p>If successful, a <code>GameSession</code> object is returned for each game session
53
48
  * that matches the request. Search finds game sessions that are in <code>ACTIVE</code>
54
49
  * status only. To retrieve information on game sessions in other statuses, use <a href="https://docs.aws.amazon.com/gamelift/latest/apireference/API_DescribeGameSessions.html">DescribeGameSessions</a> .</p>
55
- * <p>You can search or sort by the following game session attributes:</p>
50
+ * <p>To set search and sort criteria, create a filter expression using the following game session attributes. For game session search examples, see the Examples section of this topic.</p>
56
51
  * <ul>
57
52
  * <li>
58
53
  * <p>
@@ -66,14 +61,14 @@ export interface SearchGameSessionsCommandOutput extends SearchGameSessionsOutpu
66
61
  * </li>
67
62
  * <li>
68
63
  * <p>
69
- * <b>gameSessionProperties</b> -- Custom data defined
70
- * in a game session's <code>GameProperty</code> parameter.
71
- * <code>GameProperty</code> values are stored as key:value pairs; the filter
72
- * expression must indicate the key and a string to search the data values for. For
73
- * example, to search for game sessions with custom data containing the key:value
74
- * pair "gameMode:brawl", specify the following:
75
- * <code>gameSessionProperties.gameMode = "brawl"</code>. All custom data
76
- * values are searched as strings.</p>
64
+ * <b>gameSessionProperties</b> -- A set of key-value pairs that can store custom data in a game session.
65
+ * For example: <code>\{"Key": "difficulty", "Value": "novice"\}</code>.
66
+ * The filter expression must specify the <a>GameProperty</a> -- a <code>Key</code> and a string <code>Value</code> to search for the game sessions.</p>
67
+ * <p>For example, to search for the above key-value pair, specify the following search filter: <code>gameSessionProperties.difficulty = "novice"</code>.
68
+ * All game property values are searched as strings.</p>
69
+ * <p>
70
+ * For examples of searching game sessions, see the ones below, and also see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-client-api.html#game-properties-search">Search game sessions by game property</a>.
71
+ * </p>
77
72
  * </li>
78
73
  * <li>
79
74
  * <p>
@@ -42,6 +42,12 @@ export interface UpdateGameSessionCommandOutput extends UpdateGameSessionOutput,
42
42
  * Name: "STRING_VALUE",
43
43
  * PlayerSessionCreationPolicy: "ACCEPT_ALL" || "DENY_ALL",
44
44
  * ProtectionPolicy: "NoProtection" || "FullProtection",
45
+ * GameProperties: [ // GamePropertyList
46
+ * { // GameProperty
47
+ * Key: "STRING_VALUE", // required
48
+ * Value: "STRING_VALUE", // required
49
+ * },
50
+ * ],
45
51
  * };
46
52
  * const command = new UpdateGameSessionCommand(input);
47
53
  * const response = await client.send(command);
@@ -2550,11 +2550,15 @@ export interface CreateGameServerGroupOutput {
2550
2550
  }
2551
2551
  /**
2552
2552
  * @public
2553
- * <p>Set of key-value pairs that contain information about a game session. When included in
2554
- * a game session request, these properties communicate details to be used when setting up
2555
- * the new game session. For example, a game property might specify a game mode, level, or
2556
- * map. Game properties are passed to the game server process when initiating a new game
2557
- * session. For more information, see the <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-client-api.html#gamelift-sdk-client-api-create"> Amazon GameLift Developer Guide</a>.</p>
2553
+ * <p>This key-value pair can store custom data about a game session.
2554
+ * For example, you might use a <code>GameProperty</code> to track a game session's map, level of difficulty, or remaining time.
2555
+ * The difficulty level could be specified like this: <code>\{"Key": "difficulty", "Value":"Novice"\}</code>.
2556
+ * </p>
2557
+ * <p>
2558
+ * You can set game properties when creating a game session. You can also modify game properties of an active game session. When searching for game sessions, you can filter on game property keys and values. You can't delete game properties from a game session.
2559
+ * </p>
2560
+ * <p>For examples of working with game properties, see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-client-api.html#game-properties">Create a game session with properties</a>.
2561
+ * </p>
2558
2562
  */
2559
2563
  export interface GameProperty {
2560
2564
  /**
@@ -2597,7 +2601,10 @@ export interface CreateGameSessionInput {
2597
2601
  Name?: string;
2598
2602
  /**
2599
2603
  * @public
2600
- * <p>A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession">Start a Game Session</a>).</p>
2604
+ * <p>A set of key-value pairs that can store custom data in a game session.
2605
+ * For example: <code>\{"Key": "difficulty", "Value": "novice"\}</code>.
2606
+ * For an example, see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-client-api.html#game-properties-create">Create a game session with custom properties</a>.
2607
+ * </p>
2601
2608
  */
2602
2609
  GameProperties?: GameProperty[];
2603
2610
  /**
@@ -2760,7 +2767,8 @@ export interface GameSession {
2760
2767
  StatusReason?: GameSessionStatusReason;
2761
2768
  /**
2762
2769
  * @public
2763
- * <p>A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession">Start a Game Session</a>).</p>
2770
+ * <p>A set of key-value pairs that can store custom data in a game session.
2771
+ * For example: <code>\{"Key": "difficulty", "Value": "novice"\}</code>.</p>
2764
2772
  */
2765
2773
  GameProperties?: GameProperty[];
2766
2774
  /**
@@ -3278,7 +3286,8 @@ export interface CreateMatchmakingConfigurationInput {
3278
3286
  CustomEventData?: string;
3279
3287
  /**
3280
3288
  * @public
3281
- * <p>A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession">Start a Game Session</a>). This information is added to the new <code>GameSession</code> object that is
3289
+ * <p>A set of key-value pairs that can store custom data in a game session.
3290
+ * For example: <code>\{"Key": "difficulty", "Value": "novice"\}</code>. This information is added to the new <code>GameSession</code> object that is
3282
3291
  * created for a successful match. This parameter is not used if <code>FlexMatchMode</code>
3283
3292
  * is set to <code>STANDALONE</code>.</p>
3284
3293
  */
@@ -3417,7 +3426,8 @@ export interface MatchmakingConfiguration {
3417
3426
  CreationTime?: Date;
3418
3427
  /**
3419
3428
  * @public
3420
- * <p>A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession">Start a Game Session</a>). This information is added to the new <code>GameSession</code> object that is
3429
+ * <p>A set of key-value pairs that can store custom data in a game session.
3430
+ * For example: <code>\{"Key": "difficulty", "Value": "novice"\}</code>. This information is added to the new <code>GameSession</code> object that is
3421
3431
  * created for a successful match. This parameter is not used when
3422
3432
  * <code>FlexMatchMode</code> is set to <code>STANDALONE</code>.</p>
3423
3433
  */
@@ -4860,18 +4870,19 @@ export interface Event {
4860
4870
  * </li>
4861
4871
  * <li>
4862
4872
  * <p>SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT -- The server process did not call
4863
- * InitSDK() within the time expected. Check your game session log to see why
4864
- * InitSDK() was not called in time.</p>
4873
+ * <code>InitSDK()</code> within the time expected (5 minutes). Check your game
4874
+ * session log to see why <code>InitSDK()</code> was not called in time.</p>
4865
4875
  * </li>
4866
4876
  * <li>
4867
4877
  * <p>SERVER_PROCESS_PROCESS_READY_TIMEOUT -- The server process did not call
4868
- * ProcessReady() within the time expected after calling InitSDK(). Check your game
4869
- * session log to see why ProcessReady() was not called in time.</p>
4878
+ * <code>ProcessReady()</code> within the time expected (5 minutes) after
4879
+ * calling <code>InitSDK()</code>. Check your game session log to see why
4880
+ * <code>ProcessReady()</code> was not called in time.</p>
4870
4881
  * </li>
4871
4882
  * <li>
4872
4883
  * <p>SERVER_PROCESS_CRASHED -- The server process exited without calling
4873
- * ProcessEnding(). Check your game session log to see why ProcessEnding() was not
4874
- * called.</p>
4884
+ * <code>ProcessEnding()</code>. Check your game session log to see why
4885
+ * <code>ProcessEnding()</code> was not called.</p>
4875
4886
  * </li>
4876
4887
  * <li>
4877
4888
  * <p>SERVER_PROCESS_TERMINATED_UNHEALTHY -- The server process did not report a
@@ -4881,13 +4892,14 @@ export interface Event {
4881
4892
  * </li>
4882
4893
  * <li>
4883
4894
  * <p>SERVER_PROCESS_FORCE_TERMINATED -- The server process did not exit cleanly
4884
- * after OnProcessTerminate() was sent within the time expected. Check your game
4885
- * session log to see why termination took longer than expected.</p>
4895
+ * within the time expected after <code>OnProcessTerminate()</code> was sent. Check
4896
+ * your game session log to see why termination took longer than expected.</p>
4886
4897
  * </li>
4887
4898
  * <li>
4888
4899
  * <p>SERVER_PROCESS_PROCESS_EXIT_TIMEOUT -- The server process did not exit cleanly
4889
- * within the time expected after calling ProcessEnding(). Check your game session
4890
- * log to see why termination took longer than expected.</p>
4900
+ * within the time expected (30 seconds) after calling
4901
+ * <code>ProcessEnding()</code>. Check your game session log to see why termination
4902
+ * took longer than expected.</p>
4891
4903
  * </li>
4892
4904
  * </ul>
4893
4905
  * <p>
@@ -4896,8 +4908,9 @@ export interface Event {
4896
4908
  * <ul>
4897
4909
  * <li>
4898
4910
  * <p>GAME_SESSION_ACTIVATION_TIMEOUT -- GameSession failed to activate within the
4899
- * expected time. Check your game session log to see why ActivateGameSession() took
4900
- * longer to complete than expected.</p>
4911
+ * expected time. Check your game session log to see why
4912
+ * <code>ActivateGameSession()</code> took longer to complete than
4913
+ * expected.</p>
4901
4914
  * </li>
4902
4915
  * </ul>
4903
4916
  * <p>
@@ -5600,7 +5613,8 @@ export interface GameSessionPlacement {
5600
5613
  Status?: GameSessionPlacementState;
5601
5614
  /**
5602
5615
  * @public
5603
- * <p>A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession">Start a Game Session</a>).</p>
5616
+ * <p>A set of key-value pairs that can store custom data in a game session.
5617
+ * For example: <code>\{"Key": "difficulty", "Value": "novice"\}</code>.</p>
5604
5618
  */
5605
5619
  GameProperties?: GameProperty[];
5606
5620
  /**
@@ -8054,7 +8068,8 @@ export interface StartGameSessionPlacementInput {
8054
8068
  GameSessionQueueName: string | undefined;
8055
8069
  /**
8056
8070
  * @public
8057
- * <p>A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession">Start a Game Session</a>).</p>
8071
+ * <p>A set of key-value pairs that can store custom data in a game session.
8072
+ * For example: <code>\{"Key": "difficulty", "Value": "novice"\}</code>.</p>
8058
8073
  */
8059
8074
  GameProperties?: GameProperty[];
8060
8075
  /**
@@ -271,6 +271,17 @@ export interface UpdateGameSessionInput {
271
271
  * </ul>
272
272
  */
273
273
  ProtectionPolicy?: ProtectionPolicy;
274
+ /**
275
+ * @public
276
+ * <p>A set of key-value pairs that can store custom data in a game session.
277
+ * For example: <code>\{"Key": "difficulty", "Value": "novice"\}</code>.
278
+ * You can use this parameter to modify game properties in an active game session.
279
+ * This action adds new properties and modifies existing properties.
280
+ * There is no way to delete properties.
281
+ * For an example, see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-client-api.html#game-properties-update">Update the value of a game property</a>.
282
+ * </p>
283
+ */
284
+ GameProperties?: GameProperty[];
274
285
  }
275
286
  /**
276
287
  * @public
@@ -419,7 +430,8 @@ export interface UpdateMatchmakingConfigurationInput {
419
430
  CustomEventData?: string;
420
431
  /**
421
432
  * @public
422
- * <p>A set of custom properties for a game session, formatted as key:value pairs. These properties are passed to a game server process with a request to start a new game session (see <a href="https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-startsession">Start a Game Session</a>). This information is added to the new <code>GameSession</code> object that is
433
+ * <p>A set of key-value pairs that can store custom data in a game session.
434
+ * For example: <code>\{"Key": "difficulty", "Value": "novice"\}</code>. This information is added to the new <code>GameSession</code> object that is
423
435
  * created for a successful match. This parameter is not used if <code>FlexMatchMode</code>
424
436
  * is set to <code>STANDALONE</code>.</p>
425
437
  */
@@ -74,6 +74,7 @@ export interface UpdateGameSessionInput {
74
74
  Name?: string;
75
75
  PlayerSessionCreationPolicy?: PlayerSessionCreationPolicy;
76
76
  ProtectionPolicy?: ProtectionPolicy;
77
+ GameProperties?: GameProperty[];
77
78
  }
78
79
  export interface UpdateGameSessionOutput {
79
80
  GameSession?: GameSession;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-gamelift",
3
3
  "description": "AWS SDK for JavaScript Gamelift Client for Node.js, Browser and React Native",
4
- "version": "3.470.0",
4
+ "version": "3.474.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.470.0",
24
- "@aws-sdk/core": "3.468.0",
25
- "@aws-sdk/credential-provider-node": "3.470.0",
23
+ "@aws-sdk/client-sts": "3.474.0",
24
+ "@aws-sdk/core": "3.474.0",
25
+ "@aws-sdk/credential-provider-node": "3.474.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",