DbInstanceArgs

data class DbInstanceArgs(val dbInstanceCategory: Output<String>? = null, val dbInstanceDescription: Output<String>? = null, val dbInstanceIpArrays: Output<List<DbInstanceDbInstanceIpArrayArgs>>? = null, val dbInstanceNetworkType: Output<String>? = null, val dbInstanceStorageType: Output<String>? = null, val dbNodeClass: Output<String>? = null, val dbNodeStorage: Output<Int>? = null, val dbVersion: Output<String>? = null, val paymentType: Output<String>? = null, val vpcId: Output<String>? = null, val vswitchId: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<DbInstanceArgs>

Provides a Graph Database Db Instance resource. For information about Graph Database Db Instance and how to use it, see What is Db Instance.

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.graphdatabase.DbInstance;
import com.pulumi.alicloud.graphdatabase.DbInstanceArgs;
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 DbInstance("example", DbInstanceArgs.builder()
.dbNodeClass("gdb.r.2xlarge")
.dbInstanceNetworkType("vpc")
.dbVersion("1.0")
.dbInstanceCategory("HA")
.dbInstanceStorageType("cloud_ssd")
.dbNodeStorage("50")
.paymentType("PayAsYouGo")
.dbInstanceDescription(name)
.build());
}
}

Import

Graph Database Db Instance can be imported using the id, e.g.

$ pulumi import alicloud:graphdatabase/dbInstance:DbInstance example <id>

Constructors

Link copied to clipboard
fun DbInstanceArgs(dbInstanceCategory: Output<String>? = null, dbInstanceDescription: Output<String>? = null, dbInstanceIpArrays: Output<List<DbInstanceDbInstanceIpArrayArgs>>? = null, dbInstanceNetworkType: Output<String>? = null, dbInstanceStorageType: Output<String>? = null, dbNodeClass: Output<String>? = null, dbNodeStorage: Output<Int>? = null, dbVersion: Output<String>? = null, paymentType: Output<String>? = null, vpcId: Output<String>? = null, vswitchId: Output<String>? = null, zoneId: Output<String>? = null)

Functions

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

Properties

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

The category of the db instance. Valid values: HA, SINGLE(Available in 1.173.0+).

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

According to the practical example or notes.

Link copied to clipboard

IP ADDRESS whitelist for the instance group list. See db_instance_ip_array below.

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

The network type of the db instance. Valid values: vpc.

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

Disk storage type. Valid values: cloud_essd, cloud_ssd. Modification is not supported.

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

The class of the db node. Valid values: gdb.r.xlarge, gdb.r.2xlarge, gdb.r.4xlarge, gdb.r.8xlarge, gdb.r.16xlarge, gdb.r.xlarge_basic, gdb.r.2xlarge_basic, gdb.r.4xlarge_basic, gdb.r.8xlarge_basic, gdb.r.16xlarge_basic.

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

Instance storage space, which is measured in GB.

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

Kernel Version. Valid values: 1.0 or 1.0-OpenCypher. 1.0: represented as gremlin, 1.0-OpenCypher: said opencypher.

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

The paymen type of the resource. Valid values: PayAsYouGo.

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

ID of the VPC.

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

The ID of attaching vswitch to instance.

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

The zone ID of the resource.