InstanceArgs

data class InstanceArgs(val category: Output<String>? = null, val deleteSnapshot: Output<Boolean>? = null, val ecsLists: Output<List<InstanceEcsListArgs>>? = null, val enableRaid: Output<Boolean>? = null, val encryption: Output<Boolean>? = null, val instanceName: Output<String>? = null, val kmsKeyId: Output<String>? = null, val performanceLevel: Output<String>? = null, val raidStripeUnitNumber: Output<String>? = null, val size: Output<Int>? = null, val snapshotId: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<InstanceArgs>

Provides a DBFS Instance resource. For information about DBFS Instance and how to use it.

NOTE: Available since v1.136.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.databasefilesystem.Instance;
import com.pulumi.alicloud.databasefilesystem.InstanceArgs;
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");
var example = new Instance("example", InstanceArgs.builder()
.category("standard")
.zoneId("cn-hangzhou-i")
.performanceLevel("PL1")
.instanceName(name)
.size(100)
.build());
}
}

Import

DBFS Instance can be imported using the id, e.g.

$ pulumi import alicloud:databasefilesystem/instance:Instance example <id>

Constructors

Link copied to clipboard
fun InstanceArgs(category: Output<String>? = null, deleteSnapshot: Output<Boolean>? = null, ecsLists: Output<List<InstanceEcsListArgs>>? = null, enableRaid: Output<Boolean>? = null, encryption: Output<Boolean>? = null, instanceName: Output<String>? = null, kmsKeyId: Output<String>? = null, performanceLevel: Output<String>? = null, raidStripeUnitNumber: Output<String>? = null, size: Output<Int>? = null, snapshotId: Output<String>? = null, tags: Output<Map<String, Any>>? = null, zoneId: Output<String>? = null)

Functions

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

Properties

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

The type of the Database file system. Valid values: standard.

Link copied to clipboard
val deleteSnapshot: Output<Boolean>? = null

Whether to delete the original snapshot after the DBFS is created using the snapshot. Valid values : true anf false.

Link copied to clipboard
val ecsLists: Output<List<InstanceEcsListArgs>>? = null

The collection of ECS instances mounted to the Database file system. See ecs_list below. NOTE: Field 'ecs_list' has been deprecated from provider version 1.156.0 and it will be removed in the future version. Please use the new resource 'alicloud_dbfs_instance_attachment' to attach ECS and DBFS.

Link copied to clipboard
val enableRaid: Output<Boolean>? = null

Whether to create the Database file system in RAID way. Valid values : true anf false.

Link copied to clipboard
val encryption: Output<Boolean>? = null

Whether to encrypt the database file system. Valid values: true and false.

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

The name of the Database file system.

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

The KMS key ID of the Database file system used. This parameter is valid When encryption parameter is set to true.

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

The performance level of the Database file system. Valid values: PL0, PL1, PL2, PL3.

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

The number of strip. This parameter is valid When enable_raid parameter is set to true.

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

The size Of the Database file system. Unit: GiB.

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

The snapshot id of the Database 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 zoneId: Output<String>? = null

The Zone ID of the Database file system.