Class: Aws::Imagebuilder::Types::LifecyclePolicyDetailFilter

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

Overview

Defines filters that the lifecycle policy uses to determine impacted resource.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#retain_at_leastInteger

For age-based filters, this is the number of resources to keep on hand after the lifecycle DELETE action is applied. Impacted resources are only deleted if you have more than this number of resources. If you have fewer resources than this number, the impacted resource is not deleted.

Returns:

  • (Integer)


5948
5949
5950
5951
5952
5953
5954
5955
# File 'gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/types.rb', line 5948

class LifecyclePolicyDetailFilter < Struct.new(
  :type,
  :value,
  :unit,
  :retain_at_least)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

Filter resources based on either age or count.

Returns:

  • (String)


5948
5949
5950
5951
5952
5953
5954
5955
# File 'gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/types.rb', line 5948

class LifecyclePolicyDetailFilter < Struct.new(
  :type,
  :value,
  :unit,
  :retain_at_least)
  SENSITIVE = []
  include Aws::Structure
end

#unitString

Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules.

Returns:

  • (String)


5948
5949
5950
5951
5952
5953
5954
5955
# File 'gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/types.rb', line 5948

class LifecyclePolicyDetailFilter < Struct.new(
  :type,
  :value,
  :unit,
  :retain_at_least)
  SENSITIVE = []
  include Aws::Structure
end

#valueInteger

The number of units for the time period or for the count. For example, a value of 6 might refer to six months or six AMIs.

For count-based filters, this value represents the minimum number of resources to keep on hand. If you have fewer resources than this number, the resource is excluded from lifecycle actions.

Returns:

  • (Integer)


5948
5949
5950
5951
5952
5953
5954
5955
# File 'gems/aws-sdk-imagebuilder/lib/aws-sdk-imagebuilder/types.rb', line 5948

class LifecyclePolicyDetailFilter < Struct.new(
  :type,
  :value,
  :unit,
  :retain_at_least)
  SENSITIVE = []
  include Aws::Structure
end