DataCenterArgs

data class DataCenterArgs(val autoRenew: Output<Boolean>? = null, val autoRenewPeriod: Output<Int>? = null, val clusterId: Output<String>? = null, val dataCenterName: Output<String>? = null, val diskSize: Output<Int>? = null, val diskType: Output<String>? = null, val enablePublic: Output<Boolean>? = null, val instanceType: Output<String>? = null, val nodeCount: Output<Int>? = null, val payType: Output<String>? = null, val period: Output<Int>? = null, val periodUnit: Output<String>? = null, val vswitchId: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<DataCenterArgs>

Provides a Cassandra dataCenter resource supports replica set dataCenters only. The Cassandra provides stable, reliable, and automatic scalable database services. It offers a full range of database solutions, such as disaster recovery, backup, recovery, monitoring, and alarms. You can see detail product introduction here.

NOTE: Available in 1.88.0+. NOTE: Create a cassandra dataCenter need a clusterId,so need create a cassandra cluster first. NOTE: The following regions support create Vpc network Cassandra cluster. The official website mark more regions. Or you can call DescribeRegions. NOTE: Create Cassandra dataCenter or change dataCenter type and storage would cost 30 minutes. Please make full preparation.

Example Usage

Create a cassandra dataCenter

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cassandra.Cluster;
import com.pulumi.alicloud.cassandra.ClusterArgs;
import com.pulumi.alicloud.cassandra.DataCenter;
import com.pulumi.alicloud.cassandra.DataCenterArgs;
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) {
var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
.clusterName("cassandra-cluster-name-tf")
.dataCenterName("dc-1")
.autoRenew("false")
.instanceType("cassandra.c.large")
.majorVersion("3.11")
.nodeCount("2")
.payType("PayAsYouGo")
.vswitchId("vsw-xxxx1")
.diskSize("160")
.diskType("cloud_ssd")
.maintainStartTime("18:00Z")
.maintainEndTime("20:00Z")
.ipWhite("127.0.0.1")
.build());
var defaultDataCenter = new DataCenter("defaultDataCenter", DataCenterArgs.builder()
.clusterId(defaultCluster.id())
.dataCenterName("dc-2")
.autoRenew("false")
.instanceType("cassandra.c.large")
.nodeCount("2")
.payType("PayAsYouGo")
.vswitchId("vsw-xxxx2")
.diskSize("160")
.diskType("cloud_ssd")
.build());
}
}

Import

If you need full function, please import Cassandra cluster first. Cassandra dataCenter can be imported using the dcId:clusterId, e.g.

$ pulumi import alicloud:cassandra/dataCenter:DataCenter dc_2 cn-shenxxxx-x:cds-wz933ryoaurxxxxx

Constructors

Link copied to clipboard
fun DataCenterArgs(autoRenew: Output<Boolean>? = null, autoRenewPeriod: Output<Int>? = null, clusterId: Output<String>? = null, dataCenterName: Output<String>? = null, diskSize: Output<Int>? = null, diskType: Output<String>? = null, enablePublic: Output<Boolean>? = null, instanceType: Output<String>? = null, nodeCount: Output<Int>? = null, payType: Output<String>? = null, period: Output<Int>? = null, periodUnit: Output<String>? = null, vswitchId: Output<String>? = null, zoneId: Output<String>? = null)

Functions

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

Properties

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

Auto renew of dataCenter-2,true or false. System default to false, valid when pay_type = Subscription.

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

Period of dataCenter-2 auto renew, if auto renew is true, one of 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60, valid when pay_type = Subscription. Unit: month.

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

Cassandra cluster id of dataCenter-2 belongs to.

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

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period ., underline _, or dash - are permitted.

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

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:

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

The disk type of Cassandra dataCenter-2. Valid values are cloud_ssd, cloud_efficiency, local_hdd_pro, local_ssd_pro, local_disk size is fixed.

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

Instance specification. See Instance specifications. Or you can call describeInstanceType api.

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

The node count of Cassandra dataCenter-2, default to 2.

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

The pay type of Cassandra dataCenter-2. Valid values are Subscription, PayAsYouGo. System default to PayAsYouGo.

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

The vswitch_id of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

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

The Zone to launch the Cassandra dataCenter-2. If vswitch_id is not empty, this zone_id can be "" or consistent.