libZSservicesZSamazonka-dlmZSamazonka-dlm
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.DLM.Types.DeprecateRule

Description

 
Synopsis

Documentation

data DeprecateRule Source #

Specifies an AMI deprecation rule for a schedule.

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
Eq DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

Read DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

Show 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 #

NFData DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

Methods

rnf :: DeprecateRule -> () #

Hashable DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

ToJSON DeprecateRule Source # 
Instance details

Defined in Amazonka.DLM.Types.DeprecateRule

FromJSON 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" "libZSservicesZSamazonka-dlmZSamazonka-dlm" '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.