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.CrossRegionCopyDeprecateRule

Description

 
Synopsis

Documentation

data CrossRegionCopyDeprecateRule Source #

[AMI policies only] Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.

See: newCrossRegionCopyDeprecateRule smart constructor.

Constructors

CrossRegionCopyDeprecateRule' 

Fields

  • interval :: Maybe Natural

    The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.

  • intervalUnit :: Maybe RetentionIntervalUnitValues

    The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3 and IntervalUnit=MONTHS.

Instances

Instances details
FromJSON CrossRegionCopyDeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyDeprecateRule

ToJSON CrossRegionCopyDeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyDeprecateRule

Generic CrossRegionCopyDeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyDeprecateRule

Associated Types

type Rep CrossRegionCopyDeprecateRule :: Type -> Type #

Read CrossRegionCopyDeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyDeprecateRule

Show CrossRegionCopyDeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyDeprecateRule

NFData CrossRegionCopyDeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyDeprecateRule

Eq CrossRegionCopyDeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyDeprecateRule

Hashable CrossRegionCopyDeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyDeprecateRule

type Rep CrossRegionCopyDeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.CrossRegionCopyDeprecateRule

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

newCrossRegionCopyDeprecateRule :: CrossRegionCopyDeprecateRule Source #

Create a value of CrossRegionCopyDeprecateRule 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:CrossRegionCopyDeprecateRule', crossRegionCopyDeprecateRule_interval - The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.

$sel:intervalUnit:CrossRegionCopyDeprecateRule', crossRegionCopyDeprecateRule_intervalUnit - The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3 and IntervalUnit=MONTHS.

crossRegionCopyDeprecateRule_interval :: Lens' CrossRegionCopyDeprecateRule (Maybe Natural) Source #

The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.

crossRegionCopyDeprecateRule_intervalUnit :: Lens' CrossRegionCopyDeprecateRule (Maybe RetentionIntervalUnitValues) Source #

The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3 and IntervalUnit=MONTHS.