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

Description

 
Synopsis

Documentation

data DeprecateRule Source #

[AMI policies only] Specifies an AMI deprecation rule for AMIs created by an AMI lifecycle policy.

For age-based schedules, you must specify Interval and IntervalUnit. For count-based schedules, you must specify Count.

See: newDeprecateRule smart constructor.

Constructors

DeprecateRule' 

Fields

  • count :: Maybe Natural

    If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.

  • interval :: Maybe Natural

    If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's 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.

Instances

Instances details
FromJSON DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

ToJSON DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

Generic DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

Associated Types

type Rep DeprecateRule :: Type -> Type #

Read DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

Show DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

NFData DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

Methods

rnf :: DeprecateRule -> () #

Eq DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

Hashable DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

type Rep DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

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

newDeprecateRule :: DeprecateRule Source #

Create a value of DeprecateRule 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:count:DeprecateRule', deprecateRule_count - If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.

$sel:interval:DeprecateRule', deprecateRule_interval - If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.

$sel:intervalUnit:DeprecateRule', deprecateRule_intervalUnit - The unit of time in which to measure the Interval.

deprecateRule_count :: Lens' DeprecateRule (Maybe Natural) Source #

If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate. The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.

deprecateRule_interval :: Lens' DeprecateRule (Maybe Natural) Source #

If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule. The period must be less than or equal to the schedule's retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.

deprecateRule_intervalUnit :: Lens' DeprecateRule (Maybe RetentionIntervalUnitValues) Source #

The unit of time in which to measure the Interval.