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 |
Documentation
Specifies maintenance schedule duration: duration value and duration unit. See the Developer Guide for more information.
See: newDuration
smart constructor.
Duration' | |
|
Instances
FromJSON Duration Source # | |
ToJSON Duration Source # | |
Defined in Amazonka.ElasticSearch.Types.Duration | |
Generic Duration Source # | |
Read Duration Source # | |
Show Duration Source # | |
NFData Duration Source # | |
Defined in Amazonka.ElasticSearch.Types.Duration | |
Eq Duration Source # | |
Hashable Duration Source # | |
Defined in Amazonka.ElasticSearch.Types.Duration | |
type Rep Duration Source # | |
Defined in Amazonka.ElasticSearch.Types.Duration type Rep Duration = D1 ('MetaData "Duration" "Amazonka.ElasticSearch.Types.Duration" "amazonka-elasticsearch-2.0-BmZjovliTfgJWgrJ3fCf5z" 'False) (C1 ('MetaCons "Duration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimeUnit)) :*: 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
- Specifies the unit of a maintenance schedule duration. Valid value is
HOURS. See the
Developer Guide
for more information.
$sel:value:Duration'
, duration_value
- Integer to specify the value of a maintenance schedule duration. See the
Developer Guide
for more information.
duration_unit :: Lens' Duration (Maybe TimeUnit) Source #
Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.
duration_value :: Lens' Duration (Maybe Natural) Source #
Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.