Class: Aws::EFS::Types::LifecyclePolicy

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-efs/types.rb

Overview

Describes a policy used by lifecycle management that specifies when to transition files into and out of storage classes. For more information, see [Managing file system storage].

<note markdown=“1”> When using the ‘put-lifecycle-configuration` CLI command or the `PutLifecycleConfiguration` API action, Amazon EFS requires that each `LifecyclePolicy` object have only a single transition. This means that in a request body, `LifecyclePolicies` must be structured as an array of `LifecyclePolicy` objects, one object for each transition. For more information, see the request examples in PutLifecycleConfiguration.

</note>

[1]: docs.aws.amazon.com/efs/latest/ug/lifecycle-management-efs.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#transition_to_archiveString

The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Archive storage. Metadata operations such as listing the contents of a directory don’t count as file access events.

Returns:

  • (String)


1897
1898
1899
1900
1901
1902
1903
# File 'lib/aws-sdk-efs/types.rb', line 1897

class LifecyclePolicy < Struct.new(
  :transition_to_ia,
  :transition_to_primary_storage_class,
  :transition_to_archive)
  SENSITIVE = []
  include Aws::Structure
end

#transition_to_iaString

The number of days after files were last accessed in primary storage (the Standard storage class) at which to move them to Infrequent Access (IA) storage. Metadata operations such as listing the contents of a directory don’t count as file access events.

Returns:

  • (String)


1897
1898
1899
1900
1901
1902
1903
# File 'lib/aws-sdk-efs/types.rb', line 1897

class LifecyclePolicy < Struct.new(
  :transition_to_ia,
  :transition_to_primary_storage_class,
  :transition_to_archive)
  SENSITIVE = []
  include Aws::Structure
end

#transition_to_primary_storage_classString

Whether to move files back to primary (Standard) storage after they are accessed in IA or Archive storage. Metadata operations such as listing the contents of a directory don’t count as file access events.

Returns:

  • (String)


1897
1898
1899
1900
1901
1902
1903
# File 'lib/aws-sdk-efs/types.rb', line 1897

class LifecyclePolicy < Struct.new(
  :transition_to_ia,
  :transition_to_primary_storage_class,
  :transition_to_archive)
  SENSITIVE = []
  include Aws::Structure
end