AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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
show all
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

Instance Attribute Details

#from_portInteger

The lower limit of the port range. This must be less than or equal to the ToPort specification.

Returns:

  • (Integer)

    The lower limit of the port range.

#to_portInteger

The upper limit of the port range. This must be greater than or equal to the FromPort specification.

Returns:

  • (Integer)

    The upper limit of the port range.