

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::GameLift::GameSessionQueue
<a name="aws-resource-gamelift-gamesessionqueue"></a>

The `AWS::GameLift::GameSessionQueue` resource creates a placement queue that processes requests for new game sessions. A queue uses FleetIQ algorithms to determine the best placement locations and find an available game server, then prompts the game server to start a new game session. Queues can have destinations (GameLift fleets or aliases), which determine where the queue can place new game sessions. A queue can have destinations with varied fleet type (Spot and On-Demand), instance type, and AWS Region. 

## Syntax
<a name="aws-resource-gamelift-gamesessionqueue-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-gamelift-gamesessionqueue-syntax.json"></a>

```
{
  "Type" : "AWS::GameLift::GameSessionQueue",
  "Properties" : {
      "[CustomEventData](#cfn-gamelift-gamesessionqueue-customeventdata)" : String,
      "[Destinations](#cfn-gamelift-gamesessionqueue-destinations)" : [ GameSessionQueueDestination, ... ],
      "[FilterConfiguration](#cfn-gamelift-gamesessionqueue-filterconfiguration)" : FilterConfiguration,
      "[Name](#cfn-gamelift-gamesessionqueue-name)" : String,
      "[NotificationTarget](#cfn-gamelift-gamesessionqueue-notificationtarget)" : String,
      "[PlayerLatencyPolicies](#cfn-gamelift-gamesessionqueue-playerlatencypolicies)" : [ PlayerLatencyPolicy, ... ],
      "[PriorityConfiguration](#cfn-gamelift-gamesessionqueue-priorityconfiguration)" : PriorityConfiguration,
      "[Tags](#cfn-gamelift-gamesessionqueue-tags)" : [ Tag, ... ],
      "[TimeoutInSeconds](#cfn-gamelift-gamesessionqueue-timeoutinseconds)" : Integer
    }
}
```

### YAML
<a name="aws-resource-gamelift-gamesessionqueue-syntax.yaml"></a>

```
Type: AWS::GameLift::GameSessionQueue
Properties:
  [CustomEventData](#cfn-gamelift-gamesessionqueue-customeventdata): String
  [Destinations](#cfn-gamelift-gamesessionqueue-destinations): 
    - GameSessionQueueDestination
  [FilterConfiguration](#cfn-gamelift-gamesessionqueue-filterconfiguration): 
    FilterConfiguration
  [Name](#cfn-gamelift-gamesessionqueue-name): String
  [NotificationTarget](#cfn-gamelift-gamesessionqueue-notificationtarget): String
  [PlayerLatencyPolicies](#cfn-gamelift-gamesessionqueue-playerlatencypolicies): 
    - PlayerLatencyPolicy
  [PriorityConfiguration](#cfn-gamelift-gamesessionqueue-priorityconfiguration): 
    PriorityConfiguration
  [Tags](#cfn-gamelift-gamesessionqueue-tags): 
    - Tag
  [TimeoutInSeconds](#cfn-gamelift-gamesessionqueue-timeoutinseconds): Integer
```

## Properties
<a name="aws-resource-gamelift-gamesessionqueue-properties"></a>

