alicloud_nas_lifecycle_policy

Provides a Network Attached Storage (NAS) Lifecycle Policy resource.

For information about Network Attached Storage (NAS) Lifecycle Policy and how to use it, see What is Lifecycle Policy.

Example Usage

Basic Usage

resource "alicloud_nas_file_system" "example" {
  protocol_type = "NFS"
  storage_type  = "Capacity"
}

resource "alicloud_nas_lifecycle_policy" "example" {
  file_system_id        = alicloud_nas_file_system.example.id
  lifecycle_policy_name = "terraform-example"
  lifecycle_rule_name   = "DEFAULT_ATIME_14"
  storage_type          = "InfrequentAccess"
  paths                 = ["/"]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Network Attached Storage (NAS) Lifecycle Policy can be imported using the id, e.g.

$ terraform import alicloud_nas_lifecycle_policy.example <file_system_id>:<lifecycle_policy_name>