You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::ElasticBeanstalk::Types::MaxAgeRule

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 MaxAgeRule data as a hash:

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

A lifecycle rule that deletes application versions after the specified number of days.

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)


3077
3078
3079
3080
3081
3082
# File 'gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/types.rb', line 3077

class MaxAgeRule < Struct.new(
  :enabled,
  :max_age_in_days,
  :delete_source_from_s3)
  include Aws::Structure
end

#enabledBoolean

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

Returns:

  • (Boolean)


3077
3078
3079
3080
3081
3082
# File 'gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/types.rb', line 3077

class MaxAgeRule < Struct.new(
  :enabled,
  :max_age_in_days,
  :delete_source_from_s3)
  include Aws::Structure
end

#max_age_in_daysInteger

Specify the number of days to retain an application versions.

Returns:

  • (Integer)


3077
3078
3079
3080
3081
3082
# File 'gems/aws-sdk-elasticbeanstalk/lib/aws-sdk-elasticbeanstalk/types.rb', line 3077

class MaxAgeRule < Struct.new(
  :enabled,
  :max_age_in_days,
  :delete_source_from_s3)
  include Aws::Structure
end