1 Answer
- Newest
- Most votes
- Most comments
1
Yes, you can filter on multiple game session properties. See https://docs.aws.amazon.com/gamelift/latest/apireference/API_SearchGameSessions.html and specifically the example "Search game sessions by custom game properties" near the bottom of the page.
Here is the sample request from the example:
{
"FleetId": "fleet-9999ffff-88ee-77dd-66cc-5555bbbb44aa",
"Location": "us-west-2",
"FilterExpression": "gameSessionProperties.gameMode = 'Ffa' AND gameSessionProperties.gameMap = 'Suzuka' OR gameSessionProperties.gameMap = 'Silverstone'",
"SortExpression": "gameSessionProperties.difficulty ASC"
"Limit": 2
}
CLI syntax:
aws gamelift search-game-sessions --fleet-id "9999ffff-88ee-77dd-66cc-5555bbbb44aa" --filter-expression "gameSessionProperties.gameMode = 'Ffa' AND gameSessionProperties.gameMap = 'Suzuka' OR gameSessionProperties.gameMap = 'Silverstone'" --sort-expression "gameSessionProperties.difficulty DESC"
answered a month ago
Relevant content
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 6 months ago