Instance

class Instance : KotlinCustomResource

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>

Properties

Link copied to clipboard
val category: Output<String>

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

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

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

Link copied to clipboard

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>?

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

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

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

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

The name of the Database file system.

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

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val size: Output<Int>

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

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

The snapshot id of the Database file system.

Link copied to clipboard
val status: Output<String>

The status of Database file system. Valid values: attached, attaching, creating, deleted, deleting, detaching, resizing, snapshotting, unattached, upgrading.

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

A mapping of tags to assign to the resource.

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

The Zone ID of the Database file system.