| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.NetworkFirewall.Types.PortRange
Description
Synopsis
- data PortRange = PortRange' {}
- newPortRange :: Natural -> Natural -> PortRange
- portRange_fromPort :: Lens' PortRange Natural
- portRange_toPort :: Lens' PortRange Natural
Documentation
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' | |
Instances
| FromJSON PortRange Source # | |
| ToJSON PortRange Source # | |
Defined in Amazonka.NetworkFirewall.Types.PortRange | |
| Generic PortRange Source # | |
| Read PortRange Source # | |
| Show PortRange Source # | |
| NFData PortRange Source # | |
Defined in Amazonka.NetworkFirewall.Types.PortRange | |
| Eq PortRange Source # | |
| Hashable PortRange Source # | |
Defined in Amazonka.NetworkFirewall.Types.PortRange | |
| type Rep PortRange Source # | |
Defined in Amazonka.NetworkFirewall.Types.PortRange type Rep PortRange = D1 ('MetaData "PortRange" "Amazonka.NetworkFirewall.Types.PortRange" "amazonka-network-firewall-2.0-4y6HybZBSNcEwGPO5AYVfm" 'False) (C1 ('MetaCons "PortRange'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "toPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural))) | |
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.