RecycleBin

Provides a Network Attached Storage (NAS) Recycle Bin resource. For information about Network Attached Storage (NAS) Recycle Bin and how to use it, see What is Recycle Bin.

NOTE: Available in v1.155.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
import com.pulumi.alicloud.nas.RecycleBin;
import com.pulumi.alicloud.nas.RecycleBinArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleFileSystem = new FileSystem("exampleFileSystem", FileSystemArgs.builder()
.protocolType("NFS")
.storageType("Performance")
.description(var_.name())
.encryptType("1")
.build());
var exampleRecycleBin = new RecycleBin("exampleRecycleBin", RecycleBinArgs.builder()
.fileSystemId(exampleFileSystem.id())
.reservedDays(3)
.build());
}
}

Import

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

$ pulumi import alicloud:nas/recycleBin:RecycleBin example <file_system_id>

Properties

Link copied to clipboard
val fileSystemId: Output<String>

The ID of the file system for which you want to enable the recycle bin feature.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reservedDays: Output<Int>

The period for which the files in the recycle bin are retained. Unit: days. Valid values: 1 to 180.

Link copied to clipboard
val status: Output<String>

The status of the recycle bin.

Link copied to clipboard
val urn: Output<String>