

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::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.

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

To declare this entity in your 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.aws.amazon.com/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.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)