| 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 |
Amazonka.OpenSearch.Types.Duration
Description
Documentation
The maintenance schedule duration: duration value and duration unit. See Auto-Tune for Amazon OpenSearch Service for more information.
See: newDuration smart constructor.
Constructors
| Duration' | |
Fields
| |
Instances
| Eq Duration Source # | |
| Read Duration Source # | |
| Show Duration Source # | |
| Generic Duration Source # | |
| NFData Duration Source # | |
Defined in Amazonka.OpenSearch.Types.Duration | |
| Hashable Duration Source # | |
Defined in Amazonka.OpenSearch.Types.Duration | |
| ToJSON Duration Source # | |
Defined in Amazonka.OpenSearch.Types.Duration | |
| FromJSON Duration Source # | |
| type Rep Duration Source # | |
Defined in Amazonka.OpenSearch.Types.Duration type Rep Duration = D1 ('MetaData "Duration" "Amazonka.OpenSearch.Types.Duration" "libZSservicesZSamazonka-opensearchZSamazonka-opensearch" '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 TimeUnit)))) | |
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 - Integer to specify the value of a maintenance schedule duration. See
Auto-Tune for Amazon OpenSearch Service
for more information.
$sel:unit:Duration', duration_unit - The unit of a maintenance schedule duration. Valid value is HOURS. See
Auto-Tune for Amazon OpenSearch Service
for more information.
duration_value :: Lens' Duration (Maybe Natural) Source #
Integer to specify the value of a maintenance schedule duration. See Auto-Tune for Amazon OpenSearch Service for more information.
duration_unit :: Lens' Duration (Maybe TimeUnit) Source #
The unit of a maintenance schedule duration. Valid value is HOURS. See Auto-Tune for Amazon OpenSearch Service for more information.