amazonka-opensearch-2.0: Amazon OpenSearch 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.OpenSearch.Types.Duration

Description

 
Synopsis

Documentation

data Duration Source #

The duration of a maintenance schedule. For more information, see Auto-Tune for Amazon OpenSearch Service.

See: newDuration smart constructor.

Constructors

Duration' 

Fields

  • unit :: Maybe TimeUnit

    The unit of measurement for the duration of a maintenance schedule.

  • value :: Maybe Natural

    Integer to specify the value of a maintenance schedule duration.

Instances

Instances details
FromJSON Duration Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.Duration

ToJSON Duration Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.Duration

Generic Duration Source # 
Instance details

Defined in Amazonka.OpenSearch.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.OpenSearch.Types.Duration

Show Duration Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.Duration

NFData Duration Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.Duration

Methods

rnf :: Duration -> () #

Eq Duration Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.Duration

Hashable Duration Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.Duration

Methods

hashWithSalt :: Int -> Duration -> Int #

hash :: Duration -> Int #

type Rep Duration Source # 
Instance details

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.

duration_unit :: Lens' Duration (Maybe TimeUnit) Source #

The unit of measurement for the duration of a maintenance schedule.

duration_value :: Lens' Duration (Maybe Natural) Source #

Integer to specify the value of a maintenance schedule duration.