InstanceArgs

data class InstanceArgs(val advancedFeatures: Output<String>? = null, 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 fsName: Output<String>? = null, val instanceName: Output<String>? = null, val instanceType: Output<String>? = null, val kmsKeyId: Output<String>? = null, val performanceLevel: Output<String>? = null, val raidStripeUnitNumber: Output<Int>? = null, val size: Output<Int>? = null, val snapshotId: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val usedScene: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<InstanceArgs>

Provides a DBFS Dbfs Instance resource. An instance of a database file system is equivalent to a file system and can store data of file types. For information about DBFS Dbfs Instance and how to use it, see What is Dbfs Instance.

NOTE: Need to contact us open whitelist before you can use the resource. NOTE: Available since v1.136.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const example = new alicloud.databasefilesystem.Instance("example", {
category: "standard",
zoneId: "cn-hangzhou-i",
performanceLevel: "PL1",
fsName: name,
size: 100,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
example = alicloud.databasefilesystem.Instance("example",
category="standard",
zone_id="cn-hangzhou-i",
performance_level="PL1",
fs_name=name,
size=100)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var example = new AliCloud.DatabaseFilesystem.Instance("example", new()
{
Category = "standard",
ZoneId = "cn-hangzhou-i",
PerformanceLevel = "PL1",
FsName = name,
Size = 100,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/databasefilesystem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := databasefilesystem.NewInstance(ctx, "example", &databasefilesystem.InstanceArgs{
Category: pulumi.String("standard"),
ZoneId: pulumi.String("cn-hangzhou-i"),
PerformanceLevel: pulumi.String("PL1"),
FsName: pulumi.String(name),
Size: pulumi.Int(100),
})
if err != nil {
return err
}
return nil
})
}
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("terraform-example");
var example = new Instance("example", InstanceArgs.builder()
.category("standard")
.zoneId("cn-hangzhou-i")
.performanceLevel("PL1")
.fsName(name)
.size(100)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
example:
type: alicloud:databasefilesystem:Instance
properties:
category: standard
zoneId: cn-hangzhou-i
performanceLevel: PL1
fsName: ${name}
size: 100

Import

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

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

Constructors

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

Properties

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

The number of CPU cores and the upper limit of memory used by the database file storage instance.

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

Category of database file system.

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

Whether to delete the original snapshot after creating DBFS using the snapshot.

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. See ecs_list below.

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

Whether to create DBFS in RAID mode. If created in RAID mode, the capacity is at least 66GB.Valid values: true or false. Default value: false.

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

Whether to encrypt DBFS.Valid values: true or false. Default value: false.

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

Database file system name.

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

. Field 'instance_name' has been deprecated from provider version 1.212.0. New field 'fs_name' instead.

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

Instance type. Value range:

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

The ID of the KMS key used by DBFS.

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

When you create a DBFS instance, set the performance level of the DBFS instance. Value range:

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

Number of strips. Required when the EnableRaid parameter is true.Value range: Currently, only 8 stripes are supported.

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

Size of database file system, unit GiB.

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

The ID of the snapshot used to create the DBFS instance.

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

A mapping of tags to assign to the resource. The following arguments will be discarded. Please use new fields as soon as possible:

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

The usage scenario of DBFS. Value range:

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

The ID of the zone to which the database file system belongs.

Functions

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