| 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.EC2.Types.PortRange
Description
Synopsis
- data PortRange = PortRange' {}
- newPortRange :: PortRange
- portRange_from :: Lens' PortRange (Maybe Int)
- portRange_to :: Lens' PortRange (Maybe Int)
Documentation
Describes a range of ports.
See: newPortRange smart constructor.
Constructors
| PortRange' | |
Instances
| ToQuery PortRange Source # | |
Defined in Amazonka.EC2.Types.PortRange Methods toQuery :: PortRange -> QueryString # | |
| FromXML PortRange Source # | |
| Generic PortRange Source # | |
| Read PortRange Source # | |
| Show PortRange Source # | |
| NFData PortRange Source # | |
Defined in Amazonka.EC2.Types.PortRange | |
| Eq PortRange Source # | |
| Hashable PortRange Source # | |
Defined in Amazonka.EC2.Types.PortRange | |
| type Rep PortRange Source # | |
Defined in Amazonka.EC2.Types.PortRange type Rep PortRange = D1 ('MetaData "PortRange" "Amazonka.EC2.Types.PortRange" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "PortRange'" 'PrefixI 'True) (S1 ('MetaSel ('Just "from") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "to") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) | |
newPortRange :: PortRange 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:from:PortRange', portRange_from - The first port in the range.
$sel:to:PortRange', portRange_to - The last port in the range.