libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.NetworkFirewall.Types.PortRange

Description

 
Synopsis

Documentation

data PortRange Source #

A single port range specification. This is used for source and destination port ranges in the stateless rule MatchAttributes, SourcePorts, and DestinationPorts settings.

See: newPortRange smart constructor.

Constructors

PortRange' 

Fields

  • fromPort :: Natural

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

  • toPort :: Natural

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

Instances

Instances details
Eq PortRange Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.PortRange

Read PortRange Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.PortRange

Show PortRange Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.PortRange

Generic PortRange Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.PortRange

Associated Types

type Rep PortRange :: Type -> Type #

NFData PortRange Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.PortRange

Methods

rnf :: PortRange -> () #

Hashable PortRange Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.PortRange

ToJSON PortRange Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.PortRange

FromJSON PortRange Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.PortRange

type Rep PortRange Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.PortRange

type Rep PortRange = D1 ('MetaData "PortRange" "Amazonka.NetworkFirewall.Types.PortRange" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "PortRange'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "toPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))

newPortRange Source #

Create a value of PortRange with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:fromPort:PortRange', portRange_fromPort - The lower limit of the port range. This must be less than or equal to the ToPort specification.

$sel:toPort:PortRange', portRange_toPort - The upper limit of the port range. This must be greater than or equal to the FromPort specification.

portRange_fromPort :: Lens' PortRange Natural Source #

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

portRange_toPort :: Lens' PortRange Natural Source #

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