libZSservicesZSamazonka-shieldZSamazonka-shield
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.Shield.Types.TimeRange

Description

 
Synopsis

Documentation

data TimeRange Source #

The time range.

See: newTimeRange smart constructor.

Constructors

TimeRange' 

Fields

Instances

Instances details
Eq TimeRange Source # 
Instance details

Defined in Amazonka.Shield.Types.TimeRange

Read TimeRange Source # 
Instance details

Defined in Amazonka.Shield.Types.TimeRange

Show TimeRange Source # 
Instance details

Defined in Amazonka.Shield.Types.TimeRange

Generic TimeRange Source # 
Instance details

Defined in Amazonka.Shield.Types.TimeRange

Associated Types

type Rep TimeRange :: Type -> Type #

NFData TimeRange Source # 
Instance details

Defined in Amazonka.Shield.Types.TimeRange

Methods

rnf :: TimeRange -> () #

Hashable TimeRange Source # 
Instance details

Defined in Amazonka.Shield.Types.TimeRange

ToJSON TimeRange Source # 
Instance details

Defined in Amazonka.Shield.Types.TimeRange

FromJSON TimeRange Source # 
Instance details

Defined in Amazonka.Shield.Types.TimeRange

type Rep TimeRange Source # 
Instance details

Defined in Amazonka.Shield.Types.TimeRange

type Rep TimeRange = D1 ('MetaData "TimeRange" "Amazonka.Shield.Types.TimeRange" "libZSservicesZSamazonka-shieldZSamazonka-shield" 'False) (C1 ('MetaCons "TimeRange'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromInclusive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "toExclusive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))

newTimeRange :: TimeRange Source #

Create a value of TimeRange 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:fromInclusive:TimeRange', timeRange_fromInclusive - The start time, in Unix time in seconds. For more information see timestamp.

$sel:toExclusive:TimeRange', timeRange_toExclusive - The end time, in Unix time in seconds. For more information see timestamp.

timeRange_fromInclusive :: Lens' TimeRange (Maybe UTCTime) Source #

The start time, in Unix time in seconds. For more information see timestamp.

timeRange_toExclusive :: Lens' TimeRange (Maybe UTCTime) Source #

The end time, in Unix time in seconds. For more information see timestamp.