DedicatedHostGroup

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 in 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) {
var vpc = new Network("vpc", NetworkArgs.builder()
.vpcName("tf_test_foo")
.cidrBlock("172.16.0.0/12")
.build());
var default_ = new DedicatedHostGroup("default", DedicatedHostGroupArgs.builder()
.engine("MongoDB")
.vpcId(vpc.id())
.cpuAllocationRatio(101)
.memAllocationRatio(50)
.diskAllocationRatio(200)
.allocationPolicy("Evenly")
.hostReplacePolicy("Manual")
.dedicatedHostGroupDesc("tf-testaccDesc")
.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

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
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.