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

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

Overview

Note:

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

{
  transition_to_ia: "AFTER_7_DAYS", # accepts AFTER_7_DAYS, AFTER_14_DAYS, AFTER_30_DAYS, AFTER_60_DAYS, AFTER_90_DAYS
  transition_to_primary_storage_class: "AFTER_1_ACCESS", # accepts AFTER_1_ACCESS
}

Describes a policy used by EFS lifecycle management and EFS Intelligent-Tiering that specifies when to transition files into and out of the file system's Infrequent Access (IA) storage class. For more information, see EFS Intelligentā€Tiering and EFS Lifecycle Management.

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, TransitionToIA, TransitionToPrimaryStorageClass. For more information, see the request examples in PutLifecycleConfiguration.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#transition_to_iaString

Describes the period of time that a file is not accessed, after which it transitions to IA storage. Metadata operations such as listing the contents of a directory don't count as file access events.

Returns:

  • (String)


1957
1958
1959
1960
1961
1962
# File 'gems/aws-sdk-efs/lib/aws-sdk-efs/types.rb', line 1957

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

#transition_to_primary_storage_classString

Describes when to transition a file from IA storage to primary storage. Metadata operations such as listing the contents of a directory don't count as file access events.

Returns:

  • (String)


1957
1958
1959
1960
1961
1962
# File 'gems/aws-sdk-efs/lib/aws-sdk-efs/types.rb', line 1957

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