1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cddc
  5. DedicatedPropreHost
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
 logo
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi

    Provides a CDDC Dedicated Propre Host resource. MyBase proprietary cluster host resources, you need to add a whitelist to purchase a proprietary version of the cluster.

    For information about CDDC Dedicated Propre Host and how to use it, see What is Dedicated Propre Host.

    NOTE: Available since v1.210.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";
    import * as std from "@pulumi/std";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = alicloud.ecs.getInstanceTypes({
        instanceTypeFamily: "ecs.g6e",
        networkType: "Vpc",
    });
    const defaultGetImages = alicloud.ecs.getImages({
        nameRegex: "^aliyun_3_x64_20G_scc*",
        owners: "system",
    });
    const essd = alicloud.ecs.getInstanceTypes({
        cpuCoreCount: 2,
        memorySize: 4,
        systemDiskCategory: "cloud_essd",
    });
    const defaultGetNetworks = alicloud.vpc.getNetworks({
        nameRegex: "^default-NODELETING$",
    });
    const defaultGetSwitches = defaultGetNetworks.then(defaultGetNetworks => alicloud.vpc.getSwitches({
        vpcId: defaultGetNetworks.ids?.[0],
        zoneId: "cn-hangzhou-i",
    }));
    const defaultGetSecurityGroups = alicloud.ecs.getSecurityGroups({
        nameRegex: "tf-exampleacc-cddc-dedicated_propre_host",
    });
    const defaultSecurityGroup: alicloud.ecs.SecurityGroup[] = [];
    defaultGetSecurityGroups.then(defaultGetSecurityGroups => defaultGetSecurityGroups.ids).length.apply(length => {
        for (const range = {value: 0}; range.value < (length > 0 ? 0 : 1); range.value++) {
            defaultSecurityGroup.push(new alicloud.ecs.SecurityGroup(`default-${range.value}`, {
                vpcId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.vswitches?.[0]?.vpcId),
                name: "tf-exampleacc-cddc-dedicated_propre_host",
            }));
        }
    });
    const defaultGetEcsDeploymentSets = alicloud.ecs.getEcsDeploymentSets({
        nameRegex: "tf-exampleacc-cddc-dedicated_propre_host",
    });
    const defaultEcsDeploymentSet: alicloud.ecs.EcsDeploymentSet[] = [];
    defaultGetEcsDeploymentSets.then(defaultGetEcsDeploymentSets => defaultGetEcsDeploymentSets.ids).length.apply(length => {
        for (const range = {value: 0}; range.value < (length > 0 ? 0 : 1); range.value++) {
            defaultEcsDeploymentSet.push(new alicloud.ecs.EcsDeploymentSet(`default-${range.value}`, {
                strategy: "Availability",
                domain: "Default",
                granularity: "Host",
                deploymentSetName: "tf-exampleacc-cddc-dedicated_propre_host",
                description: "tf-exampleacc-cddc-dedicated_propre_host",
            }));
        }
    });
    const defaultGetKeyPairs = alicloud.ecs.getKeyPairs({
        nameRegex: "tf-exampleacc-cddc-dedicated_propre_host",
    });
    const defaultKeyPair: alicloud.ecs.KeyPair[] = [];
    defaultGetKeyPairs.then(defaultGetKeyPairs => defaultGetKeyPairs.ids).length.apply(length => {
        for (const range = {value: 0}; range.value < (length > 0 ? 0 : 1); range.value++) {
            defaultKeyPair.push(new alicloud.ecs.KeyPair(`default-${range.value}`, {keyPairName: "tf-exampleacc-cddc-dedicated_propre_host"}));
        }
    });
    const defaultGetDedicatedHostGroups = alicloud.cddc.getDedicatedHostGroups({
        engine: "MySQL",
        nameRegex: "tf-exampleacc-cddc-dedicated_propre_host",
    });
    const defaultDedicatedHostGroup: alicloud.cddc.DedicatedHostGroup[] = [];
    defaultGetDedicatedHostGroups.then(defaultGetDedicatedHostGroups => defaultGetDedicatedHostGroups.ids).length.apply(length => {
        for (const range = {value: 0}; range.value < (length > 0 ? 0 : 1); range.value++) {
            defaultDedicatedHostGroup.push(new alicloud.cddc.DedicatedHostGroup(`default-${range.value}`, {
                engine: "MySQL",
                vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
                cpuAllocationRatio: 101,
                memAllocationRatio: 50,
                diskAllocationRatio: 200,
                allocationPolicy: "Evenly",
                hostReplacePolicy: "Manual",
                dedicatedHostGroupDesc: "tf-exampleacc-cddc-dedicated_propre_host",
                openPermission: true,
            }));
        }
    });
    const alicloudSecurityGroupId = pulumi.all([defaultGetSecurityGroups.then(defaultGetSecurityGroups => defaultGetSecurityGroups.ids).length, defaultGetSecurityGroups, std.concat({
        input: [
            defaultSecurityGroup.map(__item => __item.id),
            [""],
        ],
    })]).apply(([length, defaultGetSecurityGroups, invoke]) => length > 0 ? defaultGetSecurityGroups.ids?.[0] : invoke.result?.[0]);
    const alicloudEcsDeploymentSetId = pulumi.all([defaultGetEcsDeploymentSets.then(defaultGetEcsDeploymentSets => defaultGetEcsDeploymentSets.ids).length, defaultGetEcsDeploymentSets, std.concat({
        input: [
            defaultEcsDeploymentSet.map(__item => __item.id),
            [""],
        ],
    })]).apply(([length, defaultGetEcsDeploymentSets, invoke]) => length > 0 ? defaultGetEcsDeploymentSets.sets?.[0]?.deploymentSetId : invoke.result?.[0]);
    const alicloudKeyPairId = pulumi.all([defaultGetKeyPairs.then(defaultGetKeyPairs => defaultGetKeyPairs.ids).length, defaultGetKeyPairs, std.concat({
        input: [
            defaultKeyPair.map(__item => __item.id),
            [""],
        ],
    })]).apply(([length, defaultGetKeyPairs, invoke]) => length > 0 ? defaultGetKeyPairs.ids?.[0] : invoke.result?.[0]);
    const dedicatedHostGroupId = pulumi.all([defaultGetDedicatedHostGroups.then(defaultGetDedicatedHostGroups => defaultGetDedicatedHostGroups.ids).length, defaultGetDedicatedHostGroups, std.concat({
        input: [
            defaultDedicatedHostGroup.map(__item => __item.id),
            [""],
        ],
    })]).apply(([length, defaultGetDedicatedHostGroups, invoke]) => length > 0 ? defaultGetDedicatedHostGroups.ids?.[0] : invoke.result?.[0]);
    const defaultDedicatedPropreHost = new alicloud.cddc.DedicatedPropreHost("default", {
        vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]),
        ecsInstanceName: "exampleTf",
        ecsDeploymentSetId: alicloudEcsDeploymentSetId,
        autoRenew: "false",
        securityGroupId: alicloudSecurityGroupId,
        dedicatedHostGroupId: dedicatedHostGroupId,
        ecsHostName: "exampleTf",
        vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
        ecsUniqueSuffix: "false",
        passwordInherit: "false",
        engine: "mysql",
        period: "1",
        osPassword: "YourPassword123!",
        ecsZoneId: "cn-hangzhou-i",
        ecsClassLists: [{
            diskType: "cloud_essd",
            sysDiskType: "cloud_essd",
            diskCount: 1,
            systemDiskPerformanceLevel: "PL1",
            dataDiskPerformanceLevel: "PL1",
            diskCapacity: 40,
            instanceType: "ecs.c6a.large",
            sysDiskCapacity: 40,
        }],
        paymentType: "Subscription",
        imageId: "m-bp1d13fxs1ymbvw1dk5g",
        periodType: "Monthly",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_std as std
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.ecs.get_instance_types(instance_type_family="ecs.g6e",
        network_type="Vpc")
    default_get_images = alicloud.ecs.get_images(name_regex="^aliyun_3_x64_20G_scc*",
        owners="system")
    essd = alicloud.ecs.get_instance_types(cpu_core_count=2,
        memory_size=4,
        system_disk_category="cloud_essd")
    default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
    default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
        zone_id="cn-hangzhou-i")
    default_get_security_groups = alicloud.ecs.get_security_groups(name_regex="tf-exampleacc-cddc-dedicated_propre_host")
    default_security_group = []
    def create_default(range_body):
        for range in [{"value": i} for i in range(0, range_body)]:
            default_security_group.append(alicloud.ecs.SecurityGroup(f"default-{range['value']}",
                vpc_id=default_get_switches.vswitches[0].vpc_id,
                name="tf-exampleacc-cddc-dedicated_propre_host"))
    
    len(default_get_security_groups.ids).apply(lambda resolved_outputs: create_default(0 if resolved_outputs['length'] > 0 else 1))
    default_get_ecs_deployment_sets = alicloud.ecs.get_ecs_deployment_sets(name_regex="tf-exampleacc-cddc-dedicated_propre_host")
    default_ecs_deployment_set = []
    def create_default(range_body):
        for range in [{"value": i} for i in range(0, range_body)]:
            default_ecs_deployment_set.append(alicloud.ecs.EcsDeploymentSet(f"default-{range['value']}",
                strategy="Availability",
                domain="Default",
                granularity="Host",
                deployment_set_name="tf-exampleacc-cddc-dedicated_propre_host",
                description="tf-exampleacc-cddc-dedicated_propre_host"))
    
    len(default_get_ecs_deployment_sets.ids).apply(lambda resolved_outputs: create_default(0 if resolved_outputs['length'] > 0 else 1))
    default_get_key_pairs = alicloud.ecs.get_key_pairs(name_regex="tf-exampleacc-cddc-dedicated_propre_host")
    default_key_pair = []
    def create_default(range_body):
        for range in [{"value": i} for i in range(0, range_body)]:
            default_key_pair.append(alicloud.ecs.KeyPair(f"default-{range['value']}", key_pair_name="tf-exampleacc-cddc-dedicated_propre_host"))
    
    len(default_get_key_pairs.ids).apply(lambda resolved_outputs: create_default(0 if resolved_outputs['length'] > 0 else 1))
    default_get_dedicated_host_groups = alicloud.cddc.get_dedicated_host_groups(engine="MySQL",
        name_regex="tf-exampleacc-cddc-dedicated_propre_host")
    default_dedicated_host_group = []
    def create_default(range_body):
        for range in [{"value": i} for i in range(0, range_body)]:
            default_dedicated_host_group.append(alicloud.cddc.DedicatedHostGroup(f"default-{range['value']}",
                engine="MySQL",
                vpc_id=default_get_networks.ids[0],
                cpu_allocation_ratio=101,
                mem_allocation_ratio=50,
                disk_allocation_ratio=200,
                allocation_policy="Evenly",
                host_replace_policy="Manual",
                dedicated_host_group_desc="tf-exampleacc-cddc-dedicated_propre_host",
                open_permission=True))
    
    len(default_get_dedicated_host_groups.ids).apply(lambda resolved_outputs: create_default(0 if resolved_outputs['length'] > 0 else 1))
    alicloud_security_group_id = len(default_get_security_groups.ids).apply(lambda length: default_get_security_groups.ids[0] if length > 0 else std.concat(input=[
        [__item.id for __item in default_security_group],
        [""],
    ]).result[0])
    alicloud_ecs_deployment_set_id = len(default_get_ecs_deployment_sets.ids).apply(lambda length: default_get_ecs_deployment_sets.sets[0].deployment_set_id if length > 0 else std.concat(input=[
        [__item.id for __item in default_ecs_deployment_set],
        [""],
    ]).result[0])
    alicloud_key_pair_id = len(default_get_key_pairs.ids).apply(lambda length: default_get_key_pairs.ids[0] if length > 0 else std.concat(input=[
        [__item.id for __item in default_key_pair],
        [""],
    ]).result[0])
    dedicated_host_group_id = len(default_get_dedicated_host_groups.ids).apply(lambda length: default_get_dedicated_host_groups.ids[0] if length > 0 else std.concat(input=[
        [__item.id for __item in default_dedicated_host_group],
        [""],
    ]).result[0])
    default_dedicated_propre_host = alicloud.cddc.DedicatedPropreHost("default",
        vswitch_id=default_get_switches.ids[0],
        ecs_instance_name="exampleTf",
        ecs_deployment_set_id=alicloud_ecs_deployment_set_id,
        auto_renew="false",
        security_group_id=alicloud_security_group_id,
        dedicated_host_group_id=dedicated_host_group_id,
        ecs_host_name="exampleTf",
        vpc_id=default_get_networks.ids[0],
        ecs_unique_suffix="false",
        password_inherit="false",
        engine="mysql",
        period="1",
        os_password="YourPassword123!",
        ecs_zone_id="cn-hangzhou-i",
        ecs_class_lists=[{
            "disk_type": "cloud_essd",
            "sys_disk_type": "cloud_essd",
            "disk_count": 1,
            "system_disk_performance_level": "PL1",
            "data_disk_performance_level": "PL1",
            "disk_capacity": 40,
            "instance_type": "ecs.c6a.large",
            "sys_disk_capacity": 40,
        }],
        payment_type="Subscription",
        image_id="m-bp1d13fxs1ymbvw1dk5g",
        period_type="Monthly")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cddc"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"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 := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
    InstanceTypeFamily: pulumi.StringRef("ecs.g6e"),
    NetworkType: pulumi.StringRef("Vpc"),
    }, nil);
    if err != nil {
    return err
    }
    _, err = ecs.GetImages(ctx, &ecs.GetImagesArgs{
    NameRegex: pulumi.StringRef("^aliyun_3_x64_20G_scc*"),
    Owners: pulumi.StringRef("system"),
    }, nil);
    if err != nil {
    return err
    }
    _, err = ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
    CpuCoreCount: pulumi.IntRef(2),
    MemorySize: pulumi.Float64Ref(4),
    SystemDiskCategory: pulumi.StringRef("cloud_essd"),
    }, nil);
    if err != nil {
    return err
    }
    defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
    NameRegex: pulumi.StringRef("^default-NODELETING$"),
    }, nil);
    if err != nil {
    return err
    }
    defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
    VpcId: pulumi.StringRef(defaultGetNetworks.Ids[0]),
    ZoneId: pulumi.StringRef("cn-hangzhou-i"),
    }, nil);
    if err != nil {
    return err
    }
    defaultGetSecurityGroups, err := ecs.GetSecurityGroups(ctx, &ecs.GetSecurityGroupsArgs{
    NameRegex: pulumi.StringRef("tf-exampleacc-cddc-dedicated_propre_host"),
    }, nil);
    if err != nil {
    return err
    }
    var tmp0 float64
    if length > 0 {
    tmp0 = 0
    } else {
    tmp0 = 1
    }
    var defaultSecurityGroup []*ecs.SecurityGroup
    for index := 0; index < float64(len(defaultGetSecurityGroups.Ids).ApplyT(func(length int) (float64, error) {
    return tmp0, nil
    }).(pulumi.Float64Output)); index++ {
        key0 := index
        _ := index
    __res, err := ecs.NewSecurityGroup(ctx, fmt.Sprintf("default-%v", key0), &ecs.SecurityGroupArgs{
    VpcId: pulumi.String(defaultGetSwitches.Vswitches[0].VpcId),
    Name: pulumi.String("tf-exampleacc-cddc-dedicated_propre_host"),
    })
    if err != nil {
    return err
    }
    defaultSecurityGroup = append(defaultSecurityGroup, __res)
    }
    defaultGetEcsDeploymentSets, err := ecs.GetEcsDeploymentSets(ctx, &ecs.GetEcsDeploymentSetsArgs{
    NameRegex: pulumi.StringRef("tf-exampleacc-cddc-dedicated_propre_host"),
    }, nil);
    if err != nil {
    return err
    }
    var tmp1 float64
    if length > 0 {
    tmp1 = 0
    } else {
    tmp1 = 1
    }
    var defaultEcsDeploymentSet []*ecs.EcsDeploymentSet
    for index := 0; index < float64(len(defaultGetEcsDeploymentSets.Ids).ApplyT(func(length int) (float64, error) {
    return tmp1, nil
    }).(pulumi.Float64Output)); index++ {
        key0 := index
        _ := index
    __res, err := ecs.NewEcsDeploymentSet(ctx, fmt.Sprintf("default-%v", key0), &ecs.EcsDeploymentSetArgs{
    Strategy: pulumi.String("Availability"),
    Domain: pulumi.String("Default"),
    Granularity: pulumi.String("Host"),
    DeploymentSetName: pulumi.String("tf-exampleacc-cddc-dedicated_propre_host"),
    Description: pulumi.String("tf-exampleacc-cddc-dedicated_propre_host"),
    })
    if err != nil {
    return err
    }
    defaultEcsDeploymentSet = append(defaultEcsDeploymentSet, __res)
    }
    defaultGetKeyPairs, err := ecs.GetKeyPairs(ctx, &ecs.GetKeyPairsArgs{
    NameRegex: pulumi.StringRef("tf-exampleacc-cddc-dedicated_propre_host"),
    }, nil);
    if err != nil {
    return err
    }
    var tmp2 float64
    if length > 0 {
    tmp2 = 0
    } else {
    tmp2 = 1
    }
    var defaultKeyPair []*ecs.KeyPair
    for index := 0; index < float64(len(defaultGetKeyPairs.Ids).ApplyT(func(length int) (float64, error) {
    return tmp2, nil
    }).(pulumi.Float64Output)); index++ {
        key0 := index
        _ := index
    __res, err := ecs.NewKeyPair(ctx, fmt.Sprintf("default-%v", key0), &ecs.KeyPairArgs{
    KeyPairName: pulumi.String("tf-exampleacc-cddc-dedicated_propre_host"),
    })
    if err != nil {
    return err
    }
    defaultKeyPair = append(defaultKeyPair, __res)
    }
    defaultGetDedicatedHostGroups, err := cddc.GetDedicatedHostGroups(ctx, &cddc.GetDedicatedHostGroupsArgs{
    Engine: pulumi.StringRef("MySQL"),
    NameRegex: pulumi.StringRef("tf-exampleacc-cddc-dedicated_propre_host"),
    }, nil);
    if err != nil {
    return err
    }
    var tmp3 float64
    if length > 0 {
    tmp3 = 0
    } else {
    tmp3 = 1
    }
    var defaultDedicatedHostGroup []*cddc.DedicatedHostGroup
    for index := 0; index < float64(len(defaultGetDedicatedHostGroups.Ids).ApplyT(func(length int) (float64, error) {
    return tmp3, nil
    }).(pulumi.Float64Output)); index++ {
        key0 := index
        _ := index
    __res, err := cddc.NewDedicatedHostGroup(ctx, fmt.Sprintf("default-%v", key0), &cddc.DedicatedHostGroupArgs{
    Engine: pulumi.String("MySQL"),
    VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
    CpuAllocationRatio: pulumi.Int(101),
    MemAllocationRatio: pulumi.Int(50),
    DiskAllocationRatio: pulumi.Int(200),
    AllocationPolicy: pulumi.String("Evenly"),
    HostReplacePolicy: pulumi.String("Manual"),
    DedicatedHostGroupDesc: pulumi.String("tf-exampleacc-cddc-dedicated_propre_host"),
    OpenPermission: pulumi.Bool(true),
    })
    if err != nil {
    return err
    }
    defaultDedicatedHostGroup = append(defaultDedicatedHostGroup, __res)
    }
    var tmp4 *interface{}
    if length > 0 {
    tmp4 = defaultGetSecurityGroups.Ids[0]
    } else {
    tmp4 = std.Concat(ctx, &std.ConcatArgs{
    Input: pulumi.StringArrayArray{
    %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:91,12-38),
    []string{
    "",
    },
    },
    }, nil).Result[0]
    }
    alicloudSecurityGroupId := len(defaultGetSecurityGroups.Ids).ApplyT(func(length int) (*interface{}, error) {
    return &tmp4, nil
    }).(pulumi.Interface{}PtrOutput)
    var tmp5 *interface{}
    if length > 0 {
    tmp5 = defaultGetEcsDeploymentSets.Sets[0].DeploymentSetId
    } else {
    tmp5 = std.Concat(ctx, &std.ConcatArgs{
    Input: pulumi.StringArrayArray{
    %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:94,12-41),
    []string{
    "",
    },
    },
    }, nil).Result[0]
    }
    alicloudEcsDeploymentSetId := len(defaultGetEcsDeploymentSets.Ids).ApplyT(func(length int) (*interface{}, error) {
    return &tmp5, nil
    }).(pulumi.Interface{}PtrOutput)
    var tmp6 *interface{}
    if length > 0 {
    tmp6 = defaultGetKeyPairs.Ids[0]
    } else {
    tmp6 = std.Concat(ctx, &std.ConcatArgs{
    Input: pulumi.StringArrayArray{
    %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:97,12-32),
    []string{
    "",
    },
    },
    }, nil).Result[0]
    }
    _ = len(defaultGetKeyPairs.Ids).ApplyT(func(length int) (*interface{}, error) {
    return &tmp6, nil
    }).(pulumi.Interface{}PtrOutput)
    var tmp7 *interface{}
    if length > 0 {
    tmp7 = defaultGetDedicatedHostGroups.Ids[0]
    } else {
    tmp7 = std.Concat(ctx, &std.ConcatArgs{
    Input: pulumi.StringArrayArray{
    %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:100,12-43),
    []string{
    "",
    },
    },
    }, nil).Result[0]
    }
    dedicatedHostGroupId := len(defaultGetDedicatedHostGroups.Ids).ApplyT(func(length int) (*interface{}, error) {
    return &tmp7, nil
    }).(pulumi.Interface{}PtrOutput)
    _, err = cddc.NewDedicatedPropreHost(ctx, "default", &cddc.DedicatedPropreHostArgs{
    VswitchId: pulumi.String(defaultGetSwitches.Ids[0]),
    EcsInstanceName: pulumi.String("exampleTf"),
    EcsDeploymentSetId: pulumi.Any(alicloudEcsDeploymentSetId),
    AutoRenew: pulumi.String("false"),
    SecurityGroupId: pulumi.Any(alicloudSecurityGroupId),
    DedicatedHostGroupId: pulumi.Any(dedicatedHostGroupId),
    EcsHostName: pulumi.String("exampleTf"),
    VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
    EcsUniqueSuffix: pulumi.String("false"),
    PasswordInherit: pulumi.String("false"),
    Engine: pulumi.String("mysql"),
    Period: pulumi.String("1"),
    OsPassword: pulumi.String("YourPassword123!"),
    EcsZoneId: pulumi.String("cn-hangzhou-i"),
    EcsClassLists: cddc.DedicatedPropreHostEcsClassListArray{
    &cddc.DedicatedPropreHostEcsClassListArgs{
    DiskType: pulumi.String("cloud_essd"),
    SysDiskType: pulumi.String("cloud_essd"),
    DiskCount: pulumi.Int(1),
    SystemDiskPerformanceLevel: pulumi.String("PL1"),
    DataDiskPerformanceLevel: pulumi.String("PL1"),
    DiskCapacity: pulumi.Int(40),
    InstanceType: pulumi.String("ecs.c6a.large"),
    SysDiskCapacity: pulumi.Int(40),
    },
    },
    PaymentType: pulumi.String("Subscription"),
    ImageId: pulumi.String("m-bp1d13fxs1ymbvw1dk5g"),
    PeriodType: pulumi.String("Monthly"),
    })
    if err != nil {
    return err
    }
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Std = Pulumi.Std;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
        {
            InstanceTypeFamily = "ecs.g6e",
            NetworkType = "Vpc",
        });
    
        var defaultGetImages = AliCloud.Ecs.GetImages.Invoke(new()
        {
            NameRegex = "^aliyun_3_x64_20G_scc*",
            Owners = "system",
        });
    
        var essd = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
        {
            CpuCoreCount = 2,
            MemorySize = 4,
            SystemDiskCategory = "cloud_essd",
        });
    
        var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
        {
            NameRegex = "^default-NODELETING$",
        });
    
        var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
        {
            VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            ZoneId = "cn-hangzhou-i",
        });
    
        var defaultGetSecurityGroups = AliCloud.Ecs.GetSecurityGroups.Invoke(new()
        {
            NameRegex = "tf-exampleacc-cddc-dedicated_propre_host",
        });
    
        var defaultSecurityGroup = new List<AliCloud.Ecs.SecurityGroup>();
        for (var rangeIndex = 0; rangeIndex < defaultGetSecurityGroups.Apply(getSecurityGroupsResult => getSecurityGroupsResult.Ids).Length.Apply(length => length > 0 ? 0 : 1); rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            defaultSecurityGroup.Add(new AliCloud.Ecs.SecurityGroup($"default-{range.Value}", new()
            {
                VpcId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.VpcId),
                Name = "tf-exampleacc-cddc-dedicated_propre_host",
            }));
        }
        var defaultGetEcsDeploymentSets = AliCloud.Ecs.GetEcsDeploymentSets.Invoke(new()
        {
            NameRegex = "tf-exampleacc-cddc-dedicated_propre_host",
        });
    
        var defaultEcsDeploymentSet = new List<AliCloud.Ecs.EcsDeploymentSet>();
        for (var rangeIndex = 0; rangeIndex < defaultGetEcsDeploymentSets.Apply(getEcsDeploymentSetsResult => getEcsDeploymentSetsResult.Ids).Length.Apply(length => length > 0 ? 0 : 1); rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            defaultEcsDeploymentSet.Add(new AliCloud.Ecs.EcsDeploymentSet($"default-{range.Value}", new()
            {
                Strategy = "Availability",
                Domain = "Default",
                Granularity = "Host",
                DeploymentSetName = "tf-exampleacc-cddc-dedicated_propre_host",
                Description = "tf-exampleacc-cddc-dedicated_propre_host",
            }));
        }
        var defaultGetKeyPairs = AliCloud.Ecs.GetKeyPairs.Invoke(new()
        {
            NameRegex = "tf-exampleacc-cddc-dedicated_propre_host",
        });
    
        var defaultKeyPair = new List<AliCloud.Ecs.KeyPair>();
        for (var rangeIndex = 0; rangeIndex < defaultGetKeyPairs.Apply(getKeyPairsResult => getKeyPairsResult.Ids).Length.Apply(length => length > 0 ? 0 : 1); rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            defaultKeyPair.Add(new AliCloud.Ecs.KeyPair($"default-{range.Value}", new()
            {
                KeyPairName = "tf-exampleacc-cddc-dedicated_propre_host",
            }));
        }
        var defaultGetDedicatedHostGroups = AliCloud.Cddc.GetDedicatedHostGroups.Invoke(new()
        {
            Engine = "MySQL",
            NameRegex = "tf-exampleacc-cddc-dedicated_propre_host",
        });
    
        var defaultDedicatedHostGroup = new List<AliCloud.Cddc.DedicatedHostGroup>();
        for (var rangeIndex = 0; rangeIndex < defaultGetDedicatedHostGroups.Apply(getDedicatedHostGroupsResult => getDedicatedHostGroupsResult.Ids).Length.Apply(length => length > 0 ? 0 : 1); rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            defaultDedicatedHostGroup.Add(new AliCloud.Cddc.DedicatedHostGroup($"default-{range.Value}", new()
            {
                Engine = "MySQL",
                VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
                CpuAllocationRatio = 101,
                MemAllocationRatio = 50,
                DiskAllocationRatio = 200,
                AllocationPolicy = "Evenly",
                HostReplacePolicy = "Manual",
                DedicatedHostGroupDesc = "tf-exampleacc-cddc-dedicated_propre_host",
                OpenPermission = true,
            }));
        }
        var alicloudSecurityGroupId = Output.Tuple(defaultGetSecurityGroups.Apply(getSecurityGroupsResult => getSecurityGroupsResult.Ids).Length, defaultGetSecurityGroups, Std.Concat.Invoke(new()
        {
            Input = new[]
            {
                defaultSecurityGroup.Select(__item => __item.Id).ToList(),
                new[]
                {
                    "",
                },
            },
        })).Apply(values =>
        {
            var length = values.Item1;
            var defaultGetSecurityGroups = values.Item2;
            var invoke = values.Item3;
            return length > 0 ? defaultGetSecurityGroups.Apply(getSecurityGroupsResult => getSecurityGroupsResult.Ids[0]) : invoke.Result[0];
        });
    
        var alicloudEcsDeploymentSetId = Output.Tuple(defaultGetEcsDeploymentSets.Apply(getEcsDeploymentSetsResult => getEcsDeploymentSetsResult.Ids).Length, defaultGetEcsDeploymentSets, Std.Concat.Invoke(new()
        {
            Input = new[]
            {
                defaultEcsDeploymentSet.Select(__item => __item.Id).ToList(),
                new[]
                {
                    "",
                },
            },
        })).Apply(values =>
        {
            var length = values.Item1;
            var defaultGetEcsDeploymentSets = values.Item2;
            var invoke = values.Item3;
            return length > 0 ? defaultGetEcsDeploymentSets.Apply(getEcsDeploymentSetsResult => getEcsDeploymentSetsResult.Sets[0]?.DeploymentSetId) : invoke.Result[0];
        });
    
        var alicloudKeyPairId = Output.Tuple(defaultGetKeyPairs.Apply(getKeyPairsResult => getKeyPairsResult.Ids).Length, defaultGetKeyPairs, Std.Concat.Invoke(new()
        {
            Input = new[]
            {
                defaultKeyPair.Select(__item => __item.Id).ToList(),
                new[]
                {
                    "",
                },
            },
        })).Apply(values =>
        {
            var length = values.Item1;
            var defaultGetKeyPairs = values.Item2;
            var invoke = values.Item3;
            return length > 0 ? defaultGetKeyPairs.Apply(getKeyPairsResult => getKeyPairsResult.Ids[0]) : invoke.Result[0];
        });
    
        var dedicatedHostGroupId = Output.Tuple(defaultGetDedicatedHostGroups.Apply(getDedicatedHostGroupsResult => getDedicatedHostGroupsResult.Ids).Length, defaultGetDedicatedHostGroups, Std.Concat.Invoke(new()
        {
            Input = new[]
            {
                defaultDedicatedHostGroup.Select(__item => __item.Id).ToList(),
                new[]
                {
                    "",
                },
            },
        })).Apply(values =>
        {
            var length = values.Item1;
            var defaultGetDedicatedHostGroups = values.Item2;
            var invoke = values.Item3;
            return length > 0 ? defaultGetDedicatedHostGroups.Apply(getDedicatedHostGroupsResult => getDedicatedHostGroupsResult.Ids[0]) : invoke.Result[0];
        });
    
        var defaultDedicatedPropreHost = new AliCloud.Cddc.DedicatedPropreHost("default", new()
        {
            VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
            EcsInstanceName = "exampleTf",
            EcsDeploymentSetId = alicloudEcsDeploymentSetId,
            AutoRenew = "false",
            SecurityGroupId = alicloudSecurityGroupId,
            DedicatedHostGroupId = dedicatedHostGroupId,
            EcsHostName = "exampleTf",
            VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            EcsUniqueSuffix = "false",
            PasswordInherit = "false",
            Engine = "mysql",
            Period = "1",
            OsPassword = "YourPassword123!",
            EcsZoneId = "cn-hangzhou-i",
            EcsClassLists = new[]
            {
                new AliCloud.Cddc.Inputs.DedicatedPropreHostEcsClassListArgs
                {
                    DiskType = "cloud_essd",
                    SysDiskType = "cloud_essd",
                    DiskCount = 1,
                    SystemDiskPerformanceLevel = "PL1",
                    DataDiskPerformanceLevel = "PL1",
                    DiskCapacity = 40,
                    InstanceType = "ecs.c6a.large",
                    SysDiskCapacity = 40,
                },
            },
            PaymentType = "Subscription",
            ImageId = "m-bp1d13fxs1ymbvw1dk5g",
            PeriodType = "Monthly",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
    import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
    import com.pulumi.alicloud.vpc.VpcFunctions;
    import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
    import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
    import com.pulumi.alicloud.ecs.inputs.GetSecurityGroupsArgs;
    import com.pulumi.alicloud.ecs.SecurityGroup;
    import com.pulumi.alicloud.ecs.SecurityGroupArgs;
    import com.pulumi.alicloud.ecs.inputs.GetEcsDeploymentSetsArgs;
    import com.pulumi.alicloud.ecs.EcsDeploymentSet;
    import com.pulumi.alicloud.ecs.EcsDeploymentSetArgs;
    import com.pulumi.alicloud.ecs.inputs.GetKeyPairsArgs;
    import com.pulumi.alicloud.ecs.KeyPair;
    import com.pulumi.alicloud.ecs.KeyPairArgs;
    import com.pulumi.alicloud.cddc.CddcFunctions;
    import com.pulumi.alicloud.cddc.inputs.GetDedicatedHostGroupsArgs;
    import com.pulumi.alicloud.cddc.DedicatedHostGroup;
    import com.pulumi.alicloud.cddc.DedicatedHostGroupArgs;
    import com.pulumi.std.StdFunctions;
    import com.pulumi.std.inputs.ConcatArgs;
    import com.pulumi.alicloud.cddc.DedicatedPropreHost;
    import com.pulumi.alicloud.cddc.DedicatedPropreHostArgs;
    import com.pulumi.alicloud.cddc.inputs.DedicatedPropreHostEcsClassListArgs;
    import com.pulumi.codegen.internal.KeyedValue;
    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");
            final var default = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .instanceTypeFamily("ecs.g6e")
                .networkType("Vpc")
                .build());
    
            final var defaultGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
                .nameRegex("^aliyun_3_x64_20G_scc*")
                .owners("system")
                .build());
    
            final var essd = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
                .cpuCoreCount(2)
                .memorySize(4)
                .systemDiskCategory("cloud_essd")
                .build());
    
            final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
                .nameRegex("^default-NODELETING$")
                .build());
    
            final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
                .vpcId(defaultGetNetworks.ids()[0])
                .zoneId("cn-hangzhou-i")
                .build());
    
            final var defaultGetSecurityGroups = EcsFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder()
                .nameRegex("tf-exampleacc-cddc-dedicated_propre_host")
                .build());
    
            for (var i = 0; i < defaultGetSecurityGroups.ids().length().applyValue(_length -> _length > 0 ? 0 : 1); i++) {
                new SecurityGroup("defaultSecurityGroup-" + i, SecurityGroupArgs.builder()
                    .vpcId(defaultGetSwitches.vswitches()[0].vpcId())
                    .name("tf-exampleacc-cddc-dedicated_propre_host")
                    .build());
    
            
    }
            final var defaultGetEcsDeploymentSets = EcsFunctions.getEcsDeploymentSets(GetEcsDeploymentSetsArgs.builder()
                .nameRegex("tf-exampleacc-cddc-dedicated_propre_host")
                .build());
    
            for (var i = 0; i < defaultGetEcsDeploymentSets.ids().length().applyValue(_length -> _length > 0 ? 0 : 1); i++) {
                new EcsDeploymentSet("defaultEcsDeploymentSet-" + i, EcsDeploymentSetArgs.builder()
                    .strategy("Availability")
                    .domain("Default")
                    .granularity("Host")
                    .deploymentSetName("tf-exampleacc-cddc-dedicated_propre_host")
                    .description("tf-exampleacc-cddc-dedicated_propre_host")
                    .build());
    
            
    }
            final var defaultGetKeyPairs = EcsFunctions.getKeyPairs(GetKeyPairsArgs.builder()
                .nameRegex("tf-exampleacc-cddc-dedicated_propre_host")
                .build());
    
            for (var i = 0; i < defaultGetKeyPairs.ids().length().applyValue(_length -> _length > 0 ? 0 : 1); i++) {
                new KeyPair("defaultKeyPair-" + i, KeyPairArgs.builder()
                    .keyPairName("tf-exampleacc-cddc-dedicated_propre_host")
                    .build());
    
            
    }
            final var defaultGetDedicatedHostGroups = CddcFunctions.getDedicatedHostGroups(GetDedicatedHostGroupsArgs.builder()
                .engine("MySQL")
                .nameRegex("tf-exampleacc-cddc-dedicated_propre_host")
                .build());
    
            for (var i = 0; i < defaultGetDedicatedHostGroups.ids().length().applyValue(_length -> _length > 0 ? 0 : 1); i++) {
                new DedicatedHostGroup("defaultDedicatedHostGroup-" + i, DedicatedHostGroupArgs.builder()
                    .engine("MySQL")
                    .vpcId(defaultGetNetworks.ids()[0])
                    .cpuAllocationRatio(101)
                    .memAllocationRatio(50)
                    .diskAllocationRatio(200)
                    .allocationPolicy("Evenly")
                    .hostReplacePolicy("Manual")
                    .dedicatedHostGroupDesc("tf-exampleacc-cddc-dedicated_propre_host")
                    .openPermission(true)
                    .build());
    
            
    }
            final var alicloudSecurityGroupId = defaultGetSecurityGroups.ids().length().applyValue(_length -> _length > 0 ? defaultGetSecurityGroups.ids()[0] : StdFunctions.concat(ConcatArgs.builder()
                .input(            
                    defaultSecurityGroup.stream().map(element -> element.id()).collect(toList()),
                    "")
                .build()).result()[0]);
    
            final var alicloudEcsDeploymentSetId = defaultGetEcsDeploymentSets.ids().length().applyValue(_length -> _length > 0 ? defaultGetEcsDeploymentSets.sets()[0].deploymentSetId() : StdFunctions.concat(ConcatArgs.builder()
                .input(            
                    defaultEcsDeploymentSet.stream().map(element -> element.id()).collect(toList()),
                    "")
                .build()).result()[0]);
    
            final var alicloudKeyPairId = defaultGetKeyPairs.ids().length().applyValue(_length -> _length > 0 ? defaultGetKeyPairs.ids()[0] : StdFunctions.concat(ConcatArgs.builder()
                .input(            
                    defaultKeyPair.stream().map(element -> element.id()).collect(toList()),
                    "")
                .build()).result()[0]);
    
            final var dedicatedHostGroupId = defaultGetDedicatedHostGroups.ids().length().applyValue(_length -> _length > 0 ? defaultGetDedicatedHostGroups.ids()[0] : StdFunctions.concat(ConcatArgs.builder()
                .input(            
                    defaultDedicatedHostGroup.stream().map(element -> element.id()).collect(toList()),
                    "")
                .build()).result()[0]);
    
            var defaultDedicatedPropreHost = new DedicatedPropreHost("defaultDedicatedPropreHost", DedicatedPropreHostArgs.builder()
                .vswitchId(defaultGetSwitches.ids()[0])
                .ecsInstanceName("exampleTf")
                .ecsDeploymentSetId(alicloudEcsDeploymentSetId)
                .autoRenew("false")
                .securityGroupId(alicloudSecurityGroupId)
                .dedicatedHostGroupId(dedicatedHostGroupId)
                .ecsHostName("exampleTf")
                .vpcId(defaultGetNetworks.ids()[0])
                .ecsUniqueSuffix("false")
                .passwordInherit("false")
                .engine("mysql")
                .period("1")
                .osPassword("YourPassword123!")
                .ecsZoneId("cn-hangzhou-i")
                .ecsClassLists(DedicatedPropreHostEcsClassListArgs.builder()
                    .diskType("cloud_essd")
                    .sysDiskType("cloud_essd")
                    .diskCount(1)
                    .systemDiskPerformanceLevel("PL1")
                    .dataDiskPerformanceLevel("PL1")
                    .diskCapacity(40)
                    .instanceType("ecs.c6a.large")
                    .sysDiskCapacity(40)
                    .build())
                .paymentType("Subscription")
                .imageId("m-bp1d13fxs1ymbvw1dk5g")
                .periodType("Monthly")
                .build());
    
        }
    }
    
    Example coming soon!
    

    Deleting alicloud.cddc.DedicatedPropreHost or removing it from your configuration

    Terraform cannot destroy resource alicloud.cddc.DedicatedPropreHost. Terraform will remove this resource from the state file, however resources may remain.

    📚 Need more examples? VIEW MORE EXAMPLES

    Create DedicatedPropreHost Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DedicatedPropreHost(name: string, args: DedicatedPropreHostArgs, opts?: CustomResourceOptions);
    @overload
    def DedicatedPropreHost(resource_name: str,
                            args: DedicatedPropreHostArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DedicatedPropreHost(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            ecs_zone_id: Optional[str] = None,
                            vswitch_id: Optional[str] = None,
                            vpc_id: Optional[str] = None,
                            ecs_class_lists: Optional[Sequence[DedicatedPropreHostEcsClassListArgs]] = None,
                            security_group_id: Optional[str] = None,
                            payment_type: Optional[str] = None,
                            engine: Optional[str] = None,
                            internet_max_bandwidth_out: Optional[int] = None,
                            ecs_host_name: Optional[str] = None,
                            ecs_instance_name: Optional[str] = None,
                            image_id: Optional[str] = None,
                            internet_charge_type: Optional[str] = None,
                            auto_pay: Optional[bool] = None,
                            key_pair_name: Optional[str] = None,
                            os_password: Optional[str] = None,
                            password_inherit: Optional[str] = None,
                            ecs_unique_suffix: Optional[str] = None,
                            period: Optional[str] = None,
                            period_type: Optional[str] = None,
                            resource_group_id: Optional[str] = None,
                            ecs_deployment_set_id: Optional[str] = None,
                            tags: Optional[Mapping[str, str]] = None,
                            user_data: Optional[str] = None,
                            user_data_encoded: Optional[bool] = None,
                            dedicated_host_group_id: Optional[str] = None,
                            auto_renew: Optional[str] = None)
    func NewDedicatedPropreHost(ctx *Context, name string, args DedicatedPropreHostArgs, opts ...ResourceOption) (*DedicatedPropreHost, error)
    public DedicatedPropreHost(string name, DedicatedPropreHostArgs args, CustomResourceOptions? opts = null)
    public DedicatedPropreHost(String name, DedicatedPropreHostArgs args)
    public DedicatedPropreHost(String name, DedicatedPropreHostArgs args, CustomResourceOptions options)
    
    type: alicloud:cddc:DedicatedPropreHost
    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 DedicatedPropreHostArgs
    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 DedicatedPropreHostArgs
    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 DedicatedPropreHostArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DedicatedPropreHostArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DedicatedPropreHostArgs
    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 dedicatedPropreHostResource = new AliCloud.Cddc.DedicatedPropreHost("dedicatedPropreHostResource", new()
    {
        EcsZoneId = "string",
        VswitchId = "string",
        VpcId = "string",
        EcsClassLists = new[]
        {
            new AliCloud.Cddc.Inputs.DedicatedPropreHostEcsClassListArgs
            {
                InstanceType = "string",
                SysDiskCapacity = 0,
                SysDiskType = "string",
                DataDiskPerformanceLevel = "string",
                DiskCapacity = 0,
                DiskCount = 0,
                DiskType = "string",
                SystemDiskPerformanceLevel = "string",
            },
        },
        SecurityGroupId = "string",
        PaymentType = "string",
        Engine = "string",
        InternetMaxBandwidthOut = 0,
        EcsHostName = "string",
        EcsInstanceName = "string",
        ImageId = "string",
        InternetChargeType = "string",
        AutoPay = false,
        KeyPairName = "string",
        OsPassword = "string",
        PasswordInherit = "string",
        EcsUniqueSuffix = "string",
        Period = "string",
        PeriodType = "string",
        ResourceGroupId = "string",
        EcsDeploymentSetId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        UserData = "string",
        UserDataEncoded = false,
        DedicatedHostGroupId = "string",
        AutoRenew = "string",
    });
    
    example, err := cddc.NewDedicatedPropreHost(ctx, "dedicatedPropreHostResource", &cddc.DedicatedPropreHostArgs{
    	EcsZoneId: pulumi.String("string"),
    	VswitchId: pulumi.String("string"),
    	VpcId:     pulumi.String("string"),
    	EcsClassLists: cddc.DedicatedPropreHostEcsClassListArray{
    		&cddc.DedicatedPropreHostEcsClassListArgs{
    			InstanceType:               pulumi.String("string"),
    			SysDiskCapacity:            pulumi.Int(0),
    			SysDiskType:                pulumi.String("string"),
    			DataDiskPerformanceLevel:   pulumi.String("string"),
    			DiskCapacity:               pulumi.Int(0),
    			DiskCount:                  pulumi.Int(0),
    			DiskType:                   pulumi.String("string"),
    			SystemDiskPerformanceLevel: pulumi.String("string"),
    		},
    	},
    	SecurityGroupId:         pulumi.String("string"),
    	PaymentType:             pulumi.String("string"),
    	Engine:                  pulumi.String("string"),
    	InternetMaxBandwidthOut: pulumi.Int(0),
    	EcsHostName:             pulumi.String("string"),
    	EcsInstanceName:         pulumi.String("string"),
    	ImageId:                 pulumi.String("string"),
    	InternetChargeType:      pulumi.String("string"),
    	AutoPay:                 pulumi.Bool(false),
    	KeyPairName:             pulumi.String("string"),
    	OsPassword:              pulumi.String("string"),
    	PasswordInherit:         pulumi.String("string"),
    	EcsUniqueSuffix:         pulumi.String("string"),
    	Period:                  pulumi.String("string"),
    	PeriodType:              pulumi.String("string"),
    	ResourceGroupId:         pulumi.String("string"),
    	EcsDeploymentSetId:      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	UserData:             pulumi.String("string"),
    	UserDataEncoded:      pulumi.Bool(false),
    	DedicatedHostGroupId: pulumi.String("string"),
    	AutoRenew:            pulumi.String("string"),
    })
    
    var dedicatedPropreHostResource = new DedicatedPropreHost("dedicatedPropreHostResource", DedicatedPropreHostArgs.builder()
        .ecsZoneId("string")
        .vswitchId("string")
        .vpcId("string")
        .ecsClassLists(DedicatedPropreHostEcsClassListArgs.builder()
            .instanceType("string")
            .sysDiskCapacity(0)
            .sysDiskType("string")
            .dataDiskPerformanceLevel("string")
            .diskCapacity(0)
            .diskCount(0)
            .diskType("string")
            .systemDiskPerformanceLevel("string")
            .build())
        .securityGroupId("string")
        .paymentType("string")
        .engine("string")
        .internetMaxBandwidthOut(0)
        .ecsHostName("string")
        .ecsInstanceName("string")
        .imageId("string")
        .internetChargeType("string")
        .autoPay(false)
        .keyPairName("string")
        .osPassword("string")
        .passwordInherit("string")
        .ecsUniqueSuffix("string")
        .period("string")
        .periodType("string")
        .resourceGroupId("string")
        .ecsDeploymentSetId("string")
        .tags(Map.of("string", "string"))
        .userData("string")
        .userDataEncoded(false)
        .dedicatedHostGroupId("string")
        .autoRenew("string")
        .build());
    
    dedicated_propre_host_resource = alicloud.cddc.DedicatedPropreHost("dedicatedPropreHostResource",
        ecs_zone_id="string",
        vswitch_id="string",
        vpc_id="string",
        ecs_class_lists=[{
            "instance_type": "string",
            "sys_disk_capacity": 0,
            "sys_disk_type": "string",
            "data_disk_performance_level": "string",
            "disk_capacity": 0,
            "disk_count": 0,
            "disk_type": "string",
            "system_disk_performance_level": "string",
        }],
        security_group_id="string",
        payment_type="string",
        engine="string",
        internet_max_bandwidth_out=0,
        ecs_host_name="string",
        ecs_instance_name="string",
        image_id="string",
        internet_charge_type="string",
        auto_pay=False,
        key_pair_name="string",
        os_password="string",
        password_inherit="string",
        ecs_unique_suffix="string",
        period="string",
        period_type="string",
        resource_group_id="string",
        ecs_deployment_set_id="string",
        tags={
            "string": "string",
        },
        user_data="string",
        user_data_encoded=False,
        dedicated_host_group_id="string",
        auto_renew="string")
    
    const dedicatedPropreHostResource = new alicloud.cddc.DedicatedPropreHost("dedicatedPropreHostResource", {
        ecsZoneId: "string",
        vswitchId: "string",
        vpcId: "string",
        ecsClassLists: [{
            instanceType: "string",
            sysDiskCapacity: 0,
            sysDiskType: "string",
            dataDiskPerformanceLevel: "string",
            diskCapacity: 0,
            diskCount: 0,
            diskType: "string",
            systemDiskPerformanceLevel: "string",
        }],
        securityGroupId: "string",
        paymentType: "string",
        engine: "string",
        internetMaxBandwidthOut: 0,
        ecsHostName: "string",
        ecsInstanceName: "string",
        imageId: "string",
        internetChargeType: "string",
        autoPay: false,
        keyPairName: "string",
        osPassword: "string",
        passwordInherit: "string",
        ecsUniqueSuffix: "string",
        period: "string",
        periodType: "string",
        resourceGroupId: "string",
        ecsDeploymentSetId: "string",
        tags: {
            string: "string",
        },
        userData: "string",
        userDataEncoded: false,
        dedicatedHostGroupId: "string",
        autoRenew: "string",
    });
    
    type: alicloud:cddc:DedicatedPropreHost
    properties:
        autoPay: false
        autoRenew: string
        dedicatedHostGroupId: string
        ecsClassLists:
            - dataDiskPerformanceLevel: string
              diskCapacity: 0
              diskCount: 0
              diskType: string
              instanceType: string
              sysDiskCapacity: 0
              sysDiskType: string
              systemDiskPerformanceLevel: string
        ecsDeploymentSetId: string
        ecsHostName: string
        ecsInstanceName: string
        ecsUniqueSuffix: string
        ecsZoneId: string
        engine: string
        imageId: string
        internetChargeType: string
        internetMaxBandwidthOut: 0
        keyPairName: string
        osPassword: string
        passwordInherit: string
        paymentType: string
        period: string
        periodType: string
        resourceGroupId: string
        securityGroupId: string
        tags:
            string: string
        userData: string
        userDataEncoded: false
        vpcId: string
        vswitchId: string
    

    DedicatedPropreHost Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DedicatedPropreHost resource accepts the following input properties:

    EcsClassLists List<Pulumi.AliCloud.Cddc.Inputs.DedicatedPropreHostEcsClassList>
    ECS specifications. See ecs_class_list below.
    EcsZoneId string
    The ID of the zone.
    Engine string
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    PaymentType string
    The Payment type. Currently, only Subscription is supported.
    SecurityGroupId string
    The ID of the security group.
    VpcId string
    VPCID of the VPC.
    VswitchId string
    The ID of the virtual switch.
    AutoPay bool
    Whether to pay automatically when the host is created.
    AutoRenew string
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    DedicatedHostGroupId string
    You have a dedicated cluster ID.
    EcsDeploymentSetId string
    The ID of the cloud server deployment set.
    EcsHostName string
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    EcsInstanceName string
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    EcsUniqueSuffix string
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    ImageId string

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    InternetChargeType string
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    InternetMaxBandwidthOut int
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    KeyPairName string
    The key pair name.
    OsPassword string

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    PasswordInherit string

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    Period string
    Duration of purchase.
    PeriodType string
    The subscription type. Currently, only Monthly (subscription) is supported.
    ResourceGroupId string
    The ID of the resource group.
    Tags Dictionary<string, string>
    Host tag information.
    UserData string
    User-defined script data. The maximum size of the original data is 16kB.
    UserDataEncoded bool
    Whether custom data is encoded in Base64 format.
    EcsClassLists []DedicatedPropreHostEcsClassListArgs
    ECS specifications. See ecs_class_list below.
    EcsZoneId string
    The ID of the zone.
    Engine string
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    PaymentType string
    The Payment type. Currently, only Subscription is supported.
    SecurityGroupId string
    The ID of the security group.
    VpcId string
    VPCID of the VPC.
    VswitchId string
    The ID of the virtual switch.
    AutoPay bool
    Whether to pay automatically when the host is created.
    AutoRenew string
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    DedicatedHostGroupId string
    You have a dedicated cluster ID.
    EcsDeploymentSetId string
    The ID of the cloud server deployment set.
    EcsHostName string
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    EcsInstanceName string
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    EcsUniqueSuffix string
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    ImageId string

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    InternetChargeType string
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    InternetMaxBandwidthOut int
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    KeyPairName string
    The key pair name.
    OsPassword string

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    PasswordInherit string

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    Period string
    Duration of purchase.
    PeriodType string
    The subscription type. Currently, only Monthly (subscription) is supported.
    ResourceGroupId string
    The ID of the resource group.
    Tags map[string]string
    Host tag information.
    UserData string
    User-defined script data. The maximum size of the original data is 16kB.
    UserDataEncoded bool
    Whether custom data is encoded in Base64 format.
    ecsClassLists List<DedicatedPropreHostEcsClassList>
    ECS specifications. See ecs_class_list below.
    ecsZoneId String
    The ID of the zone.
    engine String
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    paymentType String
    The Payment type. Currently, only Subscription is supported.
    securityGroupId String
    The ID of the security group.
    vpcId String
    VPCID of the VPC.
    vswitchId String
    The ID of the virtual switch.
    autoPay Boolean
    Whether to pay automatically when the host is created.
    autoRenew String
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    dedicatedHostGroupId String
    You have a dedicated cluster ID.
    ecsDeploymentSetId String
    The ID of the cloud server deployment set.
    ecsHostName String
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    ecsInstanceName String
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    ecsUniqueSuffix String
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    imageId String

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    internetChargeType String
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    internetMaxBandwidthOut Integer
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    keyPairName String
    The key pair name.
    osPassword String

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    passwordInherit String

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    period String
    Duration of purchase.
    periodType String
    The subscription type. Currently, only Monthly (subscription) is supported.
    resourceGroupId String
    The ID of the resource group.
    tags Map<String,String>
    Host tag information.
    userData String
    User-defined script data. The maximum size of the original data is 16kB.
    userDataEncoded Boolean
    Whether custom data is encoded in Base64 format.
    ecsClassLists DedicatedPropreHostEcsClassList[]
    ECS specifications. See ecs_class_list below.
    ecsZoneId string
    The ID of the zone.
    engine string
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    paymentType string
    The Payment type. Currently, only Subscription is supported.
    securityGroupId string
    The ID of the security group.
    vpcId string
    VPCID of the VPC.
    vswitchId string
    The ID of the virtual switch.
    autoPay boolean
    Whether to pay automatically when the host is created.
    autoRenew string
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    dedicatedHostGroupId string
    You have a dedicated cluster ID.
    ecsDeploymentSetId string
    The ID of the cloud server deployment set.
    ecsHostName string
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    ecsInstanceName string
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    ecsUniqueSuffix string
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    imageId string

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    internetChargeType string
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    internetMaxBandwidthOut number
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    keyPairName string
    The key pair name.
    osPassword string

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    passwordInherit string

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    period string
    Duration of purchase.
    periodType string
    The subscription type. Currently, only Monthly (subscription) is supported.
    resourceGroupId string
    The ID of the resource group.
    tags {[key: string]: string}
    Host tag information.
    userData string
    User-defined script data. The maximum size of the original data is 16kB.
    userDataEncoded boolean
    Whether custom data is encoded in Base64 format.
    ecs_class_lists Sequence[DedicatedPropreHostEcsClassListArgs]
    ECS specifications. See ecs_class_list below.
    ecs_zone_id str
    The ID of the zone.
    engine str
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    payment_type str
    The Payment type. Currently, only Subscription is supported.
    security_group_id str
    The ID of the security group.
    vpc_id str
    VPCID of the VPC.
    vswitch_id str
    The ID of the virtual switch.
    auto_pay bool
    Whether to pay automatically when the host is created.
    auto_renew str
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    dedicated_host_group_id str
    You have a dedicated cluster ID.
    ecs_deployment_set_id str
    The ID of the cloud server deployment set.
    ecs_host_name str
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    ecs_instance_name str
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    ecs_unique_suffix str
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    image_id str

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    internet_charge_type str
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    internet_max_bandwidth_out int
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    key_pair_name str
    The key pair name.
    os_password str

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    password_inherit str

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    period str
    Duration of purchase.
    period_type str
    The subscription type. Currently, only Monthly (subscription) is supported.
    resource_group_id str
    The ID of the resource group.
    tags Mapping[str, str]
    Host tag information.
    user_data str
    User-defined script data. The maximum size of the original data is 16kB.
    user_data_encoded bool
    Whether custom data is encoded in Base64 format.
    ecsClassLists List<Property Map>
    ECS specifications. See ecs_class_list below.
    ecsZoneId String
    The ID of the zone.
    engine String
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    paymentType String
    The Payment type. Currently, only Subscription is supported.
    securityGroupId String
    The ID of the security group.
    vpcId String
    VPCID of the VPC.
    vswitchId String
    The ID of the virtual switch.
    autoPay Boolean
    Whether to pay automatically when the host is created.
    autoRenew String
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    dedicatedHostGroupId String
    You have a dedicated cluster ID.
    ecsDeploymentSetId String
    The ID of the cloud server deployment set.
    ecsHostName String
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    ecsInstanceName String
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    ecsUniqueSuffix String
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    imageId String

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    internetChargeType String
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    internetMaxBandwidthOut Number
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    keyPairName String
    The key pair name.
    osPassword String

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    passwordInherit String

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    period String
    Duration of purchase.
    periodType String
    The subscription type. Currently, only Monthly (subscription) is supported.
    resourceGroupId String
    The ID of the resource group.
    tags Map<String>
    Host tag information.
    userData String
    User-defined script data. The maximum size of the original data is 16kB.
    userDataEncoded Boolean
    Whether custom data is encoded in Base64 format.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DedicatedPropreHost resource produces the following output properties:

    EcsInstanceId string
    ECS instance ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    EcsInstanceId string
    ECS instance ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    ecsInstanceId String
    ECS instance ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ecsInstanceId string
    ECS instance ID.
    id string
    The provider-assigned unique ID for this managed resource.
    ecs_instance_id str
    ECS instance ID.
    id str
    The provider-assigned unique ID for this managed resource.
    ecsInstanceId String
    ECS instance ID.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DedicatedPropreHost Resource

    Get an existing DedicatedPropreHost 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?: DedicatedPropreHostState, opts?: CustomResourceOptions): DedicatedPropreHost
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_pay: Optional[bool] = None,
            auto_renew: Optional[str] = None,
            dedicated_host_group_id: Optional[str] = None,
            ecs_class_lists: Optional[Sequence[DedicatedPropreHostEcsClassListArgs]] = None,
            ecs_deployment_set_id: Optional[str] = None,
            ecs_host_name: Optional[str] = None,
            ecs_instance_id: Optional[str] = None,
            ecs_instance_name: Optional[str] = None,
            ecs_unique_suffix: Optional[str] = None,
            ecs_zone_id: Optional[str] = None,
            engine: Optional[str] = None,
            image_id: Optional[str] = None,
            internet_charge_type: Optional[str] = None,
            internet_max_bandwidth_out: Optional[int] = None,
            key_pair_name: Optional[str] = None,
            os_password: Optional[str] = None,
            password_inherit: Optional[str] = None,
            payment_type: Optional[str] = None,
            period: Optional[str] = None,
            period_type: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            security_group_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            user_data: Optional[str] = None,
            user_data_encoded: Optional[bool] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None) -> DedicatedPropreHost
    func GetDedicatedPropreHost(ctx *Context, name string, id IDInput, state *DedicatedPropreHostState, opts ...ResourceOption) (*DedicatedPropreHost, error)
    public static DedicatedPropreHost Get(string name, Input<string> id, DedicatedPropreHostState? state, CustomResourceOptions? opts = null)
    public static DedicatedPropreHost get(String name, Output<String> id, DedicatedPropreHostState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cddc:DedicatedPropreHost    get:      id: ${id}
    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:
    AutoPay bool
    Whether to pay automatically when the host is created.
    AutoRenew string
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    DedicatedHostGroupId string
    You have a dedicated cluster ID.
    EcsClassLists List<Pulumi.AliCloud.Cddc.Inputs.DedicatedPropreHostEcsClassList>
    ECS specifications. See ecs_class_list below.
    EcsDeploymentSetId string
    The ID of the cloud server deployment set.
    EcsHostName string
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    EcsInstanceId string
    ECS instance ID.
    EcsInstanceName string
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    EcsUniqueSuffix string
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    EcsZoneId string
    The ID of the zone.
    Engine string
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    ImageId string

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    InternetChargeType string
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    InternetMaxBandwidthOut int
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    KeyPairName string
    The key pair name.
    OsPassword string

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    PasswordInherit string

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    PaymentType string
    The Payment type. Currently, only Subscription is supported.
    Period string
    Duration of purchase.
    PeriodType string
    The subscription type. Currently, only Monthly (subscription) is supported.
    ResourceGroupId string
    The ID of the resource group.
    SecurityGroupId string
    The ID of the security group.
    Tags Dictionary<string, string>
    Host tag information.
    UserData string
    User-defined script data. The maximum size of the original data is 16kB.
    UserDataEncoded bool
    Whether custom data is encoded in Base64 format.
    VpcId string
    VPCID of the VPC.
    VswitchId string
    The ID of the virtual switch.
    AutoPay bool
    Whether to pay automatically when the host is created.
    AutoRenew string
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    DedicatedHostGroupId string
    You have a dedicated cluster ID.
    EcsClassLists []DedicatedPropreHostEcsClassListArgs
    ECS specifications. See ecs_class_list below.
    EcsDeploymentSetId string
    The ID of the cloud server deployment set.
    EcsHostName string
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    EcsInstanceId string
    ECS instance ID.
    EcsInstanceName string
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    EcsUniqueSuffix string
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    EcsZoneId string
    The ID of the zone.
    Engine string
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    ImageId string

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    InternetChargeType string
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    InternetMaxBandwidthOut int
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    KeyPairName string
    The key pair name.
    OsPassword string

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    PasswordInherit string

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    PaymentType string
    The Payment type. Currently, only Subscription is supported.
    Period string
    Duration of purchase.
    PeriodType string
    The subscription type. Currently, only Monthly (subscription) is supported.
    ResourceGroupId string
    The ID of the resource group.
    SecurityGroupId string
    The ID of the security group.
    Tags map[string]string
    Host tag information.
    UserData string
    User-defined script data. The maximum size of the original data is 16kB.
    UserDataEncoded bool
    Whether custom data is encoded in Base64 format.
    VpcId string
    VPCID of the VPC.
    VswitchId string
    The ID of the virtual switch.
    autoPay Boolean
    Whether to pay automatically when the host is created.
    autoRenew String
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    dedicatedHostGroupId String
    You have a dedicated cluster ID.
    ecsClassLists List<DedicatedPropreHostEcsClassList>
    ECS specifications. See ecs_class_list below.
    ecsDeploymentSetId String
    The ID of the cloud server deployment set.
    ecsHostName String
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    ecsInstanceId String
    ECS instance ID.
    ecsInstanceName String
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    ecsUniqueSuffix String
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    ecsZoneId String
    The ID of the zone.
    engine String
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    imageId String

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    internetChargeType String
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    internetMaxBandwidthOut Integer
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    keyPairName String
    The key pair name.
    osPassword String

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    passwordInherit String

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    paymentType String
    The Payment type. Currently, only Subscription is supported.
    period String
    Duration of purchase.
    periodType String
    The subscription type. Currently, only Monthly (subscription) is supported.
    resourceGroupId String
    The ID of the resource group.
    securityGroupId String
    The ID of the security group.
    tags Map<String,String>
    Host tag information.
    userData String
    User-defined script data. The maximum size of the original data is 16kB.
    userDataEncoded Boolean
    Whether custom data is encoded in Base64 format.
    vpcId String
    VPCID of the VPC.
    vswitchId String
    The ID of the virtual switch.
    autoPay boolean
    Whether to pay automatically when the host is created.
    autoRenew string
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    dedicatedHostGroupId string
    You have a dedicated cluster ID.
    ecsClassLists DedicatedPropreHostEcsClassList[]
    ECS specifications. See ecs_class_list below.
    ecsDeploymentSetId string
    The ID of the cloud server deployment set.
    ecsHostName string
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    ecsInstanceId string
    ECS instance ID.
    ecsInstanceName string
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    ecsUniqueSuffix string
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    ecsZoneId string
    The ID of the zone.
    engine string
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    imageId string

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    internetChargeType string
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    internetMaxBandwidthOut number
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    keyPairName string
    The key pair name.
    osPassword string

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    passwordInherit string

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    paymentType string
    The Payment type. Currently, only Subscription is supported.
    period string
    Duration of purchase.
    periodType string
    The subscription type. Currently, only Monthly (subscription) is supported.
    resourceGroupId string
    The ID of the resource group.
    securityGroupId string
    The ID of the security group.
    tags {[key: string]: string}
    Host tag information.
    userData string
    User-defined script data. The maximum size of the original data is 16kB.
    userDataEncoded boolean
    Whether custom data is encoded in Base64 format.
    vpcId string
    VPCID of the VPC.
    vswitchId string
    The ID of the virtual switch.
    auto_pay bool
    Whether to pay automatically when the host is created.
    auto_renew str
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    dedicated_host_group_id str
    You have a dedicated cluster ID.
    ecs_class_lists Sequence[DedicatedPropreHostEcsClassListArgs]
    ECS specifications. See ecs_class_list below.
    ecs_deployment_set_id str
    The ID of the cloud server deployment set.
    ecs_host_name str
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    ecs_instance_id str
    ECS instance ID.
    ecs_instance_name str
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    ecs_unique_suffix str
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    ecs_zone_id str
    The ID of the zone.
    engine str
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    image_id str

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    internet_charge_type str
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    internet_max_bandwidth_out int
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    key_pair_name str
    The key pair name.
    os_password str

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    password_inherit str

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    payment_type str
    The Payment type. Currently, only Subscription is supported.
    period str
    Duration of purchase.
    period_type str
    The subscription type. Currently, only Monthly (subscription) is supported.
    resource_group_id str
    The ID of the resource group.
    security_group_id str
    The ID of the security group.
    tags Mapping[str, str]
    Host tag information.
    user_data str
    User-defined script data. The maximum size of the original data is 16kB.
    user_data_encoded bool
    Whether custom data is encoded in Base64 format.
    vpc_id str
    VPCID of the VPC.
    vswitch_id str
    The ID of the virtual switch.
    autoPay Boolean
    Whether to pay automatically when the host is created.
    autoRenew String
    Whether to enable automatic renewal. Valid values:

    • true: On
    • false (default): Off
    dedicatedHostGroupId String
    You have a dedicated cluster ID.
    ecsClassLists List<Property Map>
    ECS specifications. See ecs_class_list below.
    ecsDeploymentSetId String
    The ID of the cloud server deployment set.
    ecsHostName String
    Windows system: length of 2 to 15 characters, allowing the use of upper and lower case letters, numbers. You cannot use only numbers. Other operating systems (such as Linux): the length of 2 to 64 characters, allowing the use of dot (.) to separate characters into multiple segments, each segment allows the use of upper and lower case letters, numbers, but can not use continuous dot (.). Cannot start or end with a dot (.).
    ecsInstanceId String
    ECS instance ID.
    ecsInstanceName String
    The instance name. It must be 2 to 128 characters in length and must start with an uppercase or lowercase letter or a Chinese character. It cannot start with http:// or https. Can contain Chinese, English, numbers, half-width colons (:), underscores (_), half-width periods (.), or dashes (-). The default value is the InstanceId of the instance.
    ecsUniqueSuffix String
    Whether to automatically add an ordered suffix for HostName and InstanceName when creating multiple instances. The ordered suffix starts from 001 and cannot exceed 999. Value Description:

    • true: added.
    • false (default): Do not add. When the HostName or InstanceName is set according to the specified sorting format, and the naming suffix name_suffix is not set, that is, when the naming format is name_prefix[begin_number,bits], the UniqueSuffix does not take effect, and the names are only sorted according to the specified order.
    ecsZoneId String
    The ID of the zone.
    engine String
    Database type, value:

    • alisql
    • tair
    • mssql Must be consistent with the parent resource cluster engine attributes.
    imageId String

    The ID of the custom image.

    NOTE: If you need to use the default image, you do not need to fill it in.

    internetChargeType String
    Network billing type. Value range: PayByBandwidth: Billing based on fixed bandwidth. PayByTraffic: charges by using the flow meter.
    internetMaxBandwidthOut Number
    The maximum outbound bandwidth of the public network, in Mbit/s. Value range: 0~100. Default value: 0. When set to greater than 0, a public IP is automatically created.
    keyPairName String
    The key pair name.
    osPassword String

    Host login password, which can be set later. The password must meet the following requirements:

    • Length is 8~30 characters.
    • Must contain at least three items: uppercase letters, lowercase letters, numbers, and special characters.
    • Special symbol '()' ~! @#$%^& *-_+ =|{}[]:;',.? /'

    NOTE: - If you need to set the host login password later, fill in an empty string for this parameter. If you need to set a host login password, we recommend that you use the HTTPS protocol to send requests to avoid password leakage.

    passwordInherit String

    Whether to use the default password of the image.

    • false: (default)Do not use
    • true: Use

    NOTE: If the default password of the image is used, the OSPassword parameter is not required.

    paymentType String
    The Payment type. Currently, only Subscription is supported.
    period String
    Duration of purchase.
    periodType String
    The subscription type. Currently, only Monthly (subscription) is supported.
    resourceGroupId String
    The ID of the resource group.
    securityGroupId String
    The ID of the security group.
    tags Map<String>
    Host tag information.
    userData String
    User-defined script data. The maximum size of the original data is 16kB.
    userDataEncoded Boolean
    Whether custom data is encoded in Base64 format.
    vpcId String
    VPCID of the VPC.
    vswitchId String
    The ID of the virtual switch.

    Supporting Types

    DedicatedPropreHostEcsClassList, DedicatedPropreHostEcsClassListArgs

    InstanceType string
    ECS specifications.
    SysDiskCapacity int
    System disk capacity.
    SysDiskType string
    System disk type, value:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    DataDiskPerformanceLevel string
    Data disk PL level.
    DiskCapacity int
    The capacity of the data disk.
    DiskCount int
    Number of mounted data disks.
    DiskType string
    Data disk type, value range:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    SystemDiskPerformanceLevel string
    System disk PL level.
    InstanceType string
    ECS specifications.
    SysDiskCapacity int
    System disk capacity.
    SysDiskType string
    System disk type, value:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    DataDiskPerformanceLevel string
    Data disk PL level.
    DiskCapacity int
    The capacity of the data disk.
    DiskCount int
    Number of mounted data disks.
    DiskType string
    Data disk type, value range:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    SystemDiskPerformanceLevel string
    System disk PL level.
    instanceType String
    ECS specifications.
    sysDiskCapacity Integer
    System disk capacity.
    sysDiskType String
    System disk type, value:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    dataDiskPerformanceLevel String
    Data disk PL level.
    diskCapacity Integer
    The capacity of the data disk.
    diskCount Integer
    Number of mounted data disks.
    diskType String
    Data disk type, value range:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    systemDiskPerformanceLevel String
    System disk PL level.
    instanceType string
    ECS specifications.
    sysDiskCapacity number
    System disk capacity.
    sysDiskType string
    System disk type, value:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    dataDiskPerformanceLevel string
    Data disk PL level.
    diskCapacity number
    The capacity of the data disk.
    diskCount number
    Number of mounted data disks.
    diskType string
    Data disk type, value range:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    systemDiskPerformanceLevel string
    System disk PL level.
    instance_type str
    ECS specifications.
    sys_disk_capacity int
    System disk capacity.
    sys_disk_type str
    System disk type, value:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    data_disk_performance_level str
    Data disk PL level.
    disk_capacity int
    The capacity of the data disk.
    disk_count int
    Number of mounted data disks.
    disk_type str
    Data disk type, value range:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    system_disk_performance_level str
    System disk PL level.
    instanceType String
    ECS specifications.
    sysDiskCapacity Number
    System disk capacity.
    sysDiskType String
    System disk type, value:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    dataDiskPerformanceLevel String
    Data disk PL level.
    diskCapacity Number
    The capacity of the data disk.
    diskCount Number
    Number of mounted data disks.
    diskType String
    Data disk type, value range:

    • cloud_essd: the ESSD cloud disk.
    • cloud_ssd: SSD cloud disk.
    • cloud_efficiency: The ultra cloud disk.
    • cloud_auto: ESSD AutoPL cloud disk.
    systemDiskPerformanceLevel String
    System disk PL level.

    Import

    CDDC Dedicated Propre Host can be imported using the id, e.g.

    $ pulumi import alicloud:cddc/dedicatedPropreHost:DedicatedPropreHost example <dedicated_host_group_id>:<ecs_instance_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.
     logo
    Viewing docs for Alibaba Cloud v3.97.0
    published on Saturday, Mar 14, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.