amazonka-dlm-2.0: Amazon Data Lifecycle Manager 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.DLM.Types.CrossRegionCopyRetainRule

Description

 
Synopsis

Documentation

data CrossRegionCopyRetainRule Source #

Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies. After the retention period expires, the cross-Region copy is deleted.

See: newCrossRegionCopyRetainRule smart constructor.

Constructors

CrossRegionCopyRetainRule' 

Fields

  • interval :: Maybe Natural

    The amount of time to retain a cross-Region snapshot or AMI copy. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.

  • intervalUnit :: Maybe RetentionIntervalUnitValues

    The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify Interval=3 and IntervalUnit=MONTHS.

Instances

Instances details
FromJSON CrossRegionCopyRetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRetainRule

ToJSON CrossRegionCopyRetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRetainRule

Generic CrossRegionCopyRetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRetainRule

Associated Types

type Rep CrossRegionCopyRetainRule :: Type -> Type #

Read CrossRegionCopyRetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRetainRule

Show CrossRegionCopyRetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRetainRule

NFData CrossRegionCopyRetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRetainRule

Eq CrossRegionCopyRetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRetainRule

Hashable CrossRegionCopyRetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRetainRule

type Rep CrossRegionCopyRetainRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyRetainRule

type Rep CrossRegionCopyRetainRule = D1 ('MetaData "CrossRegionCopyRetainRule" "Amazonka.DLM.Types.CrossRegionCopyRetainRule" "amazonka-dlm-2.0-KlPkRzsIoa0q62N0Ereji" 'False) (C1 ('MetaCons "CrossRegionCopyRetainRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "interval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "intervalUnit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetentionIntervalUnitValues))))

newCrossRegionCopyRetainRule :: CrossRegionCopyRetainRule Source #

Create a value of CrossRegionCopyRetainRule 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:interval:CrossRegionCopyRetainRule', crossRegionCopyRetainRule_interval - The amount of time to retain a cross-Region snapshot or AMI copy. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.

$sel:intervalUnit:CrossRegionCopyRetainRule', crossRegionCopyRetainRule_intervalUnit - The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify Interval=3 and IntervalUnit=MONTHS.

crossRegionCopyRetainRule_interval :: Lens' CrossRegionCopyRetainRule (Maybe Natural) Source #

The amount of time to retain a cross-Region snapshot or AMI copy. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.

crossRegionCopyRetainRule_intervalUnit :: Lens' CrossRegionCopyRetainRule (Maybe RetentionIntervalUnitValues) Source #

The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify Interval=3 and IntervalUnit=MONTHS.