libZSservicesZSamazonka-elasticbeanstalkZSamazonka-elasticbeanstalk
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.ElasticBeanstalk.Types.MaxCountRule

Description

 
Synopsis

Documentation

data MaxCountRule Source #

A lifecycle rule that deletes the oldest application version when the maximum count is exceeded.

See: newMaxCountRule smart constructor.

Constructors

MaxCountRule' 

Fields

  • maxCount :: Maybe Int

    Specify the maximum number of application versions to retain.

  • deleteSourceFromS3 :: Maybe Bool

    Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.

  • enabled :: Bool

    Specify true to apply the rule, or false to disable it.

Instances

Instances details
Eq MaxCountRule Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.Types.MaxCountRule

Read MaxCountRule Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.Types.MaxCountRule

Show MaxCountRule Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.Types.MaxCountRule

Generic MaxCountRule Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.Types.MaxCountRule

Associated Types

type Rep MaxCountRule :: Type -> Type #

NFData MaxCountRule Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.Types.MaxCountRule

Methods

rnf :: MaxCountRule -> () #

Hashable MaxCountRule Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.Types.MaxCountRule

ToQuery MaxCountRule Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.Types.MaxCountRule

FromXML MaxCountRule Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.Types.MaxCountRule

type Rep MaxCountRule Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.Types.MaxCountRule

type Rep MaxCountRule = D1 ('MetaData "MaxCountRule" "Amazonka.ElasticBeanstalk.Types.MaxCountRule" "libZSservicesZSamazonka-elasticbeanstalkZSamazonka-elasticbeanstalk" 'False) (C1 ('MetaCons "MaxCountRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "deleteSourceFromS3") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

newMaxCountRule Source #

Create a value of MaxCountRule 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:maxCount:MaxCountRule', maxCountRule_maxCount - Specify the maximum number of application versions to retain.

$sel:deleteSourceFromS3:MaxCountRule', maxCountRule_deleteSourceFromS3 - Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.

$sel:enabled:MaxCountRule', maxCountRule_enabled - Specify true to apply the rule, or false to disable it.

maxCountRule_maxCount :: Lens' MaxCountRule (Maybe Int) Source #

Specify the maximum number of application versions to retain.

maxCountRule_deleteSourceFromS3 :: Lens' MaxCountRule (Maybe Bool) Source #

Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.

maxCountRule_enabled :: Lens' MaxCountRule Bool Source #

Specify true to apply the rule, or false to disable it.