alicloud.cddc.DedicatedHostGroup
Explore with Pulumi AI
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.
DEPRECATED: This resource has been deprecated from version
1.225.1
.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const defaultDedicatedHostGroup = new alicloud.cddc.DedicatedHostGroup("default", {
engine: "MySQL",
vpcId: _default.id,
cpuAllocationRatio: 101,
memAllocationRatio: 50,
diskAllocationRatio: 200,
allocationPolicy: "Evenly",
hostReplacePolicy: "Manual",
dedicatedHostGroupDesc: name,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="10.4.0.0/16")
default_dedicated_host_group = alicloud.cddc.DedicatedHostGroup("default",
engine="MySQL",
vpc_id=default.id,
cpu_allocation_ratio=101,
mem_allocation_ratio=50,
disk_allocation_ratio=200,
allocation_policy="Evenly",
host_replace_policy="Manual",
dedicated_host_group_desc=name)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cddc"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
_, err = cddc.NewDedicatedHostGroup(ctx, "default", &cddc.DedicatedHostGroupArgs{
Engine: pulumi.String("MySQL"),
VpcId: _default.ID(),
CpuAllocationRatio: pulumi.Int(101),
MemAllocationRatio: pulumi.Int(50),
DiskAllocationRatio: pulumi.Int(200),
AllocationPolicy: pulumi.String("Evenly"),
HostReplacePolicy: pulumi.String("Manual"),
DedicatedHostGroupDesc: pulumi.String(name),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var defaultDedicatedHostGroup = new AliCloud.Cddc.DedicatedHostGroup("default", new()
{
Engine = "MySQL",
VpcId = @default.Id,
CpuAllocationRatio = 101,
MemAllocationRatio = 50,
DiskAllocationRatio = 200,
AllocationPolicy = "Evenly",
HostReplacePolicy = "Manual",
DedicatedHostGroupDesc = name,
});
});
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 default_ = new Network("default", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var defaultDedicatedHostGroup = new DedicatedHostGroup("defaultDedicatedHostGroup", DedicatedHostGroupArgs.builder()
.engine("MySQL")
.vpcId(default_.id())
.cpuAllocationRatio(101)
.memAllocationRatio(50)
.diskAllocationRatio(200)
.allocationPolicy("Evenly")
.hostReplacePolicy("Manual")
.dedicatedHostGroupDesc(name)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:vpc:Network
properties:
vpcName: ${name}
cidrBlock: 10.4.0.0/16
defaultDedicatedHostGroup:
type: alicloud:cddc:DedicatedHostGroup
name: default
properties:
engine: MySQL
vpcId: ${default.id}
cpuAllocationRatio: 101
memAllocationRatio: 50
diskAllocationRatio: 200
allocationPolicy: Evenly
hostReplacePolicy: Manual
dedicatedHostGroupDesc: ${name}
Create DedicatedHostGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DedicatedHostGroup(name: string, args: DedicatedHostGroupArgs, opts?: CustomResourceOptions);
@overload
def DedicatedHostGroup(resource_name: str,
args: DedicatedHostGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DedicatedHostGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
engine: Optional[str] = None,
vpc_id: Optional[str] = None,
allocation_policy: Optional[str] = None,
cpu_allocation_ratio: Optional[int] = None,
dedicated_host_group_desc: Optional[str] = None,
disk_allocation_ratio: Optional[int] = None,
host_replace_policy: Optional[str] = None,
mem_allocation_ratio: Optional[int] = None,
open_permission: Optional[bool] = None)
func NewDedicatedHostGroup(ctx *Context, name string, args DedicatedHostGroupArgs, opts ...ResourceOption) (*DedicatedHostGroup, error)
public DedicatedHostGroup(string name, DedicatedHostGroupArgs args, CustomResourceOptions? opts = null)
public DedicatedHostGroup(String name, DedicatedHostGroupArgs args)
public DedicatedHostGroup(String name, DedicatedHostGroupArgs args, CustomResourceOptions options)
type: alicloud:cddc:DedicatedHostGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DedicatedHostGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DedicatedHostGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DedicatedHostGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DedicatedHostGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DedicatedHostGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dedicatedHostGroupResource = new AliCloud.Cddc.DedicatedHostGroup("dedicatedHostGroupResource", new()
{
Engine = "string",
VpcId = "string",
AllocationPolicy = "string",
CpuAllocationRatio = 0,
DedicatedHostGroupDesc = "string",
DiskAllocationRatio = 0,
HostReplacePolicy = "string",
MemAllocationRatio = 0,
OpenPermission = false,
});
example, err := cddc.NewDedicatedHostGroup(ctx, "dedicatedHostGroupResource", &cddc.DedicatedHostGroupArgs{
Engine: pulumi.String("string"),
VpcId: pulumi.String("string"),
AllocationPolicy: pulumi.String("string"),
CpuAllocationRatio: pulumi.Int(0),
DedicatedHostGroupDesc: pulumi.String("string"),
DiskAllocationRatio: pulumi.Int(0),
HostReplacePolicy: pulumi.String("string"),
MemAllocationRatio: pulumi.Int(0),
OpenPermission: pulumi.Bool(false),
})
var dedicatedHostGroupResource = new DedicatedHostGroup("dedicatedHostGroupResource", DedicatedHostGroupArgs.builder()
.engine("string")
.vpcId("string")
.allocationPolicy("string")
.cpuAllocationRatio(0)
.dedicatedHostGroupDesc("string")
.diskAllocationRatio(0)
.hostReplacePolicy("string")
.memAllocationRatio(0)
.openPermission(false)
.build());
dedicated_host_group_resource = alicloud.cddc.DedicatedHostGroup("dedicatedHostGroupResource",
engine="string",
vpc_id="string",
allocation_policy="string",
cpu_allocation_ratio=0,
dedicated_host_group_desc="string",
disk_allocation_ratio=0,
host_replace_policy="string",
mem_allocation_ratio=0,
open_permission=False)
const dedicatedHostGroupResource = new alicloud.cddc.DedicatedHostGroup("dedicatedHostGroupResource", {
engine: "string",
vpcId: "string",
allocationPolicy: "string",
cpuAllocationRatio: 0,
dedicatedHostGroupDesc: "string",
diskAllocationRatio: 0,
hostReplacePolicy: "string",
memAllocationRatio: 0,
openPermission: false,
});
type: alicloud:cddc:DedicatedHostGroup
properties:
allocationPolicy: string
cpuAllocationRatio: 0
dedicatedHostGroupDesc: string
diskAllocationRatio: 0
engine: string
hostReplacePolicy: string
memAllocationRatio: 0
openPermission: false
vpcId: string
DedicatedHostGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DedicatedHostGroup resource accepts the following input properties:
- Engine 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., theengine = SQLServer
was deprecated. - Vpc
Id string - The virtual private cloud (VPC) ID of the dedicated cluster.
- Allocation
Policy string - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- Cpu
Allocation intRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- Dedicated
Host stringGroup Desc - 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.
- Disk
Allocation intRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - Host
Replace stringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- Mem
Allocation intRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- Open
Permission bool - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- Engine 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., theengine = SQLServer
was deprecated. - Vpc
Id string - The virtual private cloud (VPC) ID of the dedicated cluster.
- Allocation
Policy string - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- Cpu
Allocation intRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- Dedicated
Host stringGroup Desc - 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.
- Disk
Allocation intRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - Host
Replace stringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- Mem
Allocation intRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- Open
Permission bool - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- engine 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., theengine = SQLServer
was deprecated. - vpc
Id String - The virtual private cloud (VPC) ID of the dedicated cluster.
- allocation
Policy String - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- cpu
Allocation IntegerRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- dedicated
Host StringGroup Desc - 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.
- disk
Allocation IntegerRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - host
Replace StringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- mem
Allocation IntegerRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- open
Permission Boolean - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- engine 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., theengine = SQLServer
was deprecated. - vpc
Id string - The virtual private cloud (VPC) ID of the dedicated cluster.
- allocation
Policy string - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- cpu
Allocation numberRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- dedicated
Host stringGroup Desc - 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.
- disk
Allocation numberRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - host
Replace stringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- mem
Allocation numberRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- open
Permission boolean - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- engine str
- 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., theengine = SQLServer
was deprecated. - vpc_
id str - The virtual private cloud (VPC) ID of the dedicated cluster.
- allocation_
policy str - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- cpu_
allocation_ intratio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- dedicated_
host_ strgroup_ desc - 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.
- disk_
allocation_ intratio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - host_
replace_ strpolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- mem_
allocation_ intratio - The Memory Allocation Ratio of the Dedicated Host Group.
- open_
permission bool - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- engine 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., theengine = SQLServer
was deprecated. - vpc
Id String - The virtual private cloud (VPC) ID of the dedicated cluster.
- allocation
Policy String - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- cpu
Allocation NumberRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- dedicated
Host StringGroup Desc - 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.
- disk
Allocation NumberRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - host
Replace StringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- mem
Allocation NumberRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- open
Permission Boolean - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
Outputs
All input properties are implicitly available as output properties. Additionally, the DedicatedHostGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DedicatedHostGroup Resource
Get an existing DedicatedHostGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DedicatedHostGroupState, opts?: CustomResourceOptions): DedicatedHostGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocation_policy: Optional[str] = None,
cpu_allocation_ratio: Optional[int] = None,
dedicated_host_group_desc: Optional[str] = None,
disk_allocation_ratio: Optional[int] = None,
engine: Optional[str] = None,
host_replace_policy: Optional[str] = None,
mem_allocation_ratio: Optional[int] = None,
open_permission: Optional[bool] = None,
vpc_id: Optional[str] = None) -> DedicatedHostGroup
func GetDedicatedHostGroup(ctx *Context, name string, id IDInput, state *DedicatedHostGroupState, opts ...ResourceOption) (*DedicatedHostGroup, error)
public static DedicatedHostGroup Get(string name, Input<string> id, DedicatedHostGroupState? state, CustomResourceOptions? opts = null)
public static DedicatedHostGroup get(String name, Output<String> id, DedicatedHostGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allocation
Policy string - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- Cpu
Allocation intRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- Dedicated
Host stringGroup Desc - 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.
- Disk
Allocation intRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - Engine 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., theengine = SQLServer
was deprecated. - Host
Replace stringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- Mem
Allocation intRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- Open
Permission bool - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- Vpc
Id string - The virtual private cloud (VPC) ID of the dedicated cluster.
- Allocation
Policy string - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- Cpu
Allocation intRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- Dedicated
Host stringGroup Desc - 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.
- Disk
Allocation intRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - Engine 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., theengine = SQLServer
was deprecated. - Host
Replace stringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- Mem
Allocation intRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- Open
Permission bool - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- Vpc
Id string - The virtual private cloud (VPC) ID of the dedicated cluster.
- allocation
Policy String - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- cpu
Allocation IntegerRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- dedicated
Host StringGroup Desc - 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.
- disk
Allocation IntegerRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - engine 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., theengine = SQLServer
was deprecated. - host
Replace StringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- mem
Allocation IntegerRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- open
Permission Boolean - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- vpc
Id String - The virtual private cloud (VPC) ID of the dedicated cluster.
- allocation
Policy string - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- cpu
Allocation numberRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- dedicated
Host stringGroup Desc - 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.
- disk
Allocation numberRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - engine 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., theengine = SQLServer
was deprecated. - host
Replace stringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- mem
Allocation numberRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- open
Permission boolean - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- vpc
Id string - The virtual private cloud (VPC) ID of the dedicated cluster.
- allocation_
policy str - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- cpu_
allocation_ intratio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- dedicated_
host_ strgroup_ desc - 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.
- disk_
allocation_ intratio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - engine str
- 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., theengine = SQLServer
was deprecated. - host_
replace_ strpolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- mem_
allocation_ intratio - The Memory Allocation Ratio of the Dedicated Host Group.
- open_
permission bool - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- vpc_
id str - The virtual private cloud (VPC) ID of the dedicated cluster.
- allocation
Policy String - AThe policy that is used to allocate resources in the dedicated cluster. Valid values:
Evenly
,Intensively
- cpu
Allocation NumberRatio - The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
- dedicated
Host StringGroup Desc - 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.
- disk
Allocation NumberRatio - The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When
engine = SQLServer
, this attribute does not support to set. - engine 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., theengine = SQLServer
was deprecated. - host
Replace StringPolicy - The policy based on which the system handles host failures. Valid values:
Auto
,Manual
- mem
Allocation NumberRatio - The Memory Allocation Ratio of the Dedicated Host Group.
- open
Permission Boolean - Whether to enable the feature that allows you to have OS permissions on the hosts in the dedicated cluster. Valid values:
true
andfalse
. NOTE: Theopen_permission
should betrue
whenengine = "SQLServer"
- vpc
Id String - The virtual private cloud (VPC) ID of the dedicated cluster.
Import
ApsaraDB for MyBase Dedicated Host Group can be imported using the id, e.g.
$ pulumi import alicloud:cddc/dedicatedHostGroup:DedicatedHostGroup example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.