FileSystemArgs

data class FileSystemArgs(val capacity: Output<Int>? = null, val description: Output<String>? = null, val encryptType: Output<Int>? = null, val fileSystemType: Output<String>? = null, val kmsKeyId: Output<String>? = null, val protocolType: Output<String>? = null, val storageType: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val vpcId: Output<String>? = null, val vswitchId: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<FileSystemArgs>

Provides a Nas File System resource. After activating NAS, you can create a file system and purchase a storage package for it in the NAS console. The NAS console also enables you to view the file system details and remove unnecessary file systems. For information about NAS file system and how to use it, see Manage file systems

NOTE: Available in v1.33.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.NasFunctions;
import com.pulumi.alicloud.nas.inputs.GetZonesArgs;
import com.pulumi.alicloud.nas.FileSystem;
import com.pulumi.alicloud.nas.FileSystemArgs;
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) {
final var example = NasFunctions.getZones(GetZonesArgs.builder()
.fileSystemType("standard")
.build());
var foo = new FileSystem("foo", FileSystemArgs.builder()
.protocolType("NFS")
.storageType("Performance")
.description("terraform-example")
.encryptType("1")
.zoneId(example.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()))
.build());
}
}

Import

Nas File System can be imported using the id, e.g.

$ pulumi import alicloud:nas/fileSystem:FileSystem foo 1337849c59

Constructors

Link copied to clipboard
fun FileSystemArgs(capacity: Output<Int>? = null, description: Output<String>? = null, encryptType: Output<Int>? = null, fileSystemType: Output<String>? = null, kmsKeyId: Output<String>? = null, protocolType: Output<String>? = null, storageType: Output<String>? = null, tags: Output<Map<String, Any>>? = null, vpcId: Output<String>? = null, vswitchId: Output<String>? = null, zoneId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): FileSystemArgs

Properties

Link copied to clipboard
val capacity: Output<Int>? = null

The capacity of the file system. The capacity is required when the file_system_type is extreme. Unit: gib; Note: The minimum value is 100.

Link copied to clipboard
val description: Output<String>? = null

The File System description.

Link copied to clipboard
val encryptType: Output<Int>? = null

Whether the file system is encrypted. Using kms service escrow key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt.

Link copied to clipboard
val fileSystemType: Output<String>? = null

the type of the file system. Valid values: standard (Default), extreme, cpfs.

Link copied to clipboard
val kmsKeyId: Output<String>? = null

The id of the KMS key. The kms_key_id is required when the encrypt_type is 2.

Link copied to clipboard
val protocolType: Output<String>? = null

The protocol type of the file system. Valid values: NFS, SMB (Available when the file_system_type is standard), cpfs (Available when the file_system_type is cpfs).

Link copied to clipboard
val storageType: Output<String>? = null

The storage type of the file System.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.

Link copied to clipboard
val vpcId: Output<String>? = null

The id of the VPC. The vpc_id is required when the file_system_type is cpfs.

Link copied to clipboard
val vswitchId: Output<String>? = null

The id of the vSwitch. The vswitch_id is required when the file_system_type is cpfs.

Link copied to clipboard
val zoneId: Output<String>? = null

The available zones information that supports nas.When FileSystemType=standard, this parameter is not required. Note: By default, a qualified availability zone is randomly selected according to the protocol_type and storage_type configuration.