

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::NetworkFirewall::RuleGroup PortSet
<a name="aws-properties-networkfirewall-rulegroup-portset"></a>

A set of port ranges for use in the rules in a rule group. 

## Syntax
<a name="aws-properties-networkfirewall-rulegroup-portset-syntax"></a>

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

### JSON
<a name="aws-properties-networkfirewall-rulegroup-portset-syntax.json"></a>

```
{
  "[Definition](#cfn-networkfirewall-rulegroup-portset-definition)" : [ String, ... ]
}
```

### YAML
<a name="aws-properties-networkfirewall-rulegroup-portset-syntax.yaml"></a>

```
  [Definition](#cfn-networkfirewall-rulegroup-portset-definition): 
    - String
```

## Properties
<a name="aws-properties-networkfirewall-rulegroup-portset-properties"></a>

`Definition`  <a name="cfn-networkfirewall-rulegroup-portset-definition"></a>
The set of port ranges.   
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)