Class GameSessionQueue
Provides an Gamelift Game Session Queue resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var test = new Aws.GameLift.GameSessionQueue("test", new Aws.GameLift.GameSessionQueueArgs
{
Destinations =
{
aws_gamelift_fleet.Us_west_2_fleet.Arn,
aws_gamelift_fleet.Eu_central_1_fleet.Arn,
},
PlayerLatencyPolicies =
{
new Aws.GameLift.Inputs.GameSessionQueuePlayerLatencyPolicyArgs
{
MaximumIndividualPlayerLatencyMilliseconds = 100,
PolicyDurationSeconds = 5,
},
new Aws.GameLift.Inputs.GameSessionQueuePlayerLatencyPolicyArgs
{
MaximumIndividualPlayerLatencyMilliseconds = 200,
},
},
TimeoutInSeconds = 60,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.GameLift
Assembly: Pulumi.Aws.dll
Syntax
public class GameSessionQueue : CustomResource
Constructors
View SourceGameSessionQueue(String, GameSessionQueueArgs, CustomResourceOptions)
Create a GameSessionQueue resource with the given unique name, arguments, and options.
Declaration
public GameSessionQueue(string name, GameSessionQueueArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| GameSessionQueueArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
Game Session Queue ARN.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Destinations
List of fleet/alias ARNs used by session queue for placing game sessions.
Declaration
public Output<ImmutableArray<string>> Destinations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Name
Name of the session queue.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PlayerLatencyPolicies
One or more policies used to choose fleet based on player latency. See below.
Declaration
public Output<ImmutableArray<GameSessionQueuePlayerLatencyPolicy>> PlayerLatencyPolicies { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<GameSessionQueuePlayerLatencyPolicy>> |
Tags
Key-value map of resource tags
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
TimeoutInSeconds
Maximum time a game session request can remain in the queue.
Declaration
public Output<int?> TimeoutInSeconds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Methods
View SourceGet(String, Input<String>, GameSessionQueueState, CustomResourceOptions)
Get an existing GameSessionQueue resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static GameSessionQueue Get(string name, Input<string> id, GameSessionQueueState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| GameSessionQueueState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| GameSessionQueue |