Class: Aws::ElasticBeanstalk::Types::MaxCountRule

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/types.rb

Overview

Note:

When making an API call, you may pass MaxCountRule data as a hash:

{
  enabled: false, # required
  max_count: 1,
  delete_source_from_s3: false,
}

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#delete_source_from_s3Boolean

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

Returns:

  • (Boolean)


3637
3638
3639
3640
3641
3642
3643
# File 'gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/types.rb', line 3637

class MaxCountRule < Struct.new(
  :enabled,
  :max_count,
  :delete_source_from_s3)
  SENSITIVE = []
  include Aws::Structure
end

#enabledBoolean

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

Returns:

  • (Boolean)


3637
3638
3639
3640
3641
3642
3643
# File 'gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/types.rb', line 3637

class MaxCountRule < Struct.new(
  :enabled,
  :max_count,
  :delete_source_from_s3)
  SENSITIVE = []
  include Aws::Structure
end

#max_countInteger

Specify the maximum number of application versions to retain.

Returns:

  • (Integer)


3637
3638
3639
3640
3641
3642
3643
# File 'gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/types.rb', line 3637

class MaxCountRule < Struct.new(
  :enabled,
  :max_count,
  :delete_source_from_s3)
  SENSITIVE = []
  include Aws::Structure
end