DedicatedHostGroupArgs

data class DedicatedHostGroupArgs(val allocationPolicy: Output<String>? = null, val cpuAllocationRatio: Output<Int>? = null, val dedicatedHostGroupDesc: Output<String>? = null, val diskAllocationRatio: Output<Int>? = null, val engine: Output<String>? = null, val hostReplacePolicy: Output<String>? = null, val memAllocationRatio: Output<Int>? = null, val openPermission: Output<Boolean>? = null, val vpcId: Output<String>? = null) : ConvertibleToJava<DedicatedHostGroupArgs>

Provides a ApsaraDB for MyBase Dedicated Host Group resource. For information about ApsaraDB for MyBase Dedicated Host Group and how to use it, see What is Dedicated Host Group.

NOTE: Available since v1.132.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.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.cddc.DedicatedHostGroup;
import com.pulumi.alicloud.cddc.DedicatedHostGroupArgs;
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("terraform-example");
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var defaultDedicatedHostGroup = new DedicatedHostGroup("defaultDedicatedHostGroup", DedicatedHostGroupArgs.builder()
.engine("MySQL")
.vpcId(defaultNetwork.id())
.cpuAllocationRatio(101)
.memAllocationRatio(50)
.diskAllocationRatio(200)
.allocationPolicy("Evenly")
.hostReplacePolicy("Manual")
.dedicatedHostGroupDesc(name)
.build());
}
}

Import

ApsaraDB for MyBase Dedicated Host Group can be imported using the id, e.g.

$ pulumi import alicloud:cddc/dedicatedHostGroup:DedicatedHostGroup example <id>

Constructors

Link copied to clipboard
fun DedicatedHostGroupArgs(allocationPolicy: Output<String>? = null, cpuAllocationRatio: Output<Int>? = null, dedicatedHostGroupDesc: Output<String>? = null, diskAllocationRatio: Output<Int>? = null, engine: Output<String>? = null, hostReplacePolicy: Output<String>? = null, memAllocationRatio: Output<Int>? = null, openPermission: Output<Boolean>? = null, vpcId: Output<String>? = null)

Functions

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

Properties

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

AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively

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

The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.

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

The name of the dedicated cluster. The name must be 1 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

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

The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When engine = SQLServer, this attribute does not support to set.

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

Database Engine Type.The database engine of the dedicated cluster. Valid values:Redis, SQLServer, MySQL, PostgreSQL, MongoDB, alisql, tair, mssql. NOTE: Since v1.210.0., the engine = SQLServer was deprecated.

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

The policy based on which the system handles host failures. Valid values:Auto,Manual

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

The Memory Allocation Ratio of the Dedicated Host Group.

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

Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values: true and false. NOTE: The open_permission should be true when engine = "SQLServer"

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

The virtual private cloud (VPC) ID of the dedicated cluster.