ClusterArgs

data class ClusterArgs(val aclEntryLists: Output<List<String>>? = null, val clusterAliasName: Output<String>? = null, val clusterSpecification: Output<String>? = null, val clusterType: Output<String>? = null, val clusterVersion: Output<String>? = null, val connectionType: Output<String>? = null, val diskType: Output<String>? = null, val instanceCount: Output<Int>? = null, val mseVersion: Output<String>? = null, val netType: Output<String>? = null, val privateSlbSpecification: Output<String>? = null, val pubNetworkFlow: Output<String>? = null, val pubSlbSpecification: Output<String>? = null, val requestPars: Output<String>? = null, val vpcId: Output<String>? = null, val vswitchId: Output<String>? = null) : ConvertibleToJava<ClusterArgs>

Provides a MSE Cluster resource. It is a one-stop microservice platform for the industry's mainstream open source microservice frameworks Spring Cloud and Dubbo, providing governance center, managed registry and managed configuration center.

NOTE: Available in 1.94.0+.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.mse.Cluster;
import com.pulumi.alicloud.mse.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) {
final var exampleZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.vpcName("terraform-example")
.cidrBlock("172.17.3.0/24")
.build());
var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
.vswitchName("terraform-example")
.cidrBlock("172.17.3.0/24")
.vpcId(exampleNetwork.id())
.zoneId(exampleZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build());
var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()
.clusterSpecification("MSE_SC_1_2_60_c")
.clusterType("Nacos-Ans")
.clusterVersion("NACOS_2_0_0")
.instanceCount(1)
.netType("privatenet")
.pubNetworkFlow("1")
.connectionType("slb")
.clusterAliasName("terraform-example")
.mseVersion("mse_dev")
.vswitchId(exampleSwitch.id())
.vpcId(exampleNetwork.id())
.build());
}
}

Import

MSE Cluster can be imported using the id, e.g.

$ pulumi import alicloud:mse/cluster:Cluster example mse-cn-0d9xxxx

Constructors

Link copied to clipboard
fun ClusterArgs(aclEntryLists: Output<List<String>>? = null, clusterAliasName: Output<String>? = null, clusterSpecification: Output<String>? = null, clusterType: Output<String>? = null, clusterVersion: Output<String>? = null, connectionType: Output<String>? = null, diskType: Output<String>? = null, instanceCount: Output<Int>? = null, mseVersion: Output<String>? = null, netType: Output<String>? = null, privateSlbSpecification: Output<String>? = null, pubNetworkFlow: Output<String>? = null, pubSlbSpecification: Output<String>? = null, requestPars: Output<String>? = null, vpcId: Output<String>? = null, vswitchId: Output<String>? = null)

Functions

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

Properties

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

The whitelist. NOTE: This attribute is invalid when the value of pub_network_flow is 0 and the value of net_type is privatenet.

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

The alias of MSE Cluster.

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

The engine specification of MSE Cluster. NOTE: From version 1.188.0, cluster_specification can be modified. Valid values:

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

The type of MSE Cluster.

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

The version of MSE Cluster. See details

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

The connection type. Valid values: slb.

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

The type of Disk.

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

The count of instance. NOTE: From version 1.188.0, instance_count can be modified.

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

The version of MSE. Valid values: mse_dev or mse_pro.

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

The type of network. Valid values: "privatenet" and "pubnet".

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

The specification of private network SLB.

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

The public network bandwidth. 0 means no access to the public network.

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

The specification of public network SLB.

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

The extended request parameters in the JSON format.

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

The id of the VPC.

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

The id of VSwitch.