Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Duration = Duration' {}
- newDuration :: Duration
- duration_value :: Lens' Duration (Maybe Natural)
- duration_unit :: Lens' Duration (Maybe DurationUnit)
Documentation
An object that represents a duration of time.
See: newDuration
smart constructor.
Instances
Eq Duration Source # | |
Read Duration Source # | |
Show Duration Source # | |
Generic Duration Source # | |
NFData Duration Source # | |
Defined in Amazonka.AppMesh.Types.Duration | |
Hashable Duration Source # | |
Defined in Amazonka.AppMesh.Types.Duration | |
ToJSON Duration Source # | |
Defined in Amazonka.AppMesh.Types.Duration | |
FromJSON Duration Source # | |
type Rep Duration Source # | |
Defined in Amazonka.AppMesh.Types.Duration type Rep Duration = D1 ('MetaData "Duration" "Amazonka.AppMesh.Types.Duration" "libZSservicesZSamazonka-appmeshZSamazonka-appmesh" 'False) (C1 ('MetaCons "Duration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DurationUnit)))) |
newDuration :: Duration Source #
Create a value of Duration
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:value:Duration'
, duration_value
- A number of time units.
$sel:unit:Duration'
, duration_unit
- A unit of time.
duration_unit :: Lens' Duration (Maybe DurationUnit) Source #
A unit of time.