

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

# AWS::GameLift::ContainerFleet ConnectionPortRange
<a name="aws-properties-gamelift-containerfleet-connectionportrange"></a>

The set of port numbers to open on each instance in a container fleet. Connection ports are used by inbound traffic to connect with processes that are running in containers on the fleet.

The port range must not overlap with the Amazon GameLift Servers reserved port range `4092-4191`. This range is reserved for internal Amazon GameLift Servers services.

## Syntax
<a name="aws-properties-gamelift-containerfleet-connectionportrange-syntax"></a>

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

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

```
{
  "[FromPort](#cfn-gamelift-containerfleet-connectionportrange-fromport)" : {{Integer}},
  "[ToPort](#cfn-gamelift-containerfleet-connectionportrange-toport)" : {{Integer}}
}
```

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

```
  [FromPort](#cfn-gamelift-containerfleet-connectionportrange-fromport): {{Integer}}
  [ToPort](#cfn-gamelift-containerfleet-connectionportrange-toport): {{Integer}}
```

## Properties
<a name="aws-properties-gamelift-containerfleet-connectionportrange-properties"></a>

`FromPort`  <a name="cfn-gamelift-containerfleet-connectionportrange-fromport"></a>
Starting value for the port range.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `1`  
*Maximum*: `60000`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ToPort`  <a name="cfn-gamelift-containerfleet-connectionportrange-toport"></a>
Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater than `FromPort`.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `1`  
*Maximum*: `60000`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)