amazonka-elasticsearch-2.0: Amazon Elasticsearch Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
FromJSON Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

ToJSON 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 #

Read Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Show Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

NFData Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Methods

rnf :: Duration -> () #

Eq Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Hashable Duration Source # 
Instance details

Defined in Amazonka.ElasticSearch.Types.Duration

Methods

hashWithSalt :: Int -> Duration -> Int #

hash :: Duration -> Int #

type Rep Duration Source # 
Instance details

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.