Class: Aws::EFS::Types::PutLifecycleConfigurationRequest

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

{
  file_system_id: "FileSystemId", # required
  lifecycle_policies: [ # required
    {
      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
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#file_system_idString

The ID of the file system for which you are creating the LifecycleConfiguration object (String).

Returns:

  • (String)


2459
2460
2461
2462
2463
2464
# File 'gems/aws-sdk-efs/lib/aws-sdk-efs/types.rb', line 2459

class PutLifecycleConfigurationRequest < Struct.new(
  :file_system_id,
  :lifecycle_policies)
  SENSITIVE = []
  include Aws::Structure
end

#lifecycle_policiesArray<Types::LifecyclePolicy>

An array of LifecyclePolicy objects that define the file system's LifecycleConfiguration object. A LifecycleConfiguration object informs EFS lifecycle management and EFS Intelligent-Tiering of the following:

  • When to move files in the file system from primary storage to the IA storage class.

  • When to move files that are in IA storage to primary storage.

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. See the example requests in the following section for more information.

Returns:



2459
2460
2461
2462
2463
2464
# File 'gems/aws-sdk-efs/lib/aws-sdk-efs/types.rb', line 2459

class PutLifecycleConfigurationRequest < Struct.new(
  :file_system_id,
  :lifecycle_policies)
  SENSITIVE = []
  include Aws::Structure
end