FileSystemArgs

data class FileSystemArgs(val description: Output<String>? = null, val fileSystemName: Output<String>? = null, val protocolType: Output<String>? = null, val provisionedThroughputInMiBps: Output<Int>? = null, val spaceCapacity: Output<Int>? = null, val storageType: Output<String>? = null, val throughputMode: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<FileSystemArgs>

Provides a DFS File System resource. For information about DFS File System and how to use it, see What is File System.

NOTE: Available since v1.140.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.dfs.DfsFunctions;
import com.pulumi.alicloud.dfs.inputs.GetZonesArgs;
import com.pulumi.alicloud.dfs.FileSystem;
import com.pulumi.alicloud.dfs.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 config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var defaultZones = DfsFunctions.getZones();
var defaultFileSystem = new FileSystem("defaultFileSystem", FileSystemArgs.builder()
.storageType(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].options()[0].storageType()))
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].zoneId()))
.protocolType("HDFS")
.description(name)
.fileSystemName(name)
.throughputMode("Standard")
.spaceCapacity("1024")
.build());
}
}

Import

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

$ pulumi import alicloud:dfs/fileSystem:FileSystem example <id>

Constructors

Link copied to clipboard
fun FileSystemArgs(description: Output<String>? = null, fileSystemName: Output<String>? = null, protocolType: Output<String>? = null, provisionedThroughputInMiBps: Output<Int>? = null, spaceCapacity: Output<Int>? = null, storageType: Output<String>? = null, throughputMode: Output<String>? = null, zoneId: Output<String>? = null)

Functions

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

Properties

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

The description of the File system.

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

The name of the File system.

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

The protocol type. Valid values: HDFS.

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

The preset throughput of the File system. Valid values: 1 to 1024, Unit: MB/s. NOTE: Only when throughput_mode is Provisioned, this param is valid.

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

The capacity budget of the File system. NOTE: When the actual data storage reaches the file system capacity budget, the data cannot be written. The file system capacity budget does not support shrinking.

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

The storage specifications of the File system. Valid values: PERFORMANCE, STANDARD.

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

The throughput mode of the File system. Valid values: Provisioned, Standard.

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

The zone ID of the File system.