amazonka-iotsitewise-2.0: Amazon IoT SiteWise 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.IoTSiteWise.Types.RetentionPeriod

Description

 
Synopsis

Documentation

data RetentionPeriod Source #

How many days your data is kept in the hot tier. By default, your data is kept indefinitely in the hot tier.

See: newRetentionPeriod smart constructor.

Constructors

RetentionPeriod' 

Fields

  • numberOfDays :: Maybe Natural

    The number of days that your data is kept.

    If you specified a value for this parameter, the unlimited parameter must be false.

  • unlimited :: Maybe Bool

    If true, your data is kept indefinitely.

    If configured to true, you must not specify a value for the numberOfDays parameter.

Instances

Instances details
FromJSON RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.RetentionPeriod

ToJSON RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.RetentionPeriod

Generic RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.RetentionPeriod

Associated Types

type Rep RetentionPeriod :: Type -> Type #

Read RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.RetentionPeriod

Show RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.RetentionPeriod

NFData RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.RetentionPeriod

Methods

rnf :: RetentionPeriod -> () #

Eq RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.RetentionPeriod

Hashable RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.RetentionPeriod

type Rep RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.RetentionPeriod

type Rep RetentionPeriod = D1 ('MetaData "RetentionPeriod" "Amazonka.IoTSiteWise.Types.RetentionPeriod" "amazonka-iotsitewise-2.0-AK8rDlpQ5oPJsrLUUxJgY" 'False) (C1 ('MetaCons "RetentionPeriod'" 'PrefixI 'True) (S1 ('MetaSel ('Just "numberOfDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "unlimited") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))

newRetentionPeriod :: RetentionPeriod Source #

Create a value of RetentionPeriod 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:numberOfDays:RetentionPeriod', retentionPeriod_numberOfDays - The number of days that your data is kept.

If you specified a value for this parameter, the unlimited parameter must be false.

$sel:unlimited:RetentionPeriod', retentionPeriod_unlimited - If true, your data is kept indefinitely.

If configured to true, you must not specify a value for the numberOfDays parameter.

retentionPeriod_numberOfDays :: Lens' RetentionPeriod (Maybe Natural) Source #

The number of days that your data is kept.

If you specified a value for this parameter, the unlimited parameter must be false.

retentionPeriod_unlimited :: Lens' RetentionPeriod (Maybe Bool) Source #

If true, your data is kept indefinitely.

If configured to true, you must not specify a value for the numberOfDays parameter.