Cluster

class Cluster : KotlinCustomResource

Provides a Cassandra cluster resource supports replica set clusters 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: The following regions support create Vpc network Cassandra cluster. The official website mark more regions. Or you can call DescribeRegions. NOTE: Create Cassandra cluster or change cluster type and storage would cost 30 minutes. Please make full preparation.

Example Usage

Create a cassandra cluster

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 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 default_ = new Cluster("default", ClusterArgs.builder()
.autoRenew("false")
.clusterName("cassandra-cluster-name-tf")
.dataCenterName("dc-1")
.diskSize("160")
.diskType("cloud_ssd")
.instanceType("cassandra.c.large")
.ipWhite("127.0.0.1")
.maintainEndTime("20:00Z")
.maintainStartTime("18:00Z")
.majorVersion("3.11")
.nodeCount("2")
.payType("PayAsYouGo")
.vswitchId("vsw-xxxx")
.build());
}
}

Import

Cassandra cluster can be imported using the id, e.g.

$ pulumi import alicloud:cassandra/cluster:Cluster example cds-wz9sr400dd7xxxxx

Properties

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

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

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

Period of dataCenter-1 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 clusterName: Output<String>?

Cassandra cluster 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 dataCenterName: Output<String>?

Cassandra dataCenter-1 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>?

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

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

The disk type of Cassandra dataCenter-1. 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>?
Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceType: Output<String>

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

Link copied to clipboard
val ipWhite: Output<String>

Set the instance's IP whitelist in VPC network.

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

The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).

Link copied to clipboard

The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).

Link copied to clipboard
val majorVersion: Output<String>

Cassandra major version. Now only support version 3.11.

Link copied to clipboard
val nodeCount: Output<Int>

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

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

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

Link copied to clipboard
val period: Output<Int>?
Link copied to clipboard
val periodUnit: Output<String>?
Link copied to clipboard
val publicPoints: Output<List<String>>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val securityGroups: Output<List<String>>

A list of security group ids to associate with.

Link copied to clipboard
val status: Output<String>
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 vswitchId: Output<String>

The vswitch_id of dataCenter-1, can not empty.

Link copied to clipboard
val zoneId: Output<String>

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