DedicatedHostGroup

class DedicatedHostGroup : KotlinCustomResource

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>

Properties

Link copied to clipboard

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

Link copied to clipboard
val cpuAllocationRatio: Output<Int>

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

Link copied to clipboard

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

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>

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val memAllocationRatio: Output<Int>

The Memory Allocation Ratio of the Dedicated Host Group.

Link copied to clipboard
val openPermission: Output<Boolean>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

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