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
The duration of a maintenance schedule. For more information, see Auto-Tune for Amazon OpenSearch Service.
See: newDuration
smart constructor.
Instances
FromJSON Duration Source # | |
ToJSON Duration Source # | |
Defined in Amazonka.OpenSearch.Types.Duration | |
Generic Duration Source # | |
Read Duration Source # | |
Show Duration Source # | |
NFData Duration Source # | |
Defined in Amazonka.OpenSearch.Types.Duration | |
Eq Duration Source # | |
Hashable Duration Source # | |
Defined in Amazonka.OpenSearch.Types.Duration | |
type Rep Duration Source # | |
Defined in Amazonka.OpenSearch.Types.Duration type Rep Duration = D1 ('MetaData "Duration" "Amazonka.OpenSearch.Types.Duration" "amazonka-opensearch-2.0-GNoaWlqGXH04P8GBIHM78L" '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
- The unit of measurement for the duration of a maintenance schedule.
$sel:value:Duration'
, duration_value
- Integer to specify the value of a maintenance schedule duration.