| 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.AppMesh.Types.Duration
Description
Synopsis
- data Duration = Duration' {}
- newDuration :: Duration
- duration_unit :: Lens' Duration (Maybe DurationUnit)
- duration_value :: Lens' Duration (Maybe Natural)
Documentation
An object that represents a duration of time.
See: newDuration smart constructor.
Constructors
| Duration' | |
Instances
| FromJSON Duration Source # | |
| ToJSON Duration Source # | |
Defined in Amazonka.AppMesh.Types.Duration | |
| Generic Duration Source # | |
| Read Duration Source # | |
| Show Duration Source # | |
| NFData Duration Source # | |
Defined in Amazonka.AppMesh.Types.Duration | |
| Eq Duration Source # | |
| Hashable Duration Source # | |
Defined in Amazonka.AppMesh.Types.Duration | |
| type Rep Duration Source # | |
Defined in Amazonka.AppMesh.Types.Duration type Rep Duration = D1 ('MetaData "Duration" "Amazonka.AppMesh.Types.Duration" "amazonka-appmesh-2.0-GBIHUgXnP8s1LEJyvNe1ca" 'False) (C1 ('MetaCons "Duration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DurationUnit)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) | |
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:unit:Duration', duration_unit - A unit of time.
$sel:value:Duration', duration_value - A number of time units.
duration_unit :: Lens' Duration (Maybe DurationUnit) Source #
A unit of time.