libZSservicesZSamazonka-elasticsearchZSamazonka-elasticsearch
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ElasticSearch.Types.Duration

Description

 
Synopsis

Documentation

data Duration Source #

Specifies maintenance schedule duration: duration value and duration unit. See the Developer Guide for more information.

See: newDuration smart constructor.

Constructors

Duration' 

Fields

Instances

Instances details
Eq Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Read Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Show Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Generic Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Associated Types

type Rep Duration :: Type -> Type #

Methods

from :: Duration -> Rep Duration x #

to :: Rep Duration x -> Duration #

NFData Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Methods

rnf :: Duration -> () #

Hashable Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Methods

hashWithSalt :: Int -> Duration -> Int #

hash :: Duration -> Int #

ToJSON Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

FromJSON Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

type Rep Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

type Rep Duration = D1 ('MetaData "Duration" "Amazonka.ElasticSearch.Types.Duration" "libZSservicesZSamazonka-elasticsearchZSamazonka-elasticsearch" '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 the Developer Guide for more information.

$sel:unit:Duration', duration_unit - 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.

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.