Matchmaking Configuration
Provides a GameLift Alias resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.gamelift.GameSessionQueue;
import com.pulumi.aws.gamelift.GameSessionQueueArgs;
import com.pulumi.aws.gamelift.inputs.GameSessionQueuePlayerLatencyPolicyArgs;
import com.pulumi.aws.gamelift.MatchmakingRuleSet;
import com.pulumi.aws.gamelift.MatchmakingRuleSetArgs;
import com.pulumi.aws.gamelift.MatchmakingConfiguration;
import com.pulumi.aws.gamelift.MatchmakingConfigurationArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleGameSessionQueue = new GameSessionQueue("exampleGameSessionQueue", GameSessionQueueArgs.builder()
.destinations()
.playerLatencyPolicies(
GameSessionQueuePlayerLatencyPolicyArgs.builder()
.maximumIndividualPlayerLatencyMilliseconds(3)
.policyDurationSeconds(7)
.build(),
GameSessionQueuePlayerLatencyPolicyArgs.builder()
.maximumIndividualPlayerLatencyMilliseconds(10)
.build())
.timeoutInSeconds(25)
.build());
var exampleMatchmakingRuleSet = new MatchmakingRuleSet("exampleMatchmakingRuleSet", MatchmakingRuleSetArgs.builder()
.ruleSetBody(serializeJson(
jsonObject(
jsonProperty("name", "test"),
jsonProperty("ruleLanguageVersion", "1.0"),
jsonProperty("teams", jsonArray(jsonObject(
jsonProperty("name", "alpha"),
jsonProperty("minPlayers", 1),
jsonProperty("maxPlayers", 5)
)))
)))
.build());
var exampleMatchmakingConfiguration = new MatchmakingConfiguration("exampleMatchmakingConfiguration", MatchmakingConfigurationArgs.builder()
.acceptanceRequired(false)
.customEventData("pvp")
.gameSessionData("game_session_data")
.backfillMode("MANUAL")
.requestTimeoutSeconds(30)
.ruleSetName(aws_gamelift_matchmaking_rule_set.test().name())
.gameSessionQueueArns(aws_gamelift_game_session_queue.test().arn())
.tags(Map.of("key1", "value1"))
.build());
}
}
Import
GameLift Matchmaking Configurations can be imported using the ID, e.g.,
$ pulumi import aws:gamelift/matchmakingConfiguration:MatchmakingConfiguration example <matchmakingconfiguration-id>
Properties
Specifies if the match that was created with this configuration must be accepted by matched players.
The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.
The number of player slots in a match to keep open for future players.
The method used to backfill game sessions that are created with this matchmaking configuration.
The time when the Matchmaking Configuration was created.
Information to be added to all events related to this matchmaking configuration.
A human-readable description of the matchmaking configuration.
Indicates whether this matchmaking configuration is being used with GameLift hosting or as a standalone matchmaking solution.
One or more custom game properties. See below.
A set of custom game session properties.
The ARNs of the GameLift game session queue resources.
An SNS topic ARN that is set up to receive matchmaking notifications.
The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out.
A rule set names for the matchmaking rule set to use with this configuration.