GameSessionQueueArgs

data class GameSessionQueueArgs(val customEventData: Output<String>? = null, val destinations: Output<List<String>>? = null, val name: Output<String>? = null, val notificationTarget: Output<String>? = null, val playerLatencyPolicies: Output<List<GameSessionQueuePlayerLatencyPolicyArgs>>? = null, val tags: Output<Map<String, String>>? = null, val timeoutInSeconds: Output<Int>? = null) : ConvertibleToJava<GameSessionQueueArgs>

Provides an GameLift Game Session Queue resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.gamelift.GameSessionQueue("test", {
name: "example-session-queue",
destinations: [
usWest2Fleet.arn,
euCentral1Fleet.arn,
],
notificationTarget: gameSessionQueueNotifications.arn,
playerLatencyPolicies: [
{
maximumIndividualPlayerLatencyMilliseconds: 100,
policyDurationSeconds: 5,
},
{
maximumIndividualPlayerLatencyMilliseconds: 200,
},
],
timeoutInSeconds: 60,
});
import pulumi
import pulumi_aws as aws
test = aws.gamelift.GameSessionQueue("test",
name="example-session-queue",
destinations=[
us_west2_fleet["arn"],
eu_central1_fleet["arn"],
],
notification_target=game_session_queue_notifications["arn"],
player_latency_policies=[
{
"maximum_individual_player_latency_milliseconds": 100,
"policy_duration_seconds": 5,
},
{
"maximum_individual_player_latency_milliseconds": 200,
},
],
timeout_in_seconds=60)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.GameLift.GameSessionQueue("test", new()
{
Name = "example-session-queue",
Destinations = new[]
{
usWest2Fleet.Arn,
euCentral1Fleet.Arn,
},
NotificationTarget = gameSessionQueueNotifications.Arn,
PlayerLatencyPolicies = new[]
{
new Aws.GameLift.Inputs.GameSessionQueuePlayerLatencyPolicyArgs
{
MaximumIndividualPlayerLatencyMilliseconds = 100,
PolicyDurationSeconds = 5,
},
new Aws.GameLift.Inputs.GameSessionQueuePlayerLatencyPolicyArgs
{
MaximumIndividualPlayerLatencyMilliseconds = 200,
},
},
TimeoutInSeconds = 60,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/gamelift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gamelift.NewGameSessionQueue(ctx, "test", &gamelift.GameSessionQueueArgs{
Name: pulumi.String("example-session-queue"),
Destinations: pulumi.StringArray{
usWest2Fleet.Arn,
euCentral1Fleet.Arn,
},
NotificationTarget: pulumi.Any(gameSessionQueueNotifications.Arn),
PlayerLatencyPolicies: gamelift.GameSessionQueuePlayerLatencyPolicyArray{
&gamelift.GameSessionQueuePlayerLatencyPolicyArgs{
MaximumIndividualPlayerLatencyMilliseconds: pulumi.Int(100),
PolicyDurationSeconds: pulumi.Int(5),
},
&gamelift.GameSessionQueuePlayerLatencyPolicyArgs{
MaximumIndividualPlayerLatencyMilliseconds: pulumi.Int(200),
},
},
TimeoutInSeconds: pulumi.Int(60),
})
if err != nil {
return err
}
return nil
})
}
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 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 test = new GameSessionQueue("test", GameSessionQueueArgs.builder()
.name("example-session-queue")
.destinations(
usWest2Fleet.arn(),
euCentral1Fleet.arn())
.notificationTarget(gameSessionQueueNotifications.arn())
.playerLatencyPolicies(
GameSessionQueuePlayerLatencyPolicyArgs.builder()
.maximumIndividualPlayerLatencyMilliseconds(100)
.policyDurationSeconds(5)
.build(),
GameSessionQueuePlayerLatencyPolicyArgs.builder()
.maximumIndividualPlayerLatencyMilliseconds(200)
.build())
.timeoutInSeconds(60)
.build());
}
}
resources:
test:
type: aws:gamelift:GameSessionQueue
properties:
name: example-session-queue
destinations:
- ${usWest2Fleet.arn}
- ${euCentral1Fleet.arn}
notificationTarget: ${gameSessionQueueNotifications.arn}
playerLatencyPolicies:
- maximumIndividualPlayerLatencyMilliseconds: 100
policyDurationSeconds: 5
- maximumIndividualPlayerLatencyMilliseconds: 200
timeoutInSeconds: 60

Import

Using pulumi import, import GameLift Game Session Queues using their name. For example:

$ pulumi import aws:gamelift/gameSessionQueue:GameSessionQueue example example

Constructors

Link copied to clipboard
constructor(customEventData: Output<String>? = null, destinations: Output<List<String>>? = null, name: Output<String>? = null, notificationTarget: Output<String>? = null, playerLatencyPolicies: Output<List<GameSessionQueuePlayerLatencyPolicyArgs>>? = null, tags: Output<Map<String, String>>? = null, timeoutInSeconds: Output<Int>? = null)

Properties

Link copied to clipboard
val customEventData: Output<String>? = null

Information to be added to all events that are related to this game session queue.

Link copied to clipboard
val destinations: Output<List<String>>? = null

List of fleet/alias ARNs used by session queue for placing game sessions.

Link copied to clipboard
val name: Output<String>? = null

Name of the session queue.

Link copied to clipboard
val notificationTarget: Output<String>? = null

An SNS topic ARN that is set up to receive game session placement notifications.

Link copied to clipboard

One or more policies used to choose fleet based on player latency. See below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val timeoutInSeconds: Output<Int>? = null

Maximum time a game session request can remain in the queue.

Functions

Link copied to clipboard
open override fun toJava(): GameSessionQueueArgs