You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::NetworkFirewall::Types::PortRange
- Inherits:
-
Struct
- Object
- Struct
- Aws::NetworkFirewall::Types::PortRange
- Defined in:
- (unknown)
Overview
Note:
When passing PortRange as input to an Aws::Client method, you can use a vanilla Hash:
{
from_port: 1, # required
to_port: 1, # required
}
A single port range specification. This is used for source and destination port ranges in the stateless rule MatchAttributes, SourcePorts
, and DestinationPorts
settings.
Instance Attribute Summary collapse
-
#from_port ⇒ Integer
The lower limit of the port range.
-
#to_port ⇒ Integer
The upper limit of the port range.
Instance Attribute Details
#from_port ⇒ Integer
The lower limit of the port range. This must be less than or equal to
the ToPort
specification.
#to_port ⇒ Integer
The upper limit of the port range. This must be greater than or equal to
the FromPort
specification.