

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

Settings that are available for use in the rules in the rule group where this is defined. 

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

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

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

```
{
  "[IPSets](#cfn-networkfirewall-rulegroup-rulevariables-ipsets)" : {{{{{Key}}: {{Value}}, ...}}},
  "[PortSets](#cfn-networkfirewall-rulegroup-rulevariables-portsets)" : {{{{{Key}}: {{Value}}, ...}}}
}
```

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

```
  [IPSets](#cfn-networkfirewall-rulegroup-rulevariables-ipsets): {{
    {{Key}}: {{Value}}}}
  [PortSets](#cfn-networkfirewall-rulegroup-rulevariables-portsets): {{
    {{Key}}: {{Value}}}}
```

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

`IPSets`  <a name="cfn-networkfirewall-rulegroup-rulevariables-ipsets"></a>
A list of IP addresses and address ranges, in CIDR notation.   
*Required*: No  
*Type*: Object of [IPSet](aws-properties-networkfirewall-rulegroup-ipset.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PortSets`  <a name="cfn-networkfirewall-rulegroup-rulevariables-portsets"></a>
A list of port ranges.   
*Required*: No  
*Type*: Object of [PortSet](aws-properties-networkfirewall-rulegroup-portset.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)