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::EC2::NetworkAclEntry PortRange Describes a range of ports. ## Syntax To declare this entity in your CloudFormation template, use the following syntax: ### JSON ``` { "[From](#cfn-ec2-networkaclentry-portrange-from)" : {{Integer}}, "[To](#cfn-ec2-networkaclentry-portrange-to)" : {{Integer}} } ``` ### YAML ``` [From](#cfn-ec2-networkaclentry-portrange-from): {{Integer}} [To](#cfn-ec2-networkaclentry-portrange-to): {{Integer}} ``` ## Properties `From` The first port in the range. Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter. *Required*: No *Type*: Integer *Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) `To` The last port in the range. Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter. *Required*: No *Type*: Integer *Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)