1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cddc
  5. DedicatedHostGroup
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cddc.DedicatedHostGroup

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    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., the engine = SQLServer was deprecated.
    VpcId string
    The virtual private cloud (VPC) ID of the dedicated cluster.
    AllocationPolicy string
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    CpuAllocationRatio int
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    DedicatedHostGroupDesc string
    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.
    DiskAllocationRatio int
    The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When engine = SQLServer, this attribute does not support to set.
    HostReplacePolicy string
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    MemAllocationRatio int
    The Memory Allocation Ratio of the Dedicated Host Group.
    OpenPermission bool
    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"
    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., the engine = SQLServer was deprecated.
    VpcId string
    The virtual private cloud (VPC) ID of the dedicated cluster.
    AllocationPolicy string
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    CpuAllocationRatio int
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    DedicatedHostGroupDesc string
    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.
    DiskAllocationRatio int
    The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When engine = SQLServer, this attribute does not support to set.
    HostReplacePolicy string
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    MemAllocationRatio int
    The Memory Allocation Ratio of the Dedicated Host Group.
    OpenPermission bool
    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"
    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., the engine = SQLServer was deprecated.
    vpcId String
    The virtual private cloud (VPC) ID of the dedicated cluster.
    allocationPolicy String
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    cpuAllocationRatio Integer
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    dedicatedHostGroupDesc String
    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.
    diskAllocationRatio Integer
    The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When engine = SQLServer, this attribute does not support to set.
    hostReplacePolicy String
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    memAllocationRatio Integer
    The Memory Allocation Ratio of the Dedicated Host Group.
    openPermission 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"
    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., the engine = SQLServer was deprecated.
    vpcId string
    The virtual private cloud (VPC) ID of the dedicated cluster.
    allocationPolicy string
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    cpuAllocationRatio number
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    dedicatedHostGroupDesc string
    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.
    diskAllocationRatio number
    The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When engine = SQLServer, this attribute does not support to set.
    hostReplacePolicy string
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    memAllocationRatio number
    The Memory Allocation Ratio of the Dedicated Host Group.
    openPermission 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"
    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., the engine = 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_ratio int
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    dedicated_host_group_desc str
    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_ratio int
    The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When engine = SQLServer, this attribute does not support to set.
    host_replace_policy str
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    mem_allocation_ratio int
    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 and false. NOTE: The open_permission should be true when engine = "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., the engine = SQLServer was deprecated.
    vpcId String
    The virtual private cloud (VPC) ID of the dedicated cluster.
    allocationPolicy String
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    cpuAllocationRatio Number
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    dedicatedHostGroupDesc String
    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.
    diskAllocationRatio Number
    The Disk Allocation Ratio of the Dedicated Host Group. NOTE: When engine = SQLServer, this attribute does not support to set.
    hostReplacePolicy String
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    memAllocationRatio Number
    The Memory Allocation Ratio of the Dedicated Host Group.
    openPermission 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"

    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.
    The following state arguments are supported:
    AllocationPolicy string
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    CpuAllocationRatio int
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    DedicatedHostGroupDesc string
    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.
    DiskAllocationRatio int
    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., the engine = SQLServer was deprecated.
    HostReplacePolicy string
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    MemAllocationRatio int
    The Memory Allocation Ratio of the Dedicated Host Group.
    OpenPermission bool
    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"
    VpcId string
    The virtual private cloud (VPC) ID of the dedicated cluster.
    AllocationPolicy string
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    CpuAllocationRatio int
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    DedicatedHostGroupDesc string
    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.
    DiskAllocationRatio int
    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., the engine = SQLServer was deprecated.
    HostReplacePolicy string
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    MemAllocationRatio int
    The Memory Allocation Ratio of the Dedicated Host Group.
    OpenPermission bool
    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"
    VpcId string
    The virtual private cloud (VPC) ID of the dedicated cluster.
    allocationPolicy String
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    cpuAllocationRatio Integer
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    dedicatedHostGroupDesc String
    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.
    diskAllocationRatio Integer
    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., the engine = SQLServer was deprecated.
    hostReplacePolicy String
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    memAllocationRatio Integer
    The Memory Allocation Ratio of the Dedicated Host Group.
    openPermission 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"
    vpcId String
    The virtual private cloud (VPC) ID of the dedicated cluster.
    allocationPolicy string
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    cpuAllocationRatio number
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    dedicatedHostGroupDesc string
    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.
    diskAllocationRatio number
    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., the engine = SQLServer was deprecated.
    hostReplacePolicy string
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    memAllocationRatio number
    The Memory Allocation Ratio of the Dedicated Host Group.
    openPermission 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"
    vpcId 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_ratio int
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    dedicated_host_group_desc str
    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_ratio int
    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., the engine = SQLServer was deprecated.
    host_replace_policy str
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    mem_allocation_ratio int
    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 and false. NOTE: The open_permission should be true when engine = "SQLServer"
    vpc_id str
    The virtual private cloud (VPC) ID of the dedicated cluster.
    allocationPolicy String
    AThe policy that is used to allocate resources in the dedicated cluster. Valid values:Evenly,Intensively
    cpuAllocationRatio Number
    The CPU overcommitment ratio of the dedicated cluster.Valid values: 100 to 300. Default value: 200.
    dedicatedHostGroupDesc String
    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.
    diskAllocationRatio Number
    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., the engine = SQLServer was deprecated.
    hostReplacePolicy String
    The policy based on which the system handles host failures. Valid values:Auto,Manual
    memAllocationRatio Number
    The Memory Allocation Ratio of the Dedicated Host Group.
    openPermission 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"
    vpcId 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.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi