amazonka-rbin-2.0: Amazon Recycle Bin 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.RBin.Types.RetentionPeriod

Description

 
Synopsis

Documentation

data RetentionPeriod Source #

Information about the retention period for which the retention rule is to retain resources.

See: newRetentionPeriod smart constructor.

Constructors

RetentionPeriod' 

Fields

Instances

Instances details
FromJSON RetentionPeriod Source # 
Instance details

Defined in Amazonka.RBin.Types.RetentionPeriod

ToJSON RetentionPeriod Source # 
Instance details

Defined in Amazonka.RBin.Types.RetentionPeriod

Generic RetentionPeriod Source # 
Instance details

Defined in Amazonka.RBin.Types.RetentionPeriod

Associated Types

type Rep RetentionPeriod :: Type -> Type #

Read RetentionPeriod Source # 
Instance details

Defined in Amazonka.RBin.Types.RetentionPeriod

Show RetentionPeriod Source # 
Instance details

Defined in Amazonka.RBin.Types.RetentionPeriod

NFData RetentionPeriod Source # 
Instance details

Defined in Amazonka.RBin.Types.RetentionPeriod

Methods

rnf :: RetentionPeriod -> () #

Eq RetentionPeriod Source # 
Instance details

Defined in Amazonka.RBin.Types.RetentionPeriod

Hashable RetentionPeriod Source # 
Instance details

Defined in Amazonka.RBin.Types.RetentionPeriod

type Rep RetentionPeriod Source # 
Instance details

Defined in Amazonka.RBin.Types.RetentionPeriod

type Rep RetentionPeriod = D1 ('MetaData "RetentionPeriod" "Amazonka.RBin.Types.RetentionPeriod" "amazonka-rbin-2.0-683M7qr6PFTBsVsY3OL2az" 'False) (C1 ('MetaCons "RetentionPeriod'" 'PrefixI 'True) (S1 ('MetaSel ('Just "retentionPeriodValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "retentionPeriodUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RetentionPeriodUnit)))

newRetentionPeriod 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:retentionPeriodValue:RetentionPeriod', retentionPeriod_retentionPeriodValue - The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.

$sel:retentionPeriodUnit:RetentionPeriod', retentionPeriod_retentionPeriodUnit - The unit of time in which the retention period is measured. Currently, only DAYS is supported.

retentionPeriod_retentionPeriodValue :: Lens' RetentionPeriod Natural Source #

The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.

retentionPeriod_retentionPeriodUnit :: Lens' RetentionPeriod RetentionPeriodUnit Source #

The unit of time in which the retention period is measured. Currently, only DAYS is supported.