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

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const example = new alicloud.graphdatabase.DbInstance("example", {
dbNodeClass: "gdb.r.2xlarge",
dbInstanceNetworkType: "vpc",
dbVersion: "1.0",
dbInstanceCategory: "HA",
dbInstanceStorageType: "cloud_ssd",
dbNodeStorage: 50,
paymentType: "PayAsYouGo",
dbInstanceDescription: name,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
example = alicloud.graphdatabase.DbInstance("example",
db_node_class="gdb.r.2xlarge",
db_instance_network_type="vpc",
db_version="1.0",
db_instance_category="HA",
db_instance_storage_type="cloud_ssd",
db_node_storage=50,
payment_type="PayAsYouGo",
db_instance_description=name)
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") ?? "tf-example";
var example = new AliCloud.GraphDatabase.DbInstance("example", new()
{
DbNodeClass = "gdb.r.2xlarge",
DbInstanceNetworkType = "vpc",
DbVersion = "1.0",
DbInstanceCategory = "HA",
DbInstanceStorageType = "cloud_ssd",
DbNodeStorage = 50,
PaymentType = "PayAsYouGo",
DbInstanceDescription = name,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/graphdatabase"
"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 := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := graphdatabase.NewDbInstance(ctx, "example", &graphdatabase.DbInstanceArgs{
DbNodeClass: pulumi.String("gdb.r.2xlarge"),
DbInstanceNetworkType: pulumi.String("vpc"),
DbVersion: pulumi.String("1.0"),
DbInstanceCategory: pulumi.String("HA"),
DbInstanceStorageType: pulumi.String("cloud_ssd"),
DbNodeStorage: pulumi.Int(50),
PaymentType: pulumi.String("PayAsYouGo"),
DbInstanceDescription: pulumi.String(name),
})
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.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());
}
}
configuration:
name:
type: string
default: tf-example
resources:
example:
type: alicloud:graphdatabase:DbInstance
properties:
dbNodeClass: gdb.r.2xlarge
dbInstanceNetworkType: vpc
dbVersion: '1.0'
dbInstanceCategory: HA
dbInstanceStorageType: cloud_ssd
dbNodeStorage: '50'
paymentType: PayAsYouGo
dbInstanceDescription: ${name}

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
constructor(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)

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.

Functions

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