FileSystem

class FileSystem : KotlinCustomResource

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>

Properties

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

The description of the File system.

Link copied to clipboard
val fileSystemName: Output<String>

The name of the File system.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val protocolType: Output<String>

The protocol type. Valid values: HDFS.

Link copied to clipboard

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val spaceCapacity: Output<Int>

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>

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

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

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

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneId: Output<String>

The zone ID of the File system.