`CustomEventData`  <a name="cfn-gamelift-gamesessionqueue-customeventdata"></a>
Information to be added to all events that are related to this game session queue.  
*Required*: No  
*Type*: String  
*Pattern*: `[\s\S]*`  
*Minimum*: `1`  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Destinations`  <a name="cfn-gamelift-gamesessionqueue-destinations"></a>
A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue. Destinations are identified by either a fleet ARN or a fleet alias ARN, and are listed in order of placement preference.  
*Required*: No  
*Type*: Array of [GameSessionQueueDestination](aws-properties-gamelift-gamesessionqueue-gamesessionqueuedestination.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`FilterConfiguration`  <a name="cfn-gamelift-gamesessionqueue-filterconfiguration"></a>
A list of locations where a queue is allowed to place new game sessions. Locations are specified in the form of AWS Region codes, such as `us-west-2`. If this parameter is not set, game sessions can be placed in any queue location.   
*Required*: No  
*Type*: [FilterConfiguration](aws-properties-gamelift-gamesessionqueue-filterconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Name`  <a name="cfn-gamelift-gamesessionqueue-name"></a>
A descriptive label that is associated with game session queue. Queue names must be unique within each Region.  
*Required*: Yes  
*Type*: String  
*Pattern*: `[a-zA-Z0-9-]+`  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`NotificationTarget`  <a name="cfn-gamelift-gamesessionqueue-notificationtarget"></a>
An SNS topic ARN that is set up to receive game session placement notifications. See [ Setting up notifications for game session placement](https://docs.aws.amazon.com/gamelift/latest/developerguide/queue-notification.html).  
*Required*: No  
*Type*: String  
*Pattern*: `[a-zA-Z0-9:_-]*(\.fifo)?`  
*Minimum*: `1`  
*Maximum*: `300`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PlayerLatencyPolicies`  <a name="cfn-gamelift-gamesessionqueue-playerlatencypolicies"></a>
A set of policies that enforce a sliding cap on player latency when processing game sessions placement requests. Use multiple policies to gradually relax the cap over time if Amazon GameLift Servers can't make a placement. Policies are evaluated in order starting with the lowest maximum latency value.  
*Required*: No  
*Type*: Array of [PlayerLatencyPolicy](aws-properties-gamelift-gamesessionqueue-playerlatencypolicy.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PriorityConfiguration`  <a name="cfn-gamelift-gamesessionqueue-priorityconfiguration"></a>
Custom settings to use when prioritizing destinations and locations for game session placements. This configuration replaces the FleetIQ default prioritization process. Priority types that are not explicitly named will be automatically applied at the end of the prioritization process.   
*Required*: No  
*Type*: [PriorityConfiguration](aws-properties-gamelift-gamesessionqueue-priorityconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Tags`  <a name="cfn-gamelift-gamesessionqueue-tags"></a>
A list of labels to assign to the new game session queue resource. Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see [ Tagging AWS Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General Reference*. Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-gamelift-gamesessionqueue-tag.md)  
*Maximum*: `200`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TimeoutInSeconds`  <a name="cfn-gamelift-gamesessionqueue-timeoutinseconds"></a>
The maximum time, in seconds, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to a `TIMED_OUT` status. If you don't specify a request timeout, the queue uses a default value.  
The minimum value is 10 and the maximum value is 600.
*Required*: No  
*Type*: Integer  
*Minimum*: `0`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-gamelift-gamesessionqueue-return-values"></a>

### Ref
<a name="aws-resource-gamelift-gamesessionqueue-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the name of the game session queue, which is unique within each Region.

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-gamelift-gamesessionqueue-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the `Fn::GetAtt` intrinsic function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-gamelift-gamesessionqueue-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
 The unique Amazon Resource Name (ARN) for the `GameSessionQueue`.

`Name`  <a name="Name-fn::getatt"></a>
A descriptive label that is associated with a game session queue. Names are unique within each Region.

## Examples
<a name="aws-resource-gamelift-gamesessionqueue--examples"></a>

### Create a Game Session Queue
<a name="aws-resource-gamelift-gamesessionqueue--examples--Create_a_Game_Session_Queue"></a>

The following example creates a GameLift game session queue named `MyGameSessionQueue`. The queue is configured with two destinations, one using a fleet ID and one using an alias ID. The queue has a latency policy.

#### JSON
<a name="aws-resource-gamelift-gamesessionqueue--examples--Create_a_Game_Session_Queue--json"></a>

```
{
    "Resources": {
        "Queue": {
            "Type": "AWS::GameLift::GameSessionQueue",
            "Properties": {
                "Name": "MyGameSessionQueue",
                "TimeoutInSeconds": 60,
                "NotificationTarget": "arn:aws:sns:us-west-2:111122223333:My_Placement_SNS_Topic",
                "Destinations": [
                    {
                        "DestinationArn": "arn:aws:gamelift:us-west-2:012345678912:fleet/fleet-id"
                    },
                    {
                        "DestinationArn": "arn:aws:gamelift:us-west-2:012345678912:alias/alias-id"
                    }
                ],
                "PlayerLatencyPolicies": [
                    {
                        "MaximumIndividualPlayerLatencyMilliseconds": 1000,
                        "PolicyDurationSeconds": 60
                    }
                ],
                "PriorityConfiguration": {
                    "LocationOrder": [
                        "us-west-2",
                        "us-east-1"
                    ],
                    "PriorityOrder": [
                        "COST",
                        "LATENCY",
                        "LOCATION",
                        "DESTINATION"
                    ]
                },
                "FilterConfiguration": {
                    "AllowedLocations": [
                        "us-east-1",
                        "us-west-2"
                    ]
                }
            }
        }
    }
}
```

#### YAML
<a name="aws-resource-gamelift-gamesessionqueue--examples--Create_a_Game_Session_Queue--yaml"></a>

```
Resources:
  Queue:
    Type: "AWS::GameLift::GameSessionQueue"
    Properties:
      Name: "MyGameSessionQueue"
      TimeoutInSeconds: 60
      NotificationTarget: "arn:aws:sns:us-west-2:111122223333:My_Placement_SNS_Topic"
      Destinations:
        # DestinationArn can be either an Alias arn or Fleet arn that you own
        - DestinationArn: "arn:aws:gamelift:us-west-2:012345678912:fleet/fleet-id"
        - DestinationArn: "arn:aws:gamelift:us-west-2:012345678912:alias/alias-id"
      PlayerLatencyPolicies:
        - MaximumIndividualPlayerLatencyMilliseconds: 1000
          PolicyDurationSeconds: 60
          PriorityConfiguration:
          LocationOrder: 
          - 'us-west-2'
          - 'us-east-1'
          PriorityOrder: 
          - 'COST'
          - 'LATENCY'
          - 'LOCATION'
          - 'DESTINATION'
      FilterConfiguration:
        AllowedLocations:
          - 'us-east-1'
          - 'us-west-2'
```

## See also
<a name="aws-resource-gamelift-gamesessionqueue--seealso"></a>
+ [ Create GameLift resources Using Amazon CloudFront](https://docs.aws.amazon.com/gamelift/latest/developerguide/resources-cloudformation.html) in the *Amazon GameLift Developer Guide*
+ [ Setting up GameLift queues for game session placement](https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-intro.html) in the *Amazon GameLift Developer Guide*
+ [CreateGameSessionQueue](https://docs.aws.amazon.com/gamelift/latest/apireference/API_CreateGameSessionQueue.html) in the *Amazon GameLift API Reference*

# AWS::GameLift::GameSessionQueue FilterConfiguration
<a name="aws-properties-gamelift-gamesessionqueue-filterconfiguration"></a>

A list of fleet locations where a game session queue can place new game sessions. You can use a filter to temporarily turn off placements for specific locations. For queues that have multi-location fleets, you can use a filter configuration allow placement with some, but not all of these locations.

## Syntax
<a name="aws-properties-gamelift-gamesessionqueue-filterconfiguration-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-gamelift-gamesessionqueue-filterconfiguration-syntax.json"></a>

```
{
  "[AllowedLocations](#cfn-gamelift-gamesessionqueue-filterconfiguration-allowedlocations)" : [ String, ... ]
}
```

### YAML
<a name="aws-properties-gamelift-gamesessionqueue-filterconfiguration-syntax.yaml"></a>

```
  [AllowedLocations](#cfn-gamelift-gamesessionqueue-filterconfiguration-allowedlocations): 
    - String
```

## Properties
<a name="aws-properties-gamelift-gamesessionqueue-filterconfiguration-properties"></a>

`AllowedLocations`  <a name="cfn-gamelift-gamesessionqueue-filterconfiguration-allowedlocations"></a>
 A list of locations to allow game session placement in, in the form of AWS Region codes such as `us-west-2`.   
*Required*: No  
*Type*: Array of String  
*Minimum*: `1 | 1`  
*Maximum*: `64 | 100`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::GameLift::GameSessionQueue GameSessionQueueDestination
<a name="aws-properties-gamelift-gamesessionqueue-gamesessionqueuedestination"></a>

A fleet or alias designated in a game session queue. Queues fulfill requests for new game sessions by placing a new game session on any of the queue's destinations. 

## Syntax
<a name="aws-properties-gamelift-gamesessionqueue-gamesessionqueuedestination-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-gamelift-gamesessionqueue-gamesessionqueuedestination-syntax.json"></a>

```
{
  "[DestinationArn](#cfn-gamelift-gamesessionqueue-gamesessionqueuedestination-destinationarn)" : String
}
```

### YAML
<a name="aws-properties-gamelift-gamesessionqueue-gamesessionqueuedestination-syntax.yaml"></a>

```
  [DestinationArn](#cfn-gamelift-gamesessionqueue-gamesessionqueuedestination-destinationarn): String
```

## Properties
<a name="aws-properties-gamelift-gamesessionqueue-gamesessionqueuedestination-properties"></a>

`DestinationArn`  <a name="cfn-gamelift-gamesessionqueue-gamesessionqueuedestination-destinationarn"></a>
The Amazon Resource Name (ARN) that is assigned to fleet or fleet alias. ARNs, which include a fleet ID or alias ID and a Region name, provide a unique identifier across all Regions.  
*Required*: No  
*Type*: String  
*Pattern*: `[a-zA-Z0-9:/-]+`  
*Minimum*: `1`  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::GameLift::GameSessionQueue PlayerLatencyPolicy
<a name="aws-properties-gamelift-gamesessionqueue-playerlatencypolicy"></a>

The queue setting that determines the highest latency allowed for individual players when placing a game session. When a latency policy is in force, a game session cannot be placed with any fleet in a Region where a player reports latency higher than the cap. Latency policies are only enforced when the placement request contains player latency information.

## Syntax
<a name="aws-properties-gamelift-gamesessionqueue-playerlatencypolicy-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-gamelift-gamesessionqueue-playerlatencypolicy-syntax.json"></a>

```
{
  "[MaximumIndividualPlayerLatencyMilliseconds](#cfn-gamelift-gamesessionqueue-playerlatencypolicy-maximumindividualplayerlatencymilliseconds)" : Integer,
  "[PolicyDurationSeconds](#cfn-gamelift-gamesessionqueue-playerlatencypolicy-policydurationseconds)" : Integer
}
```

### YAML
<a name="aws-properties-gamelift-gamesessionqueue-playerlatencypolicy-syntax.yaml"></a>

```
  [MaximumIndividualPlayerLatencyMilliseconds](#cfn-gamelift-gamesessionqueue-playerlatencypolicy-maximumindividualplayerlatencymilliseconds): Integer
  [PolicyDurationSeconds](#cfn-gamelift-gamesessionqueue-playerlatencypolicy-policydurationseconds): Integer
```

## Properties
<a name="aws-properties-gamelift-gamesessionqueue-playerlatencypolicy-properties"></a>

`MaximumIndividualPlayerLatencyMilliseconds`  <a name="cfn-gamelift-gamesessionqueue-playerlatencypolicy-maximumindividualplayerlatencymilliseconds"></a>
The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.  
*Required*: No  
*Type*: Integer  
*Minimum*: `0`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PolicyDurationSeconds`  <a name="cfn-gamelift-gamesessionqueue-playerlatencypolicy-policydurationseconds"></a>
The length of time, in seconds, that the policy is enforced while placing a new game session. A null value for this property means that the policy is enforced until the queue times out.  
*Required*: No  
*Type*: Integer  
*Minimum*: `0`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## See also
<a name="aws-properties-gamelift-gamesessionqueue-playerlatencypolicy--seealso"></a>
+ [ Create GameLift resources using Amazon CloudFront](https://docs.aws.amazon.com/gamelift/latest/developerguide/resources-cloudformation.html) in the *Amazon GameLift Developer Guide*
+ [ Create a queue](https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-creating.html) in the *Amazon GameLift Developer Guide*
+ [PlayerLatencyPolicy](https://docs.aws.amazon.com/gamelift/latest/apireference/API_PlayerLatencyPolicy.html) in the *Amazon GameLift API Reference*

# AWS::GameLift::GameSessionQueue PriorityConfiguration
<a name="aws-properties-gamelift-gamesessionqueue-priorityconfiguration"></a>

Custom prioritization settings for use by a game session queue when placing new game sessions with available game servers. When defined, this configuration replaces the default FleetIQ prioritization process, which is as follows:
+ If player latency data is included in a game session request, destinations and locations are prioritized first based on lowest average latency (1), then on lowest hosting cost (2), then on destination list order (3), and finally on location (alphabetical) (4). This approach ensures that the queue's top priority is to place game sessions where average player latency is lowest, and--if latency is the same--where the hosting cost is less, etc.
+ If player latency data is not included, destinations and locations are prioritized first on destination list order (1), and then on location (alphabetical) (2). This approach ensures that the queue's top priority is to place game sessions on the first destination fleet listed. If that fleet has multiple locations, the game session is placed on the first location (when listed alphabetically).

Changing the priority order will affect how game sessions are placed.

## Syntax
<a name="aws-properties-gamelift-gamesessionqueue-priorityconfiguration-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-gamelift-gamesessionqueue-priorityconfiguration-syntax.json"></a>

```
{
  "[LocationOrder](#cfn-gamelift-gamesessionqueue-priorityconfiguration-locationorder)" : [ String, ... ],
  "[PriorityOrder](#cfn-gamelift-gamesessionqueue-priorityconfiguration-priorityorder)" : [ String, ... ]
}
```

### YAML
<a name="aws-properties-gamelift-gamesessionqueue-priorityconfiguration-syntax.yaml"></a>

```
  [LocationOrder](#cfn-gamelift-gamesessionqueue-priorityconfiguration-locationorder): 
    - String
  [PriorityOrder](#cfn-gamelift-gamesessionqueue-priorityconfiguration-priorityorder): 
    - String
```

## Properties
<a name="aws-properties-gamelift-gamesessionqueue-priorityconfiguration-properties"></a>

`LocationOrder`  <a name="cfn-gamelift-gamesessionqueue-priorityconfiguration-locationorder"></a>
The prioritization order to use for fleet locations, when the `PriorityOrder` property includes `LOCATION`. Locations can include AWS Region codes (such as `us-west-2`), local zones, and custom locations (for Anywhere fleets). Each location must be listed only once. For details, see [Amazon GameLift Servers service locations.](https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-regions.html)  
*Required*: No  
*Type*: Array of String  
*Minimum*: `1 | 1`  
*Maximum*: `64 | 100`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PriorityOrder`  <a name="cfn-gamelift-gamesessionqueue-priorityconfiguration-priorityorder"></a>
A custom sequence to use when prioritizing where to place new game sessions. Each priority type is listed once.  
+ `LATENCY` -- Amazon GameLift Servers prioritizes locations where the average player latency is lowest. Player latency data is provided in each game session placement request.
+ `COST` -- Amazon GameLift Servers prioritizes queue destinations with the lowest current hosting costs. Cost is evaluated based on the destination's location, instance type, and fleet type (Spot or On-Demand).
+ `DESTINATION` -- Amazon GameLift Servers prioritizes based on the list order of destinations in the queue configuration.
+ `LOCATION` -- Amazon GameLift Servers prioritizes based on the provided order of locations, as defined in `LocationOrder`. 
*Required*: No  
*Type*: Array of String  
*Allowed values*: `LATENCY | COST | DESTINATION | LOCATION`  
*Minimum*: `1`  
*Maximum*: `4`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::GameLift::GameSessionQueue Tag
<a name="aws-properties-gamelift-gamesessionqueue-tag"></a>

A label that you can assign to a Amazon GameLift Servers resource. 

 **Learn more** 

[Tagging AWS Resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General Reference*

 [AWS Tagging Strategies](https://aws.amazon.com/answers/account-management/aws-tagging-strategies/) 

 **Related actions** 

 [All APIs by task](https://docs.aws.amazon.com/gamelift/latest/developerguide/reference-awssdk.html#reference-awssdk-resources-fleets) 

## Syntax
<a name="aws-properties-gamelift-gamesessionqueue-tag-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-gamelift-gamesessionqueue-tag-syntax.json"></a>

```
{
  "[Key](#cfn-gamelift-gamesessionqueue-tag-key)" : String,
  "[Value](#cfn-gamelift-gamesessionqueue-tag-value)" : String
}
```

### YAML
<a name="aws-properties-gamelift-gamesessionqueue-tag-syntax.yaml"></a>

```
  [Key](#cfn-gamelift-gamesessionqueue-tag-key): String
  [Value](#cfn-gamelift-gamesessionqueue-tag-value): String
```

## Properties
<a name="aws-properties-gamelift-gamesessionqueue-tag-properties"></a>

`Key`  <a name="cfn-gamelift-gamesessionqueue-tag-key"></a>
The key for a developer-defined key value pair for tagging an AWS resource.   
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-gamelift-gamesessionqueue-tag-value"></a>
The value for a developer-defined key value pair for tagging an AWS resource.   
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)