libZSservicesZSamazonka-iot-analyticsZSamazonka-iot-analytics
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.IoTAnalytics.Types.RetentionPeriod

Description

 
Synopsis

Documentation

data RetentionPeriod Source #

How long, in days, message data is kept.

See: newRetentionPeriod smart constructor.

Constructors

RetentionPeriod' 

Fields

Instances

Instances details
Eq RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.RetentionPeriod

Read RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.RetentionPeriod

Show RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.RetentionPeriod

Generic RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.RetentionPeriod

Associated Types

type Rep RetentionPeriod :: Type -> Type #

NFData RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.RetentionPeriod

Methods

rnf :: RetentionPeriod -> () #

Hashable RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.RetentionPeriod

ToJSON RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.RetentionPeriod

FromJSON RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.RetentionPeriod

type Rep RetentionPeriod Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.RetentionPeriod

type Rep RetentionPeriod = D1 ('MetaData "RetentionPeriod" "Amazonka.IoTAnalytics.Types.RetentionPeriod" "libZSservicesZSamazonka-iot-analyticsZSamazonka-iot-analytics" 'False) (C1 ('MetaCons "RetentionPeriod'" 'PrefixI 'True) (S1 ('MetaSel ('Just "unlimited") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "numberOfDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))

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:unlimited:RetentionPeriod', retentionPeriod_unlimited - If true, message data is kept indefinitely.

$sel:numberOfDays:RetentionPeriod', retentionPeriod_numberOfDays - The number of days that message data is kept. The unlimited parameter must be false.

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

If true, message data is kept indefinitely.

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

The number of days that message data is kept. The unlimited parameter must be false.