amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.PortRange

Description

 
Synopsis

Documentation

data PortRange Source #

Describes a range of ports.

See: newPortRange smart constructor.

Constructors

PortRange' 

Fields

Instances

Instances details
ToQuery PortRange Source # 
Instance details

Defined in Amazonka.EC2.Types.PortRange

FromXML PortRange Source # 
Instance details

Defined in Amazonka.EC2.Types.PortRange

Generic PortRange Source # 
Instance details

Defined in Amazonka.EC2.Types.PortRange

Associated Types

type Rep PortRange :: Type -> Type #

Read PortRange Source # 
Instance details

Defined in Amazonka.EC2.Types.PortRange

Show PortRange Source # 
Instance details

Defined in Amazonka.EC2.Types.PortRange

NFData PortRange Source # 
Instance details

Defined in Amazonka.EC2.Types.PortRange

Methods

rnf :: PortRange -> () #

Eq PortRange Source # 
Instance details

Defined in Amazonka.EC2.Types.PortRange

Hashable PortRange Source # 
Instance details

Defined in Amazonka.EC2.Types.PortRange

type Rep PortRange Source # 
Instance details

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.

portRange_from :: Lens' PortRange (Maybe Int) Source #

The first port in the range.

portRange_to :: Lens' PortRange (Maybe Int) Source #

The last port in the range.